Skip to content

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

Done

Description

@aitrawog

What happens

TestCollectCandySkills_ProjectsMovedCandySkill fails, and the module's go test ./... gate is red for every PR:

$ cd candy/plugin-docs && go test -run TestCollectCandySkills_ProjectsMovedCandySkill -v .
charly: resolving github.com/opencharly/layer-ripgrep:v2026.314.0709 (0 resolved, 0 queued)
    skills_projection_test.go:49: ripgrep skill body empty — the projected card would be blank
--- FAIL: TestCollectCandySkills_ProjectsMovedCandySkill (1.41s)
FAIL

Reproduced unchanged on the RELEASED tag the docs deploy pins (git clone --branch v2026.289.0814), so it predates #27 and is not introduced by it.

Mechanism

collectCandySkills decodes the candy skill: entity and uses its inline content: as the card body. Since the skills-to-file migration, a candy's prose lives in a FILE (<repo>/.agents/skills/<name>/SKILL.md) while the node keeps only routing, so the inline content is empty and the projected card is blank. collectSkills already resolves the file form through candywalk.ReadSkillFile; the candy-walk complement does not.

Fix direction

Resolve the body the same way collectSkills does — candywalk.ReadSkillFile against the owning candy's skill tree (its skills: declaration, default .agents/skills) under Entity.SourceRoot — and keep the inline body only when no file exists. The marketplace generator does exactly this in fillSkillFromFile (opencharly/plugin-marketplace), including the "inline body disagrees with its file" error.

Why it matters

  • The module's own go test ./... gate cannot go green, so every PR here carries a red suite and the failure hides new ones.
  • Any moved candy whose skill body has migrated to a file projects a BLANK recipe card — the class this complement exists to prevent.

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)

Activity

  1. added
    category:delivery
    type:fix
    on Nov 23, 2026
  2. aitrawog commented on Nov 24, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED

    RESOLVED — closed by #31 (merge e4356367, tagged v2026.328.0000).

    collectCandySkills now resolves a file-sourced skill body through candywalk.ReadSkillFile and fills a MISSING body; a node with neither an inline body nor a file is skipped with a named stderr line rather than projecting a blank card. The module's go test ./... gate is green again, and the two new tests pin the behaviour: TestCollectCandySkills_SkipsBodilessNodeVisibly and TestCollectCandySkills_FileBodyAndReferences. A full docs generation with the fixed binary leaves the published 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:deliverytype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions