Repository navigation
feat(skills): the spec module authors its own skills beside its schema - #270
Conversation
The contract module held no skills. AGENTS.md Part II #5 puts a skill in the repo whose code or config it describes, and a skill routing metadata is authored as a `skill:` node beside a `candy:` node in the owning repo `charly.yml` — so the manifest gains ONE concept candy and the two skills whose source of truth is this module CUE schema and wire types. `spec-skill-shelf` is a CONCEPT candy: its `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. `spec` still ships no image and composes no box, which is why there is still no `discover:`. `.agents/skills` holds the two trees byte-identically from `layer-charly-internals`: `install-plan` (`spec/install_plan.go` + `sdk/deploykit/install_build.go`) and `disposable` (`schema/deploy.cue` + `spec/loadmodel.go`). Both destinations were measured on the tree (opencharly/opencharly#609, re-derived in #611); the `charly/*.go` files those skills once cited — `charly/install_plan.go`, `charly/install_build.go`, `charly/classification.go` — no longer exist. 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 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 manifest header that said `spec owns NO candies/boxes` was true before this change and false after it, so it is corrected in the same commit rather than left to rot. The Go build is untouched: no schema, no package, no Go file, and `charly task cue-gen` is not affected. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
Review — PASSI re-derived every material claim in the body against the six diffs, the single commit, and the (empty) comment thread. There are no comments to disposition, so the change must stand on its own evidence — and it does. Body ↔ diff consistency (verified)
Tests / gateThis is a documentation + manifest change with no Go surface, so the correct gate is Scope & cleanliness
SecurityNo secrets, no code, no injection surface, no dependency changes. Nothing to flag. Residual observations (non-blocking)
The body is unusually candid (it even corrects the dispatch premise about Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — CORRECTION to this PR's body, which What is wrong. The
The 52 is a real count of distinct citations; "none exists" is false. It came from resolving Re-measured: 17 of the 52 exist at Therefore nothing is owed by this PR or by the two skills it moved. The landed diff is unaffected — this is a statement about one sentence in the PR body, not about a file: the two skill trees are byte-identical to the carrier ( I am not hand-editing Agent: charly Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system) |
Summary
Head
1df792aa46e03c2adb0e20c0ac48445aa6fb1dc0, 6 files, +1024/−2.specheld 0authored skills. It did not lack a project manifest — it has had one all along (its
kind: tasksurface:bootstrap-cue,bootstrap-protoc,wire-gen/proto-gen,cue-gen) —so this PR adds one concept candy to an existing manifest rather than creating one, and moves
the two skills whose source of truth is this module.
Correction to the dispatch premise, recorded rather than silently absorbed. The brief this leg
was dispatched from states that neither
sdknorspechas acharly.yml. Measured onorigin/main(b4d573c):spec/charly.ymlexists and is 145 lines.sdkgenuinely had none.The task stands in both repos; only the starting shape differed, and taking the premise as stated
would have produced a second manifest overwriting a live one.
Why these two. AGENTS.md Part II #5 decides a skill's home by what the repo CONTAINS, never by
what the skill is about. #611 routed 2 of the 35 carrier skills here; #609's table is the record:
install-planspec/install_plan.go,install_build.gospec/spec/install_plan.go;spec/spec/cue_types_gen.godisposableDeployNode.Disposable— "the sole source of truth for disposability"spec/spec/charly_methods.go:317(IsDisposable, readingc.Disposableat :319) — and the authored field it reads,spec/schema/deploy.cue:277(disposable?: bool @go(,type=*bool))disposableis worth reading twice, because the map and the prose name different files of thesame repo: #609's table points at
schema/deploy.cue(the authored field), while the skill's ownprose cites
spec/spec/charly_methods.gothree times and callsDeployNode.Disposablethe solesource of truth. Both resolve here —
grep -c 'schema/deploy.cue'on that skill returns 0 —so the DESTINATION is
speceither way, and the double-check below is keyed to the file the skillactually names rather than to the one the map inferred.
The 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:
The last line is why the carrier cannot be
disposable's home: it contains 0.goand 0.cuefiles, so nothing in it can keep that skill in step. The prose's other citation,charly/classification.go, is introduced there on line 78 as "the formercharly/classification.gois DELETED, K-wave 2" — correct prose documenting the move, not a stale claim (see Filed issues).
It is a MOVE, not a rewrite
Byte identity at both ends,
sha256on the file and the git blob git actually stores.[cwd = the umbrella root]:diff -rbetween each pair is exit 0 as well. The pages do not change; only which repo owns them does.The candy, and what it is not
spec-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 prose isthe file, and an inline body that disagrees with its file is a hard error in the marketplace
generator, so nothing is copied back over a node.
familystaysinternals, so every/charly-internals:<skill>address and the corpus path<family>/skills/<name>/SKILL.mdareunchanged.
The manifest header line that read
spec owns NO candies/boxes, so there is no discover:was truebefore this change and false after it. It is corrected in the same commit to
spec ships NO image and composes NO box … plus ONE CONCEPT candy— left to rot it would be exactly the falsified-headerdefect #612 had to repair. The
discover:claim is still true and still absent, because this PRdoes not give
specan image.How the name respects the class rule. "Repo classes and naming" says bare names are for
core/contract repos —
specis 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— whereasspec-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, and thisis one node in a repo of CUE schema, generated Go and a proto wire contract.
No OCI label entry. The candy composes nothing, so there is no image for
CollectSkillstoproject onto — measured, not asserted (
[cwd = this session's spec worktree]):[testing]is the marker the existingcharly-internalsconcept candy carries too (same command inthe carrier prints
charly-internals [testing]), i.e. the sanctioned shape rather than a new one.How tested
The gate this diff requires:
charly box validateat the repo root, plus proof that the changedisturbs neither the Go suite nor the pre-existing task surface. Run from this session's worktree
with the worktree-local binary —
charly version=2026.295.1709, matchingcharlysource HEAD9fd74793(R9).Before the change — the baseline, which shows the manifest already existed and already validated
with no candies:
After, on the committed tree (
1df792a,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 two new files instead of passing vacuously:
The maintenance surface is intact. The whole risk of touching this manifest is that a
candy:node disturbs the
kind: taskentities it already carried:The module's own Go gates, unchanged by a diff that contains no
.gofile and no.cuefile:The linter's toolchain, disclosed rather than hidden. On this host the pinned
golangci-lintv2.13.2 reproduces a
typecheckfailure against the host'sgo, a customgo1.27.3-X:nodwarf5build whose export-data format (5) is newer than the reader supports (4) —byte-identical output on the untouched baseline checkout (
sdkat2d50463, clean tree), so it isenvironmental and not a finding against this diff. Mechanism: the type-checker cannot load any
package, so the run reports toolchain noise instead of findings. Missed control: I first ran the
linter under the host default instead of the repo's declared toolchain. Root fix: run it under
go.mod'sgo 1.26.0, which is exactly what this repo's CI does (go-version-file: go.mod); withGOTOOLCHAIN=go1.26.0:0 issues, rc=0.Not run, and why: no R10 bed, no image build, no
charly task cue-genrun — this diff adds noschema, no package and no Go file, so a regeneration has nothing new to produce, and there is no
disposable: truetarget here.charly task verifyis not run: this diff touches no submodule, nogitlink and no pin.
The corpus leg is producer-first and separate.
@github.com/opencharly/spec:<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. The tag scheme is a Go module's, not the superproject's:
v0.<YYYYDDD>.<HHMM with leading zeros stripped>.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 feat(spec): CUE-source ResolvedBox/BuilderMap/AggregatedCandyCaps (#55 step3 unit 3a) #4) first.above (environmental, pre-existing, reproduced on the baseline), and the dead-
charly/*.gocitation surface these files carry is measured on the skills-migration destination map is stale: 17 of 20 internals skills resolve to a repo the plan does not name opencharly#609, whose scope it
corrects — including my own over-count, corrected there and not left standing. Zero warnings is
what the gate printed.
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), producer-first after this lands; nosecond copy is created here.
--no-verify, no suppression, and the toolchain was fixed by using therepo's DECLARED one, not by swapping in a different linter version.
describes the manifest that exists.
grep -n 'owns NO candies' charly.ymlreturns nothing on this head (rc=1), and the correctedsentence is what stands.
git status --porcelainwas empty before the branch; one commit, no force-push, no pushto
main, no hook bypass.sha256+git-blob equality at both ends.
Change classification
Documentation-only (skill relocation) + one inert concept-candy node added to an existing
manifest, plus a two-line header correction. Two authored trees arrive verbatim, two routing-only
skill:nodes are added carrying their existingtriggers:, and onecandy:node is added whoseplan:ships no install content. No runtime code, no schema, no package, no service, no port, noOCI label, and no
.goor.cuefile in the diff. Gate:charly box validate(0 warnings, 0errors) plus the byte-identity, negative-control, task-surface and Go-suite evidence.
Filed issues
thread and its scope corrected: 52 distinct
charly/*.gopaths are cited by the ninesdk/spec-bound skills and none exists, where the issue records 11.install-planalonecarries 32 (including the
charly/install_plan.goandcharly/install_build.goit names) anddisposablecarries 3 (includingcharly/classification.go). Not every one of the 52 is astale claim — many say of the dead path, correctly, "the former … is DELETED" — so how many are
genuine defects needs a READ, not a grep, and a first count of mine that treated all 52 as stale is
corrected in-thread rather than left standing. Not fixed here on purpose: this PR's proof is that
the pages do not change, so correcting their prose inside it would falsify the move's own
evidence; the correction belongs in a read-the-files pass on the skills in their new homes, after
the adds land.
specrows of.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)