fix(queue): unblock parallel exact result publication#614
Merged
Conversation
This was referenced Jul 15, 2026
This was referenced Jul 16, 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
Replace the single global exact-review publisher with bounded publication admission (default 24) while preserving target-serialized comment routing.
Incident evidence
30502fdf4e8a, merged 2026-07-15 10:38:45Z) introduced the split exact-review publisher and its globalclawsweeper-exact-review-publisherconcurrency group.2026-07-15T23:25:29.922Z: 2,638 pending, 0 dispatching, 16 leased;openclaw/openclawaccounts for 2,342 pending rows. The 64-item handoff fleet has at least 48 unoccupied slots. This PR fixes the publisher bottleneck, not that separate review-admission/execution under-utilization.Implementation
EXACT_REVIEW_PUBLICATION_MAX_CONCURRENT, defaulting to 24 and clamped to the 64-item exact-review fleet cap.repair-comment-router.ymltarget-repository concurrency boundary. Exact publishers now hand every current, nonterminal verdict to that router rather than concurrently writing its shared ledger inline.No permission scope is broadened: the existing write-capable publisher token still owns GitHub mutation, and this change only uses the job's pre-existing
actions: writepermission to queue the existing router workflow.Validation
Passed locally:
The focused test run passed 200 behavioural tests; the exact-workflow selection and all changed-file format/lint checks passed.
Codex review closeout:
codex review --uncommitted: clean.codex review --base origin/main: clean — “No actionable defects were identified in the diff. The bounded publication admission and deferred routing changes are consistently wired through the queue, workflow, and tests.”Read-only local ClawSweeper review:
It reviewed
e0e44656f856..eff4017042fdef, found no discrete correctness or security finding, and made no GitHub mutation. Artifact:.git/clawsweeper/reviews/local-range-1784157727786-15652/0.md.actionlintis not installed on this host. The full workflow-helper suite has five baseline Windows/WSL failures because this Docker Desktop WSL distribution lacks/bin/bash; those tests exercise Linux-hosted Bash helpers outside this change. The targeted exact-workflow assertions above passed.Risks and rollout
This is a bounded throughput change, not a claim that all current backlog causes are fixed. After deployment, retained exact publication items are automatically eligible for the 24-way lane; no manual replay is needed for that publisher backlog.
Monitor for 10–15 minutes:
repair-comment-router.ymlrunning serially per target without ledger conflicts;openclaw/openclawpending declining;Links
#592 · #611 · #612 · #613 · producer run 29454686822 · publisher run 29455750741