Skip to content

feat: make self-learning automatic by default - #115576

Merged
steipete merged 3 commits into
mainfrom
steipete/self-learning-auto-default-q4d7
Jul 29, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/self-learning-auto-default-q4d7

Conversation

@steipete

@steipete steipete commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Maintainer-decided self-learning UX still required approval for every background learning and kept autonomous capture off by default. That friction meant corrections and substantial successful work often stopped as pending proposals instead of becoming durable skills.

This deliberately changes one config surface: skills.workshop.autonomous.enabled becomes the three-position skills.workshop.autonomous.mode, and the default flips to "auto". Doctor migrates the shipped boolean so true becomes "propose", explicit false becomes "off", and an absent key inherits the new "auto" default.

Review metric: 1 changed config key, 1 doctor-owned migration, 1 deliberate default flip. The compatibility risk is intentional and maintainer-approved; runtime reads only the canonical new key.

Why This Change Was Made

off keeps the current offer-to-save nudge, propose preserves the old autonomous proposal behavior, and auto sends each background capture through the normal server-side Workshop apply path. The isolated experience reviewer remains proposal-only with its existing one-mutation budget; auto-apply happens after review completion and retains scanner quarantine, hash binding, workspace-only writes, rollback metadata, pending limits, and curator lifecycle enrollment.

Autonomous proposals carry a persisted capture marker so a reviewer can never auto-apply a manual /learn or history-scan proposal it happens to revise. The completion path also reloads current config immediately before apply, so changing mode during a review leaves the proposal pending.

Deterministic capture also preserves the originating authorization boundary: auto applies only when the runtime reported that skill_workshop was actually available. A denied or unknown tool surface still captures the proposal but leaves it pending.

The self-learning page is now the definitive guide to capture paths, mode policy, safety, runtime support, cost and privacy, review and recovery, configuration, and troubleshooting. No channel receipts or events are added here.

User Impact

New and unconfigured installations learn automatically by default. Operators can choose review-first behavior with propose or suggestion-only behavior with off:

openclaw config set skills.workshop.autonomous.mode auto
openclaw config set skills.workshop.autonomous.mode propose
openclaw config set skills.workshop.autonomous.mode off

Existing explicit boolean settings keep their intent through Doctor: prior opt-in users move to proposal review, and prior explicit opt-out users remain off.

AI-assisted: yes. Maintainer work order and frozen design supplied in the implementation session.

Evidence

  • Focused self-learning implementation: 36 tests passed, including deterministic AUTO apply, scanner-critical quarantine, failed-apply pending behavior, experience-review AUTO apply, default mapping, and Doctor migration cases.
  • Touched readers: 190 tests passed across nudge behavior, reviewer tool isolation, Doctor policy, schema/help metadata, and Workshop UI config plumbing.
  • Review-race regressions: 3 tests passed for autonomous provenance, mode downgrade during review, and manual proposal revision remaining pending.
  • Black-box CLI: Doctor mapped enabled:true to "propose"; off, propose, and auto each round-tripped through config set/get; an invalid fourth mode was rejected; final config validation passed.
  • Changed-surface Testbox: node scripts/check-changed.mjs -- <changed files> passed on final head through Blacksmith Testbox tbx_01kyp4z2kd1n4ta4gnd2c7h3c7, Actions run 30424702244. Production, core-test, and UI typechecks; full sharded lint; formatting; config metadata; i18n; dependency; boundary; dead-code; generated-surface; schema-version; and database-first guards all passed.
  • Requested aggregate node scripts/run-vitest.mjs src/skills/workshop src/commands: 12,161 passed, 9 skipped, 10 failed in unrelated pre-existing cross-suite state/timezone isolation cases. All Workshop and new Doctor migration tests passed; isolated reruns of the implicated Doctor files passed.
  • git diff --check passed.
  • No visual layout changed in Control UI; the existing self-learning control now reads and writes the canonical mode and its copy reflects automatic application.
  • Codex autoreview accepted and drove fixes for manual-proposal provenance, mode changes during review, and originating tool authorization. Final review of the authorization patch and test split reported no accepted/actionable findings. One policy objection to AUTO as the default was rejected because the maintainer decision is explicit and frozen; the residual risk is documented on the self-learning page.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime commands Command implementations agents Agent runtime and tooling size: L maintainer Maintainer-authored PR labels Jul 29, 2026
@steipete
steipete marked this pull request as ready for review July 29, 2026 05:41
@steipete
steipete merged commit 8fd49c8 into main Jul 29, 2026
257 of 261 checks passed
@steipete
steipete deleted the steipete/self-learning-auto-default-q4d7 branch July 29, 2026 06:05
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
* feat: make self-learning automatic by default

* fix: preserve capture authorization boundaries

* test: split autonomous capture coverage
vincentkoc added a commit that referenced this pull request Jul 29, 2026
…ifecycle-hooks

* origin/main: (60 commits)
  fix(qa): verify paired Ollama nodes over the gateway (#115644)
  fix(active-memory): share one recall per run across retries (#115627)
  refactor: reuse doctor migration durability helpers (#115625)
  docs: fix unsupported pnpm approve-builds -g in global install (#106180)
  feat(openai): support GA realtime over ChatGPT OAuth (#115623)
  feat(agents): add code mode model acceptance matrix (#115305)
  fix(signal): reject malformed base64 attachment data (#114883)
  fix(onboard): reject remote flags in local mode (#115636)
  refactor: table-drive retired model migrations (#115618)
  fix(ui): fall back when profile hero avatar fails (#115600)
  feat: make self-learning automatic by default (#115576)
  fix(agents): report embedded deadlines as timeouts (#115319)
  fix(cli): keep JSON stdout valid through finalization (#115315)
  fix(agents): clarify code mode contract for small models (#115275)
  fix(linux): package media codecs for deb and AppImage (#115616)
  fix(gateway): redact CLI-imported history before dedupe (#115597)
  fix(gateway): bound stalled plugin shutdown (#115619)
  refactor(gateway): deduplicate message operation routing (#115615)
  fix(nodes): cancel paired local inference when callers disconnect (#115624)
  fix(googlechat): surface failed replies without duplicate sends (#115638)
  ...
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 commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant