Skip to content

fix(generator): honour the corpus's retirement list in the candy-walk complement - #29

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/honour-retired-corpus
Nov 23, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/honour-retired-corpus

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

The docs generator now honours the corpus's retirement list, closing #27.

generate() merges the corpus's skills with the candy skill: entities a remote-aware walk collects (collectCandySkills), keeping the corpus's copy when both exist and the walk's when the corpus lacks it. A skill the corpus has retired is absent from the corpus by definition, so the walk always won it back: after opencharly/marketplace#644 retired pod-immich-ml, this generator still wrote recipes/immich/immich-ml.md from the retired tree — reached through the stale subpath pins opencharly/plugin-marketplace#63 measured.

The policy is data in ONE place, retired.cue at the corpus root, and --plugins already names that checkout:

  • retired.go reads and validates it against the same CLOSED shape the generator's #Retired defines (three lines, restated here because this module must not depend on the marketplace plugin). A missing list is a no-op; a malformed one is fatal, never "nothing retired".
  • collectCandySkills skips every entity whose fetched export tree is a retired repo (Entity.SourceRoot); a local entity is never retired by a repo list.

How tested

The module gates:

$ cd candy/plugin-docs
$ gofmt -l .        -> (empty)
$ go build ./...    -> build=0
$ go vet ./...      -> vet=0

New tests, by name:

  • TestCollectCandySkills_SkipsRetiredRepo — a retired repo's skill is NOT projected while a live one and a local one are. FAILS WITHOUT THE CHANGE (the walk projected every entity it reached).
  • TestParseRetired — the @ form, an empty list, the closed-shape rejection of an unknown field, an unqualified path.
  • TestLoadRetired_AbsentIsEmptyAndMalformedIsFatal.

The live proof, on the real inputs (corpus at b9f7a5e, charly at bd82136, umbrella at c3fffc2e), after opencharly/pod-postgresql#6, opencharly/pod-redis#4 and opencharly/layer-vectorchord#12 removed the last three references to the retired address:

$ plugin-docs-bin generate --root <charly> --narrative <umbrella> --plugins <corpus> --out <docs content>
exit=0
charly docs: 397 recipe pages, 192 plugin pages (199 provider words), 80 cli pages, 730 candy pages, 151 box pages ...
$ ls <docs content>/recipes/immich/
immich-layer.md  immich.md          # immich-ml.md no longer emitted

Before the change the same run emitted immich-ml.md byte-identical to the pre-retirement page.

The suite is red for one PRE-EXISTING failure, filed as #28 and reproduced unchanged on the released tag v2026.289.0814:

--- FAIL: TestCollectCandySkills_ProjectsMovedCandySkill
    skills_projection_test.go:49: ripgrep skill body empty — the projected card would be blank

It is collectCandySkills projecting a BLANK card for a skill whose body lives in a file — independent of the retirement filter (the pre-existing test passes nil for the retired set), and not introduced here.

Rulebook compliance

  • R0 — loaded /charly-build:docs, /charly-internals:plugin, /charly-internals:go, /charly-internals:git-workflow, /charly-internals:strict-policy.
  • R1 — the anomaly was root-caused to the merge in generate(), not to the corpus; the residual pre-existing failure is filed as 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 with the released-tag reproduction.
  • R2 — the retirement policy has ONE home (the corpus's retired.cue), shared by both generators; the closed shape is restated in three lines with the dependency direction stated, not duplicated as a second policy.
  • R3 — no fallback that hides a defect: a malformed list is fatal, and an address to a retired skill still FAILS the link gate until its source is fixed (that is how the three sibling PRs were found).
  • R4 — the product (the corpus and the site) is corrected by removing the policy gap, not by teaching the generator to skip a broken link.
  • R5 — no legacy path: the filter applies to every entity the walk contributes, and the retired page disappears rather than being patched.
  • R6 — branch fix/honour-retired-corpus off fresh origin/main; no other session's work touched.
  • R7 — proven live: the page is gone and the run exits 0 on the real inputs; the unit test fails without the change.
  • R8 — not applicable (no live service).
  • R9 — not applicable (no charly binary).
  • R10 — the change class is a generator behaviour change; the live generation IS the gate for it, pasted above.
  • R11 — no new shape: the generator CONSUMES the marketplace's #Retired contract; it adds no field, kind or mechanism.

Change classification

Behaviour change in the generator; additive in every other respect (with no retired.cue the output is byte-identical). No ! marker. Rollback: revert, which restores the retired page on the next generation.

Filed issues

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)

… complement

generate() merges the corpus's skills with the candy `skill:` entities a remote-aware walk
collects, keeping the corpus's copy when both exist and the walk's when the corpus lacks
it. A skill the corpus has RETIRED is absent from it by definition, so the walk always won
it back: after opencharly/marketplace#644 retired pod-immich-ml, this generator still wrote
recipes/immich/immich-ml.md from the retired tree, reached through the stale subpath pins
opencharly/plugin-marketplace#63 measured.

The retirement policy is data in one place, retired.cue at the corpus root, and --plugins
already names that checkout. loadRetired validates the file against the same closed shape
the generator's #Retired defines (restated in three lines because this module must not
depend on the marketplace plugin), and collectCandySkills skips every entity whose fetched
tree is a retired repo. A missing list is a no-op; a malformed one is fatal.

Measured with the real inputs (corpus at b9f7a5e, charly at bd82136, umbrella at
c3fffc2e): recipes/immich/ no longer contains immich-ml.md, and the run proceeds to the
link gate, which then reports the three dangling references to the retired address that
opencharly/pod-postgresql#6, opencharly/pod-redis#4 and opencharly/layer-vectorchord#12
remove at their sources.

Pre-existing, filed separately (#28): collectCandySkills projects a
blank card for a skill whose body lives in a file, so the module's go test gate is red
independently of this change; the failure reproduces on the released tag.

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 — PASS

Head SHA: 54aeab497e09799a637c15034b8922a1cdd0190d (branch: fix/honour-retired-corpus)

Security screen: PASS — no secrets, no network/exec added, no weakened guardrails; the new code only reads a local retired.cue and validates it against a closed CUE shape.
Checklist: All applicable rules PASS or NA.

Change class: generator behaviour change inside the plugin-docs candy (Go module) — the correct gate is the module build/vet + live generation, which the body pastes.

Non-blocking notes (not blocks):

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 23, 2026 18:07
@github-actions
github-actions Bot merged commit 609f0db into main Nov 23, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 23, 2026
github-actions Bot pushed a commit to opencharly/docs that referenced this pull request Nov 23, 2026
…ired corpus (#222)

The site's three pinned inputs advance together and the generated half is regenerated from them:

- CHARLY_PIN -> bd82136f877c4002f2da6b7a6057f4540fd9b4a3, whose distro-cachyos pin
  (v2026.326.1804) no longer carries box/immich-ml, so the box recipes stop being generated;
- UMBRELLA_PIN -> c3fffc2e2677737bfdaa808b2e4ef917494e7448 (opencharly/opencharly#1252, the
  pin wave that follows the retired corpus);
- the marketplace gitlink -> 6339156013596d2364767b31e14aa7f21cf99d83 (opencharly/marketplace#646,
  the three source fixes that remove the retired /charly-immich:immich-ml address);
- the docs generator -> v2026.327.1807 (opencharly/plugin-docs#29), which honours the corpus's
  retired.cue so the candy-walk complement can no longer re-add the retired skill.

The regenerated tree drops recipes/immich/immich-ml.md and immich-ml-layer.md and the
reference/box and reference/candy pages for the retired pod, and adds the consolidated
immich-cdi box and the newest pod-immich candy pages.

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 to opencharly/opencharly that referenced this pull request Nov 23, 2026
…1256)

charly task sync (org-wide) moves 11 pins to their merged heads: docs (the retired-immich-ml
regeneration, opencharly/docs#222), marketplace (opencharly/marketplace#646), plugin-docs
(opencharly/plugin-docs#29), plugin-marketplace (opencharly/plugin-marketplace#67),
pod-postgresql, pod-redis and layer-vectorchord (the three /charly-immich:immich-ml address
fixes), sdk, and the leaf currency of the same wave (layer-example, plugin-builder-pixi,
plugin-deploy-pod). The bindings re-derivation is part of the same step.

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 to opencharly/docs that referenced this pull request Nov 24, 2026
…wept corpus (#224)

The pins advance together and the generated half is regenerated from them:

- UMBRELLA_PIN -> 7667f9fc8561fa580dd03cfcd40d9e2c4d6ee0a4 (opencharly/opencharly#1265):
  the liberation example links the stable /recipes/coder/sshd/ page instead of a per-version
  reference page that the pin advances had removed.
- the marketplace gitlink -> 7eab90333ad0f9e645e6e648896455f33791e7e7 (opencharly/marketplace#650):
  the two ownerless coder cards retired, and the swept skill bodies.
- the docs generator -> v2026.328.0705 (opencharly/plugin-docs#29/#31/#32): the corpus
  retirement list, the file-sourced skill bodies.

The regenerated tree deletes the nine retired cards' recipe pages — herdr, fedora-coder,
debian-coder, ubuntu-coder, fedora-test and the four openclaw variants — with their reference
pages, carries the swept bodies, retargets the two hand-authored concepts pages, and drops the
per-version candy reference pages the pin advances superseded.

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (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

Development

Successfully merging this pull request may close these issues.

1 participant