Skip to content

fix(skills): the mise body moves BESIDE its candy, where the loader actually reads it - #18

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/skill-beside-candy
Oct 20, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/skill-beside-candy

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Moves .agents/skills/mise/SKILL.md to candy/plugin-mise/.agents/skills/mise/SKILL.md — beside the candy that owns the skill, which is the directory the loader reads.

Why. sdk/deploykit/skills_collect.go resolves the tree as filepath.Join(layer.GetSourceDir(), ".agents/skills"), and GetSourceDir() is the owning candy's directory. This skill's node is declared in candy/plugin-mise/charly.yml, so the loader looks in candy/plugin-mise/.agents/skills/. The body was left at the repository root, where nothing reads it — and because the earlier migration also removed the inline content:, the node had no body at all at build time.

This is a pure move: the SKILL.md content is unchanged and the manifest is untouched. The diff is 0 insertions and 0 deletions — a rename, {.agents => candy/plugin-mise/.agents}/skills/mise/SKILL.md.

How tested

Change class: config. The move keeps the tree valid:

$ git -C plugin-mise ls-tree -r --name-only origin/main | grep -c '^box/.*charly.yml$'
0

That is the repo-local fact this PR relies on: the repo authors no boxes, so no build inside it can exercise the
loader. The tree is still valid after the move:

$ charly box validate
charly box validate: OK — checked 3 candies, 16 boxes, 8 deploys, 7 distros, 7 builders; 0 warnings, 0 errors
$ echo $?
0

Read that line for what it is. It reports the boxes in this repo's project view — inherited and resolved
from elsewhere — not the boxes this repo authors. It is evidence that the move leaves the tree valid; it is not
evidence about this repo's buildability, and the 0 above is.

The rename is exact — git records it as a pure rename with no content change:

$ git diff --numstat origin/main HEAD
0	0	{.agents => candy/plugin-mise/.agents}/skills/mise/SKILL.md

The read proof, demonstrated on the identical shape in another repo. This repo is candy-only (no box/
tree), so the loader cannot be exercised inside it without a consumer build. The same correction was proven end to
end on opencharly/layer-nerdctl#8, whose skill node also lives in candy/<name>/charly.yml:

$ charly box build check-nerdctl-app
build rc=0
$ charly box labels check-nerdctl-app
labels rc=0
ai.opencharly.skill=[{"family":"distros","name":"layer-nerdctl","owner":"layer-nerdctl"}
name=layer-nerdctl owner=layer-nerdctl content_len=1425
file body_len=1424  EQUAL=True

and its negative control — the same manifest deletion with the file at the repository root:

charly: error: command "build": render-prep check-nerdctl-app: skill "layer-nerdctl":
no body — the node carries no in-line content: and no SKILL.md exists under .agents/skills
beside the owning candy "layer-nerdctl"

What this PR does NOT claim: it does not paste a box labels run from this repo, because the repo authors no
image to build. That is stated rather than implied, and it is why the attribution tier is not
fully tested and validated.

Rulebook compliance

  • R0: loaded before the first action: /charly-internals:skills, /charly-internals:git-workflow, /charly-internals:cutover-policy.
  • R1: the finding — a "migrated" skill with no body at build time — was root-caused in the loader (GetSourceDir()), and this PR is the correction for this repo. The four sibling repos in the same state are tracked in the programme ledger and get the same correction.
  • R2: no duplication — the body exists once, in the place the loader reads.
  • R3: no workaround. The file moved; nothing was made to tolerate the wrong path.
  • R4: product before prose — the loader's resolution decided the location.
  • R5: no legacy path left — the root .agents/ tree is removed rather than kept as a duplicate. The claim-keyed check is the rename line above, which shows the old path gone.
  • R6: git status read first; one branch off origin/main, one commit, no force-push, no amendment, no push to main.
  • R7: the proof exists and is pasted — on layer-nerdctl#8, a build whose label body equals the file. This repo cannot originate that proof, and says so.
  • R8: no live service boundary.
  • R9: worktree-local CalVer build 2026.289.1441, not a shared install.
  • R10: config change; charly box validate passes on the committed tree with 0 warnings, 0 errors. The live-load proof for this repo's shape is layer-nerdctl#8; a consumer build here is not performed.

Change classification

Config — a pure file move so the loader resolves the body.

Filed issues

  • opencharly/opencharly#522 — the migration wave tracker.

Agent: charly

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

…ctually reads it

The loader resolves the skill tree as layer.GetSourceDir() + .agents/skills, and for a skill declared in
candy/plugin-mise/charly.yml that is candy/plugin-mise/. The body was left at the repository root, so at
build time the node had no body at all: content: was gone and the file was somewhere the loader never
looks.

This is a pure move: the SKILL.md content is unchanged, the manifest is untouched.
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: dec9de54d1ed09f0808a02e533ff8015eaf6b9d7 (branch: fix/skill-beside-candy)

Change class: config (pure rename).
Placement: CORRECT — the skill body moves beside its owning candy, matching the loader’s GetSourceDir() resolution; no layer movement.
Comments: none.

Blocks

  1. A1/R10 — pasted charly box validate evidence contradicts the body. The body states this repo is “candy-only (no box/ tree)”, but the pasted output claims checked 3 candies, 16 boxes, 8 deploys, 7 distros, 7 builders. A repo with no box/ tree cannot produce those counts; the output appears to come from a different repo. That leaves the only in-repo gate for this rename unverified. Re-run charly box validate in opencharly/plugin-mise on this head and paste the actual output, or explain the counts and show the command context. If the repo truly has no box tree, the output must reflect that.

Verdict: BLOCK


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

View action run

@aitrawog aitrawog closed this Oct 20, 2026
@aitrawog aitrawog reopened this Oct 20, 2026
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: dec9de54d1ed09f0808a02e533ff8015eaf6b9d7 (branch: fix/skill-beside-candy)

Security screen: PASS — pure 0/0 rename, no secrets/egress/guardrail changes, no embedded directives.
Checklist: All applicable rules PASS or NA.
Comments: 1 considered — 6288280081 (@github-actions[bot]): stale-superseded. Its premise (a repo with no authored box/ tree cannot report 16 boxes) is reconciled by the current body's project-view explanation, and the independent layer-nerdctl#8 build + labels proof (body_len == file body_len, plus the "no body" negative control) carries the loader-behavior evidence; the diff confirms the pure move {.agents => candy/plugin-mise/.agents}/skills/mise/SKILL.md.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 20, 2026 09:59
@github-actions
github-actions Bot merged commit f255b9c into main Oct 20, 2026
1 of 2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 20, 2026
github-actions Bot pushed a commit that referenced this pull request Oct 22, 2026
…ader now looks (#19)

sdk#445 moved deploykit's skill base from the owning candy's directory to the owning candy's
REPO ROOT: filepath.Join(repoRoot, ".agents/skills"). This commit is the mirror image of #18
(2026.293.0959), which moved the body BESIDE the candy under the old base -- so under the new
reader the node has no body at all, and `charly box validate` at this repo's main says exactly
that (rc=1, naming the repo root).

Pure move: the SKILL.md blob is byte-identical before and after (c5a224f), the candy
manifest is untouched, and the candy-dir copy is deleted in this same commit.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

Co-authored-by: Andreas Trawoeger <[email protected]>
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