agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

[Bug]: Codex Chat reviewer cannot read or submit when its read-only sandbox fails to start

Open chr1syy opened this issue 1 month ago • 3 comments

What went wrong?

On the official AO v0.14.8 Linux amd64 Debian build, the native Codex Chat reviewer starts and finishes its model turn but cannot perform the required read/post/submit operations when the host rejects its read-only sandbox setup.

The review run then becomes failed with an empty verdict and provider-review ID:

reviewer Chat turn ended without submitting a result

The native tool trace contains the earlier, actionable error instead:

bwrap: setting up uid map: Permission denied

This occurs before commands such as gh api and ao review submit start. A connected-provider posting attempt was also rejected under the reviewer's approvalPolicy=never. The model turn itself was recorded as completed, so the final review error obscures the actual blocked submission path.

Environment and reproduction

  • Official desktop Debian package: agent-orchestrator 0.14.8 amd64.
  • Release/tag revision: 403a8c8385ed43bbf9e9289e3f3bbaa6517dc437.
  • Installed original daemon was byte-identical to the checksum-verified official release package. Its build metadata reports vcs.modified=true; the full release-build dirty diff was not reconstructed.
  • Codex CLI in the original native trace: 0.166.0.
  • Reviewer policy: read-only sandbox and approvalPolicy=never.
  1. On a Linux environment where Codex's namespace/sandbox setup is denied, trigger a native Codex Chat review of an owned PR: ao review trigger <worker-session> --pr <PR-URL> --agent codex.
  2. The reviewer's required shell operations fail with the bwrap error above, including posting and AO submission.
  3. The model turn ends; ao review ls reports a failed run without a verdict or provider-review ID.

Repeated native runs showed the same sequence. This report does not establish which underlying Linux policy denied the namespace setup.

Expected behavior

Keep the reviewer's preventive read-only boundary, while providing a supported, narrowly authorized route to read the pinned review context and deliver the review result. If the execution environment cannot support that contract, fail preflight with the concrete sandbox/tool error rather than launching a review that cannot submit.

Broad shell access or disabling the sandbox is not the requested fix.

Local validation of a possible direction

A local prototype exposes AO-owned, run/PR/head-bound structured MCP read/completion tools, reusing existing provider, completion and owner-delivery paths. The read-only/never policy remains unchanged. It validates provider receipts and reconciles uncertain outcomes instead of blindly posting again.

  • The same MCP-dispatch / read-context / AO-submit regression is RED against the pristine tag and GREEN with the prototype. Provider responses in this regression are fixtures.
  • Relevant CLI, review, gateway, Codex-driver and daemon suites, focused race checks, vet, build and pristine patch-application checks passed.
  • After installing the local prototype, one controlled real Codex review read the repository guides and pinned diff, posted a real GitHub COMMENT at the correct commit, and reached AO complete / approved with the matching provider-review ID. This confirms the original failure was avoided for that probe; it is not an upstream release or a claim of broad live coverage. AO's internal approval is not a GitHub approval.

Related, distinct cases

  • #6820: Linux sandbox PID visibility makes AO submission reject a live daemon after a successful GitHub post. Here, the commands never start and neither post nor submit can run.
  • #7149: the generic failed-review message hides the underlying cause.
  • #7065 / #6024: shell-quoted payload/file-handoff limitations. This case fails before payload parsing because sandbox initialization itself is denied.

No private repository names, PR URLs, session/run identifiers, credentials, customer data or raw transcripts are included.

chr1syy avatar Nov 03 '26 10:11 chr1syy

This is a bug report. Check that nobody has claimed it, comment to claim it, and open a PR with Fixes #7664.

See the contributing guide. Think the classification is wrong? Tell us on Discord.

OrcInc avatar Nov 03 '26 10:11 OrcInc

i want to claim it

TheEleventhAvatar avatar Nov 03 '26 11:11 TheEleventhAvatar

@nikhilachale Please look into this

Rishet11 avatar Nov 03 '26 12:11 Rishet11