fix: respect github rate limiting#546
Open
j4ys0n wants to merge 6 commits into
Open
Conversation
Update Anthropic baseline models for Opus 4.8 and Fable 5
Persist a reconcile cooldown on secondary/primary/auth GitHub write failures so no reconcile producer re-issues a blocked write before the deadline.
fix: respect github rate limiting
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.
The problem
On 2026-06-12 a write hit GitHub's secondary rate limit (403, "blocked from content creation"). The reconciler's reaction made it worse: when a content-creating write (auto-merge, auto-submit-review) failed, it was re-issued every ~5–7.5 s with no Retry-After handling and no cap, and the shared error classifier treated GitHub 401/403 as "retryable." So the moment any write started failing, the system hammered the exact endpoints GitHub had just blocked — keeping the limit tripped and risking an integration ban.
How the fix solves it
Result: at most one write attempt per server-directed (or ≥60 s) interval instead of a continuous loop — i.e. the client now behaves the way GitHub requires, so a transient secondary limit clears on its own rather than self-perpetuating.