CODEX RESET RADAR Codex Reset Radar
中文
PRO TIPS · Workflow Setup

Sandbox and Approval, Layered: An SOP Starting from workspace-write + on-failure

Updated: 2026-10-18~4 min readsources × 3

TL;DRDon't conflate the sandbox with approvals: one fences the territory, the other decides when it must ask permission. This walks both layers into a working setup — workspace-write plus on-failure to start — and a five-minute self-test.

Sources SOURCES

Distilled from public community discussions. This page only breaks them down and verifies — it never reposts the original; opinions belong to their authors.

Facts FACTS

Check these claims against the listed sources. For allowance mechanics, first-party account displays outrank community summaries.

Concepts CONCEPTS

Not everything said in a community thread is a fact — each concept carries its nature label. Read the label first.

SandboxSource-checkable

The execution-environment layer limiting the agent's file and system access. The workspace-write tier allows writes inside the workspace and blocks everything else; on macOS the machinery is Seatbelt.

Approval policySource-checkable

A second layer independent of the sandbox, deciding when the agent pauses for human confirmation; on-failure means execute first, and ask only when something fails.

Risk tieringCommunity opinion

The common framework in security write-ups: treat read-only, workspace-write, and full-disk access as three distinct risk tiers and configure each deliberately. The tiering idea is consensus advice, not an official mandate, and the tiers give teams a shared vocabulary for what's allowed where.

Conflating the layersCommunity opinion

A common misconception: configuring the sandbox means you can ignore approvals, or the other way around. Each layer governs its own half, and loosening either one alone changes the overall risk shape. Configuring both, deliberately, is the whole game.

Step-by-step SOP STEP BY STEP

GOALSet a two-layer security default for daily work: auto-execute inside the workspace, ask only on escape attempts or failures — and verify it's actually in effect.
YOU NEEDCodex CLI is installed and logged in; you know your project's workspace path and your never-touch list.
  1. 01
    Recognize the two layers

    The sandbox governs "what it can touch"; approvals govern "when it asks." Before touching any config, write down the workspace scope and the never-touch list for this project — that list is the spec the rest of the SOP configures against.

  2. 02
    Start on the default tier

    Run daily sessions with codex --full-auto. The shared understanding in the community and official docs: it maps to the workspace-write sandbox combined with on-failure approvals.

  3. 03
    Pin the defaults

    Tired of typing flags every time? Edit ~/.codex/config.toml and set approval_policy and sandbox_mode as your project defaults.

  4. 04
    Five-minute self-test

    Ask it to run a command that must write outside the workspace — creating a temp file outside the repo works — and watch what happens: blocked by the sandbox first, then an approval prompt. That's on-failure behaving as designed. If the command sails through with no prompt at all, stop and check your tiers before continuing.

  5. 05
    Set the red lines

    Write the never-loosen list: secrets and credentials, production configs, global installs, and irreversible outbound operations (publish, delete) stay manual. Always. These are the items you don't negotiate with yourself about late on a Friday.

  6. 06
    Confirm in-session

    Glance at the tier shown in the UI when you start work; if you're unsure which switching commands this version supports, type /help and check.

  7. 07
    Write it into team convention

    Put the recommended tiers and the red-line list into the README or AGENTS.md, so the rules travel with the repo instead of anyone's memory.

RESULTDaily sessions auto-execute inside the workspace by default; the self-test shows the sandbox block and the approval prompt; the team has a written loosening boundary.

Want today's verdict? Back to the live radar.

More Workflow Setup playbooks SAME CATEGORY

🎯 Any confirmed public reset today?
Open the signal radar for sourced announcements; personal allowance and exact reset time remain in Usage.
Open the signal radar →