Skip to content

fix(ci): run remaining trusted installs from tooling checkout - #136325

Merged
vincentkoc merged 1 commit into
mainfrom
fix/frv-trusted-pnpm-cwd
Sep 2, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/frv-trusted-pnpm-cwd

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • build on fix(release): run SDK tooling from its checkout #136233, which moved the two Plugin SDK pnpm commands into the trusted tooling checkout
  • move the two remaining trusted install commands in check_dependencies_npm and check_contents_npm into that checkout
  • keep target-owned pnpm commands at the release target root
  • add executable owner-boundary coverage for all four canonical trusted-tooling sites

Root cause

Full Release Validation run 33610645422 paired a historical release target pinned to pnpm 11.2.2 with trusted tooling pinned to pnpm 12.1.0. Corepack selects the package manager from the process working directory before pnpm processes --dir.

PR #136233 fixed that owner boundary for the two check_sdk_npm commands. Current main still invoked the trusted dependency and package-content installs as pnpm --dir .artifacts/plugin-sdk-release-tooling ... from the release target root, so those two jobs retained the same failure mode.

The release tooling checkout owns these installs and its package-manager version. This follow-up runs the two remaining installs from that checkout while leaving the landed SDK block and all target-owned commands unchanged.

Credit and relationship

Dallin Romney's merged PR #136233 established the trusted-checkout owner boundary for SDK installation and API comparison. This PR is a narrow follow-up for the two remaining install sites and preserves the contributor's landed implementation unchanged.

Verification

Test audit

The regression executes the merged SDK subshell and both follow-up install commands at the shell boundary with a target pinned to pnpm 11.2.2 and trusted tooling pinned to pnpm 12.1.0. Existing coverage statically protects the SDK block; this test adds executable four-site package-manager ownership proof without a production test seam.

LOC

  • production: net 0
  • tests: +68

No changelog entry: this is an internal release-pipeline correctness fix.

Agent Transcript

Redacted implementation session
[user]
PR #136233 has merged the two SDK-tooling fixes. Rebase and narrow this PR to the two remaining trusted install commands, preserve useful owner-boundary coverage, and land it as a follow-up.

[assistant]
Rebased onto the contributor's merge, retained its SDK subshell unchanged, dropped the duplicate assertion follow-up, and kept only the dependency/content install repairs.

[assistant]
The executable four-site regression and focused workflow suites passed 344/344. Autoreview was scoped-clean. Production LOC remains net 0 and tests add 68 lines.

@vincentkoc vincentkoc self-assigned this Sep 2, 2026
@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.

@vincentkoc
vincentkoc marked this pull request as ready for review September 2, 2026 13:26
@openclaw-barnacle openclaw-barnacle Bot added 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: blocked before merge. Reviewed September 2, 2026, 5:44 PM ET / 21:44 UTC.

ClawSweeper review

What this changes

The PR runs two trusted npm-preflight installs from the tooling checkout and adds executable coverage that each trusted pnpm command uses that checkout’s package-manager version.

Regression provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 2 items remain

The patch is correct on source review: it repairs the two remaining trusted-tooling installs. Keep this maintainer-owned PR open until its exact-head release-qualification checks complete.

Priority: P2
Reviewed head: 385bc664ad3dfd0eb26b630087f7600725df039d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary repair with credible executable coverage; exact-head workflow validation remains pending.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored CI-only repair is exempt from the external-contributor proof gate; its focused executable regression and pending exact-head workflow checks remain relevant validation evidence.
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 CI-only repair is exempt from the external-contributor proof gate; its focused executable regression and pending exact-head workflow checks remain relevant validation evidence.
Evidence reviewed 6 items Introduced owner-boundary repair: The PR changes the dependency and package-contents lanes so their trusted install enters the checkout that owns the tooling packageManager pin before invoking pnpm.
Current-main gap: The fetched current-main tree still has the former target-root pnpm --dir form at both affected install sites, so this PR remains necessary.
Corepack working-directory contract: The installed official Corepack package identifies nodejs/corepack as its repository; its dispatcher passes process.cwd() to package-manager resolution, which loads the project specification from that initial directory before running pnpm. Thus pnpm --dir cannot correct initial package-manager selection, while a shell cd can.
Findings None None.
Security None None.

How this fits together

The npm preflight workflow validates a release target using separately checked-out trusted tooling. The tooling-owned install must select pnpm from that tooling checkout before package dependency and contents qualification continue.

flowchart LR
  A[Release target checkout] --> B[NPM preflight workflow]
  C[Trusted tooling checkout] --> D[Trusted pnpm install]
  B --> D
  D --> E[Dependency and contents qualification]
  E --> F[Release validation evidence]
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head release-preflight validation is still incomplete, so the runner environment has not yet confirmed the changed pnpm working-directory behavior.
  • Complete next step (P2) - Do not merge until the pending exact-head release-preflight and security checks complete successfully.
Agent review details

Security

None.

PR surface

Tests +68, Config 0. Total +68 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 68 0 +68
Docs 0 0 0 0
Config 1 2 2 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 70 2 +68

Review metrics

Metric Value Why it matters
Production versus test delta workflow +2/-2 (net 0); tests +68/-0 The repair changes no net production lines and adds focused executable coverage of the four trusted-tooling command sites.

Merge-risk options

Maintainer options:

  1. Complete exact-head workflow validation (recommended)
    Allow the pending release-qualification checks to finish successfully before merging this CI working-directory change.

Technical review

Best possible solution:

Retain the tooling-directory invocations and merge only after the exact-head release-preflight checks confirm them in the hosted runner environment.

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

Yes. Corepack resolves the package-manager specification from its initial working directory, and the focused test models conflicting target/tooling pins; the old target-root invocation therefore reproduces the defect by source contract.

Is this the best way to solve the issue?

Yes. Moving only the two remaining tooling-owned installs into the tooling checkout matches the already-landed SDK pattern; changing target-owned setup globally would broaden the fix without addressing the ownership boundary more directly.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded release-qualification automation repair with no normal product-runtime behavior change.
  • merge-risk: 🚨 automation: The changed shell working directory controls which pnpm version the release workflow resolves.
  • 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 MEMBER-authored CI-only repair is exempt from the external-contributor proof gate; its focused executable regression and pending exact-head workflow checks remain relevant validation evidence.

Evidence

What I checked:

  • Introduced owner-boundary repair: The PR changes the dependency and package-contents lanes so their trusted install enters the checkout that owns the tooling packageManager pin before invoking pnpm. (.github/workflows/openclaw-npm-preflight.yml:599, 385bc664ad3d)
  • Current-main gap: The fetched current-main tree still has the former target-root pnpm --dir form at both affected install sites, so this PR remains necessary. (.github/workflows/openclaw-npm-preflight.yml:599, 2aa614d5866a)
  • Corepack working-directory contract: The installed official Corepack package identifies nodejs/corepack as its repository; its dispatcher passes process.cwd() to package-manager resolution, which loads the project specification from that initial directory before running pnpm. Thus pnpm --dir cannot correct initial package-manager selection, while a shell cd can. (dist/lib/corepack.cjs:13775)
  • Executable regression coverage: The added test creates conflicting root and tooling packageManager pins, executes the parsed workflow commands, and requires all four trusted-tooling pnpm invocations to run in the tooling directory. (test/scripts/package-acceptance-workflow.test.ts:3928, 385bc664ad3d)
  • Merged predecessor context: The merged SDK working-directory repair is an ancestor of this branch; it covers the earlier SDK command pair, while this PR covers the distinct remaining install pair. (.github/workflows/openclaw-npm-preflight.yml:468, f144d5d014c6)
  • Exact-head status: The supplied exact-head check snapshot still contains queued and in-progress release/CI jobs, so hosted runner validation is not complete. (385bc664ad3d)

Likely related people:

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

  • Wait for the exact-head release-preflight and security checks to complete successfully.

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 (4 earlier review cycles)
  • reviewed 2026-09-02T13:35:08.203Z sha 857e117 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T13:58:30.251Z sha d3b1b9b :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T14:28:14.457Z sha ba74bc7 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T15:14:21.909Z sha aff8d07 :: needs maintainer review before merge. :: none

@vincentkoc vincentkoc changed the title fix(ci): run trusted npm tooling from its checkout fix(ci): run remaining trusted installs from tooling checkout Sep 2, 2026
@vincentkoc
vincentkoc force-pushed the fix/frv-trusted-pnpm-cwd branch from d3b1b9b to ba74bc7 Compare September 2, 2026 14:20
@vincentkoc
vincentkoc force-pushed the fix/frv-trusted-pnpm-cwd branch from ba74bc7 to aff8d07 Compare September 2, 2026 15:04
@vincentkoc
vincentkoc force-pushed the fix/frv-trusted-pnpm-cwd branch from aff8d07 to 385bc66 Compare September 2, 2026 21:36
@vincentkoc
vincentkoc merged commit 96124c5 into main Sep 2, 2026
246 of 248 checks passed
@vincentkoc
vincentkoc deleted the fix/frv-trusted-pnpm-cwd branch September 2, 2026 22:08
@vincentkoc

Copy link
Copy Markdown
Member Author

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: 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