Skip to content

fix(release): run SDK tooling from its checkout - #136233

Merged
vincentkoc merged 1 commit into
mainfrom
fix/release-plugin-sdk-tooling-pnpm
Sep 2, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/release-plugin-sdk-tooling-pnpm

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes frozen-target full validation before any candidate child lane runs. The Plugin SDK API qualification checks out trusted workflow tooling, but invoked its pnpm 12.1 commands from a 2026.6.35 target pinned to pnpm 11.2. Corepack resolves the package manager from the current directory before --dir, so qualification failed before SDK analysis.

The two pnpm commands now run in the already-verified trusted tooling checkout. Target SHA, diff inputs, and artifact paths remain unchanged.

Evidence

  • Reproduction: Full validation 33610645422 / failed qualification job: candidate pnpm build succeeds; trusted tooling then rejects pnpm 11.2 for its required 12.1.
  • Exact rebased head 995d37f824a8798ed2bbed0f4f96048836dfb7ae: focused workflow contract test passes 16/16.
  • actionlint .github/workflows/openclaw-npm-preflight.yml passed.
  • oxfmt --check passed for both changed files.
  • git diff origin/main...HEAD --check passed.
  • pnpm check:workflows is blocked solely because the configured package index does not provide pre-commit==4.6.2 (its newest available version is 4.3.0).
  • Focused frozen-pnpm proof on exact head 995d37f824a8798ed2bbed0f4f96048836dfb7ae passed in Blacksmith Testbox tbx_01m1h5am68rdbc40bj63h8p9t1 (run 33636697471). In the same fixture, candidate cwd plus corepack pnpm --dir tooling --version selected pnpm 11.2.0 and failed as expected; entering the tooling cwd before corepack pnpm --version selected 12.1.0 and the command exited 0. Crabbox then stopped the successful one-shot lease, so the backing Actions Testbox step records the documented lifecycle cancellation.
  • Exact-head CI run 33636006895, attempt 2, passed. The initial checks-node-compact-small-21 failure exhausted checkout retries before setup or tests ran; targeted replacement job 100277006799 passed checkout and the shard, then aggregate openclaw/ci-gate job 100278692825 passed.
  • No full FRV, release, publish, tag, or registry mutation was dispatched.

Scope

Main harness only; no candidate/package/tag/npm state changed.

Production LOC: +5/-2 (net +3) | Tests: +8/-1 (net +7)

@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 size: XS 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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:50 AM ET / 13:50 UTC.

ClawSweeper review

What this changes

The PR runs Plugin SDK API installation and comparison from the trusted workflow-tooling checkout so Corepack selects that checkout’s pnpm version.

Regression provenance

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

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

The focused workflow fix is correct and still needed: fetched current main retains the failing invocation shape, while the PR moves both pnpm calls into the verified tooling checkout. Its supplied exact-head Testbox trace addresses the prior proof request; this maintainer-owned release-workflow change should remain open for owner review and exact-head CI resolution.

Priority: P2
Reviewed head: 995d37f824a8798ed2bbed0f4f96048836dfb7ae
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused workflow repair with a relevant contract guard and strong exact-head environment evidence; final readiness depends on resolving the current check status.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: This member-authored workflow PR is exempt from the external-contributor proof gate; nevertheless, its body supplies an exact-head Testbox before/after Corepack selection trace for the changed release-qualification path.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored workflow PR is exempt from the external-contributor proof gate; nevertheless, its body supplies an exact-head Testbox before/after Corepack selection trace for the changed release-qualification path.
Evidence reviewed 7 items Workflow owner and changed boundary: The PR verifies the tooling checkout's workflow SHA and cleanliness, then changes both installation and SDK comparison to run inside that checkout; target SHA and artifact arguments remain outside the subshell and unchanged.
Current-main behavior: Fetched current main still runs installation and SDK comparison through pnpm --dir from the candidate checkout, so it does not yet contain this repair.
Corepack contract: The installed Corepack 0.34.6 package identifies nodejs/corepack as its source repository. Its dispatcher resolves the project specification from the received cwd before invoking the package-manager binary, supporting the distinction between --dir and an actual working-directory change.
Findings None None.
Security None None.

How this fits together

The extended-stable npm release workflow validates a candidate package with trusted Plugin SDK tooling before publication. The tooling checkout supplies the package-manager contract and produces the SDK qualification evidence used by downstream release gates.

flowchart LR
  A[Release candidate] --> B[Extended-stable preflight]
  B --> C[Trusted tooling checkout]
  C --> D[Corepack selects pnpm]
  D --> E[SDK API qualification]
  E --> F[Release evidence artifact]
Loading

Decision needed

Question Recommendation
Should the release-workflow owner accept this repair once the failed exact-head lane is confirmed to be only the documented external package-index limitation? Verify the failed lane, then merge: Confirm the failure is solely the unavailable package-index version and merge when the remaining exact-head checks are acceptable.

Why: This member-owned PR changes release qualification and has a protected maintainer label; the remaining failed check cannot be resolved from source inspection alone.

Before merge

  • Resolve merge risk (P1) - One exact-head check is currently failing and another is in progress; the supplied PR evidence attributes the workflow-check failure to an unavailable package-index version, but the release workflow should not merge until the failing lane is confirmed external or passes.
  • Complete next step (P2) - Confirm the failed exact-head lane is solely the documented external package-index limitation, then complete release-workflow owner review before merge.
Agent review details

Security

None.

PR surface

Tests +7, Config +3. Total +10 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 8 1 +7
Docs 0 0 0 0
Config 1 5 2 +3
Generated 0 0 0 0
Other 0 0 0 0
Total 2 13 3 +10

Review metrics

Metric Value Why it matters
Production versus test delta workflow net +3; tests net +7 The small production increase creates one explicit trusted-checkout boundary; the test change guards both commands against returning to the candidate-cwd invocation.

Merge-risk options

Maintainer options:

  1. Verify the failed exact-head lane (recommended)
    Confirm the current failure is only the documented package-index limitation before accepting the workflow change.
  2. Pause for a workflow correction
    If the failing lane exposes a regression in the changed qualification path, pause this PR until that defect is repaired and proven on the exact head.

Technical review

Best possible solution:

Retain the checkout-bound invocation, confirm the remaining exact-head workflow status is not a defect in this change, then merge the focused repair without altering target, evidence, or publication inputs.

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

Yes: current main retains the invalid invocation form, and Corepack resolves the package-manager contract from cwd before pnpm receives its arguments. The supplied exact-head Testbox trace independently records the failing and repaired selections.

Is this the best way to solve the issue?

Yes: executing both pnpm calls in the already verified tooling checkout corrects the owner boundary without changing the candidate SHA, comparison inputs, or evidence output paths.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded release-qualification workflow failure with a focused repair.
  • merge-risk: 🚨 automation: Merging changes the release workflow's package-manager selection and SDK qualification execution path.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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 member-authored workflow PR is exempt from the external-contributor proof gate; nevertheless, its body supplies an exact-head Testbox before/after Corepack selection trace for the changed release-qualification path.

Evidence

What I checked:

  • Workflow owner and changed boundary: The PR verifies the tooling checkout's workflow SHA and cleanliness, then changes both installation and SDK comparison to run inside that checkout; target SHA and artifact arguments remain outside the subshell and unchanged. (.github/workflows/openclaw-npm-preflight.yml:462, 995d37f824a8)
  • Current-main behavior: Fetched current main still runs installation and SDK comparison through pnpm --dir from the candidate checkout, so it does not yet contain this repair. (.github/workflows/openclaw-npm-preflight.yml:451, 645c0ac609ab)
  • Corepack contract: The installed Corepack 0.34.6 package identifies nodejs/corepack as its source repository. Its dispatcher resolves the project specification from the received cwd before invoking the package-manager binary, supporting the distinction between --dir and an actual working-directory change. (dist/lib/corepack.cjs:23004)
  • Caller and qualification consumer: The npm release workflow invokes the reusable preflight with read-only permissions, and the API-diff script resolves its repository root from its process working directory before validating refs and rendering evidence. (.github/workflows/openclaw-npm-release.yml:111, 995d37f824a8)
  • Regression guard: The amended workflow contract test parses the reusable workflow and asserts the checkout-bound pnpm install and SDK comparison, while rejecting the previous --dir form. (test/scripts/openclaw-npm-extended-stable-workflow.test.ts:227, 995d37f824a8)
  • Feature history: Recent workflow history shows the immediately preceding qualification refactor at 06f897f and prior related release fixes by Peter Steinberger and Vincent Koc; the PR change itself is commit 995d37f. (.github/workflows/openclaw-npm-preflight.yml, 06f897f562d7)

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)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm that the failed exact-head check is solely the documented external package-index limitation before merge.

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-02T09:56:23.999Z sha 0273830 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T13:37:04.155Z sha 995d37f :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the fix/release-plugin-sdk-tooling-pnpm branch from 0273830 to bff3edf Compare September 2, 2026 13:27
@vincentkoc
vincentkoc force-pushed the fix/release-plugin-sdk-tooling-pnpm branch from bff3edf to 995d37f Compare September 2, 2026 13:29
@vincentkoc vincentkoc self-assigned this Sep 2, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 2, 2026
@vincentkoc
vincentkoc merged commit f144d5d into main Sep 2, 2026
356 of 358 checks passed
@vincentkoc
vincentkoc deleted the fix/release-plugin-sdk-tooling-pnpm branch September 2, 2026 14:07
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

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. size: XS 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.

2 participants