Skip to content

feat(skills)!: the six schema-authoring skills live beside the CUE defs they document - #272

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/schema-authoring-skills
Oct 23, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/schema-authoring-skills

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Five carriers — layer-charly-image, layer-charly-pod, vm-charly-vm,
layer-charly-internals-extra, layer-charly-local — are skills-only (0 .go, 0 .cue, no
candy directory). Each of these six skills names a def in this module: its own source of
truth is a CUE def under schema/ whose Go types are generated into spec/cue_types_gen.go.
That is the same reading opencharly#611 used to send disposable and install-plan here.

The gate, per skill (opencharly#606): the entity comes from the skill's own prose,
never from its name; then where that entity exists; then the negative control.

skill the entity its own prose names where it exists (measured)
image the image/box authoring shape — a candy: node carrying base:/from: routes to uf.Box, else a layer fragment this repo: schema/box.cue (umbrella path spec/schema/box.cue) → spec/cue_types_gen.go
layer candy + plan-step authoring; its own words: "the @go()-annotated spec/schema/*.cue defs … are the sole source" this repo: schema/candy.cue + schema/plan (spec/schema/*.cue) → spec/spec/
pod "a thin schema pointer" — the kind: pod / deploy node shape (PodSpec, Deploy) this repo: schema/pod.cue → PodSpec/Deploy in spec/cue_types_gen.go (spec/spec/cue_types_gen.go)
vms-catalog the kind: vm authoring surface, resolved by LoadUnified into VmSpec this repo: schema/vm.cue → VmSpec
vm-spec the VmSpec/VmSource Go type reference (its ## Source files table) this repo: schema/vm.cue + spec/cue_types_gen.go (spec/spec/cue_types_gen.go)
local-spec the kind: local template shape and its merge semantics this repo: schema/local.cue

What is in this diff (8 files changed, 2815 insertions(+), 1 deletion(-))

  • 6 skill bodies, byte-identical to the carrier's (full sha256sum output below).
  • 6 routing-only skill: node(s) in charly.yml —
    name/family/owner, and no inline description:/content:: the
    prose is the file. An inline body that disagrees with its file is a hard error in the
    marketplace generator.
  • family: is kept unchanged (image, image, pod, vm, internals, local), so every existing
    /charly-<family>:<name> address and every external reference to it still resolves;
    owner: becomes spec-skill-shelf — the candy whose repo root the bodies
    are resolved against (<repo root>/.agents/skills/<name>/SKILL.md). The quoted
    negative-control output below names that same owner, which is the check that this
    sentence and the manifest agree.
  • AGENTS.md: the six skills join the R0 list and .agents/skills/ joins the
    canonical files. charly.yml: the shelf candy's description: gains the authoring defs
    (schema/box.cue, schema/candy.cue, schema/pod.cue, schema/vm.cue, schema/local.cue).

A note on path spelling, because the moved bodies use the UMBRELLA convention. A skill
body written before this move spells this module's files from the umbrella root —
spec/schema/vm.cue, spec/spec/cue_types_gen.go — which is the same file this repo calls
schema/vm.cue and spec/cue_types_gen.go from its own root (the umbrella submodule path IS
spec/). Both spellings name the same bytes; the table above prints both so neither reading is
left implicit, and nothing in the bodies needed rewriting for the move.

Two things this body deliberately does NOT claim, because they are worth stating.

  • A duplicate exists for now, and the generator tolerates it. The carrier still
    declares the same (kind, family, name); plugin-marketplace's preferEntity
    (resolve.go) dedupes on exactly that triple, so one page is published — currently the
    carrier's, until its node is removed. This PR does not prove the dedupe path; the
    carrier-removal PR (Policy: a skill lives with the code it describes — retire the skills-only repo class (22 repos / 94 skills measured) opencharly#600) and the marketplace refs switchover do.
  • The node KEY is not the identity. A skill: node's id is its name: when it
    states one (spec#247), which is why <name>-skill: keys and the name: field can
    differ without consequence.

Producer-first. No carrier loses a node here: those removals and retirements belong
to the session that claimed the carriers (opencharly/opencharly#600).

How tested

Change class: documentation + candy-config (skill prose and skill: routing nodes;
no Go, no schema, no runtime path). The gate that owns it is charly box validate, which
reads the skill files through the same CollectSkills path the ai.opencharly.skill
OCI label and the marketplace corpus use, so a body that is not found is a red gate.

# head ef57cb519e34628619d14a2259150b470e453939  (git rev-parse HEAD)
$ git rev-parse HEAD && git rev-parse HEAD^{tree}
ef57cb519e34628619d14a2259150b470e453939
3ce5835e28ee10c698d0207e1afa3e38de0ea86a

$ sha256sum <carrier copy>; sha256sum <this tree>   # full 64-hex digests, as printed
c5990ee6ff2e27060983a667ac364aabc13c52e2685b5f2653291f328db5f9eb  layer-charly-image/.agents/skills/image/SKILL.md
c5990ee6ff2e27060983a667ac364aabc13c52e2685b5f2653291f328db5f9eb  .agents/skills/image/SKILL.md
8a1af2055e952a1b86d502011f16aa550c7364c1bac1ad5554e699afbfee976d  layer-charly-image/.agents/skills/layer/SKILL.md
8a1af2055e952a1b86d502011f16aa550c7364c1bac1ad5554e699afbfee976d  .agents/skills/layer/SKILL.md
a33e09da5cec3ecf1db0ddbbe05129bdc490987a0ab6fa320f03c35c56dcfaf2  layer-charly-pod/.agents/skills/pod/SKILL.md
a33e09da5cec3ecf1db0ddbbe05129bdc490987a0ab6fa320f03c35c56dcfaf2  .agents/skills/pod/SKILL.md
9e8203f017922fb3c4cb1c77d136ef27cbb7f4babed56ba276d98db81eef9fcd  vm-charly-vm/.agents/skills/vms-catalog/SKILL.md
9e8203f017922fb3c4cb1c77d136ef27cbb7f4babed56ba276d98db81eef9fcd  .agents/skills/vms-catalog/SKILL.md
470f8759da29464a1724172f2e59132f0a582252855860064236b2810582da59  layer-charly-internals-extra/.agents/skills/vm-spec/SKILL.md
470f8759da29464a1724172f2e59132f0a582252855860064236b2810582da59  .agents/skills/vm-spec/SKILL.md
5b3274b85e3de2686084c57dc72d4bd6e98cbf051ebf6b7384e9847af56c7942  layer-charly-local/.agents/skills/local-spec/SKILL.md
5b3274b85e3de2686084c57dc72d4bd6e98cbf051ebf6b7384e9847af56c7942  .agents/skills/local-spec/SKILL.md

$ diff -r <carrier>/.agents/skills/<name> .agents/skills/<name>   # per skill
(no output — exit 0: the bytes are equal)

$ charly box validate
charly box validate: OK — checked 1 candy, 7 distros, 7 builders; 0 warnings, 0 errors
rc=0

The gate CAN fail — negative control, run on this exact tree, with one moved body
removed:

$ rm .agents/skills/image/SKILL.md && charly box validate
charly: error: command "validate": validation error: skills: skill "image": no body — the node carries no in-line `content:` and no SKILL.md exists under .agents/skills at the repo root of the owning candy "spec-skill-shelf"
rc=1

No R10 disposable bed: the diff changes no runtime path (no Go, no schema, no service,
no build step), so a bed would prove something this diff cannot break. The binary is the
worktree-local build: charly version = 2026.295.1709, equal to charly/charly's HEAD
stamp (R9).

Rulebook compliance

  • R0 — /charly-internals:skills, :git-workflow, :cutover-policy loaded before
    the first action; opencharly#611/#606/#600 read in full first.
  • R1 — charly box validate green with zero warnings, and the negative control proves
    that green is not vacuous.
  • R2 — routing only in the node; the body stays the single file.
  • R3 — no workaround: no inline body, no hand-written corpus entry.
  • R4/R5 — the shelf candy's description: and AGENTS.md are corrected in this change, and the six
    bodies keep their cross-references (families unchanged); only CHANGELOG/ history could still
    name a retired gap.
  • R6 — branch off origin/main, one commit, one push, no force-push, no bypass.
  • R7 — the proof is a gate that fails without the change.
  • R9 — worktree-local binary, version equal to the source stamp; no Go changed.
  • R10 — the change class's gate ran on the committed tree.
  • A3 — the attribution tier this footer claims is justified by the gate above. This
    session's delivered system message reads, verbatim,
    You are a coding agent powered by the deepseek-v4.1-flash model. — harness
    DeepSeek Harness, model deepseek-v4.1-flash. It is quoted because the operator's
    dispatch requires the tier's proof to name the runtime as delivered, and it is cited
    with The pr-validator's model allowlist rejects a real runtime: deepseek-v4.1-flash via ollama-cloud opencharly#538, the open record of this runtime being rejected by
    the validator's model allowlist although it is real and running.

Change classification

feat(skills)! — documentation + candy-config, documentation reviewed. No runtime
behaviour, no schema, no Go, no pins.

Filed issues

None — the destination was measured, and every claim this change falsifies is fixed here rather than filed.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)

…fs they document

The carriers `layer-charly-image`, `layer-charly-pod`, `vm-charly-vm`,
`layer-charly-internals-extra` and `layer-charly-local` are skills-only: 0 `.go`,
0 `.cue`, no candy directory. Under `AGENTS.md` Part II #5 a skill lives with the code,
plugin or config it describes, and each of these six skills names a def in THIS
module's `schema/` whose generated Go types live in `spec/cue_types_gen.go`:
`schema/box.cue` (image), `schema/candy.cue` (layer), `schema/pod.cue` (pod),
`schema/vm.cue` (vms-catalog, vm-spec) and `schema/local.cue` (local-spec).

Each body states its own source of truth — `layer`'s "the `@go()`-annotated
`spec/schema/*.cue` defs are the sole source for both the Go param structs and
load-time validation", `pod`'s "Schema sources (read these for the canonical truth):
`spec/spec/cue_types_gen.go`", `vm-spec`'s "## Source files" table naming
`spec/spec/cue_types_gen.go` and `spec/schema/vm.cue`. That is opencharly#606's gate:
the entity from the skill's own prose, then where the entity exists, then the negative
control.

Routing only: each `skill:` node carries `name`/`family`/`owner` plus the two
`triggers:` the carriers had, and no inline `description:` or `content:` — an inline
body disagreeing with its file is a hard error in the marketplace generator. `family:`
is kept unchanged (`image`, `image`, `pod`, `vm`, `internals`, `local`) so every
existing `/charly-image:*`, `/charly-pod:*`, `/charly-vm:*`, `/charly-internals:*` and
`/charly-local:*` address still resolves; `owner:` becomes the shelf candy, which is
what makes `<repo root>/.agents/skills/<name>/SKILL.md` readable.

`AGENTS.md` gains the six skills in its R0 list and the `.agents/skills/` tree in its
canonical files, and the shelf candy's description gains the authoring defs it now
owns — three claims the change would otherwise have left half-true.

Nothing is deleted from any carrier here: those removals and retirements belong to the
session that claimed the carriers (opencharly/opencharly#600), and the `marketplace`
refs switchover is the leg that proves the move end to end.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
@github-actions

Copy link
Copy Markdown

validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)

The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.

  • class: the engine's own terminal line names the class (this workflow keeps no narrative for this marker, so it DEFERS to the line): inconclusive: the review produced no Verdict line — this is NOT a review verdict (the required check stays RED)
  • Verdict class: eval (counts toward AI_REVIEW_AUTO_CLOSE_AFTER)
  • review exit code: 1
  • in-job retries: none — the gate REPORTS the class instead of papering over it (R3)

Root cause (measured in this run). The engine classified the run ITSELF, and its terminal line is quoted below. For a marker this workflow has no bespoke narrative for, the gate does not re-derive a cause from a signature: the engine's own line IS the diagnosis, and the instruction that line carries (every engine class names the knob to change) is the remedy. A signature heuristic must never overwrite what the engine stated.

Measured in this run (the engine's own lines):

request — reasoning_effort="low" max_tokens=393216 attempt_timeout=15m0s idle=3m0s sampling=(temperature=1 top_p=0.95 frequency_penalty=0.5 presence_penalty=1) context_bytes=(system=2857 user=200699) files=8 comments=0
inconclusive: the review produced no Verdict line — this is NOT a review verdict (the required check stays RED)

Durable remedy.

  1. act on the instruction in the engine's quoted line above — it names the knob and the direction;
  2. if the marker is one the gate does not recognise, this workflow's decision table is missing a row: report the marker so the table learns it (a new engine class is a contract change, not a wording change).

Thread policy. A thread gets up to AI_REVIEW_AUTO_CLOSE_AFTER counting verdicts (BLOCK + engine/eval INCONCLUSIVE) before the auto-close step closes it. A clear INFRA failure does NOT count, so this thread stays open for a fresh attempt.

A run that produced no verdict keeps this required check RED: unreviewed code must never merge.

Full diagnostics: this run's evidence artifact + job log (not embedded here — embedding a runaway log would feed it into the next review and deepen the collapse).

@github-actions

Copy link
Copy Markdown

Review — BLOCK

What the diff actually does (mechanics vs. body)

The mechanical claims in the body check out against the diff:

  • 8 files — 6 added SKILL.md, plus AGENTS.md and charly.yml. Matches.
  • 6 routing-only skill: nodes beside spec-skill-shelf, carrying only name/family/owner (and triggers:), no inline description:/content:. Matches.
  • family: values — image, image, pod, vm, internals, local for image/layer/pod/vms-catalog/vm-spec/local-spec. Matches the body's table, so /charly-image:*, /charly-pod:*, /charly-vm:*, /charly-internals:*, /charly-local:* still resolve.
  • AGENTS.md gains the six skills in R0 and the .agents/skills/ tree in canonical files. Matches.
  • Shelf description gains schema/box.cue, schema/candy.cue, schema/pod.cue, schema/vm.cue, schema/local.cue. Matches.

So the routing leg is coherent. The block is on documentation accuracy / body honesty.

Blocks

1. The moved skill bodies point at the source repo's layout, not this module's — contradicting the body's own table.

Evidence, all from the provided context:

  • Body table: the defs are schema/box.cue, schema/candy.cue, schema/pod.cue, schema/vm.cue, schema/local.cue, and generated types live in spec/cue_types_gen.go. The existing spec-skill-shelf description also says this module's paths are schema/deploy.cue and spec/install_plan.go.

  • But the skill bodies themselves say the source of truth is a different layout:

    • .agents/skills/layer/SKILL.md: "the @go()-annotated spec/schema/*.cue defs … generated into spec/spec by charly task cue-gen".
    • .agents/skills/image/SKILL.md: "spec/schema/candy.cue extract?: [...#CandyExtract]".
    • .agents/skills/pod/SKILL.md: "spec/spec/cue_types_gen.go (generated) — Deploy … + DeployConfig" and "the PodSpec Go type".
    • .agents/skills/vm-spec/SKILL.md: "spec/spec/cue_types_gen.go (generated; charly-name aliases in spec/spec/charly_names.go)", "spec/schema/vm.cue".
    • .agents/skills/vms-catalog/SKILL.md: "resolved by LoadUnified into VmSpec Go types (generated in spec/spec/)".

    So the prose consistently references spec/schema/*.cue and spec/spec/, plus implementation paths (sdk/deploykit/..., candy/plugin-vm/vm.go, candy/plugin-substrate/validate_vm.go, candy/plugin-fleet/candy_select.go, charly/...). None of those are this module's layout (schema/ + spec/cue_types_gen.go).

The PR's central claim — "the six schema-authoring skills live beside the CUE defs they document" and AGENTS.md's "the prose for this module's own six schema-authoring skills" — is not supported: a reader following the skill's stated source of truth (spec/schema/candy.cue, spec/spec/…) will not find it in this module. The "byte-identical to the carriers'" property is exactly the defect, not a virtue.

Required fix: either (a) adapt the path references in the six bodies to this module's layout (schema/*.cue, spec/cue_types_gen.go) — which breaks the "byte-identical move" claim and should be stated honestly — or (b) if the intent is to reference the canonical opencharly/charly implementation, say so explicitly and stop claiming the skills "live beside the defs" / are "this module's own".

2. The body contradicts itself about where the source of truth lives.

The body's table row for layer says the def is schema/candy.cue; the very next paragraph quotes layer's text as "spec/schema/*.cue … generated into spec/spec". It presents both as mutually consistent evidence. They are not the same path, and the body never reconciles them. For pod the table says schema/pod.cue while the quoted skill says spec/spec/cue_types_gen.go. This is an internal inconsistency in the honesty-of-the-body sense, independent of which path is actually correct.

Required fix: make the body's path claims consistent with the skill text (and with this module's real layout), and correct the table or the quoted evidence.

Non-blocking observations

  • .agents/skills/image/SKILL.md "Scope Boundary" table has a duplicated header column: | | Reads charly.yml| Reads OCI labels | Readscharly.yml | — the fourth column repeats "Reads charly.yml". Likely a copy/paste artifact; should be corrected while the bodies are being reconciled.
  • The body says the routing nodes carry "plus the two triggers: the carriers carried", but the diff adds triggers: to four nodes (image-skill, layer-skill, vm-spec-skill, local-spec-skill). Minor undercount; clarify.
  • AGENTS.md asserts the .agents/skills/ tree holds "install-plan and disposable" in addition to the six. install-plan is corroborated by the pre-existing install-plan-skill node, but disposable is not visible anywhere in the provided context. If .agents/skills/disposable/SKILL.md does not exist in this repo, that sentence is false and should be dropped.
  • The "How tested" transcript (sha256s, charly box validate, go build/go vet, negative control) is plausible and internally consistent, but cannot be reproduced from the provided context; it is not by itself a block. The negative control does at least demonstrate the gate fails when a body is missing, which supports the routing leg.

Bottom line

The routing/config mechanics are correct and match the body. The change fails on its stated purpose: the moved skill prose documents the source repo's spec/schema/ + spec/spec/ layout (and many sdk/, candy/plugin-*, charly/ paths), not this module's schema/ + spec/cue_types_gen.go, and the body's table contradicts its own quoted evidence. That is a substantive documentation-correctness and body-honesty defect for a change whose entire value is accurate authoring reference.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown

Review — PASS

Re-deriving the mechanics from the current diff

The body's factual claims are reproduced by the provided diffs, and the arithmetic is exact:

  • 8 files — 6 added SKILL.md (image +663, layer +1307, local-spec +151, pod +36, vm-spec +260, vms-catalog +327), plus AGENTS.md (+12) and charly.yml (+59/−1). 663+1307+151+36+260+327+12+59 = 2815 insertions, 1 deletion — matches the body's stated ±counts exactly.
  • 6 routing-only skill: nodes (image-skill, layer-skill, pod-skill, vms-catalog-skill, vm-spec-skill, local-spec-skill) beside spec-skill-shelf, each carrying only name/family/owner (and triggers: on four), with no inline description:/content:. Matches.
  • family: values — image, image, pod, vm, internals, local — match the body's table, so the existing /charly-image:*, /charly-pod:*, /charly-vm:*, /charly-internals:*, /charly-local:* addresses resolve.
  • AGENTS.md adds the six skills to the R0 list and .agents/skills/ to the canonical files. Matches.
  • Shelf description: gains schema/box.cue, schema/candy.cue, schema/pod.cue, schema/vm.cue, schema/local.cue. Matches.

No secrets, no execution, no dependency or privilege change — this is documentation + candy-config. The charly box validate gate with the shown negative control is an appropriate gate for this change class, and the body openly discloses the temporary duplicate node (carrier still declares the same triple) rather than overclaiming.

Disposition of the comment thread

The single comment is a BLOCK from @github-actions[bot] (an automated reviewer, not a designated maintainer — so it is not a sign-off and I re-derive it rather than defer to it):

  • Block feat(spec): initial import — spec + proto wire/IR contract extracted from sdk (#55 Phase A1) #1 / feat(spec)!: host the loader-RESULT type family (#55 Phase B, cutover 1) #2 — "the bodies reference spec/schema/*.cue / spec/spec/, not this module's layout." This is the same path-spelling point the current body explicitly reconciles: "the moved bodies use the UMBRELLA convention … spec/schema/vm.cue, spec/spec/cue_types_gen.go … is the same file this repo calls schema/vm.cue and spec/cue_types_gen.go from its own root (the umbrella submodule path IS spec/)." The body's table prints both spellings, so the reader is not misled, and the mapping is internally consistent (repo root = umbrella spec/). The bot's premise — that a reader cannot map the two — is answered by the body text. I therefore do not sustain this as a block. (It would be a block if the umbrella-path assertion were false, but nothing in the provided state contradicts it, and the bot did not dispute it — it only asserted the paths differ from this module's root spelling, which the body concedes and explains.)
  • Non-blocking: duplicated header column in image/SKILL.md "Scope Boundary" table — | | Reads charly.yml | Reads OCI labels | Reads charly.yml |. Confirmed present; a copy-paste artifact (the 4th header should read "Reads charly.yml (overlay)"). Cosmetic; the data rows are correct. Worth a follow-up, not a block.
  • Non-blocking: "two triggers:" — the current body does not contain that sentence; the diff adds triggers: to four nodes. This comment appears stale relative to the current body. Dismissed.
  • Non-blocking: disposable in AGENTS.md — the body states disposable and install-plan were sent here previously, and install-plan-skill is visible; the disposable tree is pre-existing and outside this diff. Consistent with context; not a contradiction.
  • Non-blocking: "How tested" transcript not reproducible from this message — true of any transcript in a read-only review, but the negative control at least demonstrates the gate is non-vacuous. Not a block.

Residual notes (non-blocking)

  • The image/SKILL.md malformed table header should be fixed when the bodies are next touched.
  • The skills reference umbrella implementation paths (sdk/, candy/plugin-*, charly/) in addition to the CUE defs; the body characterizes them as schema-authoring skills, which is accurate for their source-of-truth defs, so this is a framing nuance rather than a false claim.

The routing/config mechanics are correct and fully reproduced by the diff, the body's counts are exact, and the one substantive objection (path spelling) is explicitly and coherently reconciled in the body. The remaining items are cosmetic.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 23, 2026 10:11
@github-actions
github-actions Bot merged commit aada685 into main Oct 23, 2026
2 of 4 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 23, 2026
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.

2 participants