Repository navigation
fix(release): refuse unsafe consumed npm producer reruns - #180246
Conversation
Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR checks npm preparation identity before retrying artifact producers and rejects retries that would replace bytes already consumed by candidate evidence. Example: Npm producer run 81 has supplied candidate bytes, but a later attempt replaces its original preparation execution.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses a valid release-recovery failure, fixes the prior finding, and introduces no remaining actionable correctness or security defect; current-head CI is still running. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe FRV controller reads frozen execution plans, dispatch logs, producer attempts, and package descriptors to select safe GitHub retries and collect release qualification evidence. flowchart LR
A[Frozen FRV plan] --> B[Controller preflight]
C[Dispatch logs and job history] --> B
B --> D[Safe producer retries]
D --> E[Artifact collector]
F[Immutable npm descriptors] --> E
E --> G[Candidate and qualification evidence]
Technical reviewBest possible solution: Keep recovery in the existing controller and artifact collector, using immutable descriptors and the shared execution fingerprint to preserve consumed npm bytes. Do we have a high-confidence way to reproduce the issue? Current-main source lacks the consumed-preparation preflight and can request a producer retry that later fails immutable-byte checks; this read-only review executed no target code. Is this the best way to solve the issue? The change preserves the existing recovery owners and historical carried-job contract while moving the refusal before mutation, and the latest correction restores safe retries before candidate consumption. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7f843716fbcb. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +220, Config 0, Other +123. Total +343 across 6 files. Added test files: 0. View PR surface stats
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 (8 earlier review cycles)
Reviewed October 28, 2026, 11:55 PM ET / October 29, 2026, 03:55 UTC (Revision 9). |
Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Resolve the test-line baseline against current main while preserving its existing slack. Co-authored-by: RomneyDa <[email protected]>
|
Latest-main conflict and ratchet follow-up validated at exact head 549a846. @clawsweeper re-review |
Resolve the test-line baseline against current main while preserving its existing slack. Co-authored-by: RomneyDa <[email protected]>
|
Latest-main conflict and ratchet follow-up validated at exact head 449fd97. @clawsweeper re-review |
…umed-producer-preflight Co-authored-by: RomneyDa <[email protected]> # Conflicts: # config/test-lines-baseline.txt
|
Current-main conflict and test-line baseline reconciled at exact head 3a39286; 169 targeted tests pass. @clawsweeper re-review |
Co-authored-by: RomneyDa <[email protected]>
|
Current-main conflict resolved at exact head @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Summary
reuse_evidence=trueWhy
Rerunning a failed npm byte producer after its output has already been consumed can create a different producer identity and make the later seal fail. This guard saves time only in that doomed recovery case; it does not add a general compatibility gate or block independent producers.
Testing
test/scripts/frv.test.ts: 115 passedgit diff --checkCloses RRI-211.