Repository navigation
fix(live): keep Codex assertions broker-safe - #150475
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 2:22 AM ET / 06:22 UTC (Revision 5). ClawSweeper reviewWhat this changesThe PR checks Codex session ownership and deletion through Gateway responses and freshly observed thread identities instead of reading plugin storage from the test worker. Merge readiness✅ Ready for maintainer review The repair remains useful on current main, and both earlier findings are addressed. No blocking defect was found in the revised assertions; this member-authored, protected PR should remain open for the normal merge process. Priority: P2 Review scores
Verification
How this fits togetherThe Codex live suite sends requests through an isolated OpenClaw Gateway to the Codex runtime. It observes replies and lifecycle events to verify that sessions retain their own native threads and release ownership correctly. flowchart LR
A[Live test worker] --> B[Gateway requests]
B --> C[Codex plugin]
C --> D[Native Codex threads]
C --> E[Gateway lifecycle events]
D --> E
E --> F[Fresh identity assertions]
B --> G[Session deletion and resume checks]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -35. Total -35 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep storage access with the Gateway owner and verify ownership through fresh native-thread observations, sibling continuity, and successful reattachment after deletion. Do we have a high-confidence way to reproduce the issue? Yes, from source: the original probes call shared-state storage from a test worker, while the store explicitly requires host-broker admission. No failing live run was executed during this read-only review. Is this the best way to solve the issue? Yes. Reusing Gateway requests and request-scoped lifecycle observations respects the storage owner while retaining observable rejection, continuity, deletion, and reattachment checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c49879668263. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
c2ca5fb to
f746857
Compare
f746857 to
19faed3
Compare
19faed3 to
28da231
Compare
* fix(live): keep Codex assertions broker-safe * test(codex): observe broker bindings after rejection
Summary: assert Codex ownership and deletion behavior through gateway-visible session and thread state instead of direct plugin-state database reads from a Vitest worker. Validation: pnpm check:changed. Refs FRV 35164828118.