Skip to content

the docs generator re-publishes a retired skill: its candy-walk complement ignores the corpus's retired.cue, so immich-ml returns after the corpus stopped publishing it #27

Done

Description

@aitrawog

What happens

The docs generator re-publishes a skill the corpus has retired, because it MERGES the corpus with a remote-aware candy walk that follows stale pins.

Measured on 2026-11-23, after the corpus stopped publishing immich-ml (opencharly/marketplace#644, retired.cue) and the umbrella advanced to that corpus (opencharly/opencharly#1252):

  1. The corpus checkout at the docs pins (marketplace gitlink b9f7a5e, the newest published corpus) carries exactly two immich skills:

    $ ls marketplace/immich/skills/
    immich  immich-layer
    

    and a probe of the generator's OWN corpus read agrees — collectSkills returns 361 skills, and for the immich plugin only immich and immich-layer.

  2. Yet plugin-docs-bin generate WRITES recipes/immich/immich-ml.md, byte-identical to the pre-retirement page:

    $ plugin-docs-bin generate --root <charly @ bd82136> --narrative <umbrella @ c3fffc2> \
        --plugins <docs>/marketplace --out <fresh empty dir>
    $ ls <fresh>/recipes/immich/
    immich-layer.md  immich.md  immich-ml.md
    
  3. The mechanism is generate():

    skills, err := collectSkills(pluginsDir, market)          // the corpus: no immich-ml
    candySkills, err := collectCandySkills(rawEnts)           // the remote-aware candy walk
    skills = dedupeSkills(skills, candySkills)                // the walk re-adds it

    The complement exists for a moved candy whose regeneration has not landed yet, and the corpus is authoritative only for a skill it ALREADY carries. A skill the corpus has RETIRED is by definition absent, so the walk always wins — through the same stale subpath pins that the corpus closure follows a fetched tree's non-corpus manifests, so a retired repo republishes its skill: measured, immich-ml survived its refs-list deletion plugin-marketplace#63 measured (pod-dsh@…/charly.yml:18-20, layer-agentteams@…/box/cachyos-base/charly.yml:39 reaching old distro-* trees that compose pod-immich-ml, whose charly.yml declares immich-ml-skill).

Why this blocks the docs projection

The opencharly/docs deploy regenerates and FAILS on any diff, so a docs PR that bumps the pins to the retired corpus cannot ship while the generator re-emits the retired page: the regenerated tree keeps recipes/immich/immich-ml.md (and links to it), so the site still advertises the retired thing the whole cutover removed.

Fix direction

The retirement policy is DATA, and it already lives in one place: retired.cue at the corpus root (#Retired, opencharly/plugin-marketplace#65). The candy-walk complement should honour it — a skill whose owning repo the corpus has retired is never contributed by collectCandySkills. --plugins already points at the corpus checkout, so the list is right there next to marketplace.json.

A narrower alternative — restrict the complement to refs that a live (non-stale) tree declares — was measured as impossible in opencharly/plugin-marketplace#63: it removed 6–11 PUBLISHED skills, because a retired repo and a live repo reachable only through an old tree have the same shape.

Scope

  • No corpus or charly change is needed; the data exists.
  • Until this lands, the docs site keeps the retired immich-ml recipe and the reference/box/*/immich-ml pages the pin bump would otherwise remove.

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. aitrawog commented on Nov 23, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED

    RESOLVED — closed by #29 (merge 609f0dbd, tagged v2026.327.1807): the candy-walk complement now reads the corpus's retired.cue through loadRetired (closed-shape validation) and collectCandySkills skips any entity whose fetched tree is a retired repo.

    Measured on the real inputs: with the corpus at b9f7a5e (which no longer publishes immich-ml), the generation wrote recipes/immich/immich-ml.md before the fix and does not emit it after; the end-to-end run into the docs tree exits 0 with recipes/immich/ holding only immich and immich-layer (397 recipe pages), and opencharly/docs#222 carries that regenerated site. The residual blank-card defect for file-sourced skill bodies is tracked separately as #28.

    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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions