Repository navigation
fix(autopilot): the Orchestrator's retry budget survives restarts - #274
Merged
Merged
Conversation
The agent-led retry count lived in memory, so every lab update gave a stuck task two more tries (seen on #42). It now comes from the task's persisted FixRounds (#272 — every change sent back to the Coding agent, by anyone): the rules' 3 rounds plus the agent's 2, capped, so a restart grants nothing new. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WAdQ7Rm24xss5QDSvXtJB
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.
Summary
Seen on the lab: after each lab update the Orchestrator said "#42 … now has 2 retries again" — the agent-led retry count was in memory. It now derives from the task's persisted
FixRounds(#272): rules' 3 rounds + agent's 2, clamped — a restart grants nothing new. A person's answer still grants one more (unchanged).Test plan
RetriesLeft_ComesFromPersistedFixRounds(5 cases); full suite green (1630).🤖 Generated with Claude Code
https://claude.ai/code/session_018WAdQ7Rm24xss5QDSvXtJB