Repository navigation
fix(plugins): relink host runtime dependencies - #117408
Conversation
e19a5c5 to
30fc752
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 9:23 AM ET / 13:23 UTC. ClawSweeper reviewWhat this changesThe PR repairs managed npm plugin installation by linking the packaged OpenClaw host when a plugin declares Merge readinessThis member-authored PR remains necessary: current Priority: P2 Review scores
Verification
How this fits togetherExternal plugins are installed under a managed npm root and need a local link to OpenClaw’s packaged runtime so their SDK imports resolve. Installation repair, dependency-tree scanning, and plugin status reporting consume that installed package structure and expose failures to operators. flowchart LR
A[Plugin package manifest] --> B[Managed npm plugin root]
B --> C[Host runtime link repair]
C --> D[Trusted dependency scan]
D --> E[Plugin loading]
E --> F[Operator diagnostics]
G[Bundled plugin artifacts] --> F
Before merge
Agent review detailsSecurityNone. PR surfaceSource +29, Tests +134. Total +163 across 11 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the single managed-plugin host-link contract after exact-head CI succeeds: runtime and peer declarations should resolve only to the trusted packaged host, while bundled plugins should be diagnosed from their packaged artifact rather than package-local install state. Do we have a high-confidence way to reproduce the issue? Yes: current Is this the best way to solve the issue? Yes: extending the existing shared host-link repair and trusted dependency-scan path is the narrowest maintainable fix, rather than adding package-manager-specific fallbacks or weakening the scanner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2576d844c436. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles) |
* fix(plugins): relink host runtime dependencies * fix(plugins): remove stale peer helper * chore(release): leave changelog ownership unchanged * fix(plugins): clarify host link recovery
What Problem This Solves
Full release validation on
mainfailed the plugin prerelease Docker lanes after@openclaw/[email protected]installed successfully but was reported as missing its declaredopenclawruntime dependency. Managed npm roots intentionally remove nested OpenClaw packages, but the repair path only recreated host links forpeerDependencies. The same dependency-health projection also falsely marked bundled plugins as broken even though their runtime dependencies are internalized into the packaged host.Failed evidence:
What Changed
openclawdeclared in eitherdependenciesorpeerDependenciesas a host-link contract in managed npm installs and repair flows.Evidence
node scripts/run-vitest.mjs src/plugins/plugin-peer-link.test.ts src/plugins/install-security-scan.runtime.test.ts src/plugins/status.dependency-health.test.ts src/plugins/status.registry-snapshot.test.ts— 4 files, 37 tests passed.pnpm test:docker:kitchen-sink-plugin— full npm latest install/conformance/adversarial/update matrix passed on Blacksmith Testbox.pnpm test:docker:kitchen-sink-rpc— external plugin RPC walk passed on the same Testbox lease.oxfmt,oxlint, andgit diff --checkpassed.