Skip to content

chore: pin the driver on the fork's patched branch at 4a1528b (v0.1.11, trial) - #5

Open
mr-miles wants to merge 3 commits into
mainfrom
try/policy-revalidation
Open

mr-miles wants to merge 3 commits into
mainfrom
try/policy-revalidation

Conversation

@mr-miles

@mr-miles mr-miles commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Pins the vendored driver's OpenShell git dependencies and the embedded runtime to the patched branch of mr-miles/OpenShell at 4a1528b, so the Release workflow (workflow_dispatch) builds them all from one commit. That branch is the v0.1.11 release plus:

  • the L7 fix: percent-encoded path bytes are forwarded as sent, and S3 paths are signed single-encoded (fork branch fix/l7-preserve-encoded-path-bytes/mr-miles);
  • the shared supervisor host over Unix sockets (fork branch feat/shared-host-unix/mr-miles), which OPENSHELL_VM_SHARED_SUPERVISOR needs;
  • perf(vm): stop repeating per-launch bookkeeping before the VM starts ai-openshell/openshell#6056 and #6057 (driver-only, so they reach the plugin through the vendored merge below, not the pin).

Commits on top of feat/shared-supervisor (#18's branch, which goes to main on its own):

  1. Pin — UPSTREAM.env, the vendored Cargo.toml/Cargo.lock, the README, and what v0.1.11 forces on the vendored driver: from_struct for driver_config (#5117) and the removal of allocation_tracking (#6023). v0.1.11's launched mode (serve/Configure, #5914) is not taken: this driver is an external socket_path service, which v0.1.11 still supports.
  2. Perf — the driver half of #6056/#6057, three-way merged into the vendored crate and adapted to the fork. It stays here until it lands upstream and comes in with a pin.

Run a gateway built from 4a1528b or the v0.1.11 release; the stack changes no gateway protocol. Not for merging.

🤖 Generated with Claude Code

@mr-miles
mr-miles force-pushed the try/policy-revalidation branch 7 times, most recently from 81143b1 to 1a0661f Compare November 11, 2026 16:53
@mr-miles mr-miles changed the title chore: build the driver runtime from the policy-revalidation backport… chore: build the driver runtime from the v0.1.8 policy-revalidation backport (trial) Nov 11, 2026
@mr-miles
mr-miles force-pushed the try/policy-revalidation branch 4 times, most recently from 1c3d0b1 to 0c1ef36 Compare November 18, 2026 13:03
@mr-miles mr-miles changed the title chore: build the driver runtime from the v0.1.8 policy-revalidation backport (trial) chore: build the driver runtime from the v0.1.9 policy-revalidation backport (trial) Nov 18, 2026
@mr-miles mr-miles changed the title chore: build the driver runtime from the v0.1.9 policy-revalidation backport (trial) chore: pin the driver on the fork's patched branch at 36761e1 (trial) Nov 30, 2026
mr-miles and others added 3 commits December 1, 2026 23:18
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>
Pin the vendored driver's OpenShell git dependencies and the embedded
runtime to the `patched` branch of mr-miles/OpenShell at 4a1528b1, so
the Release workflow builds them from one commit. That branch is the
v0.1.11 release plus stacks not yet upstream:
- the L7 fix: percent-encoded path bytes are forwarded as sent, and S3
  paths are signed single-encoded;
- the shared supervisor host over Unix sockets, which the driver's
  OPENSHELL_VM_SHARED_SUPERVISOR needs;
- ai-openshell/openshell#6056 and #6057 (driver-only; the vendored
  driver carries its own merge of them).

Three-way merge the upstream driver changes since f16795b:
- #5117: driver_config is decoded with proto_struct::from_struct, which
  keeps protobuf integers as integers.
- #6023: the counting test allocator moved to openshell-supervisor-network,
  so allocation_tracking and its feature are gone.

Not taken: #5914's launched mode (`serve` and `preflight`, the table on
stdin and the gateway's Configure call). This driver runs as an external
service the gateway reaches by socket_path, which v0.1.11 still supports.

Re-lock: v0.1.11 requires libc 0.2.191, smallvec and kube 5.2.0.

Not for merging.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three-way merge the driver half of #6056/#6057, which cut per-launch VM
bookkeeping and are not yet upstream, into the vendored crate:
- write a launch's overlay files in one debugfs run (RootfsImageBatch);
- hash the guest runtime identity at build time (build.rs);
- re-hash the cached host supervisor only when the file changes;
- resolve a cached digest-pinned bootstrap image without a preparation
  worker, which here also spares the launcher's exec of the driver.

Adapted to the fork: no mount manifest is written (bind mounts are
refused and the guest init reads none), and the worker is skipped only
for a name with a registry host. Those never consult a local engine
here, so the fast path probes none. write_rootfs_image_file is dropped:
its only upstream caller is the libkrun runtime, which is not vendored.

Kept off main: it arrives with a pin once the PRs land upstream.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mr-miles
mr-miles force-pushed the try/policy-revalidation branch from ac7bac5 to 2bd3f95 Compare December 1, 2026 23:24
@mr-miles mr-miles changed the title chore: pin the driver on the fork's patched branch at 36761e1 (trial) chore: pin the driver on the fork's patched branch at 4a1528b (v0.1.11, trial) Dec 1, 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