Repository navigation
fix(review): review PRs once after a quiet window - #1997
Conversation
|
ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment |
|
@clawsweeper review Please review the final candidate |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR delays the first automatic PR review until ten quiet minutes pass and requires an explicit request after a completed answer. Example: An ordinary PR changes its body nine minutes after initial observation.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open for landing consideration: the prior findings are resolved, and no new actionable defect was found in the pinned diff. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGitHub events and scheduled nominations enter the durable review queue, which checks live PR state and stored completion before dispatching or granting review work. flowchart LR
Events[GitHub events and scheduled nominations] --> Queue[Durable review queue]
Live[Live PR state] --> Queue
Store[Canonical publication and completion store] --> Queue
Queue --> Dispatch[Review workflow dispatch]
Dispatch --> Claim[Live claim eligibility]
Claim --> Review[Review and canonical publication]
Review --> Store
Technical reviewBest possible solution: Keep completion ownership in canonical publication and quiet-window enforcement in the existing queue, preserving explicit requests and live automation opt-ins. Do we have a high-confidence way to reproduce the issue? Current main retains recurring automatic review behavior and lacks the lifetime completion gate; source inspection establishes the path without running target code. Is this the best way to solve the issue? The existing publication store and queue are appropriate owners, and the final change resolves the earlier provenance and delayed-claim defects without adding a competing scheduler. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c0f27ee282e1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
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 (2 earlier review cycles)
Reviewed October 14, 2026, 10:57 AM ET / 14:57 UTC (Revision 3). |
|
@clawsweeper re-review Please review current head |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Current head |
|
🦞👀 Re-review progress:
|
Summary
Wait ten quiet minutes before the first automatic PR review, then require an explicit
@clawsweeper reviewor@clawsweeper re-reviewafter a completed answer. This prevents premature reviews during author/cleanup-bot edits and repeated automatic reviews after an answer.Real Behavior Proof
Candidate:
314d612bf8c633f5414293c9e1bb5fd747c768f0.Executed
node scripts/proof-pr-review-policy.mjs "$TOOL_PREFIX" "$FRESH_OUTPUT_DIR" "$LEGACY_PUBLICATION_SOURCE"against the production queue and persisted SQLite in workerd. The source-bound proof and result include nine current production-source hashes and the previous implementation's hash.Observed: initial ten-minute hold, body-change extension, one dispatch, stale automatic claim rejection after completion, suppression across a fresh Worker instance, explicit/opt-in dispatch, and rejection after opt-in removal before claim.
For upgrade proof, the actual publication store from base
adf080a6318b96e9665cc46de87f97641f3cfa23writes and prunes a database. A fresh candidate Worker opens it: unverified and pruned/unknown-provenance records remain eligible; verified completion with a retained valid receipt stays answered. Old records whose provenance was already discarded may receive one fresh review rather than permanently suppressing an unproven answer.Environment: macOS arm64, Node 26.7.0, frozen pnpm 12.4.1 dependencies in an isolated temporary source copy, Miniflare/workerd versions recorded in the proof. AWS Crabbox source transfer and the local container service were unavailable, so trusted-source local fallback was used. GitHub HTTP responses and time are controlled fixtures. This proof calls no model, mutates no live PR, and does not claim production deployment.
Review finding disposition
The first ClawSweeper review identified three accepted P2 issues, all addressed:
effectiveReviewStatusand runner-owned checkout verification into a shared dependency-light module; metadata and the new lifetime gate use the same contract. This preserves the intent of #1170.The same audit found a duplicate planner-only inference: complete-looking unpublished reports could suppress the scheduled offer needed to release a source-drift park after a missed webhook. That filter and helper are removed. The existing durable queue remains the sole completion authority and rejects answered offers before dispatch.
The earlier branch review also caught first-post-upgrade pruning deleting valid legacy receipts before lazy seeding. Pruning now seeds every selected published receipt, including valid completions, before deletion. The old-store runtime proof explicitly runs candidate pruning before the first eligibility check and preserves the completed answer.
The second ClawSweeper review identified archive/reopen reconciliation incorrectly promoting stale-source reports to completed answers. Positive completion now lives only in actual review publication. Generic tuple mutations preserve the existing fact and seed proven legacy completion before overwriting records. A regression test reproduces the previous failure, and the refreshed workerd proof covers both stale-source and valid answers through archive/reopen.
CI also caught an early draft discard, which was removed so existing draft/oversized-PR worker gates remain authoritative. The local review's earlier legacy-seeding finding was corrected and covered before and after receipt pruning.
Validation
pnpm check, fast gates, Windows launcher, and sparse build smoke. Fresh local delta and final committed-branch reviews found no actionable P0/P1/P2 findings.The publication store owns lifetime completion; the existing queue owns quiet time and admission. This adds one additive SQLite table without a schema bump, no new executor or scheduling service. Production TypeScript: +375 / -31 lines (net +344). Tests and the runtime-proof harness: +952 / -87 (net +865). Production growth implements durable completion, the quiet interval, and live claim authorization; duplicate planner policy was removed.