Skip to content

fix(bench): retry a checker that runs out of wall time on --verify instead of reporting a refusal - #89

Merged
godarg merged 1 commit into
mainfrom
fix/checker-wall-limit-reverify
Nov 17, 2026
Merged

godarg merged 1 commit into
mainfrom
fix/checker-wall-limit-reverify

Conversation

@godarg

@godarg godarg commented Nov 17, 2026

Copy link
Copy Markdown
Owner

What changes

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"). The cause was not the artifact and not the date: 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.

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). Only checker_timeout is 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) and npm test (911 of 912 pass, 1 skipped)
  • New tests/unit/checker-timeout-retry.test.ts (3/3): stalls checker starts at the process boundary via tests/support/stall-checker.ts through NODE_OPTIONS; without the fix it fails with the exact message of the gate run
  • The whole unit suite also passes with the clock moved +366 and +3660 days (date ruled out)
  • Docs updated: CHANGELOG.md, docs/benchmarks/README.md, docs/security/threat-model.md

Visible changes

None (CLI message text for the all-attempts-timed-out case only).

Rights

  • No credentials, personal data or private recordings; no new dependencies
  • Commits are signed off

…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>
Copilot AI balanced review requested due to automatic review settings November 17, 2026 17:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@godarg
godarg merged commit 8d8e2b5 into main Nov 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants