Repository navigation
fix(skills): own the image-owned debian skill nodes from a debian-skills bundle candy (sdk#434) - #39
Conversation
…debian-skills` bundle candy (sdk#434) `charly box validate` rejected 5 skills because their `owner:` named an IMAGE: a `candy:` node carrying `base:`/`from:` folds into the image set, so it has no source directory, the prose can never be read, and the node is silently absent from the `ai.opencharly.skill` OCI label (opencharly/sdk#434 operator ruling; enforcement in plugin-box#58, tagged v2026.294.0021). This is step 2 for this repo under that ruling, option A with the explicit waiver of the earlier "do not create a new candy" constraint: 16 of the 17 image-owned nodes across the four distro repos have NO local package candy to re-home to (most images compose only `@github` candies; arch, debian, ubuntu, debian-debootstrap and ubuntu-debootstrap compose ZERO), so a bundle candy is the only satisfiable shape. It follows distro-cachyos's `cachyos-*-skills` precedent, extended to a real candy: a skill's `owner:` must resolve in the LAYER set, and a directory of skill nodes is not a candy. - new candy `debian-skills`: the 5 `skill:` nodes move into its manifest with `owner: debian-skills`, and each body moves BYTE-IDENTICALLY (git mv; sha256 checked per body) to candy/debian-skills/.agents/skills/<name>/SKILL.md. - the bundle is composed into every image that carries one of those skills, so each skill still rides the same image — and now reaches `ai.opencharly.skill` for the first time. - the candy carries the prose into the image (`copy: .agents/skills` -> ${HOME}/.agents/skills, the Agent-Skills location a harness in the image reads) and its ADE `check:` proves the install landed. - the repo rulebook named the repo-root `.agents/skills/<name>/` as the bodies' home (`AGENTS.md`, and `README.md` where it restates the layout); both are rewritten from the tree, because the reader resolves `<candy source dir>/.agents/skills/<name>/`. Refs: opencharly/sdk#434 Agent: charly Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)
|
STATUS — PR open, validator pending. Head This repo reaches 0/0 with no residual: it had no body-walk defect, so nothing outside the image-owner class had to be touched. The three defects this leg was told to leave live in the other three repos and are untouched here. Next: awaiting the Agent: charly Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated) |
Review — BLOCKHead SHA: Blocks
Comment thread: empty — nothing to disposition. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…weep) No tree change: the round-1 findings were about the body, and both are now answered by executed evidence rather than prose. - A3/R10: the tier no longer outruns the proof. The base image of this repo was BUILT, its baked ADE `check:` (the one asserting every body the bundle carries landed in the image) PASSES against the built image, and the built image's own `ai.opencharly.skill` label carries the skills. The dependent builder stage the same `box build` then attempted stops on a `ghcr.io` pull this host has no credentials for; that is stated in the body instead of being implied away. - R5/CONC(d): the claim-keyed sweep is pasted with its command and output, not described. Refs: opencharly/sdk#434 Agent: charly Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)
|
STATUS — round 2: both round-1 blocks answered; head RCA of the round-1 BLOCK (the missed control, named). Both findings were one class: the body claimed
What round 2 adds, all executed on this branch.
Re-running the validator on Agent: charly Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated) |
Review — BLOCKHead SHA: Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — round 3: both round-2 blocks answered, and this comment is posted BEFORE the push that RCA — round 2's BLOCK, with the two missed controls named.
Nothing else changed. The tree is untouched (all three rounds' fixes were body-only), so the pushed Re-running the validator. Agent: charly Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated) |
…ent posted first) No tree change: rounds 2 and 3 are body-only, so the pushed tree is the tested tree (`git diff --quiet` against the tested commit returns 0, and the body's provenance sentence no longer names a head sha that a re-freeze could strand). - A1/R10: the `R10:` line no longer carries the pre-build wording that contradicted How tested. It now states what ran: the base image rebuilt with the bundle composed, and its baked ADE `check:` passing against the built image. - R1: the round's RCA comment names the two missed controls (a comment written but not yet posted before the push; a claim restated two sections away and not swept) and is posted BEFORE this push, not after it. Refs: opencharly/sdk#434 Agent: charly Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Security screen: PASS — no T1–T4 finding. The diff is a re-home of skill prose and composition; no secrets, no network egress, no guardrail weakening, no supply-chain change, and no self-modifying-security content. Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — round 4: all three round-2/3 findings fixed in this body; posted BEFORE the push. The findings, and the missed control behind each.
State. The tree is unchanged since the tested commit ( Agent: charly Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated) |
… the diff, no parking phrase) No tree change: this round's fixes are body-only for this repo. - A1/R4: the `README.md` claim is now keyed on what the diff actually contains, so it cannot describe a file the diff does not carry. - R1/CONC(b): the "parked defect named above" clauses render only for a repo that has one; this repo has none, so they are gone. - R1: the round's RCA comment names the missed control (repo-generic prose rendered into a repo without that case; a parking phrase inherited from a sibling) and is posted BEFORE this push, not after it. Refs: opencharly/sdk#434 Agent: charly Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Security screen: PASS — no T1–T4 finding. The diff re-homes skill prose and composition; no secrets, no network egress, no guardrail weakening, no supply-chain change, and no self-modifying-security content. The candy's Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — round 5: the single finding is fixed in the body; posted BEFORE the push. A1/R1 — the R3 home path contradicted the pasted The body also now states the mechanism the finding asked about, since "the check reads State. Tree unchanged since the tested commit ( Agent: charly Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated) |
…rom the pasted COPY)
No tree change: the round-4 finding was body-only.
- A1/R1: the R3 home path is no longer written by hand — the renderer extracts it from the
pasted `COPY` line and asserts it starts with `/home/`, so the sentence quotes the
artifact. The same paragraph now states the mechanism the finding questioned: the
`COPY` destination is `${HOME}` resolved at generate time from the resolved uid-1000
identity, which is the account the ADE check reads back from `/etc/passwd`.
Refs: opencharly/sdk#434
Agent: charly
Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS — no T1–T4 finding. Config-only re-home of skill prose + composition lists + repo docs; no secrets, no network egress, no guardrail weakening, no supply-chain change, no self-modifying-security content. The candy's check reads Checklist: All applicable rules PASS or NA (config class: A1/A2/A3, R0–R10, CONC, HC, ARCH=placement CORRECT, DISP, QUAL, COORD satisfied). Current body is internally consistent with the 13-file diff, the pasted Comments:
Non-blocking note: the dependent Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
… one canonical base (#40) Leg of opencharly/opencharly#557, closing the opencharly/opencharly#566 regression: this repo's bodies were moved to the root at v2026.289.0447 and then moved BACK beside the debian-skills carrier by the sdk#434 re-home (6fddd62, #39), so at its newest tag the tree reads root=0 / candy=5 and the fail-closed corpus refuses the whole marketplace regeneration. A pure git mv from candy/debian-skills/.agents/skills/<name>/ to .agents/skills/<name>/ at this repo's root — the one canonical base both readers resolve after opencharly/sdk#445 — with the candy-dir copy deleted in the same commit: no dual source, no symlink bridge. The carrier candy stays, because it is the `owner:` the five skill nodes name (opencharly/sdk#434). AGENTS.md stated the candy-dir base twice (the canonical-files entry and the editing rule) and the carrier manifest's header stated it a third time; all three are swept here. The carrier's emitted `description:` and its install step are left byte-identical on purpose: the description's `.agents/skills/<name>/SKILL.md` is still true at the root, and the step's `copy: .agents/skills` renders no Containerfile directive at all, identically on the moved and the unmoved tree — opencharly/sdk#444 owns that, and this commit's comment says so instead of hiding it. Proven by blob-SHA object identity (each file's blob is the same object before and after the move), which does not depend on rename detection. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed) Co-authored-by: Andreas Trawoeger <[email protected]>
Summary
This PR re-homes this repo's image-owned
skill:nodes onto one newdebian-skillsbundle candy, moves each body to that candy's.agents/skills/<name>/SKILL.mdunchanged, and composes the bundle into every image that carries one of those skills.The defect.
charly box validaterejected these nodes with "owner<image>is an image, not a candy — acandy:node carryingbase:orfrom:folds into the image set, so it has no source directory and this skill's prose can never be read (it is also silently absent from theai.opencharly.skilllabel)", citing opencharly/sdk#434. The mechanism is structural rather than a missing search path: only a candy model carries a source directory, and the label projection keeps a skill only when its owner is in the image's composed candy chain — so an image-owned node is invisible to the label, not merely unreadable. Re-homing it is therefore the change that makes it reach the label for the first time.Why a new candy, and why that is not scope creep. This is step 2 of the operator's ruling on that issue (step 1, the enforcement, is merged as opencharly/plugin-box#58, tagged
v2026.294.0021). The earlier leg measured across four repos that 16 of the 17 image-owned nodes have no local package candy to re-home to: most images compose only@githubcandies, whoseSourceDiris a read-only cache in another repo, andarch,debian,ubuntu,debian-debootstrapandubuntu-debootstrapcompose zero candies — so "pointowner:at a candy the image already composes" is unsatisfiable here. The operator lifted that constraint and authorised option A, naming the precedent:distro-cachyosalready shipscachyos-app-skills,cachyos-os-skillsandcachyos-selkies-skills. This PR creates that candy for this repo.The precedent had to be extended, and the measurement is the reason. The cachyos
*-skillsdirectories hold skill NODES only — they are not candies, so they cannot be anowner:target at all. A candy is required (askill:owner must resolve in the LAYER set), and a candy must have install content (validateCandyContentsaccepts packages, a builder manifest, acandy:composition,data:, a plugin or anexternal_builder; measured: a check-only plan is rejected with "must have at least one install file"). So the bundle is a real package candy that carries the prose INTO the image —copy: .agents/skills→${HOME}/.agents/skills, the Agent-Skills location a harness inside the image reads — with an ADEcheck:that fails if a body does not land.What moves.
charly.yml→candy/debian-skills/charly.yml: the 5 routing nodes (debian,debian-builder,debian-coder,debian-debootstrap,debian-debootstrap-builder), eachowner: debian-skills, with theirfamily/triggersuntouched.git mvtocandy/debian-skills/.agents/skills/<name>/SKILL.md— 5 of 5 byte-identical, sha256 pasted below.debian-skills; theai.opencharly.skilllabel then carries the skills for the first time (the emittedCOPYandLABELare pasted below).AGENTS.mdsaid the bodies live at the repo-root.agents/skills/; the reader resolves<candy source dir>/.agents/skills/<name>/, so it is rewritten from the tree.README.mddoes not restate the layout, so it is not in this diff.One consequence, stated plainly: the bundle is ONE candy composed by all 5 images, so each image's label carries all 5 of these skills, not only the one it is named after — the sanctioned single-bundle shape. The base image must compose it for its own skill to reach its own label, and candy composition is inherited along the base chain, so the union is structural rather than a shortcut.
Node → bundle candy
skill:nodeowner:(an image)owner:debian-skilldebiandebian-skillsdebian-builder-skilldebian-builderdebian-skillsdebian-coder-skilldebian-coderdebian-skillsdebian-debootstrap-builder-skilldebian-debootstrap-builderdebian-skillsdebian-debootstrap-skilldebian-debootstrapdebian-skillsComposition evidence — each image's own
candy:listThe first line is the list length, the rest are its last three entries — so the final line is the bundle.
The diff
13 files, 118 insertions / 51 deletions: the
0 0rows are the bodies as pure renames, so no body byte is counted as changed.Byte identity —
git mv, sha256 before and afterBoth columns are identical for all 5 bodies: the move is a rename, and no prose was re-typed.
How tested
Every command below ran on the committed tree of this branch (
064a7c5); the baseline is a pristine worktree oforigin/main, and it is the tree this PR pushes:Baseline —
origin/mainis red:5 image-owner errors.
box generateon that tree refuses for the same reason.This tree — the change-class gate:
The emitted artifact —
box generate, then the bundle's own lines in the Containerfile:The
COPYis the install step (the generator emitsmkdir -pimmediately above it). TheLABELline is theai.opencharly.skillprojection, which carried none of these skills before this change: the filter keeps a skill only when its owner is in the image's composed candy chain, and an image is never a member of its own chain.The built image — the new install step EXECUTED.
box build debianbuilds that image and then its dependents; the image itself built, giving this CalVer tag:and its own baked ADE
check:— the one that asserts every body this candy carries landed in the image — passes against it:The built image's own label carries the skills, which is the projection this change exists to reach:
The dependent stage the same command then attempted cannot run in this environment — it pulls the image it just built back from
ghcr.io, which this host has no credentials for — so that leg stops at:The base image's artifacts above are the ones this change alters; the dependent builder image composes the same candy and is unbuilt here, which is stated rather than implied.
R5 evidence — the claim-keyed sweep, run rather than described:
Outside
CHANGELOG/(historical, which R5 permits) the only lines naming.agents/skillsare the corrected ones in this diff, and the repo-root.agents/tree is gone entirely.Negative control — the gate is real, not inert. One body is deleted;
validatemust fail and name the owning candy; then the body is restored:If the gate were inert this returns
rc=0. It returnsrc=1namingowner "debian-skills", i.e. it resolves the body from THIS candy's directory — the property the whole change rests on. After the restore:Rulebook compliance
R0:
/charly-internals:git-workflow,:strict-policy,:cutover-policy,/charly-image:layer,/charly-image:imageand/charly-build:validatewere loaded before the first tool action, and this repo's ownAGENTS.mdwas read before editing it. The gate binary was checked first —strings charly/bin/charly | grep -c 'skills: %v'returned1, so the enforcement is present rather than silently inert (the check is pasted above).R1: the anomaly is the finding itself. The RCA's mechanism is quoted in the Summary (no source directory; the label keeps only composed-candy owners), the missed control was the resolver's silent omission — now a hard error from plugin-box#58 — and the blast radius is every image-owned node in the programme. Everything measured here is fixed in-tree or filed on opencharly/sdk#434; nothing is parked in prose.
R2: one bundle candy per repo and one body per skill — the prose exists once, in the candy that owns it. Each repo carries its own bundle because a
skill:owner must be a candy in the same project; a shared cross-repo bundle would make each repo depend on another repo's candy for its own prose, which is exactly the coupling the ruling removes. Inside a repo the node blocks were cut and re-pasted, never re-implemented.R3: no sleep, retry or suppression anywhere. The negative control is a deletion, not a timing knob; the install is one declarative
copy:, and its destination is${HOME}— resolved at GENERATE time from the image's resolved identity, which is the same uid-1000 account whose home the ADE check reads back from/etc/passwdat check time. So the two paths agree by construction, and here both are/home/user: the emittedCOPYtargets/home/user/.agents/skillsand the check reads/etc/passwdfor uid 1000. On an ADOPT-mode base the same${HOME}resolves to the adopted account's home instead —/home/ubuntuin thedistro-ubuntusibling of this leg, whose emittedCOPYshows it, which is the proof that the destination follows the resolved identity and is not a hard-coded path.)R4: the product comes first — no prose routes around a defect. The one place where the rulebook disagreed with the tree (
AGENTS.md) is corrected in this diff;README.mddoes not restate the layout, so it is untouched. Nocharlybehaviour was worked around: the enforcement message IS the product.R5: the legacy location is deleted, not kept in parallel. No
skill:node that this change moved remains in the root manifest, and the claim-keyed sweep is pasted above (under How tested): outsideCHANGELOG/history the only lines naming it are the corrected ones in this diff.R6:
git statuswas read before staging. One commit on afix/-prefixed branch offorigin/main; no force-push, no--no-verify, no other session's worktree touched and no other open PR on this repo modified.R7: the proof fails without the change and is validated at the boundary that ships: deleting a body makes
box validatereturnrc=1naming the bundle; the generated Containerfile carries theCOPY; the built image's ownLABEL ai.opencharly.skillcarries the skills; and the baked ADE check passes against that built image. Each of the three pasted proofs is the artifact, not a description of one.R8: no live service is involved; nothing is mocked, and nothing is skipped silently.
R9: the gate ran with the worktree-local dev build of
charly— the same binary whose gate-string check returned1; no installed package is read.R10: the change-class gate for a config change ran on the committed tree —
charly box validate(zero warnings) andcharly box generate, and the class's live requirement is met by the fresh build pasted under How tested:box build debian, tagghcr.io/opencharly/debian:2026.294.0134, whose baked ADE check passes against the built image. No disposablecheck-*bed applies to a skill-ownership move; the built base image is the target this change alters, and it was rebuilt and probed.Change classification
config — authored config: a candy manifest,
charly.ymlcomposition lists, the skill bodies' location, and the rulebook lines that name that location. No Go, no schema, no runtime service.Tier: fully tested and validated — the change-class gate passed on the final tree, and the new install step executed against a fresh build of
debian(ghcr.io/opencharly/debian:2026.294.0134), whose baked ADE check passes.Filed issues
Agent: charly
Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)