Skip to content

fix(release): resume after delayed npm registry readback - #162990

Merged
RomneyDa merged 1 commit into
mainfrom
fix/release-npm-delayed-readback
Oct 1, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/release-npm-delayed-readback

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 1, 2026

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: extended-stable publication cannot resume when npm accepts the package but registry readback finishes after the publisher's bounded verification window.

User Impact

User impact: release operators can safely finish Docker and GitHub Release publication without attempting to republish immutable npm bytes.

Why This Change Was Made

The resume owner already binds the exact npm tarball, Sigstore provenance, protected tooling tag, workflow attempt, and parent approval. It now also accepts the narrow observed failure shape: the Publish step succeeded, the sole failed step was extended-stable registry readback, and every other job succeeded or was skipped. All other failed runs remain rejected.

Evidence

  • Regression failed on the pre-fix code at the resume owner, then passed after the repair.
  • node scripts/run-vitest.mjs test/scripts/openclaw-npm-resume-run.test.ts: 34/34 passed; 2.54s wall with one worker shard.
  • node scripts/check-changed.mjs -- scripts/openclaw-npm-resume-run.mts test/scripts/openclaw-npm-resume-run.test.ts: passed.
  • Live read-only proof verified npm provenance for [email protected] against original publisher run 36919657824 and recovered its exact protected workflow ref/SHA.
  • AutoReview: scoped clean at P0/P1 after resolving one fail-open finding about additional failed jobs.

CI test seconds: pending the first exact-head run.

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S labels Oct 1, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 4:49 PM ET / 20:49 UTC.

ClawSweeper review

What this changes

Allows release operators to resume downstream publication when npm publishing succeeded but extended-stable registry readback failed, with regression coverage for rejecting additional failed jobs.

Merge readiness

✅ Ready for maintainer review

The repair remains necessary: current main and the latest release reject this observed publication failure. The patch narrowly admits recovery while preserving publication safeguards; no introduced correctness defect was found.

Priority: P2
Reviewed head: 9addc0f4943aae62c5083ac476b68662d6b59613

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful regression coverage, an independently verified production failure shape, and preserved publication safeguards.
Proof confidence 🌊 off-meta tidepool Not applicable: The author is a repository member, so the external-contributor proof gate does not apply. GitHub records independently confirm the changed failure scenario; the body reports live provenance recovery, but downstream after-fix publication was not independently exercised. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a repository member, so the external-contributor proof gate does not apply. GitHub records independently confirm the changed failure scenario; the body reports live provenance recovery, but downstream after-fix publication was not independently exercised. No stored-data contract changes.
Evidence reviewed 9 items Introduced recovery boundary: The introduced predicate requires exactly one failed npm publisher, a successful Publish step, exactly one failed registry-readback step, and success or skipped conclusions for every other job.
Observed production failure matches the patch: Publisher run 36919657824, attempt 1, completed with failure: parent-approval validation succeeded, Publish succeeded, registry readback was the sole failed step, and the remaining jobs were skipped. This independently confirms the reported failure shape, without executing the candidate.
Current main still rejects recovery: The fetched main implementation requires both a successful overall run and a successful npm publisher job, so the observed failed attempt cannot resume through this owner.
Findings None None.
Security None None.

How this fits together

The release-resume validator combines npm package provenance with GitHub publisher records to identify an existing immutable publication. The parent release workflow uses that result to skip republishing npm bytes and continue verified downstream publication.

flowchart TD
  A[Published npm package] --> C[Verify package and provenance]
  B[Original GitHub publisher attempt] --> D[Check publisher outcome]
  C --> E[Validate protected tooling identity]
  D --> E
  E --> F[Approved parent release workflow]
  F --> G[Verify and finish downstream publication]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +60, Other +28. Total +88 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 60 0 +60
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 32 4 +28
Total 2 92 4 +88

Review metrics

None.

Technical review

Best possible solution:

Keep recovery in the existing resume owner, admitting only the verified readback failure while retaining immutable-byte checks, current parent approval, and downstream verification.

Do we have a high-confidence way to reproduce the issue?

Yes, source establishes that current main rejects the exact completed failure shape independently observed in the original publisher's GitHub job records; candidate execution was not performed.

Is this the best way to solve the issue?

Yes, extending the existing resume validator is a focused repair that preserves the surrounding approval, provenance, and immutable-package contracts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 98d3fdae4449.

Labels

Label changes:

  • add P2: This repairs an observed release-operator recovery failure with a limited publication-workflow blast radius.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author is a repository member, so the external-contributor proof gate does not apply. GitHub records independently confirm the changed failure scenario; the body reports live provenance recovery, but downstream after-fix publication was not independently exercised. No stored-data contract changes.

Label justifications:

  • P2: This repairs an observed release-operator recovery failure with a limited publication-workflow blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author is a repository member, so the external-contributor proof gate does not apply. GitHub records independently confirm the changed failure scenario; the body reports live provenance recovery, but downstream after-fix publication was not independently exercised. No stored-data contract changes.

Evidence

What I checked:

  • Introduced recovery boundary: The introduced predicate requires exactly one failed npm publisher, a successful Publish step, exactly one failed registry-readback step, and success or skipped conclusions for every other job. (scripts/openclaw-npm-resume-run.mts:177, 9addc0f4943a)
  • Observed production failure matches the patch: Publisher run 36919657824, attempt 1, completed with failure: parent-approval validation succeeded, Publish succeeded, registry readback was the sole failed step, and the remaining jobs were skipped. This independently confirms the reported failure shape, without executing the candidate.
  • Current main still rejects recovery: The fetched main implementation requires both a successful overall run and a successful npm publisher job, so the observed failed attempt cannot resume through this owner. (scripts/openclaw-npm-resume-run.mts:210, 98d3fdae4449)
  • Latest release has the same restrictive owner: The latest release tag v2026.9.7 contains resume-validator blob 8955fb7c1908e3cc3bdd5b4a6c67b8269a5eeeb1, identical to the fetched main's pre-patch blob. (scripts/openclaw-npm-resume-run.mts, c074824a27c9)
  • Final publication safeguards remain: The caller compares the downloaded npm tarball against the release preflight artifact before invoking the production verifier. The verifier still checks the exact publisher attempt, protected tooling tag, approval validation, and canonical Sigstore policy before returning recovery facts. (scripts/openclaw-npm-resume-run.mts:439, 9addc0f4943a)
  • Recovery does not replace current publication approval: The parent publish job remains protected by the npm-release environment. Recovery runs inside that approved job, and completion still invokes published-release verification before attaching final release evidence. (.github/workflows/openclaw-release-publish.yml:1292, 9addc0f4943a)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.

@RomneyDa
RomneyDa enabled auto-merge (squash) October 1, 2026 20:51
@RomneyDa
RomneyDa merged commit 0045499 into main Oct 1, 2026
104 checks passed
@RomneyDa
RomneyDa deleted the fix/release-npm-delayed-readback branch October 1, 2026 20:54
@RomneyDa

RomneyDa commented Oct 1, 2026

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant