Skip to content

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

Merged
RomneyDa merged 1 commit into
mainfrom
fix/release-resume-publisher-bookkeeping
Oct 1, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/release-resume-publisher-bookkeeping

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 1, 2026

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: an extended-stable publication resume stops after successful package verification when the provenance-bound original npm publisher failed only during delayed registry readback.

User Impact

User impact: maintainers can finish Docker and GitHub Release publication without weakening verification of unrelated failed jobs.

Why This Change Was Made

The npm resume owner already admits this exact historical failure from package provenance, protected-tag identity, the signed run attempt, and step-level publish evidence. The final verifier now reuses only that narrow delayed-readback predicate for the bound historical attempt; every other failed run or job remains blocking.

Evidence

  • pnpm test test/scripts/openclaw-npm-resume-run.test.ts test/scripts/release-beta-verifier.test.ts --maxWorkers=1: 117 passed in 56.79s wall.
  • node scripts/check-changed.mjs --timed: passed all selected scripts, tooling, and root-test checks.
  • AutoReview P1 resolved: an explicit regression proves a successful publish job cannot hide an unrelated failed job.
  • Live reproduction: release resume run 36935608267 passed exact npm package verification (fresh-exact OK) before the final generic workflow-conclusion check rejected original publisher run 36919657824.

@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
@RomneyDa
RomneyDa marked this pull request as ready for review October 1, 2026 23:20
@RomneyDa

RomneyDa commented Oct 1, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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, 7:32 PM ET / 23:32 UTC (Revision 2).

ClawSweeper review

What this changes

The PR lets final release verification reuse the npm resume owner's narrow delayed-readback exception for an exact historical publisher attempt and adds acceptance and rejection regressions.

Merge readiness

✅ Ready for maintainer review

This remains a useful, necessary follow-up to the merged resume fix: current main still rejects the admitted historical publisher at final verification. No introduced correctness or security defect was found, and the MEMBER-authored PR must remain open for the normal landing workflow.

Priority: P2
Reviewed head: 755f116fe98b72e4152a2f79b97a8b44ecaf5cfe

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair reuses the existing policy and adds meaningful verifier-boundary regressions, with no blocking defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER author is exempt from ordinary contributor proof. Captured production evidence shows the pre-fix final-verifier rejection, with reported regression tests supplying supplemental after-fix validation; no material principal-authority change or stored-data contract change was identified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER author is exempt from ordinary contributor proof. Captured production evidence shows the pre-fix final-verifier rejection, with reported regression tests supplying supplemental after-fix validation; no material principal-authority change or stored-data contract change was identified.
Evidence reviewed 8 items Pinned introduced change: The merge-base-to-head patch exports the existing recovery predicate and uses it only for historical npm publisher verification. The verified test merge has the recorded base and exact PR head as its ordered parents; its verifier delta matches the introduced change.
Current main still needs the final-gate repair: Fetched main supplies the original attempt, SHA, and ref but has no failed-run acceptance callback at the npm verifier call. The related merged fix #162990 repaired resume admission, not this final verification gate.
Narrow failure classification: Acceptance requires exactly one failed npm publish job, a successful Publish step, exactly one failed step named Verify extended-stable registry readback, and successful or skipped sibling jobs. Final verification still checks completion, workflow name, event, branch, run ID, attempt, and SHA before accepting the exception.
Findings None None.
Security None None.

How this fits together

Release publication checks npm package identity and workflow evidence before completing Docker and GitHub Release publication. The final verifier consumes the original publisher identity recovered from package provenance.

flowchart TD
  A[Published npm package] --> B[Provenance and resume checks]
  B --> C[Original publisher attempt]
  C --> D[Final release verifier]
  E[Workflow jobs and steps] --> D
  D --> F{Only delayed readback failed?}
  F -->|Yes, identity matches| G[Continue publication]
  F -->|No| H[Block verification]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +44, Other +13. Total +57 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 44 0 +44
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 23 10 +13
Total 3 67 10 +57

Review metrics

None.

Technical review

Best possible solution:

Keep one delayed-readback classification owner while preserving exact publisher identity, package verification, and rejection of unrelated failures throughout release recovery.

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

Yes, source establishes the failure: current main admits the original delayed-readback publisher during recovery, then rejects its failure conclusion during final verification. The body also identifies the affected production runs; this review did not execute them.

Is this the best way to solve the issue?

Yes, reusing the existing narrow predicate at the remaining verifier gate avoids competing policy and preserves unrelated failure rejection.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs a bounded release-operator recovery failure without an established urgent end-user regression.
  • 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 MEMBER author is exempt from ordinary contributor proof. Captured production evidence shows the pre-fix final-verifier rejection, with reported regression tests supplying supplemental after-fix validation; no material principal-authority change or stored-data contract change was identified.

Evidence

What I checked:

  • Pinned introduced change: The merge-base-to-head patch exports the existing recovery predicate and uses it only for historical npm publisher verification. The verified test merge has the recorded base and exact PR head as its ordered parents; its verifier delta matches the introduced change. (scripts/lib/release-beta-verifier.ts:2141, 755f116fe98b)
  • Current main still needs the final-gate repair: Fetched main supplies the original attempt, SHA, and ref but has no failed-run acceptance callback at the npm verifier call. The related merged fix fix(release): resume after delayed npm registry readback #162990 repaired resume admission, not this final verification gate. (scripts/lib/release-beta-verifier.ts:2131, e1d4dcc81a5c)
  • Narrow failure classification: Acceptance requires exactly one failed npm publish job, a successful Publish step, exactly one failed step named Verify extended-stable registry readback, and successful or skipped sibling jobs. Final verification still checks completion, workflow name, event, branch, run ID, attempt, and SHA before accepting the exception. (scripts/openclaw-npm-resume-run.mts:177, 755f116fe98b)
  • Production identity handoff: The publication helper checks published tarball bytes against preflight, runs the provenance-verifying resume owner, and passes its recovered ref, SHA, and attempt into the final verifier. The patch does not change publication approval, permissions, package verification, or stored-data formats. (scripts/lib/release-publish-children.sh:1305, 755f116fe98b)
  • Regression coverage and reported validation: The new verifier-boundary cases accept the exact delayed-readback attempt and reject an unrelated failed job after successful publication. Existing cases reject changed attempt, run ID, and SHA. The captured body reports 117 passing tests in 56.79 seconds and passing changed checks; this read-only review did not execute tests. Its live reproduction demonstrates the pre-fix final-gate failure, not an after-fix run. (test/scripts/release-beta-verifier.test.ts:158, 755f116fe98b)
  • Merged-area history: Current-main history records Dallin Romney's earlier delayed-readback repair and Peter Steinberger's publisher-attempt and release-verifier work. These establish routing relevance without claiming causal introduction from blame. (scripts/openclaw-npm-resume-run.mts, 004549970362)

Likely related people:

  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-01T23:24:29.997Z sha 755f116 :: needs maintainer review before merge. :: none

@RomneyDa
RomneyDa enabled auto-merge (squash) October 1, 2026 23:26
@RomneyDa RomneyDa closed this Oct 1, 2026
auto-merge was automatically disabled October 1, 2026 23:27

Pull request was closed

@RomneyDa RomneyDa reopened this Oct 1, 2026
@RomneyDa
RomneyDa merged commit bd058c2 into main Oct 1, 2026
260 of 262 checks passed
@RomneyDa
RomneyDa deleted the fix/release-resume-publisher-bookkeeping branch October 1, 2026 23:36
@RomneyDa

RomneyDa commented Oct 1, 2026

Copy link
Copy Markdown
Member Author

Merged via squash.

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