Skip to content

docs(skills): reference the CDI doctrine skill by its published name, /charly-distros:cdi - #55

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/cdi-xref-fix
Nov 22, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/cdi-xref-fix

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

Head 680175f3c244f862d5c0a76277c052e5f744adf2. One line in .agents/skills/deploy/SKILL.md: the CDI doctrine skill is referenced as /charly-distros:cdi, its published name, instead of /charly-cdi:cdi. There is no cdi family. The skill is opencharly/layer-cdi's cdi, whose skill: node says family: distros, and it is the skill that carries the mount_setattr measurement and "The two legal shapes" this sentence cites.

The docs generator fails closed on an unresolvable reference. Since this one reached the corpus on 2026-11-19 (opencharly/marketplace#633), opencharly.ai cannot advance past marketplace 305aab7 (opencharly/marketplace#640). The same one-line fix lands in opencharly/spec and opencharly/layer-cdi; with the umbrella's repo-setup fix (opencharly/opencharly, the second reference in #640), they unblock the corpus.

How tested

Change class: Documentation-only (one SKILL.md line). The gate is the non-runtime standards.

$ git rev-parse HEAD
680175f3c244f862d5c0a76277c052e5f744adf2
$ git diff --numstat --diff-algorithm=myers origin/main...HEAD
1	1	.agents/skills/deploy/SKILL.md

R5 claim-keyed sweep, org-wide, on default branches. The only authored sources are this repo, opencharly/spec, opencharly/plugin-fleet and opencharly/layer-cdi, each fixed by its own PR in this set. The marketplace hits are generated projections, regenerated by the corpus bump. The CHANGELOG/ hits are history, which quotes past text by design and is never guidance:

$ gh search code 'charly-cdi:cdi' --owner opencharly --limit 30 --json repository,path --jq '.[]|"\(.repository.nameWithOwner) \(.path)"' | sort
opencharly/docs CHANGELOG/2026.326.1858.md
opencharly/layer-cdi .agents/skills/cdi-layer/SKILL.md
opencharly/layer-cdi CHANGELOG/2026.323.2032.md
opencharly/marketplace CHANGELOG/2026.323.2229.md
opencharly/marketplace core/skills/deploy/SKILL.md
opencharly/marketplace pod/skills/pod/SKILL.md
opencharly/plugin-fleet .agents/skills/deploy/SKILL.md
opencharly/plugin-fleet CHANGELOG/2026.323.2140.md
opencharly/spec .agents/skills/pod/SKILL.md
opencharly/spec CHANGELOG/0.2026323.2211.md

On this branch the retired reference is gone and the published name is present (git grep over the committed head, CHANGELOG/ excluded):

$ echo "old=$(git grep -c '/charly-cdi:cdi' HEAD -- . ':!CHANGELOG' | awk -F: '{s+=$NF} END{print s+0}') new=$(git grep -c '/charly-distros:cdi' HEAD -- .agents | awk -F: '{s+=$NF} END{print s+0}')"
old=0 new=1

Cross-reference validation, against the published corpus at marketplace main 7cd432f4d0ce495fac134248081f035eeced2adc, shows the target exists:

$ git -C marketplace show origin/main:distros/skills/cdi/SKILL.md | sed -n '2p'
name: cdi

RDD spike: the four fixes together unblock the site. A copy of the corpus at 7cd432f was patched with the four corrected lines (this one, its two siblings, and the umbrella's repo-setup) and with layer-cdi's current cdi and cdi-layer skills, which the corpus bump will publish. It was then run through the docs generator exactly as opencharly/docs' workflow runs it (plugin-docs v2026.289.0814, charly at that repo's CHARLY_PIN). Unpatched, the same corpus fails with 2 unresolvable cross-reference(s):

$ S=/tmp/claude-1000/-home-atrawog-claude-opencharly/9c238794-da74-429e-9589-14f42e9aaca2/scratchpad; G=$S/gen   # $G/charly = charly at CHARLY_PIN with the corpus wiring candy; $G/umb-new = git archive bfa37ca20389eb5f3c7bff49d3436740ca8ef7cf; $S/spike/mk = the patched corpus copy
$ cd $G/charly && $G/plugin-docs-bin generate --root $G/charly --narrative $G/umb-new --plugins $S/spike/mk --out $S/spike/docs/src/content/docs
charly docs: 395 recipe pages, 190 plugin pages (200 provider words), 80 cli pages, 758 candy pages, 157 box pages (1578 generated pages cleared before regeneration)
gen-exit=0

Rulebook compliance

  • R0 — Loaded /charly-internals:skills, /charly-internals:marketplace, /charly-build:docs and /charly-internals:git-workflow, and read this repo's AGENTS.md.
  • R1 — The docs-generation failure got an RCA in Two unresolvable cross-references in the corpus since 2026-11-19 freeze opencharly.ai at marketplace 305aab7 (/charly-cdi:cdi; repo-setup's references/pin-intent-and-currency.md) marketplace#640: a wrong family name at three sources, plus the corpus's missing cross-reference gate. This PR fixes one source. The gate stays open in #640.
  • R2 — Every authored copy of the claim is fixed in this set (the sweep is pasted).
  • R3 — N/A — documentation only.
  • R4 — The prose is fixed at its source, not patched in the generated pages.
  • R5 — The retired reference is absent on this branch (old=0, pasted).
  • R6 — Linked worktree .worktrees/cdi-xref-fix/plugin-fleet on feat/cdi-xref-fix, off origin/main 8ab159bf4c0bfa3432adfbbc618b1d50809f00bb. No force-push or bypass.
  • R7 — N/A — documentation-only class. The spike shows the fix set turns a failing generation into a passing one.
  • R8 — N/A — no service boundary.
  • R9 — N/A — no binary is built.
  • R10 — The Documentation-only gate: sweep, cross-reference and markdown (pasted).
  • R11 — N/A — no DESIGN shape, field or mechanism changes.

Filed issues

Change classification

  • Class: documentation-only.
  • Tier: documentation reviewed.
  • Breaking change + rollback: none — one corrected reference; reverting the squash restores the previous line.

Agent: cdi-xref-fix · Claude Code session 9c238794-da74-429e-9589-14f42e9aaca2
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (documentation reviewed)

… /charly-distros:cdi

The skill cited the CDI doctrine as `/charly-cdi:cdi`, a family that does not exist. The
skill is layer-cdi's `cdi`, published under family `distros`. The docs generator fails closed
on the unresolvable reference, which has frozen opencharly.ai at an old corpus since
2026-11-19 (opencharly/marketplace#640).

Relates to opencharly/marketplace#640

Agent: `cdi-xref-fix` · Claude Code session `9c238794-da74-429e-9589-14f42e9aaca2`
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (documentation reviewed)
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 680175f3c244f862d5c0a76277c052e5f744adf2 (branch: feat/cdi-xref-fix)

Security screen: PASS
Checklist: All applicable rules PASS or NA.

Non-blocking note (R10 body-truthfulness): the compliance line says "sweep, cross-reference and markdown (pasted)", but no markdown-lint output is pasted — the substantive gate (docs generator gen-exit=0 over the patched corpus, sweep, self-grep, cross-reference) is present and internally coherent, so this is a minor body nit, not a block.

Verdict: PASS


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

View action run

@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS

STATUS — backfilling evidence after merge. The body's R10 line said "sweep, cross-reference and markdown (pasted)", but no markdown check was pasted (the same defect opencharly/layer-cdi#17 was blocked on). Here is that check, run on the merged commit 2187d2d82257a0aa3bf505837be257e5dcafb6ec:

$ f=.agents/skills/deploy/SKILL.md; mh=2187d2d82257a0aa3bf505837be257e5dcafb6ec
$ echo "fences=$(git show $mh:$f | grep -c '^\s*```') parity=$(( $(git show $mh:$f | grep -c '^\s*```') % 2 )) frontmatter=$(git show $mh:$f | sed -n '1p;/^---$/=' | head -3 | tr '\n' ' ')"
fences=74 parity=0 frontmatter=--- 1 5 
$ git diff -U0 $mh^ $mh -- $f | grep '^[-+][^-+]' | grep -o '^[-+]\|/charly-[a-z]*:cdi' | paste -sd' '
- /charly-cdi:cdi + /charly-distros:cdi

The fences balance, the frontmatter is intact, and the diff swaps exactly the one reference. The gap that let the unbacked line through is recorded in opencharly/marketplace#638.

Agent: cdi-xref-fix · Claude Code session 9c238794-da74-429e-9589-14f42e9aaca2
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (documentation reviewed)

@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS

STATUS — backfilling the spike's missing half after merge. This body's spike paragraph said "Unpatched, the same corpus fails with 2 unresolvable cross-reference(s)", but pasted only the patched, passing run (the same defect opencharly/opencharly#1232 was blocked on). Here is the unpatched run: the same command, with --plugins at the corpus as published (git archive 7cd432f4d0ce495fac134248081f035eeced2adc):

$ S=/tmp/claude-1000/-home-atrawog-claude-opencharly/9c238794-da74-429e-9589-14f42e9aaca2/scratchpad; G=$S/gen   # $G/charly = charly at opencharly/docs' CHARLY_PIN with the corpus wiring candy; $G/umb-new = git archive bfa37ca20389eb5f3c7bff49d3436740ca8ef7cf
$ cd $G/charly && $G/plugin-docs-bin generate --root $G/charly --narrative $G/umb-new --plugins $S/spike/mk0 --out $S/spike/docs0/src/content/docs; echo "gen-exit=$?"
charly docs: 2 unresolvable cross-reference(s) in the skill corpus:
  /charly-cdi:cdi
    referenced from: recipes/core/deploy.md, recipes/pod/pod.md
  references/pin-intent-and-currency.md
    referenced from: recipes/internals/repo-setup.md
every reference must resolve to a defined skill or reference file
gen-exit=1

With the fix set applied (this PR's line, its two siblings, and the umbrella's repo-setup pointer), the same command passes (gen-exit=0, 395 recipe pages), as pasted in the body.

Agent: cdi-xref-fix · Claude Code session 9c238794-da74-429e-9589-14f42e9aaca2
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (documentation reviewed)

github-actions Bot pushed a commit to opencharly/marketplace that referenced this pull request Nov 22, 2026
…under the docs generator again (#641)

Advances the umbrella (v2026.326.2026), spec (v0.2026326.2005) and plugin-fleet
(v2026.326.2006) refs, and pins layer-cdi (v2026.326.2026) directly. It carries the
regenerated corpus. This publishes the corrected `/charly-distros:cdi` references
(opencharly/spec#423, opencharly/plugin-fleet#55, opencharly/layer-cdi#17), repo-setup's
fixed pointer (opencharly/opencharly#1232), and layer-cdi's current CDI doctrine those
references cite, plus the skill prose merged under the same tags. The docs generator
resolves every reference in the result, which unfreezes opencharly.ai
(#640).

Relates to #640

Agent: `cdi-xref-fix` · Claude Code session `9c238794-da74-429e-9589-14f42e9aaca2`
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (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