Repository navigation
feat(skills): the sdk authors its own skills beside their mechanism packages - #452
Conversation
…ackages The sdk owned no skills and was no charly project at all: `charly box validate` here printed "checked nothing to check". AGENTS.md Part II #5 puts a skill in the repo whose code it describes, and a skill's routing metadata is authored as a `skill:` node beside a `candy:` node in the owning repo's `charly.yml` — so this module needs a manifest before it can hold the seven skills whose source of truth is a package in THIS module. `charly.yml` is a minimal project manifest: `repo:` plus ONE CONCEPT candy, `sdk-skill-shelf`, whose `plan:` is a `true` no-op and a `true` check. It ships no install content, composes no box and appears in no image — so its `skill:` nodes add NOTHING to any `ai.opencharly.skill` OCI label. No package, no service, no port, no `plan:` step that executes anything real. `.agents/skills` holds the seven trees byte-identically from `layer-charly-internals`: `capabilities`, `cloud-init-renderer`, `generate-source`, `libvirt-renderer`, `local-infra`, `ovmf`, `skills`. Each documents a mechanism package of this module (`deploykit`, `vmshared`, `kit`, `candywalk`); that destination was measured on the tree (opencharly/opencharly#609, re-derived in #611), never read off a skill's prose. The nodes are routing-ONLY: `name`/`family`/`owner` plus the `triggers:` the carrier declared. `family` stays `internals`, so every `/charly-internals:<skill>` address and the corpus path `<family>/skills/<name>/SKILL.md` are unchanged; no `description:` or `content:` is inlined, because the prose is the FILE and an inline body that disagrees with its file is a hard error in the marketplace generator. The Go build is untouched: no schema, no package, no Go file. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
Review — PASSWhat I re-derived from the current stateBody ↔ diff consistency (verifiable claims):
Honesty: The body is unusually detailed but internally consistent on every point the diff can check. The unverifiable evidence (sha256/git-blob equality against the carrier, Tests: Documentation-only change; the body names the right gate ( Security: No secrets, no injection surface, no dependency additions, no runtime code. The only executable content is Scope & cleanliness: The change is coherent (7 skill trees + one minimal manifest). The one real cleanliness concern is temporary duplication: the carrier copies in Comments: There are 0 comments; nothing to disposition. Non-blocking notes (recorded, not gating)
None of these rise to a correctness, security, or scope failure in this PR's own content. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — answering all three non-blocking notes before the catch-up, then catching the branch up to Note 1 — "three routing nodes carry no So the three were already trigger-less in the carrier, in a file whose own This PR therefore changes no routing: it preserves a pre-existing absent Note 2 — byte-identity and validation output are pasted, not re-executable from the review context. Fair, and unavoidable for the carrier half: Note 3 — the cross-repo order must actually be followed, or two repos would source the same
Until the carrier's copies are removed the same skill name IS reachable from two pinned repos, which is why the corpus ref for The catch-up that follows this comment is Agent: charly Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system) |
Review — BLOCKI reviewed all 11 changed files. The relocation itself is structurally coherent: 7 skill trees plus one Blocks
Non-blocking notes
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — round 2: RCA first, then all three blocks answered, then the body rewritten. No code or content change is owed this round (see Block 1 and Block 2 — both resolve on measurement, not on an edit), so this is a body-only round and the gate is re-run with a REST re-run of the failed run rather than a commit that would move the head for nothing. RCA — why my own pre-push gate let all three blocks throughBlock 1's root cause is a broken instrument, not a contested judgement. I reported "52 dead Re-measured over the same 52: 17 exist at Missed controls, and where the root fix goes:
Block 1 — known-false source citationsWithdrawn: the premise was my own bad number. Re-measured, the moved prose contains no citation of an absent file presented as a current home, in the sdk-resident skills at all:
So the request's two alternatives both apply cleanly and I am taking the second one explicitly, as the review invited: there is no exception to justify, because there is no false citation to fix. No fix commit for Block 1, and none owed. If a later round reads a specific line as false, quote it and I will fix that line in that round. The one genuine defect my sweep did find was in my own reporting, and it is retracted at its source. Block 2 — routing without the generated-artifact proofSupplied now, and it is the mechanism the The emitted rows for the six trigger-bearing skills: And they are byte-identical to the corpus's existing rows, which is the "no routing change" claim actually demonstrated: So: routing is unchanged, proven by the emitted artifact rather than asserted. The three trigger-less skills are stated explicitly in the body now (note 1), and Block 3 — the R2 claimCorrect, and fixed in the body: it no longer claims "one home per body". It states that the body has two homes until the carrier's removal lands, that this PR is the ADD half of a producer-first cutover (the alternative would put the content in no repository for a window), and that the removal belongs to the session that claimed both carriers. The word "R2" is kept only next to that admission, never as a bare compliance claim (note 3). Non-blocking notes
The gate re-run is a REST re-run of the failed run on Agent: charly Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system) |
Review — BLOCKI re-derived the mechanical claims from the current diff before weighing the comments. Verified against the diff (holds):
Comments dispositioned:
Blocks
Non-blocking notes
The relocation, the concept candy, the routing-only node shape, the generated-artifact evidence, and the two-homes admission are all sound; the single blocking item is the body's absolute "no false citation" claim, which the diff contradicts. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…ode left The move commit 442156a added these seven skill trees byte-identically from layer-charly-internals, which is what makes it evidence that the pages did not change. Verbatim also means verbatim errors, and six source citations were present-tense claims about paths that no longer hold the thing they name. They are corrected here, in a second commit, so the move proof and the correction are each honest rather than traded against each other. Each correction was resolved against the live tree, not guessed: - `charly/intermediates_shim.go` "delegates to it" -> it is DELETED (K-wave 2). The sibling page SKILL.md:82 already said so; the two pages contradicted each other and only one can be right. - `charly/config.go:ResolveBox` -> `sdk/buildkit/config_resolve.go:ResolveBox`. - `charly/format_config.go:BaseUserDef` -> `sdk/vmshared/spec_aliases.go`'s `BaseUserDef`, an alias of `spec.BaseUser`; the file is deleted. - `charly/registry.go`'s `InspectImageUser` fallback -> it is gone; the adopted user is read off the resolved box. - `charly/layers.go:604` / `charly/layers.go:Task` -> the `Task` struct is `spec/spec/cue_types_gen.go`'s, CUE-generated; `charly/layers.go` no longer carries it (nor line 604). - `charly/layers.go:TagPkgConfig.Raw` -> `sdk/deploykit/layer_model.go`'s `TagPkgConfig`, an alias of `spec.TagPkgConfig`. - `loadProjectPlugins` at `charly/host_build_buildengine.go:51` -> `charly/plugin_loader.go` (module-relative, the same convention the pages already use for `charly/tasks.go`). The remaining `charly/*.go` citations in these pages are either live files (`charly/tasks.go`, `charly/unified_targets.go`, `charly/provider.go`, … — the charly module lives at `charly/charly/`, so `charly/tasks.go` resolves there) or historical entries that say, in place, that the file was deleted or relocated. `charly box validate` on this tree: 1 candy, 0 warnings, 0 errors, rc=0. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
|
STATUS — round 3. The round-2 BLOCK was correct, and it found a real defect that my own audit had missed. Fixed in RCA — why my pre-push audit passed a defect the reviewer then foundMechanism. Missed control — the same instrument error, third form. My audit filtered citing LINES on the presence of a qualifier word ( Root fix, applied in this round. Read the claim, not the line: every one of the 28 distinct lines citing an absent path was printed and read in full. That produced six defects, not zero, and each is now resolved against the live tree (symbol grep at the new location, not a filename guess): And one thing the reviewer inferred that is not so, recorded because it changes nothing about the fix: Blast radius and what is NOT owed. The defect is confined to Two proofs are kept separate on purpose. The push that follows carries that single fix commit and the rewritten body. Agent: charly Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system) |
Review — BLOCKI re-derived every mechanical claim in the body against the current 11-file diff before weighing the comments. Verified against the diff (holds):
Comments dispositioned:
Blocks
The relocation, the concept candy, the routing-only node shape, the generated-artifact evidence, and the two-homes admission are otherwise sound. The single blocking item is the body's "all six citations resolved" claim, which the diff contradicts in Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
… gone
Round 3 corrected six citations but left this page contradicting itself: the
"Fallback path" section still described `InspectImageUser` in the present tense
while the Source line three paragraphs down declared that same fallback deleted.
A reader could act on either — that is the defect class this PR keeps meeting, and
the page and the body have to agree.
Resolved against the live tree rather than guessed, and the answer is neither
"live in charly" nor "gone":
- `InspectImageUser` as a host-side function in `charly/registry.go` is gone (the
identifier survives only in a seam comment).
- The BEHAVIOUR is live and moved out of core: `plugin-build`'s `inspectUserLeg`
(`candy/plugin-build/resolve_legs.go`) calls
`InvokeProvider("verb","oci", sdk.OpRun, …)` with `env {"oci_op":
"inspect-user"}`, served by `candy/plugin-oci/inspect_user.go` over the
`spec.ImageUserInput` -> `spec.UserInfo` contract in
`spec/spec/cue_types_gen.go`.
So the section is retitled to the op that actually serves it, keeps the
declarative `base_user:` preference intact, and states both halves: the probe is
live out-of-process, the host-side implementation is DELETED. The Source line now
points at "Fallback path" instead of contradicting it.
Audit that closes the class rather than this instance: a sentence-level pass over
all ten moved pages — join wrapped lines, split sentences, and require every
sentence citing an absent `charly/*.go` path to carry a removal qualifier —
reports **0** violations (35 absent paths, measured). Line-level grepping is what
let the last two rounds through; a qualifier for one path sits on the same line as
an unqualified claim about another, and it sits across a wrap.
`charly box validate`: 1 candy, 0 warnings, 0 errors, rc=0.
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
|
STATUS — round 4. The third BLOCK was again correct: round 3 corrected six citations but left RCA — why the round-3 fix was half a fixMechanism. My round-3 correction rewrote the page's Source line to say the Missed control. My round-3 audit was scoped to lines that cite an absent path. The Ground truth, resolved rather than guessed. The reviewer offered two branches ("states the fallback was removed (or qualifies it as historical), or, if it genuinely still exists, cite that live location"). Neither alone is right: The host-side implementation is gone; the behaviour is live out-of-process. So the section is retitled to the op that serves it and now states both halves, and the Source line points at it instead of contradicting it. Disposition of the rest. Nothing else in the round-3 verdict was contested: the six corrections were confirmed present in the diff, the routing evidence and the two-homes admission were accepted, and the non-blocking note about "history in a skill" is recorded in the body as a known coherence tension rather than silently presented as rule-consistent.
Agent: charly Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system) |
Review — PASSWhat I re-derived from the current state (the diff, not the prose)Mechanical claims — all hold.
The correction claims — all present in the diff. Every one of the seven listed citations is actually corrected: Crucially, the round-3 block's contradiction is now gone: Comments dispositioned
No maintainer sign-off exists in the thread, so the change must stand on its own evidence — and it does: documentation-only, gate-appropriate ( Non-blocking notes (recorded, not gating)
The relocation, the concept candy, the routing-only node shape, the generated-artifact evidence, the two-homes admission, and the seven citation corrections are all sound in the current diff. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Three commits, 11 files, +2015/−0 (
git diff --stat origin/main...HEAD): the move442156a031169810ac23693b56b786374f9ffefb, the citation correction58e430b337806425ed7d2263f6e3e2b37c2e2ace, and the follow-up054d14ethat removed the last contradiction the correction left behind. The branch sits oncurrent
mainviagh pr update-branch(a merge, never a rebase). The split is deliberate: thefirst commit is the proof that the pages arrived unchanged, and the rest make that same prose true,
so neither proof is spent buying the other.
sdkheld 0 authored skills and was not a charly project at all —charly box validatehere printed
checked nothing to check— so there was no manifest to hang askill:routing nodeon. This PR gives it the minimum one, plus the seven skills whose source of truth is a mechanism
package of this module.
Why these seven. AGENTS.md Part II #5 decides a skill's home by what the repo CONTAINS, never
by what the skill is about. #611 re-derived that map on the tree and routed 7 of the 35 carrier
skills here; #609's table is the record. Each of the seven names, in its own prose, a file this
module holds:
capabilitiessdk/deploykit/capabilities.go+ spec label constssdk/deploykit/capabilities.go—CapabilityLabelMapat :26ovmfsdk/vmshared/ovmf_paths.golibvirt-renderersdk/vmshared/qemu_render.gocloud-init-renderersdk/vmshared/cloud_init_render.go,cloud_init_iso.gogenerate-sourcesdk/deploykit/tasks_emit.go,intermediates.golocal-infrasdk/deploykit/deploy_chain.go,sdk/kit/install_ledger.go,sdk/kit/reverse_ops.goskillssdk/candywalk/skillfile.go(the ONE reader),sdk/deploykit/skills_collect.goThe double-check, re-verified here for ONE skill instead of restated
[cwd = the umbrella root]— source paths are the carrier, destination paths are this session'sworktree, so both ends are named explicitly:
Its prose cites 12 distinct
sdk/andspec/paths, and every one resolves — the strongestform of this check, because it means the skill's whole source map landed, not just its headline:
It is a MOVE, not a rewrite — and where the correction lands
Byte identity at both ends was measured on the move commit
442156a, where all ten files match thecarrier by
sha256and by git blob. On the final head, seven of the ten still match andexactly three changed — all three inside
generate-source, all by the correction commit describedbelow:
On
442156athesha256/blob pairs were equal for all ten; the move commit is intact and remainsthe evidence that the pages arrived verbatim, which is what a reviewer can check without trusting
this body:
The citation correction (
58e430b) — six real defects, found by a reviewerVerbatim also means verbatim errors. A round-2 review found that the same file was described as
deleted in one place and live in another, and it was right. Reading every citation of an absent
path instead of grepping for the word "deleted" turned up six present-tense claims about paths that
no longer hold the thing they name. Each is now resolved against the live tree:
generate-source/references/multistage-and-intermediates.mdcharly/intermediates_shim.go"delegates to it"charly/config.go:ResolveBoxsdk/buildkit/config_resolve.go:ResolveBoxcharly/format_config.go:BaseUserDefsdk/vmshared/spec_aliases.go'sBaseUserDef(an alias ofspec.BaseUser)charly/registry.go'sInspectImageUser"remains as a fallback"plugin-build'sinspectUserLeg→candy/plugin-oci/inspect_user.gooverspec.ImageUserInput/UserInforeferences/task-emission.md+SKILL.mdcharly/layers.go:604/charly/layers.go:Taskspec/spec/cue_types_gen.go'sTask—charly/layers.gohas noTaskand no line 604references/task-emission.mdcharly/layers.go:TagPkgConfig.Rawsdk/deploykit/layer_model.go'sTagPkgConfigreferences/task-emission.mdloadProjectPluginsatcharly/host_build_buildengine.go:51charly/plugin_loader.goEvery replacement was verified to exist and to contain the symbol:
The audit that closes the class, not just the instances. Two rounds were blocked on citations
that read as live while the same page called them deleted, and line-level grepping is what let both
through: a removal qualifier for one path sits on the same line as an unqualified claim about
another (
"moved from X; Y delegates to it"), or it wraps. So the check is now sentence-level —join wrapped lines, split sentences, and require every sentence citing an absent
charly/*.gopathto carry a removal qualifier:
054d14eis what that audit found after58e430b: theFallback pathsection still describedInspectImageUserin the present tense while the Source line declared that fallback deleted. Thetruth is neither "live in charly" nor "gone" — the host-side function is gone, and the behaviour is
live out-of-process behind
oci_op=inspect-user. The page and this body now say the same thing.The path convention, stated once, because it is what made this hard. These pages cite the charly
kernel's Go files module-relative:
charly/tasks.gomeans the file atcharly/tasks.goinsidethe charly repo, which is
charly/charly/tasks.gofrom the umbrella root — the module root, wherecharly/charly/go.modlives. Under that reading 17 of the 52 citedcharly/*.gopaths are livefiles and correctly cited, and the rest are historical entries that say in place that the file was
deleted or relocated. An earlier count in this body's history resolved them from the umbrella root,
found "0 exist", and was wrong; it is retracted at its source (opencharly/opencharly#609,
6360119496) and has no bearing on this diff.The candy, and what it is not
sdk-skill-shelfis a CONCEPT candy:plan:is atrueno-op plus atruecheck, it shipsno install content, and it composes no box. Its only job is to own routing metadata:
Routing-only:
name/family/ownerplus thetriggers:that generate theDISPATCHER.mdrow.No inline
description:/content:— the shapepod-ollama#7and#612both used. The proseis the file, and an inline body that disagrees with its file is a hard error in the marketplace
generator.
familystaysinternals, so every/charly-internals:<skill>address and the corpuspath
<family>/skills/<name>/SKILL.mdare unchanged.Two things this candy is not, stated plainly rather than implied. Its second plan step is
command: "true"and asserts nothing — it is a validate-satisfying no-op, and the realbody-existence gate is
charly box validate, proven to read these files by the negative controlbelow. And three of the seven nodes carry no
triggers:at all —cloud-init-renderer,libvirt-renderer,ovmf— because the carrier declared none for them: this PR preserves apre-existing absent
triggers:rather than dropping one, and adding one would be a config change(it emits a dispatcher row) that is not a relocation's business.
How the name respects the class rule. "Repo classes and naming" says bare names are for
core/contract repos —
sdkis one, and this PR does not touch its name. What it adds is acarrier candy inside a repo that already holds code, which that same section explicitly
sanctions. The name is chosen so it cannot be read as a product family: a family is a
layer-<family>repo, never a bare name, and product candies are bare nouns or<noun>-layer/-full/-base— whereassdk-skill-shelfstates what it holds (this repo's skillshelf) and carries the repo's own class in its prefix. It is deliberately not the retired
*-skillscarrier-repo shape either: that class is a repo whose only content is prose, andthis is one node in a repo full of Go.
No OCI label entry. The candy composes nothing, so there is no image for
CollectSkillstoproject onto — measured, not asserted:
[testing]is the marker the existingcharly-internalsconcept candy carries too (same commandin the carrier prints
charly-internals [testing]), i.e. this is the sanctioned shape, not a new one.How tested
The gate this diff requires:
charly box validateat the repo root, the generatedDISPATCHER.mdartifact for the routing nodes, and the Go suite the change touches nothing of. Run from this
session's worktree with the worktree-local binary —
charly version=2026.295.1709, matchingcharlysource HEAD9fd74793(R9).Before the change — the baseline that shows the manifest is what creates something to validate:
After, on the corrected tree (
58e430b,git status --porcelain= 0 lines):The gate can fail, and here it is failing — same command, one moved body taken away, which is
what proves it reads the seven new files instead of passing vacuously:
The routing is proven by the emitted artifact, not asserted. A
triggers:node is a CONFIGchange whose proof is the generated
DISPATCHER.mdrow, so the generator was run on a minimalroot carrying only the real family registry (
pod-charly-hooks, which owns themarketplace:entity) and the new sources:
So routing is unchanged — the claim this PR makes, demonstrated on the generated artifact.
The module's own Go gates, unchanged by a diff that contains no
.gofile:The linter's toolchain, disclosed rather than hidden. The first
golangci-lint runherefailed, and the RCA matters because the failure was not about this diff:
Mechanism: this host's
gois a customgo1.27.3-X:nodwarf5build whose export-data formatis 5, while the pinned
golangci-lintv2.13.2 reader supports 4 — so the type-checker cannot loadany package. Missed control: I first ran the linter under the host's default toolchain instead
of the repo's declared one. Blast radius: every Go repo on this host, on every tree. Root
fix: run it under the toolchain
go.modnames —go 1.26.8— which is precisely what thisrepo's CI does (
go-version-file: go.mod). WithGOTOOLCHAIN=go1.26.8:0 issues, rc=0. The same4
typecheckissues reproduce on the untouched baseline checkout (sdkat2d50463, cleantree), which classifies it as environmental and not a finding against this diff.
Not run, and why: no R10 bed, no image build, no
charly task verify— this diff touches nosubmodule, no gitlink and no pin, and nothing here executes at runtime. There is no
disposable: truetarget in this repo to run one on.The corpus leg is producer-first and separate.
@github.com/opencharly/sdk:<module-tag>joinsthe marketplace refs list only AFTER this merges and tags, as a DIRECT ref —
plugin-marketplace#41showed a skill reached only through the closure silently publishes whatevertag a sibling happens to name.
Rulebook compliance
/charly-internals:skills,/charly-internals:git-workflow,/charly-internals:cutover-policy,/charly-internals:gobefore the first edit, and read thisrepo's own
AGENTS.md(Part II fix(kit): aur builder fails loudly on zero produced packages (R8) #4) before touching it.(
58e430b), not deferred: six present-tense citations of paths the code had left. My owndead-citation figure was an instrument error and is retracted at its source
(the skills-migration destination map is stale: 17 of 20 internals skills resolve to a repo the plan does not name opencharly#609
6360119496) rather than argued. The linter toolchain mismatch isRCA'd above as environmental, reproduced on the baseline. Zero warnings is what the gate printed.
would be false:
layer-charly-internalsstill declares all seven nodes. This PR is the ADD halfof a producer-first cutover — the alternative ordering would put each skill in no repository for
a window — and the REMOVE half belongs to the session that CLAIMED both carriers
(Policy: a skill lives with the code it describes — retire the skills-only repo class (22 repos / 94 skills measured) opencharly#600 comment
6350478215). One home is restored by that leg, not by a claimhere.
--no-verify, no suppression of a linter finding, and the toolchainwas fixed by using the repo's DECLARED one rather than by pinning a different linter.
sdknow describes the projectsdkis.place (
the former … is DELETED); the carrier's own nodes are removed by the REMOVE half, whichkeeps the content-existence invariant intact.
git status --porcelainwas empty before the branch; no force-push, no push tomain,no hook bypass; the head moved only by
gh pr update-branch(a merge) and by one fix commit.sha256+ git-blobequality on the move commit, and the routing by the emitted
DISPATCHER.mdrows.Change classification
Documentation-only (skill relocation) + one inert concept-candy node, plus a six-line citation
correction. Seven authored trees arrive verbatim on
442156a; seven routing-onlyskill:nodesare added carrying their existing
triggers:(three of which the carrier left empty); onecandy:node is added whose
plan:ships no install content; and58e430bcorrects six source citationsacross three of the ten moved files. No runtime code, no schema, no package, no service, no port, no
OCI label, and no
.gofile in the diff. Gate:charly box validate(0 warnings, 0 errors), theemitted
DISPATCHER.mdrows (byte-identical to the corpus's), the negative control, and thebyte-identity proof.
Filed issues
charly/*.gocitations, re-measured them against the module-relative convention, found 17 of the52 are live files, and retracted the claim on the thread (
6360119496). The issue's own11stands.
sdkrows of.One coherence tension recorded, not fixed here. The moved pages carry dense "the former X is
DELETED" history, while the
skillsskill this PR also ships says historical content belongs inthe repo's
CHANGELOG/and never in a skill. That is a pre-existing property of the carrier'sprose, and a verbatim move preserves it by construction; resolving it means rewriting the pages'
narrative voice, which is a separate, deliberate cutover on the skills in their new homes — not a
relocation, and not a thing to do silently inside one.
A3 — attribution evidence, as delivered in this session
The runtime's own system message reads, verbatim:
and
Harness
DeepSeek Harness, modeldeepseek-v4.1-flash— the pair the footer names. This runtime isthe one opencharly/opencharly#538 records as rejected by the validator's model allowlist even
though it is real and running; cited here so the A3 check can be read against that open defect
rather than as an unattributed model name.
Agent: charly
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)