refactor(replay): run replay verification through agent-eval's trajectory-replay - #126
Merged
Merged
Conversation
…tory-replay Delete the six replay modules and analyze-verify, which duplicated @tangle-network/agent-eval/trajectory-replay. src/replay.ts keeps only what the CLI owns: the Tangle Sandbox exec backend, the OpenAI-compatible fix caller, the reachability preflight, and flag parsing for replay-verify, replay-verify-batch and verify-findings. The package root re-exports the agent-eval module, and the mock-backed tests of the deleted code go with it.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
traces no longer carries its own copy of replay verification.
src/replay-{verify,batch,corpus,fix,fix-loop,wire}.tsandsrc/analyze-verify.ts(3,626 lines) duplicated@tangle-network/agent-eval/trajectory-replay, which is the stricter owner: its prefix replay counts a step as confirmed only on positive evidence (verify.ts:24-30).src/replay.ts(about 440 lines) keeps only what the CLI owns: the Tangle Sandbox exec backend (sandboxReplayBackend), the OpenAI-compatible fix caller (zaiChatCaller), the sandbox reachability preflight, and flag parsing forreplay-verify,replay-verify-batchandverify-findings.analyze --verify-findingscalls the sameverifyFindingsInSandbox.@tangle-network/agent-eval/trajectory-replay, soreplayVerify,runReplayBatch,verifyFindingsand the rest keep their import path.Source: agent-inspect audit, "Duplication on our side" (
~/webb/_wt/_mq-notes/agent-inspect-audit.mdsection 4).Proof
Real input: the 21 recorded bash steps of VerticalBench climb cell
base-pay-usdc-checkout.train.2.pbfe352ff.aeeedf5e0(vb-climb-runs/climb-20260924T005443Z), written as a CodeTraceBench steps file, and four analyst-shaped findings.The same commands ran on
origin/main(detached worktree) and on this branch:Per-finding verdicts on this branch:
diff -rof the two receipt directories differs only inproduced_attimestamps and output paths, plus agent-eval's run verdict, which traces never had:Gate:
git merge-treeagainstorigin/mainis clean,pnpm install --frozen-lockfilepasses, andpnpm typecheckis clean.Not run: a live sandbox replay. No sandbox orchestrator is running on this host, and no traces-owned
SANDBOX_API_KEYexists. The arm execution path is agent-eval'sreplayVerify, called with the same backend object as before.