Skip to content

refactor(skill-workshop): move Workshop settings into the plugin config - #190365

Merged
obviyus merged 9 commits into
mainfrom
feat/workshop-plugin-config
Nov 2, 2026
Merged

obviyus merged 9 commits into
mainfrom
feat/workshop-plugin-config

Conversation

@obviyus

@obviyus obviyus commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Skill Workshop is moving from core into the bundled skill-workshop plugin. Its settings still live in the core config key skills.workshop (core zod schema, labels, help and tiers), so the plugin cannot own them, and the house pattern for plugin settings (plugins.entries.<id>.config validated by the manifest configSchema) does not apply.

Fix

  • Plugin owns its settings: extensions/skill-workshop/openclaw.plugin.json gains a configSchema (autonomous.mode, autonomous.channelNotices, maxSkillBytes) and the labels and help as uiHints.
  • Core Doctor moves existing settings (moveSkillWorkshopSettings in src/config/skill-workshop-plugin-migration.ts, registered last in the core Workshop rules):
    • A core legacy rule flags skills.workshop, so the refusal names openclaw doctor --fix.
    • The move runs after the existing core Workshop rules in the same pass (older autonomous.enabled shapes, retired proposal settings, and the repair of skill-workshop policy written while Workshop was built in), moves the three settings into plugins.entries.skill-workshop.config, lets settings already in the plugin config win, drops anything else under the retired key, and records meta.migrations.skillWorkshopPlugin.
    • Why core, not a plugin Doctor contract: openclaw update candidate admission previews only core Doctor migrations (projectHeartbeatConfigForUpdateAdmission runs with pluginContracts: false). A plugin-owned move made admission refuse every config that still had skills.workshop, so users could not update. Core already owned every other skills.workshop rule, and core-owned moves into plugin config have precedent (web search, TTS).
  • Core cutover: skills.workshop leaves the root schema, types, labels, help and tiers. resolveSkillWorkshopConfig, the one reader, reads the plugin config. The Control UI mode toggle reads and writes the plugin path. The update failure report names the retired workshop key instead of hiding it.
  • Docs: Skill Workshop, self-learning, skills config and the Doctor migration table.

No database schema, protocol or stored-row change.

Update behavior

  • openclaw update runs Doctor in a fresh process, which moves the settings with the normal config backup.
  • A config that still has skills.workshop is refused at startup with the Doctor hint until Doctor runs (the same behavior as the earlier canvasHost move). A foreground gateway run offers the repair.

Evidence

Check Result
Published upgrade: the default published-upgrade-survivor Docker lane now seeds skills.workshop (mode: off, maxSkillBytes: 8000) with the [email protected] CLI and updates that real install to this candidate with openclaw update. Admission accepts the config, Doctor moves it, the Gateway starts, and assert-config finds both settings under the plugin config after the update and in the final survival check pass; before the core move, admission refused the update with skills: unrecognized key workshop
Update admission (update-command-admit.workshop.test.ts): a config with skills.workshop, alone and with the retired heartbeat key a 2026.10.9 base config carries, is admitted for candidate Doctor without rewriting files pass; both refuse without the core move
Published config cell: the [email protected] CLI writes skills.workshop.autonomous.mode: off and maxSkillBytes: 8000; this build refuses the config with the Doctor hint; openclaw doctor --fix moves both into the plugin config with the marker; the config validates; config get reads off; a second Doctor run changes nothing; the new path accepts config set and the old path is refused pass
Real Doctor flow (doctor-config-flow.skill-workshop-migration.test.ts): current settings, the retired enabled switch, retired proposal settings, and a stale pre-2026.10 plugin entry all land in plugin config; the runtime resolver reads the moved values; a second run is a no-op pass
Core rule unit tests: move, existing plugin settings win, a stale pre-2026.10 entry is replaced (the earlier repair drops it), the retired enabled switch maps then moves pass
Config contract suites: the plugin path validates through the manifest schema and refuses invalid values; the retired key is refused; the full Doctor chain lands in plugin config; labels and help come from the manifest pass
All Workshop suites, Gateway review and learning e2e, Control UI Workshop e2e, after moving ~40 call sites to the plugin path pass
pnpm check:changed pass, except the production dead-export scan, which flags assertSafeSqliteRuntime in a file this PR does not touch

