Repository navigation
fix: stop doctor asking for skill_workshop in tools.allow when the plugin is disabled - #205395
daniel-lxs merged 2 commits into
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: needs real behavior proof before merge. What this changesDoctor suppresses Skill Workshop findings whenever the shared plugin activation policy disables the plugin. Example: Workshop is disabled with plugins.entries.skill-workshop.enabled=false and tools.allow=["read"].
Review scores
ProductKind: Bug fix · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR addresses a current Doctor bug with a focused shared-policy fix; removing the intentional plugin-off warning also needs feature-owner judgment. Reviewed head: Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe bundled Doctor bridge registers the Workshop health check, which reads plugin activation and agent tool policies and returns actionable findings. flowchart TD
A[Doctor CLI] --> B[Bundled health bridge]
B --> C[Workshop health check]
D[Plugin activation policy] --> C
E[Agent tool policy] --> C
C --> F[Doctor findings]
Technical reviewBest possible solution: Use the shared activation gate, with feature-owner agreement on retiring the intentional plugin-off warning. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the ignored disable switch, and the supplied CLI output reproduces the resulting unnecessary tool-grant advice; this read-only review ran no target code. Is this the best way to solve the issue? Reusing the existing activation resolver is the smallest coherent implementation, but retiring the historically intentional plugin-off warning warrants owner agreement. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 573026b6f322. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -13, Tests +14. Total +1 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed November 27, 2026, 10:13 AM ET / 15:13 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Could you cover the allowlist-only case reported on the issue as well? With A regression test with that config should expect no Workshop findings. Operators shouldn't need to keep config for a plugin they've deliberately excluded. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
I ran a real upgrade from 2026.11.10 for the allowlist case. With Skill Workshop off, Doctor no longer warns, and with it on, it still warns about missing tool access. |
…#207215) ## Problem Doctor's "Personal Codex CLI assets found" reminder decides whether the Codex plugin is configured by re-reading `plugins.allow` by hand (openclaw#205672, case 1): - `plugins.allow: []` hides the reminder, but an empty allowlist restricts nothing and the Codex plugin loads. - `plugins.deny: ["codex"]` is ignored, so the reminder points at a plugin that cannot load. ## Change "Configured" now means Codex is named (an `entries.codex` record or an allowlist entry) and the loader's own activation policy does not exclude it (`resolveEffectiveEnableState`). This is the same pattern as openclaw#205395. `enabledByDefault: true` asks only whether operator policy excludes the plugin. ## Not in this PR The issue's other two cases are outside Doctor, so they are left for their owners: - the `/tools` browser notice that blames `plugins.allow` whatever the cause; - OpenShell's File Transfer gate, which compares unnormalized deny/allow ids. Both have reviewed patches with red-on-main tests ready as separate PRs. ## Evidence - Red on main, green here: `codex-native-assets.test.ts` "follows plugin activation with an empty allowlist" and "with a denylist". - Adversarial review (Fable): no finding across `plugins.enabled=false`, a disabled entry, deny, empty and nonempty allowlists, channel bypass, slots, aliases and origin. - `tsgo:core` clean. Co-authored-by: Ayaan Zaidi <[email protected]>
Use the shared plugin activation policy to suppress Doctor findings when Skill Workshop is disabled. Keep tool-access findings for active Workshop installations. Closes openclaw#205371.
…#207215) ## Problem Doctor's "Personal Codex CLI assets found" reminder decides whether the Codex plugin is configured by re-reading `plugins.allow` by hand (openclaw#205672, case 1): - `plugins.allow: []` hides the reminder, but an empty allowlist restricts nothing and the Codex plugin loads. - `plugins.deny: ["codex"]` is ignored, so the reminder points at a plugin that cannot load. ## Change "Configured" now means Codex is named (an `entries.codex` record or an allowlist entry) and the loader's own activation policy does not exclude it (`resolveEffectiveEnableState`). This is the same pattern as openclaw#205395. `enabledByDefault: true` asks only whether operator policy excludes the plugin. ## Not in this PR The issue's other two cases are outside Doctor, so they are left for their owners: - the `/tools` browser notice that blames `plugins.allow` whatever the cause; - OpenShell's File Transfer gate, which compares unnormalized deny/allow ids. Both have reviewed patches with red-on-main tests ready as separate PRs. ## Evidence - Red on main, green here: `codex-native-assets.test.ts` "follows plugin activation with an empty allowlist" and "with a denylist". - Adversarial review (Fable): no finding across `plugins.enabled=false`, a disabled entry, deny, empty and nonempty allowlists, channel bypass, slots, aliases and origin. - `tsgo:core` clean. Co-authored-by: Ayaan Zaidi <[email protected]>
## Problem `openclaw doctor` and `doctor --fix` decided whether sandboxing is on from `agents.defaults.sandbox` only (#201988). With sandboxing enabled only per agent (`agents.entries.<id>.sandbox.mode`), Doctor gave no Docker/Podman warning and built no missing image. The first sign of trouble was a failed sandboxed turn. The runtime resolves each agent's sandbox with `resolveSandboxConfigForAgent`. ## Change Doctor now resolves the defaults and every configured agent through `resolveSandboxConfigForAgent`, the runtime's own resolver. This is the same pattern as #205395. - An agent's own `sandbox.mode`, backend and images count. A gateway role that requires a sandbox covers every agent's resolved images. - Each container engine is probed once, and each distinct image is checked and offered for build once. - When the engine is missing, the note names the agent whose mode enabled it ("set sandbox.mode to off for agent \"work\""). An enabled mode is named before a role-only requirement. - Sandbox settings the runtime resolver rejects (for example a relative SSH workspace root) are reported as a Doctor warning instead of failing the step. ## User impact Doctor and the runtime now agree on which sandboxes exist. Users with per-agent sandboxing get the Docker/image warning and the build offer they were missing. ## Evidence - Red on main, green here: `doctor-sandbox.warns-sandbox-enabled-without-docker.test.ts` "follows an agent's own sandbox mode when the defaults leave it off (#201988)": the engine note and pending image work. - Adversarial review (Fable) found four gaps in round 1, all fixed and tested here: a role requirement hid an enabled agent; duplicate prompts per image; a throw on an invalid SSH root; role-required agents' own images. - `doctor-sandbox*.test.ts` 32/32; `tsgo:core` clean. - Not in scope, pre-existing: the Codex bwrap network-namespace hint still reads the defaults' `docker.network`. - Upgrade check from the latest stable: `[email protected]` wrote the state, and the config was given `agents.entries.work.sandbox: { mode: "all", docker: { image: "openclaw-sandbox:w11-missing" } }`. - `openclaw doctor --non-interactive` on 2026.11.10: no sandbox image finding. - This branch on the same state: `Sandbox base image missing: openclaw-sandbox:w11-missing`. - Lint fix after CI: the engine field uses the named `SandboxContainerEngine` type. Local ClawSweeper on `90fc97dc`: clean. Co-authored-by: Ayaan Zaidi <[email protected]>
…207213) ## Problem `openclaw doctor` and `doctor --fix` decided whether sandboxing is on from `agents.defaults.sandbox` only (openclaw#201988). With sandboxing enabled only per agent (`agents.entries.<id>.sandbox.mode`), Doctor gave no Docker/Podman warning and built no missing image. The first sign of trouble was a failed sandboxed turn. The runtime resolves each agent's sandbox with `resolveSandboxConfigForAgent`. ## Change Doctor now resolves the defaults and every configured agent through `resolveSandboxConfigForAgent`, the runtime's own resolver. This is the same pattern as openclaw#205395. - An agent's own `sandbox.mode`, backend and images count. A gateway role that requires a sandbox covers every agent's resolved images. - Each container engine is probed once, and each distinct image is checked and offered for build once. - When the engine is missing, the note names the agent whose mode enabled it ("set sandbox.mode to off for agent \"work\""). An enabled mode is named before a role-only requirement. - Sandbox settings the runtime resolver rejects (for example a relative SSH workspace root) are reported as a Doctor warning instead of failing the step. ## User impact Doctor and the runtime now agree on which sandboxes exist. Users with per-agent sandboxing get the Docker/image warning and the build offer they were missing. ## Evidence - Red on main, green here: `doctor-sandbox.warns-sandbox-enabled-without-docker.test.ts` "follows an agent's own sandbox mode when the defaults leave it off (openclaw#201988)": the engine note and pending image work. - Adversarial review (Fable) found four gaps in round 1, all fixed and tested here: a role requirement hid an enabled agent; duplicate prompts per image; a throw on an invalid SSH root; role-required agents' own images. - `doctor-sandbox*.test.ts` 32/32; `tsgo:core` clean. - Not in scope, pre-existing: the Codex bwrap network-namespace hint still reads the defaults' `docker.network`. - Upgrade check from the latest stable: `[email protected]` wrote the state, and the config was given `agents.entries.work.sandbox: { mode: "all", docker: { image: "openclaw-sandbox:w11-missing" } }`. - `openclaw doctor --non-interactive` on 2026.11.10: no sandbox image finding. - This branch on the same state: `Sandbox base image missing: openclaw-sandbox:w11-missing`. - Lint fix after CI: the engine field uses the named `SandboxContainerEngine` type. Local ClawSweeper on `90fc97dc`: clean. Co-authored-by: Ayaan Zaidi <[email protected]>
`openclaw doctor` and `doctor --fix` decided whether sandboxing is on from `agents.defaults.sandbox` only (#201988). With sandboxing enabled only per agent (`agents.entries.<id>.sandbox.mode`), Doctor gave no Docker/Podman warning and built no missing image. The first sign of trouble was a failed sandboxed turn. The runtime resolves each agent's sandbox with `resolveSandboxConfigForAgent`. Doctor now resolves the defaults and every configured agent through `resolveSandboxConfigForAgent`, the runtime's own resolver. This is the same pattern as #205395. - An agent's own `sandbox.mode`, backend and images count. A gateway role that requires a sandbox covers every agent's resolved images. - Each container engine is probed once, and each distinct image is checked and offered for build once. - When the engine is missing, the note names the agent whose mode enabled it ("set sandbox.mode to off for agent \"work\""). An enabled mode is named before a role-only requirement. - Sandbox settings the runtime resolver rejects (for example a relative SSH workspace root) are reported as a Doctor warning instead of failing the step. Doctor and the runtime now agree on which sandboxes exist. Users with per-agent sandboxing get the Docker/image warning and the build offer they were missing. - Red on main, green here: `doctor-sandbox.warns-sandbox-enabled-without-docker.test.ts` "follows an agent's own sandbox mode when the defaults leave it off (#201988)": the engine note and pending image work. - Adversarial review (Fable) found four gaps in round 1, all fixed and tested here: a role requirement hid an enabled agent; duplicate prompts per image; a throw on an invalid SSH root; role-required agents' own images. - `doctor-sandbox*.test.ts` 32/32; `tsgo:core` clean. - Not in scope, pre-existing: the Codex bwrap network-namespace hint still reads the defaults' `docker.network`. - Upgrade check from the latest stable: `[email protected]` wrote the state, and the config was given `agents.entries.work.sandbox: { mode: "all", docker: { image: "openclaw-sandbox:w11-missing" } }`. - `openclaw doctor --non-interactive` on 2026.11.10: no sandbox image finding. - This branch on the same state: `Sandbox base image missing: openclaw-sandbox:w11-missing`. - Lint fix after CI: the engine field uses the named `SandboxContainerEngine` type. Local ClawSweeper on `90fc97dc`: clean. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 563eef9) Release adaptation: resolve stable engine and image checks with the runtime resolver and retain existing repair consent and bwrap defaults. Stable does not have the maintenance-pending API. Companion audit: 9bbd5f5 changes a separate bwrap network diagnostic and unrelated activation owners; not required for stable image/engine discovery. Co-authored-by: RomneyDa <[email protected]>
## Problem `openclaw doctor` and `doctor --fix` decided whether sandboxing is on from `agents.defaults.sandbox` only (#201988). With sandboxing enabled only per agent (`agents.entries.<id>.sandbox.mode`), Doctor gave no Docker/Podman warning and built no missing image. The first sign of trouble was a failed sandboxed turn. The runtime resolves each agent's sandbox with `resolveSandboxConfigForAgent`. ## Change Doctor now resolves the defaults and every configured agent through `resolveSandboxConfigForAgent`, the runtime's own resolver. This is the same pattern as #205395. - An agent's own `sandbox.mode`, backend and images count. A gateway role that requires a sandbox covers every agent's resolved images. - Each container engine is probed once, and each distinct image is checked and offered for build once. - When the engine is missing, the note names the agent whose mode enabled it ("set sandbox.mode to off for agent \"work\""). An enabled mode is named before a role-only requirement. - Sandbox settings the runtime resolver rejects (for example a relative SSH workspace root) are reported as a Doctor warning instead of failing the step. ## User impact Doctor and the runtime now agree on which sandboxes exist. Users with per-agent sandboxing get the Docker/image warning and the build offer they were missing. ## Evidence - Red on main, green here: `doctor-sandbox.warns-sandbox-enabled-without-docker.test.ts` "follows an agent's own sandbox mode when the defaults leave it off (#201988)": the engine note and pending image work. - Adversarial review (Fable) found four gaps in round 1, all fixed and tested here: a role requirement hid an enabled agent; duplicate prompts per image; a throw on an invalid SSH root; role-required agents' own images. - `doctor-sandbox*.test.ts` 32/32; `tsgo:core` clean. - Not in scope, pre-existing: the Codex bwrap network-namespace hint still reads the defaults' `docker.network`. - Upgrade check from the latest stable: `[email protected]` wrote the state, and the config was given `agents.entries.work.sandbox: { mode: "all", docker: { image: "openclaw-sandbox:w11-missing" } }`. - `openclaw doctor --non-interactive` on 2026.11.10: no sandbox image finding. - This branch on the same state: `Sandbox base image missing: openclaw-sandbox:w11-missing`. - Lint fix after CI: the engine field uses the named `SandboxContainerEngine` type. Local ClawSweeper on `90fc97dc`: clean. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 563eef9) Release adaptation: Reuse the per-agent backend inventory for the release Codex network namespace probe, preserving per-agent egress behavior. Omit the main-only image-repair pending oracle and its assertion because this release has no caller for it. Co-authored-by: RomneyDa <[email protected]>
Use the shared plugin activation policy to suppress Doctor findings when Skill Workshop is disabled. Keep tool-access findings for active Workshop installations. Closes #205371. (cherry picked from commit d1a3f59) Co-authored-by: RomneyDa <[email protected]>
Closes #205371
What Problem This Solves
When
plugins.entries.skill-workshop.enabledisfalseandtools.allowis a finite list withoutskill_workshop,openclaw doctorstill lists a "Fix now" item telling the user to addskill_workshoptotools.allow. Following it would widen the tool allowlist for a plugin the user turned off on purpose.User Impact
Doctor no longer reports Skill Workshop tool-policy findings for a disabled plugin entry, and a minimal
{ enabled: false }entry stays warning-free. No config change or migration is needed. Findings for an enabled plugin are unchanged.Why This Change Was Made
The Skill Workshop doctor check only read
autonomous.mode, which defaults toauto, so an absent setting counted as "Workshop on". The check now also treats an explicitly disabled plugin entry as off, using the same gate that already suppresses the other findings whenautonomous.modeisoff.Evidence
plugins.entries["skill-workshop"].enabled: falseandtools.allow: ["read"]. On the base commit it failed with thetools.allow does not include "skill_workshop"finding; with the fix it passes.resolveEffectiveEnableState), soplugins: { allow: ["discord"] }with no Workshop entry (alsoplugins.denyandplugins.enabled: false) produces no Workshop findings. Regression tests cover these; the first three fail on the previous commit, and an allowlist that includesskill-workshopstill reports.pnpm test extensions/skill-workshop/doctor-health-api.test.ts --maxWorkers=1: 8 passed after this update (6 before).pnpm tsgo:extensionspassed;oxfmt --checkandoxlinton the two changed files are clean.openclaw doctorend to end from source; see "Shipped CLI proof" below.pnpm check:changeddid not complete in my environment (the SQLite worker ratchet and the doctor guard tests were interrupted, unrelated to this change), so I am relying on PR CI for the broader checks.Shipped CLI proof
Ran the real CLI entry point (
scripts/run-node.mjs, the source wrapper behind theopenclawbinary) on Node 26.12.0, Linux, from a throwaway home so no real state was touched. Before = base commit7d2b9c37c(onlyextensions/skill-workshop/doctor-health-api.tsreverted to base), after = this PR head3b4552d58. Host paths are shortened to~.Config (
~/.openclaw/openclaw.json, with theskillWorkshopPluginmigration marker a post-upgrade config has, so Doctor does not treat the entry as pre-restoration policy):{ "meta": { "migrations": { "skillWorkshopPlugin": true } }, "plugins": { "entries": { "skill-workshop": { "enabled": false } } }, "tools": { "allow": ["read"] } }Command (same for all three runs;
enabledis the only value that changes):Before (base,
enabled: false): the finding is present.After (PR head,
enabled: false): no Skill Workshop finding (grep -c skill_workshopon the full output is 0). TheDoctor: Skill Workshop tool policycheck still runs.After (PR head,
enabled: true, sametools.allow): the finding still appears for an enabled plugin.The remaining
gateway.mode, Node patch-level, and gateway-credential lines come from the empty throwaway profile and are unrelated to this change. I did not run a v2026.11.10 to head upgrade.