Repository navigation
Description
Environment
- OpenClaw
2026.6.5(latest non-beta; re-verified reproducing 2026-06-11). The
2026.6.6-beta.1changelog only tightens exec ("fail closed on timeout") and does not
mention this coupling. - macOS host, single-gateway, multi-agent fleet (system-LaunchDaemon gateway).
- Exec configured per-agent; some agents
tools.exec.security: "allowlist", others
unrestricted (full). Sandbox is off for every agent (runtime: direct, mode: off).
Summary
After moving to 2026.6.5, agents whose exec policy is security: "allowlist" behave as if
network-isolated and write-restricted: outbound HTTP from allowlisted helper scripts fails, and
writes to paths outside the agent workspace do not land (some calls return
{"status":"declined"}). Agents with unrestricted exec on the same gateway, with
byte-identical sandbox configuration, are unaffected. There is no documented configuration
key to restore network/write for an allowlist-mode agent while keeping the allowlist, and no
startup warning or log line indicating that allowlist mode implies this isolation.
Steps to reproduce
Observed on a production single-gateway fleet (evidence + ruled-out causes below);
this is the hypothesised minimal repro — I have not yet isolated it on a clean
throwaway install, so treat the exact minimal steps as the likely shape, not verified.
- Single gateway, two agents, identical
sandboxblocks (or sandbox effectively off). - Agent A:
tools.exec.security: "allowlist", allowlist permits one helper script that makes
an outbound HTTPS request (e.g.curl/wgetto a public endpoint) and writes a file outside
the agent workspace. - Agent B:
tools.exec.security: "full", same script. - Trigger the script in both agents.
Expected
security governs which commands may run, not network/filesystem reachability of permitted
commands. An allowlisted command that is permitted to run should have the same host
reachability as the same command under full — isolation should be controlled by the
sandbox layer, which is identical here. (Docs frame sandbox, tool policy, and elevated as
separate layers: https://docs.openclaw.ai/gateway/sandbox-vs-tool-policy-vs-elevated)
Actual
Under allowlist, the permitted command runs but has no network and cannot write outside the
workspace. Under full, the identical command on the identical sandbox config has full
reachability. The difference correlates only with tools.exec.security, not with any
sandbox setting.
Ruled out (read-only live probe, 2026-06-10 / 06-11)
A read-only diagnostic on the live fleet eliminates the obvious alternative explanations, which
is what points at the exec-enforcement layer rather than the sandbox:
- Not an auto-created Docker sandbox (rules out [Bug]: Sandbox enabled by default on update breaks all exec for existing single-user setups #58885 / H1). There is no
dockerbinary on
the host and noopenclaw-sbx-*container exists, so the 2026.4.1 auto-sandbox breakage
pattern does not apply here. sandbox explainis byte-identical between a jailedallowlistagent and a freefull
agent: both reportruntime: direct, mode: off, workspaceAccess: none, Elevated: enabled:true.
The sandbox layer is therefore not the differentiator between the two behaviours.- No sandbox is configured to differ:
agents.defaults.sandboxisnoneand every agent
inherits it (sandbox: <inherit>). - Not a config rewrite by the upgrade: the exec-approvals file still uses the legacy
security/askFallbackkey shape, and a diff against the pre-upgrade backups shows only
intended allowlist additions — no migration touched these agents' exec or sandbox config. - The only property that correlates with the jail is
tools.exec.security: "allowlist".
Net: the network/write isolation is being applied by the allowlist-exec enforcement path
itself in 2026.6.5, not by the sandbox layer, and it is undocumented. (Note: PR #89756 is a
different change — it renames exec-policy config to mode/full-always and does not control
sandbox filesystem/network reachability — so it is not the fix for this.)
Impact
- Allowlist mode is the recommended least-privilege posture
(https://docs.openclaw.ai/gateway/security). Coupling it to a silent network/write jail
pushes operators towardsecurity: "full"ortools.elevated(host escape) to regain basic
function — the opposite of least privilege. - Agents that legitimately need narrow network access (one allowlisted fetch script) plus the
safety of an allowlist have no documented middle ground. (Our interim workaround is a
separate non-agent relay that performs the fetch/write outside the jail and hands results back
as data — i.e. we had to add a moving part specifically to avoid widening exec privilege.)
Docs / DX gap
- The exec security modes are documented
(https://docs.openclaw.ai/tools/exec —deny/allowlist/full, per-host defaults) but
nothing states thatallowlistimplies network or write isolation, nor names a key to
re-enable it. The exec-approvals docs explicitly say approvals are "not … a filesystem
read-only policy" (https://docs.openclaw.ai/tools/exec-approvals), which contradicts the
observed write-jailing. - No startup warning or runtime log distinguishes "command denied by allowlist" from "command
ran but was network/write-jailed." This is the same class of silent cross-layer interaction
raised in [Feature]: Gateway should detect and warn about silently conflicting exec/sandbox/elevated configurations at startup #31036 (closed as not planned), and is adjacent to the auto-sandbox exec breakage
in [Bug]: Sandbox enabled by default on update breaks all exec for existing single-user setups #58885.
Questions for maintainers
- Is allowlist-mode network/write isolation intended in 2026.6.5? If so, where is it documented?
- What is the supported key to grant an allowlist-mode agent narrow egress and/or an
external-write path without switching tofullortools.elevated? - Can the gateway emit a startup/log warning when an allowlisted command is permitted but then
network/write-restricted, so the two failure modes are distinguishable?
Suggested labels: bug, exec, sandbox, docs.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 14, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 13, 2026, 11:01 PM ET / 03:01 UTC.
Summary
Keep open: current main and latest stable still show a Codex app-server path where non-full exec policy is paired with workspace-write/no-network sandboxing or approval declines, while the docs describe allowlist as command approval rather than filesystem/network isolation.
Reproducibility: no. high-confidence live repro was established here; source inspection gives a medium-confidence Codex path where non-full exec policy maps to workspace-write/no-network sandboxing or approval declines despite docs framing allowlist as command approval.
Ways to help us reproduce this
Next step
Security/product owners should choose the intended Codex allowlist sandbox contract before an automated fix changes config or defaults.
Security
Needs attention: The issue is security-sensitive because unclear allowlist/sandbox coupling can leave operators choosing between restricted allowlist behavior and broader full/elevated authority.
Review details
Best possible solution:
Keep the issue open until maintainers choose and document the Codex allowlist sandbox contract, then align runtime mapping, docs, tests, and live proof around that decision.
Do we have a high-confidence way to reproduce the issue?
No high-confidence live repro was established here; source inspection gives a medium-confidence Codex path where non-full exec policy maps to workspace-write/no-network sandboxing or approval declines despite docs framing allowlist as command approval.
Is this the best way to solve the issue?
No, not as a narrow automated fix yet; the best solution needs maintainer security/product review before changing defaults or adding a new documented knob.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 7fb0d45b48e1.
Label changes
Label changes:
clawsweeper:fix-shape-clear: Current issue advisory state no longer selects this label.Label justifications:
P2: This is a normal-priority security/config behavior issue with limited blast radius but real operator impact for allowlist-mode agents.impact:security: The issue concerns exec allowlist, sandbox, network, and filesystem permission boundaries that can push users toward broader full or elevated access.Evidence reviewed
Security concerns:
extensions/codex/src/app-server/config.ts:781Current Codex app-server behavior maps non-full modes to workspace-write/no-network sandboxing or declines approvals, while docs describe allowlist as command approval; maintainers should decide the intended permission boundary before repair.
Confidence: 0.84
Acceptance criteria:
What I checked:
AGENTS.md:1, 7fb0d45b48e1)docs/tools/exec-approvals.md. (docs/tools/exec-approvals.md:63, 7fb0d45b48e1)docs/tools/permission-modes.md. (docs/tools/permission-modes.md:50, 7fb0d45b48e1)src/agents/bash-tools.exec.ts:1525, 7fb0d45b48e1)extensions/codex/src/app-server/config.ts:781, 7fb0d45b48e1)Likely related people:
extensions/codex/src/app-server/config.ts,extensions/codex/src/conversation-binding.ts,src/agents/bash-tools.exec.ts)extensions/codex/src/app-server/config.ts,extensions/codex/src/conversation-binding.ts,docs/tools/exec-approvals.md)docs/tools/permission-modes.md,extensions/codex/src/app-server/config.ts)extensions/codex/src/app-server/config.ts,src/infra/exec-approvals.ts,docs/tools/exec-approvals.md)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.jamesmcdproject commentedon Jun 19, 2026
Reporter here with a high-confidence live repro.
Setup: 2026.6.5, an exec-capable agent with
security: "allowlist"on its exec policy.Expected: allowlist gates which commands may run; approved commands retain normal host network + filesystem access (per
docs/tools/exec-approvals, which frames allowlist as command approval, not an egress/write jail).Actual: the agent loses all outbound network and all external (non-cwd) filesystem writes. Scripts that fetch over HTTPS or write outside the turn cwd fail under the sandbox. Switching the policy to
fullrestores both immediately — there is no intermediate posture.This lines up exactly with the
extensions/codex/src/app-server/config.ts:781mapping noted in the review (non-full→workspace-write+networkAccess: false, writes confined to cwd).Our workaround was to move the path-locked scripts out of the agent entirely, onto a separate non-agent process that runs outside the jail. A documented narrow egress / external-write grant for allowlist mode (option b in the review's decision set) would let us retire that workaround. Happy to provide further redacted logs if useful.
jinngimk-lang commentedon Aug 31, 2026
steipete commentedon Oct 24, 2026
Thanks for filing this. We're closing older issues that no longer look actionable on current
main.The Codex app-server exec path has changed substantially since 2026.6.5, and we could not confirm the allowlist network/write coupling on current main. If allowlist agents still lose network or external-write access on a current release, please open a fresh issue with the config and a controlled comparison.