Repository navigation
fix(release): resume after delayed npm registry readback - #162990
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 4:49 PM ET / 20:49 UTC. ClawSweeper reviewWhat this changesAllows 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +60, Other +28. Total +88 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash auto-merge.
|
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
Publishstep 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
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.[email protected]against original publisher run36919657824and recovered its exact protected workflow ref/SHA.CI test seconds: pending the first exact-head run.