Skip to content

fix: release publication loses standalone preflight artifacts - #136336

Merged
steipete merged 1 commit into
mainfrom
codex/release-preflight-producer-identity
Sep 2, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/release-preflight-producer-identity

Conversation

@steipete

@steipete steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Related: #136105

What Problem This Solves

Resolves a problem where release publication or resume would look for the npm preflight archive in the parent validation run after Full Release Validation moved artifact preparation into standalone child runs. The final dependency-evidence download would fail, and the npm-preflight proof link pointed to the wrong run.

Why This Change Was Made

The resolver already authenticates the producer and records its run ID. This change carries that fact across the Actions job output to the two artifact consumers and the proof renderer. The original Full Release Validation parent remains the npm dispatch authority: replacing that input with a child ID would break its manifest-admission contract.

There is one producer-resolution path and no fallback, artifact rebuild, new workflow input, or relaxed verification. Direct-FRV and historical direct-NPM producers retain their existing behavior.

User Impact

Release operators can complete publication and resume with the exact preflight archive selected by validation, and release notes link to the run that actually produced it. This changes publication tooling only, not the released application or candidate bytes.

Evidence

  • Captured RED before production edits: the standalone-producer case failed both real helper download bodies with producer 333 versus parent 111 and rendered the incorrect parent proof link. Direct-FRV and historical-NPM controls passed.
  • After the repair, all three producer modes pass through the canonical resolver, workflow output/environment wiring, actual resume/download/proof bodies, and actual core-dispatch step. Core dispatch still receives the original authorizing parent.
  • 460 tests passed across the existing package-acceptance workflow, prepared-bundle, npm-resume identity, and release-approval suites.
  • Canonical changed-file gate, pinned workflow lint, shell syntax, and whitespace checks passed.
  • Managed Codex autoreview returned scoped-clean at the repository-default P0 scope. Root independently reviewed the producer resolver, consuming helpers, authorization boundary, tests and retained RED/GREEN outputs.

These are local boundary tests with external GitHub/npm/archive operations stubbed. They do not claim a live artifact download or completed publication; hosted exact-head CI and the real release remain separate gates.

Scope and release-note context

The repair adds four workflow lines to forward an existing authenticated fact; shell changes are net zero (+5/-5). Test/support changes are +158/-4 in the existing suite. No configuration, protocol, database, dependency, approval-policy or package-source changes. No old path is retained alongside the fix.

Release-note context: preserve the standalone npm preflight producer when downloading release dependency evidence, resuming publication and linking validation proof.

Carry the authenticated npm preflight producer through the job output to
resume downloads, dependency evidence and release proof. Keep the original
FRV parent as the core npm dispatch authority.

Prove standalone child, direct FRV and historical npm producers through
the resolver and actual consumer bodies without replacing authorization.
@clawsweeper

clawsweeper Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 2, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 9:49 AM ET / 13:49 UTC.

ClawSweeper review

What this changes

The PR carries the resolved npm preflight artifact producer ID into publication downloads and release proof links while keeping the parent validation run for core npm dispatch.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

The focused repair correctly separates the authenticated artifact producer from the parent publication authority. This PR remains open because it is maintainer-labeled and still owns a current-main release-publication defect.

Priority: P2
Reviewed head: 23cc510cdd97387c855e4d65f357819a944f5d31

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary repair with meaningful regression coverage and no actionable correctness or security finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-labeled release-workflow repair is exempt from the external-contributor proof gate; its supplied executable harness covers the production helper and workflow wiring with GitHub/npm operations stubbed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-labeled release-workflow repair is exempt from the external-contributor proof gate; its supplied executable harness covers the production helper and workflow wiring with GitHub/npm operations stubbed.
Evidence reviewed 6 items Current-main handoff gap: Current main exposes the selected artifact name from release-target resolution but not its producing run ID, so downstream publication cannot distinguish a standalone producer from the parent validation run.
Resolved producer is authenticated before forwarding: The resolver derives and validates the selected preflight run, then emits its run ID; the PR forwards that existing output rather than accepting a new publication input.
Pre-fix consumers used the parent input: The merged release-qualification implementation downloaded the resume manifest using PREFLIGHT_RUN_ID, which is the parent input in the standalone-producer case.
Findings None None.
Security None None.

How this fits together

Release validation authenticates a preflight archive, then publication resumes npm work, uploads dependency evidence, and writes release proof. The validation parent authorizes publication, while a standalone child may own the artifact bytes.

flowchart LR
  A[Release validation] --> B[Preflight artifact resolver]
  B --> C[Artifact producer ID]
  B --> D[Parent authorization ID]
  C --> E[Artifact downloads]
  D --> F[Core npm dispatch]
  E --> G[Release evidence]
  F --> G
Loading

Before merge

  • Resolve merge risk (P1) - This changes release-automation provenance: a future mismatch between the two run IDs could block a resume or point release proof at the wrong run. The focused harness stubs GitHub and npm, so a real publication remains the operational integration check.
Agent review details

Security

None.

PR surface

Tests +154, Config +4, Other 0. Total +158 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 158 4 +154
Docs 0 0 0 0
Config 1 4 0 +4
Generated 0 0 0 0
Other 1 5 5 0
Total 3 167 9 +158

Review metrics

Metric Value Why it matters
Production versus test delta production +9/-5, tests +158/-4 The production change is narrowly run-ID wiring, while the expanded test harness covers the three supported producer modes and all affected consumers.

