Skip to content

feat(skills): the spec module authors its own skills beside its schema - #270

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/contract-skill-shelf
Oct 23, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/contract-skill-shelf

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

Head 1df792aa46e03c2adb0e20c0ac48445aa6fb1dc0, 6 files, +1024/−2. spec held 0
authored skills. It did not lack a project manifest — it has had one all along (its
kind: task surface: 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 sdk nor spec has a charly.yml. Measured on
origin/main (b4d573c): spec/charly.yml exists and is 145 lines. sdk genuinely 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:

skill the entity, as its OWN prose names it where it exists (measured) files
install-plan the InstallPlan IR + its per-target emitters — spec/install_plan.go, install_build.go spec/spec/install_plan.go; spec/spec/cue_types_gen.go 4
disposable DeployNode.Disposable — "the sole source of truth for disposability" spec/spec/charly_methods.go:317 (IsDisposable, reading c.Disposable at :319) — and the authored field it reads, spec/schema/deploy.cue:277 (disposable?: bool @go(,type=*bool)) 1

disposable is worth reading twice, because the map and the prose name different files of the
same repo
: #609's table points at schema/deploy.cue (the authored field), while the skill's own
prose cites spec/spec/charly_methods.go three times and calls DeployNode.Disposable the sole
source of truth. Both resolve here — grep -c 'schema/deploy.cue' on that skill returns 0 —
so the DESTINATION is spec either way, and the double-check below is keyed to the file the skill
actually 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's
worktree
, so both ends are named explicitly:

$ test -e .worktrees/contract-shelf/spec/spec/charly_methods.go && echo EXISTS
EXISTS                                       rc=0
$ grep -n 'IsDisposable\|c.Disposable' .worktrees/contract-shelf/spec/spec/charly_methods.go
317:// IsDisposable reports whether the deploy is safe to destroy + rebuild.
319:	return (c.Disposable != nil && *c.Disposable) || c.IsEphemeral()
$ grep -c 'spec/spec/charly_methods.go' layer-charly-internals/.agents/skills/disposable/SKILL.md
3                                            # the skill names the file it documents
$ find layer-charly-internals -name '*.go' -o -name '*.cue' | wc -l
0                                            # NEGATIVE CONTROL: the carrier holds no code for it

The last line is why the carrier cannot be disposable's home: it contains 0 .go and 0
.cue files, 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 former charly/classification.go
is 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, sha256 on the file and the git blob git actually stores.
[cwd = the umbrella root]:

$ for s in disposable install-plan; do
    a=$(sha256sum layer-charly-internals/.agents/skills/$s/SKILL.md | cut -d' ' -f1)
    b=$(sha256sum .worktrees/contract-shelf/spec/.agents/skills/$s/SKILL.md | cut -d' ' -f1)
    echo "$a $([ "$a" = "$b" ] && echo EQUAL) $s"; done
3e0318aa9a0840c524a517488e57eccadc2e8695c338e1b5f0042dc452bdde7c EQUAL disposable
89d79d2a662aa4dc8401c8d8803bd32b0b7466364ef2aaa54837f8dea6abb326 EQUAL install-plan

$ for s in disposable install-plan; do
    a=$(git -C layer-charly-internals rev-parse HEAD:.agents/skills/$s/SKILL.md)
    b=$(git -C .worktrees/contract-shelf/spec rev-parse HEAD:.agents/skills/$s/SKILL.md)
    printf '%-22s %s %s %s\n' "$s" "${a:0:12}" "${b:0:12}" "$([ "$a" = "$b" ] && echo SAME-BLOB)"; done
disposable            af39758b7c0c af39758b7c0c SAME-BLOB
install-plan          a92134df73fd a92134df73fd SAME-BLOB

diff -r between 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-shelf is a CONCEPT candy: plan: is a true no-op plus a true check, it ships
no install content, and it composes no box. Its only job is to own routing metadata:

spec-skill-shelf:
  candy: { … }
disposable-skill:
  skill:
    name: disposable
    family: internals
    owner: spec-skill-shelf
    triggers: [ "Disposable-flag semantics / `disposable: true` authorization / …" ]

Routing-only: name/family/owner plus the triggers: that generate the DISPATCHER.md row.
No inline description:/content: — the shape pod-ollama#7 and #612 both used. The prose is
the 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. family stays internals, so every
/charly-internals:<skill> address and the corpus path <family>/skills/<name>/SKILL.md are
unchanged.

The manifest header line that read spec owns NO candies/boxes, so there is no discover: was true
before 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-header
defect #612 had to repair. The discover: claim is still true and still absent, because this PR
does not give spec an image.

How the name respects the class rule. "Repo classes and naming" says bare names are for
core/contract repos — spec is one, and this PR does not touch its name. What it adds is a
carrier 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 — whereas spec-skill-shelf states what it holds (this repo's skill
shelf) and carries the repo's own class in its prefix. It is deliberately not the retired
*-skills carrier-repo shape either: that class is a repo whose only content is prose, and this
is 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 CollectSkills to
project onto — measured, not asserted ([cwd = this session's spec worktree]):

$ CHARLY_PLUGIN_ONLY=1 charly box list boxes
charly: resolving project (first run — may take a moment)...      rc=0   # zero boxes
$ CHARLY_PLUGIN_ONLY=1 charly box list candies
spec-skill-shelf [testing]                                       rc=0

[testing] is the marker the existing charly-internals concept candy carries too (same command in
the carrier prints charly-internals [testing]), i.e. the sanctioned shape rather than a new one.

How tested

The gate this diff requires: charly box validate at the repo root, plus proof that the change
disturbs 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, matching charly source HEAD
9fd74793 (R9).

Before the change — the baseline, which shows the manifest already existed and already validated
with no candies:

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

After, on the committed tree (1df792a, git status --porcelain = 0 lines):

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

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:

$ mv .agents/skills/install-plan /tmp/cs/install-plan.bak && CHARLY_PLUGIN_ONLY=1 charly box validate
rc=1
charly: error: command "validate": validation error: skills: skill "install-plan": 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"
$ mv /tmp/cs/install-plan.bak .agents/skills/install-plan    # restored; re-validate rc=0

The maintenance surface is intact. The whole risk of touching this manifest is that a candy:
node disturbs the kind: task entities it already carried:

$ CHARLY_PLUGIN_ONLY=1 charly task list
bootstrap-cue            Ensure ./bin/cue is the pinned cue CLI (checksum-verified download)
bootstrap-protoc         Ensure ./bin has the pinned protoc + protoc-gen-go + protoc-gen-go-grpc
cue-gen                  Regenerate all CUE-owned artifacts, including the protobuf wire contract
proto-gen                Alias for wire-gen
wire-gen                 Regenerate proto/plugin.proto and Go stubs from protocol/schema/*.cue
rc=0

The module's own Go gates, unchanged by a diff that contains no .go file and no .cue file:

$ gofmt -l .                        → (empty)                                          rc=0
$ go build ./...                                                                       rc=0
$ go vet ./...                                                                         rc=0
$ go test ./...                     → 24 packages ok, 13 with no test files, 0 FAIL     rc=0
$ golangci-lint run ./...           → 0 issues                                         rc=0

The linter's toolchain, disclosed rather than hidden. On this host the pinned golangci-lint
v2.13.2 reproduces a typecheck failure against the host's go, a custom
go1.27.3-X:nodwarf5 build whose export-data format (5) is newer than the reader supports (4) —
byte-identical output on the untouched baseline checkout (sdk at 2d50463, clean tree), so it is
environmental 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's go 1.26.0, which is exactly what this repo's CI does (go-version-file: go.mod); with
GOTOOLCHAIN=go1.26.0: 0 issues, rc=0.

Not run, and why: no R10 bed, no image build, no charly task cue-gen run — this diff adds no
schema, no package and no Go file, so a regeneration has nothing new to produce, and there is no
disposable: true target here. charly task verify is not run: this diff touches no submodule, no
gitlink and no pin.

The corpus leg is producer-first and separate. @github.com/opencharly/spec:<module-tag> joins
the marketplace refs list only AFTER this merges and tags, as a DIRECT ref —
plugin-marketplace#41 showed a skill reached only through the closure silently publishes whatever
tag 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

  • R0 — loaded /charly-internals:skills, /charly-internals:git-workflow,
    /charly-internals:cutover-policy, /charly-internals:go before the first edit, and read this
    repo's own AGENTS.md
    (Part II feat(spec): CUE-source ResolvedBox/BuilderMap/AggregatedCandyCaps (#55 step3 unit 3a) #4) first.
  • R1 — both anomalies are classified, not waved through: the linter/toolchain mismatch is RCA'd
    above (environmental, pre-existing, reproduced on the baseline), and the dead-charly/*.go
    citation 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.
  • R2 — one home per body. The carrier's copies are removed by 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), producer-first after this lands; no
    second copy is created here.
  • R3 — no workaround: no --no-verify, no suppression, and the toolchain was fixed by using the
    repo's DECLARED one, not by swapping in a different linter version.
  • R4 — the product statement is corrected alongside the change that falsified it: the header now
    describes the manifest that exists.
  • R5 — the falsified clause is replaced, not merely supplemented:
    grep -n 'owns NO candies' charly.yml returns nothing on this head (rc=1), and the corrected
    sentence is what stands.
  • R6 — git status --porcelain was empty before the branch; one commit, no force-push, no push
    to main, no hook bypass.
  • R7 — the gate's reach is proven by the negative control above, and "it is a move" by sha256 +
    git-blob equality at both ends.
  • R8 — no live-service boundary is crossed.
  • R9 — no Go change; the binary is the worktree-local build and its version matches the source HEAD.
  • R10 — change class below; the gate actually run is pasted above.

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 existing triggers:, and one candy: node is added whose
plan: ships no install content. No runtime code, no schema, no package, no service, no port, no
OCI label, and no .go or .cue file in the diff. Gate: charly box validate (0 warnings, 0
errors) plus the byte-identity, negative-control, task-surface and Go-suite evidence.

Filed issues

A3 — attribution evidence, as delivered in this session

The runtime's own system message reads, verbatim:

You are a coding agent powered by the deepseek-v4.1-flash model.

and

Current DeepSeek Harness implementation checkout: "/home/atrawog/.local/share/mise/installs/node/26.11.1/lib/node_modules/@deepseek-ai/dsh/".

Harness DeepSeek Harness, model deepseek-v4.1-flash — the pair the footer names. This runtime is
the 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)

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

Copy link
Copy Markdown

Review — PASS

I 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)

  • File/count honesty. Body claims 6 files, +1024/−2. Counted: disposable/SKILL.md (+424), install-plan/SKILL.md (+78), deploy-targets.md (+151), emit-opts-and-testing.md (+88), step-kinds.md (+226), charly.yml (+57/−2) = +1024/−2 across 6 files. Exact.
  • "Two trees arrive verbatim." The install-plan tree is 4 files (SKILL.md + 3 references) and disposable is 1 file — matching the body's per-skill file counts (4 / 1). Content is present and internally matches the cited destinations (InstallPlan in spec/spec/install_plan.go, DeployNode.Disposable in spec/spec/charly_methods.go).
  • The disposable citations are reproduced. The skill names spec/spec/charly_methods.go exactly three times (body claims 3), and schema/deploy.cue appears zero times (body claims 0). The charly/classification.go reference is framed as DELETED, consistent with the body's account.
  • Header correction is real and complete. The falsified clause spec owns NO candies/boxes is replaced, not merely supplemented: the diff removes it and the new text describes the concept candy. The body's R5 grep 'owns NO candies' → rc=1 is consistent with the diff.
  • Routing-only skill nodes. disposable-skill and install-plan-skill carry only name/family/owner/triggers — no inline description:/content:, exactly as the body asserts (the drift hazard the body warns about is avoided).
  • No .go / .cue in the diff. True — the diff is exclusively .md and one charly.yml. The body's "no schema/package/runtime change" classification is accurate.

Tests / gate

This is a documentation + manifest change with no Go surface, so the correct gate is charly box validate. The body supplies the before/after outputs (0 candies → 1 candy, distros/builders unchanged at 7/7) and, critically, a negative control: removing .agents/skills/install-plan makes validate fail with skill "install-plan": no body. That demonstrates the gate actually reads the moved bodies rather than passing vacuously — the strongest evidence in the PR. The charly task list output shows the pre-existing kind: task surface (5 tasks) intact, addressing the real risk of a candy: node disturbing the task entities.

Scope & cleanliness

  • The move leaves the carrier's copies in place; the body classifies removal as producer-first follow-up (R2), which is coherent for a relocation PR.
  • The dead charly/*.go citation surface in the moved skills is acknowledged, measured, and filed as #609, and deliberately not repaired here because doing so would falsify the "move not rewrite" byte-identity evidence. That is a defensible, honest disposition rather than an oversight — the follow-up is scoped explicitly.
  • The check: "true" no-op is self-labelled ("the assertion is NOT performed by this command; the real body-existence gate is charly box validate") and is backed by the negative control above, so it is not being passed off as a real assertion.

Security

No secrets, no code, no injection surface, no dependency changes. Nothing to flag.

Residual observations (non-blocking)

  • The disposable SKILL.md carries a pre-existing grammatical fragment ("A you write disposable: true…"). Because the PR's proof is byte-identity, this is correctly carried, not introduced, and belongs in the post-merge read pass the body already scopes.
  • The spec-skill-shelf naming and family: internals are judgment calls, but the body reasons them against the stated class rules and the reasoning is internally consistent; nothing in the diff contradicts it.

The body is unusually candid (it even corrects the dispatch premise about spec/charly.yml and discloses the linter/toolchain mismatch as environmental with a baseline repro). Every checkable claim reproduces against the diff, the gate evidence includes a working negative control, and there is no correctness, honesty, test, security, or scope defect that rises to a block.

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 07:32
@github-actions
github-actions Bot merged commit 965b37f into main Oct 23, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 23, 2026
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — CORRECTION to this PR's body, which tag-on-merge has already written into CHANGELOG/0.2026296.734.md (277 lines, origin/main 070649f). One figure in it is wrong and I will not leave it standing just because the PR is merged.

What is wrong. The ## Filed issues section says:

52 distinct charly/*.go paths are cited by the nine sdk/spec-bound skills and none exists

The 52 is a real count of distinct citations; "none exists" is false. It came from resolving charly/X.go from the umbrella root. The charly repo's Go module is at charly/charly/ inside it, so a prose citation charly/tasks.go means repo charly, path tasks.go — the same convention this PR's spec/install_plan.go uses — and it resolves at charly/charly/tasks.go:

$ ls -d charly/charly ; ls charly/charly/go.mod
charly/charly
charly/charly/go.mod            # module root; there is no charly/go.mod
$ test -e charly/tasks.go        ; echo rc=$?
rc=1                            # what the bad instrument tested
$ test -e charly/charly/tasks.go ; echo rc=$?
rc=0                            # what the prose names — EXISTS

Re-measured: 17 of the 52 exist at charly/charly/<file>; 35 are absent, and each of those is cited in the prose as removed — "the former charly/classification.go is DELETED, K-wave 2", "relocated from charly/install_ledger.go" — which is correct prose, not a stale claim.

Therefore nothing is owed by this PR or by the two skills it moved. install-plan and disposable carry no known-false citation: their live paths (spec/spec/install_plan.go, spec/spec/charly_methods.go, spec/schema/deploy.cue) all resolve, and their historical entries say they are historical. The retraction is recorded in full on opencharly/opencharly#609 (6360119496), which is where the finding lives.

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 (sha256 3e0318aa… for disposable, 89d79d2a… for install-plan, both confirmed against the tag v0.2026296.734), and the spec-skill-shelf candy plus its two routing nodes are what the repo now carries.

I am not hand-editing CHANGELOG/0.2026296.734.md: it is generated from the merged body, and rewriting it would make the repo's history disagree with the tag it was minted at. A reader who needs the corrected figure has this comment and #609. If the operator wants the CHANGELOG itself corrected, that is a deliberate docs: decision for them, not a silent rewrite by me.

Agent: charly

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

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