Repository navigation
fix: keep daily skill maintenance running when a learned skill has Markdown files outside its support folders - #204881
Conversation
…side support directories The diet read every listed Markdown file before its skip handler, so a learned skill with a file such as notes.md at its root failed the whole daily maintenance pass with an error naming neither skill nor file. Such a skill is now skipped like any other that cannot be dieted, and the log line names the skill and the file. Closes openclaw#204737
|
🦞👀 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: blocked before merge. What this changesSkip learned-skill dieting when an existing Markdown file violates support-path rules, naming the skill and file in the log. Example: The deploy skill has a settled 15.2 KB SKILL.md and root-level notes.md.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR fixes a current maintenance bug with a focused change and no actionable correctness or security findings; required CI awaits maintainer approval. Reviewed head: Before merge
FindingsNone. Agent review detailsHow this fits togetherAfter completed agent turns, the Skill Workshop plugin schedules daily maintenance, selects an oversized learned skill, and reads its files through the host authoring API before attempting a versioned rewrite. flowchart TD
A[Completed agent turn] --> B[Daily Workshop maintenance]
B --> C[Select oversized skill]
C --> D[Read skill Markdown]
D --> E[Host path validation]
E --> F[Named safe skip]
E --> G[Model review and versioned publish]
Technical reviewBest possible solution: Keep unsupported-file handling within the existing diet rejection boundary while preserving complete link checks, authoring restrictions, and skill bytes. Do we have a high-confidence way to reproduce the issue? A settled learned skill with valid frontmatter, a body exceeding 12,000 bytes, and root notes.md deterministically reaches the unsupported read on current main; contributor Gateway logs corroborate this, and no target code was executed during this review. Is this the best way to solve the issue? The patch is the smallest complete maintenance repair: it adapts the known authoring refusal to the existing skip owner without moving files, excluding Markdown from integrity checks, or relaxing restore validation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9a6e83004974. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +9, Tests +27, Docs +1. Total +37 across 3 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label 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 (1 earlier review cycle)
Reviewed November 24, 2026, 4:14 PM ET / 21:14 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…irement-rule * origin/main: (172 commits) test(gateway): expect a revoked person's Goal retry to be hidden as not found (#205698) fix: keep browser disabled when only hardening relay authentication (#203137) fix: recover Linux stream automations after command-anchor crashes (#203149) fix(whatsapp): identify voice-note captions as text in delivery receipts (#205381) fix(test): unblock restart-auth plugin and worker publication qualification (#205679) chore(ui): refresh control ui locales (#205691) fix: reduce memory during SQLite usage refresh (#201064) fix(plugins): readmit native captures with a dangling host link chore(i18n): refresh native locales (#205680) fix(update): hash SQLite lock bytes as zeros so Windows exclusion cannot fail verification (#205668) fix(skill-workshop): skip the skill diet for skills with Markdown outside support directories (#204881) fix(plugins): clarify dated SDK migration notices (#200932) fix: keep the resident launcher when reinstalling Gateway (#205655) fix: show the whole reply when you reopen a TUI session (#200455) test(ui): wait for restored speech player authorization (#199502) feat: let agents post approved GitHub comments (#204301) fix(agents): honor imageMaxDimensionPx at the provider and CLI image handoffs (#205663) chore(ui): refresh control ui locales (#205664) fix(google): preserve playback when Google Live splits audio into parts (#205364) fix: show named characters in exported session messages (#205362) ...
…side support directories (openclaw#204881) The diet read every listed Markdown file before its skip handler, so a learned skill with a file such as notes.md at its root failed the whole daily maintenance pass with an error naming neither skill nor file. Such a skill is now skipped like any other that cannot be dieted, and the log line names the skill and the file. Closes openclaw#204737
…side support directories (#204881) The diet read every listed Markdown file before its skip handler, so a learned skill with a file such as notes.md at its root failed the whole daily maintenance pass with an error naming neither skill nor file. Such a skill is now skipped like any other that cannot be dieted, and the log line names the skill and the file. Closes #204737 (cherry picked from commit 57f1733) Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]>
…side support directories (#204881) The diet read every listed Markdown file before its skip handler, so a learned skill with a file such as notes.md at its root failed the whole daily maintenance pass with an error naming neither skill nor file. Such a skill is now skipped like any other that cannot be dieted, and the log line names the skill and the file. Closes #204737 (cherry picked from commit 57f1733) Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Closes #204737
What Problem This Solves
In auto mode, the daily Skill Workshop maintenance pass shrinks one oversized learned skill (the skill diet). If that skill has a Markdown file outside
assets/,examples/,references/,scripts/ortemplates/, for example anotes.mdnext toSKILL.md, the whole pass fails withworkshop maintenance failed: Support file paths must be under one of: assets, examples, references, scripts, templates.The warning names neither the skill nor the file, and it comes back every time the rotation picks such a skill.User Impact
User impact: maintenance finishes, and the affected skill is skipped like any other skill that cannot be dieted, with an info line that names the skill and the file:
The skill and its files are left untouched, no model call is made for it, and other oversized skills still get their turn in the rotation.
Not covered here: restoring or undoing versions that contain such files, and
view/patch/remove_fileon them, still refuse those paths as before.Why This Change Was Made
The diet reads every listed Markdown support file before its skip handler starts, and the file listing includes files that the read refuses. The read now happens inside the skip boundary, and a refused path becomes a normal diet rejection that carries the file name. Moving the files into
references/was not chosen because it would need relinking, including links from other skills; silently ignoring them would weaken the diet's link checks. The path rules themselves are unchanged. The Skill diet docs name this case among skills that are left unchanged.Evidence
Live Gateway, scheduled maintenance after a real agent turn. An isolated Gateway (
pnpm openclaw gateway, own state directory, loopback, channels skipped) on Linux, with Skill Workshop in its defaultautomode. The agentmainhas one learned skilldeploy: a 15.2 KBSKILL.mdthat links a root-levelnotes.md, both two days old. One turn was sent withpnpm openclaw agent --agent main --message "Say done."; the turn completed and the plugin's maintenance ran right after it. Lines from the Gateway's log file,skill-workshopplugin:Before,
mainat6400a15695d:After, this PR at
622252eb2e1:In both runs the model endpoint received exactly one request, the agent turn itself, so no diet model request was made. After the run on this PR, the skill directory still holds only
SKILL.mdandnotes.md, with the same SHA-256 as before the run.The model in these runs is a local OpenAI-compatible stub that answers every request with fixed text (configured as a custom
openai-completionsprovider), not a hosted model. The failing path and the skip both happen before any diet model call.Tests and checks
runWorkshopSkillDiet, fornotes.mdat the skill root anddocs/guide.mdin an unsupported folder: no model call, the log line above,SKILL.mdand the file list unchanged, no change record.6400a15695d) thenotes.mdcase fails withSkillAuthoringError: Support file paths must be under one of: assets, examples, references, scripts, templates., raised from the support read indietWorkshopSkill. With the fix, all 21 tests inskill-diet.test.tspass.pnpm test:extension skill-workshop: 16 files, 132 tests passed (includeslibrary.test.tsandreview-service.test.ts).pnpm tsgo:extensions,pnpm tsgo:extensions:test,oxfmt --checkandoxlinton the touched files, and both extension import-boundary lints passed.Gaps: the live runs used a stub model, not a hosted provider. No local autoreview or ClawSweeper run.