The upgrade-survivor base recipe seeds Workshop settings for baselines from 2026.10.5 on (upgrade-survivor-config-recipe.test.ts). The cron-owner-doctor upgrade lane also asserts that the configured Workshop mode survives the update (either path, so frozen older candidates still pass). The dreaming-cron-doctor lane's post-Doctor runtime fixture now writes the Workshop mode where the installed candidate's manifest says it belongs (plugin config, or skills.workshop for older candidates). That lane fails on current main independently, before reaching this writer: its fixture predates the heartbeatEnabled receipt field from #181659, so the writer change is not yet exercised end to end. The published 2026.10.5 release-notes link to #workshop-skills-workshop is kept with an explicit anchor.

@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review blocked

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here.

Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update.

Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes scripts Repository scripts commands Command implementations agents Agent runtime and tooling plugin: skill-workshop size: L labels Nov 1, 2026
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 2b14abb2e48baa4d6468029aa281d753fc361122
  • Maintainer: @obviyus
  • Repository role: admin

These security sensitive changes were made:

  • src/logging/diagnostic-support-redaction.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@obviyus
obviyus marked this pull request as draft November 1, 2026 14:03
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@obviyus
obviyus marked this pull request as ready for review November 1, 2026 14:27
@obviyus

obviyus commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@obviyus

obviyus commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@obviyus

obviyus commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@obviyus

obviyus commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 2, 2026
@obviyus
obviyus force-pushed the feat/workshop-plugin-config branch from 3425ded to 2b14abb Compare November 2, 2026 03:37
@obviyus

obviyus commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 2, 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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 2, 2026
@obviyus
obviyus merged commit 710b58d into main Nov 2, 2026
140 checks passed
@obviyus
obviyus deleted the feat/workshop-plugin-config branch November 2, 2026 04:05
@obviyus

obviyus commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

Landed in 710b58d.

Skill Workshop settings now live in plugins.entries.skill-workshop.config, validated by the plugin manifest. A core Doctor rule moves existing skills.workshop settings, so openclaw update admission accepts them and the values survive.

Proof: real openclaw update from published 2026.10.9 with seeded Workshop settings (upgrade-survivor default lane) keeps mode off and maxSkillBytes 8000; Doctor flow and update-admission tests cover the move and an idempotent second run. The ClawSweeper input-scanner block on the existing synthetic URL fixture was cleared by openclaw/clawsweeper#2136.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
…ig (openclaw#190365)

## Problem

Skill Workshop is moving from core into the bundled `skill-workshop` plugin. Its settings still live in the core config key `skills.workshop` (core zod schema, labels, help and tiers), so the plugin cannot own them, and the house pattern for plugin settings (`plugins.entries.<id>.config` validated by the manifest `configSchema`) does not apply.

## Fix

- **Plugin owns its settings:** `extensions/skill-workshop/openclaw.plugin.json` gains a `configSchema` (`autonomous.mode`, `autonomous.channelNotices`, `maxSkillBytes`) and the labels and help as `uiHints`.
- **Core Doctor moves existing settings** (`moveSkillWorkshopSettings` in `src/config/skill-workshop-plugin-migration.ts`, registered last in the core Workshop rules):
  - A core legacy rule flags `skills.workshop`, so the refusal names `openclaw doctor --fix`.
  - The move runs after the existing core Workshop rules in the same pass (older `autonomous.enabled` shapes, retired proposal settings, and the repair of `skill-workshop` policy written while Workshop was built in), moves the three settings into `plugins.entries.skill-workshop.config`, lets settings already in the plugin config win, drops anything else under the retired key, and records `meta.migrations.skillWorkshopPlugin`.
  - **Why core, not a plugin Doctor contract:** `openclaw update` candidate admission previews only core Doctor migrations (`projectHeartbeatConfigForUpdateAdmission` runs with `pluginContracts: false`). A plugin-owned move made admission refuse every config that still had `skills.workshop`, so users could not update. Core already owned every other `skills.workshop` rule, and core-owned moves into plugin config have precedent (web search, TTS).
- **Core cutover:** `skills.workshop` leaves the root schema, types, labels, help and tiers. `resolveSkillWorkshopConfig`, the one reader, reads the plugin config. The Control UI mode toggle reads and writes the plugin path. The update failure report names the retired `workshop` key instead of hiding it.
- **Docs:** Skill Workshop, self-learning, skills config and the Doctor migration table.

No database schema, protocol or stored-row change.

## Update behavior

- `openclaw update` runs Doctor in a fresh process, which moves the settings with the normal config backup.
- A config that still has `skills.workshop` is refused at startup with the Doctor hint until Doctor runs (the same behavior as the earlier `canvasHost` move). A foreground `gateway run` offers the repair.

## Evidence

| Check | Result |
| --- | --- |
| Published upgrade: the default `published-upgrade-survivor` Docker lane now seeds `skills.workshop` (`mode: off`, `maxSkillBytes: 8000`) with the `[email protected]` CLI and updates that real install to this candidate with `openclaw update`. Admission accepts the config, Doctor moves it, the Gateway starts, and `assert-config` finds both settings under the plugin config after the update and in the final survival check | pass; before the core move, admission refused the update with `skills: unrecognized key workshop` |
| Update admission (`update-command-admit.workshop.test.ts`): a config with `skills.workshop`, alone and with the retired heartbeat key a 2026.10.9 base config carries, is admitted for candidate Doctor without rewriting files | pass; both refuse without the core move |
| Published config cell: the `[email protected]` CLI writes `skills.workshop.autonomous.mode: off` and `maxSkillBytes: 8000`; this build refuses the config with the Doctor hint; `openclaw doctor --fix` moves both into the plugin config with the marker; the config validates; `config get` reads `off`; a second Doctor run changes nothing; the new path accepts `config set` and the old path is refused | pass |
| Real Doctor flow (`doctor-config-flow.skill-workshop-migration.test.ts`): current settings, the retired `enabled` switch, retired proposal settings, and a stale pre-2026.10 plugin entry all land in plugin config; the runtime resolver reads the moved values; a second run is a no-op | pass |
| Core rule unit tests: move, existing plugin settings win, a stale pre-2026.10 entry is replaced (the earlier repair drops it), the retired `enabled` switch maps then moves | pass |
| Config contract suites: the plugin path validates through the manifest schema and refuses invalid values; the retired key is refused; the full Doctor chain lands in plugin config; labels and help come from the manifest | pass |
| All Workshop suites, Gateway review and learning e2e, Control UI Workshop e2e, after moving ~40 call sites to the plugin path | pass |
| `pnpm check:changed` | pass, except the production dead-export scan, which flags `assertSafeSqliteRuntime` in a file this PR does not touch |

The upgrade-survivor base recipe seeds Workshop settings for baselines from 2026.10.5 on (`upgrade-survivor-config-recipe.test.ts`). The `cron-owner-doctor` upgrade lane also asserts that the configured Workshop mode survives the update (either path, so frozen older candidates still pass). The `dreaming-cron-doctor` lane's post-Doctor runtime fixture now writes the Workshop mode where the installed candidate's manifest says it belongs (plugin config, or `skills.workshop` for older candidates). That lane fails on current main independently, before reaching this writer: its fixture predates the `heartbeatEnabled` receipt field from openclaw#181659, so the writer change is not yet exercised end to end. The published 2026.10.5 release-notes link to `#workshop-skills-workshop` is kept with an explicit anchor.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui cli CLI command changes commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: skill-workshop rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts security-sensitive-changed size: L 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.

1 participant