Repository navigation
#115 M3: cua's own sandbox on Linux, the pinned helper release, vendor host retired - #160
Merged
Merged
Conversation
…t upstream release commit for x86_64 and aarch64 (musl), attested and released as linux-sandbox-<tag>
…so it can be dispatched before it reaches main; jobs run on dispatch only
… version bump, so the build may set only the workspace members' versions in Cargo.lock and fails on any other change
…oo, whose inlined standard-library paths the binary carried
…inned codex-linux-sandbox (rust-v0.163.0, released as linux-sandbox-rust-v0.163.0); Linux computer sessions default to scoped with only the worker on the network; launch_app runs outside the sandbox through the supervisor; the Linux vendor host is refused; codex leaves the Linux pins; install places the helper, doctor checks it
…rom /proc (the helper's seccomp refuses a child's piped stdio); the Linux secrets connection runs through the own host
…move to the Linux computer default (scoped); managed parity installs take the cached sandbox helper; the broken-launcher lane stands in for the pinned Linux helper; linux-native checks the confined kernel, launch_app outside the sandbox and the refused vendor host; own-sandbox finds the Linux kernel by its command line
…unch, the default-mode deny list, the CLI's helper step; doctor names no vendor rollback on Linux; acceptance 8's Linux helper comparison probe; M3 evidence so far
…before the fixture moves the children's HOME, so Linux creates only the deny targets' leaves
…evidence README so far
… host is retired there
…oped computer default (#115 M3, no cell difference); the live-secrets fixture keeps the connection HOME's ~/.config before moving the children's HOME
…ed; the default-mode kernel works in its own directory outside run/ (<home>/kernel/<session>, its TMPDIR that directory's tmp/), made with the session and removed with it
…ox write root, and the scoped preflight refuses XDG applications directories that overlap one; the helper must be a regular executable file (install restores its mode); platform- and surface-aware Node and default-mode network texts; the workflow's privacy guard reports counts only; the waitfor race logged as tech debt
…box 82/82, helper comparison equal, linux-native PASS), the helper's mode refused and restored live, and the api suite rerun equal to the control, waitfor included
…d moved; M3's other choices
…t case; the fedc016 preflight refuses the secret fixtures' HOME moved into the run directory (its XDG applications directory then lies in a write root)
…_DATA_HOME with the connection's HOME when they move the children's HOME into the run directory, so no XDG applications directory lies in a write root and the scoped preflight admits them
… diff against M0's vendor control ok with no difference (transition and #135 accepted)
… and the acceptance-12 ruling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket #115, milestone M3 of
docs/doperpowers/specs/2026-10-17-own-sandbox-design.md(Plan of Work, "M3 — Linux helper; cua's own host on Linux; confined computer default; vendor host retired").Merge with a merge commit, not squash or rebase. The helper release
linux-sandbox-rust-v0.163.0was built and attested by workflow run 39110168611 at this branch's commitda0c530c7b8769334f05bc192e85e44ffef6641d, which is also the tag's target. A merge commit keeps that SHA in main's history. The attestation namesrefs/heads/feat/115-own-sandbox-m3, because the workflow is not on main until this merges.What changes
.github/workflows/linux-sandbox-helper.ymlbuilds openai/codex'scodex-linux-sandboxfromrust-v0.163.0(83086188) for x86_64 and aarch64 musl.--locked, remaps paths and strips the binary.MODIFICATIONS.mdandSHA256SUMS.runtime/sandbox/linux-sandbox.json: URL, length and sha256 per asset, plus the attestation run.codexleaves the Linux pins andLINUX_LAYOUT_KEYS.sandboxPolicy/sandboxArgsleave runtime code; the validator lives on aspolicyTable.state/,remote/,chrome/andrun/, in every confined mode. Underdefault, the kernel's cwd and lifeline move to$CUA_HOME/kernel/<session>/, because the helper re-binds only writable roots inside a denied directory (bwrap.rs at 83086188, lines 414-430, 566-669 and 790-800). Other sessions' run directories therefore stay denied indefaultmode too, as the owner ruled.scoped. The worker gets network throughCUA_REPL_WORKER_NETWORK; the kernel stays restricted.launch_appon Linux is checked against sky_linux'slist_apps. The supervisor then runs it outside the sandbox withgio launch.configuration-transitionentry (linux-computer-default-scoped) declares the 19 native cases' move fromdisabledtoscoped, with no cell differences.Validation Evidence
All evidence is in
docs/evidence/2026-10-17-own-sandbox/m3/README.md.HOME=$(mktemp -d) CUA_NODE=/opt/homebrew/bin/node npm testgives 2832 pass, 0 fail, 78 skipped at fedc016, and 2833 pass, 0 fail at bf7739f.npm run test:modsgives 133/133.claude plugin validate .passes. Its one warning is about the root CLAUDE.md, which predates M3.scripts/accept/own-sandbox.mjson cua-gce at fedc016 givesok: true, 82/82 (m3/fedc016/own-sandbox.json). Underdefault, another session's run directory gives EACCES.scripts/accept/linux-native.mjsgives PASS: gedit is launched bylaunch_appoutside the sandbox and typed into through AT-SPI, while the kernel stays confined (m3/fedc016/linux-native.json).scripts/sandbox-probe/linux-helper-compare.mjsruns vendor codex 0.159.2 and cua's 0.163.0 helper side by side and finds them equal across scoped and default × kernel and worker (m3/fedc016/helper-compare.json).repl-parity run --device cua-gce --host cua --suite all, then adiffagainst M0's vendor control withtest/repl-parity/expected-differences.json.ok: truewith 0 differences beyond the declared 19-case transition and the Vendor node_repl on Linux runs cells unconfined when the sandbox launcher fails after preflight #135 departure (m3/gce-cua-bf7739f/).allAssertionsPassed: falseandcases492 of 493. Both come from the vendor's recorded defect oncells/confinement/no-unsandboxed-fallback, which the vendor fails and the own host passes.m3/gce-cua-43c543d-attempt-1/). The secret fixtures moved the children's HOME into the run directory, and the new scoped preflight correctly refused it. bf7739f fixes the fixtures only; nothing undersrc/changed after fedc016.m3/gce-cua/) and the api-only rerun at fedc016.gh attestation verify <asset> --repo SSFSKIM/cuaexits 0 for both assets, and the secret and home-path scan of every asset finds nothing (README, "The helper").m3/x64-smoke/).m3/linux-probes/).Unresolved Review Findings
api/browser-playwrightlocator/waitfortiming race. The cell's 100 ms deadline races the CDP deadline under load. It is logged intech-debt-tracker.md, with no comparator allowance added. The task review accepted it.Residue
src/mcp/surface.mjs:170has a comment written before the store was denied. M4's documentation work covers both.native/app/typetext, and two full runs did not reproduce it. The harness discards the connection's stderr, so there is no diagnostic. Capturing that stderr would make a recurrence diagnosable.