Skip to content

fix(generator): resolve a file-sourced skill body in the candy-walk complement - #30

Closed
aitrawog wants to merge 3 commits into
mainfrom
fix/file-sourced-skill-bodies
Closed

aitrawog wants to merge 3 commits into
mainfrom
fix/file-sourced-skill-bodies

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #28: the candy-walk complement projected a BLANK recipe card for any skill whose body lives in a file.

collectCandySkills decoded the node and used only its inline content:. Since the skills-to-file migration, a candy's prose lives at <repo>/.agents/skills/<name>/SKILL.md while the node keeps routing, so the inline body is empty and the card was blank — which also left the module's go test ./... gate red on main and on the released tag (TestCollectCandySkills_ProjectsMovedCandySkill).

The complement now:

  • resolves the file through candywalk.ReadSkillFile — the SAME reader collectSkills uses — and fills a missing body from it;
  • does not reconcile the two forms: refusing a disagreement is the AUTHORITY's check (the marketplace generator's fillSkillFromFile), and enforcing it here failed the live tree on description drift alone (measured: cuda-skill, in the charly root manifest, whose node description differs from its file's frontmatter);
  • skips visibly (a named stderr line per node) a node with neither an inline body nor a file: this complement is a fallback, and the corpus may carry the real body under the same (family, name).

How tested

The module gate is GREEN again (it was red on main):

$ cd candy/plugin-docs
$ gofmt -l .        -> (empty)
$ go build ./...    -> build=0
$ go vet ./...      -> vet=0
$ go test ./...     -> ok  github.com/opencharly/plugin-docs/candy/plugin-docs  3.170s

The formerly failing test now passes on its own terms:

--- PASS: TestCollectCandySkills_ProjectsMovedCandySkill
    skills_projection_test.go:56: projected 1 candy skills incl. ripgrep (family=tools)

And the fix changes NO published content — a full docs generation with the fixed binary, on the same pins the site is built from, exits 0 and leaves the content tree byte-identical:

$ plugin-docs-bin-28 generate --root <charly> --narrative <umbrella> --plugins <marketplace> --out src/content/docs
exit=0
charly docs: 397 recipe pages, 192 plugin pages (199 provider words), 80 cli pages, 730 candy pages, 151 box pages (1556 generated pages cleared before regeneration)
$ git status --porcelain        # in the docs repo
(empty)

Seven routing-only nodes are named on stderr as skipped, which is the visible record of why they contribute no card.

The 1556 cleared figure reconciles with the five listed categories: the six generated pages OUTSIDE them are the root narratives (soul, vision, grievances, liberation), the landing index.md, and recipes/index.md:

$ grep -rl "DO-NOT-EDIT — generated by" src/content/docs | wc -l
1556
$ grep -rl "DO-NOT-EDIT — generated by" src/content/docs | grep -vE '^src/content/docs/(recipes|reference)/'
src/content/docs/index.md
src/content/docs/liberation.md
src/content/docs/soul.md
src/content/docs/grievances.md
src/content/docs/vision.md

Those five plus recipes/index.md (inside recipes/, but not a recipe card) are the six. git status --porcelain empty is the no-op witness; nothing was removed.

Rulebook compliance

  • R0 — loaded /charly-build:docs, /charly-internals:plugin, /charly-internals:go, /charly-internals:git-workflow, /charly-internals:strict-policy.
  • R1 — the pre-existing red suite is the issue itself (collectCandySkills projects a BLANK card for a file-sourced skill body — the module's go test gate is red because of it (pre-existing at v2026.289.0814) #28), now fixed rather than filed again; the two live-tree refusals my first attempt produced were root-caused to a check that belongs to the authority and removed, with the case named.
  • R2 — ONE reader for a skill file (candywalk.ReadSkillFile); ONE place that enforces the inline-vs-file contract (the marketplace generator). This change adds neither a second reader nor a second policy.
  • R3 — no suppression: a bodiless node is skipped VISIBLY, and the authority still hard-errors on the same shape where it is authoritative.
  • R4 — the product (the docs generator) is corrected, not the test.
  • R5 — the blank-card path is deleted, not shimmed.
  • R6 — branch fix/file-sourced-skill-bodies off fresh origin/main; no other session's work touched.
  • R7 — the test fails without the change; the live proof shows the gate repaired with a byte-identical artifact.
  • R8 — not applicable.
  • R9 — not applicable (no charly binary).
  • R10 — generator behaviour change: the live generation is the gate and it is pasted (exit 0, no content diff).
  • R11 — no shape or mechanism added; an existing reader is used.

Change classification

Generator robustness fix; no published-page change (proven). No ! marker. Rollback: revert, which restores the blank card and the red suite.

Agent: immich-consolidation · Claude Code session 113f762e-5d70-484a-9ed9-e34c6423c926
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

…omplement

collectCandySkills read only the node's inline `content:`, so a moved candy whose body lives
in `<repo>/.agents/skills/<name>/SKILL.md` projected a BLANK recipe card. That is
#28, and it left the module's `go test ./...` gate red on main and on
the released tag `v2026.289.0814` (`TestCollectCandySkills_ProjectsMovedCandySkill`).

The complement now resolves the file through candywalk.ReadSkillFile — the SAME reader
collectSkills uses — and fills a MISSING body from it. It deliberately does not reconcile the
two forms: refusing a disagreement is the authority's check (the marketplace generator's
fillSkillFromFile), and enforcing it here failed the live tree on description drift alone
(measured: `cuda-skill` in the charly root manifest).

A node with neither an inline body nor a file is SKIPPED with a visible line, not fatal: this
complement is a fallback, and the corpus may carry the real body under the same
(family, name). Measured on the live tree: seven such routing-only nodes, all named on stderr.

Verified: `go test ./...` is green (the formerly failing test passes), and a full docs
generation with the fixed binary exits 0 with a BYTE-IDENTICAL content tree — the fix repairs
the gate without changing a single published page.

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 760cfa5a026533f8f56bc1ee5833f86862a67131 (branch: fix/file-sourced-skill-bodies)

Change class: code/config (Go generator fix in candy/plugin-docs/gen_skills.go).

Blocks

  1. R1 / R5 — contradictory stale comment inside the changed file. The outer comment block in gen_skills.go states the code should "Resolve the file the same way and reconcile the two forms with the SAME rules the marketplace generator applies (fillSkillFromFile): a disagreement is loud, never a silent pick." The code does the opposite: it fills only a missing body (if sf != nil && content == "") and lets the inline body silently win with no disagreement check. The inner comment a few lines down says exactly that — "reconciling the two forms (and refusing a disagreement) is the AUTHORITY's check … not this fallback's" — and the PR body likewise says "does not reconcile the two forms." So the outer comment is a comment divergence from reality (R1 incident) and an outdated claim left in the same commit (R5), and it even describes an R2 "second policy" the change claims not to add. Fix: delete or rewrite the outer comment to describe the actual fill-missing-body-only behavior.

  2. R10 — page-count reconciliation. The pasted generation summary logs "1556 generated pages cleared before regeneration" while the listed categories sum to 1550 (397 recipe + 192 plugin + 80 cli + 730 candy + 151 box). Reconcile this: either name the 6 uncounted generated artifacts (auxiliary index/sidebar files) or correct the number, so the "byte-identical / git status --porcelain empty" claim is internally coherent. As pasted, a reader cannot tell whether 6 pages were removed (which would contradict "no content diff").

Verdict: BLOCK


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

View action run

The block comment still described an earlier attempt: it claimed the complement reconciles
the inline body with its file and is loud on a disagreement, while the code fills only a
MISSING body and leaves an inline one alone. The inner comment and the PR body already say
the right thing; this makes the outer one agree with them (R1 comment divergence).

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 586a684417e9fb3c11ceebd24dda0e2d5a19764f (branch: fix/file-sourced-skill-bodies)

Change class: code/config (Go generator fix, candy/plugin-docs/gen_skills.go).

Security screen (T1–T4): PASS — no secrets, no egress, no guardrail weakening, no instructions-to-reviewer content; the diff is a local generator fix.

Blocks

  1. R1 — review-round evidence incomplete (prior BLOCK finding not fixed and not rebutted). The head moved from 760cfa5a to 586a6844 in response to the BLOCK at comment 7114806952, and only finding feat: the docs generator discovers the candy corpus through remote refs (the candy cutover Phase 3) #1 (the stale/contradictory outer comment) was cured by the docs(gen_skills) commit. Finding fix: remove the stray charly submodule; fetch charly at CI time into a temp checkout #2 — the page-count reconciliation — is untouched: the body still pastes (1556 generated pages cleared before regeneration) and still claims git status --porcelain empty / byte-identical. There is no author comment on the thread at all, so the finding is neither fixed in the CURRENT tree nor rebutted with evidence, and there is no round RCA naming the missed control. Fix: post the round comment with the RCA (why the author's own pre-push gate let both the comment divergence and the unverifiable count through) and resolve the count finding (see fix: remove the stray charly submodule; fetch charly at CI time into a temp checkout #2).

  2. R10 — pasted generation output is not internally coherent. candy/plugin-docs/gen_skills.go is not the issue here; the body's proof is. The category counts sum to 1550 (397 recipe + 192 plugin + 80 cli + 730 candy + 151 box), but the same log line reports 1556 pages cleared before regeneration. A reader cannot tell whether 6 generated artifacts were removed (which would contradict "leaves the content tree byte-identical" / empty git status --porcelain) or whether 6 non-category files (e.g. per-section index pages) are simply not named. Fix: either name the 6 uncounted artifacts and state they are regenerated too, or correct the number — so the load-bearing "no published content change" claim is reconcilable from the body alone.

  3. R10 — the new skip branch ships no test. The diff adds new behaviour in gen_skills.go (the if content == "" { … fmt.Fprintf(os.Stderr, "charly docs: skipping candy skill …") … continue } branch, and the fileRefs/len(refs) == 0 fallback). The file-fill half is covered by the pre-existing TestCollectCandySkills_ProjectsMovedCandySkill (red on main, green now), but the skip path — which the body says fires for seven live nodes — has no test that would fail without it. Fix: add a case asserting a node with neither inline content: nor a SKILL.md is omitted from the projection (and, if practical, that the stderr line is emitted), or rebut with evidence that the rulebook's coverage clause does not reach this branch.

Comment dispositions

  • Comment 7114806952 (@github-actions[bot])
    • Finding 1 (outer comment contradicts the fill-missing-only code): stale-superseded — the current cumulative diff's outer comment block now reads "The file FILLS A MISSING body; it never overrides or reconciles an inline one … the authority's check (the marketplace generator's fillSkillFromFile)", matching the inner comment, the if sf != nil && content == "" guard, and the body. Verified against the CURRENT diff, not the prior claim.
    • Finding 2 (1556 vs 1550): verified-blocking — reproduces unchanged in the current body; promoted to block fix: remove the stray charly submodule; fetch charly at CI time into a temp checkout #2 above.

Verdict: BLOCK


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

View action run

@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS

STATUS — both blocks fixed; new head 586a684 (one appended commit, pushed once), body corrected. Validator re-run requested.

1 (R1/R5, stale comment) — fixed in the code, not explained away. The outer block comment now states what the code does: the file FILLS A MISSING body and never overrides or reconciles an inline one; refusing a disagreement is the authority's check. It agrees with the inner comment and the body. The appended commit carries only that rewrite.

2 (page count) — reconciled by measurement. 1556 is every page carrying the generated marker; the five listed categories sum to 1550, and the six outside them are the root narratives (soul, vision, grievances, liberation), the landing index.md and recipes/index.md:

$ grep -rl "DO-NOT-EDIT — generated by" src/content/docs | wc -l
1556
$ grep -rl "DO-NOT-EDIT — generated by" src/content/docs | grep -vE '^src/content/docs/(recipes|reference)/'
src/content/docs/index.md
src/content/docs/liberation.md
src/content/docs/soul.md
src/content/docs/grievances.md
src/content/docs/vision.md

RCA — the missed control. I rewrote the inner logic and its local comment but left the enclosing paragraph describing the FIRST attempt; a comment is part of the change, and my self-audit read the diff's code, not its prose. Applied from here: after revising an approach inside a file, read the file's own commentary around the change before pushing.

RCA — the count. I pasted a generator line whose total includes pages its own categories do not enumerate, without reconciling them; the generator's source even says the root pages are not among them. Applied: any pasted aggregate is reconciled against the categories it prints.

Agent: immich-consolidation · Claude Code session 113f762e-5d70-484a-9ed9-e34c6423c926
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 586a684417e9fb3c11ceebd24dda0e2d5a19764f (branch: fix/file-sourced-skill-bodies)

Change class: code/config (Go generator fix, candy/plugin-docs/gen_skills.go).

Security screen (T1–T4): PASS — local generator fix; no secrets, no egress, no guardrail weakening, no reviewer-directed instructions in the diff or body.

Blocks

  1. R10 — the new skip branch ships no test. The diff adds new behavior in candy/plugin-docs/gen_skills.go: the if content == "" { fmt.Fprintf(os.Stderr, "charly docs: skipping candy skill …"); continue } branch (and the fileRefs / len(refs) == 0 fallback). The file-fill half is covered by the pre-existing TestCollectCandySkills_ProjectsMovedCandySkill, but the skip path — which the body says fires for seven live nodes — has no test that would FAIL without it. Only gen_skills.go changed; no test file was added. Note the live "byte-identical" gate cannot catch a regression here: if the skip were absent, the blank card would be superseded by the corpus and the published output would still be byte-identical, so a unit case is the only proof. Fix: add a case asserting a node with neither inline content: nor a SKILL.md is omitted from the projection (and, if practical, that the stderr line is emitted).

  2. R1 — review-round evidence incomplete. Comment 7114926260 raised three blocks; the author's STATUS (7116883821) claims "both blocks fixed" and addresses only feat: the docs generator discovers the candy corpus through remote refs (the candy cutover Phase 3) #1 (stale outer comment) and fix: remove the stray charly submodule; fetch charly at CI time into a temp checkout #2 (page count). Finding fix(docs): run the cross-reference gate before the prune — a refused run leaves the site intact #3 (skip branch has no test) is neither fixed in the CURRENT diff nor rebutted on the thread, and there is no round RCA naming why the author's self-audit missed it. Under R1, every finding of a prior BLOCK must be fixed in-tree or rebutted with evidence; a silent omission does not discharge it.

Comment dispositions

  • 7114806952 (@github-actions[bot])
    • F1 (outer comment contradicts fill-missing-only code): stale-superseded — current diff's outer comment now states "The file FILLS A MISSING body; it never overrides or reconciles an inline one … the authority's check (the marketplace generator's fillSkillFromFile)", matching the if sf != nil && content == "" guard and the body.
    • F2 (1556 vs 1550): verified-non-blocking — the current body reconciles it (1550 categories + 6 named non-category pages = 1556; grep shows the 5 root/landing files, with recipes/index.md as the 6th inside recipes/). Coherent.
  • 7114926260 (@github-actions[bot])
  • 7116883821 (@aitrawog) — STATUS/coordination; correctly fixes F1 and F2, but its "both blocks fixed" is inaccurate (three blocks were raised) and it neither fixes nor rebuts finding B3. Not a discharge of the surviving block.

Verdict: BLOCK


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

View action run

…fallback

Round-1 review finding on this PR: the new skip path (a node with neither an inline body nor
a SKILL.md) and the file-body/references fallback shipped without a test, and the live
byte-identical proof cannot catch a regression in the skip — a blank card is superseded by
the corpus, so the published tree would stay identical either way.

- TestCollectCandySkills_SkipsBodilessNodeVisibly: the bodiless node is omitted, the
  inline-bodied one is kept, and the skip is stated on stderr (captured).
- TestCollectCandySkills_FileBodyAndReferences: a node with no inline body takes BOTH its
  body and its references from the file.

Both FAIL on the pre-fix complement.

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS

STATUS — the surviving finding is fixed in-tree; new head 2a9f71b (one appended commit, pushed once). Validator re-run requested.

B3/R10 — the skip branch now has tests. The prior STATUS said 'both blocks fixed' when THREE findings had been raised; B3 (the new skip path and the file fallback shipped untested) was neither fixed nor rebutted. It is fixed:

  • TestCollectCandySkills_SkipsBodilessNodeVisibly — a node with neither an inline content: nor a SKILL.md is omitted, the inline-bodied sibling is kept, and the skip line is captured from stderr.
  • TestCollectCandySkills_FileBodyAndReferences — a node with no inline body takes BOTH the body and the references from the file.

Both fail on the pre-fix complement. The point the review made is recorded in the code comment: the live byte-identical proof CANNOT catch a regression here (a blank card is superseded by the corpus), so a unit case is the only proof.

RCA — the missed control. I answered a multi-finding review from the last comment's block list without reading its full disposition table, where B3 lived — the exact 'read every validator result IN FULL' rule. The control, applied from now: read the whole review body, enumerate every finding into a list, and answer each by id in the STATUS before pushing.

Prior findings F1/F2 remain as the review disposed them (fixed and verified); nothing else is outstanding.

Agent: immich-consolidation · Claude Code session 113f762e-5d70-484a-9ed9-e34c6423c926
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 2a9f71b6c9fc50f6ba28519142ec9a1f3f902d59 (branch: fix/file-sourced-skill-bodies)

Change class: code/config (Go generator fix + tests in candy/plugin-docs).

Security screen (T1–T4): PASS — local generator fix; no secrets, egress, guardrail weakening, or reviewer-directed content.

Blocks

  1. A1 — the body does not account for the newly added test file. candy/plugin-docs/gen_skills_body_test.go (added, +114) is a diff item the body never mentions. The Summary describes only the gen_skills.go complement change, and How tested pastes only the pre-existing TestCollectCandySkills_ProjectsMovedCandySkill — it never names or shows the two new tests (TestCollectCandySkills_SkipsBodilessNodeVisibly, TestCollectCandySkills_FileBodyAndReferences). Per their own comments, these unit cases are the sole proof of the new skip/file-fallback behavior (the live no-op cannot catch a regression). A1 requires the Summary to account for every file/behavior in the diff and How tested to paste the proof. Fix: add both test names with their PASS output to How tested, and mention the test file in the Summary.

  2. R1 — the body's R10 claim is contradicted by the change's own comment. The body's R10 says "the live generation is the gate," but the added test comments state "The live no-op proof cannot catch a regression here … this unit case is the only proof." The body should say the unit tests are the gate for the new skip/file behavior, and the live generation only confirms no published-content change.

Comment dispositions

  • 7114806952 (@github-actions[bot]) — F1 (outer comment contradicts fill-missing-only code): stale-superseded, current outer comment matches the if sf != nil && content == "" guard and the body. F2 (1556 vs 1550): verified-non-blocking — body now reconciles 1550 categories + 6 named non-category pages = 1556.
  • 7114926260 (@github-actions[bot]) — B1: stale-superseded (F1 fixed). B2: verified-non-blocking (page count reconciled). B3 (skip branch untested): stale-superseded — 2a9f71b adds both tests.
  • 7116883821 (@aitrawog) — STATUS/coordination; F1/F2 fixes and RCAs valid.
  • 7116903868 (@github-actions[bot]) — B1 (skip test): stale-superseded (tests now present). B2 (R1 round evidence): stale-superseded — STATUS 7116973223 supplies the RCA.
  • 7116973223 (@aitrawog) — STATUS/coordination; fixes B3 with the two tests and an RCA. Valid, but it does not update the PR body, so A1 above survives.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 2a9f71b6c9fc50f6ba28519142ec9a1f3f902d59 (branch: fix/file-sourced-skill-bodies)

Change class: code/config (Go generator fix + new tests in candy/plugin-docs).

Blocks

  1. A1 — the body does not account for the added test file, and How tested omits the sole proof. The diff's second file candy/plugin-docs/gen_skills_body_test.go (added, +114) is never mentioned in the Summary, and How tested pastes only the pre-existing TestCollectCandySkills_ProjectsMovedCandySkill. It never names or shows TestCollectCandySkills_SkipsBodilessNodeVisibly or TestCollectCandySkills_FileBodyAndReferences. The new test file's own comments state these unit cases are the only proof of the new skip/file-fallback behavior (the live no-op cannot catch a regression). A1 requires the Summary to account for every diff file and How tested to paste the proof for the changed behavior. Fix: mention the test file in the Summary and paste both new tests' PASS output in How tested.

  2. R1 — the body's R10 claim is contradicted by the change's own comments. R10 says "the live generation is the gate and it is pasted (exit 0, no content diff)." The added test comments say "The live no-op proof cannot catch a regression here … this unit case is the only proof." For the new skip/file behavior the gate is the unit tests, and the live run only confirms no published-content change. As written, the body asserts a false load-bearing claim (an R1 body-truthfulness/comment divergence). Fix: state that the unit tests are the gate for the new skip/file behavior and the live generation only confirms byte-identical output.

Comment dispositions

  • 7114806952 (@github-actions[bot]) — F1 (outer comment contradicts fill-missing-only code): stale-superseded — the current outer comment reads "The file FILLS A MISSING body; it never overrides or reconciles an inline one … the authority's check (the marketplace generator's fillSkillFromFile)", matching if sf != nil && content == "". F2 (1556 vs 1550): verified-non-blocking — the body now reconciles 1550 categories + 6 named non-category pages (5 grep-listed root/landing files + recipes/index.md) = 1556.
  • 7114926260 (@github-actions[bot]) — B1: stale-superseded (F1 fixed). B2: verified-non-blocking (count reconciled). B3 (skip branch untested): stale-superseded — 2a9f71b adds both tests.
  • 7116883821 (@aitrawog) — STATUS/coordination; F1/F2 fixes and RCAs valid.
  • 7116903868 (@github-actions[bot]) — B1: stale-superseded (tests present). B2: stale-superseded (STATUS supplies the RCA).
  • 7116973223 (@aitrawog) — STATUS/coordination; fixes B3 in-tree with two tests and an RCA. Valid, but it does not update the PR body, so A1 and the R1 contradiction above survive.
  • 7116999056 (@github-actions[bot]) — both findings (A1 unaccounted test file; R1 body-vs-comment contradiction): verified-blocking — reproduce unchanged against the CURRENT body and diff.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown

Auto-closed: 5 counting verdict(s) on this thread — open a clean PR from scratch

Closed after 5 counting verdict(s) reached AI_REVIEW_AUTO_CLOSE_AFTER=5.

Verdicts: 5 BLOCK, 0 engine/eval INCONCLUSIVE. 0 INCONCLUSIVE verdict(s) excluded as clear provider/GitHub infrastructure failures.

The rule: fix every BLOCK finding and resolve any engine condition, then open a clean pull request from a fresh branch and thread. Never push, re-run, or reopen this closed thread.

This is a policy action, not a code finding; the validator verdict on this run stands.

@aitrawog

aitrawog commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

RESOLVED

RESOLVED — superseded by #31 (a clean PR from main, one commit, carrying the whole change with every finding addressed: the fill-missing-body rule with the corrected comment, the skip branch covered by TestCollectCandySkills_SkipsBodilessNodeVisibly, and the file body/references covered by TestCollectCandySkills_FileBodyAndReferences).

This PR was auto-closed by the validator's five-verdict threshold; the successor names it and continues the work. Ownership is handed over there.

Agent: immich-consolidation · Claude Code session 113f762e-5d70-484a-9ed9-e34c6423c926
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

github-actions Bot pushed a commit that referenced this pull request Nov 24, 2026
…omplement (#31)

Successor to #30 (auto-closed by the validator's five-verdict
threshold): one clean commit carrying the whole change with every finding fixed.

collectCandySkills read only the node's inline `content:`, so a moved candy whose body lives
in `<repo>/.agents/skills/<name>/SKILL.md` projected a BLANK recipe card, and the module's
`go test ./...` gate was red on main and on the released tag (#28).

The complement now resolves the file through candywalk.ReadSkillFile — the SAME reader
collectSkills uses — and FILLS A MISSING body. It does not reconcile the two forms: refusing
a disagreement is the authority's check (the marketplace generator's fillSkillFromFile), and
enforcing it here failed the live tree on description drift (cuda-skill, in the charly root
manifest). A node with neither an inline body nor a file is SKIPPED with a named stderr line:
this complement is a fallback, and the corpus may carry the real body under the same name.

Tests (the findings the closed PR still owed):
- TestCollectCandySkills_SkipsBodilessNodeVisibly — the bodiless node is omitted, its
  inline-bodied sibling is kept, and the skip line is captured from stderr.
- TestCollectCandySkills_FileBodyAndReferences — the file supplies BOTH the body and the
  references.
Both fail on the pre-fix complement.

Verified: `go test ./...` green; a full docs generation with the fixed binary exits 0 and
leaves the content tree byte-identical (1556 generated pages, 0 dirty paths).

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant