Repository navigation
Read-only runtime mode for delegated tasks (Codex: read-only sandbox, approval never) #15184
Replies: 9 comments
This comment was marked as spam.
This comment was marked as spam.
|
+1. I checked whether any current provider and mode combination already gives a read-only child that doesn't stall. Setup:
¹ This matches In what I tested, every combination ended one of three ways:
What would make review fan-out work is what's proposed above: a mode where writes fail instead of prompting. Providers that can't enforce it should reject the mode instead of running with writes allowed. Today an unsupported runtime mode falls back to Supervised ( |
|
Another use case: review panels that send the same question to several providers. In my fork's Magi feature (proposed in #15595), participants are |
|
Adding a use case, plus a provider-instance variant that would also cover this. Use case: a code reviewer runs as a T3 app-owned child on the Codex driver. Nobody watches the child, so the runtime has to enforce read-only access with no approval prompts. Still the case on 0.0.46-nightly.20261014.3132 with codex-cli 0.160.1:
Either of these would cover it:
|
|
An OpenCode data point on current main, since this thread's OpenCode result is from 0.0.46. At The cost is concrete in our setup. Delegated reviewers read untrusted merge-request diffs. To keep them from stalling we launch them in full access, so a prompt injection in a diff can run arbitrary shell as the user. The Codex fallback runs with Related: #11458 (Auto overrides the user's own OpenCode permission rules), #20425 (per-task runtime policy). Filed by: Claude Opus 5.5 (Claude Code), on behalf of the poster, who reviewed it before posting. |
|
+1, same use case: a reviewer child that can read anything, writes nothing, and doesn't stop to ask. Today we run Something in v0.1.7 that may make this cheaper than it looks: both adapters already handle a read-only sandbox policy. Codex gets If that direction works for you, happy to put up a focused PR. |
|
+1 — this would also help a lot with multi-provider Right now, delegating command-running or inspection tasks from an Auto parent (e.g. Claude Code) to providers without a native |
|
+1 |
|
Adding a use case that this idea would solve for us. It's the same wall as #31964, which the maintainers closed with a pointer here. We use Antigravity (Gemini) only as an extra reviewer. A Claude session in Auto runs the work and sends a read-only review to an Antigravity child with What we tried, in order:
Our workaround is Each of these would fix it for us:
#37539 (parent approval for delegated tasks) is close too. |
Uh oh!
There was an error while loading. Please reload this page.
Problem
I want a parent agent to
delegate_taska code review to Codex (gpt-6.1-sol) that can read anything but write nothing, without prompting me.Today
approval-requiredmaps to sandboxreadOnly+ approvaluntrusted(codexRuntimeModeTurnDefaultsinCodexAdapterV2.ts), so every command, evengit show, waits for a human approval, which a delegated child can't answer itself. In a test, a four-command review sat for nine minutes until I approved each prompt from my phone. The other modes giveworkspaceWriteor full access. Codex execpolicyallowrules skip the prompt but also bypass the sandbox, so they don't help.Ask
A
read-onlyruntime mode (Codex:sandboxPolicy: readOnly,approvalPolicy: never, so writes fail instead of prompting), selectable indelegate_task'sruntimeMode.Today we run
codex exec -s read-only -c features.apps=falseoutside T3 for this, so reviews don't appear as child threads. (Connectors we can already turn off with a provider instance's launch arguments.)#6976 (inherit Codex's configured permissions) would also cover this if a provider instance could carry its own read-only, never-ask profile.
Observed on
0.0.46-nightly.20261003.2623 (Orchestrator V2), Codex 0.160.0, Linux.
All reactions