Skip to content

feat(queue): park source-drift review loops and alert on runaway reviews - #1732

Merged
steipete merged 10 commits into
mainfrom
feat/review-loop-breaker
Oct 1, 2026
Merged

steipete merged 10 commits into
mainfrom
feat/review-loop-breaker

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Bound self-feeding exact-review loops and make any remaining runaway visible.
After three consecutive automatic source_drift_requeue generations, the queue parks the item as source_drift_loop instead of spending another full review.
The next organic webhook event, explicit command, manual review, or operator recovery admits the item normally and restarts the count.
A scheduled offer newer than the park releases one review but keeps the count, so a loop that continues re-parks immediately.
/api/exact-review-queue gains review_runaway_health: degraded with reason review_runaway, plus the count and up to five public sample keys, when any item claims more than 24 reviews in 24 hours. The dashboard health summary raises it amber.

Root cause

openclaw/openclaw#97616 reached exact-review revision 548, and openclaw/openclaw#123774 reached 284. Each was re-reviewed about every eight minutes through source_drift_requeue for days, and nothing alerted.
The path feeds itself. A successful review deletes its queue row, the publication finds a remote-newer tuple, and the publisher (or apply refresh) enqueues source_drift_requeue. With no row present, /enqueue admits a brand-new item each time, so the queue never sees that the previous generations were also automatic requeues.
#1715 removed one drift source, and another lane removes a second. Any future self-inflicted drift would still cost a full Codex review per cycle, unnoticed.

Change

Breaker

  • A new additive STRICT table, exact_review_queue_source_drift_loops, counts consecutive admitted drift generations per item. It lives outside item JSON because items are deleted between generations.
  • A counter idle for seven days expires. The admission lookup treats an expired row as absent before the limit check and deletes it. Parking refreshes only a live row, and a generation write restarts an expired count at one.
  • At EXACT_REVIEW_SOURCE_DRIFT_REQUEUE_LIMIT (3; 0 disables), the next drift requeue writes a parked source_drift_loop row instead. It takes no lease, no review token, and no lifecycle admission.
  • The response is deduped with dedupe_scope: source_drift_loop, so producer jq gates still succeed.

What resets the counter

  • Organic webhook item actions (the ingress allowlist).
  • Commands that are not themselves drift requeues.
  • Manual review.
  • Operator recover-fresh.

What does not reset it

  • A scheduled offer newer than the park releases one review and keeps the count. ClawSweeper's own post-review writes (lease-comment cleanup, label syncs) move updated_at and feed hot intake, so a reset there would let a loop continue at hot-intake cadence.
  • Older scheduled offers dedupe with reason source_drift_loop.

Unchanged paths

  • Command-context drift requeues continue their command's status lifecycle and are never counted or parked.
  • Publication work is untouched.
  • Parked loop rows stay operator-eligible: list, resolve, recover-fresh, and the five-minute terminal check.

Runaway alert

  • A new additive table, exact_review_queue_review_generations, records each newly claimed review run (best-effort at /claim). Publication and finalizer-only claims are excluded, and rows are pruned to 24 hours.
  • /stats and the strict public projection add review_runaway_health. Samples are limited to PUBLIC_BAY_REPOS, and an absent or malformed field projects as null without changing collection completeness.

Configuration and docs

  • dashboard/wrangler.toml sets EXACT_REVIEW_SOURCE_DRIFT_REQUEUE_LIMIT=3 and EXACT_REVIEW_RUNAWAY_REVIEWS_PER_DAY=24.
  • Updated docs: limits, live dashboard, public API, scheduler, and the split-runbook env list.
  • Adds a changelog fragment.

Finding disposition

ClawSweeper review #1732 (comment) (head 626dd230c8):

  • [P2] Expire loop counters before using them to deny admission. Fixed in 3727687379. The lookup applies the seven-day expiry before the limit check and deletes an expired row. Parking (markSourceDriftLoopParkedSync) only refreshes a live row. recordSourceDriftGenerationSync restarts an expired count at one even if the bounded prune missed it.
    • New regression test: "an expired exhausted counter never denies admission and is not resurrected". It covers the parking path, the lookup, the live /enqueue path, and the generation write. It fails on 626dd230c8.
  • [P2] Persisted-state upgrade and rollback. Addressed with a real workerd/SQLite proof, docs/proof/source-drift-loop-breaker/upgrade-and-rollback.{mjs,json}. See "Persisted upgrade and rollback proof" below.
  • [P2] Next step. Both items above are done, and the proofs were rerun on the current code head 2f91363b9d.

