Repository navigation
docs: clarify disabled plugin reinstall behavior - #134875
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 5:41 AM ET / 09:41 UTC. ClawSweeper reviewWhat this changesThis PR corrects plugin reinstall documentation and comments and adds an end-to-end CLI scenario verifying disabled-state preservation and capability-consent handling. Merge readinessNo blocking findings: the change accurately documents the existing separation between reinstallation, capability consent, and activation, and its CLI scenario covers that boundary. This member-authored, maintainer-labeled PR remains open for ordinary human review. Priority: P3 Review scores
Verification
How this fits togetherPlugin installation stages an artifact, checks capability consent, then records the installation and authored enablement setting. Runtime loading follows that setting, while a separate enable command activates an intentionally disabled plugin. flowchart LR
A[Plugin artifact] --> B[Install command]
B --> C[Capability consent]
C --> D[Install record]
B --> E[Authored enabled setting]
D --> F[Plugin runtime]
E --> F
G[Enable command] --> E
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests 0, Docs +3, Other +56. Total +59 across 5 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Land the focused documentation/comment correction and boundary scenario unchanged after ordinary maintainer approval. Do we have a high-confidence way to reproduce the issue? Not applicable as a separate runtime bug: the supplied isolated CLI scenario exercises the documented behavior, and source inspection confirms the owner path. Is this the best way to solve the issue? Yes. Correcting misleading docs/comments and adding owner-boundary CLI coverage preserves the existing install policy without changing configuration or activation behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6f4fcb409be8. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
c11db75 to
c65f5d5
Compare
|
Current head: Exact d5 CI 33491964272, attempt 1 passed, including required Substantive proof was run at
The c65 local whole Doctor file remains 8 passed / 3 source-process ETIMEDOUT failures, distinct from its hosted 11/11 result. Original CI 33473927375 failed twice before main's repair. The omitted local repair's historical Linux proof is not proof of main's implementation. The broader Docker/core-tarball update and post-core subprocess scenario was not rerun; no clean-machine or official-source trust claim. The latest completed ClawSweeper review reviews exact d5 at 2026-09-01 09:41 UTC and was revalidated by native merge. It reports no actionable correctness or security findings and affirms this fix. Exact-head required CI is green; the prior reconciliation/removal moves are complete. Ordinary maintainer handling is authorized by the explicit user landing instruction and matching-head coordinator grant. The stored-data flag concerns fixture assertions; no product schema or persistence behavior changed. No additional re-review was requested. Merged as f2646be7a98347329124b55ae9752ce6f915c09c; #134867 closed automatically. The first native merge admission stopped before intent/dispatch when its observation changed; after verifying no dispatch record/capture or live owned child, only that operation’s lock was recovered. The next native admission completed normally, without a head change or bypass. |
|
Merged via squash.
|
* docs: clarify disabled plugin reinstall behavior * docs: distinguish update consent from plugin activation
Closes #134867
What Problem This Solves
Resolves a documentation mismatch where operators were told that reinstalling a plugin with
plugins installactivates it, although the supported install flow preserves an authoredplugins.entries.<id>.enabled: false.The capability-consent comment and one test name repeated that activation claim. Existing unit coverage did not exercise disabled-plugin reinstall through the real CLI.
Why This Change Was Made
Document the two independent boundaries already present in shipped behavior: install persistence preserves authored disablement; artifact consent controls whether a replacement may commit. An unchanged, integrity-bound acceptance can be reused. For third-party artifacts requiring fresh review,
--forcepermits replacement but does not approve capabilities or activate a disabled plugin.Correct the two docs pages, comment, and test name, and extend the existing CLI consent scenario with npm-packed artifacts, config persistence, SQLite install records, and runtime inspection. There is no application executable change or new production seam.
The initial landing CI failed the old source-Gateway readiness case twice. Main supplied the canonical test-owner repair in #134812, commit 113805d6a517. This branch was rebased onto
7fd30e6bb5747014b8b9eb132971828b33bd115f, retaining main's shared built-CLI fixture and omitting the redundant local CI repair commitc11db7532b1. The PR is back to its original five-file scope; it does not claim main's startup or test-owner improvements.User Impact
Operators can expect explicit disablement to survive reinstall. A widened third-party artifact without consent is rejected before replacement; accepting that artifact still leaves the plugin disabled. Use
openclaw plugins enable <plugin-id>to activate it afterward. Existing first-party consent exemptions remain as documented on main.Executable application LOC: +0/-0. Application comment: +3/-3; docs: +5/-2; tests/support: +67/-11 (net +56), including a test-name-only change. No CI tooling, activation policy, configuration/default, or storage/schema change is included.
Evidence
Current head is
d5eba6e5bfdb8f487f8cdb02d06c05cb3106b25f. Its only changes since greenc65f5d512d461d202063d81dd82bf736b99245d8are two comments clarifying install consent and update-only deferral, including the inherited JSDoc. Executable code, tests and docs are unchanged. Fresh full-candidate managed Codex autoreview was scoped-clean at P0, and focused formatting/diff checks passed. Exact d5 CI 33491964272, attempt 1 passed, including requiredopenclaw/ci-gate; the native watcher finished GREEN with exit 0. No retry was needed.Substantive proof below was run on
c65f5d512d461d202063d81dd82bf736b99245d8, treeaa4e740110395705006c13f4c961f53bb5660e2b, using Node 24.20.0, and is reused with that explicit comment-only provenance:pnpm build qaRuntimepassed in 6m 22.1s. Build provenance records the exact head, tree, and CLI file hash.node scripts/run-vitest.mjs src/plugins/capability-consent.test.ts src/plugins/install-persistence.enablement.test.ts src/plugins/update.test.ts src/plugins/update-channel.consent.test.tspassed 221 tests across four files.node scripts/e2e/lib/plugin-update/probe.mjs consent "$PWD/dist/index.js"passed 12 real CLI commands and five snapshots with a fresh synthetic home/state/config and isolated npm cache/config. Unchanged forced reinstall reused acceptance and remained disabled; widened reinstall without consent exited 1 and preserved config bytes, package payload, and the full SQLite index; accepted widening replaced payload and acceptance while remaining disabled; explicit enable activated that reviewed package.node scripts/run-vitest.mjs src/commands/doctor-config-preflight.process.test.tsran all 11 cases in the original file/order: 8 passed, 3 failed locally. Main's canonical cron migration/readiness case passed in 12.199s, with the original 30-second readiness and 45-second test budgets. The three unchanged source Doctor cases hitspawnSync ETIMEDOUT: v17 additive repair (60s), legacy approvals/config repair (45s), and invalid-config exit (60s). No retry, timeout, assertion, or environment change was made. The exact-head hosted Linux proof below supplies the remaining original-order proof; this local aggregate remains failed.node scripts/check-changed.mjs --base 7fd30e6bb5747014b8b9eb132971828b33bd115f -- docs/cli/plugins.md docs/plugins/manage-plugins.md scripts/e2e/lib/plugin-update/consent-scenario.mjs src/plugins/capability-consent.test.ts src/plugins/capability-consent.ts.The earlier CI run 33473927375 failed the old source-Gateway case in attempts 1 and 2. Historical proof of the omitted local CI repair is not presented as proof of main's different implementation. Exact-head CI run 33490027813, attempt 1 passed on
c65f5d512d461d202063d81dd82bf736b99245d8; requiredopenclaw/ci-gateisSUCCESS. Its Doctor-owning job,checks-node-compact-small-1, passed all 11 Doctor process cases in original order on Linux/Node 24.19.0, including the canonical Gateway case in 3.554s. The three locally timed-out source cases passed there as well. No CI retry was needed for this reconciled head.The behavior and inaccurate activation claim were present in stable
v2026.8.1. This is characterization and documentation repair, not a red-to-green application-runtime claim.Proof gap: the broader Docker/core-tarball update and post-core subprocess portion was not rerun for this docs/test correction. No clean-machine packaging or official-source trust proof is claimed. ClawSweeper requested retaining canonical main/removing the duplicate repair and obtaining fresh exact-head CI. The duplicate repair remains omitted. CI was green at c65 and is now green at exact d5 after the two-comment follow-up. ClawSweeper automatically reviewed c65 at 2026-09-01 09:07 UTC with no introduced correctness findings. The completed review remains under 12 hours old and covers the comment-only follow-up; its CI rank-up is satisfied by green exact d5 checks.
pnpm docs:listalso passed locally, addressing the reviewer environment's read-only Corepack-cache limitation. No redundant re-review was requested.