Skip to content

A model-at-capacity error fails a Trial instead of voiding it #1362

Closed

Description

@JacobStephens2

Problem

A provider's "model at capacity" error ends a Trial as failed, as if the review had done badly, instead of as a void Trial that is retried.

In the A/A Experiment for #1267 (codex · gpt-6.1-sol · xhigh), two Trials ended this way, about a minute into their sessions:

"outcome": "failed",
"void_cause": null,
"cause": "codex exited 1: Selected model is at capacity. Please try a different model."

ErrorKind::from_text (src/harness/interpretation/event.rs) recognises usage-limit and rate-limit text only. Capacity and overload text falls through to ErrorKind::Other, so src/trial.rs sets no VoidCause. Both failures landed in the baseline Arm. In an A/A Experiment that shows up as a disagreement nobody caused, and in a release Experiment it can pass or fail a release on the provider's load.

What to build

Treat provider capacity and overload errors like rate limits:

  • ErrorKind::from_text returns RateLimit for "at capacity", "overloaded", overloaded_error and HTTP 503/529 text. A real failure's text must not match.
  • The Trial is then void with rate_limit and handled as rate limits are today: it pauses or retries, and is never counted as a failed review.
  • The same classification applies wherever from_text is used (Runs and Scoring included), so a capacity error is reported as a limit rather than as a session failure.

Acceptance criteria

  • A Trial whose Harness exits with "Selected model is at capacity. Please try a different model." is void with rate_limit, not failed, and is retried like a rate-limited Trial.
  • Unit tests cover the capacity and overload texts, and one ordinary error text that stays Other.
  • docs/guide.md's list of what voids a Trial names capacity and overload errors.

Activity

  1. added
    bug
    ready-for-agent
    in-progress
    and removed
    ready-for-agent
    on Oct 26, 2026
  2. added
    ready-for-agent
    in-progress
    and removed
    in-progress
    ready-for-agent
    on Oct 26, 2026
  3. JacobStephens2 commented on Oct 26, 2026

    @JacobStephens2
    OwnerAuthor

    Triage Notes

    What we've established so far:

    • Tested the current issue-1362 branch at 1581b9c4261c14e7cecf0214e0e425ead29d22f1 on Linux x86_64 with Rust/Cargo 1.99.1. It already contains 0bc80be5 (Fix provider capacity errors voiding Trials (#1362)); I preserved both existing commits and made no source changes.
    • cargo test --test trial a_codex_capacity_error_is_a_rate_limited_void_trial -- --exact --nocapture passed: 1 passed, 0 failed, 0 ignored. The fake Codex Harness exits 1 with the exact message Selected model is at capacity. Please try a different model. The test asserts outcome == "void", void_cause == "rate_limit", and the complete diagnostic quoted in this issue. The reported failed outcome with a null void cause could not be reproduced.
    • cargo test --bin thirdshift provider_capacity_and_overload_errors_are_rate_limits -- --nocapture passed: 1 passed, 0 failed, 0 ignored. This exercises Codex and Claude event interpretation for capacity, overload, overloaded_error, HTTP 503/529, existing limits, and ordinary-error controls that remain Other.
    • cargo test --bin thirdshift retained_retryable_pause_resumes_with_the_same_budget_and_new_score -- --nocapture passed: 1 passed, 0 failed, 0 ignored. It checks both UsageLimit and RateLimit: the first attempt pauses and a resumed Trial uses the next attempt and retains the saved retry budget and new Score.
    • These are unattended fixture tests through the Trial CLI, shared event interpretation, and Experiment continuation seams; no live provider failure was induced. No PR exists for this branch. Under the requested diagnosis workflow, this not-reproduced handoff replaces implementation, review, commit, push, and PR creation for this session.

    What we still need from you (@JacobStephens2):

    • A redacted Trial request/result and Session trace that still show this failure with a build containing 0bc80be5, plus that build's commit/version and the exact Experiment command (including Arm build revisions). This would distinguish an older Arm binary from a capacity diagnostic or execution path the existing regression does not exercise.
  4. added
    needs-info
    and removed
    in-progress
    needs-info
    on Oct 26, 2026
  5. JacobStephens2 commented on Oct 26, 2026

    @JacobStephens2
    OwnerAuthor

    The fix on issue-1362 is complete. The session above didn't reproduce the bug because it tested a branch that already holds the fix (#1373). The Day shift reviewed the diff and opened #1374, which merges when CI is green.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions