Repository navigation
fix(bench): retry a checker that runs out of wall time on --verify instead of reporting a refusal - #89
Merged
Conversation
…fy, never reported as refusing the artifact The gate run of 2026-11-17 turned the committed /2 fixture red on a loaded machine (bench-v3-acceptance, "run review-and-send-s1-r1: the checker rejects the session artifact"). Cause: re-verification caught every error of the checker process, including checker_timeout from its 10 s wall limit, and reported it as the checker refusing the artifact (session, export, condition trace) or the reference as invalid. The checker is deterministic (no clock, randomness or I/O), so a timed-out attempt judged nothing. The date was not involved: the whole unit suite passes with the clock moved by +366 and +3660 days. A re-judge of a stored artifact now runs a timed-out check again (retryCheckerTimeout, at most 3 attempts, each under the full 10 s limit, pauses 1 s and 2 s); only checker_timeout is retried. When every attempt runs out of time it says so: checker_timeout naming the run, or the reference's task and seed. The limit and a bench run's single attempt are unchanged. Test: tests/unit/checker-timeout-retry.test.ts stalls checker starts at the process boundary (tests/support/stall-checker.ts through NODE_OPTIONS); without the fix it fails with the exact message of the gate run. Signed-off-by: godarg <216538197+godarg@users.noreply.github.com>
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
The gate run of 2026-11-17 turned the committed
/2fixture red on a loaded machine (bench-v3-acceptance: "run review-and-send-s1-r1: the checker rejects the session artifact"). The cause was not the artifact and not the date: re-verification caught every error of the checker process, includingchecker_timeoutfrom its 10 s wall limit, and reported it as the checker refusing the artifact (session, export, condition trace) or the reference as invalid. The checker is deterministic (no clock, randomness or I/O), so a timed-out attempt judged nothing.Now a re-judge of a stored artifact runs a timed-out check again (
retryCheckerTimeout: at most 3 attempts, each under the full 10 s limit, pauses 1 s and 2 s). Onlychecker_timeoutis retried. When every attempt runs out of time, the message says so and names the run, or the reference's task and seed. The wall limit and a bench run's single attempt are unchanged.How I checked it
npm run check(exit 0) andnpm test(911 of 912 pass, 1 skipped)tests/unit/checker-timeout-retry.test.ts(3/3): stalls checker starts at the process boundary viatests/support/stall-checker.tsthroughNODE_OPTIONS; without the fix it fails with the exact message of the gate runCHANGELOG.md,docs/benchmarks/README.md,docs/security/threat-model.mdVisible changes
None (CLI message text for the all-attempts-timed-out case only).
Rights