Skip to content

fix(release): accept trusted extended-stable validation evidence - #119264

Merged
RomneyDa merged 3 commits into
mainfrom
fix/release-core-publish-trusted-validation
Aug 4, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
fix/release-core-publish-trusted-validation

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

v2026.6.34 has immutable candidate artifacts, a successful npm preflight, a successful Full Release Validation, and successful plugin publication, but its core publish stopped before npm because the old verifier required the validation workflow's headBranch/headSha to equal the candidate. That is incompatible with the correct trusted-harness flow: run 30904149739 executed from release-ci/b5d41f90053b-1785842197244 at trusted main SHA b5d41f90053b414267bb203b64f1f8dde12b2bda, while its v3 manifest attests target SHA 5c38f996d4059ebd9080cf74dc611ec3a17f4d50.

Why This Change Was Made

Adds a narrow release_candidate_branch input for an extended-stable publish dispatched from trusted main. The workflow accepts it only when it is the canonical extended-stable/YYYY.M.33 branch implied by the immutable tag, checks out that tag for candidate identity and publication, and continues to require exact candidate-SHA preflight and plugin evidence.

For Full Release Validation, it replaces the stale branch/SHA equality check with the existing validate-full-release-validation-evidence.mjs v3 verifier checked out from github.workflow_sha. That verifier binds the parent run, manifest, target SHA, SHA-pinned release-ci/* workflow source, and main ancestry. The workflow keeps its independent all-shards, soak, and blocking-performance controls.

The follow-up documents the trusted-main recovery command in the release procedure and release-maintainer skill, records the checked-out tag SHA and candidate branch in the publication summary, and passes the validation attempt through an environment variable rather than interpolating it into shell source.

User Impact

This does not change v2026.6.34, its tag, its prepared tarball, or its already-published plugins. Once merged, a trusted main workflow can safely promote the validated core tarball using the recorded candidate branch and evidence. Future extended-stable releases can use the same path instead of requiring the validation harness to pretend it ran from the candidate branch.

Evidence

  • Focused workflow/evidence tests: node scripts/run-vitest.mjs test/scripts/openclaw-npm-extended-stable-workflow.test.ts test/scripts/validate-full-release-validation-evidence.test.ts — 39 passed.
  • Package-acceptance workflow contract: node scripts/run-vitest.mjs test/scripts/package-acceptance-workflow.test.ts — 140 passed.
  • Workflow syntax: go run github.com/rhysd/actionlint/cmd/[email protected] .github/workflows/openclaw-npm-release.yml — passed.
  • Historical replay: downloaded full-release-validation-30904149739-1 and validated the real run/manifest with validate-full-release-validation-evidence.mjs against candidate 5c38f996d4059ebd9080cf74dc611ec3a17f4d50; result: sha-pinned-main.
  • Fresh autoreview against origin/main: clean, no accepted/actionable findings.

Relevant runs: npm preflight, Full Release Validation, Plugin NPM Release, and the failed core publish.

@RomneyDa
RomneyDa requested a review from a team as a code owner August 4, 2026 14:58
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 4, 2026
@clawsweeper clawsweeper Bot added 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. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 4, 2026
@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 4, 2026, 4:12 PM ET / 20:12 UTC.

ClawSweeper review

What this changes

This PR adds an extended-stable release-workflow input that lets trusted current main publish an immutable candidate tag using recorded preflight, plugin, and Full Release Validation evidence.

Merge readiness

⛔ Blocked by patch quality or review findings - 7 items remain

Keep open: the useful trusted-main recovery path still permits direct canonical-candidate validation evidence whose workflow SHA differs from the immutable tag SHA. This re-raises the prior P1 on the unchanged reviewed head.

Priority: P1
Reviewed head: 835c7d0b74ede3f5f97ed6c1d8b02be52de53d3e

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The recovery path has useful scope and targeted tests, but a P1 release-evidence trust defect blocks merge.
Proof confidence 🌊 off-meta tidepool Not applicable: The PR is from a repository member; its body reports historical replay and focused workflow proof, while the external-contributor proof gate does not apply.
Patch quality 🧂 unranked krab (1/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The PR is from a repository member; its body reports historical replay and focused workflow proof, while the external-contributor proof gate does not apply.
Evidence reviewed 5 items Changed trust boundary: The new recovery path supplies the candidate branch as the expected direct validation branch and invokes the trusted evidence verifier, but does not supply an immutable workflow-SHA requirement for that direct branch.
Verifier accepts mismatched direct evidence: For a non-pinned direct run, the verifier accepts main or the expected branch; only main receives an ancestry check, and neither direct branch must have headSha equal targetSha.
Regression test demonstrates the missing invariant: The direct-evidence test accepts a direct branch while its default workflow SHA and target SHA are deliberately different, with no negative mismatch case.
Findings 1 actionable finding [P1] Bind direct candidate evidence to the immutable tag
Security Needs attention Direct candidate evidence is not SHA-bound: The recovery path accepts a direct candidate branch by name even when the Full Release Validation workflow SHA differs from the immutable tag target SHA, allowing stale workflow code to satisfy a publish gate.

How this fits together

The npm release workflow turns preflight, plugin publication, and Full Release Validation artifacts into an OIDC npm publish. The new recovery path dispatches that workflow from main while selecting an immutable extended-stable candidate tag and its evidence.

flowchart LR
  Candidate[Immutable candidate tag] --> Publish[Core npm publish workflow]
  Preflight[Saved npm preflight] --> Publish
  Plugin[Plugin publication evidence] --> Publish
  Validation[Full Release Validation run] --> Verifier[Evidence verifier]
  Verifier --> Publish
  Publish --> Npm[npm registry]
Loading

Before merge

  • Bind direct candidate evidence to the immutable tag (P1) - When release_candidate_branch is supplied, this passes its branch name to the verifier. The verifier accepts that direct branch without requiring the validation run's headSha to equal the checked-out tag SHA, so an older candidate workflow can attest a later tag target. Preserve the main and SHA-pinned exceptions, but require equality for the direct candidate path and add the negative regression.
  • Resolve security concern: Direct candidate evidence is not SHA-bound - The recovery path accepts a direct candidate branch by name even when the Full Release Validation workflow SHA differs from the immutable tag target SHA, allowing stale workflow code to satisfy a publish gate.
  • Resolve merge risk (P1) - A stale workflow from the canonical candidate branch can attest a newer immutable tag target, weakening the release-validation trust boundary before an npm publish.
  • Resolve merge risk (P1) - The added recovery input changes release automation behavior; it needs an exact-head re-review after the SHA-binding repair.
  • Improve patch quality - Require direct candidate validation headSha to equal the immutable target SHA.
  • Improve patch quality - Add a negative regression case for mismatched direct candidate workflow and target SHAs.
  • Improve patch quality - Request one exact-head review after the repair.

Findings

  • [P1] Bind direct candidate evidence to the immutable tag — .github/workflows/openclaw-npm-release.yml:964-973
  • [high] Direct candidate evidence is not SHA-bound — .github/workflows/openclaw-npm-release.yml:964
Agent review details

Security

Needs attention: The direct-candidate exception weakens the release-evidence binding used before an OIDC npm publish.

PR surface

Tests +43, Docs +33, Config +13. Total +89 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 70 27 +43
Docs 2 43 10 +33
Config 1 60 47 +13
Generated 0 0 0 0
Other 0 0 0 0
Total 5 173 84 +89

Review metrics

Metric Value Why it matters
Release-dispatch surface 1 optional workflow input added The new candidate-branch selector changes how release evidence is accepted, so its trust binding must be explicit.
Implementation and tests workflow +60/-47; docs and skill +43/-10; tests +70/-27 The production workflow change is justified by the recovery capability, but its new trust exception needs the missing negative regression coverage.

Stored data model

Persistent data-model change detected: vector/embedding metadata: test/scripts/package-acceptance-workflow.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Bind direct candidate evidence to the tag (recommended)
    Require a direct candidate validation run's workflow SHA to equal the immutable target SHA and add a negative mismatch test before merging.

Technical review

Best possible solution:

Require direct canonical-candidate validation runs to have headSha equal the immutable tag SHA, retain the distinct trusted-main and SHA-pinned exceptions, and cover the rejected mismatch with a focused regression test.

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

Yes—source inspection gives a high-confidence path: provide a successful direct canonical-branch validation run whose head SHA differs from its attested target SHA; the new verifier accepts it.

Is this the best way to solve the issue?

No—the recovery design is plausible, but direct candidate evidence must be bound to the immutable tag SHA rather than only its branch name.

Full review comments:

  • [P1] Bind direct candidate evidence to the immutable tag — .github/workflows/openclaw-npm-release.yml:964-973
    When release_candidate_branch is supplied, this passes its branch name to the verifier. The verifier accepts that direct branch without requiring the validation run's headSha to equal the checked-out tag SHA, so an older candidate workflow can attest a later tag target. Preserve the main and SHA-pinned exceptions, but require equality for the direct candidate path and add the negative regression.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P1: The defect can let a release publish rely on validation evidence from stale candidate workflow code.
  • merge-risk: 🚨 automation: The changed workflow_dispatch path controls release publication and evidence acceptance.
  • merge-risk: 🚨 security-boundary: The missing SHA equality weakens the boundary that binds trusted validation evidence to an immutable release target.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🌊 off-meta tidepool and patch quality is 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The PR is from a repository member; its body reports historical replay and focused workflow proof, while the external-contributor proof gate does not apply.

Evidence

Security concerns:

  • [high] Direct candidate evidence is not SHA-bound — .github/workflows/openclaw-npm-release.yml:964
    The recovery path accepts a direct candidate branch by name even when the Full Release Validation workflow SHA differs from the immutable tag target SHA, allowing stale workflow code to satisfy a publish gate.
    Confidence: 0.98

What I checked:

Likely related people:

  • Vincent Koc: Current blame covers the verifier's direct-evidence branch and release-SHA validation history includes this contributor's focused release identity work. (role: recent release-evidence contributor; confidence: medium; commits: 6a0eecdb4451, 9d6d9af94135; files: scripts/validate-full-release-validation-evidence.mjs, .github/workflows/openclaw-npm-release.yml)
  • Kevin Lin: Local history attributes the extended-stable plugin-release feature to this contributor, making them a relevant adjacent owner for its release contract. (role: extended-stable feature introducer; confidence: medium; commits: 9d2d51729699; files: .github/workflows/openclaw-npm-release.yml)

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 (3 earlier review cycles)
  • reviewed 2026-08-04T15:05:58.850Z sha a8c93cd :: found issues before merge. :: [P1] Document the trusted-main recovery invocation | [P2] Report the immutable identity in main-promotion summaries
  • reviewed 2026-08-04T17:15:05.277Z sha e4c00f2 :: found issues before merge. :: [P2] Align recovery documentation with accepted evidence
  • reviewed 2026-08-04T20:04:47.011Z sha 835c7d0 :: found issues before merge. :: [P1] Keep direct candidate evidence bound to its tag | [P2] Clarify the earlier rejection of trusted harness evidence

@RomneyDa
RomneyDa force-pushed the fix/release-core-publish-trusted-validation branch from a8c93cd to e4c00f2 Compare August 4, 2026 16:32
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: M and removed size: S labels Aug 4, 2026
@RomneyDa

RomneyDa commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 4, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa

RomneyDa commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 4, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa

RomneyDa commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

Addressed the current-head ClawSweeper P2 in 835c7d0: recovery guidance and the maintainer skill now name the complete accepted validation-evidence set: canonical candidate branch, current main with a reachable workflow SHA, or trusted SHA-pinned main harness. Each remains bound to the immutable tag SHA. Focused proof passed: openclaw-npm-extended-stable-workflow (12 tests), validate-full-release-validation-evidence (27 tests), docs:list, oxfmt, diff check, and fresh autoreview. A new @clawsweeper re-review is queued for this head.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 4, 2026
@RomneyDa
RomneyDa merged commit 7c93cff into main Aug 4, 2026
106 of 108 checks passed
@RomneyDa
RomneyDa deleted the fix/release-core-publish-trusted-validation branch August 4, 2026 20:14
vincentkoc added a commit that referenced this pull request Aug 4, 2026
Punchcard-Session: crisp-lantern-orchard-nv

* origin/main:
  fix(release): accept legacy empty core artifacts (#119337)
  fix(qa): carry selected runtime into flow scenarios (#119324)
  fix(ci): retry interrupted Windows dashboard release checks (#119095)
  fix(release): filter validation ancestry fetch (#119334)
  fix(release): accept trusted extended-stable validation evidence (#119264)
  fix(sessions): preserve recorder-owned user turns (#119307)
  perf(cli): split plugin registry startup timing (#119318)
  fix(qa): align release scenario setup and compaction proof (#119188)
  fix(ci): avoid duplicate Matrix release QA runs (#119171)
vincentkoc added a commit that referenced this pull request Aug 5, 2026
…time

* origin/main: (75 commits)
  fix(commands): restore tool inventory for dynamic models (#119306)
  fix(media): release rejected BytePlus and Runway video downloads under debug capture (#119257)
  docs: add ChromeOS (Crostini) platform install guide (#107663)
  test(msteams): serve JWKS from in-process server in auth coverage (#119354)
  fix(qa): enable OpenAI for stored audio scenario (#119349)
  test(agents): realpath apply-patch temp dir fixture (#119353)
  test(slack): drop redundant .js-suffixed system-event mock (#119352)
  fix(exec): leave safe builtins unrewritten in enforced mode (#119351)
  fix(sessions): keep gateway responsive while large transcript archives are built (#112424)
  fix(tui): restore provider auth in installed local mode (#119283)
  fix(release): accept legacy empty core artifacts (#119337)
  fix(qa): carry selected runtime into flow scenarios (#119324)
  fix(ci): retry interrupted Windows dashboard release checks (#119095)
  fix(release): filter validation ancestry fetch (#119334)
  fix(release): accept trusted extended-stable validation evidence (#119264)
  fix(sessions): preserve recorder-owned user turns (#119307)
  perf(cli): split plugin registry startup timing (#119318)
  fix(qa): align release scenario setup and compaction proof (#119188)
  fix(ci): avoid duplicate Matrix release QA runs (#119171)
  perf(agents): reuse provider policy manifest registry (#119305)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
…nclaw#119264)

* fix(release): accept trusted extended-stable validation evidence

* fix(release): document trusted candidate promotion

* docs(release): clarify validation evidence recovery
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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant