Skip to content

feat(skills): add Skill Workshop lifecycle hooks - #115606

Merged
vincentkoc merged 40 commits into
mainfrom
feat/skill-workshop-lifecycle-hooks
Jul 29, 2026
Merged

vincentkoc merged 40 commits into
mainfrom
feat/skill-workshop-lifecycle-hooks

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

Closes #115506

What Problem This Solves

Skill Workshop had no plugin-owned lifecycle surface for evaluating draft skills or observing committed proposal and live-skill changes. Third-party evaluators therefore could not participate without owning Workshop storage or writes, and external optimization controllers lacked exact-revision guards and durable replay primitives.

Why This Change Was Made

This adds plugin hooks for exact proposal evaluation, durable proposal lifecycle events, and committed live-skill changes. Evaluations carry immutable candidate/baseline bundles, attributed outcomes, revision and target-tree guards, correlation ids, bounded persistence, and Gateway/CLI/agent/Control UI access.

The lifecycle intentionally supports externally orchestrated optimization loops without embedding a scheduler, automatic revision policy, or stop condition in OpenClaw.

User Impact

Plugin developers can add evaluators, scanners, benchmarks, or graders to Skill Workshop and receive committed create/update/remove notifications. Operators and external controllers can evaluate, revise, replay, and correlate proposal steps without bypassing Workshop ownership or racing stale target state.

Evidence

  • 362 tests passed across 8 touched Vitest shards during implementation.
  • Final post-merge closeout: 58 focused service, lifecycle, Gateway, and agent-tool tests passed, plus 6 focused plugin lifecycle hook tests.
  • Candidate evaluator bundles enforce file-count, per-file, and aggregate-byte limits after proposal overlays.
  • Durable events distinguish Gateway calls from agent-tool calls without inferring caller identity from the target agent id.
  • Core TypeScript typecheck, branch-owned lint, Knip scans, docs MDX validation, generated protocol guards, max-lines ratchet, and Control UI browser/E2E coverage passed.
  • node scripts/generate-docs-map.mjs --check passed on the final head.
  • Fresh branch autoreview passed twice after the final regression fixes and current-main integration, with no accepted/actionable findings.
  • Exact-head GitHub CI passed on 1f962543958659702d1b1f40ee3ded2b9f1432f6 with 105 passing and 23 intentionally skipped checks. A failed-job-only rerun cleared transient checkout/base-fetch and untouched TUI PTY timing failures.
  • Direct AWS Crabbox was blocked by an expired coordinator session (401 unauthorized), and delegated Blacksmith Testbox was blocked by missing local authentication. Per trusted-source policy, focused local proof plus hosted GitHub CI is used rather than claiming a direct remote lease.

Non-goals

  • No embedded optimization scheduler or automatic iteration loop.
  • No evaluator-owned proposal rewrites.
  • No vendor-specific NVIDIA or Hermes policy in core.
  • No new global evaluator configuration keys.

@vincentkoc vincentkoc self-assigned this Jul 29, 2026
@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 agents Agent runtime and tooling size: XL labels Jul 29, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 29, 2026 05:50
@openclaw-barnacle openclaw-barnacle Bot added the app: android App: android label 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)
  ...
…ifecycle-hooks

* origin/main:
  fix(mattermost): key private channels as group on outbound routing (#96645)
  fix(ci): grant Telegram QA runtime scratch access (#115659)
  fix(telegram): stop retrying blocked recipients (#115640)
  fix(tts): persist generated speech in media store (#115647)
  fix(gateway): preserve complete streamed chat completions (#115652)
  fix(mac): prevent app auth from blocking node-host startup (#115533)
  fix(heartbeat): keep message-tool final replies private (#115629)
  fix(gateway): drain root work continuations before direct-stop process exit (#105848)
  fix(ollama): keep active streams within their idle timeout (#115648)
  fix(delivery): keep session keys out of inferred message targets (#115657)
  fix(ci): type code mode matrix catch callback (#115674)
  refactor(agents): centralize bundled CLI backend auth policy (#115633)
  refactor: remove 3,527 lines of runtime and test duplication (#115626)
  [AI] fix(doctor): stop repeated bundledDiscovery migration noise on beta (#115208)

# Conflicts:
#	scripts/code-mode-model-matrix.ts
…ifecycle-hooks

* origin/main:
  fix(agents): serialize sandbox provisioning (#115645)
…ifecycle-hooks

* origin/main:
  fix(ios): prevent duplicate native chat replies after tool runs (#115678)
  feat(apps): render collapsible details natively (#115641)
@vincentkoc
vincentkoc merged commit 14940ed into main Jul 29, 2026
207 of 214 checks passed
@vincentkoc
vincentkoc deleted the feat/skill-workshop-lifecycle-hooks branch July 29, 2026 07:49
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* feat(skills): add lifecycle hook contracts

* feat(plugins): expose skill hook contracts

* feat(plugins): identify skill evaluators

* feat(skills): persist proposal evaluation lifecycle

* feat(skills): add agent evaluation action

* feat(skills): emit committed skill lifecycle changes

* feat(gateway): expose skill proposal evaluation lifecycle

* feat(ui): add Skill Workshop evaluations

* fix(skills): bind lifecycle state to proposal revisions

* fix(skills): preserve lifecycle events without artifacts

* feat(cli): evaluate skill proposals

* fix(ui): bind evaluations to proposal revisions

* docs(skills): document lifecycle hook primitives

* chore(plugin-sdk): refresh skill hook surface

* fix(skills): harden proposal evaluator execution

* fix(plugins): isolate skill evaluator inputs

* fix(cli): align skill lifecycle deadlines

* fix(skills): preserve evaluation replay invariants

* test(ui): capture Skill Workshop evaluation proof

* fix(skills): bind apply to evaluated target tree

* fix(skills): preserve evaluation contract edges

* fix(skills): bound evaluation event storage

* chore(skills): keep lifecycle helpers internal

* refactor(skills): isolate evaluation persistence

* fix(skills): satisfy lifecycle validation gates

* chore(protocol): refresh Skill Workshop clients

* docs: refresh Skill Workshop map

* chore: keep release notes in PR metadata

* docs: refresh merged docs map

* fix(ci): type Code Mode catch errors

* fix(skills): freeze lifecycle observation payloads

* fix(protocol): keep proposal inspect backward-decodable

* fix(skills): enforce final evaluator bundle limits

* fix(skills): preserve lifecycle caller attribution

* chore: drop subsumed Code Mode formatting

* test(plugins): adapt lifecycle hook mocks
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: android App: android app: web-ui App: web-ui cli CLI command changes docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add skill lifecycle and evaluation hooks to Skill Workshop

1 participant