Skip to content

fix(release): retry failed npm qualification without restarting validation - #150991

Merged
RomneyDa merged 3 commits into
mainfrom
fix/frv-failed-producer-preflight
Sep 17, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
fix/frv-failed-producer-preflight

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Allows retrying a failed npm qualification job on its original Full Release Validation producer run instead of rejecting continuation or restarting successful checks.

User Impact

pnpm frv continue --failed retries failed npm jobs, preserves successful package preparation and diagnostic children, and then reruns the parent collector. Non-fail-fast diagnostic drain is preserved. This replaces the original rejection-only implementation of this PR.

Why This Change Was Made

The controller includes the original npm producer in failed-job recovery. Receipt collection accepts the newer successful qualification while retaining the exact earlier package bytes and successful proof jobs. Source, tooling, artifact identity, superseded-job checks, and final verification remain enforced. Final verification receives only the parent and selected diagnostic attempt IDs; the controller independently rechecks the exact successful npm producer immediately before and after verification, preserving the verifier’s rejection of unknown IDs.

Scope is the observed npm download-timeout path and carried-forward npm receipts, not a redesign of Docker/candidate partial-build recovery or late artifact-upload collisions. Frozen workflows execute their original receipt code; a local controller update cannot retrofit adoption into an older frozen workflow or clear its failed qualification by itself.

Evidence

  • Live read-only dry run against 35209709927 now returns would-rerun and selects only npm producer 35210854195; all successful diagnostic runs stay untouched. No rerun mutation sent.
  • Regression fails on the original PR with Original artifact producer cannot be reused, then passes after refactoring.
  • Controller, artifact owner, npm descriptor and tooling-identity tests passed; the final controller/receipt selection passed 75 cases, followed by 46 controller cases after simplifying npm discovery.
  • Changed-file validation completed: formatting, test-root typecheck, guards, all three dead-export scans, and script/test lint. Two missing-brace lint errors were corrected and both final lint lanes passed.
  • Independent autoreview: no actionable P0–P2 findings; subsequent edits only added the required braces.

Review and CI follow-up

  • Fixed ClawSweeper’s controller/verifier handoff finding. The new continuation regression invokes validateReleaseRunEvidence itself: it fails on the prior head with expected run attempts contain unvalidated run IDs: 81 and passes with the fix.
  • Added producer drift coverage around verification and seal reuse (attempt, result, and tooling identity).
  • Fixed all six reported package-acceptance CI failures by returning exact producer metadata from the shared test fixture; production checks and assertions are unchanged. All 13 affected/sibling fixture cases pass.
  • All 342 controller and summary tests pass. Independent follow-up review found no actionable P0–P2 findings; subsequent fixture edits corrected typing only, and the real-verifier regression was rerun successfully. Final root test typecheck and script/test lint pass.
  • No hosted end-to-end retry is claimed. The live evidence above remains a read-only selection proof; the controller’s non-release hosted retry proof is post-merge.

No merge, publication, or release-run mutation. No agent transcripts included.

@clawsweeper

clawsweeper Bot commented Sep 17, 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.

@RomneyDa
RomneyDa marked this pull request as ready for review September 17, 2026 16:21
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 17, 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 Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 1:45 PM ET / 17:45 UTC (Revision 3).

ClawSweeper review

What this changes

Allows failed npm qualification jobs to retry within an existing release validation while preserving successful package preparation and diagnostic results.

Merge readiness

✅ Ready for maintainer review

This remains a useful repair absent from current main. The previous verifier-handoff blocker is resolved, and this review found no new actionable defects.

Priority: P2
Reviewed head: 7dae5ed38c41f67b8a514a8339f24446fe0c7cfa

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused recovery repair with the prior blocker addressed and meaningful boundary regressions; hosted recovery is accurately left unclaimed.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor gate. Its reported live dry run demonstrates producer selection only; completed recovery is covered by controller/receipt regressions, including the real verifier, while repository policy reserves hosted mutation proof for the post-merge broker.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor gate. Its reported live dry run demonstrates producer selection only; completed recovery is covered by controller/receipt regressions, including the real verifier, while repository policy reserves hosted mutation proof for the post-merge broker.
Evidence reviewed 9 items Introduced change verified: Reviewed the merge-base-to-head production and test changes, independently of base-branch drift. Live PR metadata still identifies the reviewed head and an open, unmerged PR.
Current main still lacks producer recovery: Current main's continuation controller inspects diagnostic children without adding the independent npm producer to failed-job recovery.
Latest release comparison: The v2026.9.4 controller likewise uses diagnostic-only inspectContinuation calls; the proposed independent-producer recovery is not present there.
Findings None None.
Security None None.

