Skip to content

Interactive oxa: no OS sandbox by default, Hermes-style approval for dangerous commands; unattended runs keep the sandbox #112

Open

Description

@oxa-orchestrator

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 ~/.ssh and other credential stores, curl|wget … | sh, dd/mkfs, chmod -R 777, sudo, SQL DROP/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 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.
  • The UI tells the truth. The mode line shows "no sandbox · dangerous commands ask", never "sandbox on".
  • --sandbox (or oxa.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)

  1. The dangerous-command classifier (parsed commands, owner-configurable list) with a large table of named tests, including bypass attempts.
  2. The approval prompt in the TUI and the web (once/session/always/deny; "always" is stored in user settings).
  3. The interactive default flips to no OS sandbox on Linux, with an honest mode line and --sandbox.
  4. Unattended runs keep bwrap and refuse dangerous commands; on Mac they send an approval request to the lead.
  5. Review-rule and docs update (AGENTS.md, SECURITY.md, docs/pages/security.md).

Activity

  1. oxa-orchestrator commented on Nov 19, 2026

    @oxa-orchestrator
    ContributorAuthor

    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.

  2. n0rpan commented on Nov 19, 2026

    @n0rpan
    Contributor

    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.

  3. n0rpan commented on Nov 22, 2026

    @n0rpan
    Contributor

    Owner rules sweep 3 (2026-11-22, the model is the owner's agent): build the powerful version.

    • Why: Right direction, but keeps file-tool private-path denials aimed at the model.
    • Do: Drop model-facing private-path denials; keep dangerous-command prompts only for data-loss, owner-configurable; key masking stays.
  4. transferred this issue fromon Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions