Repository navigation
test(codex): trim duplicate app-server regressions - #124141
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 5:54 AM ET / 09:54 UTC. ClawSweeper reviewWhat this changesRemoves three Codex app-server regression tests that the branch describes as subsets of broader retained wire-level and terminal-sequence coverage. Merge readinessKeep open for maintainer review: this is a coherent test-only consolidation, but its rationale depends on upstream Codex protocol semantics that cannot be independently checked because the required sibling Codex checkout is absent. The protected maintainer label also prevents automated cleanup. Priority: P3 Review scores
Verification
How this fits togetherThe Codex plugin translates app-server notifications into OpenClaw assistant output and sends resolved approval and sandbox policy in thread and turn requests. These tests protect the event projector’s terminal-answer selection and the connection path’s policy propagation. flowchart LR
A[Codex app-server notifications] --> B[OpenClaw event projector]
B --> C[Assistant candidate selection]
C --> D[Assistant transcript output]
E[Resolved approval and sandbox policy] --> F[Connection preparation]
F --> G[Thread and turn requests]
G --> A
Decision needed
Why: The local tests indicate overlap, but repository policy forbids a Codex dependency-contract verdict without the acting reviewer directly inspecting the sibling Codex source. Before merge
Agent review detailsSecurityNone. PR surfaceTests -92. Total -92 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one owner-boundary regression per behavior only after a maintainer independently verifies the cited Codex protocol semantics; otherwise restore the narrowly targeted test whose contract cannot be confirmed. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes only test coverage and reports no production defect to reproduce. Is this the best way to solve the issue? Unclear: local source supports the consolidation, but direct upstream Codex contract inspection is required before calling it the best safe coverage reduction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c9da900a961e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for
Direct Codex contract proof at sibling SHA
Production delta: 0. Tests: -92. No behavior, docs, config, schema, protocol, dependency, or changelog change. |
|
Merged via squash.
|
What Problem This Solves
Removes three Codex app-server tests that repeat stronger regressions at the same or more observable boundary: an intermediate prepared approval-policy assertion, a simple unphased replacement sequence, and a plain silent-final sequence.
Why This Change Was Made
The retained wire-level yolo test verifies both
thread/startandturn/startapproval/sandbox payloads. The retained unphased-plus-silent-final sequence proves replacement survives a later terminal item. The retained JSON silent payload test captures the structured regression, while the shared delivery contract independently covers plain, padded, and JSON silent classification.Direct sibling Codex inspection confirms the underlying contracts: phase is optional with legacy-final semantics,
turn/completed.itemsis only a last-message summary, andNeveris the no-approval policy applied through turn settings.User Impact
No runtime behavior changes. Codex coverage stays focused on the strongest wire and event sequences instead of retaining simpler subsets.
Evidence
extensionTestschanged gate passed through the documented trusted-source local fallback because no Crabbox/Testbox provider was ready; extension test typecheck, formatting, lint, dead-export scan, and plugin/dependency guards passed.git diff --checkpassed.2ca575026cef066a58c70f6bdee4feafa6e63d3ainspected:codex-rs/protocol/src/items.rs:116-134andmodels.rs:794-808codex-rs/app-server/src/thread_state.rs:174-187codex-rs/app-server/src/bespoke_event_handling.rs:979-1034,1277-1302codex-rs/app-server-protocol/src/protocol/v2/thread_data.rs:268-300codex-rs/protocol/src/protocol.rs:914-937codex-rs/app-server/src/request_processors/turn_processor.rs:532-550,685-824Production delta: 0. Tests: -92. No docs, config, schema, protocol, dependency, or changelog change.