Repository navigation
fix(release): harden published artifact verification (#81) - #90
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 5:18 PM ET / 21:18 UTC. ClawSweeper reviewWhat this changesThe PR changes the protected-tag release pipeline to create a draft release before npm publication, then verifies the published tarball, npm signature, and Sigstore provenance before attaching proof and promoting that draft. Merge readinessKeep this PR open for normal merge review. Current Priority: P2 Review scores
Verification
How this fits togetherThe protected-tag release workflow builds a validated package artifact, publishes it to npm, and then creates the public GitHub Release. The changed verifier compares the trusted local artifact with npm registry metadata, canonical registry bytes when needed, registry signatures, and provenance before the release is made public. flowchart LR
A[Protected release tag] --> B[Build validated package artifact]
B --> C[Create draft GitHub Release]
C --> D[Publish or locate npm version]
D --> E[Verify registry metadata and bytes]
E --> F[Verify signature and provenance]
F --> G[Attach proof and promote release]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the shared verifier and draft-to-public workflow so releases remain unpublished until the exact package bytes, npm signature, and trusted GitHub Actions provenance all verify, while retaining draft releases as the explicit recovery state for failed release attempts. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main marks a mismatched Is this the best way to solve the issue? Yes. Sharing one verifier between publication and release-proof generation avoids two competing trust decisions, and the fallback is narrow: it only accepts canonical registry bytes that exactly match the prevalidated artifact while preserving fatal handling for identity and provenance failures. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2477f5681f68. LabelsLabel changes:
Label 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
|
efed9e9 to
836229f
Compare
The v0.5.1 run published the workflow-validated tarball with provenance, but npm view transiently reported a different dist.integrity for longer than the retry budget, so the release job was skipped even though the published bytes were later proven byte-identical. The gate accepted only two packument facts: an integrity string match and a truthy attestation URL that was never fetched. It now verifies the published bytes directly when metadata conflicts, checks npm's ECDSA registry signature, and validates the Sigstore bundle and DSSE subject digest under a policy pinning this repository, the release workflow, the version tag and the builder identity. append-release-proof.mjs repeated the same weak check without retries, so both gates now share one verifier. Releases are created as drafts before publication and promoted only after verification, so a propagation incident leaves a recoverable draft rather than no release at all.
836229f to
092baac
Compare
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(release): harden published artifact verification (#81) This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Summary
Live proof
@openclaw/[email protected]registry signature and Sigstore bundlef4dabf3ed706bf08ea7a282750baa4ebf1707b60and integritysha512-WcaG3NUMd4q+puq/I55zxwc0+OjNVhqxSprKzpS17c2cDd9bYc8c2DrYrs6Io3mmNXNa90re/UWSwVkX4I6PkA==tarball-integrity-mismatchwithout retryVerification
pnpm checkpnpm test:securitypnpm pack:checkactionlint .github/workflows/release.ymlgit diff --checkNo package, tag, or GitHub Release was published or created during verification.
Closes #81