Skip to content

docs: clarify disabled plugin reinstall behavior - #134875

Merged
steipete merged 2 commits into
mainfrom
steipete/angry-colden-b311fb
Sep 1, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/angry-colden-b311fb

Conversation

@steipete

@steipete steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #134867

What Problem This Solves

Resolves a documentation mismatch where operators were told that reinstalling a plugin with plugins install activates it, although the supported install flow preserves an authored plugins.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, --force permits 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 commit c11db7532b1. 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 green c65f5d512d461d202063d81dd82bf736b99245d8 are 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 required openclaw/ci-gate; the native watcher finished GREEN with exit 0. No retry was needed.

Substantive proof below was run on c65f5d512d461d202063d81dd82bf736b99245d8, tree aa4e740110395705006c13f4c961f53bb5660e2b, using Node 24.20.0, and is reused with that explicit comment-only provenance:

  • pnpm build qaRuntime passed 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.ts passed 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.ts ran 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 hit spawnSync 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.
  • Five-file formatting, targeted script lint, and diff checks passed. The fresh changed gate passed all 32 planned commands: 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.
  • Fresh managed Codex autoreview was scoped-clean at its configured P0 threshold, with no accepted/actionable findings in that scope. The reconciled diff preserves the original correction; range-diff differences are surrounding main context.

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; required openclaw/ci-gate is SUCCESS. 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:list also passed locally, addressing the reviewer environment's read-only Corepack-cache limitation. No redundant re-review was requested.

@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review September 1, 2026 05:31
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 1, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 5:41 AM ET / 09:41 UTC.

ClawSweeper review

What this changes

This PR corrects plugin reinstall documentation and comments and adds an end-to-end CLI scenario verifying disabled-state preservation and capability-consent handling.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

No 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
Reviewed head: d5eba6e5bfdb8f487f8cdb02d06c05cb3106b25f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-consistent documentation correction with detailed reported CLI evidence and no identified patch defect.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The PR body reports an isolated CLI path through install, disable, forced reinstall, consent denial/acceptance, SQLite-index inspection, and explicit enablement; the external-contributor proof gate is not applicable to this member-authored PR.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The PR body reports an isolated CLI path through install, disable, forced reinstall, consent denial/acceptance, SQLite-index inspection, and explicit enablement; the external-contributor proof gate is not applicable to this member-authored PR.
Evidence reviewed 5 items Forced reinstall and consent are distinct from activation: Install preflight selects update mode for a forced install, consent is checked before commit, and persistence separately preserves an existing explicit disabled setting.
Changed documentation matches the owner behavior: The management and CLI documentation now state that forced reinstall preserves explicit disablement and that enabling remains an explicit command.
End-to-end coverage exercises the lifecycle boundary: The introduced scenario installs, disables, forced-reinstalls, verifies rejection leaves config and SQLite state unchanged, accepts a widened artifact, and then explicitly enables it.
Findings None None.
Security None None.

How this fits together

Plugin 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
Loading

Before merge

  • Complete next step (P2) - Routine maintainer review is the only remaining action; no mechanical repair or automated close is appropriate.
Agent review details

Security

None.

PR surface

Source 0, Tests 0, Docs +3, Other +56. Total +59 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 1 3 3 0
Tests 1 1 1 0
Docs 2 5 2 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 1 66 10 +56
Total 5 75 16 +59

Review metrics

Metric Value Why it matters
Production versus test delta production comments +3/-3; docs +5/-2; test support +66/-10; test name +1/-1 No executable runtime logic is added; the net-new support code exercises the CLI persistence and consent boundary.

Stored data model

Persistent data-model change detected: serialized state: scripts/e2e/lib/plugin-update/consent-scenario.mjs, unknown-data-model-change: scripts/e2e/lib/plugin-update/consent-scenario.mjs. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #134867
Summary: This PR is the open candidate correction for the documented reinstall-versus-activation mismatch.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is a focused documentation and test-coverage correction with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The PR body reports an isolated CLI path through install, disable, forced reinstall, consent denial/acceptance, SQLite-index inspection, and explicit enablement; the external-contributor proof gate is not applicable to this member-authored PR.

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)

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 (5 earlier review cycles)
  • reviewed 2026-09-01T05:55:20.077Z sha 7121e43 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T07:21:06.086Z sha c11db75 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T08:39:40.343Z sha c11db75 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T09:07:51.784Z sha c65f5d5 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T09:32:08.679Z sha d5eba6e :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: M and removed size: S labels Sep 1, 2026
@steipete steipete self-assigned this Sep 1, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Sep 1, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 1, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Sep 1, 2026
@steipete
steipete force-pushed the steipete/angry-colden-b311fb branch from c11db75 to c65f5d5 Compare September 1, 2026 09:01
@openclaw-barnacle openclaw-barnacle Bot added size: S and removed commands Command implementations size: M labels Sep 1, 2026
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Sep 1, 2026
@steipete

steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Current head: d5eba6e5bfdb8f487f8cdb02d06c05cb3106b25f (base 7fd30e6bb5747014b8b9eb132971828b33bd115f). The two comments added after green c65 clarify required reinstall consent and update-only deferral; the inherited activation JSDoc is corrected. Executable code, tests and docs are unchanged since c65. The PR remains five files: executable application 0, production comments +3/-3, docs +5/-2, tests/support +67/-11 (net +56). Main's canonical repair from #134812 is retained; duplicate CI commit c11db7532b1 remains omitted.

Exact d5 CI 33491964272, attempt 1 passed, including required openclaw/ci-gate. node scripts/watch-pr-ci.mjs 134875 d5eba6e5bfdb8f487f8cdb02d06c05cb3106b25f finished GREEN/exit 0; no retry. Fresh focused formatting/diff checks passed, and managed Codex full-candidate autoreview was scoped-clean at P0. Native review artifacts validate as READY FOR /prepare-pr; the matching-head coordinator grant was applied under the explicit user landing instruction. Native prepare and merge passed; see the canonical landing receipt.

Substantive proof was run at c65f5d512d461d202063d81dd82bf736b99245d8 and is reused explicitly for this two-comment follow-up:

  • pnpm build qaRuntime passed with source/build provenance.
  • 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.ts passed 221 tests.
  • node scripts/e2e/lib/plugin-update/probe.mjs consent "$PWD/dist/index.js" passed 12 CLI commands/five snapshots under fresh synthetic home/state/config and isolated npm configuration. Denied widening preserved config, payload and the full SQLite index; accepted reinstall stayed disabled until explicit enable.
  • 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 passed all 32 commands. Formatting, script lint, diff checks and pnpm docs:list also passed.
  • c65 CI 33490027813, attempt 1 passed. Its Doctor-owning Linux job passed 11/11 process cases in original order, Gateway 3.554s, with the original 30s/45s budgets.

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.

@steipete
steipete merged commit f2646be into main Sep 1, 2026
275 of 276 checks passed
@steipete
steipete deleted the steipete/angry-colden-b311fb branch September 1, 2026 09:42
@steipete

steipete commented Sep 1, 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
* docs: clarify disabled plugin reinstall behavior

* docs: distinguish update consent from plugin activation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S 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.

[Docs Bug]: Plugin reinstall incorrectly described as activating disabled plugins

1 participant