Repository navigation
fix(queue): govern publication backlog - #641
Merged
Merged
Conversation
hxy91819
marked this pull request as ready for review
July 17, 2026 03:03
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This was referenced Jul 17, 2026
azaj01
pushed a commit
to azaj01/clawsweeper
that referenced
this pull request
Sep 21, 2026
This was referenced Oct 9, 2026
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
Root cause
Publication work was treated as one success/failure stream. Stale artifacts could repeatedly consume workers, dispatch attempts could exhaust publication-specific retry budgets, and
completed_totalobscured whether work was truly published or merely terminal. Capacity also reacted mostly to ready depth, so the lane could remain at 24 while an old queue was still falling behind.Current
mainincludes two useful partial fixes that this branch preserves:The live dashboard still showed 226 pending, 213 ready, a 23-hour oldest item, and a -7/hour net publication rate while 23 of 24 slots were active. This change addresses the remaining control-loop and poison-item gaps without adding GitHub polling.
Safety and operations
WORKER_BUDGET - active_reviews - 16Validation
pnpm run checknode --test test/dashboard-worker.test.ts test/sweep-workflow.test.ts test/repair/stale-event-disposition.test.ts(203 passed)patch is correct, confidence 0.74)git diff --cached --check