Repository navigation
Void Trials on provider capacity and overload errors - #1374
Merged
Merged
Conversation
…apacity. Please try a different model.) 2026-10-26T08:07:22Z, host thirdshift. Uncommitted work at the time of failure is included in this commit.
This was referenced Oct 26, 2026
Merged
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.
Closes #1362.
Summary
Provider capacity and overload errors now classify as rate limits. A Trial that hits one is void with
rate_limitand pauses the Experiment, which resumes under its saved Bar, instead of counting as a failed review.Trials, Ticket runs and Scoring all classify through
from_text. docs/guide.md, site/docs and site/how-it-works name the new void cause.Evidence
"outcome": "failed", "void_cause": null, "cause": "codex exited 1: Selected model is at capacity. Please try a different model."and counted as disagreements.tests/trial.rs::a_codex_capacity_error_is_a_rate_limited_void_trial: a fake Codex exits 1 with that exact message, and the Trial endsvoidwithrate_limitand the same cause.event_tests::provider_capacity_and_overload_errors_are_rate_limits, for Codex and Claude events:OVERLOADED,overloaded_error,HTTP 503,HTTP 529,API Error: 503andError code: 529→rate_limit;quota exceededstaysusage_limit;invalid JSON,src/check.rs:1503andworker529stayother.retained_retryable_pause_resumes_with_the_same_budget_and_new_scorenow coversRateLimitas well asUsageLimit.The first Ticket run wrote this fix and then failed on the capacity error itself. Its Continuation's reproduction step tested a branch that already held the fix, so it handed back
needs-info(#1373). The Day shift reviewed the diff and opened this PR.Merge Danger
Door: two-way
Blast Radius: classification
An unrelated error that contains "at capacity", "overloaded", or the whole word 503 or 529 would pause an Experiment instead of failing a Trial, and a Ticket run would report it as a limit. Both outcomes are visible and resumable.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LSAzXiA6BD9neiPgVQRMKD