Repository navigation
Description
Problem
v0.5.0 published @openclaw/[email protected] successfully (provenance-attested, verified working from a clean install), but the Publish or verify step failed with:
Error: @openclaw/[email protected] exists with different package bytes
The registry dist.integrity does not match the integrity recorded in the release manifest by Assemble and validate. Consequence: the Publish GitHub Release job was skipped and the release had to be created manually.
Root cause (two distinct defects)
1. The publish step does not publish the validated tarball. npm publish re-packs from the working directory, producing a different gzip stream (timestamps/ordering) than the artifact that Assemble and validate hashed. The byte-identity chain of custody the workflow is designed to enforce therefore cannot hold, by construction. Fix: publish the exact artifact (npm publish <path-to-validated-tarball>), or compute the manifest integrity from a canonical repack that publish reproduces.
2. The registry verification window is too short for a bundled-binary package. scripts/publish-or-verify.mjs polls 12 times at ~5s (~65s total). On the v0.5.0 run the package was still propagating and every attempt reported "has not confirmed", so a successful publish was reported as failure. Fix: exponential backoff with a materially longer ceiling, and/or treat the packument time entry as confirmation.
Impact
- Not a security issue: the published artifact is CI-built from the tag with signed provenance; a clean install resolves all seven bundled native binaries and enforces containment correctly.
- Operational: every release will red-flag and skip its GitHub Release job until fixed.
Evidence
- Run: https://github.com/openclaw/fs-safe/actions/runs/30316760633 (first attempt: 12× "has not confirmed"; rerun after propagation: "different package bytes")
- Registry:
@openclaw/[email protected], unpacked 16993344 bytes, 417 files, attestations present - Release created manually: https://github.com/openclaw/fs-safe/releases/tag/v0.5.0
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jul 28, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 27, 2026, 8:27 PM ET / July 28, 2026, 00:27 UTC.
Summary
This issue is still necessary: the reported failure occurred on
v0.5.0, and currentmainis the same commit as that release, so there is no newer main-branch implementation that can have corrected the release path. The report identifies two concrete release-automation defects and a real operator impact: successful npm publication can still fail the workflow and skip GitHub Release creation.Reproducibility: unclear. for a fresh run: the issue links a concrete failed
v0.5.0release run and currentmainis that same release commit, but this read-only review did not execute a new release workflow or inspect its live logs.Ways to help us reproduce this
Next step
The repair is technically bounded but changes the release artifact and provenance contract, so a maintainer should first confirm the intended publish-and-verify semantics.
Review details
Best possible solution:
Preserve a single validated tarball through publication, then make registry confirmation resilient to normal propagation delay while retaining a strict integrity comparison once metadata is available.
Do we have a high-confidence way to reproduce the issue?
Unclear for a fresh run: the issue links a concrete failed
v0.5.0release run and currentmainis that same release commit, but this read-only review did not execute a new release workflow or inspect its live logs.Is this the best way to solve the issue?
Yes in principle: publishing the already validated artifact and extending propagation-aware verification directly address the two reported failure modes, provided the change proves npm provenance and manifest integrity remain strict end to end.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 66201c1f347a.
Label changes
Label changes:
P2: A release-automation failure has limited user-runtime blast radius but blocks the normal GitHub Release completion path for each affected package release.impact:other: The issue has a concrete maintainer-visible packaging and release-operation impact that does not fit the more specific impact categories.issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.Label justifications:
P2: A release-automation failure has limited user-runtime blast radius but blocks the normal GitHub Release completion path for each affected package release.impact:other: The issue has a concrete maintainer-visible packaging and release-operation impact that does not fit the more specific impact categories.Evidence reviewed
What I checked:
v0.5.0; repository context identifiesv0.5.0as the latest release and gives currentmainas the identical commit, so no post-release main commit can yet contain this fix. (66201c1f347a)pnpm checkandgit diff --checkbefore handoff. (AGENTS.md:1, 66201c1f347a)Likely related people:
v0.5.0release failure with the workflow run, registry behavior, and a narrowly scoped diagnosis; current source-history attribution could not be established in this read-only inspection. (role: release incident reporter and likely adjacent release contributor; confidence: low; files:.github/workflows/release.yml,scripts/publish-or-verify.mjs)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.