Skip to content

Feat/shared supervisor - #18

Open
mr-miles wants to merge 1 commit into
mainfrom
feat/shared-supervisor
Open

mr-miles wants to merge 1 commit into
mainfrom
feat/shared-supervisor

Conversation

@mr-miles

@mr-miles mr-miles commented Dec 1, 2026

Copy link
Copy Markdown
Owner

No description provided.

OPENSHELL_VM_SHARED_SUPERVISOR=true runs one openshell-supervisor
--mode=shared process for every sandbox instead of one per sandbox.
Off (the default), nothing changes.

The gateway serves the shared supervisor's assignment stream only for its
in-process Kubernetes driver, so the driver serves it itself, with
openshell-supervisor-control's controller as a one-member pool:
- the stream is on <socket root>/@host.sock and accepts only the driver's
  own uid and a token the driver mints and renews in a file;
- each launch assigns the generation's gateway-issued launch credentials,
  and the supervisor listens on that generation's runtime-initiated Unix
  control socket while it hosts it, so the guest side is unchanged and the
  gateway sees the same per-sandbox sessions;
- stopping a sandbox asks the supervisor to let go of it and treats the
  control socket's removal as done.

It needs a supervisor that dials a unix: assignment endpoint and serves a
sandbox on its own socket (fork branch feat/shared-host-unix/mr-miles,
not upstream); with the current pin every shared launch fails, so leave
it off until the pin carries that change.

There is no failover without a gateway-signed takeover grant: if the
shared supervisor exits, its VMs fail and the next launch starts a new
one. Supervisor identity, the additional destination CA and an upstream
proxy are refused with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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