fix(release): publish validated artifact bytes - #74
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 28, 2026, 12:43 AM ET / 04:43 UTC. ClawSweeper reviewWhat this changesThis PR publishes the manifest-validated tarball rather than repacking the working tree, verifies the npm registry package identity and provenance with bounded retries, increases release-job time, and adds focused tests. Merge readiness⛔ Blocked until stronger real behavior proof is added - 3 items remain Keep this PR open: it is a focused candidate fix for the linked release failure and the supplied review context shows no actionable code defect, but it still lacks inspectable after-fix real behavior proof from the changed npm publication and verification gate. Priority: P2 Review scores
Verification
How this fits togetherThe release workflow creates and validates a package tarball, downloads that release artifact, and passes it to a publish-or-verify gate before creating the GitHub release. That gate must ensure the bytes uploaded to npm and the bytes later reported by the registry match the release manifest. flowchart LR
A[Release source and tag] --> B[Assemble and validate package]
B --> C[Manifest-validated tarball]
C --> D[Publish or verify gate]
D --> E[npm registry metadata and provenance]
D --> F[GitHub release publishing]
Before merge
Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the focused byte-identity and retry repair after the PR includes redacted real execution evidence showing the manifest-validated tarball is the publish input and the registry result matches its integrity and provenance. Do we have a high-confidence way to reproduce the issue? Yes, with medium confidence from the linked report and supplied diff: the former workflow compared a manifest-validated artifact with a package that npm had repacked from the working tree, so the identity mismatch follows from the described path. A local current-main reproduction was not run because this review is read-only and the available shell could not start. Is this the best way to solve the issue? Yes, provisionally: publishing the already validated artifact removes the competing byte source, while bounded registry retries address delayed metadata. The remaining requirement is live release-gate evidence that the combined path succeeds under real npm conditions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 40925fca8ee5. 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 (1 earlier review cycle)
|
3209240 to
83cb357
Compare
|
Merged after exact-head release-path verification. Tested at rebased head
The first exact-head CI attempt hit an unrelated transient Windows |
Fixes #73.
Summary
Proof
pnpm exec vitest run test/publish-or-verify.test.tspnpm check(58 test files passed, 602 tests passed, 23 skipped)