|
| 1 | +# 2026.229.1619 — the orphan scan, the three submodule states, the sweep that finds a paraphrase, and chaining the edit to the commit |
| 2 | + |
| 3 | +**This is a REGENERATION, not an authored edit.** All three artifacts carry the |
| 4 | +`GENERATED … DO NOT EDIT` banner; their source is `candy/charly-internals/charly.yml` in `charly`, |
| 5 | +landing as `opencharly/charly#289`. |
| 6 | + |
| 7 | +This entry states what the artifacts now say. The review that produced them — six rounds on this PR, |
| 8 | +every finding real — is in `opencharly/plugins#194`, reachable as `refs/pull/194/head` after the |
| 9 | +branch is deleted. **It is deliberately not retold here**: an entry that narrates its own review |
| 10 | +re-creates its defect surface on every push, and every finding in this PR's last four rounds was in |
| 11 | +that narration rather than in the artifacts. |
| 12 | + |
| 13 | +## What the reference page now says |
| 14 | + |
| 15 | +**The orphan scan is path-gated.** `scanGenerated` has three arms and only the first reads a file's |
| 16 | +bytes: it walks `plugins/<family>/skills` and `.../agents` for the generated header; it adds a fixed |
| 17 | +list of known paths on existence alone; it takes every file under `.claude/hooks/` outright. So the |
| 18 | +header decides only inside the walked trees, and a header-less file is invisible only when it **also** |
| 19 | +sits outside the known paths and the hooks directory — the condition `prune.go`'s own comment states. |
| 20 | + |
| 21 | +**`(stale)` marks the orphan** — a generated path no source claims — not a file behind its source. |
| 22 | +Both red directions print the same `are stale` headline, so the suffix is the only discriminator, and |
| 23 | +it names the rarer case. `(orphan)` would say it; that message fix is filed as `opencharly/charly#290` |
| 24 | +rather than compensated for in prose. |
| 25 | + |
| 26 | +**`git status --short` distinguishes three dirty-submodule states**: ` ?` untracked content, ` m` |
| 27 | +modified content, ` M` a moved gitlink — and `--porcelain` collapses **all three** to ` M`, so the |
| 28 | +script-safe spelling is the one that loses every distinction. Only ` M` has an ordinary-path meaning: |
| 29 | +an untracked ordinary path is `??`, two columns, and lowercase ` m` never appears on one at all. |
| 30 | + |
| 31 | +**`drift` compares every generated artifact**, not only the `plugins/` corpus — the harness surface |
| 32 | +(`CLAUDE.md`, `AGENTS.md`, `.claude/settings.json`, `.claude/hooks/*`) is in the same emissions map. |
| 33 | +Its reporter lists all but those seven, which is why `generate` prints 400 and lists 393. |
| 34 | + |
| 35 | +**Sweep for every site that NAMES a mechanism, once per repo**, and reconcile each against one |
| 36 | +derived ground truth. `git grep` does not cross a gitlink, and this page is projected twice, so a |
| 37 | +claim about it lives in three trees that cannot see each other. A string-keyed sweep cannot find the |
| 38 | +same claim restated in other words — which is what a correcting author writes in the neighbouring |
| 39 | +paragraph. |
| 40 | + |
| 41 | +**The regeneration window.** The projection-first ordering guarantees a period where `plugins/main` |
| 42 | +carries prose `charly/main` cannot reproduce. Your own leg's window is harmless; **another leg's is |
| 43 | +not**, and the trigger is the base moving under you rather than the existence of a window: run the |
| 44 | +unscoped whole-tree check while no foreign projection sits in your base, and scope to the files you |
| 45 | +touch once one does. |
| 46 | + |
| 47 | +## What the skill and the agent spec now say |
| 48 | + |
| 49 | +**`git show --stat` after every commit, and chain the edit to the commit.** The post-commit rule in |
| 50 | +`git-workflow` ended *"not any tooling that fails loudly on its own — is what catches this"*, which |
| 51 | +is false: a script that edits and the `git add` / `git commit` after it are separate statements, so a |
| 52 | +guard that aborts the edit does not stop the commit, which lands under a message describing an edit |
| 53 | +it does not contain. Joining them — `edit && git add … && git commit …` — makes a failed edit unable |
| 54 | +to produce a commit at all. |
| 55 | + |
| 56 | +**Two populations, and the entry states both rather than one number.** The defect occurred three |
| 57 | +times in one session — that is what establishes the problem. The chain was exercised **once**, and |
| 58 | +by construction that occurrence left no artifact, so the remedy's evidence is a single negative |
| 59 | +result. Reporting three under one "measured" would count the disease as evidence for the cure, which |
| 60 | +is the wrong-population shape this same entry documents above. |
| 61 | + |
| 62 | +**And the chain is not sufficient.** `&&` short-circuits on a non-zero exit, so an edit that fails |
| 63 | +*loudly* cannot reach the commit — but a silent no-op edit (a pattern that matches nothing) exits 0 |
| 64 | +and lands the commit under a describing message exactly as before. Neither of the two failures this |
| 65 | +PR actually had after the instrument existed would have been prevented by it. The chain closes the |
| 66 | +aborting case, which was the observed one; the no-op case still needs the post-commit read. |
| 67 | + |
| 68 | +That is why both rules belong, and the surviving half is narrower than first written: **`git show |
| 69 | +--stat` is the only post-commit check *on the committing side* that sees a commit whose message |
| 70 | +describes an intent its diff does not carry** — the mismatch is between message and tree, and no gate |
| 71 | +reading the tree has the message. It is not the only check that can catch the class. A reader holding |
| 72 | +both, like this review, catches it by other means: two of this PR's own findings were that exact |
| 73 | +mismatch, and one spanned two repositories, where `--stat` structurally cannot look. |
| 74 | + |
| 75 | +The agent spec carries the CalVer work: the **tag invariant** that survives a skipped Phase 3 — an |
| 76 | +entry on `main` with no matching `v<CalVer>` tag — **with its scope**, since 66 of 203 entries |
| 77 | +predate the tag-every-merge convention and a check without that clause returns 66 false positives; |
| 78 | +the converse caveat that 3 tags have no entry and would fire a symmetric check; and the placeholder |
| 79 | +argument, which now states that a wall-clock-impossible stamp is both self-announcing and |
| 80 | +regex-valid, and that it still binds nothing. |
| 81 | + |
| 82 | +## Scope and gate |
| 83 | + |
| 84 | +All **three** artifacts are byte-identical to what the source emits, and they take **two** shapes: |
| 85 | +`banner + content` for the reference page, `frontmatter + banner + content` for the agent spec and |
| 86 | +the skill — verifiable by SHA-256 against a YAML load of the candy, **with no generator run at all**. |
| 87 | +A gate written for one shape reports a false defect on the other, so the shape is part of the check |
| 88 | +rather than a detail of it. That gate holds at whatever head a reader checks it against, |
| 89 | +which a diffstat cannot, so no diffstat is published here. |
| 90 | + |
| 91 | +**The commit is narrower than the regeneration, deliberately.** Regenerating at this base also |
| 92 | +deletes `ollama/skills/ollama-cli/SKILL.md` and reverts two sibling skills, whose superproject source |
| 93 | +is on no branch and in no open PR — the orphaned producer recorded as `opencharly/charly#291`. They |
| 94 | +are reverted and left alone. |
| 95 | + |
| 96 | +Placeholder CalVer — the `pr-validator` finalizes it at merge and rewrites this H1 to match. |
| 97 | +**Verify that rewrite by reading the committed object** (`git show <ref>:<path>`), never the working |
| 98 | +tree: the working tree is the one layer that always holds your edit, and three H1s reached `main` |
| 99 | +through that gap before `#192` repaired them. The rules prescribing `head -1 <path>` for that check |
| 100 | +are filed as `opencharly/charly#294`. |
| 101 | + |
| 102 | +The reader findings raised against this page that are **not** fixed here are registered as the batch |
| 103 | +`opencharly/charly#295`, scoped and cross-linked. It belongs in this list because it is the sibling |
| 104 | +about *this* artifact, and an enumeration naming every other one while omitting it reads as though |
| 105 | +none exists. |
0 commit comments