Repository navigation
fix(platform): back off harness rate limits - #4952
Merged
Merged
Conversation
yannickmonney
enabled auto-merge
October 13, 2026 15:51
yannickmonney
disabled auto-merge
October 13, 2026 17:19
yannickmonney
added this pull request to the merge queue
Oct 13, 2026
yannickmonney
removed this pull request from the merge queue due to a manual request
Oct 13, 2026
yannickmonney
added this pull request to the merge queue
Oct 13, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to a manual request
Oct 13, 2026
tale-code-bot
added a commit
that referenced
this pull request
Oct 30, 2026
A workflow agent step that Codex ended on its terminal "Selected model is at capacity" refusal already settled as model_capacity and held its re-kick for a minute (#4952), but the retry plan still burned the account the model refused, so the re-kick vended past a healthy account. The plan now counts the failure as before and keeps the account in the pool, as the task lane does. The held start re-checked only the run's status and cursor, and accepted a cursor that still named the settled predecessor. A walker that lost the run between its kick and its park left a start that launched an unwaited turn once the hold ended. The kick now hands its walker's claim to a held start, readAgentCursor answers the run's claim and lease, and a held start runs only while its run is parked on it or that claim still holds the run. Starts at once keep the lenient gate.
tale-code-bot
added a commit
that referenced
this pull request
Oct 30, 2026
A workflow agent step that Codex ended on its terminal "Selected model is at capacity" refusal already settled as model_capacity and held its re-kick for a minute (#4952), but the retry plan still burned the account the model refused, so the re-kick vended past a healthy account. The plan now counts the failure as before and keeps the account in the pool, as the task lane does. The held start re-checked only the run's status and cursor, and accepted a cursor that still named the settled predecessor. A walker that lost the run between its kick and its park left a start that launched an unwaited turn once the hold ended. The kick now hands its walker's claim to a held start, readAgentCursor answers the run's claim and lease, and a held start runs only while its run is parked on it or that claim still holds the run. Starts at once keep the lenient gate.
tale-code-bot
added a commit
that referenced
this pull request
Oct 30, 2026
A workflow agent step that Codex ended on its terminal "Selected model is at capacity" refusal already settled as model_capacity and held its re-kick for a minute (#4952), but the retry plan still burned the account the model refused, so the re-kick vended past a healthy account. The plan now counts the failure as before and keeps the account in the pool, as the task lane does. The held start re-checked only the run's status and cursor, and accepted a cursor that still named the settled predecessor. A walker that lost the run between its kick and its park left a start that launched an unwaited turn once the hold ended. The kick now hands its walker's claim to a held start, readAgentCursor answers the run's claim and lease, and a held start runs only while its run is parked on it or that claim still holds the run. Starts at once keep the lenient gate.
tale-review-bot
pushed a commit
that referenced
this pull request
Oct 30, 2026
A workflow agent step that Codex ends on its terminal "Selected model is at capacity. Please try a different model." already settled as model_capacity from the shared parser's typed kind, also after an exec checkpoint is restored, and held its re-kick for a minute (#4952). Its retry plan still burned the account the model refused, so the re-kick stepped past a healthy account. The plan now counts the failure as before and keeps the account in the pool, as the task lane does. Real account failures still burn theirs. A held start rechecked only the run's status and cursor, and it accepted a cursor that still named the settled predecessor. So a start held by a walker that lost the run launched a turn nobody waits on once the hold ended. The retry kick now hands its walker's claim to the start it holds, readAgentCursor answers the run's claim and lease, and a held start runs only while its run is parked on it or that claim still holds the run. Starts at once keep the lenient gate. Unit tests drive the pinned Codex lines through the real drive window (initial, resumed and checkpoint-restored refusals, and incidental text), and through the retry plan, the stepper and the start gate. A backend integration lane proves the persisted path on PostgreSQL: - one exec-fenced settle; - one start held a minute on the same conversation and account; - no second kick from a duplicate step; - a resumed retry that the model refused again; - a cancelled run and a lost walker, both refused before any sandbox work; - an ordinary failure that still burns its account. The run docs (EN/DE/FR) say how an agent step retries a model at capacity. Closes #4530 Task: TALE-90
tale-code-bot
added a commit
that referenced
this pull request
Oct 30, 2026
A workflow agent step that Codex ends on its terminal "Selected model is at capacity. Please try a different model." already settled as model_capacity from the shared parser's typed kind, also after an exec checkpoint is restored, and held its re-kick for a minute (#4952). Its retry plan still burned the account the model refused, so the re-kick stepped past a healthy account. The plan now counts the failure as before and keeps the account in the pool, as the task lane does. Real account failures still burn theirs. A held start rechecked only the run's status and cursor, and it accepted a cursor that still named the settled predecessor. So a start held by a walker that lost the run launched a turn nobody waits on once the hold ended. The retry kick now hands its walker's claim to the start it holds, readAgentCursor answers the run's claim and lease, and a held start runs only while its run is parked on it or that claim still holds the run. Starts at once keep the lenient gate. Unit tests drive the pinned Codex lines through the real drive window (initial, resumed and checkpoint-restored refusals, and incidental text), and through the retry plan, the stepper and the start gate. A backend integration lane proves the persisted path on PostgreSQL: - one exec-fenced settle; - one start held a minute on the same conversation and account; - no second kick from a duplicate step; - a resumed retry that the model refused again; - a cancelled run and a lost walker, both refused before any sandbox work; - an ordinary failure that still burns its account. The run docs (EN/DE/FR) say how an agent step retries a model at capacity. Closes #4530 Task: TALE-90
tale-code-bot
added a commit
that referenced
this pull request
Oct 31, 2026
A workflow agent step that Codex ends on its terminal "Selected model is at capacity. Please try a different model." already settled as model_capacity from the shared parser's typed kind, also after an exec checkpoint is restored, and held its re-kick for a minute (#4952). Its retry plan still burned the account the model refused, so the re-kick stepped past a healthy account. The plan now counts the failure as before and keeps the account in the pool, as the task lane does. Real account failures still burn theirs. A held start rechecked only the run's status and cursor, and it accepted a cursor that still named the settled predecessor. So a start held by a walker that lost the run launched a turn nobody waits on once the hold ended. The retry kick now hands its walker's claim to the start it holds, readAgentCursor answers the run's claim and lease, and a held start runs only while its run is parked on it or that claim still holds the run. Starts at once keep the lenient gate. Unit tests drive the pinned Codex lines through the real drive window (initial, resumed and checkpoint-restored refusals, and incidental text), and through the retry plan, the stepper and the start gate. A backend integration lane proves the persisted path on PostgreSQL: - one exec-fenced settle; - one start held a minute on the same conversation and account; - no second kick from a duplicate step; - a resumed retry that the model refused again; - a cancelled run and a lost walker, both refused before any sandbox work; - an ordinary failure that still burns its account. The run docs (EN/DE/FR) say how an agent step retries a model at capacity. Closes #4530 Task: TALE-90
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.
Problem
A Codex process that exited after exhausting its provider retry loop (
exceeded retry limit, last status: 429 …) could end without aturn-endedevent. Tale recorded it as a genericharness_error, immediately re-kicked it, and amplified provider pressure.Change
model_capacity.Validation
@tale/platformtypecheck passed with an 8 GiB Node heap.git diff --checkpassed.