Repository navigation
fix(review): stop scheduled review storms on unchanged issues - #1036
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 6, 2026, 7:09 AM ET / 11:09 UTC. ClawSweeper reviewWhat this changesThe PR forwards a claimed queue action into review preparation so scheduled queue deliveries can reuse unchanged-item receipts while explicit reviews remain fresh. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked until stronger real behavior proof is added - 2 items remain Keep open: the patch is a narrow, plausible fix for #1032, but it still needs controlled proof that a claimed scheduled delivery reaches the receipt-cache boundary and avoids a full review. Priority: P1 Review scores
Verification
How this fits togetherThe exact-review workflow claims queued work and invokes review preparation, which decides whether an unchanged item may reuse a prior receipt. That decision determines whether ClawSweeper performs a full review and sends downstream notifications. flowchart LR
Queue[Claimed review queue item] --> Workflow[Exact review workflow]
Workflow --> Provenance[Queue source action]
Provenance --> Preparation[Review preparation]
Preparation --> Decision[Automatic or explicit]
Decision --> Cache[Receipt cache]
Cache --> Outcome[Reuse receipt or full review]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land only after a controlled, redacted claimed scheduled delivery proves that an unchanged eligible item reuses its structural receipt while an explicit action still forces fresh work. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main emits scheduled source actions but does not carry them into the exact review's explicit-dispatch decision, which prevents receipt reuse for those deliveries. Is this the best way to solve the issue? Yes: preserving provenance through the existing review-preparation cache gate is narrower and safer than adding another workflow-only cache path; the remaining need is boundary proof. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0588bda94865. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
62d8111 to
4196b8b
Compare
|
Thank you @goutamadwant for tracking this down and implementing such a focused fix. |
Closes #1032.
What Problem This Solves
Fixes an issue where unchanged issues could be reviewed repeatedly when scheduled hot or normal queue deliveries were handled as explicit reviews. Those duplicate runs generated repeated contributor notifications and consumed review capacity even when only ClawSweeper-owned labels or comments had changed.
Why This Change Was Made
The exact-review worker now forwards the claimed queue decision's source action as a typed internal review input. Review preparation owns the source-action classification beside the existing explicit-dispatch decision: only
scheduled_hot_intakeandscheduled_normal_backfillare automatic, while commands, webhook events, legacy dispatches, unknown actions, and missing actions remain explicit.User Impact
Scheduled review lanes can reuse a verified structural receipt for unchanged items instead of starting another full review. Explicit reruns still force fresh work.
OpenClaw Bay is unaffected because this changes review invocation classification only; it does not alter observer schemas, status projections, or dashboard contracts.
Evidence
The regression failed on current main because exact queued reviews reached review preparation with an item number but no scheduled source input, making them explicit and ineligible for receipt reuse. The focused runtime regression now exercises both scheduled actions, representative explicit actions, missing and unknown actions, the legacy compatibility flag, and non-exact selection.
Validation:
Results: the focused runtime, workflow, scheduler, and cache suites passed on Node 24.16.0. The full check passed formatting, static policy checks, all TypeScript builds, lint, and the exercised test assertions, but its local test process retained an open handle after its last output and required termination; CI is the clean-environment confirmation for that full aggregate command.
Real Behavior Proof
Claim: the shipped workflow forwards claimed queue provenance into the real review-preparation boundary, where both scheduled actions are cache-eligible and sampled non-scheduled actions remain explicit.
Exercised surface: the built review-preparation module and the current
event-review-applyworkflow at head4196b8bf29072d938f6b4330094ec42c1e455e51.Observed runtime behavior:
A Docker-backed Crabbox
local-containerenvironment was also verified as available. A live claimed-delivery trace through the GitHub receipt-cache boundary remains pending because no least-privilege read-only GitHub credential was available for that container. No production review jobs were dispatched, no model capacity was consumed, and no contributor notifications were generated while validating this change.Disclosure: AI was used to understand the codebase and review the fix.