Repository navigation
Open
Labels
Description
This was generated by AI during triage.
What happened
An Experiment paused at a Claude plan-limit warning, with all 36 Trials done and only one short Grader session left. Its window would reset at a known time, because the warning's rate_limit_info.resetsAt said so. To grade as soon as the window had room, the Day shift had to work out that time and schedule thirdshift experiment … for after it by hand, with a detached shell loop. A Scoring run paused at a plan-limit warning is in the same position.
Proposal
Add an opt-in setting so that a Command paused at a plan-limit warning resumes itself once the window that stopped it has reset.
- Opt-in. It would live in the User config, for example
[evals] resume_after_reset = true, defaulting tofalse. When it's off, nothing changes and you resume by hand as today. - When. At the recorded reset time plus a margin, read from the warning that caused the pause (see A paused Experiment's Command is recorded as failed #1619's addition). It resumes only Experiments and Scoring runs, and never one that was interrupted, stopped or failed for another reason.
- How. Either a scheduled Pass that already runs, such as Pickup, notices a paused Command whose reset time has passed and resumes it, or the paused Command records a wake time that the Console or a scheduler acts on.
- Limits.
- It makes one automatic resume per pause.
- A resume that pauses again records the new reset time and waits again, up to a cap such as 3 waits per Experiment.
- It never runs while the window's last reported utilization is still at or above the threshold.
- It respects whatever Pickup already uses to yield to running Experiments.
- Visibility. The paused row shows
resumes automatically at <time>, and you can cancel that from the CLI or the Console.
Questions for the Day shift
- Is spending quota without you acceptable for Experiments and Scoring, given it's opt-in and capped?
- Which mechanism should resume it: piggy-backing on Pickup's schedule, or its own wake time?
- Should a release Experiment started by
scripts/release.sh --with-experimentever resume by itself, given the script is waiting on it?
Depends on #1619 for the recorded reset time.
Activity
JacobStephens2 commentedon Nov 10, 2026
Investigation summary against main at d6bee52:
Automatic resumption is not implemented. The prerequisite from #1619 is present: Command records retain outcome
paused, the stopping Harness/window, utilization, optional reset time and a resume command. Recommend shaping this feature before implementation because scheduling, quota authorization and release behavior remain unresolved.Confirmed evidence:
src/evals/experiment.rs:475-510assigns Experiment statepausedto non-interruption errors generally, but records Command outcomepausedspecifically for a typed plan-limit stop. Automatic eligibility must use the Command outcome, rather than Experiment state alone, to exclude unrelated errors and spending-limit stops.src/harness/interpretation/limits.rsuses an 85% threshold for Claude/Codex quota warnings and preserves unknown reset facts as null. A saved 86% observation remains the latest observation after its reset time passes; elapsed time alone does not establish current utilization below 85%.src/scoring.rs:65-85grades retained pending work before continuing normal sampling. Automatically rerunningthirdshift scorecould therefore start new sampling as well as finish paused grading. Its machine-wide lock and the Experiment's per-ID lock already prevent concurrent execution of the same work.src/logs/stop.rs:51rejects ended Commands. Canceling a pending automatic wake needs an explicit CLI/Console contract; Dismissal currently only hides an Inbox row.scripts/release.sh:436invokes the Experiment synchronously, and a plan-limit pause exits nonzero. It currently polls pending rechecks/leaks, not plan-limit pauses. Completing an Experiment later would not itself continue the release script.Related work: #1494 covers Pass contention with running Experiments; the inspected Pickup admission does not provide an Experiment-specific yield gate. #1952 covers Grader-panel spending across invocations. Neither duplicates this feature. #1658 is an operational grading task, not its implementation.
Suggested split, subject to the questionnaire: (1) opt-in policy, domain contract and durable scheduling/cancellation state; (2) OS-triggered execution and Experiment/Scoring integration, blocked by (1); (3) CLI/Console visibility and cancellation, documentation and end-to-end checks, following the execution contract. Use controlled clocks and fake Harnesses to verify one resume per pause, restart/concurrent-Pass safety, cancellation/manual-resume races, missing reset metadata, repeated pauses and cap exhaustion. Keep the automatic-wait cap separate from the existing fixed Bar's Trial retry budget.
Questionnaire
For the Day shift deciding #1653:
The Base branch already records plan-limit pauses and resumes retained work without repeating completed Trials or Scores. These decisions are needed before the automatic feature can be specified.