Repository navigation
fix(codex): gate native runs before agent start - #128400
johnny7861532 wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Codex review: needs real behavior proof before merge. Reviewed August 23, 2026, 7:02 PM ET / 23:02 UTC. ClawSweeper reviewWhat this changesThe PR adds a fail-closed Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 13 items remain Keep this PR open: the proposed gate can be bypassed by a plugin harness, leaks thrown hook text to logs, and still permits app-server prewarm before a block decision. Priority: P1 Review scores
Verification
How this fits togetherThe embedded runner selects a harness and passes an attempt into the Codex extension. The extension prepares prompt and tool state, then starts a Codex app-server process and its turn; this gate is intended to stop that path before model work begins. flowchart LR
A[Incoming agent turn] --> B[Embedded runner]
B --> C[Plugin harness handoff]
C --> D[Codex admission gate]
D -->|allow| E[Codex app-server]
D -->|block| F[Redacted blocked result]
E --> G[Native model turn]
Decision needed
Why: The PR changes which plugin-owned code can bypass a configured fail-closed gate and adds a public SDK helper, so the permanent trust boundary cannot safely be inferred from this branch alone. Before merge
Findings
Agent review detailsSecurityNeeds attention: The patch exposes a writable authorization decision to plugin-owned code and can log sensitive gate input through thrown errors. PR surfaceSource +292, Tests +582, Other +3. Total +877 across 12 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep admission state closure-bound in the host, run the gate before any prewarm, redact thrown-hook logs, and expose only a deliberately approved narrow SDK capability if Codex needs one. Do we have a high-confidence way to reproduce the issue? Yes for the source paths: a non-builtin harness can preseed the exposed memo, and runtime preparation invokes app-server prewarm before the new gate; no live app-server reproduction was run in this read-only review. Is this the best way to solve the issue? No: the fix must make admission host-owned, run it before prewarm, and use the existing redaction precedent rather than expose writable state and raw exceptions. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3d302c58c6e9. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Summary
before_agent_runadmission for native Codex app-server attempts before lifecycle start and model-input eventsVerification
Security