Skip to content

fix: stop doctor asking for skill_workshop in tools.allow when the plugin is disabled - #205395

Merged
daniel-lxs merged 2 commits into
openclaw:mainfrom
JayPokale:fix/skill-workshop-doctor-disabled-entry
Nov 27, 2026
Merged

daniel-lxs merged 2 commits into
openclaw:mainfrom
JayPokale:fix/skill-workshop-doctor-disabled-entry

Conversation

@JayPokale

@JayPokale JayPokale commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Closes #205371

What Problem This Solves

When plugins.entries.skill-workshop.enabled is false and tools.allow is a finite list without skill_workshop, openclaw doctor still lists a "Fix now" item telling the user to add skill_workshop to tools.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 to auto, 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 when autonomous.mode is off.

Evidence

  • Added a regression test with plugins.entries["skill-workshop"].enabled: false and tools.allow: ["read"]. On the base commit it failed with the tools.allow does not include "skill_workshop" finding; with the fix it passes.
  • Allowlist case from the issue thread: Workshop is now judged by the shared plugin activation helper (resolveEffectiveEnableState), so plugins: { allow: ["discord"] } with no Workshop entry (also plugins.deny and plugins.enabled: false) produces no Workshop findings. Regression tests cover these; the first three fail on the previous commit, and an allowlist that includes skill-workshop still reports.
  • pnpm test extensions/skill-workshop/doctor-health-api.test.ts --maxWorkers=1: 8 passed after this update (6 before).
  • pnpm tsgo:extensions passed; oxfmt --check and oxlint on the two changed files are clean.
  • I ran openclaw doctor end to end from source; see "Shipped CLI proof" below. pnpm check:changed did 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 the openclaw binary) on Node 26.12.0, Linux, from a throwaway home so no real state was touched. Before = base commit 7d2b9c37c (only extensions/skill-workshop/doctor-health-api.ts reverted to base), after = this PR head 3b4552d58. Host paths are shortened to ~.

Config (~/.openclaw/openclaw.json, with the skillWorkshopPlugin migration 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; enabled is the only value that changes):

export HOME=~/oc-home OPENCLAW_STATE_DIR=~/oc-home/.openclaw \
  OPENCLAW_CONFIG_PATH=~/oc-home/.openclaw/openclaw.json CI=1
node scripts/run-node.mjs doctor --non-interactive

Before (base, enabled: false): the finding is present.

Fix now:
- gateway.mode is unset; gateway start will be blocked.
  ...
- tools.allow does not include "skill_workshop".
  Location: tools.allow
  Next step: Add "skill_workshop" to tools.allow.
  Docs: https://docs.openclaw.ai/tools/skill-workshop
- Gateway health check failed: ...

After (PR head, enabled: false): no Skill Workshop finding (grep -c skill_workshop on the full output is 0). The Doctor: Skill Workshop tool policy check still runs.

Doctor: Skill Workshop tool policy
...
Fix now:
- gateway.mode is unset; gateway start will be blocked.
  ...
- Gateway health check failed: ...
Doctor: maintenance release

└  Doctor complete.

After (PR head, enabled: true, same tools.allow): the finding still appears for an enabled plugin.

Fix now:
- gateway.mode is unset; gateway start will be blocked.
  ...
- tools.allow does not include "skill_workshop".
  Location: tools.allow
  Next step: Add "skill_workshop" to tools.allow.
  Docs: https://docs.openclaw.ai/tools/skill-workshop
- Gateway health check failed: ...

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.

@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 25, 2026
@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Doctor 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"].

  • Before: Doctor recommends adding skill_workshop to tools.allow.
  • After: Doctor produces no Workshop tool-policy finding.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Focused implementation with distinct regression cases and useful partial CLI proof, pending broader behavior approval and remaining Doctor validation.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Doctor tells operators to grant tool access or enable a plugin they deliberately disabled.
Reason: The reported defect merits repair, but the latest patch also removes an expressly designed warning from the earlier plugin rollout.

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: aa5663dcc78c8419cf1b615616edce8907560bf0
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should Doctor suppress all Workshop findings when plugin policy disables Workshop, including the intentional warning about learned skills no longer loading?
  • Recommendation: Approve suppression for inactive Workshop: Treat plugin disablement as an operator opt-out and accept removal of the earlier plugin-off recommendation.
  • Why: The earlier feature PR expressly added that warning, while this PR removes it for global disablement and allowlist exclusion; no recorded owner approval resolves that broader behavior change.

Before merge

  • Add real behavior proof - The supplied Node 26/Linux CLI trace proves explicit-disable suppression and an enabled control on the earlier head; the new allowlist behavior has only regression-test evidence, and the required stable upgrade was not run. Preserve the existing evidence and redact IPs, API keys, phone numbers, and non-public endpoints from additional output. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.

Findings

None.

Tests

  • Missing end-to-end proof: The contributor should provide redacted real-CLI output for the allowlist-only case and a v2026.11.10-to-candidate upgrade preserving disabled policy, settings, and learned-skill data.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source -13, Tests +14. Total +1 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 14 27 -13
Tests 1 24 10 +14
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 38 37 +1

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Supply the missing allowlist CLI and stable-upgrade evidence.
  • Obtain the feature owner's decision on removing the intentional plugin-off warning.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-11-25T15:00:35.645Z sha 3b4552d :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-25T21:27:49.891Z sha 3b4552d :: needs real behavior proof before merge. :: none

Reviewed November 27, 2026, 10:13 AM ET / 15:13 UTC (Revision 3).

@JayPokale

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@beru-ant-king

Copy link
Copy Markdown
Contributor

Could you cover the allowlist-only case reported on the issue as well? With plugins: { allow: ["discord"] } and no Workshop entry, the plugin is disabled, but the new enabled !== false check passes and the absent autonomous mode defaults to auto. Doctor still recommends adding Workshop to the allowlist.

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 clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Nov 26, 2026
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 27, 2026
@daniel-lxs

Copy link
Copy Markdown
Member

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.
Learned skills and settings are unchanged.

@daniel-lxs
daniel-lxs merged commit d1a3f59 into openclaw:main Nov 27, 2026
112 of 116 checks passed
codemddevtest pushed a commit to codemddevtest/openclaw that referenced this pull request Nov 28, 2026
…#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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 28, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 28, 2026
…#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]>
obviyus added a commit that referenced this pull request Nov 28, 2026
## 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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…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]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
`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]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
## 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]>
tideclaw-bot pushed a commit that referenced this pull request Dec 1, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. plugin: skill-workshop rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: doctor asks for skill_workshop in tools.allow while the skill-workshop plugin is disabled

3 participants