Repository navigation
Open
Labels
enhancementNew feature or request
Description
Follow-up of #601 part 1 (#743, #734): only third-party stdio MCP servers ran in the sandbox. This issue sandboxes everything the model can make the host execute: run_command, job_start, cron scripts and deliveries, the mission --verify command, and the on_turnend stop gates.
Owner decision (2026-11-14): verify and turnend become sandboxed by default in a later phase; the first sandbox step is opt-in. docs/sandbox-design.md describes [sandbox.consumers] and a command profile (writable workspace, .git, .tole read-only).
Done (see CHANGELOG and docs/sandbox-design.md §9.3–9.5)
-
commandprofile and[sandbox.consumers]forrun_commandandjob_start(slice 1), with rlimits (CPU, memory, processes, file size) -
verifyandturnendstop gates (slice 2); unattended consumers refuse when the sandbox is required or unavailable, with no unsandboxed fallback - Cron scripts and
command:deliveries under[sandbox.consumers] cron(slice 3, feat(sandbox): sandbox cron scripts and command deliveries under [sandbox.consumers] cron (#748) #874) - Hardening: whole
.gitread-only, sessions dir, user-config layering, terminal rule for--no-config(security: the command sandbox profile protects .git/hooks and .git/config by leaf mounts only; renaming .git aside bypasses them #849, fix(sandbox): bind the whole .git read-only in the command profile (#849) #851, feat(sandbox): sandbox the on_turnend stop gates and fold in the #845 review items (#748) #859, fix(sandbox): a stop gate that times out inside the sandbox is a deny, not a pass (#860) #861, security: a sessions directory inside the workspace but outside .tole is writable by a sandboxed command #866, fix(sandbox): bind a sessions directory inside the workspace read-only, refuse one that cannot be protected (#866) #870, fix(security): under an agent session a flag or TOLE_TRUST may only narrow the owner's policy lists (#865) #871, fix(security): --no-config and the loosening flags need a terminal when the user config sets [sandbox] or [secrets] (#867) #872) - Windows and macOS compile and stay honest (no sandbox there;
tole doctorsays so)
Remaining
- Default flip:
verifyandturnendsandboxed by default asoptionalin the next minor release, with a CHANGELOG migration note (owner decision 2026-11-16). Neverrequiredby default: a sandboxed verify cannot see~/.cargoand exits 127. - cgroup limits, only if cheap (deferred)
- Hardening of the host-side
gittool when a consumer is on (fix(sandbox): harden the git tool, which runs on the host, when a command consumer is on (#748) #873, in review)
Respect the approval boundaries of #684, #700 and #714: a sandbox never replaces an approval.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
feat(sandbox): opt-in sandbox for run_command and job_start with rlim…
fix(sandbox): refuse a verify whose sandbox cannot start it, check be…
test(sandbox): a workspace layout the command profile refuses refuses…
feat(sandbox): sandbox the mission --verify command (#748)
feat(sandbox): sandbox the on_turnend stop gates and fold in the #845 …
fix(sandbox): a stop gate that times out inside the sandbox is a deny…
fix(sandbox): refuse a cron workdir that overlaps the cron dir, size …
fix(sandbox): the git tool refuses every op unless the repository exi…
feat(sandbox): sandbox cron scripts and command deliveries under [san…
fix(sandbox): the bare-repository refusal also covers a tool with no …
docs(sandbox): the git tool's checks are made just before spawn (#748)
fix(sandbox): vet the repository before every git tool op instead of …
docs(sandbox): state the git tool's residuals accurately (#748)
[-]feat(sandbox): sandbox model-driven commands (run_command, job_start, cron scripts, verify, turnend) and add rlimits[/-][+]feat(sandbox): sandbox model-driven commands — remaining: default flip for verify and turnend, cgroup limits[/+]1 remaining item
fix(sandbox): fix the git binary and PATH, and close inherited descri…
fix(sandbox): harden the git tool, which runs on the host, when a com…
fix(sandbox): treat momentary bwrap failures as transient and test th…
fix(sandbox): gate the pure probe helpers so non-Linux builds stay cl…
test(mission): own the verify test's home directory so it is removed (#…
fix(sandbox): look up bwrap only in absolute executable PATH entries …
test(sandbox): move the new unit tests of the default flip to the e2e…
feat(sandbox): sandbox verify and turnend by default as optional
test(sandbox): unit and real-binary tests for the verify and turnend …
[-]feat(sandbox): sandbox model-driven commands — remaining: default flip for verify and turnend, cgroup limits[/-][+]feat(sandbox): sandbox model-driven commands — remaining: cgroup limits (the verify/turnend default flip shipped)[/+]docs(sandbox): fix cgroup evaluation wording after independent review (…
docs(sandbox): record the cgroup limits evaluation and defer it (#982)
[-]feat(sandbox): sandbox model-driven commands — remaining: cgroup limits (the verify/turnend default flip shipped)[/-][+]feat(sandbox): sandbox model-driven commands: remaining: cgroup limits (evaluated 2026-11-19, deferred: not cheap)[/+]docs(epics): refresh the open-work table and open owner decisions (20…
docs(epics): refresh the open-work table and open owner decisions (20…