Skip to content

feat(validate)!: the content kinds own their nodes' rules; an owned skill node is install content - #92

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/skill-owner-is-install-content
Nov 21, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/skill-owner-is-install-content

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

The validate engine's half of opencharly/sdk#598.

  1. The content kinds own their nodes' rules. validate_skills.go is DELETED. Its rules (an image owner, sdk#434; a body that does not exist at the owner's repo root, No in-repo gate exercises skill-body collection for repos that author no box opencharly#530) belong to kind:skill (opencharly/plugin-harness-kind, D-PLUG-1), which also installs and labels the skills, so the gate and the build read one rule. The engine now asks every content kind (the host's content_kinds) in project scope through InvokeProvider ops.OpContent, and reports each diagnostic as kind "<word>": <diagnostic>. A kind that cannot be asked is itself a finding, never a silent pass.
  2. An owned skill node is install content. validateCandyContents accepts a candy whose only content is the skill: nodes it owns (the build installs their bodies), so a skill carrier needs no install step of its own.

The check-box-local bed gains box-skill-owner-is-install-content, and its box-skill-image-owner step passes unchanged against the moved rules (its comment updated). The validate skill's install-source list names owned skill nodes.

file change
candy/plugin-box/validate_owned_content.go, validate_owned_content_test.go new — the project-scope dispatch
candy/plugin-box/validate_skills.go, validate_skills_test.go deleted — the rules moved to kind:skill
candy/plugin-box/validate.go the dispatch call; content_kinds folded onto the envelope
candy/plugin-box/validate_rules.go, validate_skill_owner_test.go owned skill node = install content
charly.yml the bed step; a comment
.agents/skills/validate/SKILL.md the install-source list
candy/plugin-box/go.mod, go.sum the merged spec v0.2026325.913 and sdk v0.2026325.921

How tested

Head 5f19dfc771dd1fa27c3c99c6c70362804e77cb87; git diff --stat --diff-algorithm=myers origin/main...HEAD: 11 files changed, 296 insertions(+), 356 deletions(-). This repo's gate, in candy/plugin-box/, on that tree against the PUBLISHED pins (GOWORK=off, GOTOOLCHAIN=go1.26.8):

$ GOWORK=off go test ./... -count=1     # ok  plugin-box
$ GOWORK=off golangci-lint run ./...    # 8 issues — exactly the pre-existing set filed as opencharly/plugin-box#91 (`errcheck: 6`, `ineffassign: 2`), none in a file this PR changes

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>' && GOWORK=off go test . -count=1
mutation failing test
diagnostics not reported TestValidateOwnedContent_AsksInProjectScopeAndReportsEveryDiagnostic
failed ask not reported TestValidateOwnedContent_AnUnaskableKindIsAFinding
a box-scope request sent instead of project scope TestValidateOwnedContent_AsksInProjectScopeAndReportsEveryDiagnostic
the owned-skill clause removed TestSkillOwnerIsInstallContent; live: check-box-local on the current binary goes 10 passed, 1 failed (the new step)

Live (a worktree-local dev build stamped 2026.324.2014 over this branch and the rest of the opencharly/sdk#598 chain):

  • Remote import. From pod-kde-cstream, which imports distro-arch REMOTELY, charly box build arch.arch failed before ("/.agents/skills": not found) and succeeds after, with COPY --chown=1000:1000 .build/_content/arch.arch/ /home/user/ staging the six SKILL.md files the ai.opencharly.skill label also names.
  • In-image, skill-bodies-installed PASS with 1 step: 1 passed, 0 failed, 0 skipped, on the exact image just built: arch:2026.325.0437, debian:2026.325.0859 and ubuntu:2026.325.0902.
  • Validate. plugin-box check-box-local: 11 steps: 11 passed, 0 failed, 0 skipped; charly box validate is clean on every changed repo.

Rulebook compliance

  • R0: loaded /charly-internals:git-workflow, /charly-internals:plugin, /charly-internals:go, /charly-internals:strict-policy, /charly-internals:root-cause-analyzer, /charly-build:build, /charly-build:generate, /charly-build:validate, /charly-image:image, /charly-check:check, /charly-internals:skills, /charly-internals:marketplace, /charly-internals:capabilities, and the design skill (read by path), plus this repo's AGENTS.md list.
  • R2: one kind-agnostic op (ops.OpContent), the one shared request builder (deploykit.OwnedContentRequestFor), and one candy projection (deploykit.ProjectCandy). No rule is restated in a second place.
  • R3: no workaround: no carrier copy step, no ../ source, no special-cased kind word.
  • R4: box build / box validate behave as documented, and the skill install is now real.
  • R6: git status clean before branching; branch off fresh origin/main (0 behind before this push); PR-only, no force-push, no hook bypass.
  • R8: no service is mocked in the live runs; only unit tests fake the peer.
  • R9: the live runs used a worktree-local dev build stamped 2026.324.2014; this repo's gate ran on this exact commit against the PUBLISHED spec v0.2026325.913 and sdk v0.2026325.921.
  • R10: this repo's gate passed on this commit, and the changed path ran live end to end (How tested). The disposable acceptance beds re-run on the merged pins.
  • R1: RCA before every fix; the 8 lint findings were attributed file by file to untouched files and filed (golangci-lint: 8 pre-existing errcheck/ineffassign findings on main, and no lint in CI #91).
  • R5: validate_skills.go and its private decode/filter helpers are deleted, not kept beside the dispatch.
  • R7: each rule in the mutation table (above) is proven by a mutation that applied and failed its test, and the bed step fails on the pre-change engine (above).
  • R11 (D-PLUG-1, D-LAW-3): the engine dispatches by kind word, and the rules live in the kind's plugin.

Change classification

Breaking change + rollback: a skill-node diagnostic is reported as kind "skill": skill "<n>": … where it used to read skills: skill "<n>": …. The diagnostic's text after the prefix is unchanged, so every substring the check-box-local bed asserts still matches. Rollback: revert this PR and its pin bump; there is no data change.

Filed issues

Part of opencharly/sdk#598 · contract opencharly/spec#415 · kit opencharly/sdk#607 · 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)

…kill node is install content

Two halves of opencharly/sdk#598. (1) validate_skills.go is DELETED: its skill rules (an image owner, sdk#434; a body that does not exist at the owner's repo root, opencharly/opencharly#530) belong to kind:skill (opencharly/plugin-harness-kind, D-PLUG-1), which is also what installs and labels the skills. The engine now asks every content kind (the host's content_kinds) in PROJECT scope through InvokeProvider ops.OpContent and reports each diagnostic as kind "<word>": <diagnostic>; a kind that cannot be asked is itself a finding. The check-box-local box-skill-image-owner step passes unchanged against the moved rules. (2) validateCandyContents accepts a candy whose only content is the skill: nodes it owns (charly installs their bodies), so a skill carrier needs no install step; box-skill-owner-is-install-content proves both directions and fails on the pre-change engine. The validate skill's install-source list names owned skill nodes.

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 is one of the three consumers of opencharly/sdk#607 in the opencharly/sdk#598 chain. It holds opencharly/charly (which pins it), then the carriers in opencharly/distro-arch, opencharly/distro-debian and opencharly/distro-ubuntu, and with them owui-full-stack's CachyOS whisper build (opencharly/opencharly#1204). 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

Review — PASS

Head SHA: 5f19dfc771dd1fa27c3c99c6c70362804e77cb87 (branch: feat/skill-owner-is-install-content)

Security screen: PASS — no secrets/egress/obfuscation, no embedded directives aimed at the validator; this is product code (plugin-box validate engine), not this gate's spec or the rulebook, so T4 sign-off is not triggered.
Checklist: All applicable rules PASS or NA. (R7 mutation table and live bed counts are internally consistent — 10+1 = 11 steps, named tests all exist in the diff; the 8 pre-existing lint issues are attributed to untouched files and filed as #91, and are the mechanical gate's concern, not a prose block; the "acceptance beds re-run on the merged pins" is the downstream carrier chain that cannot run pre-merge, while the required in-repo beds ran with pasted output.)

Comment disposition: Comment 7060553387 (@aitrawog) — HOLDING is a valid coordination label naming both the upstream (opencharly/sdk#607) and the held items (charly, distro-arch/debian/ubuntu); coordination metadata, not a review finding and not a sign-off.

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 09:27
@github-actions
github-actions Bot merged commit faac241 into main Nov 21, 2026
3 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 and tagged v2026.325.0928. opencharly/charly pins this together with opencharly/plugin-harness-kind#13 and opencharly/plugin-build#63, once both land. Core cannot take one plugin pin alone: its current pins must all move to the merged sdk at once.

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