Repository navigation
feat(bench): snapshot final tree of resolved tasks for DRA replay - #345
Merged
Merged
Conversation
Behind BENCH_DRA=1: when a task resolves, tar the workdir into the results dir before cleanup so the over-edit replay (Phase B, dra.ts, design in code-research/docs/dra-lite-experiment-design.md) can attribute each edit unit as needed/unneeded by reverting it and rerunning the verify command. Best-effort: snapshot failure never fails the run. Co-Authored-By: Claude Code <[email protected]>
This was referenced Nov 26, 2026
Merged
dahai80
added a commit
that referenced
this pull request
Nov 26, 2026
The #345 snapshot block referenced configDir/outDir/taskId from the main-loop finally, but those live inside runHarness — the first BENCH_DRA=1 run crashed with ReferenceError after T01 (configDir is not defined). Snapshot now runs at the end of runHarness, deriving the task id from logPath and using cwd (the task workdir) directly; it captures every task, and the replay filters by resolved status. Found by the 2026-11-26T08-42-00Z run: T01 completed (525.7s, silentRetry=0) and the run died in the finally block. Co-Authored-By: Claude Code <[email protected]>
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.
Phase A of the DRA-lite over-edit experiment (method: Delta Residue Attribution, arXiv 2611.34875; design doc:
code-research/docs/dra-lite-experiment-design.md, outside this repo).Behind
BENCH_DRA=1: on a resolved task, tar the workdir into the results dir before thermSynccleanup. Phase B (separate PR) replays the transcript's Edit/Write units against the snapshot, reverts each cumulatively, and reruns the task verify to grade needed vs unneeded units.Best-effort by design: snapshot failure logs a warning and never fails the run. tsc clean.
🤖 Generated with Claude Code