Repository navigation
fix: re-review items held by the old input-scan policy - #2205
Conversation
Bump EXACT_REVIEW_RETRY_POLICY_EPOCH to 2 after the exact-value scan approvals (#2201). 684 items are held as scanner_refused under the old file-bound policy; the epoch change lets each be re-admitted on its next scheduled offer. Command-started holds still need a fresh command. 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 changesBumps the deployed retry-policy epoch from 1 to 2 so previously scanner-held reviews can be admitted again. Example: An item remains parked as scanner_refused with reviewRetryPolicyEpoch 1 after the scanner approval policy changes.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this is a focused use of the documented scanner-policy recovery mechanism, and current main still configures epoch 1. No introduced code defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe deployed Worker’s exact-review queue receives review offers, compares them with persisted holds and retry identity, and admits bounded review jobs or preserves the hold. flowchart LR
A[Review offer] --> B[Exact review queue]
C[Configured policy epoch] --> B
D[Persisted scanner hold] --> B
B --> E[Preserve hold]
B --> F[Fresh bounded review]
Technical reviewBest possible solution: Use the existing epoch mechanism with current-candidate controlled recovery evidence, then observe the normal bounded rollout. Do we have a high-confidence way to reproduce the issue? Source establishes that an epoch-1 scanner hold survives ordinary offers while the configured epoch remains 1; the reported live backlog size was not independently reproduced. Is this the best way to solve the issue? The one-value deployment change is the smallest complete implementation of the documented recovery contract, preserving the queue’s existing limits and scanner checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dced470de4bf. Provenance checked
TestingProof path: none. 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. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 Reviewed November 14, 2026, 5:05 AM ET / 10:05 UTC. |
What Problem This Solves
Fixes: 684 issues and PRs stay unreviewed because the input scanner refused them under the old file-bound fixture policy, and nothing re-admits them after #2201 changed that policy.
User Impact
Each held item is reviewed again on its next scheduled pass. Items whose findings are now approved values get a review. Items with genuinely unapproved credentials refuse again and stay held. Maintainer-command holds still need a fresh command.
Why This Change Was Made
docs/scheduler.mdmakesEXACT_REVIEW_RETRY_POLICY_EPOCHthe release for a scanner or policy change: automatic events, source changes and close/reopen deliberately cannot release ascanner_refusedhold. The epoch has been1since #1374. #2201 replaced the per-file allowlist with exact value approvals, which is the kind of change the epoch exists for.Release path (
dashboard/exact-review-queue.ts): a hold is released only for a scheduled offer under a different epoch, with no command context, not are_review, and not a manual admission. Releases therefore follow the scheduled feed (target 220/hour, max 32 concurrent), not a burst. The bump also resets retry budgets for the 2review_retry_exhausteditems, which the same doc permits.Evidence
/api/exact-review-queueon 2026-11-14 09:34 UTC:warning_evidencescanner_refusedtotal 684,review_retry_exhausted2; queue idle with 64 free slots.test/backlog-reliability-proof.test.tsexercises the queue under epoch2.Real Behavior Proof
scanner_refusedcount falls.scanner_refusedcount and agent_input_scan failures on/api/exact-review-queuefor 24h after deploy. The rate of repeat refusals measures how many holds are genuine unapproved credentials.