Behavior proof

docs/proof/source-drift-loop-breaker/run-proof.mjs runs the real dashboard Worker and ExactReviewQueue Durable Object in workerd with SQLite, a fake clock, and a loopback GitHub fixture. It compares origin/main cac974b3e1 with head 2f91363b9d. After every generation it sends sweep.yml's exact source-drift payload.

Scenario origin/main branch
Drift requeues 1-3 queued, reviewed queued, reviewed
Drift requeue 4 queued, reviewed parked source_drift_loop (requeue_limit_reached)
Drift requeues 5-6 queued, reviewed item_parked, no review
Reviews spent (1 organic + 6 drift) 7 4
Organic edited after loop queued queued, reviewed, count restarted
Newer scheduled offer after loop, then its drift requeue queued, reviewed, requeued again one review, then re-parked (requeue_limit_reached), no further review
re_review command on looping item queued, dispatched queued (releases park), dispatched with marker
25 claims in 3.3 h, GET /api/exact-review-queue field absent degraded, review_runaway, runaway_items: 1, sample openclaw/openclaw#200001
Same history 25 h later absent healthy
  • Receipt result.json SHA-256: 0ade9bf73112f316d7c8fc35613a1f90cf26dc70a932a57af244958c341599a1; working_tree_dirty: false. All 11 assertions hold.

Persisted upgrade and rollback proof

docs/proof/source-drift-loop-breaker/upgrade-and-rollback.mjs persists one SQLite-backed ExactReviewQueue Durable Object on disk. It reopens that object with the real dashboard Worker as origin/main cac974b3e1, then the branch 2f91363b9d, then origin/main again. Raw rows are read straight from SQLite before each variant's first queue request.

  1. origin/main creates state:
    • a pending organic item;
    • a leased item;
    • a parked scanner_refused item;
    • a pending source_drift_requeue item.
  2. The branch reopens it:
    • Item and delivery rows are byte-identical on open and after the first read.
    • It completes the origin/main lease and dispatches and completes both pending origin/main items.
    • Three new loops each park on their fourth drift requeue (12 reviews spent).
    • /parked-reviews/list shows all three source_drift_loop rows, and recover-fresh returns one to pending.
    • It leaves new leased and pending work behind.
  3. origin/main reopens it:
    • Item, delivery, loop-counter, and generation rows are byte-identical, and the two new tables are ignored.
    • /stats and GET /api/exact-review-queue return 200 with collection complete. source_drift_loop: 2 appears in stats and folds into the public unknown: 2; no review_runaway_health appears.
    • It completes the branch's two leases.
    • An automatic source_drift_requeue leaves a parked loop parked (ignored as low-priority recovery).
    • An organic edited releases one parked loop to pending, and it is dispatched and completed.
    • A re_review command releases the other to pending and dispatches it.
    • Only the scanner_refused row and the dispatched command item remain, so nothing is lost.

All 14 assertions hold.

  • Receipt upgrade-and-rollback.json SHA-256: a47f5a5f0760c087b348be13a564a192f7d60fd4b945ceee92bdc2a684350d63; working_tree_dirty: false.
  • The receipt records source hashes and row digests.
  • Limits:
    • Miniflare persistence on local disk, not a production Cloudflare deployment.
    • Synthetic GitHub fixture and issue items only.
    • Review execution is replaced by claim plus completion.
    • On origin/main a parked loop row is not operator-listable; its parked-reason allowlist predates source_drift_loop.

Validation

  • node --test test/exact-review-source-drift-loop.test.ts: 10/10, including the expired-counter regression and a scheduled release that re-parks without spending three more generations.
  • Related queue, status-privacy, and health suites: 487/487.
  • pnpm run check on 2f91363b9d: 7140 tests, 7102 pass, 37 skipped; coverage, static, build, and lint pass.
    • The only failure is the pre-existing flaky test/review-git-acquisition.test.ts › "interrupted native unshallow cleans its lock and settles transport before retry" (a git pack-transfer timing race). Run alone, it fails 2/6 on origin/main as well. This PR touches neither that test nor src/.
  • After merging fix(apply): accept receipt-backed own writes in deferred re-apply freshness #1734, static checks, build, lint, and focused suites (including apply freshness) pass: 496/496.

OpenClaw Bay:

No Bay change.

  • A parked loop uses the existing parked queue state, which Bay already renders in the repairing cove with queue_disposition: parked.
  • review_runaway_health is a new optional, observer-only field on the queue projection. Bay does not read it, and it adds no control.
  • Its sample keys are limited to verified-public repositories.

Risks / rollback

  • Self-inflicted organic webhooks reset the counter, for example a bot editing a PR body every cycle.
  • The runaway alert is the backstop for that case and for command-context or failed_review_shard_recovery loops, which the breaker deliberately does not stop.
  • Repeated newer scheduled offers spend at most one review each.
  • The runaway count uses claimed runs, so a run that claims and then stops early still counts.
  • Rollback: set EXACT_REVIEW_SOURCE_DRIFT_REQUEUE_LIMIT=0, or revert. The persisted-state proof above shows origin/main reading every record after the branch ran, and releasing still-parked loop rows through ordinary organic events or commands.

Review

Codex /review (autoreview, branch mode against origin/main, P0–P1 threshold): clean on 626dd230c8 (0.87) and again on head e7d109cc83 after the expiry fix, the upgrade/rollback proof and the main merge (0.85).

The exact-review queue now counts consecutive automatic source_drift_requeue
generations per item in an additive SQLite table. After
EXACT_REVIEW_SOURCE_DRIFT_REQUEUE_LIMIT (default 3) it parks the item as
source_drift_loop instead of spending another full review; organic webhook
item actions, explicit commands, manual reviews, operator recover-fresh, and
scheduled offers with a newer sourceUpdatedAt reset the counter and admit the
item normally. Command-context continuations are never counted or parked.

Claimed review runs are recorded per item for a trailing 24 hours, and
/stats plus /api/exact-review-queue expose review_runaway_health: degraded with
reason review_runaway and up to five verified-public sample keys when an item
exceeds EXACT_REVIEW_RUNAWAY_REVIEWS_PER_DAY (default 24). The dashboard health
summary raises it amber.
# Conflicts:
#	dashboard/dashboard-pages.ts
#	dashboard/worker.ts
#	docs/limits.md
A scheduled offer newer than a source_drift_loop park now releases the
item for exactly one review generation without resetting the consecutive
counter. ClawSweeper's own post-review writes (lease-comment cleanup, label
syncs) move updated_at and feed hot intake, so a resetting release would let
a loop continue at hot-intake cadence. If the released review ends in another
source_drift_requeue, the item re-parks immediately. Only organic webhook
item actions, non-drift commands, manual review, and operator recover-fresh
reset the counter.
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 3:58 AM ET / 07:58 UTC (Revision 2).

ClawSweeper review

What this changes

The PR bounds repeated automatic reviews by parking looping items and adds a dashboard alert for excessive review activity.

Merge readiness

✅ Ready for maintainer review

The PR remains useful and has no remaining blocking finding. The earlier expiry defect is fixed, and the persisted upgrade and rollback evidence addresses the previous compatibility concern.

