test(orchestrator): align Codex approval reviewer replays#4457
Conversation
Codex turn starts now send an explicit user approvals reviewer so switching away from auto-review cannot retain stale state. Update all deterministic replay expectations to assert that protocol field. Co-authored-by: codex <codex@users.noreply.github.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
ApprovabilityVerdict: Approved Test-only change adding You can customize Macroscope's approvability policy. Learn more. |
Summary
turn/startexpectation with the explicitapprovalsReviewer: userfield now emitted by the adapterVerification
OrchestratorReplayFixtures.integration.test.ts -t codex: 18 passedOrchestratorReplayRecovery.integration.test.ts -t Codex: 1 passedThreadFork.integration.test.ts -t Codex: 2 passedThreadMergeBack.integration.test.ts -t codex: 2 passedgit diff --checkpassedNote
Low Risk
Test fixture updates only; no production behavior changes.
Overview
Updates deterministic Codex app-server replay fixtures so every
turn/startexpect_outboundframe includesapprovalsReviewer: "user", matching what the Codex adapter now sends on outbound turns.This is a fixture-only change across orchestration-v2 testkit scenarios (simple turns, multi-turn, steering, plan mode, forks, subagents, merge-back, etc.); no runtime code is modified. Replay tests should match adapter output again instead of failing on the missing field.
Reviewed by Cursor Bugbot for commit 4b16961. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add
approvalsReviewer:"user"to Codex orchestrator replay fixturesUpdates all
codex_transcript.ndjsonreplay fixtures in the orchestration-v2 testkit to includeapprovalsReviewer: "user"in theparamsobject of everyexpect_outboundturn/startframe. This aligns the fixtures with the current expected behavior where the approvals reviewer is set to"user"on each turn start.Macroscope summarized 4b16961.