Repository navigation
Description
Successor to #292, in the same file (candy/charly-internals/charly.yml). Two defects in one four-bullet rule block, both surfaced by this cutover and both with measured consequences. Filed rather than folded in: neither is fixable without a full projection chain, and #292's members are closing with plugins#194.
Defect 1 — the rule is ambiguous in bullet two and unambiguous in bullet four
The block, read at candy 10611–10614:
- Filename MUST match `^\d{4}\.\d{3}\.\d{4}\.md$` (valid CalVer format)
- H1 heading MUST match `# <filename-without-.md> — <title>` (byte-equal CalVer)
- The placeholder CalVer MUST NOT already exist as a `CHANGELOG/*.md` or `v*` tag on `main`
- `head -1 CHANGELOG/<file>.md` MUST byte-equal `# <CalVer> — <title>`
Bullet two's (byte-equal CalVer) admits a reading that scopes the requirement to the CalVer alone, which would exempt an H1 carrying the right CalVer and no title. Bullet four closes it — whole line byte-equal, including — <title>, no parenthetical — but a reader who stops at the H1 clause reaches the wrong answer honestly.
Measured consequence, on plugins origin/main (203 CalVer-named entries):
PASS '# <basename> — <title>' .... 169
FAIL H1 has no CalVer ............ 25
FAIL CalVer != basename .......... 0
FAIL correct CalVer, NO TITLE .... 9 <- exempt under the loose reading, failing under the strict one
Two reviewers independently measured this corpus and reported 0 and 34 in-population. Both were correct; they had read different bullets. An ambiguity that produces two honest, incompatible answers to "does this repo comply" is a defect in the rule, not in either reader.
Defect 2 — the verification step reads the working tree, which is the layer that always agrees with you
Bullet four prescribes head -1 CHANGELOG/<file>.md — a path read. The same prescription appears a second time at candy ~11016, in the step performed before posting the verdict:
10614: `head -1 CHANGELOG/<file>.md` MUST byte-equal `# <CalVer> — <title>`
11016: `head -1 CHANGELOG/$VER.md` MUST byte-equal `# $VER — <title>` before you post
Occurrences of git show <ref>: anywhere in that rule block: 0.
This is the mechanism behind three defective H1s that reached main. The failing sequence is git mv → edit → git commit without -a: the working tree holds the edit, while the index, the commit and the merge all still hold the old H1. A head -1 <path> self-verify reads the one layer that already agrees with the author, so the assertion cannot fail. git status --short shows RM old -> new — R staged rename, M unstaged edit — and the second character is the only warning.
Repaired instances (by plugins#192):
CHANGELOG/2026.203.1037.md H1: # 2026.203.1099
CHANGELOG/2026.225.1226.md H1: # 2026.999.9999 <- a raw placeholder that merged unstamped
CHANGELOG/2026.229.1052.md H1: # 2026.229.1023
None of those three H1 CalVers had a tag; all three filenames did.
The second site is worse than a repeat — read it in context
Candy 11010–11016, in full:
git mv CHANGELOG/<placeholder>.md CHANGELOG/$VER.mdAND rewrite the H1 heading inside the file to match … Thegit mvrenames the FILE but never touches its H1, so skipping this leaves the heading at the placeholder date — a filename↔H1 divergence (a recurring R1 incident). After the rewrite, SELF-VERIFY for EVERYCHANGELOG/*.mdyou staged this phase:head -1 CHANGELOG/$VER.mdMUST byte-equal# $VER — <title>before you post the final status
The step names the exact defect it exists to prevent, calls it recurring, and then prescribes the read that cannot see it. It says "for every file you STAGED" and then checks the working tree — the one layer staging does not change. A staged rename with an unstaged edit is precisely the state it is written for, and head -1 returns the edited file while the index holds the old H1.
So this is not the same blindness appearing twice:
The last line of defence is specified against the state it cannot observe, in the sentence that names that state. Three H1s reached
mainthrough a gap specified twice — once in the rule, once in the check written to backstop the rule.
The fix is mechanical: both sites read git show <ref>:CHANGELOG/<file>.md. R3 applies — the same prescription in two places is one defect at two sites. The RM → R status tell belongs beside them as a second observation, since a validator watching git status --short sees the unstaged edit before any read happens.
Scope: the defect class is any check reading a path where the committed object is meant
The two prose sites above are instances, not the extent — and this issue's original framing was too narrow in a way that was demonstrated within the hour of filing.
The author of the cutover that surfaced these two sites then wrote a third instance in Python: a byte-identity gate, built to prove that cutover's own artifacts, which loads the candy YAML from the working tree and compares it against the projection. It therefore passes against an uncommitted source — and did, allowing a PR to carry prose no charly ref could produce. Establishing that took a sweep of 318 refs.
That happened after this issue was filed, by the person who reported the two prose sites.
The knowledge was in the wrong form to transfer. This issue records the defect as a property of prose in a rule block. Nothing in it said "check every gate you write for the same read." An issue about text does not typecheck a program.
So the class, stated once:
Any check that reads a path when it means the committed object is blind to the difference between what you edited and what you ship. The working tree is the one layer that already agrees with the author. This covers prose prescriptions (
head -1 <path>), tooling (open()/yaml.load()on a path), and any assertion whose subject is "what this commit contains".
Known instances to date, all in or around this repo's verification machinery:
| where | the read | consequence |
|---|---|---|
| candy 10614 | head -1 CHANGELOG/<file>.md |
three defective H1s reached main |
| candy ~11016 | same, in the pre-post self-verify | the backstop had the same blindness |
| a byte-identity gate (author-built) | YAML loaded from the working tree | a PR carried prose no ref could produce |
Remedy is uniform: git show <ref>:<path> for prose prescriptions, and read-from-ref for tooling. The git status --short RM → R tell is the cheap second observation in all three cases — the second character is the warning.
Why these are filed rather than fixed here
Both live in prose that projects to plugins and then docs, so either costs a full chain. The cutover that surfaced them (charly#289) has already paid four; #292's three members close with plugins#194. Per the sizing law, these two belong to the next chain that opens for this file rather than to a chain bought for them.
Related
- marketplace drift: the (stale) suffix marks an orphan and should say so #290 —
marketplace drift: the(stale)suffix marks an orphan and should say so. - plugins/main carries an ollama skill corpus with no superproject source — a producer orphaned by projection-first ordering #291 —
plugins/maincarries an ollama skill corpus with no superproject source. - candy-prose-accuracy: three defects in candy/charly-internals/charly.yml, fixable in one regeneration #292 — the three defects closing with
plugins#194; this issue is its successor. - Generated-file detection is blind to the docs tree: a banner-keyed grep returns a confident zero on ~900 generated pages #293 — generated-file detection is blind to the
docstree.
Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
Activity
atrawog commentedon Aug 17, 2026
Provenance for the third instance in the body, from the author of the cutover that filed this issue.
The byte-identity gate described above is mine. I built it for
opencharly/plugins#194— SHA-256 ofbanner + entity contentfrom a YAML load of the candy, compared against the emitted artifact — specifically so that proving an artifact would need no generator run, and so could not delete a foreign leg's projection.It loads the candy from the working tree. I wrote it about an hour after filing this issue, and it passed on an uncommitted source while a PR carried prose that existed on no
charlyref.Recorded here rather than in the body because it is testimony rather than analysis: the person who wrote the finding wrote the next instance of it, in another language, the same day. The body states the reason and the class; this comment only attests to the instance.
Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
chore(internals): land batch-2.1 charly-internals prose fixes (#292 #294
atrawog commentedon Aug 28, 2026
Validation (2026-08-28) — RESOLVED
Verified against current
marketplacemain. The four-bullet CHANGELOG rule block no longer exists in that form: the CalVer rules were replaced by the merge-time model inreferences/validator-and-calver.md("CalVer — generated at MERGE, by tag-on-merge"; "The author writes no CalVer and no CHANGELOG file"). Both defects (ambiguous bullet two, working-tree verification in bullet four) are moot under the new model.Closing as resolved.