Skip to content

fix(release): scan trusted release-tool dependencies - #160694

Merged
RomneyDa merged 3 commits into
mainfrom
release-ci/release-tool-lock-source-1790625599
Sep 28, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
release-ci/release-tool-lock-source-1790625599

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: extended-stable validation can scan stale release-tool lockfiles from the frozen product candidate instead of the trusted tooling checkout that will perform publication.

User Impact

User impact: no runtime behavior changes; release validation now gates the actual trusted release-tool dependency graphs and uses the repaired Kova evaluator before publication.

Why This Change Was Made

The frozen candidate remains the source of the shipped product lockfile, while release-only ClawHub and Vercel lockfiles now come from the trusted workflow tooling checkout. Dependency evidence hashes the same bytes the gate scans. The trusted Vercel graph pins the approved patched @bytecodealliance/[email protected], and the performance workflow advances its canonical/trusted-live Kova pin to merged Kova PR #156 while preserving the historical legacy-schema pin.

The final rebase also repaired a current-main test-fixture regression: reset_lane gained a timing-helper dependency, so its isolated systemd fixture now includes that helper.

Evidence

  • Frozen candidate remained f773aa06a1a93b36b050f1a3f4b57d3d91311541; this PR changes trusted release tooling only.
  • Mixed-source vulnerability scan: 0 hard blockers across the frozen product graph and current trusted ClawHub/Vercel release-tool graphs.
  • Vercel compatibility smoke: vercel --version, Python app detection, and top-level callable analysis pass with shim 0.27.0; npm audit reports 0 vulnerabilities in the release-tool graph.
  • Focused workflow/script tests: 218/218 pass, including the complete Vercel lock-integrity contract and current-main systemd fixture repair.
  • Single-worker changed-test costs: dependency-vulnerability-gate.test.ts 0.271 s; openclaw-npm-extended-stable-workflow.test.ts 1.807 s; openclaw-performance-workflow.test.ts 19.73 s; upgrade-survivor-systemd.test.ts 14.996 s (44.49 s wrapper after cold compile).
  • Complete node scripts/check-changed.mjs passes on rebased current main.
  • Frozen-candidate Kova performance proof: https://github.com/openclaw/openclaw/actions/runs/36449470124
  • Kova repair: fix: release checks accept census-window process births Kova#156
  • Fresh AutoReview after the rebase repair: no accepted/actionable P0-P2 findings.

Known gap: hosted exact-head CI is pending on this PR.

@clawsweeper

clawsweeper Bot commented Sep 28, 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 28, 2026 20:26
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M labels Sep 28, 2026
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Sep 28, 2026
@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Dependency graph changes

This maintainer PR changes the dependency graph. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: 0209bc9bff282744e6b60a8069854c2e3e810952
  • Maintainer: @RomneyDa
  • Repository role: maintain

These dependency graph changes were made:

  • .github/release/vercel-cli/package-lock.json
  • .github/release/vercel-cli/package.json

Carefully review these changes before merging.

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 5:02 PM ET / 21:02 UTC (Revision 2).

ClawSweeper review

What this changes

The branch makes release validation scan the frozen product lock and trusted release-tool locks, updates the Vercel dependency lock and Kova performance pin, and adjusts the related tests.

Merge readiness

✅ Ready for maintainer review

Current main still scans release-tool locks from the frozen candidate, so this PR addresses a real release-validation gap. The earlier request for measured test costs is now addressed. I found no actionable patch defect.

Priority: P2
Reviewed head: 0209bc9bff282744e6b60a8069854c2e3e810952

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch follows the existing release owners and has focused validation; the cited earlier performance run has a narrower scope than the new Kova pin.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The member-authored PR is exempt from the external-contributor proof gate. Its body reports a mixed-source scan and Vercel smoke for the changed release tooling; the linked earlier performance run does not exercise the new Kova pin. No stored user-data contract changes.
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 proof gate. Its body reports a mixed-source scan and Vercel smoke for the changed release tooling; the linked earlier performance run does not exercise the new Kova pin. No stored user-data contract changes.
Evidence reviewed 10 items Current-main gap: At the fetched main revision, release-tool manifests and locks are read from the target root selected by --root; that can be the frozen product candidate.
Introduced scan boundary: The PR reads the product lock from the candidate root and release-tool locks from the trusted tooling root; the generator hashes those same selected roots for release evidence.
Workflow entry point: The trusted checkout is pinned to github.workflow_sha, now includes .github/release in its sparse checkout, and runs the evidence generator with the frozen candidate as --root.
Findings None None.
Security None None.

How this fits together

OpenClaw release preflight reads a frozen product candidate and a trusted workflow checkout. It scans their dependency graphs and records evidence used to decide whether publication can proceed.

flowchart LR
  A[Frozen product candidate] --> B[Product lock]
  C[Trusted workflow checkout] --> D[Release-tool locks]
  B --> E[Vulnerability gate]
  D --> E
  E --> F[Dependency evidence]
  F --> G[Release readiness]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +65, Config +164, Other +17. Total +246 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 75 10 +65
Docs 0 0 0 0
Config 4 170 6 +164
Generated 0 0 0 0
Other 3 51 34 +17
Total 11 296 50 +246

Review metrics

Metric Value Why it matters
Net change by role tooling and workflow +19, tests +65, dependency lock +162 lines Most growth is the refreshed transitive lock; the smaller executable change selects scan inputs and has focused coverage.

Technical review

Best possible solution:

Keep publication evidence bound to verified product and tooling revisions, with its reported hashes matching the lock bytes the vulnerability gate scanned.

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

