Skip to content

docs: regenerate the git-workflow evidence pages from their landed source - #67

Merged
atrawog merged 2 commits into
mainfrom
feat/validator-evidence-recipes
Aug 16, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/validator-evidence-recipes

Conversation

@atrawog

@atrawog atrawog commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

REGENERATION, not an authored edit. Both pages carry the DO-NOT-EDIT — generated by charly docs generate banner; the source is candy/charly-internals/charly.yml in charly (opencharly/charly#289).

  • recipes/internals/git-workflow/evidence-and-freshness.md — +344/-33
  • recipes/internals/git-workflow/multi-repo-coordination.md — +48/-2
  • CHANGELOG/2026.228.0804.md — placeholder entry

Most of the content is prose a producer-repo PR had authored directly into these generated artifacts, where the next regeneration would have reverted it while the diff looked clean. It now lives in the candy and arrives here as output.

The rest are rules the producing cutover added, each earned by a review round:

  • Deciding whether a file is generated: delete it and regenerate. The question is whether the generator PRODUCES that path, not whether its bytes differ — an in-sync carrier does not move, and in-sync is the normal state of a correct change at review time.
  • A claim-keyed sweep produces a CANDIDATE list, never an EDIT list. Sweeping a claim you just corrected is the sharpest case: the correction quotes the old wording to retract it, so the hits include the fix. No pattern separates asserting X from saying X was wrong — they are the same string.
  • Put the safeguard where the reader ACTS, not where it is true.

Change class

cross-repo (docs-only here — every file is *.md). Producer plugins#187 has merged; source charly#289 carries this pin and lands last.

How R10-tested — exact gate, commands, and pasted output

  • Gate: non-runtime standards. For a REGENERATION the load-bearing check is what the generator emits from a landed input.
  • Eval beds: N/A (docs-only).
  • Fresh rebuild: generator rebuilt from the producing source; charly box validate exit 0.
  • Changed code path live? N/A — no code. The generator ran; its output is the diff.
  • Concurrency: N/A.
# the three names for the generator's input, confirmed equal BEFORE generating:
plugins working tree  a8b51b16a
pinned in charly#289  a8b51b16a
plugins origin/main   a8b51b16a

$ ./bin/charly docs generate --out docs/src/content/docs --root .
$ git status --short
 M recipes/internals/git-workflow/evidence-and-freshness.md
 M recipes/internals/git-workflow/multi-repo-coordination.md
   (nothing else — no unrelated drift)

$ git diff --numstat
 344  33   evidence-and-freshness.md
  48   2   multi-repo-coordination.md

Scope

The two pages whose source changed. The pr-validator agent spec — which carries most of the producing cutover — has no page in this repo, verified rather than assumed.

A recipe page is a projection of a projection (candy → plugins SKILL.md → docs recipe, candy/plugin-docs/gen_skills.go:81), so docs can never be current unless plugins is regenerated and landed first. This leg was cut after the producer merged, for exactly that reason.

Attribution tier

documentation reviewed — the whole diff is *.md.

Harness rulebook compliance — state HOW each is satisfied (or N/A — <reason>)

  • R0 skills: /charly-build:docs (the generator chain), /charly-internals:skills. Honored by regenerating from the SOURCE and only after the producer landed.
  • R1 RCA + zero warnings: zero warnings; charly box validate exit 0. An earlier sibling leg's staleness was root-caused to the two-hop projection chain, which is why this one was cut post-merge.
  • R2 no out-of-scope: the source cutover carries its items; three further generalisations that surfaced during review are filed, not appended, and land as their own cutover.
  • R3 no duplication: each rule is stated once, on the page that owns it.
  • R4 no workaround: every artifact from charly docs generate; no hand-editing of a generated page.
  • R5 hard cutover + grep: no identifier removed; superseded guidance is replaced at source, not left alongside.
  • R6 git safety: git status checked; branch advances by added commits; no force-push.
  • R7 / R8: N/A — documentation-only; the artifact check for this class is the generator output, pasted above.
  • R9 binary == source: generator rebuilt from the producing source before generating.
  • R10 disposable + coverage: N/A (bed). The coverage that fails without this change is the regeneration itself — reverting either page makes git status show it again.
  • RDD / ADE / SDD: RDD — the input identity was verified at three names before generating, not assumed. ADE / SDD — N/A.
  • Hard cutover: one atomic scope.
  • Kernel/plugin boundary law / Disposable-only autonomy / Go gates: N/A.
  • CHANGELOG: CHANGELOG/2026.228.0804.md, placeholder CalVer, H1 byte-matching the filename, collision-checked (no file, no tag on main).

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)

