Repository navigation
Description
Summary
The Bash tool's sandbox has been an approval decision. A regex allow-list says which commands run without a prompt, and a path check reads the command's arguments to keep an unattended command off paths outside sandbox.yaml. Nothing confines what a command does once it runs. In auto mode, or after the user approves a command, a write can land anywhere the CLI process can write, and a command that derives a path internally never shows it in its arguments.
Every Bash command the allow-list runs unattended, which in auto mode is every command, should run under an OS sandbox that lets it read and execute anything but write only under the writable allowed paths, the grants, the writable carve-outs, the temp dir and the build caches a toolchain needs. Linux applies a Landlock ruleset on the thread that forks the child, so only the child inherits it, macOS uses Seatbelt, Windows has no equivalent and keeps the path check alone. A command the user approved runs as approved, unconfined, so approving a path outside the sandbox keeps its meaning. The path check stays as the read guard: the kernel cannot tell a tool reading its own token from a command printing it.
Acceptance Criteria
-
sandbox.yamlfilesystem.enforce(defaulttrue) confines every Bash command the allow-list runs unattended, inautomode every command, andfalseturns it off. - A command the user approved runs unconfined: approving an allow-listed command that names a path outside the sandbox still lets it run there.
- A write outside the writable paths fails in the kernel, and the tool result carries a hint naming the policy. A write inside the project still lands.
- Plan mode confines writes to the scratchpad, the temp dir and the caches.
-
git,gh,go build,go test,cargoandnpmkeep working under confinement through the temp and cache carve-outs. - e2e coverage on Linux proves the kernel refuses an outside write in auto mode.
- The configuration reference, the tools reference and the sandbox context README describe the boundary and the carve-outs.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
inference-gateway-releaser commentedon Nov 16, 2026
🎉 This issue has been resolved in version 0.262.0 🎉
The release is available on:
Your semantic-release bot 📦🚀