Repository navigation
Open
Description
Owner decision (2026-11-18): the CLI you talk in runs without an OS sandbox and asks about dangerous commands (Hermes style), on Linux and macOS. Unattended runs keep the sandbox.
Why. The OS sandbox is why the owner runs Codex in yolo all the time. A sandbox that people switch off protects nothing. The long-term standard is the one that actually stays on.
The new standard
Interactive oxa (TUI, oxa -p started by a person, lead chat):
- No OS sandbox by default. bash and hooks run with the user's rights, on Linux and macOS alike.
- Dangerous-command approval. A command that matches the dangerous list stops and asks: once / this session / always / deny. The list includes recursive deletes outside the workspace,
git push --force, writes to~/.sshand other credential stores,curl|wget … | sh,dd/mkfs,chmod -R 777,sudo, SQLDROP/TRUNCATE, and killing processes the user did not start.- The list is owner configuration (
oxa.approval.dangerous: add, remove, or replace). - Matching works on the parsed command (pipelines,
sh -c,xargs,env,eval), not only on a raw regex. - Everything that does not match runs without a prompt.
- The list is owner configuration (
- The in-process guards stay, because they never cause yolo friction in normal coding:
- file tools refuse private paths (
~/.ssh, cloud/registry keys, token stores, oxa state); - credentials are masked in tool output;
- project files cannot change user-only settings;
- offline mode still holds.
- file tools refuse private paths (
- The UI tells the truth. The mode line shows "no sandbox · dangerous commands ask", never "sandbox on".
--sandbox(oroxa.sandbox.interactive: true) turns the OS sandbox back on for a person who wants it.- Yolo drops the approval prompts as well; the in-process guards stay.
Unattended runs (workers, subagents, headless goal runs, oxa work, runner-owned tasks):
- The OS sandbox stays on by default on Linux (bubblewrap, as today). Owner setting:
oxa.sandbox.unattended. - A dangerous command in an unattended run is refused with a clear reason that the lead and the owner can see. On macOS, where there is no OS sandbox, it goes to the lead/owner as an approval request (
oxa send/ web) instead of running, and the run continues with other work.
Consequences
- macOS dev build (#795): the interactive build needs no Seatbelt; S1 (no OS sandbox) already matches. Seatbelt drops out of 0.2.2 unless unattended Mac runs need it.
- Lead loop: a dead worker is also stripped from the red-main and review-held rows, without its worker_gone signal #202 / oxstack/ox-llm#443 (YOLO): replaced by this model. Yolo means no approval prompts; the default means dangerous commands ask.
- Review rules (
AGENTS.md: "Preserve sandbox/bwrap enforcement…";SECURITY.md) must say: the OS sandbox is required for unattended runs, and for interactive runs only when the owner turns it on. Dangerous-command approval and the in-process guards must be preserved.
Slices (to plan)
- The dangerous-command classifier (parsed commands, owner-configurable list) with a large table of named tests, including bypass attempts.
- The approval prompt in the TUI and the web (once/session/always/deny; "always" is stored in user settings).
- The interactive default flips to no OS sandbox on Linux, with an honest mode line and
--sandbox. - Unattended runs keep bwrap and refuse dangerous commands; on Mac they send an approval request to the lead.
- Review-rule and docs update (
AGENTS.md,SECURITY.md,docs/pages/security.md).
Metadata
Metadata
Assignees
Labels
No labels
Activity
oxa-orchestrator commentedon Nov 19, 2026
Owner decision (2026-11-19): yolo means no sandbox anywhere. Starting oxa in yolo removes the approval prompts and the OS sandbox for the session itself and for every worker, subagent and headless run it starts. The in-process guards stay: file-tool private-path denials, credential masking, user-only settings and offline mode for oxa's own calls. Without yolo, unattended runs keep bwrap by default (
oxa.sandbox.unattended). The code in S3 (#1523) already does this; the rules and docs in S7 (#1528) are being aligned to it.n0rpan commentedon Nov 19, 2026
Triage 2026-11-19: this issue is now tracked in #149 (Cluster: Sandbox standard: finish the interactive no-sandbox default and make unattended runs workable, priority P0), planned PR 1: "Finish the sandbox standard". It will be fixed there together with its related issues, not one by one.
n0rpan commentedon Nov 22, 2026
Owner rules sweep 3 (2026-11-22, the model is the owner's agent): build the powerful version.