Skip to content

[EXPLORATION] plugin lifecycle model + sandboxing concept page - #84

Draft
djsauble wants to merge 2 commits into
mainfrom
daniel/plugin-lifecycle-and-sandboxing
Draft

[EXPLORATION] plugin lifecycle model + sandboxing concept page#84
djsauble wants to merge 2 commits into
mainfrom
daniel/plugin-lifecycle-and-sandboxing

Conversation

@djsauble

Copy link
Copy Markdown
Contributor

The spec-review artifacts called for by docs/plugin-lifecycle-hooks.md §7 step 8 on flox/flox prototype/sandbox-plugins. Both pages document prototype behavior (schema v1.16.0, features.plugin_hooks) and are intended for team review alongside that branch and flox-plugins daniel/wave-a-session-wrap — not for merge before the feature ships.

What's here

  • concepts/plugins.mdx (expanded) — presents the full lifecycle extension-point model: the environment-lifecycle table, the hook tree, the typed [plugin-hooks] declaration and its threat model (what declarations gate and why profile.d/on-deactivate.d stay undeclared), the consent model (default-No auto-activation prompt, include-stripping), the hook protocol (ctx file + env vars), per-hook contracts for session-wrap/env/sidecar/on-deactivate.d, and the store-path dev/test loop. Also fixes a pre-existing bug in the vault example (secret/ double-prefix).
  • concepts/sandboxing.mdx (new) — the sandbox analogue of concepts/secrets-management: sandboxing as a class of plugin built on the framework, the sandboxed activation pattern, key security properties, the three plugin shapes (session boundaries, hand-off generators, advisory mediation), and implementation examples for all fifteen sandbox plugins, plus a reference table and backend-choosing guidance.
  • docs.json nav entry and regenerated llms.txt (keeps check-llms-txt green).

Fact-checking

Content was verified against the implementations rather than the design doc alone: the [plugin-hooks] schema, flag, prompts, warning strings, and hook contracts against the flox/flox prototype branch; every plugin example's config keys, prerequisites, bail points, and policy vocabulary against the plugin READMEs and hook scripts. Where the implementation diverges from the design doc (e.g. no published ctx JSON schema, container wrappers needing no re-entry marker), the pages follow the implementation.

Known open item

The pages link github.com/flox/flox-plugins, which 404s for readers without access while the repo is private. The published secrets-management page carries the same link, so this PR keeps it consistent; worth resolving before either page ships.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MuU9JsLoiuwnY31UQcRicv

djsauble and others added 2 commits August 28, 2026 15:44
The plugins concept page covered only the released v1.14.0 surface:
profile.d scripts plus opaque [plugins.<name>] data. The
prototype/sandbox-plugins branch of flox/flox adds generic lifecycle
hooks (session-wrap, env, sidecar, on-deactivate.d), a typed
[plugin-hooks] manifest section (schema v1.16.0), and a consent model.
Present the full lifecycle extension-point model as the spec-review
artifact called for by docs/plugin-lifecycle-hooks.md §7 step 8.

Also fix a pre-existing bug in the vault example: the script prefixed
'secret/' onto table values that already carry it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MuU9JsLoiuwnY31UQcRicv
The sandbox-plugin analogue of the secrets-management page: sandboxing
as a class of plugin built on the lifecycle-hook framework, with the
sandboxed activation pattern, the consent/security model, and
implementation examples for all fifteen sandbox plugins on the
flox-plugins daniel/wave-a-session-wrap branch (session boundaries,
advisory mediation, and the ten hand-off generators).

Registers the page in docs.json and regenerates llms.txt so
check-llms-txt stays green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MuU9JsLoiuwnY31UQcRicv
@mintlify

mintlify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
flox 🟢 Ready View Preview Aug 28, 2026, 10:45 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@djsauble djsauble self-assigned this Aug 28, 2026
@djsauble djsauble changed the title docs(concepts): plugin lifecycle model + sandboxing concept page [EXPLORATION] plugin lifecycle model + sandboxing concept page Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant