Skip to content

fix(deps): reduce source install filesystem churn with isolated linking - #135728

Merged
steipete merged 5 commits into
mainfrom
fix/pnpm-isolated-linker
Sep 2, 2026
Merged

steipete merged 5 commits into
mainfrom
fix/pnpm-isolated-linker

Conversation

@steipete

@steipete steipete commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where source installs cannot use pnpm 12.1's whole-package APFS clone cache because the workspace forces the flat hoisted linker. Concurrent installs can generate substantial per-file filesystem activity on macOS.

Why This Change Was Made

Use the isolated linker, keeping pnpm's default internal hoisting. The APFS clone-cache implementation explicitly excludes the hoisted linker. This enables that optimization on supported volumes without changing the package manager, enabling the global virtual store, or weakening dependency policy.

The full CI matrix exposed existing assumptions about a flat dependency tree, so this includes the compatibility repairs needed to make the switch safely. CUA and Codex resolve native optional dependencies from their actual SDK package location, retaining digest/version and pinned-binary checks. Release planning excludes pnpm-created launcher metadata from the retained YAML tree while preserving its existing pinned canonical-byte digest and rejecting external module loads. Test fixtures resolve dependencies through their owning package, and compiled subprocesses bundle workspace-private dependencies rather than expecting those packages at the root. Doctor fixtures retain their private source/UI ownership while canonicalizing dependency paths. Relocated boundary declarations retain their owning package's dependency resolution, and public Vitest mock types keep test-helper declarations portable.

Nine dependencies already used by root tests/tooling are explicit root development dependencies, all at versions already present in the lockfile. Package snapshots, patches, overrides, and transitive versions are unchanged. Discord test adapters live inside the Discord package; its dependency-ownership contract remains enforced. Explicit public type annotations keep emitted declarations portable. Crabline stays external to preserve the package-relative crypto loader. Matrix, Discord, and Feishu use the existing package-local runtime build path; postbuild links each generated plugin to its own source dependencies after metadata cleanup. This preserves independent dependency versions and the shared host SDK, including copied QA runtime trees.

Patched-plugin packaging now verifies isolated virtual-store locations as well as the existing hoisted layout, including pnpm 12's shortened store paths. Frozen importer, patch-hash and package-identity checks remain enforced; redirected or unpatched slots are rejected. The real Matrix package was packed locally, its tarball integrity verified, and all five patched matrix-js-sdk files compared byte-for-byte with the installed patched source. No package was published.

User Impact

Source checkouts can use pnpm's isolated linking and eligible whole-package APFS clones. Existing checkouts should stop jobs using their dependencies before running pnpm install --frozen-lockfile; migration guidance is in CONTRIBUTING.md. This does not alter running worktrees automatically, cap concurrent installs, or promise a measured install-time or pointer-latency improvement.

Evidence

  • pnpm 12.1.0's clone-cache eligibility requires the isolated linker, a supported macOS volume, and an eligible import method: upstream implementation.
  • The isolated patched-slot naming was checked directly against pnpm v12.1.0's path encoding and UTF-8-safe SHA-256 shortening; normal and shortened isolated slots pass real packaging fixtures.
  • Real frozen isolated installs succeeded, including the final explicit dependency declarations. Supply-chain verification passed for 1,641 entries. Structural assertions verified unchanged package graphs, patch hashes and overrides, plus existing snapshots and native ESM resolution for all nine new direct references.
  • A disposable cached-package fixture migrated from a real hoisted directory to isolated links with the documented frozen install command and preserved native Node resolution.
  • The existing native Vitest runner fixture failed with ERR_MODULE_NOT_FOUND before its direct declaration and passed using the existing patched snapshot afterward.
  • Root test typechecking passes. The initial focused run passed eight files / 100 tests; patched-plugin packaging passed 44 tests; declaration generation passed 23 tests. A separate Linux frozen install and full build passed, including all unified and plugin SDK declaration groups. Seven Linux compatibility files passed, including real CUA/native Codex resolution, ACP and Teams process tests, declaration cache behavior, and the existing 256 MiB SQLite import tests. The full extension-boundary compile passes for all 123 plugins; the full-tree Knip scan and 12 boundary/Slack behavior tests also pass. Exact-head CI passed on a2449fe, including all six QA profiles, both Windows shards, and the required merge gate.
  • Final runtime ownership proof: 37 focused build tests and 42 postbuild/overlay tests pass. A two-plugin regression covers distinct versions of one dependency, shared host SDK identity, copied staging, and repeated metadata cleanup without source deletion. Fresh Linux private QA runtime build and all three Matrix restart scenarios pass after reproducing the missing-SDK failure before the repair.
  • Existing native-resolution, YAML-integrity, and compiled-worker tests were extended to exercise isolated layouts. Existing memory limits and security rejection cases remain intact. Fresh scoped Codex autoreview reported no accepted P0 findings.

Earlier CI runs caught the compatibility failures addressed here; it was not treated as merge-ready evidence. No numeric performance claim or dependency upgrade is included.

@steipete steipete 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.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 2, 2026
@steipete
steipete marked this pull request as ready for review September 2, 2026 00:45
@steipete
steipete requested a review from a team as a code owner September 2, 2026 00:45
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Sep 2, 2026
@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin, a member of @openclaw/openclaw-secops, or an OpenClaw organization member with Maintain or Admin repository access.

  • Current SHA: a2449fee492cc79c66ed3d591fb580b2b7c52184
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. 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 1, 2026, 10:43 PM ET / September 2, 2026, 02:43 UTC.

ClawSweeper review

What this changes

This PR switches source installs to pnpm isolated linking and updates package-local runtime resolution, plugin builds, packaging checks, tests, and contributor guidance accordingly.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

No concrete introduced defect was found in the inspected packaging, plugin-runtime, Codex, or CUA paths. Keep this maintainer-owned PR open until exact-head CI completes and the pnpm v12.1 virtual-store encoding claim is directly verified.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has substantial focused coverage and no verified defect in inspected paths, with exact-head CI and direct upstream contract confirmation outstanding.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored infrastructure PR is exempt from the external-contributor proof gate; supplied Testbox runtime evidence is relevant, while exact-head CI remains a separate merge gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored infrastructure PR is exempt from the external-contributor proof gate; supplied Testbox runtime evidence is relevant, while exact-head CI remains a separate merge gate.
Evidence reviewed 7 items Introduced linker migration: The PR changes the workspace default from hoisted to isolated linking, making dependency resolution and upgrade compatibility the central review surface.
Frozen package verification: The packaging verifier binds patched dependencies to the frozen importer, patch hash, installed lock, package-relative resolution, and package identity before packing.
Source-runtime ownership: External plugin runtime builds retain declared dependencies as external, stage package output under the root runtime tree, and are followed by metadata processing.
Findings None None.
Security None None.

How this fits together

The workspace dependency layout supplies plugin builds, package artifacts, test subprocesses, and native SDK launchers. Isolated linking relocates real packages into owner-specific dependency trees, so each consumer must resolve from its declaring package.

flowchart LR
  A[Source checkout] --> B[pnpm isolated links]
  B --> C[Package-owned dependencies]
  C --> D[Plugin build and packaging]
  C --> E[Native SDK resolution]
  D --> F[Source runtime artifacts]
  E --> G[Plugin startup]
Loading

Decision needed

Question Recommendation
Should the isolated-linker migration wait for exact-head CI and a direct pnpm v12.1 contract check before merge? Wait for complete validation: Require green exact-head CI and direct inspection of pnpm v12.1’s virtual-store implementation before merge.

Why: The new verifier reimplements pnpm’s internal virtual-store naming. Local evidence corroborates an older implementation, but not the asserted v12.1 source contract, and CI is still running.

Before merge

  • Resolve merge risk (P1) - Changing the default workspace linker can expose package-resolution assumptions in existing source checkouts; exact-head CI is still incomplete.
  • Resolve merge risk (P1) - The isolated patched-package locator mirrors pnpm virtual-store encoding, but this review could not directly inspect the pinned pnpm v12.1 source contract.
  • Complete next step (P2) - The protected maintainer label plus incomplete exact-head and dependency-contract evidence require maintainer review, not an automated repair lane.
Agent review details

Security

None.

PR surface

Source +19, Tests +382, Docs +13, Config +13, Other +91. Total +518 across 46 files.

View PR surface stats
Area Files Added Removed Net
Source 6 28 9 +19
Tests 26 492 110 +382
Docs 1 13 0 +13
Config 5 14 1 +13
Generated 0 0 0 0
Other 8 103 12 +91
Total 46 650 132 +518

Review metrics

Metric Value Why it matters
Production versus test delta production +129/-20, tests/test-support +494/-112, lockfile +27/-0 Most growth is compatibility coverage; the production delta implements package-owned resolution and source-runtime artifact handling.
Root development declarations 9 added Root tooling and tests now explicitly declare packages they import instead of relying on hoisting.

Stored data model

Persistent data-model change detected: serialized state: scripts/copy-bundled-plugin-metadata.mts, vector/embedding metadata: scripts/copy-bundled-plugin-metadata.mts. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Merge-risk options

Maintainer options:

  1. Complete source-layout validation (recommended)
    Wait for exact-head CI and direct verification of the pnpm v12.1 naming contract before merging the new linker default.
  2. Accept the residual contract risk
    A maintainer may merge based on the linked upstream material and existing focused runtime evidence.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Require exact-head CI completion and maintainer verification of the pinned pnpm v12.1 virtual-store naming contract.

Technical review

Best possible solution:

Retain the package-owned resolution approach, then merge after exact-head CI is green and a maintainer verifies the linked pnpm v12.1 virtual-store naming implementation.

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

Yes in source: isolated linking relocates package dependencies, and the introduced tests exercise the affected owner-relative paths. This reviewer did not execute the patch.

Is this the best way to solve the issue?

Unclear: the inspected owner boundaries support this approach, but direct pnpm v12.1 contract evidence and exact-head CI are needed before calling it the best merge-ready solution.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This broad source-install and build compatibility migration has no demonstrated urgent user outage.
  • merge-risk: 🚨 compatibility: Changing the default linker can break existing source checkout resolution and plugin package ownership paths.
  • merge-risk: 🚨 automation: The PR changes build, artifact, and packaging validation scripts used by automated workflows.
  • 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-authored infrastructure PR is exempt from the external-contributor proof gate; supplied Testbox runtime evidence is relevant, while exact-head CI remains a separate merge gate.

Evidence

What I checked:

Likely related people:

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

  • Record complete exact-head CI and a direct pnpm v12.1 virtual-store naming check 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 (4 earlier review cycles)
  • reviewed 2026-09-02T00:53:11.670Z sha 10b9c10 :: found issues before merge. :: [P1] Support isolated links in patched-plugin packaging
  • reviewed 2026-09-02T01:39:39.437Z sha edadfbc :: needs changes before merge. :: [P1] Support isolated links in patched-plugin packaging
  • reviewed 2026-09-02T02:02:43.811Z sha 34b8ab9 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T02:16:23.050Z sha 6318572 :: needs maintainer review before merge. :: none

@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Addressed the patched-plugin packaging finding in 34b8ab9.

The verifier now checks the isolated virtual-store location derived from the exact frozen snapshot, including pnpm 12's shortened store paths. It retains matching patch hashes, importer/specifier checks, package identity checks, and existing hoisted-install support. It rejects links into foreign, redirected, or unpatched slots.

Both new isolated packaging cases failed with the original verifier and pass after the repair; the complete packaging suite passes all 44 tests. I also built and packed the real Matrix plugin locally, verified tarball integrity, and compared all five patched matrix-js-sdk files byte-for-byte against the installed patched source. This was local packing only, not publication.

The other compatibility repairs have passed the full 123-plugin declaration-boundary compile, 23 declaration-generator tests, the full-tree Knip scan, and 12 boundary/Slack behavior tests. A separate Linux frozen install/full build and seven Linux native/process/declaration/memory test files passed. Earlier local filesystem-heavy tests timed out; their unchanged Linux counterparts passed. CI is rerunning on this exact head before landing.

The APFS eligibility claim was checked directly against pnpm v12.1.0's clone-cache implementation. This enables the optimization; it makes no measured install-speed or pointer-latency claim.

@clawsweeper re-review

@clawsweeper

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

Re-review progress:

@clawsweeper clawsweeper Bot added 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. and removed 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. labels Sep 2, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: msteams Channel integration: msteams scripts Repository scripts commands Command implementations extensions: acpx labels Sep 2, 2026
@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up pushed in 6318572: keep Crabline external so its crypto loader's createRequire(import.meta.url) resolves dependencies from Crabline's own package. The existing configuration regression failed in four runtime/declaration cases before the fix and all eight selected cases pass afterward. The private QA runtime build, CLI startup, and actual gateway-smoke scenario pass locally with isolated dependencies. Also fixed the single brace-style lint failure. Exact-head CI is rerunning.

The remaining pnpm contract question is directly verified against the v12.1.0 tag, not inferred from the tests: PkgNameVerPeer::to_virtual_store_name escapes filesystem characters and peer parentheses; shorten_virtual_store_name applies the byte-length/ASCII-case decision, a UTF-8-safe prefix of max_length - 33, and the first 32 hexadecimal SHA-256 characters. The packaging helper consumes exact-version registry selectors; pnpm's separate file+ exception is outside that accepted input contract. Both normal and shortened isolated slots have passing real packaging fixtures.

A second fresh Blacksmith Testbox run verified hashes for all 38 changed files at 34b8ab9, then passed a frozen Linux install, the complete build including declarations, and real Matrix runtime build/packing with tarball integrity and all five patched SDK files checked byte-for-byte. Lease tbx_01m1fxcqah9r5cenfqhnqpqc6d, backing run, command exit 0; the lease was stopped. That full-build proof predates this small QA externalization/brace follow-up; current-head hosted CI remains required before landing. No package was published.

@clawsweeper re-review

@clawsweeper

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

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. and removed P1 High-priority user-facing bug, regression, or broken workflow. labels Sep 2, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: matrix Channel integration: matrix channel: feishu Channel integration: feishu labels Sep 2, 2026
@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

The next CI pass exposed the remaining Matrix runtime ownership problem: its unified root chunk still imported matrix-js-sdk from root dist. Fixed in a2449fe by using the existing package-local build path for Matrix, Discord, and Feishu. All three have explicitly externalized plugin-owned SDKs and are already excluded from the root package artifact. Postbuild now links each standalone source-runtime output to its own dependencies after metadata cleanup; repeated cleanup first removes the output link so it cannot delete source packages through it. No root SDK dependencies or shared hoisted output namespace were added.

The native Node regression uses two plugins with different versions of one dependency and checks that both retain their versions while sharing the same host SDK instance. It also checks a copied staging tree and repeated metadata generation. All 37 focused build tests and 42 postbuild/overlay tests pass. Existing Matrix runtime-shim and Discord asset coverage now checks their package-owned output path. Independent owner-boundary inspection and fresh scoped Codex autoreview found no accepted findings at the selected review threshold.

Blacksmith Testbox tbx_01m1fyyf923ts2ekepgtakt72w (backing run) reproduced the missing Matrix SDK before the repair. After syncing the repair, frozen install, OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build qaRuntime, native plugin loading, and all three Matrix restart scenarios passed, command exit 0. The scenarios were matrix-post-restart-room-continue, matrix-restart-replay-dedupe, and matrix-restart-resume, using the mock provider and Crabline transport with the normal 180000 ms readiness allowance. The lease is stopped. A separate follow-up artifact-inspection command failed after Testbox resynchronization and is not counted as proof.

The preceding CI run also had a Windows Gateway teardown deadline failure in unchanged code; its exact shard was retried without changing the timeout. The new full CI run remains required before landing. The maintainer-requested default migration is intentional; the pinned pnpm contract was directly verified in the linked source recorded in the PR body.

@clawsweeper re-review

@clawsweeper

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

@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Final pre-merge verification for a2449fe:

CI run 33583866577 completed successfully with no failed or pending jobs. Fresh PR checks show 260 passing checks and 37 conditionally skipped checks; the required openclaw/ci-gate, all six QA smoke profiles, both Windows shards, lint, build, and declaration-boundary checks pass. The prior Windows Gateway teardown failure is not reproduced on this head; its test and timeout were not changed.

The source-install migration is explicitly requested and accepted by the maintainer. The pnpm contract is directly verified against the v12.1.0 tag: filesystem/peer encoding, UTF-8-safe shortening, and clone-cache eligibility. This closes the reviewer's retrieval gap; it is not inferred from the test fixtures.

The PR body and preceding proof comments record the frozen macOS/Linux installs, unchanged resolved dependency snapshots/patches/overrides, 123-plugin boundary compile, real Matrix tarball/patch-byte verification, native SDK checks, subprocess/memory tests, 37 build-ownership tests, 42 postbuild/overlay tests, and the failing-before/passing-after Matrix restart proof on Blacksmith Testbox. All task-owned leases are stopped. No package publication, timeout relaxation, or numeric performance claim is included.

The completed current-head ClawSweeper review reports no actionable code findings. Independent package-ownership inspection and fresh scoped Codex autoreview are complete. Proceeding through native prepare/merge with the exact-head CI gate satisfied.

@steipete
steipete merged commit 4675e3d into main Sep 2, 2026
303 checks passed
@steipete
steipete deleted the fix/pnpm-isolated-linker branch September 2, 2026 02:56
@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 2, 2026
…ng (openclaw#135728)

* fix(deps): reduce source install filesystem churn with isolated linking

* fix(deps): preserve package ownership under isolated linking

* fix(deps): retain isolated package ownership in packaging and declarations

* fix(build): preserve Crabline dependency ownership with isolated linking

* fix(build): keep external plugin runtimes with their dependency owners
steipete added a commit that referenced this pull request Sep 2, 2026
Emit artifact-owned relative POSIX dependency links while preserving Windows junctions and plugin-local dependency ownership. Cover whole-checkout relocation with the original root unavailable and shared SDK identity intact.

Fixes #135896. Follow-up to #135728.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
…law#135903)

Emit artifact-owned relative POSIX dependency links while preserving Windows junctions and plugin-local dependency ownership. Cover whole-checkout relocation with the original root unavailable and shared SDK identity intact.

Fixes openclaw#135896. Follow-up to openclaw#135728.
ylcn91 added a commit to ylcn91/openclaw that referenced this pull request Sep 5, 2026
…aged plugin root

The official 2026.9.1 image cannot load its bundled externally distributed
plugins (codex, diagnostics-otel): doctor and plugins inspect report every
declared dependency as missing. Since the workspace moved to pnpm's isolated
linker (openclaw#135728) those packages live only in /app/node_modules/.pnpm and are
linked from /app/extensions/<id>/node_modules, neither of which is an ancestor
of the packaged root /app/dist/extensions/<id> that the dependency lookup
(src/plugins/status-dependencies-core.ts) and the managed Codex launcher
resolution (extensions/codex/src/app-server/managed-binary.ts) start from.
2026.8.2 worked only because the hoisted linker placed them in
/app/node_modules. Docker-selected plugins are built as unified outputs, so
the source-checkout dependency links added in openclaw#135903 never applied to them.

Move linkSourcePluginDependencies into a plain-Node module and have the
Docker assembly stage link each retained root-package-excluded plugin's
production install under dist/extensions/<id>/node_modules after package
lifecycle cleanup, failing the image build when a declared dependency still
does not resolve from the packaged root.

Fixes openclaw#138777. Reported by 8bitsforge.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
vincentkoc added a commit that referenced this pull request Sep 6, 2026
…aged plugin root (#139117)

The official 2026.9.1 image cannot load its bundled externally distributed
plugins (codex, diagnostics-otel): doctor and plugins inspect report every
declared dependency as missing. Since the workspace moved to pnpm's isolated
linker (#135728) those packages live only in /app/node_modules/.pnpm and are
linked from /app/extensions/<id>/node_modules, neither of which is an ancestor
of the packaged root /app/dist/extensions/<id> that the dependency lookup
(src/plugins/status-dependencies-core.ts) and the managed Codex launcher
resolution (extensions/codex/src/app-server/managed-binary.ts) start from.
2026.8.2 worked only because the hoisted linker placed them in
/app/node_modules. Docker-selected plugins are built as unified outputs, so
the source-checkout dependency links added in #135903 never applied to them.

Move linkSourcePluginDependencies into a plain-Node module and have the
Docker assembly stage link each retained root-package-excluded plugin's
production install under dist/extensions/<id>/node_modules after package
lifecycle cleanup, failing the image build when a declared dependency still
does not resolve from the packaged root.

Fixes #138777. Reported by 8bitsforge.

Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 6, 2026
…aged plugin root (openclaw#139117)

The official 2026.9.1 image cannot load its bundled externally distributed
plugins (codex, diagnostics-otel): doctor and plugins inspect report every
declared dependency as missing. Since the workspace moved to pnpm's isolated
linker (openclaw#135728) those packages live only in /app/node_modules/.pnpm and are
linked from /app/extensions/<id>/node_modules, neither of which is an ancestor
of the packaged root /app/dist/extensions/<id> that the dependency lookup
(src/plugins/status-dependencies-core.ts) and the managed Codex launcher
resolution (extensions/codex/src/app-server/managed-binary.ts) start from.
2026.8.2 worked only because the hoisted linker placed them in
/app/node_modules. Docker-selected plugins are built as unified outputs, so
the source-checkout dependency links added in openclaw#135903 never applied to them.

Move linkSourcePluginDependencies into a plain-Node module and have the
Docker assembly stage link each retained root-package-excluded plugin's
production install under dist/extensions/<id>/node_modules after package
lifecycle cleanup, failing the image build when a declared dependency still
does not resolve from the packaged root.

Fixes openclaw#138777. Reported by 8bitsforge.

Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: matrix Channel integration: matrix channel: msteams Channel integration: msteams channel: synology-chat commands Command implementations dependencies-changed PR changes dependency-related files extensions: acpx extensions: codex extensions: openai extensions: qa-lab maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: cua-computer rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L 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