Skip to content

feat(skills): shared authoring standards make learned skills routable - #115103

Merged
steipete merged 8 commits into
mainfrom
steipete/skill-authoring-standards-p9v4
Jul 28, 2026
Merged

steipete merged 8 commits into
mainfrom
steipete/skill-authoring-standards-p9v4

Conversation

@steipete

@steipete steipete commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Autonomous skill proposals are unroutable. A deterministic correction capture produced learned-workflows, the generic description "Reusable workflow notes for repeatable tasks.", and a raw-transcript body. A fresh session did not load that skill for a matching task because the skill index routes on names and descriptions, and neither contained a usable trigger.

Why This Change Was Made

This adds one shared authoring-standards prompt module consumed by /learn, experience review, history scan, and the skill_workshop tool description. It requires trigger-first one-sentence descriptions, class-level names, compact procedural bodies with pitfalls and verification, token-efficient language, grounded flags/paths/APIs, and durable fixes rather than failure transcripts.

Deterministic correction capture now derives a class-level name and trigger-first description from the captured rule itself, without a model call or hardcoded topic buckets. It renders normalized imperative bullets instead of transcript-shaped prose while leaving grouping and revision caps unchanged.

AI-assisted: I reviewed the implementation and understand the changed behavior. A fresh autoreview found no remaining accepted or actionable findings.

User Impact

Skills learned from corrections carry enough routing signal to be discovered in later matching sessions. For the correction "From now on when I ask for date reformatting: ISO 8601 output, ISO week number in parentheses, sorted chronologically.":

  • Before: learned-workflows — "Reusable workflow notes for repeatable tasks."
  • After: date-reformatting — "Date Reformatting: Use ISO 8601 output; Include ISO week number in parentheses; Sort chronologically."

Evidence

  • Name, description, imperative body, transcript-noise removal, and explicit reflection-rule preservation are covered in src/skills/research/signals.test.ts.
  • Shared-module inclusion is asserted for all four consumers in src/skills/workshop/skill-authoring-standards.test.ts and the tool tests.
  • Focused signal proof: 173 tests passed. Autocapture integration: 31 tests passed.
  • Linux Node 24 exact requested run: node scripts/run-vitest.mjs src/skills/workshop src/auto-reply/reply (Testbox run). All changed-surface workshop and /learn tests passed. The broad existing auto-reply directory finished with 573 files / 10,935 tests passing and 14 unrelated files / 19 tests failing; isolated reruns shown in the same run passed the relevant timeout/order-sensitive cases. This branch does not modify those failing files.
  • Changed-file gate: node scripts/check-changed.mjs -- <changed files> reached all branch-owned checks green (Testbox run); the only remaining gate was untouched Plugin SDK API baseline drift, and no generated Plugin SDK manifests were changed.
  • Targeted oxfmt, oxlint, git diff --check, and both max-lines ratchets passed.

@steipete
steipete marked this pull request as ready for review July 28, 2026 09:09
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Jul 28, 2026
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. labels Jul 28, 2026
@clawsweeper

clawsweeper Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 28, 2026, 12:26 PM ET / 16:26 UTC.

ClawSweeper review

What this changes

This PR centralizes learned-skill authoring guidance across four creation paths and changes deterministic correction capture to generate more task-specific skill names, descriptions, and procedural bodies.

Merge readiness

⛔ Blocked until real behavior proof from a real setup is added - 5 items remain

Keep this PR open for human review. The shared standards module is a coherent way to prevent prompt drift, but the supplied evidence is still test and CI output only; it does not directly demonstrate a real correction capture being routed successfully in a later session. The maintainer label also requires explicit maintainer handling of the new learned-skill identity policy.

Priority: P2
Reviewed head: f45fa9218362939bde9c6d4f348521a0a5f596cc
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch has focused implementation and automated coverage, but its central user-visible routing claim lacks real-behavior proof.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The PR supplies focused tests, CI, and check results, but no redacted live output, runtime log, recording, or artifact shows a real after-fix correction capture and later skill routing. Add that evidence with private details redacted; updating the PR body should trigger another review, or a maintainer can comment @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR supplies focused tests, CI, and check results, but no redacted live output, runtime log, recording, or artifact shows a real after-fix correction capture and later skill routing. Add that evidence with private details redacted; updating the PR body should trigger another review, or a maintainer can comment @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 6 items Shared authoring contract: The branch adds one authoring-standards prompt that requires trigger-first descriptions, class-level names, grounded procedural steps, and durable fixes.
Four consumers use the shared contract: The proposed module is injected into /learn, experience review, history scan, and the Skill Workshop tool description, with direct inclusion assertions for the prompt-building paths.
Persistent proposal identity changes: The deterministic correction-capture logic and its expected generated keys/content change in the signals and autocapture tests, so grouping and routing behavior need proof against real proposal state rather than only isolated expectations.
Findings None None.
Security None None.

How this fits together

OpenClaw’s self-learning paths turn conversation corrections and reviewed histories into pending Skill Workshop proposals. Those proposals become skills whose names and descriptions are used by the skill index to route later matching tasks.

flowchart LR
  A[User corrections and histories] --> B[Durable instruction detection]
  B --> C[Proposal name and description generation]
  C --> D[Skill Workshop pending proposal]
  D --> E[Applied learned skill]
  E --> F[Skill index routing]
  F --> G[Later matching task]
Loading

Decision needed

Question Recommendation
Should automatic correction capture adopt the new class-level naming and trigger-first description policy across all learned-skill authoring paths? Adopt after live proof: Accept the unified standards and deterministic naming policy once the PR shows redacted real-workspace capture, duplicate handling, and later-session routing.

Why: This is a user-visible policy change to persistent learned-skill proposal identity and routing, not merely a mechanical prompt deduplication; the protected maintainer label requires an explicit decision after proof is available.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR supplies focused tests, CI, and check results, but no redacted live output, runtime log, recording, or artifact shows a real after-fix correction capture and later skill routing. Add that evidence with private details redacted; updating the PR body should trigger another review, or a maintainer can comment @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - Changing the generated skill key, description, and body shape can cause equivalent corrections to group or update differently from existing pending or applied learned skills; upgrade and duplicate behavior has not been shown in a real workspace.
  • Resolve merge risk (P1) - The proposed behavioral policy affects every listed learned-skill authoring path, so a test-only result does not establish that the skill index selects the new proposal in a later matching session.
  • Complete next step (P2) - This maintainer-labelled behavioral policy change needs explicit direction and contributor-supplied real routing proof; there is no discrete mechanical defect suitable for an automated repair lane.
Agent review details

Security

None.

PR surface

Source +480, Tests +1007, Docs +6. Total +1493 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 6 653 173 +480
Tests 5 1143 136 +1007
Docs 1 6 0 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 1802 309 +1493

Review metrics

Metric Value Why it matters
Shared authoring consumers 4 consumers, 1 shared standards module A single wording change now affects /learn, two review prompts, and the Skill Workshop tool, increasing the blast radius of the behavioral policy.

Stored data model

Persistent data-model change detected: serialized state: src/skills/workshop/history-scan-prompt.ts, unknown-data-model-change: src/skills/workshop/history-scan-prompt.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Prove routing and existing-proposal behavior (recommended)
    Before merge, provide redacted live evidence for capture, grouping or revision against existing proposal state, and selection of the resulting skill in a later matching session.
  2. Accept the new identity policy explicitly
    Maintainers may accept changed proposal identities and any resulting duplicate/revision behavior as an intentional learned-skill policy change after reviewing the live evidence.

Technical review

Best possible solution:

Keep one shared authoring-standard source, then add redacted real-workspace evidence that a correction creates the intended pending proposal, avoids an unwanted duplicate against existing proposal state, and is selected for a later matching task.

Do we have a high-confidence way to reproduce the issue?

Unclear for a high-confidence live reproduction. The branch and focused tests establish the intended extraction and generated-output path, but no inspectable real-workspace capture followed by later-session routing has been provided.

Is this the best way to solve the issue?

Unclear. A shared standards module is the maintainable way to align the four authoring paths, but the deterministic identity change needs real routing and existing-proposal evidence before it can be confirmed as the best policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against d5dee714c4ff.

Labels

