Skip to content

test(orchestrator): align Codex approval reviewer replays#4457

Merged
juliusmarminge merged 1 commit into
t3code/codex-turn-mappingfrom
codex/fix-codex-replay-approvals-reviewer
Jul 24, 2026
Merged

test(orchestrator): align Codex approval reviewer replays#4457
juliusmarminge merged 1 commit into
t3code/codex-turn-mappingfrom
codex/fix-codex-replay-approvals-reviewer

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Jul 24, 2026

Copy link
Copy Markdown
Member

Summary

  • update every deterministic Codex turn/start expectation with the explicit approvalsReviewer: user field now emitted by the adapter
  • preserve exact replay matching for reviewer-mode transitions
  • unblock the identical 23-test failure affecting the current target and all three remaining merge-lane PRs

Verification

  • OrchestratorReplayFixtures.integration.test.ts -t codex: 18 passed
  • OrchestratorReplayRecovery.integration.test.ts -t Codex: 1 passed
  • ThreadFork.integration.test.ts -t Codex: 2 passed
  • ThreadMergeBack.integration.test.ts -t codex: 2 passed
  • targeted project lint/format checks passed (NDJSON is ignored by the formatter; the adjacent replay test was checked)
  • git diff --check passed

Note

Low Risk
Test fixture updates only; no production behavior changes.

Overview
Updates deterministic Codex app-server replay fixtures so every turn/start expect_outbound frame includes approvalsReviewer: "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 fixtures

Updates all codex_transcript.ndjson replay fixtures in the orchestration-v2 testkit to include approvalsReviewer: "user" in the params object of every expect_outbound turn/start frame. This aligns the fixtures with the current expected behavior where the approvals reviewer is set to "user" on each turn start.

Macroscope summarized 4b16961.

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>
@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 99ef7d77-1092-4be0-a21e-8884553cfc03

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-codex-replay-approvals-reviewer

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Jul 24, 2026
@macroscopeapp

macroscopeapp Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved

Test-only change adding approvalsReviewer field consistently across 27 test fixture files. No production code modified, purely mechanical alignment of test replay data.

You can customize Macroscope's approvability policy. Learn more.

@juliusmarminge
juliusmarminge merged commit c6b0ceb into t3code/codex-turn-mapping Jul 24, 2026
15 checks passed
@juliusmarminge
juliusmarminge deleted the codex/fix-codex-replay-approvals-reviewer branch July 24, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant