Repository navigation
refactor(learn): /learn stops naming Skill Workshop in core prompts and replies - #192622
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR moves Workshop-specific unavailable replies into the plugin contribution and removes Workshop tool names from core learning instructions. Example: Run /learn with no learning contributions registered.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it completes useful plugin ownership cleanup, resolves the prior findings, and introduces no identified correctness defect; current-head CI is still pending. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe core /learn dispatcher combines plugin contributions with the current turn's tool availability, then returns a reply or prepares a learning prompt for the agent. flowchart TD
A[User learn command] --> B[Core dispatcher]
C[Plugin contributions] --> B
B --> D[Tool availability]
D --> E[Unavailable reply]
D --> F[Learning prompt]
F --> G[Agent turn]
Technical reviewBest possible solution: Keep the existing dispatcher and contribution owner, with plugin-owned remedies and unavailable subcommands selecting their actual contributor. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically returns the Workshop remedy for an empty contribution list and names its tool in generic routing instructions; no target code was executed. Is this the best way to solve the issue? The patch is the smallest complete ownership change: it extends the existing contribution contract, preserves Workshop's remedy in its plugin, and keeps generic routing in core. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5bba84b9327e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +14, Tests +30, Docs +4, Other +1. Total +49 across 7 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
Reviewed November 4, 2026, 3:26 AM ET / 08:26 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…e reply Core's /learn frame no longer names the Skill Workshop tool or CLI; the plugin supplies its remedy through LearnContribution.unavailableText. Co-authored-by: obviyus <[email protected]>
…ools are available Co-authored-by: obviyus <[email protected]>
…erage Co-authored-by: obviyus <[email protected]>
052f3e5 to
ea035c9
Compare
…butor Co-authored-by: obviyus <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…nd replies (openclaw#192622) * refactor(learn): let /learn contributions supply their own unavailable reply Core's /learn frame no longer names the Skill Workshop tool or CLI; the plugin supplies its remedy through LearnContribution.unavailableText. Co-authored-by: obviyus <[email protected]> * fix(learn): honor a selected subcommand's unavailable reply when no tools are available Co-authored-by: obviyus <[email protected]> * chore(test): allocate test lines for the /learn unavailable-reply coverage Co-authored-by: obviyus <[email protected]> * fix(learn): take a subcommand's unavailable reply from its own contributor Co-authored-by: obviyus <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Core's
/learndispatcher still named the Skill Workshop plugin's tool and CLI in its routing prompt and its "unavailable" replies, after #192471 moved Workshop into a plugin.User Impact
/learnbehaves as before and keeps its Workshop-specific "not available" remedy./learn(for example, Workshop disabled), the reply no longer blames Skill Workshop. It says no learning tools are available, plus the existing remedy.skill_workshop. Workshop's own guidance line right after it still names the tool.Why This Change Was Made
LearnContributiongains optionalunavailableText. It is the reply when/learncannot learn and that contribution's medium is the only one registered, or its subcommand was asked for. This is an additive, optional SDK field, documented indocs/plugins/sdk-overview/infrastructure.md.I also checked the other suspected special case, the
openclaw-workshopskill source. It isn't a Workshop leak: core assigns it to every plugin's manifestagentSkillsDirroot, and the Control UI groups "learned" skills by that wire value. Renaming it would be a protocol change, so this PR leaves it.Evidence
src/auto-reply/reply/commands-learn.test.tspasses 14/14, including a new case for no contributors (generic reply, previously the Workshop text).src/auto-reply/reply/commands.workshop-contract.test.tspass 34/34. The only pin changed is the combined both-media reply text.tsgo:core,tsgo:extensionsandtsgo:core:testpass; oxfmt and oxlint are clean on the changed files.plugin-sdk:api:diff, since it creates its own worktrees. CI covers the SDK surface checks.