Repository navigation
fix(dlq): force-unchanged recovery skips unchanged policy holds - #2189
Conversation
--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]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesRestrict forced unchanged recovery to parked retry and source-drift budgets so unchanged policy holds do not consume recovery slots. Example: A forced recovery with a cap of 2 inspects unchanged items 97801, 97802, and 97803: a maintainer hold, an exhausted retry, and a source-drift loop.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a current recovery-slot starvation path and resolves the prior source-drift-loop finding; no new correctness defect was identified. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe operator CLI reads parked queue inventory and live GitHub source identities, selects bounded recoveries, and sends signed recovery requests to the exact-review queue. flowchart LR
Inventory[Parked inventory] --> Operator[Operator CLI]
GitHub[Live GitHub identities] --> Operator
Operator --> Filter[Budget and identity checks]
Filter --> Recovery[Signed recovery request]
Recovery --> Queue[Exact review queue]
Queue --> Pending[Pending reviews]
Technical reviewBest possible solution: Keep one shared budget classification at both existing recovery checks while preserving source-change recovery for policy holds. Do we have a high-confidence way to reproduce the issue? Current main demonstrably selects unchanged policy holds when forced, and the contributor supplies a failing-main comparison; no target code was executed during this review. Is this the best way to solve the issue? The patch fixes selection in the existing owner, repeats the predicate before mutation, and preserves the previously established source-drift-loop recovery contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 199013e70e1e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 8, 2026, 12:13 AM ET / 05:13 UTC (Revision 2). |
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]>
|
Addressed the review on a5f3651:
Suites |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Problem
exact-review-dead-letter-reconcilewithforce_unchanged=trueis meant to reset a spent retry budget for parked reviews. The flag also skipped the source-change check for policy holds (maintainer_request_required, locked conversation, oversized PR). Those have no budget to reset, so an unchanged held review just re-parks. They still compete for the 5-per-run recovery cap.Live on 2026-11-08: the parked inventory had 100 rows. 52 were
maintainer_request_required, 44review_retry_exhausted, 2source_incompatibleand 2oversized_pull_request. Four forced runs recovered 5 targets each, butreview_retry_exhaustedonly moved from 51 to 49.Fix
--force-unchangedoverrides the unchanged-identity check only for retry-budget reasons (review_retry_exhausted,dispatch_rejected), at both selection and the pre-mutation recheck. Holds still recover when their source changes. The Worker'soverride_retry_budgetcontract is unchanged.Tests
parked pull request reconciliation requires immutable source drift: a forced run on an unchangedmaintainer_request_requiredrow recovers nothing and reportsunchanged_review_identity. It fails onmain(recovered 1) and passes here. The existing forcedreview_retry_exhaustedcase still recovers withoverride_retry_budget: true.exact-review-dead-letter-operatorsuite: 90/90.lint:scriptsandoxfmt --checkare clean.