Priority: P2
Reviewed head: e7d109cc83350abb1c127d427f79d76c8b49fb41

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A sound bounded implementation with strong runtime and persisted-state evidence, and no remaining blocking finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The inspected workerd receipts exercise the real queue and Worker over HTTP with SQLite, demonstrating parking, organic and command release, one-review scheduled release, and runaway alert expiry. Same-storage upgrade and rollback preserve and process existing work. The current dashboard tree matches the proved head; synthetic GitHub and claim/completion substitutions are disclosed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The inspected workerd receipts exercise the real queue and Worker over HTTP with SQLite, demonstrating parking, organic and command release, one-review scheduled release, and runaway alert expiry. Same-storage upgrade and rollback preserve and process existing work. The current dashboard tree matches the proved head; synthetic GitHub and claim/completion substitutions are disclosed.
Evidence reviewed 8 items Pinned introduction and continuing need: The introduced main-to-head delta adds the loop store and admission breaker. Current main still admits a new automatic recovery when the previous queue item has completed; it has neither this persistent breaker nor the runaway alert. The related merged freshness fixes address particular drift sources rather than this general safeguard.
Previous finding resolved: Admission now deletes expired counters before applying the limit, parking updates only live counters, and generation writes restart expired counts at one. The focused regression covers lookup, parking, enqueue, and generation writes.
Real queue behavior proof: Inspected the harness and receipt: real workerd, Worker, SQLite Durable Object, and HTTP GitHub fixture exercise enqueue, dispatch, claim, completion, scheduled release, commands, and the public projection. The candidate spends four reviews instead of seven, parks subsequent drift, releases on organic input, re-parks after one scheduled review, and reports then ages out a runaway alert. Receipt SHA-256 is 0ade9bf73112f316d7c8fc35613a1f90cf26dc70a932a57af244958c341599a1. Review execution is replaced by claim/completion; no production deployment or GitHub mutation is claimed.
Findings None None.
Security None None.

How this fits together

ClawSweeper's exact-review queue receives webhook events, commands, scheduled offers, and automatic requeues, then dispatches review work. Durable loop history now controls repeated admission, while claimed-review history feeds public queue health.

flowchart TD
  A[Events and commands] --> C[Review queue admission]
  B[Automatic drift requeues] --> C
  C --> D[Durable loop counter]
  D --> E[Dispatch review]
  D --> F[Park exhausted loop]
  E --> G[Claimed review history]
  G --> H[Dashboard health alert]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production and test growth production +598/-10; tests +622/-0 Runtime TypeScript growth implements durable loop history and the alert; focused tests cover admission, expiry, recovery, and privacy.
Persisted storage additions 2 additive SQLite tables The supplied same-storage upgrade and rollback proof verifies compatibility across both code versions.

Technical review

Best possible solution:

Retain bounded automatic re-review, explicit recovery paths, and the observer-only runaway alert with the demonstrated persisted-state compatibility.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a remaining bug report; the supplied real-runtime before/after receipt demonstrates the unbounded baseline loop and bounded candidate behavior.

Is this the best way to solve the issue?

Yes. Durable counters survive completed-item deletion, and the breaker complements the merged drift-source fixes without weakening publication freshness.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 2f777941de92.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The inspected workerd receipts exercise the real queue and Worker over HTTP with SQLite, demonstrating parking, organic and command release, one-review scheduled release, and runaway alert expiry. Same-storage upgrade and rollback preserve and process existing work. The current dashboard tree matches the proved head; synthetic GitHub and claim/completion substitutions are disclosed.
  • remove merge-risk: 🚨 automation: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 compatibility: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: This is a bounded queue reliability improvement that limits wasted reviews and exposes runaway activity.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The inspected workerd receipts exercise the real queue and Worker over HTTP with SQLite, demonstrating parking, organic and command release, one-review scheduled release, and runaway alert expiry. Same-storage upgrade and rollback preserve and process existing work. The current dashboard tree matches the proved head; synthetic GitHub and claim/completion substitutions are disclosed.
  • proof: sufficient: Contributor real behavior proof is sufficient. The inspected workerd receipts exercise the real queue and Worker over HTTP with SQLite, demonstrating parking, organic and command release, one-review scheduled release, and runaway alert expiry. Same-storage upgrade and rollback preserve and process existing work. The current dashboard tree matches the proved head; synthetic GitHub and claim/completion substitutions are disclosed.

Evidence

