Skip to content

Opt-in: resume a Command paused at a plan-limit warning once its window resets #1653

Open

Description

@JacobStephens2

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 to false. 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

  1. Is spending quota without you acceptable for Experiments and Scoring, given it's opt-in and capped?
  2. Which mechanism should resume it: piggy-backing on Pickup's schedule, or its own wake time?
  3. Should a release Experiment started by scripts/release.sh --with-experiment ever resume by itself, given the script is waiting on it?

Depends on #1619 for the recorded reset time.

Activity

  1. added
    enhancement
    needs-triage
    on Oct 30, 2026
  2. added
    in-progress
    and removed
    needs-triage
    on Nov 10, 2026
  3. JacobStephens2 commented on Nov 10, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    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-510 assigns Experiment state paused to non-interruption errors generally, but records Command outcome paused specifically 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.rs uses 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-85 grades retained pending work before continuing normal sampling. Automatically rerunning thirdshift score could 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:51 rejects ended Commands. Canceling a pending automatic wake needs an explicit CLI/Console contract; Dismissal currently only hides an Inbox row.
    • ADR 0009 reserves scheduling to the operating system. ADR 0016, as amended by the Console API ADR 0026, still prohibits the Console from starting work of its own accord. Prefer an OS-started Pass; autonomous Console wakeups would require an explicit ADR change.
    • scripts/release.sh:436 invokes 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.

    1. Do you authorize a default-off User config setting to spend quota unattended for both Experiments and Scoring, including Claude and Codex? Choose the reset margin and automatic-resume cap (suggestion: 60 seconds and three resumes), define the cap's scope for Scoring, and decide whether enabling it enrolls previously paused work. Coordinate spending expectations with Should the Grader panel's spending limit span the whole Experiment rather than each run? #1952.
    2. Which scheduler should drive it: a dedicated OS-started resume Pass (recommended), or existing Pickup invocations? If Pickup, should resumption precede normal work selection and consume that invocation? Autonomous Console scheduling would require changing the current ADRs. Coordinate Experiment contention with Scheduled Passes start Runs during an Experiment on the same host, so Trials time out under load #1494.
    3. After reset, may the old high-utilization observation expire, or must a fresh observation prove utilization below 85% before work starts? If fresh evidence is mandatory, choose an acceptable refresh mechanism; current quota reports arrive during sessions. Should missing reset/utilization facts leave the Command for manual action?
    4. Should release Experiments be excluded initially (recommended)? If included, should only their grading resume, or must the release script also wait and continue? For Scoring, should an automatic invocation finish only pending work or also perform normal new sampling?
    5. What should cancel a pending wake: an explicit CLI/Console cancel action, manual resumption, disabling the setting, or Dismissal? Specify whether cancellation lasts until the next manual run. Approve or revise the proposed split into policy/storage, scheduled execution, and CLI/Console visibility work; this determines the Spec and Ticket boundaries.
  4. added
    ready-for-human
    and removed
    in-progress
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions