Repository navigation
fix(review): fence retries to immutable source - #1374
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 3, 2026, 8:40 AM ET / 12:40 UTC. ClawSweeper reviewWhat this changesThe PR binds exact-review retry recovery to immutable item identity, a retry-policy epoch, or an explicit operator override across queue, webhook, dispatcher, operator, documentation, and tests. Merge readiness⛔ Blocked before merge - 1 item remains Keep open: current main does not contain this branch’s retry-fencing behavior, and the current-head source, focused coverage, and controlled queue proof support retaining it as a landing candidate. No blocking correctness or security defect was identified in this review. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper’s exact-review queue receives GitHub events and dispatches bounded review jobs. It persists retry state and recovery metadata so transient failures can be retried without stale source events resetting exhausted work. flowchart LR
A[GitHub item event] --> B[Webhook or dispatcher]
B --> C[Source identity claim]
C --> D[Exact-review queue]
D --> E{Retry identity changed?}
E -->|No| F[Keep parked budget]
E -->|Yes| G[Grant fresh bounded retry]
D --> H[Review workflow dispatch]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the source-identity fence with its bounded operator escape hatch, then observe exact-review recovery telemetry during the deployed rollout. Do we have a high-confidence way to reproduce the issue? Yes—source provides a high-confidence exhausted parked-review scenario, and the current-head proof runner exercises the production queue boundary for unchanged, changed-head, and policy-epoch recovery cases. Is this the best way to solve the issue? Yes—the patch extends the existing queue with immutable input fencing rather than adding a parallel recovery path, while retaining a bounded operator override for deliberate resets. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 71e1290f7903. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Keep exhausted review budgets bound to the review input, allow explicit policy and operator resets, and carry source identity through every recovery path. Worked on by: - @brokemac79 Co-authored-by: brokemac79 <[email protected]>
da07453 to
812cf2d
Compare
Summary
Worked on by
Proof
812cf2d991709443785a35a27e1126f2ad2d4a2arun_a3edb530224f/ leasecbx_4402eca4c138(released){"proof":"review-retry-fencing-v1","source_head":"812cf2d991709443785a35a27e1126f2ad2d4a2a","runtime":{"node":"v24.20.0","queue":"production ExactReviewQueue","transport":"Request/Response","persistence":"SQLite-backed Durable Storage harness"},"observations":{"unchanged_source_recovered":false,"unchanged_budget_preserved":true,"changed_head_recovered":true,"changed_head_revision":2,"policy_epoch_recovered":true,"policy_epoch":"2"},"limits":["Runs the production queue module with SQLite-backed local Durable Storage, not deployed workerd.","Uses synthetic source identities and does not call GitHub or mutate a live queue."]}mainhad the same 59 container/fixture failures; PR-owned tests added no regressionlive-proof.test.tsandsetup-codex-action.test.ts), outside this PR's changed filesReview finding dispositions
.artifacts/review-retry-fencing/result.json, not documentation pathsBay impact
No Bay change is required. This changes the exact-review queue mutation guard and signed operator inventory; it does not change a public Bay projection or browser contract.