Skip to content
Source
Sign inSign up
pingdotgg/t3code

test(orchestrator): Align post-merge CTM fixtures #4193

Mergedmwolson(GitHub profile, opens in a new tab)merged 1 commit intot3code/codex-turn-mapping fromrefs/pull/4193/headmerged by juliusmarminge View on GitHub

Summary

  • Align explicit server-home assertions with the orchestrator v2 userdata-v2 state directory.
  • Update two Claude replay query.open frames for the current read-only tool availability policy.
  • Restore the CTM Test job after the #3578 merge and related Claude policy updates.

Problem and Fix

Problem and Why it HappenedFix
Two CLI configuration tests still expected the pre-v2 userdata directory even though explicit server paths resolve under userdata-v2.Update the state directory and database path assertions to match production path derivation.
Two Claude replay transcripts still expected the unrestricted claude_code tool preset after CTM began passing explicit read-only tool lists.Update only the recorded query.open frames to expect Read, Glob, and Grep, including allowedTools where the runtime policy supplies it.

Validation

  • Latest-base focused CLI config, desktop environment, and orchestrator replay fixtures: 17 tests pass, 1 skipped
  • vp check: pass with existing warnings only
  • vp run typecheck: pass
  • Grok implementation self-review: pass
  • Codex independent review: no findings

Note

Align CTM test fixtures to use explicit tool lists and userdata-v2 state directory

  • Updates claude_transcript.ndjson fixtures in tool_call_read_only_on_request and tool_call_restricted_granular to expect an explicit ["Read", "Glob", "Grep"] tool list instead of a {type: "preset", preset: "claude_code"} object; tool_call_read_only_on_request also adds allowedTools to the expected payload.
  • Updates config.test.ts assertions to expect stateDir and dbPath under userdata-v2 instead of userdata.
Macroscope summarized 3ec80f3.

Note

Low Risk Only test assertions and recorded replay fixtures change; no production code paths are modified.

Overview Brings post-merge CI fixtures in line with orchestrator v2 path layout and the current Claude agent tool policy—test and replay expectations only, no runtime behavior changes.

CLI config tests now assert stateDir and dbPath under userdata-v2 instead of userdata, matching explicit-server deriveServerPaths behavior after the v2 state directory switch.

Two orchestration-v2 Claude replay transcripts update the expected query.open payload: the unrestricted claude_code tool preset is replaced with an explicit ["Read", "Glob", "Grep"] list (and allowedTools on the read-only-on-request scenario) so CTM replay matches how CTM now opens sessions with read-only tools.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 3ec80f37808a9f9634209608005c9a2b937bdf68. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      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

      Run ID: 05ca0a5a-8ece-42a8-b16b-064f816bad2d

      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

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Approvability

      Verdict: Approved

      All changes are confined to test files and test fixtures, with no production code modified. The updates align expected values after a merge, with zero runtime behavior impact.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. juliusmarminge merged this4ed2ccc

    5. juliusmarminge closed this

Sign in to join this conversation.