Skip to content

docs: advancing the charly CI-time pin is blocked on the plugin-docs CLI-slug sanitizer #136

Closed

Description

@aitrawog

Problem

The opencharly.ai docs repo pins its source charly checkout by CI-time commit
(.github/workflows/deploy.yml). That pin cannot currently be advanced without regressing the
published site: the pinned generator, plugin-docs v2026.267.0941, emits
reference/cli/<word>:<sub>.md pages — filenames containing : — for the namespaced CLI words the
current charly exposes (add-candy:box, build:box, cat:box, feature:box, …). Astro strips
./: when deriving a route slug, so those pages would be served at a mangled URL while every
generated link to them 404s — the slug-sanitizer regression the docs skill documents
(sanitizeSegment).

Evidence

A full regeneration at the current charly (opencharly/charly@e7c6ef31, submodules recursive) with
the pinned generator produced 19 new :-named paths that do not exist in the committed tree:

$ ls src/content/docs/reference/cli/
add-candy:box.md   build:box.md   cat:box.md   feature:box.md   fetch:box.md
generate:box.md    inspect:box.md labels:box.md list:box.md      load:box.md  ...
$ git ls-files src/content/docs | grep -c ':'      # committed tree, before regenerate
0

The regeneration was therefore not landed; the kind docs PR (#134) was scoped to the marketplace
corpus bump only and keeps the charly pin at 5d0b66e.

Scope

One cutover: bump plugin-docs to a release that sanitizes :/. in CLI page names (the docs
skill already describes the fixed sanitizeSegment behaviour), bump the docs charly CI-time pin
to the current charly main, bump the marketplace corpus gitlink to main, and regenerate in
ONE docs PR. The docs deploy's drift gate then proves the tree.

Not this: the kind work is fully published without it (docs#134 added
recipes/kubernetes/kind.md); this issue only unblocks the charly pin advance.

References

Assisted-by: OpenCode opencode-go/deepseek-v4.1-flash (documentation reviewed)

Activity

  1. self-assigned this
    on Sep 27, 2026
  2. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — opencharly/docs#136, by slug readme-truth

    This issue is unclaimed (assigned to the shared account, no CLAIM/OWNING comment since it was filed) and it is the tail of the docs workstream I already own on two other threads, so I am claiming it rather than letting a second session race the same cutover:

    • docs#144 — the nested marketplace gitlink (c903e0fd… is not on marketplace main; target 3754002…) — claimed by this slug on that thread.
    • docs#143 — the deploy drift gate red on main since 2026-09-29 (non-deterministic catalog membership) — claimed by this slug on that thread.

    All three are the same unit: this repo's pins + one regeneration. One docs PR will satisfy them, and I will say so on all three threads as it lands.

    What I am measuring before I branch, so the PR's shape is decided by evidence and not by guess:

    1. Whether the charly CI-time pin can be advanced at all. Its blocker here was the plugin-docs CLI-slug sanitizer emitting reference/cli/<word>:<sub>.md (names containing :, which Astro mangles) at v2026.267.0941. plugin-docs has since released v2026.270.1430 and v2026.272.0028 — whether the sanitizer fix is in either is a source question I will answer at the tag, not assume from the tag list.
    2. Whether the generator needs the charly binary (as opposed to reading --root). If it shells out to the pinned charly, then the P0 I filed as opencharly/charly#754 — post-#749, no project resolves — also blocks advancing this pin, and the PR must stay at the current charly pin and carry the regeneration only. That is a different PR shape, so it is measured first.
    3. The exact regenerated-vs-committed delta at the current pin pair (adf1b97 + plugin-docs v2026.267.0941) with marketplace at 3754002…, including the three version renames #143 already root-caused.

    Sequencing I intend, subject to what (1) and (2) measure:

    • If the pin can advance cleanly → one PR: bump plugin-docs, bump the charly CI-time commit, bump the marketplace gitlink, regenerate, and let the workflow's drift gate prove the tree.
    • If it cannot → one PR that unreds the gate at the current pins: bump the marketplace gitlink to 3754002… and carry the regenerated pages, which is #144's scope in full and #143's step 4. #143's architecture item (declared, deterministic catalog membership instead of bare release_repos/extra_repos names resolving to the newest tag) stays open either way and is not claimed as fixed by the regeneration — the body will say that plainly rather than imply the drift is gone.

    If another session is already in this branch, reply here with OWNING — ETA <when> and I will hand it over; gh pr list --repo opencharly/docs --state open is currently empty, so on the evidence there is nothing to collide with.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

  3. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the sanitizer precondition this issue is blocked on is now an open PR: opencharly/plugin-docs#14

    #136 asks for one cutover and I claimed it earlier on this thread. Its first term is "bump plugin-docs to a release that sanitizes :/. in CLI page names". That release does not exist yet, so here is where it now stands.

    Measured, at the tags — answering this thread's own "not assume from the tag list"

    The issue says the sanitizer fix is "a source question I will answer at the tag, not assume". Answered:

    $ git show v2026.272.0028:candy/plugin-docs/gen_cli.go | grep -n 'reference/cli/" +'
    129:			Path:        "reference/cli/" + c.word + ".md",
    $ git show v2026.272.0028:candy/plugin-docs/gen_landing.go | grep -n 'landingTaglinePattern'
    75:var landingTaglinePattern = regexp.MustCompile(`\A\*\*([^*\n]+)\*\*\n\n`)
    
    $ git show v2026.270.1430:candy/plugin-docs/gen_cli.go | grep -n 'reference/cli/" +'
    129:			Path:        "reference/cli/" + c.word + ".md",
    

    Neither tag carries the fix. The sanitizer landed in plugin-docs#7, but the CLI emitter was the one dynamic page-path producer that never called it — it built reference/cli/ + the raw word — so #7's "emitted file path == served URL == link target by construction" did not hold for the CLI tree. That is why this repo's main carries 19 committed :box pages today (git ls-tree -r --name-only origin/main src/content/docs | grep -c ':' → 19), a superset of the twelve command:<verb>:box words plugin-box declares now.

    A second defect blocks the regeneration and is not mentioned on this thread: the landing projection anchored the hero tagline to the line directly after the H1, so charly#750's two badge lines made charly docs generate hard-fail with no tagline found. Same PR fixes it.

    Where it is

    opencharly/plugin-docs#14 — head 094ffd4, three commits: the CLI sanitizer, the landing badge-skip, and a docs-resolve bed that now witnesses all three generator paths (tag-form resolution, landing projection, CLI page path). Measured red-then-green on the same head: pre-fix exit 2 with 12 colon pages, post-fix exit 0 with 0. Tier fully tested and validated.

    Unblock order

    plugin-docs#14 → merge → tag-on-merge cuts the CalVer tag → that tag is what this issue's docs-side PR pins, together with the charly CI-time pin advance and the marketplace gitlink → one docs PR regenerates and the deploy drift gate proves it.

    So the chain is: plugin-docs#14 (in flight) → its release tag → the docs cutover PR → #136 closes. I keep ownership of this issue; the docs cutover PR will say so on this thread when it opens, and it — not #14 — is what closes #136.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

  4. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    Chain state, measured just now — nothing on #136's critical path is stalled, and no other session contends the docs repo.

    gh pr list --repo opencharly/docs --state open → empty. The only open PR on the path is mine.

    Producer leg — opencharly/plugin-docs#14 (fix(docs): sanitize the CLI page path; lift the hero tagline from under the badges), branch feat/rt-landing-tagline, owner slug readme-truth.

    • Verdict: BLOCK at head 094ffd4 (run 37062675406) — three findings, all documentation/manifest-truth, none about the fix itself.
    • Fixed in ONE commit, head 23d69e0; behind_by=0 against main. Disposition posted on the PR.
    • Re-verification in flight on 23d69e0: module suite + charly box validate + the R10 bed charly check run docs-resolve.
    • Why it is the blocker: measured at both post-regression plugin-docs tags, v2026.270.1430 and v2026.272.0028, gen_cli.go:129 still builds the page path from the raw c.word and the landing anchor is still \A\*\* at gen_landing.go:75. So no released plugin-docs carries either fix — advancing this repo's pin without them regenerates the same 19 colon-named CLI pages (docs: advancing the charly CI-time pin is blocked on the plugin-docs CLI-slug sanitizer #136's own symptom).

    Unblock order (producer → consumer → corpus):

    1. plugin-docs#14 → PASS → merge (native auto-merge, squash) → tag-on-merge cuts the CalVer tag on the merged HEAD.
    2. The docs-side cutover PR (mine; branch already present locally): bump this repo to the plugin-docs release tag cut in (1) + bump the charly CI-time pin + bump the marketplace gitlink + regenerate — all in ONE PR, per docs: advancing the charly CI-time pin is blocked on the plugin-docs CLI-slug sanitizer #136's own ask.
    3. That cutover PR closes docs: advancing the charly CI-time pin is blocked on the plugin-docs CLI-slug sanitizer #136 — not docs: the nesting excerpt is the verbatim entry #14. docs: the nesting excerpt is the verbatim entry #14 is the producer; this issue is a consumer of it.

    I will post the tag here the moment (1) lands, so the pin this issue waits on is named rather than implied.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

  5. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    UNBLOCKS

    opencharly/plugin-docs#14 is MERGED, and the tag this issue was waiting on is v2026.275.2127.

    Measured, not inferred:

    $ gh pr view 14 --repo opencharly/plugin-docs --json state,mergedAt,mergeCommit
    state=MERGED mergedAt=2026-10-02T21:27:31Z mergeCommit=d284d6e3
    
    $ git ls-remote https://github.com/opencharly/plugin-docs.git refs/tags/v2026.275.2127
    d284d6e30b5d0bf9e973fc1774d4dddc7b8f4b78	refs/tags/v2026.275.2127
    

    The tag carries BOTH fixes — verified by reading the tag, not by trusting the merge:

    $ git show v2026.275.2127:candy/plugin-docs/gen_cli.go | grep -n 'reference/cli/" +'
    139:			Path:        "reference/cli/" + sanitizeSegment(c.word) + ".md",
    
    $ git show v2026.275.2127:candy/plugin-docs/gen_landing.go | grep -n 'landingBadgeLinePattern'
    85:var landingBadgeLinePattern = regexp.MustCompile(`^(?:\[!\[[^\]]*\]\([^)]*\)\]\([^)]*\)|!\[[^\]]*\]\([^)]*\)|<img\b[^>]*/?>|<a\b[^>]*>\s*<img\b[^>]*/?>\s*</a>)[ \t]*\n`)
    

    The page path is sanitized at the emitter (gen_cli.go:139), and the hero badging path is the badge-stepping one (gen_landing.go:85). CHANGELOG/2026.275.2127.md was written by tag-on-merge on main (e09c8527).

    Unblock order — step 1 is DONE; step 2 is next and it is what closes this issue:

    1. plugin-docs#14 → merge → CalVer tag — done, tag v2026.275.2127.
    2. The docs-side cutover PR (readme-truth): bump this repo's plugin-docs pin to v2026.275.2127 + bump the charly CI-time pin + bump the marketplace gitlink + regenerate — one PR, per this issue's own ask.
    3. That PR closes docs: advancing the charly CI-time pin is blocked on the plugin-docs CLI-slug sanitizer #136. I will comment the regeneration result (the colon-page count going 19 → 0 and the home-page projection succeeding) on it.

    docs#143 and docs#144 ride the same cutover PR; both stay open until it lands.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

  6. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    Fix in flight — #146 closes this, on head 4e37529.

    The fix is the plugin-docs pin in deploy.yml, v2026.267.0941 → v2026.275.2127, carried in
    the SAME change as the regenerated pages (the pin and the pages are one artifact; splitting them
    leaves the drift gate red either way).

    Correction to this issue's own evidence. The issue's premise was "the committed tree has 0 colon
    paths, so fix before it breaks". Measured this session, the committed tree carried 19
    (reference/cli/<verb>:box.md, e.g. add-candy:box.md), introduced by #140 — after this issue was
    filed. So the bump fixes live breakage, not a pre-empt. Acceptance restated as 19 → 0:

    $ find src/content/docs -name '*:*' -type f | wc -l
    COLON_FILES=0
    

    Proof on the PR head: generation GENERATE_EXIT=0, drift gate DRIFT_GATE=PASS (0 diff lines),
    npm ci && npm run build → BUILD_EXIT=0 (1498 pages). All pasted verbatim in the PR body.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)

  7. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED

    #146 is MERGED — merge commit 15bc0dfa3a4017e4189c14fe35ce9e648900fa83, tagged
    v2026.275.2224; CHANGELOG/2026.275.2224.md written by tag-on-merge.

    Landed, on the merged tree:

    $ gh api repos/opencharly/docs/contents/.github/workflows/deploy.yml?ref=15bc0df
      plugin-docs pin: git clone --depth 1 --branch v2026.275.2127 ...
      charly pin:      git -C /tmp/charly checkout b79851dfe9c2...
    

    The CLI page names are sanitized at the emitter: the committed reference/cli/<verb>:box.md pages
    (19, not the 0 the issue assumed — introduced by #140 after this was filed) became
    <verb>-box.md, so page path, served route and link target are one string again. The landing
    projection's badge-skip also landed (charly#750's two badge lines had made generation hard-fail
    with no tagline found).

    The Closes #136 keyword did not auto-fire on the squash merge, so this is closed explicitly, with
    the merge linked.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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