What I checked:

  • Pinned introduction and continuing need: The introduced main-to-head delta adds the loop store and admission breaker. Current main still admits a new automatic recovery when the previous queue item has completed; it has neither this persistent breaker nor the runaway alert. The related merged freshness fixes address particular drift sources rather than this general safeguard. (dashboard/exact-review-queue.ts:2494, e7d109cc8335)
  • Previous finding resolved: Admission now deletes expired counters before applying the limit, parking updates only live counters, and generation writes restart expired counts at one. The focused regression covers lookup, parking, enqueue, and generation writes. (dashboard/exact-review-review-loop.ts:174, e7d109cc8335)
  • Real queue behavior proof: Inspected the harness and receipt: real workerd, Worker, SQLite Durable Object, and HTTP GitHub fixture exercise enqueue, dispatch, claim, completion, scheduled release, commands, and the public projection. The candidate spends four reviews instead of seven, parks subsequent drift, releases on organic input, re-parks after one scheduled review, and reports then ages out a runaway alert. Receipt SHA-256 is 0ade9bf73112f316d7c8fc35613a1f90cf26dc70a932a57af244958c341599a1. Review execution is replaced by claim/completion; no production deployment or GitHub mutation is claimed. (docs/proof/source-drift-loop-breaker/result.json:1, e7d109cc8335)
  • Persisted compatibility proof: The inspected upgrade harness reopens the same persisted SQLite object as baseline, candidate, then baseline. Its receipt records preserved item/delivery rows, completion of pre-existing and candidate leases, operator recovery, and rollback release through organic events and commands; all 14 assertions are true. Older code does not operator-list the new park reason, but reads its records and releases them through demonstrated paths. Receipt SHA-256 is a47f5a5f0760c087b348be13a564a192f7d60fd4b945ceee92bdc2a684350d63. (docs/proof/source-drift-loop-breaker/upgrade-and-rollback.json:1, e7d109cc8335)
  • Proof remains applicable to current head: The proved revision 2f91363 and current head have the identical dashboard tree object e98929db3a7f6c4c579fe7db20344f42fe75a923. Current queue and Worker hashes also match both receipts, so the later main merge did not alter the exercised production owners. (dashboard/exact-review-queue.ts, e7d109cc8335)
  • Security and observer boundary: The new public projector constructs a closed object and limits sample identities to the verified-public repository allowlist. Existing signed operator routes retain their authorization and revision checks. No dependency, Action reference, installation hook, secret access, or principal authorization change was introduced. The PR explains why Bay needs no change: existing parked-state rendering suffices and the optional health field adds no controls. (dashboard/worker.ts:5735, e7d109cc8335)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-01T06:11:32.139Z sha 626dd23 :: blocked before merge. :: [P2] Expire loop counters before using them to deny admission

The loop lookup ignored updated_at, so an exhausted counter idle for more
than seven days could still park the next drift requeue: admission returned
from the parking branch before the pruning write ran, and parking then
refreshed the old timestamp. The lookup now treats (and deletes) an expired
row as absent before the limit check, parking only refreshes a live row,
and a generation write restarts an expired count at one even when the
bounded prune missed it.
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. labels Oct 1, 2026
@steipete
steipete merged commit 90b8d34 into main Oct 1, 2026
26 of 28 checks passed
@steipete
steipete deleted the feat/review-loop-breaker branch October 1, 2026 09:27
obviyus added a commit that referenced this pull request Nov 8, 2026
source_drift_loop has a budget the Worker restarts on operator recovery
(dashboard/exact-review-queue.ts, from #1732), so --force-unchanged must
still recover it. Add an operator-to-queue test: the real operator CLI
against the queue Durable Object harness over HTTP.

Co-authored-by: obviyus <[email protected]>
obviyus added a commit that referenced this pull request Nov 8, 2026
* fix(dlq): force-unchanged recovery skips unchanged policy holds

--force-unchanged exists to reset a spent retry budget. It also bypassed
the source-change check for policy holds (maintainer_request_required,
locked conversation, oversized PR), which have no budget: an unchanged
held review only re-parks. In the 2026-11-08 drain, 52 of 100 parked rows
were maintainer holds competing for the 5-per-run recovery cap, and the
retry-exhausted backlog moved 51 -> 49 over four runs.

Apply the override only to retry-budget reasons; holds still need a
source change.

Co-authored-by: obviyus <[email protected]>

* fix(dlq): keep forced recovery for source-drift loop budgets

source_drift_loop has a budget the Worker restarts on operator recovery
(dashboard/exact-review-queue.ts, from #1732), so --force-unchanged must
still recover it. Add an operator-to-queue test: the real operator CLI
against the queue Durable Object harness over HTTP.

Co-authored-by: obviyus <[email protected]>

---------

Co-authored-by: obviyus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant