Skip to content

feat(plugins): publish the content kinds, and adopt the owned-skill chain's pins - #1230

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/content-kinds
Nov 21, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/content-kinds

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The core leg of opencharly/sdk#598. It installs the skills a composed candy owns, as content the skill kind compiles, and it moves the chain's pins.

  • The host publishes which kinds serve owned content. buildCapMeta records ProvidedCapability.contents for a class:kind capability, and capMeta.IsContentKind implements spec.ContentKindCarrier. The validate-word-sets leg publishes those kind words, sorted, as content_kinds. The words are read off each provider's own capability, never a per-kind branch (D-LAW-3, D-LAW-8). That set is what plugin-build's render-prep and plugin-box's validate ask.
  • The pins move together, all merged and tagged:
module before after landed by
github.com/opencharly/spec v0.2026324.1914 v0.2026325.913 opencharly/spec#415
github.com/opencharly/sdk v0.2026324.1928 v0.2026325.921 opencharly/sdk#607
…/plugin-box/candy/plugin-box v0.2026320.2124 v0.2026325.928 opencharly/plugin-box#92
…/plugin-build/candy/plugin-build v0.2026322.2319 v0.2026325.959 opencharly/plugin-build#62, #63
…/plugin-harness-kind/candy/plugin-harness-kind v0.2026288.1214 v0.2026325.1012 opencharly/plugin-harness-kind#13

One pin cannot move alone: the old plugin-box pin calls deploykit.CollectSkillBodies, which the new sdk deletes.

  • charly.yml: the charly-skill-shelf's no-op run: step is deleted. It existed only to satisfy validate's install-content rule, and an owned skill node is install content now (plugin-box#92).
file change
charly/plugin_provider_common.go contents recorded for a kind; IsContentKind
charly/validate_project_host.go content_kinds published, sorted
charly/content_kinds_test.go new: stub providers for a declaring and a non-declaring kind, plus buildCapMeta for a kind and a verb
charly/go.mod, charly/go.sum the five pins
charly.yml the shelf's no-op step
tools/{generate-packages,golden-cloudinit,golden-compile}/go.{mod,sum} round 2: the same shared sdk/spec pins, via charly task mods-tidy

How tested

Head fb033781b023babc81b59856a8baf5e18958e048; git diff --stat --diff-algorithm=myers origin/main...HEAD: 12 files changed, 120 insertions(+), 40 deletions(-). It is rebased onto origin/main 07723ae9. This repo's gate for the class, on that tree, in charly/ with GOWORK=off and GOTOOLCHAIN=go1.26.8:

$ gofmt -l .                       # (empty)
$ go build ./... && go vet ./...   # rc=0
$ go test ./... -count=1           # rc=0, ok=2, FAIL=0
$ golangci-lint run ./...          # 0 issues.

This repo's whole ci.yml go job (round 2), reproduced step for step after charly task mods-tidy (2 step(s), 0 failed, 0 skipped):

$ TMPDIR=/tmp/charly-ci go test ./charly/...                           # rc=0, FAIL=0
$ for d in tools/*/; do (cd $d && GOWORK=off go test -count=1 ./...); done  # rc=0
    --- PASS: TestContractPinsMatchShared
$ gofmt -l charly tools                                                 # (empty)
$ (cd charly && golangci-lint run ./...)                               # 0 issues.
$ for d in tools/*/; do (cd $d && GOWORK=off golangci-lint run ./...); done # 0 issues. each

The round-2 commit touches only the tools/* modules, which are separate from the charly/ module the binary is built from. So the 2026.325.1025 build and its box validate / check-wave-pins proof below are the binary of this head.

R7. Each rule was mutated by a harness that aborts with MUTATION NOT APPLIED unless the change applied, and its test failed:

$ python3 -I mut.py '<rule>' && go test . -run 'ValidateWordSets_PublishesTheDeclaringContentKinds|BuildCapMeta_RecordsContentsForAKindOnly' -count=1
mutation failing test
contents recorded for any class, not only a kind content_kinds_test.go:63: a verb declaring contents: IsContentKind = true … want false
every provider published as a content kind content_kinds_test.go:48: content_kinds = [add-candy addr agent …]
content_kinds sorted in reverse content_kinds_test.go:51: content_kinds = [stubcontentkind skill], want sorted

Dropping the sort call outright only fails to compile (an unused import), so the semantic reverse-sort mutation is the one recorded.

R9. scripts/bootstrap-charly.sh (a plain build, no --dev-plugin) built ./bin/charly, and charly version reports 2026.325.1025, built from this commit. The bootstrap's check-generated-clean printed its documented plugins_refs_generated.go NOTICE: the refs index reads each corpus repo at its default-branch HEAD, which moved with the merges above. It restored the tracked file, and the tree stayed clean.

charly box validate, with that binary, over this repo's whole project:

charly box validate: OK — checked 468 candies, 120 boxes, 52 deploys, 6 distros, 7 builders; 0 warnings, 0 errors

R10. This repo's pin-adoption witness bed check-wave-pins (disposable: true), with that binary:

charly check run check-wave-pins: [check-live] PASS after 1m57.65s
charly check run check-wave-pins: [update] PASS after 35.23s
charly check run check-wave-pins: PASS (steps=6)
check-live: 3 steps: 3 passed, 0 failed, 0 skipped

The run is .check/check-wave-pins/2026.325.1027. It ran with 0 warnings.

The chain end to end, on a dev build of these same trees (2026.325.0457, --dev-plugin for the three plugins, each byte-identical to its merged tag):

Rulebook compliance

  • R0: loaded /charly-internals:git-workflow, /charly-internals:go, /charly-internals:plugin, /charly-internals:capabilities, /charly-internals:strict-policy, /charly-internals:root-cause-analyzer, /charly-internals:skills, /charly-internals:marketplace, /charly-build:validate, /charly-check:check, and the design skill (read by path), plus this repo's AGENTS.md.
  • R1: two anomalies on the way were root-caused, neither in this change. My first start of check-wave-pins was refused by the stale-binary guard. That was correct: my mutation runs had touched validate_project_host.go after the build, so I rebuilt from the committed tree and the bed ran. The guard's printed remedy names the retired task build:binary; that is filed as freshness guard's remedy names the retired 'task build:binary'; the build entrypoint is scripts/bootstrap-charly.sh plugin-doctor#19. Round 2: the required go check failed TestContractPinsMatchShared. I had moved the pins with go get in charly/ only, so three tools/* lockstep modules stayed on the old sdk/spec. The missed control: I gated the charly/ module, not the whole ci.yml go job. Fixed with charly task mods-tidy, and the whole job was rerun (above). validate / arm failed only because go did.
  • R2: one capability flag and one published set. Core names no kind.
  • R3: no workaround: no sleep, no retry, no ceiling bump.
  • R4: box validate and check run work as documented with only the charly binary.
  • R5: the shelf's no-op step is deleted, not left beside the rule that replaced it.
  • R6: git status was clean before the rebase. The branch is feat/content-kinds, off fresh origin/main and current with it (0 behind) before this push. PR-only; no force-push, no hook bypass.
  • R7: every rule in the mutation table (above) is proven by a mutation that applied and failed its test. The emitted binary was checked at its boundary (charly version, above).
  • R8: no service is mocked; the stub providers stand in for plugins in unit tests only.
  • R9: a plain worktree-local build of this commit, 2026.325.1025 (above).
  • R10: check-wave-pins passed on that build with 0 warnings (above).
  • R11 (D-LAW-3, D-LAW-8, D-PLUG-1, M1): owned content is a row of M1. Core records a capability fact and never interprets a kind. The pre-existing D-IR-1 debt (image builds do not consume the IR) is unchanged, and apply mode is Apply mode: local/vm deploys install no owned content (the content kinds are asked only for image builds) sdk#606.

Change classification

Code/config: a host capability record plus module pin adoption. Additive on the wire (content_kinds); no flag, verb or shape is removed from this repo.

Filed issues

Part of opencharly/sdk#598 · tracking opencharly/opencharly#1201.

https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)

…hain's pins

The host half of ops.OpContent (opencharly/sdk#598), and the five pins
of the chain that installs a composed candy's owned skills.

- buildCapMeta records ProvidedCapability.contents for a class:kind
  capability (capMeta.IsContentKind implements
  spec.ContentKindCarrier). The validate-word-sets leg publishes the
  declaring kind words, sorted, as content_kinds. They are read off each
  provider's own capability, never a per-kind branch. That set is what
  plugin-build's render-prep and plugin-box's validate ask.
- The charly-skill-shelf's validate-satisfying no-op run: step is
  deleted: an owned skill node is install content now.
- Pins, all merged and tagged: spec v0.2026325.913 (#415), sdk
  v0.2026325.921 (#607), plugin-box v0.2026325.928 (#92), plugin-build
  v0.2026325.959 (#62, #63), plugin-harness-kind v0.2026325.1012 (#13).
  They move together: the old plugin-box pin calls
  deploykit.CollectSkillBodies, which the new sdk deletes.

Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)
@aitrawog

Copy link
Copy Markdown
Contributor Author

HOLDING

HOLDING — this PR is the core leg of the opencharly/sdk#598 chain. It holds:

CLEARED follows on merge.

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: ade22958b8c6c65b2633111095828aa9da82a1fb (branch: feat/content-kinds)

Security screen: PASS — no secrets/egress, no guardrail weakening, no scope mismatch; the 5 pin bumps point at merged+tagged versions and match go.mod/go.sum exactly. Diff-stat internally consistent: +102/-22 across the 6 files (verified by summing the diffs).
Checklist: All applicable rules PASS or NA. Notable cross-checks that hold: A1 file table accounts for all 6 files; A3 analysed on a live system is an under-claim (safe) against the pasted bed/box evidence; R7 mutation line numbers (content_kinds_test.go:48/51/63) reproduce exactly against the added test; R10 check-wave-pins (disposable: true) ran on the fresh 2026.325.1025 build, and the touched content_kinds path executed live in box validate + distro-arch skill-bodies-installed exit=0; ARCH placement CORRECT (registry-derived capability fact stays in core, consumption in plugin-build/sdk, kind-blind per the boundary law).
Comment disposition: Comment 7061327866 (@aitrawog) — verified-non-blocking; it is a well-formed HOLDING coordination comment (valid closed-set label, names both sides, correct Agent/Assisted-by footers) and raises no review finding.

Verdict: PASS


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

View action run

@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS

STATUS — the review is PASS, but the required go check FAILED, and validate / arm failed with it: its "Head check-runs … fail on any check that did not pass" step saw go. One cause:

--- FAIL: TestContractPinsMatchShared
../../tools/generate-packages/go.mod: requires sdk v0.2026324.1928, but the shared sdk pin is v0.2026325.921 — run `charly task mods-tidy`
(the same for spec, and for tools/golden-cloudinit and tools/golden-compile)

RCA.

  • Mechanism. This repo keeps the tools/* modules on the SAME sdk/spec pins as charly/go.mod, through charly task mods-tidy. I moved the pins with go get inside charly/ only, so three lockstep modules stayed on the old pins.
  • Missed control. I gated the charly/ module, not this repo's whole go job. That job also tests every tools/* module with GOWORK=off -count=1, and lints them. chore(deps): bump plugin-build to v2026.322.2319 #1210, the prior pin bump, is the pattern I should have read for the verb.
  • Blast radius. The pin moved in the tools modules only. The charly/ binary and its proof are unaffected.
  • Root fix. Run charly task mods-tidy: 2 step(s), 0 failed, rewriting exactly tools/{generate-packages,golden-cloudinit,golden-compile}/go.{mod,sum}. Then rerun the whole go job locally, step for step as ci.yml defines it: go test ./charly/... rc=0; every tools/* module rc=0, including --- PASS: TestContractPinsMatchShared; gofmt -l charly tools empty; golangci-lint 0 issues. for charly and for every tools/* module.

The fix lands as one new commit, and the body gains it. From now on, a pin bump here runs mods-tidy and the whole ci.yml go job before the push.

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)

The required go check failed TestContractPinsMatchShared: the
tools/generate-packages, tools/golden-cloudinit and tools/golden-compile
modules still required sdk v0.2026324.1928 / spec v0.2026324.1914 while
charly/go.mod moved to sdk v0.2026325.921 / spec v0.2026325.913. The
previous commit moved the pins with go get inside charly/ only.

charly task mods-tidy adopts the shared pins in every lockstep module
and tidies them. The whole ci.yml go job passes locally: go test
./charly/..., every tools/* module (GOWORK=off -count=1), gofmt over
charly and tools, and golangci-lint over both.

Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: fb033781b023babc81b59856a8baf5e18958e048 (branch: feat/content-kinds)

Security screen: PASS — no secrets/egress, no guardrail weakening, no scope mismatch; the five pin bumps (spec v0.2026325.913, sdk v0.2026325.921, plugin-box .928, plugin-build .959, plugin-harness-kind .1012) are internally consistent across charly/ and all three tools/* modules and match their go.sum hashes. Diff-stat reconciles: 12 files, +120/−40.

Checklist: All applicable rules PASS or NA. Cross-checks that hold: A1 file table accounts for all 12 files; A3 analysed on a live system is an under-claim (safe) against the pasted bed/box evidence; R7 mutation line numbers (content_kinds_test.go:48/51/63) reproduce exactly against the added test, and the reverse-sort mutation is meaningful because the real skill content kind makes content_kinds two-element; R10 check-wave-pins (disposable: true) ran on the fresh 2026.325.1025 build at 0 warnings, and the changed content_kinds path executed live in box validate + distro-arch skill-bodies-installed exit=0; R11 cites D-LAW-3/D-LAW-8/D-PLUG-1/M1, and D-IR-1 debt is pre-existing design debt the diff does not touch (permitted under R11, not a finding); ARCH placement CORRECT (registry-derived capability fact stays in core, consumption in plugin-build/sdk, kind-blind per the boundary law).

Comments: 7061327866 (@aitrawog) — verified-non-blocking (well-formed HOLDING, names both sides, valid footers; coordination metadata). 7061343165 (@github-actions[bot]) — stale-superseded (prior PASS on head ade22958, stat "6 files, +102/−22" superseded by the current 12-file/+120/−40; PASS not authoritative, but its charly/-code claims still reproduce). 7061510769 (@aitrawog) — verified-non-blocking (well-formed STATUS; round-2 RCA names the missed control — gated charly/ module, not the whole ci.yml go job — and the fix is in the current diff via mods-tidy, satisfying R1 review-round evidence).

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 21, 2026 11:01
@github-actions
github-actions Bot merged commit 699510f into main Nov 21, 2026
6 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 21, 2026
@aitrawog

Copy link
Copy Markdown
Contributor Author

CLEARED

CLEARED — merged, tagged v2026.325.1102. The hold passes to the carrier PRs: opencharly/distro-arch first, then opencharly/distro-debian and opencharly/distro-ubuntu.

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Claude Opus 5.5 (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.

1 participant