…urce

Most of the content is prose a producer-repo PR had authored directly into these
generated artifacts, where the next regeneration would have reverted it while the
diff looked clean. It now lives in the candy and arrives here as output.

The rest are rules that cutover added: delete-and-regenerate as the carrier test
(an in-sync carrier does not move, and in-sync is the normal state at review
time); a claim-keyed sweep produces a candidate list whose hits must be read,
because a correction quotes the wording it retracts and no pattern separates
asserting X from saying X was wrong; and put the safeguard where the reader acts
rather than wherever it is true.

Generated after the producer merged, with the plugins tree, the superproject pin
and the generator input all confirmed to be a8b51b16a before generating.

Assisted-by: Claude Code Claude Opus 5 (documentation reviewed)
@atrawog

atrawog commented Aug 16, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: docs-only (every file in the diff is *.md) — validated as a REGENERATION, not as authored prose.

Head validated: 79d0a73b373a9cc2eeca656ab9f2a0c9f8b35ea9. Base origin/main 3d117041 (not behind).

The load-bearing check: byte-identity, both directions

A residue check proves nothing was added; only byte-identity proves nothing was omitted. I ran the generator myself and compared whole-tree, not file-by-file.

Input tree I compared against — stated explicitly, because byte-identity against the wrong input is perfectly clean and perfectly wrong:

