Repository navigation
docs(plugins): correct bundled override precedence - #132181
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Land-ready verification for head The public trust note now separates id-based load permission from duplicate-source selection. The related reference uses Current source and native main-baseline checks confirm both duplicate-ranking owners still match the documented order. Fresh Codex autoreview returned no findings at its default P0 scope, and native review artifacts validated for this exact head. Local proof passed: node scripts/run-vitest.mjs src/plugins/loader.test.ts src/plugins/manifest-registry.test.ts src/plugins/discovery.test.ts -t 'resolves duplicate plugin ids by source precedence|handles workspace-discovered plugins according to trust and precedence|keeps only the higher-precedence plugin|lets config-loaded plugins replace bundled duplicates|explicit installed globals overriding bundled plugins|prefers dev source bundled plugins|installed global is discovered before bundled|discovers global and workspace extensions|preserves configured load-path order|discovers bundled and global plugins for each workspace-specific scan'10 focused existing tests passed across three files. pnpm check:docsgit diff --checkExact-head CI run 33218294107, attempt 1 is successful, including ClawSweeper completed its exact-head review with no findings or security issues and no repair lane or rank-up changes requested. Its remaining normal maintainer-review step is satisfied by the source-backed review above. Native |
|
Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 6:58 PM ET / 22:58 UTC. ClawSweeper reviewWhat this changesThe PR corrects plugin documentation so intentional overrides use Merge readinessThe documentation correction matches the current plugin-discovery implementation and focused regression coverage; this maintainer-authored PR remains open for normal landing. Priority: P3 Review scores
Verification
How this fits togetherPlugin discovery gathers configured paths, workspace extensions, bundled plugins, and global installs. The manifest registry selects one candidate per plugin ID before activation and runtime loading. flowchart LR
A[Configured paths] --> E[Plugin discovery]
B[Workspace extensions] --> E
C[Bundled plugins] --> E
D[Global installs] --> E
E --> F[Manifest precedence]
F --> G[Activation permission]
G --> H[Gateway plugin loader]
Before merge
Agent review detailsSecurityNone. PR surfaceDocs +4. Total +4 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Land the source-backed documentation correction so operators use explicit paths rather than enablement to select an override. Do we have a high-confidence way to reproduce the issue? Not applicable: this is docs-only, and current source plus focused tests establish the described precedence behavior. Is this the best way to solve the issue? Yes: correcting the two public pages at the manifest-selection boundary is the narrowest maintainable fix for the operator-facing misinformation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 021f8b6c66ce. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where operators following the plugin internals documentation would expect an enabled or allowlisted workspace plugin to replace a bundled plugin with the same id. Current manifest selection and loading keep the bundled copy ahead of an auto-discovered workspace copy; enablement does not change that source selection.
The related manifest reference also named the wrong config field for selecting an override path and used singular
openclaw plugincommands.Why This Change Was Made
Correct the public trust note and its linked duplicate-precedence reference to match the existing canonical discovery → manifest selection → activation → loading flow. Document explicit
plugins.load.pathsselection, matching tracked global installs, ordinary bundled precedence, and the separateOPENCLAW_DEV_SOURCE_ROOTbundled priority. Clarify the intentional tracked-install duplicate-warning exception.This is documentation only. It does not change runtime policy, configuration schema, plugin trust/capability gates, or the separate developer-plugin trust design.
The stale note was added in 3cf06f793957, before 8d44b16b7cc7 reserved bundled duplicates. Source inspection of stable tag
v2026.7.1-2confirms the documented ranking is shipped behavior rather than a new policy.User Impact
Operators can distinguish permission to load a plugin id from selection of its source, and use
plugins.load.pathsfor intentional local overrides instead of relying on workspace enablement. The six-tier precedence list preserves both tracked-install overrides and development-source priority.Public references: Plugin internals and Discovery precedence.
Evidence
src/plugins/manifest-registry.tsandsrc/plugins/loader-provenance.ts.origin/mainbefore publication.node scripts/run-vitest.mjs src/plugins/loader.test.ts src/plugins/manifest-registry.test.ts src/plugins/discovery.test.ts -t 'resolves duplicate plugin ids by source precedence|handles workspace-discovered plugins according to trust and precedence|keeps only the higher-precedence plugin|lets config-loaded plugins replace bundled duplicates|explicit installed globals overriding bundled plugins|prefers dev source bundled plugins|installed global is discovered before bundled|discovers global and workspace extensions|preserves configured load-path order|discovers bundled and global plugins for each workspace-specific scan'The complete docs suite passed: formatting, Markdown and template lint, MDX, i18n glossary, internal links (0 broken), and config examples (1,208 validated).
Documentation LOC: +16/-12 across two files. Production LOC: +0/-0. Tests/test support: +0/-0. Existing tests already cover the behavior; no runtime regression test or live Gateway change is needed for this prose correction. No operator config or services were changed.
AI-assisted documentation correction; source and validation results reviewed by the maintainer session.