Yes, from source: current main reads release-tool locks beneath the frozen target root while the workflow executes tooling from a separate trusted checkout. I did not run a release preflight.

Is this the best way to solve the issue?

Yes. Changing input selection in the existing gate and hashing those same files in its evidence generator is a narrow fix without a second scanner.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: The PR repairs a bounded release-validation gap without changing installed runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 proof gate. Its body reports a mixed-source scan and Vercel smoke for the changed release tooling; the linked earlier performance run does not exercise the new Kova pin. No stored user-data contract changes.

Label justifications:

  • P2: The PR repairs a bounded release-validation gap without changing installed runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 proof gate. Its body reports a mixed-source scan and Vercel smoke for the changed release tooling; the linked earlier performance run does not exercise the new Kova pin. No stored user-data contract changes.

Evidence

What I checked:

  • Current-main gap: At the fetched main revision, release-tool manifests and locks are read from the target root selected by --root; that can be the frozen product candidate. (scripts/dependency-vulnerability-gate.mts:46, c8a045a4f35e)
  • Introduced scan boundary: The PR reads the product lock from the candidate root and release-tool locks from the trusted tooling root; the generator hashes those same selected roots for release evidence. (scripts/dependency-vulnerability-gate.mts:46, 0209bc9bff28)
  • Workflow entry point: The trusted checkout is pinned to github.workflow_sha, now includes .github/release in its sparse checkout, and runs the evidence generator with the frozen candidate as --root. (.github/workflows/openclaw-npm-preflight.yml:618, 0209bc9bff28)
  • Release-tool execution boundary: The Vercel publication workflow materializes the committed lock before exposing its token; materialization verifies the lock hash and installs with lifecycle scripts disabled. (scripts/materialize-vercel-cli.sh:11, 0209bc9bff28)
  • Prior review and dependency discussion: The PR body now gives single-worker times for all four changed test files. The dependency guard identifies the current head and the author's maintain access; Socket reports three low-adoption warnings for newly locked optional packages, without alleging a vulnerability.
  • Dependency approval policy: CONTRIBUTING.md says a PR author with repository maintain or admin access needs no additional dependency-change command approval; the guard comment identifies this author as having maintain access. (CONTRIBUTING.md:130, 0209bc9bff28)

Likely related people:

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

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-28T20:34:09.166Z sha e92ecc47ef726f100256268f52b98d2475ef10ed :: blocked before merge. :: none

@RomneyDa
RomneyDa force-pushed the release-ci/release-tool-lock-source-1790625599 branch from ac0d20e to 0209bc9 Compare September 28, 2026 20:52
@socket-security

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn Medium
Low adoption: npm @bytecodealliance/jco-node-fs-linux-arm64-musl

Location: Package overview

From: .github/release/vercel-cli/package-lock.json → npm/[email protected] → npm/@bytecodealliance/[email protected]

ℹ Read more on: This package | This alert | What are unpopular packages?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Unpopular packages may have less maintenance and contain other problems.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@bytecodealliance/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn Medium
Low adoption: npm @bytecodealliance/jco-node-fs-win32-arm64-msvc

Location: Package overview

From: .github/release/vercel-cli/package-lock.json → npm/[email protected] → npm/@bytecodealliance/[email protected]

ℹ Read more on: This package | This alert | What are unpopular packages?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Unpopular packages may have less maintenance and contain other problems.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@bytecodealliance/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn Medium
Low adoption: npm @bytecodealliance/jco-node-fs-win32-x64-msvc

Location: Package overview

From: .github/release/vercel-cli/package-lock.json → npm/[email protected] → npm/@bytecodealliance/[email protected]

ℹ Read more on: This package | This alert | What are unpopular packages?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Unpopular packages may have less maintenance and contain other problems.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@bytecodealliance/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@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 28, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Land-ready evidence for 0209bc9bff282744e6b60a8069854c2e3e810952:

Local proof:

  • node scripts/run-vitest.mjs test/scripts/dependency-vulnerability-gate.test.ts test/scripts/vercel-container-registry-publish.test.ts — 89/89
  • OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs test/scripts/dependency-vulnerability-gate.test.ts test/scripts/openclaw-npm-extended-stable-workflow.test.ts test/scripts/openclaw-performance-workflow.test.ts — 129/129
  • node scripts/run-vitest.mjs test/scripts/upgrade-survivor-systemd.test.ts — 17/17
  • node scripts/check-changed.mjs — green on rebased current main
  • Fresh AutoReview after the final rebase repair — no accepted/actionable P0-P2 findings

Known proof gap: the canonical all-group Full Release Validation using this newly merged tooling is intentionally post-merge and remains the next release step; it will run against the unchanged frozen candidate before any publication.

@RomneyDa
RomneyDa merged commit cb8e8c7 into main Sep 28, 2026
166 checks passed
@RomneyDa
RomneyDa deleted the release-ci/release-tool-lock-source-1790625599 branch September 28, 2026 21:09
@RomneyDa

Copy link
Copy Markdown
Member Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 28, 2026
…t fixture

e5fae56 and #160694 (cb8e8c7) both added the same firstHopTiming declaration to test/scripts/upgrade-survivor-systemd.test.ts, so the file fails to transform (Identifier firstHopTiming has already been declared) and main's tooling shard is red.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
* fix(release): scan trusted release-tool locks

* test(release): refresh Vercel lock integrity

* test(e2e): include first-hop timing fixture
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…t fixture

054f926 and openclaw#160694 (17cb6c6) both added the same firstHopTiming declaration to test/scripts/upgrade-survivor-systemd.test.ts, so the file fails to transform (Identifier firstHopTiming has already been declared) and main's tooling shard is red.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies-changed PR changes dependency-related files P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M 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