Skip to content

fix: re-review items held by the old input-scan policy - #2205

Merged
obviyus merged 1 commit into
mainfrom
fix/scanner-hold-epoch-2
Nov 14, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/scanner-hold-epoch-2

Conversation

@obviyus

@obviyus obviyus commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

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.md makes EXACT_REVIEW_RETRY_POLICY_EPOCH the release for a scanner or policy change: automatic events, source changes and close/reopen deliberately cannot release a scanner_refused hold. The epoch has been 1 since #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 a re_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 2 review_retry_exhausted items, which the same doc permits.

Evidence

  • Live /api/exact-review-queue on 2026-11-14 09:34 UTC: warning_evidence scanner_refused total 684, review_retry_exhausted 2; queue idle with 64 free slots.
  • Existing coverage: test/backlog-reliability-proof.test.ts exercises the queue under epoch 2.

Real Behavior Proof

  • Claim: after deploy, held items are re-admitted on scheduled offers and the scanner_refused count falls.
  • Proof plan: track the scanner_refused count and agent_input_scan failures on /api/exact-review-queue for 24h after deploy. The rate of repeat refusals measures how many holds are genuine unapproved credentials.

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]>
@clawsweeper

clawsweeper Bot commented Nov 14, 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Bumps 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.

  • Before: An ordinary scheduled offer leaves the item held under deployed epoch 1.
  • After: Under epoch 2, an eligible offer replaces the held request with a fresh review admission.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The patch is focused and source-correct, but the required current-candidate behavior proof is still a plan.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Reviews refused under the retired scanner policy remain held even when their input can now qualify.
Reason: The maintainer-directed change uses the recovery control expressly designed for scanner-policy updates and adds no parallel mechanism.

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
Reviewed head: 6dc2cea27eed5b291fbec8f22dbafefb9185da14

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Provide a current-candidate controlled production-queue trace showing an existing epoch-1 scanner hold receiving a fresh automatic admission under epoch 2 without inheriting failed command authority, with sensitive values redacted.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Deployed retry-policy epoch keeps the original intent (674841b: Grant fresh bounded retry budgets only after a deliberate source, policy, or operator-authority change; the later durable-hold implementation retained policy-epoch release.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit dd58d9e adds dashboard/wrangler.toml:88 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dd58d9ec74fb; files: dashboard/wrangler.toml)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Restores eligibility for a reported backlog of held reviews through an existing bounded recovery mechanism.
  • add merge-risk: 🚨 automation: The deployment intentionally changes review admission and retry eligibility for existing held queue records, including exhausted retry budgets.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Restores eligibility for a reported backlog of held reviews through an existing bounded recovery mechanism.
  • merge-risk: 🚨 automation: The deployment intentionally changes review admission and retry eligibility for existing held queue records, including exhausted retry budgets.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Supply the controlled recovery trace identified in the proof assessment before merge.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 14, 2026, 5:05 AM ET / 10:05 UTC.

@obviyus
obviyus merged commit 9f15dfb into main Nov 14, 2026
40 checks passed
@obviyus
obviyus deleted the fix/scanner-hold-epoch-2 branch November 14, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. P2 Normal priority bug or improvement with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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