How this fits together

Full Release Validation coordinates package preparation, qualification, and independent checks before release. Its continuation controller retries failed jobs and collects verified evidence without rebuilding previously tested packages.

flowchart TD
  A[Existing validation plan] --> B[Continuation controller]
  C[Current GitHub run states] --> B
  B --> D[Retry failed npm jobs]
  E[Retained package bytes and diagnostics] --> F[Parent receipt collection]
  D --> F
  F --> G[Final evidence verification]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +525, Docs +19, Other +304. Total +848 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 6 532 7 +525
Docs 3 44 25 +19
Config 0 0 0 0
Generated 0 0 0 0
Other 4 344 40 +304
Total 13 920 72 +848

Review metrics

Metric Value Why it matters
Production versus test growth Production/tooling net +304 lines; tests net +525 lines Production growth supports producer discovery, retained-job validation, and verification-boundary checks; tests cover recovery and rejection cases.

Technical review

Best possible solution:

Keep recovery in the existing controller and receipt owners, preserving exact package bytes and using the established non-release broker for post-merge hosted verification.

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

Yes: current main omits independent npm producers from failed-job recovery, and the linked production run exhibits failed qualification with successful preparation. No current-main execution was performed.

Is this the best way to solve the issue?

Yes: extending the existing continuation and receipt owners addresses the missing recovery path while retaining immutable-byte and effective-job checks.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • 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 MEMBER-authored PR is exempt from the external-contributor gate. Its reported live dry run demonstrates producer selection only; completed recovery is covered by controller/receipt regressions, including the real verifier, while repository policy reserves hosted mutation proof for the post-merge broker.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 automation: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Repairs a concrete release-operator recovery failure with limited impact on normal user runtime.
  • 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-authored PR is exempt from the external-contributor gate. Its reported live dry run demonstrates producer selection only; completed recovery is covered by controller/receipt regressions, including the real verifier, while repository policy reserves hosted mutation proof for the post-merge broker.

Evidence

What I checked:

  • Introduced change verified: Reviewed the merge-base-to-head production and test changes, independently of base-branch drift. Live PR metadata still identifies the reviewed head and an open, unmerged PR. (scripts/frv.mjs:924, 7dae5ed38c41)
  • Current main still lacks producer recovery: Current main's continuation controller inspects diagnostic children without adding the independent npm producer to failed-job recovery. (scripts/frv.mjs, a25ddae098a8)
  • Latest release comparison: The v2026.9.4 controller likewise uses diagnostic-only inspectContinuation calls; the proposed independent-producer recovery is not present there. (scripts/frv.mjs:754, 3a9d69db306c)
  • Previous finding resolved: The controller now passes only diagnostic and parent attempts to the final verifier and independently rechecks npm producers around verification. The added regression calls validateReleaseRunEvidence itself, satisfying the previous review's requested boundary coverage. (test/scripts/release-ci-summary.test.ts:2430, 7dae5ed38c41)
  • Retained evidence safeguards: Receipt collection rejects replacement of successful preparation. Publication-facing producer verification requires current run success, rejects later executions that supersede the selected job, and rereads current identity and status. (scripts/npm-prepared-bundle.mjs:338, 7dae5ed38c41)
  • Observed production failure shape: GitHub run 35210854195 remains failed on attempt one: package preparation, source, dependencies, and SDK checks succeeded; package-contents validation failed and qualification was skipped. This supports the reported recovery need, not an after-fix recovery claim. (.github/workflows/full-release-artifacts.yml, 35abd04c0b4f)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: 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 (2 earlier review cycles)
  • reviewed 2026-09-17T16:29:58.764Z sha fc84832 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T17:13:21.216Z sha 36c052d :: blocked before merge. :: [P1] [P1] Align artifact attempt tracking with the final verifier

@RomneyDa RomneyDa changed the title fix(release): reject continuation after artifact producer failure fix(release): retry failed npm qualification without restarting validation Sep 17, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 Sep 17, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Fixed the verifier handoff in 7dae5ed. Npm producer attempts are revalidated independently before and after verification; unknown-ID rejection is unchanged. The new continuation regression invokes the real evidence verifier and fails on the previous head. All 342 controller/summary tests and 13 affected package-acceptance cases pass; local typecheck, lint, guards, and independent review pass. Fresh CI is running.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 17, 2026
@RomneyDa
RomneyDa merged commit 14edef7 into main Sep 17, 2026
161 checks passed
@RomneyDa
RomneyDa deleted the fix/frv-failed-producer-preflight branch September 17, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L 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