Repository navigation
fix(queue): make publication capacity recovery reachable under periodic rate-limit bursts - #638
Merged
Merged
Conversation
…ic rate-limit bursts
azaj01
pushed a commit
to azaj01/clawsweeper
that referenced
this pull request
Sep 21, 2026
…ic rate-limit bursts (openclaw#638)
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.
Why
Live observation tonight: publication
capacity_controlpinned atmode=throttled, ceiling=4 (minimum)for hours while the publication backlog doubled (194 -> 408 pending, oldest >22h). Root cause is the recovery ladder introduced in #626: raising the ceiling one step requires 50 consecutive clean publications, but every failure resets the counter to zero and halves the ceiling with a cooldown. Under the current environment — a rate-limit failure burst every hour, three days running — 50 clean runs never fit between bursts at 4-way concurrency, so the ceiling is mathematically unable to leave the floor while inflow exceeds drain.The multiplicative-decrease side is sound; only the additive-increase gate is unreachable under periodic failures.
What
The gate becomes env-tunable
EXACT_REVIEW_PUBLICATION_RECOVERY_SUCCESSES(clamped 1-1000) with a default of 10. Between hourly bursts a healthy lane now re-climbs 4 -> 12 -> 20 -> 24 within minutes of clean throughput, while bursts still throttle it exactly as before. docs/limits.md documents the override and the pinning failure mode.Proof
check:limits,format:check,lintgreen.