Repository navigation
fix(skills): correct charly's own candy skills to the current schema and CLI - #442
Conversation
…and CLI
wl-overlay taught every example as a name-keyed map with the verb's fields as step siblings; plan is a step LIST and #Op is CLOSED, so the loader rejects it outright ('plan must be a step LIST (got yaml kind 4)'). All 12 examples are rewritten to the list form with the fields inside the wl: map, matching the sibling wl skill. settings had two inverted env var names (CHARLY_ENGINE_BUILD/RUN vs the real CHARLY_BUILD_ENGINE/CHARLY_RUN_ENGINE) and three wrong defaults (auto, not docker/quadlet). generate denied its own optional positional box list. kubernetes' flagship probes example does not validate (#DeployProbes types each probe as a bare closed #Op — no http: sugar). layer documented the REMOVED candy-level libvirt field and four Go struct names as YAML keys (start_retry/start_sec/exit_code/event are singular). image listed extract as a box field, which fails closed with 'extract: field not allowed'. libvirt cited a #LibvirtInput def that is a different type and routed operators to a charly check libvirt subcommand that does not exist.
Assisted-by: Claude Code claude-opus-5[1m] (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01RsGxCtfzmm8S5wJzjSBGrY
Review — BLOCKHead SHA: Change class: docs-only content inside four candies' Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: docs-only content inside four candies' Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
…evert The libvirt fixes (wrong CUE def #LibvirtInput -> #LibvirtVerbInput, and the nonexistent 'charly check libvirt guest file' host command) were applied to candy/charly-check/charly.yml, then destroyed when I reverted that same file to redo a botched wl-overlay re-indent — and never re-applied. The PR body described them, so the diff and the description disagreed until now; the pr-validator caught it. Assisted-by: Claude Code claude-opus-5[1m] (fully tested and validated) Claude-Session: https://claude.ai/code/session_01RsGxCtfzmm8S5wJzjSBGrY
Review — PASSHead SHA: Security screen: PASS — docs-only content inside four candies' Checklist: All applicable rules PASS or NA. Prior comments considered:
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary of changes
Seven skills that charly's own candies own document shapes, keys, defaults or commands the
schema and binary reject. One of them makes every example in the skill unloadable.
Concrete edits, all inside
skill:entity bodies:charly-check:wl-overlay— every example is in a rejected shape (the blocking defect).All 12 examples were name-keyed maps (
title-card: {run: …, wl: overlay-show, type: …}) withthe verb's fields as step SIBLINGS.
plan?: [...#Step]is a LIST, and#Opis CLOSED, so theloader refuses the file outright:
plan must be a step LIST (got yaml kind 4). Rewritten toordered list items with the verb fields inside the
wl:map besidemethod:— exactly theform the sibling
/charly-check:wlskill already documents, so this also removes acontradiction inside one candy. The two prose claims that taught the sibling-field rule are
rewritten too.
charly-build:settings— two inverted env vars and three wrong defaults. The table gaveCHARLY_ENGINE_BUILD/CHARLY_ENGINE_RUN; the real names areCHARLY_BUILD_ENGINE/CHARLY_RUN_ENGINE(plugin-settings/config.go:555-558), and all three defaults areauto,not
docker/quadlet. An agent exporting the documented names changes nothing.charly-build:generate— denies a supported invocation. It statedcharly box generate"takes no positional image argument". It takes an optional box list; the positional is
accepted.
charly-kubernetes:kubernetes— the flagshipprobes:example does not validate.#DeployProbestypes each probe as a bare closed#Op, so there is nohttp:sugar insideprobes:(the plugin-verb desugar runs on plan STEPS only). Rewritten to the op form, with acomment saying why.
charly-image:layer— a removed field and four Go names as YAML keys. The candy-levellibvirt:raw-XML-snippet row is deleted (the field was removed —spec/schema/candy.cue),and the supervisord lifecycle fields are corrected to the SINGULAR YAML keys
start_retry/start_sec/exit_code/event(the Go names are plural — the same trap asssh_arg).exclude_distros:→exclude_distro:.charly-image:image—extract:is not a box field. It sat in the image field table;authoring it on a node carrying
base:fails closed withextract: field not allowed, whilethe same key on a layer validates. Replaced with an explicit callout pointing at the layer.
charly-check:libvirt— a wrong CUE def and a nonexistent command.#LibvirtInputis aDIFFERENT type (the VM domain schema); the verb's input def is
#LibvirtVerbInput. And theskill routed operators to
charly check libvirt guest file …, which exits 80 — its ownsibling reference already said no such host subcommand can exist.
Change class
candy/box-config — four candies'
charly.yml, confined to prose, tables and examples insideskill:entity bodies. Two commits on the branch (they squash to one onmain): the sevencorrections, then a restore of the
charly-check:libvirtpair that a mid-work revert had silentlydestroyed — the pr-validator caught that the body described a change the diff did not contain, and
it was fixed by INCLUDING the change rather than by editing the claim. No Go source, no
.cueschema, no CLI implementation, no workflow, nopin, no plan step of the candies themselves. Single repo.
Closes / relates to: none open. Found by auditing every skill this project loads against the
live schema and binary; the sibling corrections for skills owned by OTHER repos landed as
vm-charly-vm#2,layer-charly-local#2andpod-charly-core#2(all merged). No orderingdependency and no shared file with any of them.
Breaking change + rollback: none — no entity, field, verb or skill name changes; the diff is
documentation content. Rollback is a plain revert of the single commit.
How R10-tested — exact gate, commands, and pasted output
charly box validateover the whole repo, plus standalonevalidation of the corrected shapes and live execution of the CLI claims. For a
reference skill the executable question is "does what this tells me to write/type work?", so
probing the schema and binary IS the gate.
N/A (documentation content inside skill entities)— the diff changes noruntime code path, no plan step of these candies, no image and no deploy, so no
disposable: truebed maps to it.task build:binarybefore the gates ran. The host's installed charly is older than the current corpus schema and
would have mis-reported the very surface under test.
each replacement validated; the CLI claims were executed against the binary.
N/A— documentation content; no shared state, lock, ledger or lifecycle.1. Fresh-rebuild gate output (
charly version+ the gate run, at zero warnings):On warnings — routed to a NAMED batch, not waved off. This tree emits 10
warning:lines:ten boxes (
agentteams,agentteams-manager,agentteams-worker,check-boxload-app,check-pod,composition-app,composition-source,selftest-image,selftest-layer,tutorial-shell) resolve initsupervisordwith nosupervisordcandy in scope, so each woulddeclare an init whose binary is absent and fail at start.
They are routed to
opencharly/charly#443— "batch: 10 boxes declare init supervisord with nosupervisord candy in scope" — opened as part of this work, with the full box list, the shared root
cause, and its gate (zero-warning
box validateplus a build per affected family).They are not carried HERE because they are a box-COMPOSITION change — it alters what gets baked
into images, so its gate is a build, not a docs check — and folding it into a
skill-documentation cutover would put two cutovers in one PR. That this diff does not cause them
was measured, not asserted: unmodified
mainemits 10, this branch emits 10, identical text.$ git stash && charly box validate 2>&1 | grep -c '^warning:'
10
$ git stash pop && charly box validate 2>&1 | grep -c '^warning:'
10
2. Each changed code path executing (the lines proving the changed branch ran, not that it built):
3. Docs-only evidence (the R5 grep self-test result + the cross-reference/markdown review):
Attribution tier
fully tested and validated — binary rebuilt from source,
charly box validatepasses over thewhole repo on the final committed tree at an unchanged (pre-existing, measured) warning count,
and every claim the diff changes was executed: each rejected shape reproduced, each replacement
validated, and each CLI claim run against the binary.
Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)/charly-internals:git-workflowloaded before the first git call and diffedagainst the current corpus commit before being followed. The skills under edit were
deliberately NOT the source of truth — their accuracy is the question —
spec/schema/*.cue,the plugin sources and the binary were.
child-node/step-list layer, the removed candy
libvirt:field, the@go(...)plural/singularsplit that produced four wrong keys), not pattern-matched from a report. My own first attempt
at the wl-overlay transform produced WRONG indentation (fields double-indented,
context:swallowed into the
wl:map); I caught it in the diff, reverted the file and redid thetransform rather than shipping it. The 10
box validatewarnings were ATTRIBUTED bymeasurement on modified vs unmodified trees instead of being waved off.
the low-severity ones (
exclude_distro, the def name), not just the blocking wl-overlay shape.were already right (
wl's authoring rule, the layer'sextract:ownership), collapsingcontradictions rather than adding another variant.
validated; nothing was deleted, commented out or softened into unfalsifiable prose to make a
failure disappear.
block 3; the one surviving mention of
#LibvirtInputis the sentence explaining it is adifferent type.
git status+git stash listchecked before branching; branch cut fromfreshly fetched
origin/main; the botched transform was reverted withgit checkout --on thatone file and the result re-inspected before continuing; no force-push. Post-commit status clean,
git show --statlists exactly the four intended files.not by reading the diff.
N/A — this diff emits no artifact.The generated SKILL.md filesare produced from these bodies by the marketplace pipeline; this PR changes the documented
source, which is where the DO-NOT-EDIT header says to change them.
session; the freshness check refused a stale binary earlier and was obeyed, not bypassed. No
runtime OS dep.
this branches to the applicable gate, run on the FINAL COMMITTED tree. The coverage that would
FAIL without this change is block 2 — every before/after pair is a reproducible command.
that depends on it; two probes changed the outcome (the
extract:layer-vs-image split, andconfirming
remove -eis real in the sibling PR), which is the point of probing first. ADE —the candies'
description:/plan:are untouched and still deterministic. SDD —N/A, no.cueedited, so notask cue:gen.state exists where the skills disagree with each other. No phase 2, no TODO.
N/A — no core or sdk code touched.N/A — nothing destroyed or rebuilt; no deploy target touched.Probes wrote only to scratch directories and failed before dispatch.
N/A — no Go source in the diff.N/A— the org-widetag-on-mergewritesCHANGELOG/<CalVer>.mdfrom this bodyat merge and mints the tag; an author-staged CalVer file is the deprecated flow and would leave
an orphan entry with no matching tag.
Assisted-by: Claude Code claude-opus-5[1m] (fully tested and validated)