Merge-risk options

Maintainer options:

  1. Preserve the distinct run roles (recommended)
    Merge with the parent preflight input retained for core dispatch and the resolved producer ID limited to downloads and proof rendering.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Retain the parent preflight run ID for core npm dispatch; use the resolved artifact producer run ID only for artifact downloads and npm-preflight proof links.

Technical review

Best possible solution:

Keep the parent validation run as the sole dispatch authority and use the resolver-selected producer ID only for artifact retrieval and artifact-derived proof.

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

Yes, source-reproducible with high confidence: a full-validation parent can resolve a different standalone artifact producer, while current consumers use the parent input instead of the resolver output.

Is this the best way to solve the issue?

Yes. Forwarding the already validated producer fact fixes the owner boundary without replacing the parent ID that the core publication admission contract requires.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: The defect can block release operators during publication or resume, but it does not affect the shipped application runtime.
  • add merge-risk: 🚨 automation: The modified GitHub Actions wiring selects which authenticated run supplies publication artifacts and release provenance.
  • 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: This maintainer-labeled release-workflow repair is exempt from the external-contributor proof gate; its supplied executable harness covers the production helper and workflow wiring with GitHub/npm operations stubbed.

Label justifications:

  • P2: The defect can block release operators during publication or resume, but it does not affect the shipped application runtime.
  • merge-risk: 🚨 automation: The modified GitHub Actions wiring selects which authenticated run supplies publication artifacts and release provenance.
  • 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: This maintainer-labeled release-workflow repair is exempt from the external-contributor proof gate; its supplied executable harness covers the production helper and workflow wiring with GitHub/npm operations stubbed.

Evidence

What I checked:

  • Current-main handoff gap: Current main exposes the selected artifact name from release-target resolution but not its producing run ID, so downstream publication cannot distinguish a standalone producer from the parent validation run. (.github/workflows/openclaw-release-publish.yml:128, db907da599e3)
  • Resolved producer is authenticated before forwarding: The resolver derives and validates the selected preflight run, then emits its run ID; the PR forwards that existing output rather than accepting a new publication input. (.github/workflows/openclaw-release-publish.yml:681, 23cc510cdd97)
  • Pre-fix consumers used the parent input: The merged release-qualification implementation downloaded the resume manifest using PREFLIGHT_RUN_ID, which is the parent input in the standalone-producer case. (scripts/lib/release-publish-children.sh:592, 06f897f562d7)
  • Authorization boundary preserved: The core npm dispatch continues to receive the original input preflight run ID, while only artifact consumers use the resolved producer ID. (.github/workflows/openclaw-release-publish.yml:1637, 23cc510cdd97)
  • Boundary regression coverage: The added table-driven harness exercises standalone-child, direct-FRV, and historical-NPM producer modes through the resolver, real helper bodies, dispatch step, and proof renderer with controlled GitHub/npm endpoints. (test/scripts/package-acceptance-workflow.test.ts:2624, 23cc510cdd97)
  • Related refactor provenance: The related release-qualification refactor merged before this follow-up; commit metadata identifies it as the preceding release-workflow change, but unavailable historical blobs prevent a source-line introduction claim. (06f897f562d7)

Likely related people:

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

@steipete

steipete commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Maintainer disposition of the completed review for 23cc510cdd97387c855e4d65f357819a944f5d31:

The distinct run roles are retained exactly as recommended. The original preflight_run_id remains the FRV parent and sole core-dispatch authorization. Only the already-authenticated resolver result crosses the job boundary as PREFLIGHT_ARTIFACT_RUN_ID; the two artifact downloads and npm-preflight proof link consume that producer fact. No new input, resolver, fallback, approval bypass, or publication authority is added.

I inspected the canonical resolver, complete consumer helper, core admission, prepared-bundle and workflow callers. The executable regression covers standalone-child, direct-FRV and historical-NPM producers: the standalone case failed both production download bodies and the proof renderer before the fix, and all three modes pass afterward. The four full owner/sibling suites pass 460 tests; changed-file and workflow gates and independent Codex review also passed. Those fixtures stub external GitHub/npm operations and are not a live publication claim.

The remaining operational integration check belongs to the actual release: validate the final authenticated FRV manifest, producer artifact bytes/digests, preserved parent authorization, and published proof links. I will not infer that result from the fixture. Exact-head normal CI is still required before native landing; its first attempt failed before product tests, and only the infrastructure-failed jobs are being retried.

Hosted gate complete. CI33637483182, attempt2 is successful for exact reviewed head 23cc510cdd97387c855e4d65f357819a944f5d31. The required openclaw/ci-gate passed at14:30:56 UTC. Exactly one failed-only infrastructure retry was submitted; the earlier security execution retains its original timestamps even though GitHub assigned a new job ID. Root rechecked that both production owner files remain unchanged on newer main; the overlapping test file only gained the independent npm12 tests. The real publication integration check described above remains outstanding and mandatory.

@steipete
steipete merged commit bf898e2 into main Sep 2, 2026
227 of 229 checks passed
@steipete
steipete deleted the codex/release-preflight-producer-identity branch September 2, 2026 14:40
@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
…nclaw#136336)

Carry the authenticated npm preflight producer through the job output to
resume downloads, dependency evidence and release proof. Keep the original
FRV parent as the core npm dispatch authority.

Prove standalone child, direct FRV and historical npm producers through
the resolver and actual consumer bodies without replacing authorization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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