Skip to main content

Module sandbox

Module sandbox 

Source
Expand description

The OS sandbox around a task or review agent, when workflow.sandbox is os. The policy and why it is shaped this way are in docs/plans/2026-10-28-agent-sandboxes.md

Structs§

SandboxFailed
The sandbox cannot start. It is the operator’s setup, so it blocks the task and counts against no agent

Functions§

argv
The program and arguments that go before the agent command, or why the sandbox cannot start. The worktree’s .git file is the agent’s to write, so the common dir comes from the main checkout and the branch from orch’s records, and a git dir outside them refuses the run
chat_argv
The sandbox prefix for a project chat agent. It reads the project and orch’s store and config, writes only its temp dir, and cannot read the rest of the home or any credential
control_argv
The sandbox prefix for the control chat, which Telegram and the other channels reach. It reads orch’s home and acts through orch, and cannot read the rest of the home or any credential. Inside another Seatbelt sandbox, which cannot nest, it runs in that one
enabled
Whether the project runs its agents in the sandbox: workflow.sandbox: os in its .orch.yml or the global config. false or no setting leaves it off
enabled_globally
Like enabled from the global config alone, for a run whose project is unknown
run_temp_dir
The run’s own temp dir, so no socket of the operator’s apps in the shared one is in reach