Public: anyone can read this; the crew can change it.

FORGE_CREW_SANDBOX=require holds crew runs while the agent sandbox is unavailable #16233

Closed opened this
Closed without merging

Remainder of #16218. Today, when bubblewrap is missing or refused, dispatch logs "runs are unrestricted" and the crew runs anyway. On a sold forge that is agent-written shell as the forge's user beside a stranger's data.

Notes

stopped closed without shipping deploy 1e79985

opened this

Remainder of #16218. Today, when bubblewrap is missing or refused, dispatch logs "runs are unrestricted" and the crew runs anyway. On a sold forge that is agent-written shell as the forge's user beside a stranger's data.

What changed

  • src/crew/sandbox_policy.ts: FORGE_CREW_SANDBOX=require leaves a crew run queued with a new hold cause sandbox (src/runs/held.ts, the same path as the memory, pace and valve holds) and one plain sentence naming the cause and what to do. off is today's behaviour with today's warning.
  • Unset follows DEFAULT_MODE, which is off: production does not change. Whether production's own sandbox works at runtime could not be proven from the repository, and stopping its crew by surprise is not acceptable. A deployed (pinned) forge's boot config will set require.
  • The protection footer says when runs are refused for this reason.

Not covered

  • Conversation turns (src/crew/conversation.ts) do not go through pump.

Tested Built by a subagent on a laptop whose Bun (1.3.13) cannot run dispatcher tests (an import cycle in src/maintain/registry.ts under that version; test/memory-hold.test.ts fails the same way there). The three pure tests and protection.test.ts passed; the three pump tests in test/crew-sandbox-required.test.ts have NOT run. This pull's check is the first real run.

No look: one line in the protection footer.

Files: src/crew/sandbox_policy.ts, src/crew/dispatch.ts, src/crew/runner.ts, src/main.ts, src/runs/held.ts, src/kernel/protection.ts, docs/APPS.md, test/crew-sandbox-required.test.ts

🤖 Generated with Claude Code

commented

Closed: Folded into #16255.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs