Skip to content

Scenario runner: a recorded replay re-sends no MCP write, so every applied operation fails on replay #33737

Closed

Description

@objectstack-fleet

epic:#33595#1 · os-tesla · session_01L9qiby1cctpVpRbJzjccvY

Filing-gate category: ③ maintainer-directed child of #33595 (M2 row of its milestone table). Maintainer, 2026-11-15 02:10Z: 「你建议的任务全部立卡,你负责开 devx 车道派发处理」; 08:36Z, on the epic seat's decision card "M2/M3 的行现在立卡吗?立了交给谁派发?": "立卡,留给本专题席位派发". Also ① tooling defect with a measured reproduction (eval#1, 2026-11-15).

Mechanism

packages/qa/scenarios/src/runner/driver.ts RecordedDriver.ask() returns the recorded ParsedTurn for the step key and sends nothing. The tool calls in that turn, including the agent's MCP writes, never reach the freshly booted app. The runner then reads the operation's effect back from that app (observe.ts), finds no row, and grades an applied operation as failed. Measured by eval#1 on main 36936440: haiku crm_account_with_contacts operations 3/5 live → 1/4 on replay, add_contact "0 row(s) read back".

Why it matters

Replay is how the eval seat re-scores recorded runs after a grader change without paying for models again. It is valid for Build and 问数 today, but operation scores on replay are false fails, so the operations half cannot be re-scored and every replay table has to footnote it.

Done when

  • On --driver recorded:F, each operation turn's recorded MCP write calls are re-sent to the booted app as the same persona, in order, before the read-back. Alternatively, when a turn cannot be re-sent faithfully, every operation it carries is NOT MEASURED with a named reason, never failed.
  • A test replays a recorded applied operation and reads the row back. A recorded refused write still gets its refusal.
  • The eval#1 measurement above is reproduced green, or reported as not measured with its reason.

Reader

The epic seat epic:#33595#1 dispatches it to os-dev (domain:devx, packages/qa/scenarios), serial with the other M2 runner cards where files overlap.

Dedup: repo:objectstack-ai/objectstack is:issue recorded driver replay applied → 206 hits; the top ones (#33676, #33411) are other defects, all closed; none names replay of operation writes.

Activity

  1. added
    domain:devx
    pm:epic
    area:devpath
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: grade → p2 · 2026-11-15T08:49Z

    ⛔ Not a claim; the pm:epic reservation for epic #33595's seat is unchanged.

    Filed without a grade. This is scenario runner/grader tooling under epic #33595 (eval scoring v2), so tooling p2 (#32997). The epic seat may re-grade inside its epic.

  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#33595#1 · os-tesla · session_01L9qiby1cctpVpRbJzjccvY

    Claim: PM loop M2 round 1 · epic #33595 M2 · 2026-11-15T09:22Z
    Session: session_01L9qiby9eoofRB23PSVqcuM (card thread; seat session_01L9qiby1cctpVpRbJzjccvY)
    Account: os-tesla
    Branch: claude/project-thread-kv3s20 (the card thread's harness-pinned branch; the thread can push only this name)
    Worktree: objectstack-issue-33737
    Domain: domain:devx
    Seat: epic:#33595#1
    File surface: packages/qa/scenarios/src/runner/driver.ts (RecordedDriver), the operation-turn MCP hand-off in runner/orchestrate.ts, tests and fixtures under packages/qa/scenarios/test/runner/**, its own changeset (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default (dispatch-gates --tier: no path-derived mandate, read on 412fbf76), effort: xhigh (epic child)
    Clause-②: no (yes (widening) if a driver type widens, per the frame)
    Metadata-protocol: none
    Responsibility: the scenario evaluation runner/grader in objectstack (RecordedDriver.ask re-sends no recorded MCP write); no platform path covers it; reached by eval#1's scenario runs and the model comparison on #33595
    Thread-read: 6891924687
    Premise: holds (seat read the named symbols on origin/main 412fbf76 while filing; the thread re-measures first, per the order)
    Serial constraints cleared: beside queue ①: off cli.ts, scorecard.ts and the TurnSummary shape; touches driver.ts beside #33739, which edits only ClaudeCodeDriver argv

    Order: /mnt/project-files/epic-33595-1/r2026-11-15-m2/dispatch-33737.md under that folder's FRAME.md. Contract review: arranged by this seat.

  4. added
    pm:dispatched
    on Nov 15, 2026
  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#33595#1 · os-tesla · session_01L9qiby9eoofRB23PSVqcuM
    os-dev-report

    {
     "issue": 33737,
     "status": "done",
     "branch": "claude/project-thread-kv3s20",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/33764",
     "session": "session_01L9qiby9eoofRB23PSVqcuM",
     "premise_still_valid": true,
     "summary": "RecordedDriver.ask re-sends a recorded turn's MCP writes (create/update/delete_record, run_action) in recorded order through a new optional AskTask.callTool that runHalf binds to the persona's key via AppHarness.callTool; reads are never re-sent, a refused write must meet the same refusal, and a created row's recorded id is remapped to the replayed app's id. Any answer differing from the recorded run, or a write with no recorded answer (nothing of that turn re-sent), throws ReplayNotFaithfulError and runHalf records the question/operation NOT MEASURED naming the call, never a fail. Measured: 79 recordings, 533 writes, 0 unanswered, 0 mixed turns. eval#1 haiku crm replay: main 53f5a4c9 ops 1/4 + 1 nm (add_contact '0 row(s) read back'); branch 5bdadc88 ops 3/4 + 1 nm, add_contact and move_eli pass as live.",
     "tests": "pnpm --filter @objectstack/scenarios test on 58da7e9c: Test Files 32 passed, Tests 790 passed; after main merge 20d149c6: typecheck + test exit 0, 790/790. orchestrate.test.ts 55/55 (8 new). Ablation via scripts/ablation-replace.mjs (re-send guard to unconditional return, anchor 1->0, blob e66c5893->32a70041): 10 failed in orchestrate.test.ts; restored, git diff HEAD empty. No dist ablation needed: tests import src.",
     "gates": "dispatch-gates --commands on 58da7e9c: 62 families, all exit 0 (check-plugin-teardown-shape --self-test after fetching 621a4876; check:dual-build-cjs-loads after turbo build ./packages/**); --ran reconciliation 62 derived, 62 run, 0 NOT-MEASURED, 0 UNRUN; @objectstack/scenarios build + typecheck exit 0; eslint on 3 changed sources exit 0. CI check-runs: in_progress at report time.",
     "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
     "line_budget": "878 additions / 25 deletions over 6 files (485 of them the verbatim recording fixture); under 3,000",
     "deviations": [
      "README.md (packages/qa/scenarios) one replay sentence: outside the claim's surface; dropped, then restored after the seat widened the surface to that line",
      "merged origin/main once before pr_create (a557fa38); package typecheck + test re-run after it"
     ],
     "files_changed": [
      ".changeset/33737-replay-resends-recorded-writes.md",
      "packages/qa/scenarios/README.md",
      "packages/qa/scenarios/src/runner/driver.ts",
      "packages/qa/scenarios/src/runner/orchestrate.ts",
      "packages/qa/scenarios/test/runner/fixtures/eval-haiku-crm-replay.recording.json",
      "packages/qa/scenarios/test/runner/orchestrate.test.ts"
     ],
     "mcp_calls": "6 — read-only: issue_read x5 (get x2, get_comments x3), pull_request_read x1 (get); no MCP write tool",
     "api_writes": "2 relay writes — pr_create (fleet-write run 43700553942, PR #33764) and this os-dev-report comment (post-stamped); git push not counted",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none · noted, not filed: two local replays scaffolded a project whose install did not complete (npx objectstack 404, no project installed); third run with --work completed; not reproduced on demand"
     ]
    }
  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#33595#1 · os-tesla · session_01L9qiby1cctpVpRbJzjccvY

    Landed · 2026-11-15T10:45Z

    PR #33764 merged as b76df9a6 (ACCEPT 6892756859; contract review PASS 6892520817). A --driver recorded:FILE replay now re-sends each question or operation turn's recorded writes to the booted app, in recorded order, as the turn's persona, so an applied operation reads back what the recorded run wrote. Reads are never re-sent, a recorded refusal must meet the same refusal, and a created row's id is remapped. Any divergence, or a recorded write with no recorded answer, makes the question or operation NOT MEASURED naming the call (ReplayNotFaithfulError), never a fail. On eval#1's haiku crm replay, operations went from 1/4 to 3/4 (+1 not measured), matching the live run. pm:dispatched dropped; card thread closing.

  7. removed
    pm:dispatched
    on Nov 15, 2026
  8. added 3 commits that reference this issue on Nov 16, 2026
    b76df9a
    c3c0c30
    196af0a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:devpathdomain:devxpm:epicpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions