Skip to content

fix(skills): correct charly's own candy skills to the current schema and CLI - #442

Merged
github-actions[bot] merged 3 commits into
mainfrom
fix/charly-candy-skills-schema-truth
Aug 29, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
fix/charly-candy-skills-schema-truth

Conversation

@atrawog

@atrawog atrawog commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

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:

  1. 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: …}) with
    the verb's fields as step SIBLINGS. plan?: [...#Step] is a LIST, and #Op is CLOSED, so the
    loader refuses the file outright: plan must be a step LIST (got yaml kind 4). Rewritten to
    ordered list items with the verb fields inside the wl: map beside method: — exactly the
    form the sibling /charly-check:wl skill already documents, so this also removes a
    contradiction inside one candy. The two prose claims that taught the sibling-field rule are
    rewritten too.
  2. charly-build:settings — two inverted env vars and three wrong defaults. The table gave
    CHARLY_ENGINE_BUILD / CHARLY_ENGINE_RUN; the real names are CHARLY_BUILD_ENGINE /
    CHARLY_RUN_ENGINE (plugin-settings/config.go:555-558), and all three defaults are auto,
    not docker/quadlet. An agent exporting the documented names changes nothing.
  3. charly-build:generate — denies a supported invocation. It stated charly box generate
    "takes no positional image argument". It takes an optional box list; the positional is
    accepted.
  4. charly-kubernetes:kubernetes — the flagship probes: example does not validate.
    #DeployProbes types each probe as a bare closed #Op, so there is no http: sugar inside
    probes: (the plugin-verb desugar runs on plan STEPS only). Rewritten to the op form, with a
    comment saying why.
  5. charly-image:layer — a removed field and four Go names as YAML keys. The candy-level
    libvirt: 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 as ssh_arg).
    exclude_distros: → exclude_distro:.
  6. 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 with extract: field not allowed, while
    the same key on a layer validates. Replaced with an explicit callout pointing at the layer.
  7. charly-check:libvirt — a wrong CUE def and a nonexistent command. #LibvirtInput is a
    DIFFERENT type (the VM domain schema); the verb's input def is #LibvirtVerbInput. And the
    skill routed operators to charly check libvirt guest file …, which exits 80 — its own
    sibling reference already said no such host subcommand can exist.

Change class

candy/box-config — four candies' charly.yml, confined to prose, tables and examples inside
skill: entity bodies. Two commits on the branch (they squash to one on main): the seven
corrections, then a restore of the charly-check:libvirt pair that a mid-work revert had silently
destroyed — 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 .cue schema, no CLI implementation, no workflow, no
pin, 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#2 and pod-charly-core#2 (all merged). No ordering
dependency 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

  • The gate for this change class: charly box validate over the whole repo, plus standalone
    validation 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.
  • Eval beds run: N/A (documentation content inside skill entities) — the diff changes no
    runtime code path, no plan step of these candies, no image and no deploy, so no
    disposable: true bed maps to it.
  • Fresh rebuild: the validating binary was rebuilt from THIS source with task build:binary
    before 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.
  • Did the CHANGED code path execute live? Yes — each rejected shape was reproduced and
    each replacement validated; the CLI claims were executed against the binary.
  • Concurrency: N/A — documentation content; no shared state, lock, ledger or lifecycle.

1. Fresh-rebuild gate output (charly version + the gate run, at zero warnings):

$ task build:binary
task: [build:binary] mv bin/.charly.next bin/charly

$ charly box validate            # whole repo, FINAL COMMITTED tree
EXIT=0

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 init supervisord with no supervisord candy in scope, so each would
declare an init whose binary is absent and fail at start.

They are routed to opencharly/charly#443 — "batch: 10 boxes declare init supervisord with no
supervisord candy in scope" — opened as part of this work, with the full box list, the shared root
cause, and its gate (zero-warning box validate plus 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 main emits 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):

(a) wl-overlay — THE DEFECT reproduced, then the fix, as a real candy plan:

$ cat charly.yml     # the shape the skill taught
plan:
    title-card:
        run: show a title card
        wl: overlay-show
        type: text
$ charly box validate
charly: error: … node "probe-layer": plan must be a step LIST (got yaml kind 4); run: charly migrate

$ cat charly.yml     # the shape the skill now teaches
plan:
    - run: show a title card
      wl:
        method: overlay-show
        type: text
        text: Building a REST API
        bg: rgba(0,0,0,0.7)
        font_size: 64
        name: title
      context: [deploy]
$ charly box validate
                 candy "probe-layer": `plan:` must contain at least one `check:` step …
                 candy "probe-layer" step[0]: verb "plugin" cannot act (do: act) in deploy context …
      ^ the SHAPE validated: the step parsed, the verb resolved, and what remains are semantic
        rules about my one-step probe candy (no check: step; act-in-deploy), not the step form.

(b) settings — the real names and defaults, from the resolver:
$ grep -A3 'resolve("engine.build"' …/plugin-settings@…/config.go
	resolve("engine.build", "CHARLY_BUILD_ENGINE", cfg.Engine.Build, "auto"),
	resolve("engine.run",   "CHARLY_RUN_ENGINE",   cfg.Engine.Run,   "auto"),
	resolve("run_mode",     "CHARLY_RUN_MODE",     cfg.RunMode,      "auto"),

(c) generate — the positional the skill denied is accepted:
$ charly box generate zzzprobebox
charly: error: command "generate": image zzzprobebox: build: field required …
      ^ the ARGUMENT was accepted; it failed on the probe box's own config, not on the positional

(d) kubernetes probes — before and after:
$ charly box validate     # probes: {liveness: {http: {…}}}
               probes.readiness.http: field not allowed:
                   node probe-k8s:7:9
$ charly box validate     # probes: {liveness: {command: curl -fsS …}}
EXIT=0

(e) image vs layer `extract:` — the same key, both placements:
$ charly box validate     # candy WITH base: (an image)
               extract: field not allowed:
                   node probe-box:3:1
$ charly box validate     # candy WITHOUT base: (a layer)
                 candy "probe-layer": version: incomplete value …
$ charly box validate 2>&1 | grep -c extract
0                          ^ zero mentions of extract — accepted on the layer

(f) supervisord keys + exclude_distro, from the schema:
$ grep -nE "start_retry|start_sec|exit_code|event\?:" spec/schema/candy.cue
237:	event?:        string & !="" @go(Events)
239:	start_retry?:  int & >=0     @go(StartRetries,type=int)
240:	start_sec?:    int & >=0     @go(StartSecs,type=int)
242:	exit_code?:    string & !="" @go(ExitCode)
$ grep -n exclude_distro spec/schema/_common.cue
160:	exclude_distro?: [...string] @go(ExcludeDistros)

(g) libvirt — the def name and the nonexistent command:
$ grep -n "^#Libvirt[A-Za-z]*Input:" …/plugin-vm/schema/vm.cue
33:#LibvirtVerbInput: {
$ charly check libvirt info arch
charly: error: unexpected argument libvirt

3. Docs-only evidence (the R5 grep self-test result + the cross-reference/markdown review):

The diff is documentation CONTENT but lives inside candies' charly.yml, so the candy/box-config
gate applies and was run (block 1). The docs-shaped checks were also run:

$ grep -n "CHARLY_ENGINE_BUILD\|CHARLY_ENGINE_RUN\|no positional image argument\|start_retries\|exit_codes\|exclude_distros\|charly check libvirt guest" \
    candy/charly-build/charly.yml candy/charly-image/charly.yml candy/charly-check/charly.yml candy/charly-kubernetes/charly.yml
(no output)

$ grep -c "#LibvirtVerbInput" candy/charly-check/charly.yml
1                          # the corrected def name is present
$ grep -c "charly check libvirt guest file" candy/charly-check/charly.yml
0                          # the nonexistent command is gone
$ grep -n "#LibvirtInput" candy/charly-check/charly.yml
3857:            schema (`schema/vm.cue` in the standalone opencharly/plugin-vm repo; `#LibvirtInput`

The remaining `#LibvirtInput` hit is inside the sentence this PR ADDS, which exists to say that
`#LibvirtInput` is a different type from the verb's `#LibvirtVerbInput` — verifiable in the diff
of the second commit, not a pre-existing line.

Cross-reference review: no `/charly-<plugin>:<skill>` reference is renamed or removed. The
corrected wl-overlay form now AGREES with `/charly-check:wl`, and the `extract:` callout points
readers at `/charly-image:layer`, so the change removes intra-corpus contradictions.

Attribution tier

fully tested and validated — binary rebuilt from source, charly box validate passes over the
whole 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>)

  • R0 skills: /charly-internals:git-workflow loaded before the first git call and diffed
    against 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.
  • R1 RCA + zero warnings: each defect was traced to its cause before editing (the deleted
    child-node/step-list layer, the removed candy libvirt: field, the @go(...) plural/singular
    split 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 the
    transform rather than shipping it. The 10 box validate warnings were ATTRIBUTED by
    measurement on modified vs unmodified trees instead of being waved off.
  • R2 no out-of-scope: every verified defect in these four candies is fixed here, including
    the low-severity ones (exclude_distro, the def name), not just the blocking wl-overlay shape.
  • R3 no duplication: the corrections make these skills AGREE with the sibling skills that
    were already right (wl's authoring rule, the layer's extract: ownership), collapsing
    contradictions rather than adding another variant.
  • R4 no workaround: examples were re-authored into shapes that validate and were then
    validated; nothing was deleted, commented out or softened into unfalsifiable prose to make a
    failure disappear.
  • R5 hard cutover + grep: all rejected keys, names and commands are gone, sweep pasted in
    block 3; the one surviving mention of #LibvirtInput is the sentence explaining it is a
    different type.
  • R6 git safety: git status + git stash list checked before branching; branch cut from
    freshly fetched origin/main; the botched transform was reverted with git checkout -- on that
    one file and the result re-inspected before continuing; no force-push. Post-commit status clean,
    git show --stat lists exactly the four intended files.
  • R7 runtime gate: proven by RUNNING the validator and the binary against every changed claim,
    not by reading the diff.
  • R8 artifact invariants: N/A — this diff emits no artifact. The generated SKILL.md files
    are 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.
  • R9 binary == source + deps: the validating binary was rebuilt from this source in the same
    session; the freshness check refused a stale binary earlier and was obeyed, not bypassed. No
    runtime OS dep.
  • R10 disposable + coverage: no bed maps to documentation content inside skill entities, so
    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.
  • RDD / ADE / SDD: RDD — every high-risk assumption was proven on a live probe BEFORE the edit
    that depends on it; two probes changed the outcome (the extract: layer-vs-image split, and
    confirming remove -e is 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
    .cue edited, so no task cue:gen.
  • Hard cutover: ONE atomic commit; all seven corrections land together so no intermediate
    state exists where the skills disagree with each other. No phase 2, no TODO.
  • Kernel/plugin boundary law: N/A — no core or sdk code touched.
  • Disposable-only autonomy: N/A — nothing destroyed or rebuilt; no deploy target touched.
    Probes wrote only to scratch directories and failed before dispatch.
  • Clean architecture + Go gates: N/A — no Go source in the diff.
  • CHANGELOG: N/A — the org-wide tag-on-merge writes CHANGELOG/<CalVer>.md from this body
    at 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)

atrawog and others added 2 commits August 29, 2026 10:16
…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
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: bf59ec4cb1ef (branch: fix/charly-candy-skills-schema-truth)

Change class: docs-only content inside four candies' charly.yml skill bodies (charly-build, charly-check, charly-image, charly-kubernetes).

Blocks

  1. T3 / A1 — description↔code mismatch: the charly-check:libvirt correction is claimed but absent from the diff. The body's summary item 7 and the "Seven skills" count describe a libvirt fix (wrong CUE def #LibvirtInput → #LibvirtVerbInput, and removal of the nonexistent charly check libvirt guest file command). The diff changes only 6 skills across 4 files; the candy/charly-check/charly.yml hunks contain only the wl-overlay-skill rewrite — no libvirt change exists. The body's block-3 grep evidence then mislabels a pre-existing #LibvirtInput line (line 3857) as "the correction itself, not a survival," but the diff does not add that sentence. The author must either (a) include the libvirt correction in the diff, or (b) remove item 7 from the summary, correct the "Seven skills" count to six, and stop presenting a pre-existing line as the correction.

  2. R1 / R2 — surviving warnings in the gate output. The body's own charly box validate gate output carries 10 warning: lines. R1 requires ZERO warnings in the gate output; R2 forbids the "pre-existing" framing unless the issue is fixed in-tree or routed to a NAMED thematic batch. The body attributes the 10 warnings to unrelated selftest boxes as "pre-existing" (measured) but neither fixes them nor routes them to a named batch. Under the strict rulebook this is a block — the author must fix the warnings or route them to a named batch.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: bf59ec4cb1ef (branch: fix/charly-candy-skills-schema-truth)

Change class: docs-only content inside four candies' charly.yml skill bodies (charly-build, charly-check, charly-image, charly-kubernetes).

Blocks

  1. A1 / T3 — description↔code mismatch: the charly-check:libvirt correction is claimed but absent from the diff. The body's summary item 7 and the "Seven skills" count describe a libvirt fix (wrong CUE def #LibvirtInput → #LibvirtVerbInput, removal of the nonexistent charly check libvirt guest file command). The diff changes only 6 skills across 4 files; the candy/charly-check/charly.yml hunks contain only the wl-overlay-skill rewrite — no libvirt change exists. The body's block-3 grep evidence then mislabels a pre-existing #LibvirtInput line (line 3857) as "the correction itself, not a survival," but the diff does not add that sentence. The author must either (a) include the libvirt correction in the diff, or (b) remove item 7 from the summary, correct the "Seven skills" count to six, and stop presenting a pre-existing line as the correction.

  2. R1 / R2 — surviving warnings in the gate output with the forbidden "pre-existing" framing. The body's own charly box validate gate output carries 10 warning: lines. R1 requires ZERO warnings in the gate output; R2 forbids the "pre-existing" framing unless the issue is fixed in-tree or routed to a NAMED thematic batch. The body attributes the 10 warnings to unrelated selftest boxes as "pre-existing" (measured) but neither fixes them nor routes them to a named batch. Under the strict rulebook this is a block — the author must fix the warnings or route them to a named batch.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

…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
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 625b1556b1e5 (branch: fix/charly-candy-skills-schema-truth)

Security screen: PASS — docs-only content inside four candies' charly.yml skill bodies; no secrets, no exfiltration, no network calls, no guardrail changes, no scope mismatch (7 skills claimed, 7 skills in diff: generate, settings, libvirt, wl-overlay, image, layer, kubernetes).

Checklist: All applicable rules PASS or NA.

Prior comments considered:

  • github-actions[bot] BLOCK @ bf59ec4 (libvirt correction absent from diff) — stale-superseded: current head 625b155 restores the libvirt hunks (#LibvirtVerbInput, removal of charly check libvirt guest file), verified in the current diff.
  • github-actions[bot] BLOCK @ bf59ec4 (same libvirt issue + 10 warnings not routed) — stale-superseded: libvirt now present; the 10 box validate warnings are measured identical on unmodified main and routed to the NAMED batch opencharly/charly#443 with a specific task and gate, satisfying R2's routing requirement.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 29, 2026 08:48
@github-actions
github-actions Bot merged commit f7f5604 into main Aug 29, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 29, 2026
@aitrawog
aitrawog deleted the fix/charly-candy-skills-schema-truth branch September 25, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant