Repository navigation
fix: automatically recover and reconcile exact-review dead letters - #973
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
4cc0f12 to
b6f256c
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 9:55 AM ET / 13:55 UTC. ClawSweeper reviewWhat this changesThis PR adds a scheduled, bounded reconciler for exact-review publication dead letters and pins the checkout action used by the automatic issue-implementation backfill workflow. Merge readiness⛔ Blocked until stronger real behavior proof is added - 7 items remain Keep this PR open for human review. The provided context shows a security-sensitive scheduled recovery operator with claimed deployment and test evidence, but the required local read-only inspection could not start because the execution sandbox failed with Priority: P1 Review scores
Verification
How this fits togetherExact review publishes ClawSweeper’s durable review results through a queue and records failed publications as dead letters. The new operator inventories those rows, resolves terminal cases, and queues one guarded retry for still-open GitHub items, affecting Worker state and scheduled GitHub Actions automation. flowchart LR
A[Scheduled GitHub Action] --> B[Dead-letter operator]
B --> C[Queue inventory]
C --> D{Canonical item state}
D -->|Terminal or duplicate| E[Resolve dead-letter row]
D -->|Open and recoverable| F[Queue fresh ordinary review]
E --> G[Durable queue state]
F --> G[Durable queue state]
Decision needed
Why: The choice authorizes recurring production mutations using an operator secret and cannot be resolved safely from the supplied context after the mandated local source inspection failed. Before merge
Findings
Agent review detailsSecurityNeeds attention: The supplied context shows a new scheduled operator authorized by a production secret and GitHub token, but the sandbox failure prevented the required independent review of its full authorization and request-guard implementation. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Verify the exact current head in a working read-only environment, then land only after the PR body includes redacted live operator output showing terminal resolution and a bounded fresh recovery without bypassing active-item fences. Do we have a high-confidence way to reproduce the issue? No. The PR body claims a deployed Worker and focused tests, but the supplied evidence does not show an observed scheduled reconciliation result, and the required local inspection could not run because the sandbox failed before repository access. Is this the best way to solve the issue? Unclear. Guarded bounded reconciliation is a plausible solution for accumulated publication dead letters, but a complete source review and a redacted production-run result are needed to establish that it is the safest automatic recovery path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3d2a878f6e2a. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What 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
History |
b6f256c to
77f0f80
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…etter recovery (#1146) Makes the dead-letter reconcile lane throttle-resilient so the DLQ can drain during busy hours instead of only when the system is idle. Production evidence: the 19:46Z cycle recovered 0 targets - one 403 on a live-target check aborted canonical discovery and skipped all 125 remaining targets (skip_reasons not_inspected_abort), while the repository_actions bucket sat exhausted (~1,900 throttled item_metadata reads) and target_app had headroom. Five review-hardened layers landed together: (1) target REST/canonical reads route to per-owner App-minted target tokens per the two-bucket doctrine (#1062), reusing the publication path's minting stack in dashboard/github-api.ts - artifact downloads stay on repository_actions; (2) throttle/abuse 403/429 degrade per target with a three-consecutive-throttle fuse instead of abort-all (the #973 abort's quota-protection intent is preserved by the fuse); (3) throttled App installation lookup/minting takes the same bounded skip path (scope=app_setup) with per-owner negative caching; (4) partial App-credential configuration is a hard startup failure naming the missing field - repository-token reads require explicit EXACT_REVIEW_TARGET_TOKEN_MODE=actions, never a silent fallback; (5) installation-missing 404s cache per repository, not per owner, so selected-repositories installations cannot orphan accessible siblings. Auth failures on valid installations remain fail-closed; installation_missing is a structured skip. Proof: Docker-backed Crabbox local-container receipts at each round's head, final 27/27 scenarios (docs/proof/reconcile-throttle-resilience/); operator suite 80/80; full gate green. Verdict clean (Findings: None) on 3ae7bf8. The prior pnpm-check failure was an actionlint CDN 503, rerun green.
…penclaw#973) * fix: automatically recover and reconcile exact-review dead letters * fix: pin checkout in privileged automatic bug backfill --------- Co-authored-by: Peter Steinberger <[email protected]>
What changes
maincommits that did not deploy the Worker.mainwith least-privilege tokens and the auditedexact-review-operatorenvironment.Proof
/api/healthreturned deployment77f0f809c76c259278b993a00da222a573099f82, whose guarded recovery source blob is identical to this PR.node --experimental-strip-types --test test/exact-review-dead-letter-operator.test.ts— 34/34 passed, including complete inventory above 2,000 items, transferred aliases, duplicate head selection, all active sibling fences, closed/merged cleanup, source-head drift, stale pressure, reentrant cleanup, invalid rows behind inaccessible repositories, and safe retry.node --experimental-strip-types --test --test-name-pattern='guarded dead-letter' test/dashboard-worker.test.ts— 7/7 passed against the actual Durable Object, including atomic transferred-alias exclusion, stale inventory, resolution races, idempotency, live capacity, canonical retargeting, and rejected untrusted aliases.main.The repository owner explicitly requested automatic backlog recovery, production monitoring, and automatic landing of safe ClawSweeper service improvements in this session.