Repository navigation
feat(bench): timeout workdir snapshots + BENCH_RESUME_DIR resume mode - #361
Merged
Merged
Conversation
Issue #360 harness-side half. 4/20 suite failures are 600s kills that discard a near-green tree (the medium tier resolves AT the cap, so timed- out trees are often minutes from passing). - snapshotWorkdir() helper (tar -C workdir .) replaces the inline DRA snapshot; still best-effort. - Timeout path now snapshots the work tree to <outDir>/<task>.timeout.tar (skipped for tasks that were themselves resumed). - BENCH_RESUME_DIR=<prior results dir>: tasks with a timeout snapshot extract that tree into the workdir instead of building the fixture and run with a deterministic resume preamble (no LLM summarization); rows gain resumed=true and the log line marks [resumed]. - Engine-retry path now reuses the same (possibly resume) prompt. Smoke: tar roundtrip fixture commit + agent edits verified extract-clean. Co-Authored-By: Claude Code <[email protected]>
This was referenced Nov 27, 2026
Merged
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.
Closes #360 (harness-side half; engine throughput is the upstream half).
Problem
4/20 harness-gain failures are 600 s timeout kills that discard the work tree. The medium tier resolves AT the cap (T10/T11/T12: timedOut=true, verify passes on the final tree), so timed-out trees are often near-green — the runner currently throws that work away.
Change
snapshotWorkdir()helper (tar, best-effort) — replaces the inline DRA snapshot block.<outDir>/<task>.timeout.tar(skipped for tasks that were themselves resumed).BENCH_RESUME_DIR=<prior results dir>resume mode: tasks with a timeout snapshot extract that tree into a fresh workdir (fixture build + git init skipped) and run with a deterministic resume preamble appended to the task prompt — no LLM summarization in the pipeline. Rows gainresumed, log lines mark[resumed].Verification
bun build --no-bundleclean.Success criteria follow-up
The issue's
BENCH_RESUME=1recovered/total metric lands once a rerun produces.timeout.tarartifacts; first live validation = rerun withBENCH_RESUME_DIRpointed at a results dir containing T05/T13/T14/T17 snapshots.🤖 Generated with Claude Code