Skip to content

Release workflow: publish re-packs instead of publishing the validated tarball, and registry verification times out #73

Closed

Description

@steipete

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

Activity

  1. added
    P2
    impact:other
    issue-rating: 🦪 silver shellfish
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-maintainer-review
    on Jul 28, 2026
  2. clawsweeper commented on Jul 28, 2026

    @clawsweeper
    Contributor

    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 current main is 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.0 release run and current main is 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

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.
    • Share version, platform, channel/provider, and relevant config details.

    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.0 release run and current main is 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:

    • Publishing a different archive from the one validated by the manifest defeats the intended byte-identity release check and will continue to block GitHub Release automation.
    • Changing the publish input or verification criteria without an end-to-end release dry run could accidentally weaken provenance/integrity verification or still fail during npm propagation.

    Codex review notes: model internal, reasoning high; reviewed against 66201c1f347a.

    Label changes

    Label changes:

    • add P2: A release-automation failure has limited user-runtime blast radius but blocks the normal GitHub Release completion path for each affected package release.
    • add impact:other: The issue has a concrete maintainer-visible packaging and release-operation impact that does not fit the more specific impact categories.
    • add issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.
    • add clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.
    • add 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:

    • Affected current release: The report records the failure on v0.5.0; repository context identifies v0.5.0 as the latest release and gives current main as the identical commit, so no post-release main commit can yet contain this fix. (66201c1f347a)
    • Concrete failure mechanism: The issue provides a failed release-run link and distinguishes the registry-byte mismatch after propagation from the earlier short polling window, yielding a bounded workflow and verification investigation rather than a speculative report.
    • Repository policy applied: The repository policy treats package and release changes as public, operationally sensitive contracts and directs use of focused validation plus pnpm check and git diff --check before handoff. (AGENTS.md:1, 66201c1f347a)

    Likely related people:

    • steipete: Reported the observed v0.5.0 release 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 keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper:needs-maintainer-reviewclawsweeper:no-new-fix-primpact:otherissue-rating: 🦪 silver shellfish

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions