Repository navigation
fix(plugins): keep SDK alias validation on demand - #150840
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 17, 2026, 11:36 AM ET / 15:36 UTC (Revision 4). ClawSweeper reviewWhat this changesThe plugin loader checks whether a requested module needs source SDK code before scanning SDK aliases, avoiding reads of unrelated artifacts. Merge readiness⛔ Blocked before merge - 2 items remain This remains a useful, narrowly scoped repair: current main still performs the eager alias scan, and no introduced correctness defect was found. The earlier build/profile concern is resolved. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s plugin loader receives module paths from plugin discovery and runtime loading. It selects native execution or source transformation and returns module exports to the requesting subsystem. flowchart TD
A[Requested plugin module] --> B[Inspect SDK references]
B --> C{Source SDK needed?}
C -->|No| D[Native loading]
C -->|Yes| E[Check SDK aliases]
E --> F[Source transformation]
D -->|Fallback needed| F
D --> G[Module exports]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0. Total 0 across 1 file. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the existing loader and its source fallback with demand-first alias inspection, backed by completed published-driver upgrade evidence. Do we have a high-confidence way to reproduce the issue? Yes: current main’s predicate order reaches inventory validation before checking an alias-free module, matching the existing lazy-alias regressions and independent reported failures. This review did not execute tests. Is this the best way to solve the issue? Yes: reordering the existing checks repairs the demand boundary without adding another resolver, changing configuration, or removing source fallback. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ab1833ef17c5. 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
History |
4835634 to
ff58d55
Compare
|
Corrected package-acceptance proof is running at https://github.com/openclaw/openclaw/actions/runs/35228127246 against exact head ff58d55. Candidate resolution, package integrity, npm 12 install.sh, shared-image preparation, and the artifact-only selection gates are green. The targeted published-upgrade-survivor lane is still active. The earlier run https://github.com/openclaw/openclaw/actions/runs/35227831612 did not execute package acceptance: I mistyped the workflow_ref SHA, so its identity assertion correctly rejected the dispatch. It is not evidence for this PR. |
ff58d55 to
f4e2c38
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Combined exact-head package acceptance is running after the Doctor fixture and packed-SDK verifier dependencies merged: https://github.com/openclaw/openclaw/actions/runs/35239288546 Candidate/tooling/package ref: f4e2c38. Targeted lane: published-upgrade-survivor, baseline [email protected], scenario custom-plugin-siblings. |
|
The missing private-canary Doctor dependency is fixed by #150978. Exact combined proof is green: Package Acceptance 35243361810, targeted job 105283976877. Published I will rebase this PR after #150978 lands, then rerun exact-head CI/review before merge. |
Summary
Failure signature
Full Validation 35199323060 failed seven
loader.lazy-aliascases after #150622 becauserequiresSourceSdkTransformevaluated the full alias inventory before checking whether the target referenced Plugin SDK.Validation
pnpm test src/plugins/loader.lazy-alias.test.ts(34 passed)pnpm exec oxfmt --check src/plugins/plugin-module-loader-cache.tspnpm exec oxlint src/plugins/plugin-module-loader-cache.tsgit diff --checkExact-head build and profile
f4e2c38333a7d4b7f81df7a6c5ece4da054d71c9pnpm buildpassed on that head, including all 154 public Plugin SDK subpaths, 52 built plugin control-plane loads, runtime postbuild, and the production precompressed Control UI buildOPENCLAW_LOCAL_CHECK=0 node --import tsx scripts/profile-extension-memory.mts --extension discord --skip-combined --concurrency 1discordresult: success, 303.6 MiB max RSS, 258.4 MiB over the 45.2 MiB baselinePublished-driver upgrade proof
f4e2c38333a7d4b7f81df7a6c5ece4da054d71c9published-upgrade-survivor[email protected]custom-plugin-siblingsThe earlier run 35227831612 did not execute package acceptance because its workflow-ref identity assertion rejected a mistyped SHA. It is not evidence for this PR.