Component Sha
superproject 1a6d1e48 (charly origin/main)
plugins a8b51b16a2ae3bd6841338e99eda9be282182847
candy/charly-internals/charly.yml from charly#289 head 25911a11
sdk / spec / box/* superproject main pins
$ ./bin/charly docs generate --out /tmp/val-docs67-out/src/content/docs --root .
charly docs: walking 6 repo root(s): superproject, arch, cachyos, debian, fedora, ubuntu
charly docs: 327 recipe pages, 91 plugin pages (147 provider words), 49 cli pages,
             339 candy pages, 81 box pages (892 generated pages cleared before regeneration)

$ git -C /tmp/val-docs67-out status --short
COUNT=0

892 generated pages are cleared and re-emitted, so this is a total delete-and-regenerate, not an in-sync-carrier-does-not-move result. Zero diff ⇒ nothing added, nothing omitted, no unrelated drift.

I first ran this with candy/ at main and only plugins bumped, which was clean too — but that left the candy source unmeasured, so I re-ran with charly#289's actual candy file in place. The table above is the second run.

Gate probativeness — would this have gone red if the claim were false?

Yes, and I mutation-tested it rather than assuming. Reverting only the plugins pin to c00a4ca8 (charly main's current pin) and regenerating:

 M src/content/docs/recipes/internals/git-workflow/evidence-and-freshness.md   33  344
 M src/content/docs/recipes/internals/git-workflow/multi-repo-coordination.md   2   48
 M src/content/docs/recipes/vm/arch-cloud-vm.md                                15   23
 M src/content/docs/recipes/vm/vm.md                                           15   23
 M src/content/docs/recipes/vm/vms-catalog.md                                  17   25

The two pages revert at exactly the inverse of the PR's +344/-33 and +48/-2. Direction is established by content presence and ancestry, not by a deletions-dominant diff: the added content is present in plugins@a8b51b16 and absent from c00a4ca8. This is not a revert.

All mutation testing ran in a scratch worktree at pinned inputs; no shared checkout was mutated or stashed, and the shared checkout is byte-for-byte as I found it.

Scope — reconciled against the input, not assumed

plugins c00a4ca8..a8b51b16 changed 9 files, and every one is accounted for:

Input file Projects to
3 × CHANGELOG/*.md (plugins' own history — not a projected family)
internals/agents/pr-validator.md (+269/-5) nothing — the generator's collectSkills reads plugins/<plugin>/skills/, and agents/ is not a projected family
internals/skills/git-workflow/references/evidence-and-freshness.md (+344/-33) this PR, same numstat
internals/skills/git-workflow/references/multi-repo-coordination.md (+48/-2) this PR, same numstat
3 × vm/skills/*/SKILL.md recipes/vm/* — already landed in leg 210701d (v2026.228.0441), confirmed an ancestor of main

The author's claim that the pr-validator spec has no page here is verified, not assumed: it is an agent spec, and no agents/ family is emitted. Scope is exactly right — the three vm pages that also move between the two pins were already in sync on main, which is why they are correctly absent from this diff.

Input identity, three ways

Name Sha
plugins origin/main a8b51b16a2ae3bd6841338e99eda9be282182847
pinned in charly#289 a8b51b16a2ae3bd6841338e99eda9be282182847
tag v2026.228.0759 (deref) a8b51b16a2ae3bd6841338e99eda9be282182847

All three agree. The producer is merged and tagged.

STEP ONE — generated-carrier check

$ git grep -lEi "DO[- ]NOT[- ]EDIT" -- <the three changed files>     # run from inside docs/
CHANGELOG/2026.228.0804.md
src/content/docs/recipes/internals/git-workflow/evidence-and-freshness.md
src/content/docs/recipes/internals/git-workflow/multi-repo-coordination.md

Triaged by reading, not by tuning the pattern: the CHANGELOG hit is a false positive — line 4 quotes the banner in prose. The two pages are genuine carriers (docs uses the DO-NOT-EDIT separator). Both are therefore correctly treated as regenerate-only.

Independent re-derivation of the mechanism claims

The pages make checkable claims about charly's own behaviour. I re-derived each against source rather than trusting the paste:

Claim Verified
marketplace drift: N generated artifact(s) are stale: … run \charly marketplace generate`` ✅ generate.go:104, byte-matching
orphans carry a (stale) suffix, and only orphans ✅ generate.go:96 — the suffix is appended solely in the scanned-but-unclaimed branch
marketplace drift: clean (%d artifact(s) match the committed tree) ✅ generate.go:100
drift runs in no CI workflow ✅ the only workflow is release-binary.yml; no reference
charly box validate exit 0 ✅ re-run by me — exit 0, zero warnings (the PR asserted this without a paste)
the new internal link /recipes/internals/git-workflow/validator-and-calver/ ✅ resolves — the generator's link check is a real gate and exits 1 on an unresolved target

Counts re-derived from the artifact, and reconciled against each other

The page states several self-referential figures; a population swap here would be worse than a wrong number, so I re-derived all of them:

  • ### sections: 12 — matching "Eight epistemic plus four mechanism is the whole page."
  • Named mechanism sections: skill-cutover, submodule revert, validator-status false negative, multi-source assembly = 4 ✅
  • Epistemic = the remaining 8 ✅
  • Noun table: 8 data rows over 7 distinct sections (base + produced-tree share one) — matching "eight ROWS over seven SECTIONS" ✅
  • "Seven of those eight appear above" ✅ (the deliberately-absent one is named)
  • No stale Five/three residue from the previous counts anywhere on the page ✅

Every figure reconciles. **Terms.** occurs once — it was moved to precede first use, not duplicated.

Cold-reader pass

A reader forbidden every other source read both pages. Its findings are findings, not suggestions, so I re-derived each one; several did not survive that. Its sharpest surviving claim did, and it lands on added content — see the finding below. Its other substantive material (undefined cutover/R10/bed/B1/B4/B5, the cd-forbidden-vs-mandatory tension in B7, the B2-vs-B6 verification-order tension) is pre-existing page content not introduced by this diff, and is routed to the source rather than dismissed.

One cold-reader objection I checked and rejected: it called the added commit-tree sentence a non-sequitur. It is not — commit-tree is precisely the command whose failure a head -1 "shape fix" would paper over, producing a valid-but-wrong tree that a gate then passes. The sentence names the right evidence.

Finding — recorded, and routed to the source that owns it

evidence-and-freshness.md publishes a marketplace drift figure without the tree identified — breaking the rule stated on the same page.

The page's own rule: "a figure is publishable only with the tree identified: which commit, which submodule shas, which working-tree state." Its motivating incident is a charly marketplace drift count that was executed, correct, and false because the tree was unnamed.

The added block (diff lines 389–404) publishes exactly that class of figure:

marketplace drift: clean (400 artifact(s) match the committed tree)   exit 0

labelled only "Both runs perturb a clean tree" — one of the three required provenance elements.

I re-derived the count: 400 is correct and reproducible at the coherent post-cutover tree, so the figure is true, not false. But note drift reported clean (400 …) on a tree git status calls dirty (two modified paths) — so "a clean tree" is ambiguous between git-clean and drift-clean, which is the precise ambiguity the rule exists to kill.

Why this does not block this PR. These pages are a generated tree, and the fix belongs at the source, never in the projection — hand-editing here is forbidden and the next regeneration would revert it. The prose is byte-identical to plugins@a8b51b16, which is already merged and tagged (v2026.228.0759); holding this mirror stale would not remove the defect from the project, it would only leave the superproject unable to reach a coherent state. This is routed to opencharly/charly#289 — the producing PR, still open, which is the correct owner and can carry the fix before the chain closes. That is R2 routing to a named open cutover, not a "follow-up".

Cross-PR interactions considered

  • opencharly/docs — no other PR open.
  • opencharly/plugins — no PR open; producer merged and tagged.
  • opencharly/charly#289 — verified-non-blocking for this PR, coordination comment posted. #289 currently pins plugins@a8b51b16 and docs@3d117041 — the projection of the old plugins. That pairing is internally inconsistent: regenerating at #289's own pins moves two pages, which is exactly the composite state this PR's own new prose names. #289 must additionally bump the docs gitlink to this PR's merge commit. Merging this PR first is the correct order — a superproject cannot pin a commit that does not exist yet.

Comments considered: none — the PR carried no comments.

Checklist

# Item Verdict
0 Security & anti-tampering (T1–T4) PASS — all-*.md; no injection, no exfiltration, no guardrail change, description↔diff match proven by byte-identity
1 Description complete + Assisted-by: footer PASS
2 Change-class gate matches evidence PASS — docs-only; generator output is the gate, reproduced by me
3 Attribution tier justified PASS — documentation reviewed; whole diff is *.md
4 R0 skills honored PASS — /charly-build:docs, /charly-internals:git-workflow, /charly-internals:skills
5 R1 RCA + zero warnings PASS — box validate exit 0, generator exit 0
6 R2 no out-of-scope split PASS — finding routed to the open owning PR, not parked
7 R3 no duplication PASS — Terms moved, not copied
8 R4 no workaround PASS — no hand-edit of a generated page
9 R5 hard cutover + grep PASS — no stale count residue
10 R6/R8/R9 N/A — documentation-only
11 R10 disposable/coverage N/A (bed) — non-runtime standards for this class
12 RDD / ADE / SDD PASS (RDD — input identity measured, not assumed) / N/A
13 Concurrency + anti-cheat PASS — no dismissive framing; no unexecuted sweep claim (I re-ran each)
14 Hard cutover — one atomic commit PASS — exactly one commit
15 Architecture gate N/A — no charly/*.go, no Go, no alias, no kit import. placement: CORRECT — content lives at its source and arrives here as output
16 Disposable-only autonomy N/A
17 Clean architecture + Go gates N/A — no Go
18 CHANGELOG present PASS — 2026.228.0804.md, format valid, H1 byte-matches, no file/tag collision, later than v2026.228.0635

Non-blocking observations

  1. The commit trailer reads Assisted-by: Claude Code Claude Opus 5 …, omitting the provider token present in both the PR body's footer and the dominant landed form on main (Claude Code Anthropic Claude Opus 5). Identity and tier are truthful; I compose the squash trailer in the canonical form at merge.
  2. internals/agents/pr-validator.md (+269/-5 — the bulk of the producing cutover) is published nowhere on the site: agents/ is not a projected family. Correctly disclosed by the author and out of scope here, but it is a generator coverage gap worth a source-repo item.

Decision: PASS. Judged as a regeneration, this is exact: byte-identical to the generator's output from the true combined source state, verified whole-tree, with a mutation test proving the comparison discriminates. Scope reconciles item-for-item against the input diff with nothing omitted and no hand-authored residue. I am certifying faithful projection — not that the underlying prose is defect-free; the one verified prose finding is recorded above and routed to charly#289, which owns it and is still open.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
@atrawog
atrawog merged commit c641b99 into main Aug 16, 2026
1 check passed
@atrawog
atrawog deleted the feat/validator-evidence-recipes branch August 16, 2026 08:24
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