Label justifications:

  • P2: This is a bounded learned-skill routing and proposal-quality improvement with user-visible behavior but no demonstrated urgent outage.
  • merge-risk: 🚨 compatibility: The PR changes deterministic persistent proposal names, descriptions, and bodies, which may alter grouping, revisions, and later routing for existing learned-skill state.
  • 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. Needs real behavior proof before merge: The PR supplies focused tests, CI, and check results, but no redacted live output, runtime log, recording, or artifact shows a real after-fix correction capture and later skill routing. Add that evidence with private details redacted; updating the PR body should trigger another review, or a maintainer can comment @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Shared authoring contract: The branch adds one authoring-standards prompt that requires trigger-first descriptions, class-level names, grounded procedural steps, and durable fixes. (src/skills/workshop/skill-authoring-standards.ts, f45fa9218362)
  • Four consumers use the shared contract: The proposed module is injected into /learn, experience review, history scan, and the Skill Workshop tool description, with direct inclusion assertions for the prompt-building paths. (src/skills/workshop/skill-authoring-standards.test.ts, f45fa9218362)
  • Persistent proposal identity changes: The deterministic correction-capture logic and its expected generated keys/content change in the signals and autocapture tests, so grouping and routing behavior need proof against real proposal state rather than only isolated expectations. (src/skills/research/signals.ts, f45fa9218362)
  • Automated validation supplied: The PR body reports focused signal and autocapture tests, a Node 24 Testbox run, changed-file checks, formatting, lint, and full branch CI that is still completing at review time. (f45fa9218362)
  • Real-behavior proof remains absent: The supplied body and prior ClawSweeper cycle describe tests and CI but provide no inspectable redacted live output, runtime log, recording, or artifact showing an after-fix capture followed by later-session routing. (63936d9f0897)
  • Maintainer handling is required: The GitHub context marks this PR with the protected maintainer label, so conservative cleanup must leave it open for explicit maintainer review.

Likely related people:

  • steipete: The available PR history shows authorship of the proposed skills changes and assignment on this review, but an independent current-main feature-history trace was not available in the read-only inspection environment. (role: assigned current skills-area contributor; confidence: low; commits: d24d22e735dc, feb54997386e, f45fa9218362; files: src/skills/research/signals.ts, src/skills/workshop/skill-authoring-standards.ts)

Rank-up moves

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

  • Add a redacted real-workspace transcript or runtime output showing correction capture, generated proposal identity, and later matching-session routing.
  • Show how the revised deterministic identity behaves when an equivalent pending or applied learned skill already exists.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-07-28T09:14:32.389Z sha e60e425 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-28T10:09:10.451Z sha e60e425 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-28T11:04:06.583Z sha e60e425 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-28T12:19:32.478Z sha 63936d9 :: needs real behavior proof before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot reopened this Jul 28, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Jul 28, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Jul 28, 2026
@steipete steipete self-assigned this Jul 28, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jul 28, 2026
@steipete
steipete force-pushed the steipete/skill-authoring-standards-p9v4 branch from 63936d9 to 086b2a1 Compare July 28, 2026 15:56
@steipete
steipete force-pushed the steipete/skill-authoring-standards-p9v4 branch from 086b2a1 to 288b7cb Compare July 28, 2026 16:05
@steipete

Copy link
Copy Markdown
Contributor Author

Maintainer landing disposition for exact head f45fa9218362939bde9c6d4f348521a0a5f596cc:

  • Rank-up move “add a redacted real-workspace capture and later-session routing transcript”: skipped for this landing. The deterministic capture, generated identity/body, shared authoring consumers, and existing-skill routing are covered by the focused tests, and exact-head CI run 30377407377 is green. Miscaptures remain pending human-gated proposals; the maintainer accepts the absence of an additional live-workspace transcript here.
  • Rank-up move “show equivalent pending or applied learned-skill behavior”: skipped as additional live proof. The focused signal coverage exercises grouping and routing to equivalent existing skills, while this change does not migrate or rename existing applied skills. The maintainer accepts the changed identity and duplicate/revision tradeoff for newly captured proposals.

The fresh Codex autoreview produced two genuinely new findings, both fixed before this head: literal trailing-dot command arguments are preserved, and syntactically explicit directives are no longer dropped solely because their verb is outside the finite action vocabulary. The previously rejected imperative/prose and possession/past-perfect heuristic class remains an accepted tradeoff and was not expanded further.

@steipete
steipete merged commit 970b2d2 into main Jul 28, 2026
119 checks passed
@steipete
steipete deleted the steipete/skill-authoring-standards-p9v4 branch July 28, 2026 16:48
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 28, 2026
…etwork-none

* origin/main:
  feat(skills): shared authoring standards make learned skills routable (#115103)
  fix(matrix): suppress previews for modifying hooks
  fix: prevent node gateway hangs and runaway local inference (#115248)
  refactor(ui): adopt @lit/task across remaining page surfaces (#115274)
  fix(slack): cap chat.update edit text at the 4000-char limit, not the 8000 send limit (#115027)
  [AI-assisted] docs: recommend Node 26 in quickstart, landing, and platform install docs (#115064)
  refactor(workboard): tidy Control UI card execution helpers (#115195)
  perf(agents): amortize history-limit eviction with hysteresis (#115273) (#115281)
vincentkoc added a commit that referenced this pull request Jul 28, 2026
…-20260728

* origin/main:
  fix(tui): order delayed prompts before completed replies (#115219)
  feat(macos): enable Computer Control by default and diagnose stale Accessibility grants (#115280)
  fix(qa): restore full-stack scenarios and truthful suite exits (#115290)
  feat(memory): backfill past sessions from Control UI (#115266)
  docs: link macOS onboarding pages to app download (#111361)
  feat(skills): shared authoring standards make learned skills routable (#115103)
  fix(matrix): suppress previews for modifying hooks
  fix: prevent node gateway hangs and runaway local inference (#115248)
  refactor(ui): adopt @lit/task across remaining page surfaces (#115274)
vincentkoc added a commit to christian-lallo/openclaw that referenced this pull request Jul 28, 2026
* origin/main: (62 commits)
  feat(macos): enable Computer Control by default and diagnose stale Accessibility grants (openclaw#115280)
  fix(qa): restore full-stack scenarios and truthful suite exits (openclaw#115290)
  feat(memory): backfill past sessions from Control UI (openclaw#115266)
  docs: link macOS onboarding pages to app download (openclaw#111361)
  feat(skills): shared authoring standards make learned skills routable (openclaw#115103)
  fix(matrix): suppress previews for modifying hooks
  fix: prevent node gateway hangs and runaway local inference (openclaw#115248)
  refactor(ui): adopt @lit/task across remaining page surfaces (openclaw#115274)
  fix(slack): cap chat.update edit text at the 4000-char limit, not the 8000 send limit (openclaw#115027)
  [AI-assisted] docs: recommend Node 26 in quickstart, landing, and platform install docs (openclaw#115064)
  refactor(workboard): tidy Control UI card execution helpers (openclaw#115195)
  perf(agents): amortize history-limit eviction with hysteresis (openclaw#115273) (openclaw#115281)
  fix: schema-version refusal blames a downgrade that never happened and cannot identify the stale install (openclaw#115232)
  fix: restore Fish completion after global CLI options (openclaw#115222)
  refactor(agents): collapse the client-tool catalog branch (openclaw#115212)
  fix(macos): signed rebuild no longer stalls on app shutdown (openclaw#103957)
  fix(agents): prevent repeated Code Mode output across waits (openclaw#115213)
  refactor(ui): split Profile (identity) from Usage (statistics) (openclaw#115245)
  fix(channels): report a channel that cannot receive as unhealthy instead of connected (openclaw#115229)
  fix(cli): reject malformed infer model refs (openclaw#115225)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
…openclaw#115103)

* feat(skills): share authoring standards

* fix(skills): derive routable autocapture proposals

* docs(skills): document proposal authoring standards

* refactor(skills): simplify autocapture derivation

* fix(skills): preserve explicit reflection rules

* docs(skills): state the accepted heuristic-detection tradeoff

* fix(skills): preserve explicit directive syntax

* style(skills): keep signal parser within ratchets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL 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.

1 participant