Repository navigation
fix(init): materialize a materialized path's nested level (#647) - #712
Conversation
`charly task init` materialized a path but not the path's OWN submodules,
so a path that was already at its recorded gitlink kept an ABSENT nested
level. The umbrella's own currency report then cannot JUDGE an edge whose
source is a nested pin: the edge arm asks for the twin's checkout, and
without one it prints `differs (no checkout of box/cachyos to judge
ancestry)` instead of an ancestry verdict.
The mechanism is git's `--recursive`, and WHERE it sits. It brings a path's
nested submodules in only when the very call that materializes the path is
the one that recurses. A path that was materialized EARLIER is already at
its recorded gitlink, so `advance_path` returns before git is called at
all — and the nested level stays absent. The post-condition is therefore
the DEEP one: every requested path's own declared submodules are
materialized AT the gitlinks that path's CURRENT tree records, because a
twin that is present but a revision behind the parent's record is still a
stale twin.
The nested level is materialized by the SAME script, re-rooted at the
path's own root, so the path lifecycle has ONE implementation at every
level (R2) and the R6 policy — never clobber a checkout that carries work
— holds at every level too. The nested pass runs only for a path sitting
AT its recorded gitlink: the nested gitlinks live in the path's own tree,
so they are only meaningful there.
`advance_path` no longer carries `--recursive`, and the reason is measured,
not stylistic. git's recursion force-checks a nested submodule out to the
recorded gitlink and SILENTLY DISCARDS its local commits (measured
2026-10-26: rc=0, no warning, the nested checkout's own commit dropped
from its HEAD). The script's own recursion applies the R6 policy at every
level instead: a nested checkout that carries work is REPORTED and left
alone. `--recursive` stays on `materialize_uninitialized`, the one call
that touches a path with no subtree at all, where nothing under it can be
clobbered.
The advance's "has UNCOMMITTED changes" notice now names both causes — the
path's own uncommitted work, or a nested path that does not match the
gitlink it records for it — because a path whose own tree is clean does NOT
have uncommitted changes, and saying so would be false. git reports the
nested cause in the same porcelain view, and the nested level's own
divergence is reported at the nested level.
The script's `--self-test` gained FOUR claims over a new nested fixture, and
every one of them discriminates — three mutations, each of which turns a
different claim RED:
* a materialized path's nested level is materialized at the gitlink its
current tree records (the at-record shape: the defect's own shape);
* a nested checkout with its own commits is REPORTED, not clobbered;
* a path behind its record advances and its nested level follows to the
gitlink the ADVANCED tree records (the behind shape);
* a divergent nested twin is reported, not clobbered even when the path's
OWN config hides it from git's status view (`submodule.<name>.ignore`)
— the shape in which git's own recursion silently discards the twin's
commits, and the guard cannot see what the config hides.
Removing the nested pass turns all four RED. Replacing it with git's
`--recursive` turns the two policy claims RED, because git force-checks a
divergent twin out and drops its commits. Restoring `--recursive` on the
advance turns the last one RED.
The root is resolved to an ABSOLUTE path once. `git -C` changes the
working directory, so a relative root made the nested read
(`git -C <root>/<path> config -f <root>/<path>/.gitmodules`) look for the
file INSIDE the directory it had just entered and find nothing. The
self-test passes a RELATIVE root on purpose, so the claim covers the fix.
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
Review — BLOCKI re-derived every claim from the diff and the body. The code change itself is coherent and, on the logic I can read, correct; the block is on the body's evidence, which contains a verifiable contradiction. What checks out
Blocks1. The body presents: Per the diff, new-file line 609 is exactly the advance command without Required fix: re-run the sweep on 2. PR body "Rulebook compliance" / Filed issues — the post-condition claim is internally contradicted. The body says the post-condition "holds in every reachable shape" and then immediately concedes that "a twin that carries work cannot be moved to a gitlink … so it is reported rather than moved." In that shape the twin is not at the gitlink the path's current tree records, so the post-condition does not hold as stated. This is the same shape the body files as #711. Required fix: qualify the claim (e.g. "holds for every shape in which the nested twin carries no work; a twin that carries work is reported, per #711") so the body does not overclaim. Non-blocking observations
The code change should merge once the body's evidence is corrected; nothing in the diff itself is a blocker. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS Round 1's BLOCK is answered. Both blocks were on the body's evidence, not the diff; the diff is unchanged, so the head is unchanged ( What each block cost, and what fixed it
The RCA — what the two blocks share
The third finding this round raised — the body lint checks the evidence's SHAPE and never its TRUTH, so it cannot tell a hand-written output block from a captured one. That is not this change's to fix (the linter belongs to The two non-blocking observations, answered with proof
Head: Agent: umbrella-prose-truth Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated) |
Review — PASSI re-derived the change from the diff and re-evaluated both comments against the current state. Correctness (diff vs. claimed mechanism)
Tests (in the diff, would fail without the change)I walked claims 19–22 against the fixture construction and they are sound and mutually independent:
The three mutations described (A: drop nested pass → 19; B: recursive update → 20; C: Security / scopeNo secrets, no injection surface (paths come from git's own submodule config and are passed as argv), no new privilege. Single file, no dead legacy path — the only remaining Comment thread
Non-blocking observations
The diff is correct, ships coverage that fails without it, and the body's evidence is now internally consistent with the diff to the extent it can be checked statically. The round-1 blocks are addressed; no new blocker is present. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
… names the CLASS Round 2's BLOCK report was right, and it was right about a claim this PR INTRODUCED: the same overstatement the previous round had removed from scripts/init-submodules.sh's header had been re-introduced, in four other surfaces, in the same cutover. The corrected claim is the measured one: the currency report judges a twin's CURRENCY from the twin's REMOTE alone and never asks whether the checkout EXISTS, so while that remote has not moved the twin reads `cur` and the report exits 0 -- MEASURED in the reproduced defect state, `0 of 411 pin(s) NOT current [411 cur]`, the SAME verdict the healthy tree prints. The checkout is needed only to CLASSIFY a twin whose remote HAS moved, and only then does the report print `differs (no checkout of box/cachyos to judge ancestry)`, the twin's class left UNDETERMINED. EVERY passage now says exactly that -- TWELVE of them, across SEVEN files, not four. 1. `.pi/README.md`, the .pi extension's MODULE HEADER and its STEP 3b COMMENT, and `.claude/workflows/verify-status.js` are restated to the measured truth. The old wording presented a moved-remote behaviour as the unconditional consequence of an absent nested level. 2. The R5 SWEEP IS NOW A COMMITTED GATE, AND IT NAMES THE CLASS. The sweep that should have caught this named only the wording the previous round had RETIRED, so it could not name a claim it had no key for -- and a sweep written in a PR body is not a control, because nothing in the repository runs it. The key set lives in `scripts/check-retired-claims.mjs`: EIGHT patterns, each a pattern for a CLASS of claim, and each carrying the concrete WORDINGS that class has been written in as its proof material -- `--self-test` injects every one of the SEVENTEEN instances into a COPY of a tracked file and requires the scan to go RED, because a pattern that cannot be made to fail proves nothing. The scan is CASE-INSENSITIVE, and that is not tidiness: this very class was written in two cases, and a case-sensitive key catches only the case its author happened to use. 3. The gate found SIX further SITES the class had reached, across FOUR files, and they are corrected here, in the same commit: scripts/check-pi-gates.mjs's own two comments, scripts/check-verify-submodules.mjs's header, the .pi extension's fail-closed comment, the SHIPPED STEP's comment, and the SHIPPED STEP's own FAILURE MESSAGE. The RCA of that miss is the control's shape, not the writer's care: a list of EXACT WORDINGS can only name the wordings that have already been written. MEASURED: the round-1 sweep had exactly ONE key for this class -- the wording it had already retired in scripts/init-submodules.sh -- and that key matches NONE of the TEN sites the class still stood at, so a word list would have caught none of them. So the control now matches the SHAPE (`judge an edge ...`, unqualified), and the wordings became its instances rather than its limits. 4. The non-blocking finding -- "step 3b is only statically checked" -- is FIXED, not filed. `scripts/check-pi-gates.mjs` now FIRES `charly_worktree_create` against a fixture umbrella: an origin carrying the REAL `scripts/init-submodules.sh`, a `charly` module that DECLARES a nested submodule and a `marketplace` module that declares none. F6 proves the nested level really materializes in the worktree; F7 proves a nested level that cannot materialize FAILS the tool, because `pi.exec` RESOLVES on a non-zero exit. Two new mutations keep EVERY static assertion GREEN and are caught ONLY by firing -- the initializer re-rooted at a path that is not the module, and the initializer's non-zero exit swallowed -- which is what proves the fired coverage is live (R7). 5. The non-blocking finding -- "`--all`/`--root` support is not visible in the diff" -- is answered, not filed: both flags are PRE-EXISTING (origin/main's scripts/init-submodules.sh carries them; they landed with #647 / PR #712), and the script's own `--self-test` exercises both on a temp fixture -- `--root` throughout, and claim 6, "--all materializes EVERY declared path" -- and `scripts/self-test.sh` runs that self-test. 6. The pre-commit gate BLOCKED this commit once, and the finding is fixed here, not filed: the new `.pi/README.md` paragraph stated a count of a collection that GROWS -- "0 of 411 pin(s)" -- in a block that carried no date, which is exactly what `scripts/check-readme-measurements.mjs` exists to catch. The missed control was mine: I ran the pi and retired-claim gates and not the measurement gate. The paragraph now carries the day the measurement was taken (2026-10-26), and the gate is green. 7. A finding OF MY OWN, found in round 2, and it is against this change's own control: the sweep's scan unit was a LINE, and the class it names is a CLAIM -- and a claim WRAPS. MEASURED on the class's own TWO sites in origin/main's scripts/init-submodules.sh: the LATER of them (:622) splits the phrase across a comment marker (`... the umbrella's own currency report cannot then JUDGE` / `# an edge whose source is a nested pin: ...`), so a line-oriented scan of the class sees ONE of that class's TWO sites there and MISSES the wrapped one -- the very site this PR's first push had already retired. A line-oriented scan of the class found 1 there and 10 on the round-1 head; the scan in this commit finds 2 there and the same 10. Across both heads the class reached TWELVE sites in SEVEN files. The missed control is the control's UNIT: a control that only recognizes a class in the shape it was first written in is the defect this gate exists to catch, wearing a different hat. So the root fix is in the CONTROL: the scan's unit is now the CLAIM STREAM -- the file's lines with their comment marker stripped, joined by one space across a WRAP, and separated by a hard newline where a sentence ENDS or a new block BEGINS -- and the class's own WRAPPED wording is one of the class's instances, so the self-test proves the wrap-tolerant form is EFFECTIVE rather than merely present. The self-test also proves every key is SOUND: seven qualified, TRUE wordings must leave the scan GREEN -- the flat class's FOUR (the ANCESTRY qualifier, the same form WRAPPED, a scoped possessive, and the English compound "an edge case") and the EIGHTH class this round's false-claim finding added (below) its THREE (the VERDICT level really does read alike, the report's own state name really does tell them apart, and a not-current verdict does not separate the two KINDS of not-current) -- because a key that cries wolf is a gate that gets switched off. The comment markers are the languages' own -- `//`, `#`, `*`, `<!--` -- and `;` is NOT one of them: a shell `case` arm's `;;` is CODE, and reading it as a comment would join it to the comment above it. MEASURED: dropping it costs no power -- the class still stands at 10 on the round-1 head and at 2 in origin/main. 8. A finding OF MY OWN, found in round 2, and it is against this PR's own PROSE: this change INTRODUCED a false claim, in FOUR surfaces in the TREE (and, as finding 11 shows, in TWO further surfaces that a tree scan cannot see: this PR's own FIRST COMMIT'S MESSAGE, and this PR's own PR BODY) -- of the very kind it exists to remove -- that the report's two not-current states are "indistinguishable from a real divergence" / "which a reader cannot tell apart from a real divergence". The PRODUCT says otherwise: the report's own `ancestryClass` (plugin-task v0.2026297.2108, candy/plugin-task/verbs.go:916) NAMES the real-divergence states apart -- `behind`, `unmerged` and `not-on-the-served-line` for a twin whose checkout EXISTS, and only `differs (no checkout of <twin> to judge ancestry)` for a twin whose checkout does NOT. So the report's own state name tells a real divergence apart from an unjudgeable one; only the VERDICT level cannot, because both read "not current'. MEASURED: the class stood at FOUR sites in the TREE at the round-1 head and at ZERO in origin/main's TREE -- it is a class this change invented. All four tree surfaces are corrected (.pi/README.md, the .pi extension's module header, its step 3b comment, and the initializer's WHY block), and the class is keyed in the committed sweep as its EIGHTH class, with three TRUE wordings of the same idea as its counter-instances, so the sweep cannot miss its recurrence. 9. A finding OF MY OWN, found while assembling this round's body, and it is against this round's own EVIDENCE: the LIVE PROOF's paste was captured from a run that ABORTED. The proof script ran the shipped step under `set -e` in its FIRST section, where the step's failure was EXPECTED -- the tree is a light tree, so the nested level is absent and the step fails -- and `set -e` treated that expected failure as fatal, so the script died before it recorded anything. The paste therefore carried `PROOF_RC=1` and three EMPTY greps, and the body presented that as the proof. MEASURED: the same script against a tree whose nested level was MATERIALIZED printed the whole proof -- the difference was the STARTING state, not the tree. The missed control was the CAPTURE's: it never asserted the proof's exit code, so a failed proof was pasted as evidence. The root fix is in the CONTROL: the proof ESTABLISHES its own PRECONDITION -- the nested level materialized at its gitlink, with the umbrella's own initializer -- so every run starts from the SAME state, every expected failure is RECORDED instead of being fatal, and the script fails LOUD when a state it requires is not the state it gets. It is IDEMPOTENT now: two consecutive runs produce byte-identical logs. 10. A finding OF MY OWN, again against this round's own EVIDENCE, and again caught by the control -- the body's own verifier re-running every pasted command: one pasted COMMAND could not run at all. `grep -m 1 -F 'the umbrella's own tracked tree carries no RETIRED claim form' ...` has an APOSTROPHE inside single quotes, so `umbrella's` closes the quoted string and bash dies with `unexpected EOF while looking for matching ''`. The output pasted for that command was HAND-WRITTEN -- exactly what the control exists to catch. The command is double-quoted now, and its output is captured, not written. The same round found the live proof's LOG was BINARY: the init's plugin views inherit the redirected descriptor and write to it AFTER the parent exits, so the file carried a hole, and the NUL padding made every grep over it answer `binary file matches`. The root fix is in the CONTROL again: the remedy's summary is read from a STREAM -- a pipe carries no offsets, so no hole can appear -- and the exit code is the INIT's own (`PIPESTATUS[0]`), never the reader's. 11. A finding OF MY OWN, found in the same pass, and it is against this PR's own PUBLISHED HISTORY: this PR's FIRST COMMIT'S MESSAGE (13c2004) is PUSHED, and so cannot be amended, and it carries THREE retired claim forms -- one in each of three classes. MEASURED by the body's own control, which scans this branch's commit messages with the committed sweep's own patterns: the FIRST message takes THREE hits (the verdict-level "indistinguishable from a real divergence", the FLAT "cannot judge an edge", and the "which the pin contract calls a FAILURE" wording), the SECOND takes none, and the THIRD -- this message -- takes only the hits its own retractions quote. The first message states, in the same breath, the code-branch claim that finding 8's measurement also found false ("asks the edge arm for the twin's checkout, finds none, and prints `differs (...)`"): the report prints that state only once the twin's remote HAS moved, which on the defect tree it had not. The surface CANNOT be fixed in place: R6 forbids amending or rewriting published history, and a pushed branch is never rebased. It is therefore REPORTED, not corrected -- the rulebook's own remedy for a finding raised on one's own PR, which is fixed or rebutted with evidence, never filed away. The MECHANISM behind it is ALREADY FILED: #707 measured that the landed squash commit carries the FIRST commit's message rather than the PR body's, so a later session's body moves forward while the landed message stays behind -- and THIS PUSH ADDS ITS EVIDENCE to that issue, with the three measured forms, the product's counter-evidence and the eight repos' merge setting. The successor-PR route remains the operator's option. MEASURED, and stated plainly because it is the operator's to weigh: the org's merge setting is `squash_merge_commit_message: COMMIT_MESSAGES` -- the same in all EIGHT org repos measured (charly, sdk, spec, marketplace, docs, layer-charly-internals, plugin-task, layer-charly-check) -- so the branch's commit messages BECOME the squash message, which PR #680 shows: its squash message is 4.4 KB while its PR body is 20.4 KB. This retraction is ITSELF part of that squashed message, and it lands at its END: a reader of `main`'s history meets the retraction in the same message, and the false sentence is never the last word. I am not changing a shared org setting to avoid that, and I am not rewriting a published commit; the alternative is a successor PR whose single commit carries an accurate message, at the cost of a fresh branch, a fresh R10 gate and a fresh validator round, and the operator can order that at the merge. THE MISSED CONTROL: the committed sweep scans the umbrella's TRACKED TREE, and a commit message is not a tracked file, so the patterns that name these classes never saw a message. THE ROOT FIX is in the CONTROL: the body's own control now scans this PR's COMMIT MESSAGES with the committed sweep's own patterns, next to the PROSE scans it already does (this body, this round's PR comment, and this round's evidence comment on #707), and the count it reports is in the body's control block -- a tripwire that NAMES this surface, so a later round cannot add a retired wording to a message without the count moving. 12. A finding OF MY OWN, found in this round, and it is against this round's own BODY: the body measured 92,328 CHARACTERS (92,859 bytes) -- 41 % over GitHub's 65,536-character cap for an issue or PR body -- and NOTHING in the push path would have refused it. The two gates that stand between a body and a push (the org linter `marketplace/scripts/pr_body_lint.py`, and the umbrella's own `scripts/check-pr-body-diff.mjs`, the one the pre-push hook runs against `PR_BODY.md`) check the sections, the footer order, the attribution and the diff, and NEITHER checks the size; the repo already knows the failure mode, because `scripts/sync-pr-body.sh` documents it as MEASURED on 2026-09-22 and guards ITS body with `GITHUB_BODY_MAX` -- but that guard covers the SYNC PR's body alone, and an authored body had nothing. THE ROOT FIX is in the BODY: it is rebuilt under the cap, with every PASTE kept, every finding kept, and the two longest listings reduced to their own captured output instead of a re-typed copy of it. The MISSING COMMITTED GUARD is a separate change, with a separate gate and a separate subject, so it is FILED rather than folded in: #716. 13. A finding OF MY OWN, found in the same pass, and it is against this round's own PROSE, in TWO statements. The first: the size claim read "the round-2 body measured 92,328 bytes", while 92,328 is the CHARACTER count of THIS round's LOCAL draft -- a draft that was never published and never handed to the push path -- and the published round-2 body measured 39,896 bytes; the unit was wrong and the body was wrong. The second: the body's numbering statement claimed that all THREE surfaces list the findings by SUBJECT, while this message numbers its OWN list -- so the statement named a surface it had not read. THE MISSED CONTROL: this change's body discipline -- every number read back from the artefact that owns it -- was applied to the PASTE blocks, and NOT to the PROSE, so nothing compared a sentence with the file it described. THE ROOT FIX: every figure is re-measured from the file that owns it and quoted with its unit, the artefact it names is named, and the body's own size is stated as a BOUND rather than as a number the body would invalidate by carrying it. The filed issue carried the same error and is corrected to match. Filed: #713 (the pin contract's classification of an unjudgeable pin is contested), #714 (the .pi worktree tool drops the exit code of four of its five pi.exec calls), and #716 (nothing in the push path refuses a PR body over GitHub's 65,536-character cap). The MECHANISM behind finding 11 is already filed at #707, and this push adds its EVIDENCE to that issue. No other issue is filed -- finding 11 is NOT filed away: it is a finding raised on this PR, and the rulebook's own remedy is that it is fixed or rebutted with evidence, never filed. Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
…) (#715) * fix(gate): the nested check must assert the nested POST-CONDITION (#710) `charly task init` now guarantees that a materialized path carries its OWN nested level (#647). The umbrella's gate did not follow: its nested step treated an ABSENT nested level as a notice, so a tree that could not be judged passed `charly task verify` in silence. The step was named for a claim it did not make — "charly's own nested submodules are at their gitlinks" — and it passed on a tree where NONE of them had a checkout. On that tree the umbrella's currency report asks the edge arm for the twin's checkout, finds none, and prints `differs (no checkout of box/cachyos to judge ancestry)`: the twin's class left UNDETERMINED, indistinguishable from a real divergence, while the gate stays green. The gate's green must not mean "less than it says". So the step's rule becomes the post-condition: under a MATERIALIZED charly, an absent nested level FAILS, naming the paths and the remedy (`charly task init`); a `+`/`U` drift still FAILS; and the "OK" line moved INSIDE the branch, because a check that ran nothing must not claim the nested submodules are at their gitlinks. A charly that is NOT materialized at all is still a light tree, and stays a notice — its pin is audited from the index. The strict rule has a blast radius, and it is inside this change: the .pi extension's `charly_worktree_create` materialized `charly` NON-recursively, so a .pi worktree would have gone RED at the new step. Under R1 (this change introduces it → blocking) the .pi path is fixed in the same cutover, not filed. The .pi fix materializes the nested level through the umbrella's OWN initializer, re-rooted at the module (`--root <module> --all`): at a module's root, `--all` IS that module's nested level, so the path lifecycle keeps ONE implementation at every level (R2), and the `--reference` borrowing of the top level is untouched. Cost is measured, not assumed: in a real .pi worktree the nested level costs 9.0 MB — the six twins' working trees (5.2 MB) plus their blobless object stores (3.8 MB) — inside charly's 21.1 MB checkout, which the path BUILDS a 54 MB binary into, and marketplace's 9 MB, against the 9.5 G a full recursive materialization of the graph costs. The nested pass FAILS CLOSED — `pi.exec` RESOLVES on a non-zero exit, so the code is read — because a worktree whose nested level is missing is a worktree whose currency report cannot judge an edge, and it must never be reported as ready. The fixture gate `scripts/check-verify-submodules.mjs` EXTRACTS the shipped step text from `charly.yml` (never a copy, so the two cannot drift) and gained the discriminating cases: a materialized charly without its nested level FAILS naming the path and the remedy; an uninitialized charly is a NOTICE and GREEN; a `+`/`U` drift still FAILS; a materialized charly whose nested level IS at its gitlink is GREEN. Two new mutations turn it RED — the absent nested level demoted back to a notice (the defect's own shape), and the "OK" line printed even when nothing was checked. `scripts/check-pi-gates.mjs` gained the matching static assertions (the nested level goes through the umbrella's own initializer, re-rooted at the module, for the module's OWN declared set, and fails CLOSED) and two mutations that turn it RED: the nested level never materialized, and the nested materialization not fail-closed. `scripts/init-submodules.sh`'s header asserted, twice, that the report's `differs (no checkout of box/cachyos to judge ancestry)` "is which the pin contract calls a FAILURE" — the rulebook's reading, which the pin contract's own state table and the product that prints the state contradict. The two sentences now say the fact both surfaces agree on: the twin's class is left UNDETERMINED. The classification itself is filed as #713. The surfaces that carry the claim were corrected to match: the plan-only invariant emitter (`.claude/workflows/verify-status.js`), the .pi cost model (`.pi/README.md`), and the PR-body evidence builder (`scripts/sync-pin-evidence.sh`), whose wording could be read as "the nested level is optional". Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated) * fix(gate): the report's blindness is stated, and an unreadable nested status FAILS The first push of this branch carried three claims the review could not corroborate, and one path that could pass while reading nothing. This commit corrects the claims, closes the path, and re-proves the whole change. 1. The cost comparison in the .pi extension's comment quoted a figure from the wrong universe: it compared the nested level's 9.0 MB with "the 9.5 GB the whole graph would cost". That 9.5 G is the umbrella's own FULL-clone measurement -- dated and measured in the README and in scripts/measure-clone.sh, and it still lives there -- but the .pi path's cost model is a different universe, and the figure that owns it is .pi/README.md's own table: ~606 MB for a full recursive materialization of this graph (376 MB of worktree-private module objects plus ~230 MB of checkouts). The comment now quotes that figure, and the body pastes the README row it comes from. 2. The initializer's header claimed a pin-state classification the body did not describe: "the pin's state becomes a `blocked-by` that names the producer". The clause is now corroborated by the two surfaces that OWN it and stated in the body -- the pin contract's own state table (AGENTS.md: 613-614, which names the state and says it PASSES) and the product's own code (plugin-task v0.2026297.2108, candy/plugin-task/verbs.go:1233, which produces it). Whether an unjudgeable pin is a FAILURE is still contested -- #713 -- and this change does not rest on it. 3. The claim about what the currency report DOES was the product's CODE branch, not the tree's OBSERVED behaviour. The report judges a twin's currency from the twin's REMOTE alone, and consults the twin's CHECKOUT only to CLASSIFY a twin whose remote has moved -- it never asks whether the checkout EXISTS. MEASURED in the reproduced defect state (the whole nested level absent, all six twins), the report's own verdict line reads "0 of 411 pin(s) NOT current [411 cur]" and it EXITS 0 -- and that line is the SAME line the healthy tree produces out of `charly task verify`. Two states, one verdict: the report cannot tell them apart, so it cannot see the defect. That measurement is the ROOT of the design: the gate has to assert #647's post-condition itself. The header, the body and this commit now say the measured truth. 4. FIXED, not filed: the shipped step swallowed a failure to READ the nested status (`|| true`), so an unreadable status left an empty check that still claimed the nested submodules are at their gitlinks. That is the same mechanism as this change's own thesis, so it is closed in the same cutover: the step now fails when the status cannot be read, the fixture step's label names the case, and the fixture gate gained a case (a materialized charly whose gitfile points at an object store that is not there) plus a mutation that reintroduces the swallow. Filed: #713 (the pin contract's classification of an unjudgeable pin is contested) and #714 (the .pi worktree tool drops the exit code of four of its five pi.exec calls). No other issue is filed. Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated) * fix(gate): the report's blindness is stated TRUTHFULLY, and the sweep names the CLASS Round 2's BLOCK report was right, and it was right about a claim this PR INTRODUCED: the same overstatement the previous round had removed from scripts/init-submodules.sh's header had been re-introduced, in four other surfaces, in the same cutover. The corrected claim is the measured one: the currency report judges a twin's CURRENCY from the twin's REMOTE alone and never asks whether the checkout EXISTS, so while that remote has not moved the twin reads `cur` and the report exits 0 -- MEASURED in the reproduced defect state, `0 of 411 pin(s) NOT current [411 cur]`, the SAME verdict the healthy tree prints. The checkout is needed only to CLASSIFY a twin whose remote HAS moved, and only then does the report print `differs (no checkout of box/cachyos to judge ancestry)`, the twin's class left UNDETERMINED. EVERY passage now says exactly that -- TWELVE of them, across SEVEN files, not four. 1. `.pi/README.md`, the .pi extension's MODULE HEADER and its STEP 3b COMMENT, and `.claude/workflows/verify-status.js` are restated to the measured truth. The old wording presented a moved-remote behaviour as the unconditional consequence of an absent nested level. 2. The R5 SWEEP IS NOW A COMMITTED GATE, AND IT NAMES THE CLASS. The sweep that should have caught this named only the wording the previous round had RETIRED, so it could not name a claim it had no key for -- and a sweep written in a PR body is not a control, because nothing in the repository runs it. The key set lives in `scripts/check-retired-claims.mjs`: EIGHT patterns, each a pattern for a CLASS of claim, and each carrying the concrete WORDINGS that class has been written in as its proof material -- `--self-test` injects every one of the SEVENTEEN instances into a COPY of a tracked file and requires the scan to go RED, because a pattern that cannot be made to fail proves nothing. The scan is CASE-INSENSITIVE, and that is not tidiness: this very class was written in two cases, and a case-sensitive key catches only the case its author happened to use. 3. The gate found SIX further SITES the class had reached, across FOUR files, and they are corrected here, in the same commit: scripts/check-pi-gates.mjs's own two comments, scripts/check-verify-submodules.mjs's header, the .pi extension's fail-closed comment, the SHIPPED STEP's comment, and the SHIPPED STEP's own FAILURE MESSAGE. The RCA of that miss is the control's shape, not the writer's care: a list of EXACT WORDINGS can only name the wordings that have already been written. MEASURED: the round-1 sweep had exactly ONE key for this class -- the wording it had already retired in scripts/init-submodules.sh -- and that key matches NONE of the TEN sites the class still stood at, so a word list would have caught none of them. So the control now matches the SHAPE (`judge an edge ...`, unqualified), and the wordings became its instances rather than its limits. 4. The non-blocking finding -- "step 3b is only statically checked" -- is FIXED, not filed. `scripts/check-pi-gates.mjs` now FIRES `charly_worktree_create` against a fixture umbrella: an origin carrying the REAL `scripts/init-submodules.sh`, a `charly` module that DECLARES a nested submodule and a `marketplace` module that declares none. F6 proves the nested level really materializes in the worktree; F7 proves a nested level that cannot materialize FAILS the tool, because `pi.exec` RESOLVES on a non-zero exit. Two new mutations keep EVERY static assertion GREEN and are caught ONLY by firing -- the initializer re-rooted at a path that is not the module, and the initializer's non-zero exit swallowed -- which is what proves the fired coverage is live (R7). 5. The non-blocking finding -- "`--all`/`--root` support is not visible in the diff" -- is answered, not filed: both flags are PRE-EXISTING (origin/main's scripts/init-submodules.sh carries them; they landed with #647 / PR #712), and the script's own `--self-test` exercises both on a temp fixture -- `--root` throughout, and claim 6, "--all materializes EVERY declared path" -- and `scripts/self-test.sh` runs that self-test. 6. The pre-commit gate BLOCKED this commit once, and the finding is fixed here, not filed: the new `.pi/README.md` paragraph stated a count of a collection that GROWS -- "0 of 411 pin(s)" -- in a block that carried no date, which is exactly what `scripts/check-readme-measurements.mjs` exists to catch. The missed control was mine: I ran the pi and retired-claim gates and not the measurement gate. The paragraph now carries the day the measurement was taken (2026-10-26), and the gate is green. 7. A finding OF MY OWN, found in round 2, and it is against this change's own control: the sweep's scan unit was a LINE, and the class it names is a CLAIM -- and a claim WRAPS. MEASURED on the class's own TWO sites in origin/main's scripts/init-submodules.sh: the LATER of them (:622) splits the phrase across a comment marker (`... the umbrella's own currency report cannot then JUDGE` / `# an edge whose source is a nested pin: ...`), so a line-oriented scan of the class sees ONE of that class's TWO sites there and MISSES the wrapped one -- the very site this PR's first push had already retired. A line-oriented scan of the class found 1 there and 10 on the round-1 head; the scan in this commit finds 2 there and the same 10. Across both heads the class reached TWELVE sites in SEVEN files. The missed control is the control's UNIT: a control that only recognizes a class in the shape it was first written in is the defect this gate exists to catch, wearing a different hat. So the root fix is in the CONTROL: the scan's unit is now the CLAIM STREAM -- the file's lines with their comment marker stripped, joined by one space across a WRAP, and separated by a hard newline where a sentence ENDS or a new block BEGINS -- and the class's own WRAPPED wording is one of the class's instances, so the self-test proves the wrap-tolerant form is EFFECTIVE rather than merely present. The self-test also proves every key is SOUND: seven qualified, TRUE wordings must leave the scan GREEN -- the flat class's FOUR (the ANCESTRY qualifier, the same form WRAPPED, a scoped possessive, and the English compound "an edge case") and the EIGHTH class this round's false-claim finding added (below) its THREE (the VERDICT level really does read alike, the report's own state name really does tell them apart, and a not-current verdict does not separate the two KINDS of not-current) -- because a key that cries wolf is a gate that gets switched off. The comment markers are the languages' own -- `//`, `#`, `*`, `<!--` -- and `;` is NOT one of them: a shell `case` arm's `;;` is CODE, and reading it as a comment would join it to the comment above it. MEASURED: dropping it costs no power -- the class still stands at 10 on the round-1 head and at 2 in origin/main. 8. A finding OF MY OWN, found in round 2, and it is against this PR's own PROSE: this change INTRODUCED a false claim, in FOUR surfaces in the TREE (and, as finding 11 shows, in TWO further surfaces that a tree scan cannot see: this PR's own FIRST COMMIT'S MESSAGE, and this PR's own PR BODY) -- of the very kind it exists to remove -- that the report's two not-current states are "indistinguishable from a real divergence" / "which a reader cannot tell apart from a real divergence". The PRODUCT says otherwise: the report's own `ancestryClass` (plugin-task v0.2026297.2108, candy/plugin-task/verbs.go:916) NAMES the real-divergence states apart -- `behind`, `unmerged` and `not-on-the-served-line` for a twin whose checkout EXISTS, and only `differs (no checkout of <twin> to judge ancestry)` for a twin whose checkout does NOT. So the report's own state name tells a real divergence apart from an unjudgeable one; only the VERDICT level cannot, because both read "not current'. MEASURED: the class stood at FOUR sites in the TREE at the round-1 head and at ZERO in origin/main's TREE -- it is a class this change invented. All four tree surfaces are corrected (.pi/README.md, the .pi extension's module header, its step 3b comment, and the initializer's WHY block), and the class is keyed in the committed sweep as its EIGHTH class, with three TRUE wordings of the same idea as its counter-instances, so the sweep cannot miss its recurrence. 9. A finding OF MY OWN, found while assembling this round's body, and it is against this round's own EVIDENCE: the LIVE PROOF's paste was captured from a run that ABORTED. The proof script ran the shipped step under `set -e` in its FIRST section, where the step's failure was EXPECTED -- the tree is a light tree, so the nested level is absent and the step fails -- and `set -e` treated that expected failure as fatal, so the script died before it recorded anything. The paste therefore carried `PROOF_RC=1` and three EMPTY greps, and the body presented that as the proof. MEASURED: the same script against a tree whose nested level was MATERIALIZED printed the whole proof -- the difference was the STARTING state, not the tree. The missed control was the CAPTURE's: it never asserted the proof's exit code, so a failed proof was pasted as evidence. The root fix is in the CONTROL: the proof ESTABLISHES its own PRECONDITION -- the nested level materialized at its gitlink, with the umbrella's own initializer -- so every run starts from the SAME state, every expected failure is RECORDED instead of being fatal, and the script fails LOUD when a state it requires is not the state it gets. It is IDEMPOTENT now: two consecutive runs produce byte-identical logs. 10. A finding OF MY OWN, again against this round's own EVIDENCE, and again caught by the control -- the body's own verifier re-running every pasted command: one pasted COMMAND could not run at all. `grep -m 1 -F 'the umbrella's own tracked tree carries no RETIRED claim form' ...` has an APOSTROPHE inside single quotes, so `umbrella's` closes the quoted string and bash dies with `unexpected EOF while looking for matching ''`. The output pasted for that command was HAND-WRITTEN -- exactly what the control exists to catch. The command is double-quoted now, and its output is captured, not written. The same round found the live proof's LOG was BINARY: the init's plugin views inherit the redirected descriptor and write to it AFTER the parent exits, so the file carried a hole, and the NUL padding made every grep over it answer `binary file matches`. The root fix is in the CONTROL again: the remedy's summary is read from a STREAM -- a pipe carries no offsets, so no hole can appear -- and the exit code is the INIT's own (`PIPESTATUS[0]`), never the reader's. 11. A finding OF MY OWN, found in the same pass, and it is against this PR's own PUBLISHED HISTORY: this PR's FIRST COMMIT'S MESSAGE (13c2004) is PUSHED, and so cannot be amended, and it carries THREE retired claim forms -- one in each of three classes. MEASURED by the body's own control, which scans this branch's commit messages with the committed sweep's own patterns: the FIRST message takes THREE hits (the verdict-level "indistinguishable from a real divergence", the FLAT "cannot judge an edge", and the "which the pin contract calls a FAILURE" wording), the SECOND takes none, and the THIRD -- this message -- takes only the hits its own retractions quote. The first message states, in the same breath, the code-branch claim that finding 8's measurement also found false ("asks the edge arm for the twin's checkout, finds none, and prints `differs (...)`"): the report prints that state only once the twin's remote HAS moved, which on the defect tree it had not. The surface CANNOT be fixed in place: R6 forbids amending or rewriting published history, and a pushed branch is never rebased. It is therefore REPORTED, not corrected -- the rulebook's own remedy for a finding raised on one's own PR, which is fixed or rebutted with evidence, never filed away. The MECHANISM behind it is ALREADY FILED: #707 measured that the landed squash commit carries the FIRST commit's message rather than the PR body's, so a later session's body moves forward while the landed message stays behind -- and THIS PUSH ADDS ITS EVIDENCE to that issue, with the three measured forms, the product's counter-evidence and the eight repos' merge setting. The successor-PR route remains the operator's option. MEASURED, and stated plainly because it is the operator's to weigh: the org's merge setting is `squash_merge_commit_message: COMMIT_MESSAGES` -- the same in all EIGHT org repos measured (charly, sdk, spec, marketplace, docs, layer-charly-internals, plugin-task, layer-charly-check) -- so the branch's commit messages BECOME the squash message, which PR #680 shows: its squash message is 4.4 KB while its PR body is 20.4 KB. This retraction is ITSELF part of that squashed message, and it lands at its END: a reader of `main`'s history meets the retraction in the same message, and the false sentence is never the last word. I am not changing a shared org setting to avoid that, and I am not rewriting a published commit; the alternative is a successor PR whose single commit carries an accurate message, at the cost of a fresh branch, a fresh R10 gate and a fresh validator round, and the operator can order that at the merge. THE MISSED CONTROL: the committed sweep scans the umbrella's TRACKED TREE, and a commit message is not a tracked file, so the patterns that name these classes never saw a message. THE ROOT FIX is in the CONTROL: the body's own control now scans this PR's COMMIT MESSAGES with the committed sweep's own patterns, next to the PROSE scans it already does (this body, this round's PR comment, and this round's evidence comment on #707), and the count it reports is in the body's control block -- a tripwire that NAMES this surface, so a later round cannot add a retired wording to a message without the count moving. 12. A finding OF MY OWN, found in this round, and it is against this round's own BODY: the body measured 92,328 CHARACTERS (92,859 bytes) -- 41 % over GitHub's 65,536-character cap for an issue or PR body -- and NOTHING in the push path would have refused it. The two gates that stand between a body and a push (the org linter `marketplace/scripts/pr_body_lint.py`, and the umbrella's own `scripts/check-pr-body-diff.mjs`, the one the pre-push hook runs against `PR_BODY.md`) check the sections, the footer order, the attribution and the diff, and NEITHER checks the size; the repo already knows the failure mode, because `scripts/sync-pr-body.sh` documents it as MEASURED on 2026-09-22 and guards ITS body with `GITHUB_BODY_MAX` -- but that guard covers the SYNC PR's body alone, and an authored body had nothing. THE ROOT FIX is in the BODY: it is rebuilt under the cap, with every PASTE kept, every finding kept, and the two longest listings reduced to their own captured output instead of a re-typed copy of it. The MISSING COMMITTED GUARD is a separate change, with a separate gate and a separate subject, so it is FILED rather than folded in: #716. 13. A finding OF MY OWN, found in the same pass, and it is against this round's own PROSE, in TWO statements. The first: the size claim read "the round-2 body measured 92,328 bytes", while 92,328 is the CHARACTER count of THIS round's LOCAL draft -- a draft that was never published and never handed to the push path -- and the published round-2 body measured 39,896 bytes; the unit was wrong and the body was wrong. The second: the body's numbering statement claimed that all THREE surfaces list the findings by SUBJECT, while this message numbers its OWN list -- so the statement named a surface it had not read. THE MISSED CONTROL: this change's body discipline -- every number read back from the artefact that owns it -- was applied to the PASTE blocks, and NOT to the PROSE, so nothing compared a sentence with the file it described. THE ROOT FIX: every figure is re-measured from the file that owns it and quoted with its unit, the artefact it names is named, and the body's own size is stated as a BOUND rather than as a number the body would invalidate by carrying it. The filed issue carried the same error and is corrected to match. Filed: #713 (the pin contract's classification of an unjudgeable pin is contested), #714 (the .pi worktree tool drops the exit code of four of its five pi.exec calls), and #716 (nothing in the push path refuses a PR body over GitHub's 65,536-character cap). The MECHANISM behind finding 11 is already filed at #707, and this push adds its EVIDENCE to that issue. No other issue is filed -- finding 11 is NOT filed away: it is a finding raised on this PR, and the rulebook's own remedy is that it is fixed or rebutted with evidence, never filed. Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated) * fix(gate): the body's own evidence must be TRUE, and the control asserts its coverage The validator's third BLOCK report found this PR's own body quoting an EMPTY evidence block — the "pattern is effective" listing — while the body's own control reported the whole body as verified. The log the block was captured from holds every line it claims; the CAPTURE is what failed. The mechanism, in the capture: the command that produced the block used `sed` with `/` as its `s` delimiter, while its own pattern names `scripts/init-submodules.sh` — so `sed` read the rest of the expression as FLAGS and aborted with "unknown option to 's'", writing that error to stderr and NOTHING to stdout. The capture kept stdout only, so a command that FAILED became an empty block that reads like a measurement. The same defect sat one command further on, in the reflog listing, whose `sed` used `|` as its delimiter with an unescaped `|` inside its own alternation. THE MISSED CONTROL, and it is the same one in both places: the capture never asserted the command's exit status or its stderr, and the control that re-runs the body's commands asserted FIDELITY — a paste matches what the command emits — and never VERACITY: it never asked whether the command SUCCEEDED, whether it covered every command the body pastes, or whether the body it read was the body being published. The control's own output was a SNAPSHOT taken BEFORE the last assembly, so the published body had never been verified at all. And the body's fences were UNBALANCED — 27 fence lines, an odd number — so one fence was unpaired and every fence after it was mis-paired: each block's closing fence was consumed as the next block's opening. The measurable consequences: the body's own `## Rulebook compliance`, `## Change classification` and `## Filed issues` sections sat INSIDE a fenced block and rendered as code, and the control re-ran SIX of the body's SIXTY-THREE commands while its pasted output claimed that every command above was re-run. THE ROOT FIX is in the control, and it is the control's own assertions: the fences must PAIR, every command line must sit inside a fenced block, the five required sections must be PROSE, every command must EXIT 0 and write NOTHING to stderr, and the control's own output must be re-established as a FIXED POINT over the body that carries it. The capture now fails LOUD instead of shipping an empty block, and a command that reports a count uses a form whose exit status is 0 (`| wc -l`, never `grep -c`, which exits 1 when it counts nothing) — a broken pipeline shows up on stderr, which the same rule catches. AND THE SWEEP'S OWN BLIND SPOT, which is a LIST ITEM. The committed sweep's claim stream DROPPED every markdown block start — a heading, a list item, a table row, a quote — text and all, so a claim a reader sees in a list item was invisible to the scan. The umbrella's own rulebook is written as list items: the shape the claims live in was the shape the gate could not see. MEASURED on this PR's own body, whose R1 findings are list items: the scan reported ONE hit where the prose quotes FOUR of the retired forms. THE MISSED CONTROL, and it is the same shape of gap the sweep was built to close: the self-test injected every instance as a BARE line, so it proved each pattern effective in the one shape it had been written in. A control that only recognizes a class in the shape it was first written in is the defect this gate exists to catch, wearing a different hat. THE ROOT FIX is that a block start is a BOUNDARY, never an EXCLUSION: its text enters the claim stream with the block MARKER stripped (the marker is syntax; the text is what a reader sees), and a list item CONTINUES on the lines indented to its content column, because a claim that wraps inside a list item is one claim. The self-test now proves every pattern effective in the LIST shape as well, and that case is RED without the fix. The tree is unchanged by the fix: the sweep is GREEN over it before and after. The class above is not this PR's to fix here: `scripts/check-pr-body-diff.mjs` — the umbrella's own body gate — reports `check-pr-body-diff: OK` on a body whose fences do not pair, and its evidence and count arms degrade to "NOTE … inapplicable" while the body carries the evidence they claim to be blind to. The gate's fence reader answers WHERE a fence ends and is never asked WHETHER the fences pair. That gate defect is pre-existing and separable from this change's subject, so it is FILED, with the measured blast radius on this PR's own published body and the shape of the fix: a fence-balance assertion and a section-visibility assertion, both hard failures that name their line. The validator's two non-blocking observations are fixed here too. The over-long comment line in `scripts/init-submodules.sh` is re-wrapped to the file's own width with the SAME words (the re-wrap joins back to the original line), and the sweep's CLASS, INSTANCE and COUNTER-INSTANCE counts do not move — the LIST shape adds one case per class beside them. The README's 51 MB against this body's 54 MB is reconciled with the MEASURED cause: the `charly` pin advanced from `c5ea6c91` (the tree the README's other rows were measured on, 2026-10-06) to `f1f85d19`, and the per-worktree binary tracks the pin, so its size moves with it; the row now names both measurements and the cause. AND THIS ROUND'S OWN BODY TRIPPED THE HOUSE LINT -- the gate that reads a body the way a reviewer does. The umbrella's own pre-push hook installs the body at $GITDIR/PR_BODY.md and runs `marketplace/scripts/pr_body_lint.py` on it, and that lint reported this body RED: an unbacked universal claim in `## Rulebook compliance`, whose section carries no evidence block, so a claim-matching sentence there needs a pointer. The sentence was this PR's own new bullet on the control's coverage, and it ended "...so the published body had never been verified". THE MISSED CONTROL, and it is the same shape as the ones above: the control asserted the body's own STRUCTURE -- its fences, its command coverage, its section visibility, its commands' exit status, its size -- and never ran the lint the pre-push hook runs. So the control reported the body verified while the house lint had it RED: a control that checks a sixth of what it claims reads as a PASS. The ORDER hid it too: the body was edited, the fixed point was re-run to convergence, and the lint was only run afterwards. THE ROOT FIX is in both places. In the BODY: the sentence now carries the pointer the rule asks for -- the evidence is above it, the control block the body carries -- so the claim is BACKED rather than reworded. In the CONTROL: the house lint is now one of the SEVEN properties the control asserts about the body, run with the PINNED marketplace checkout the hook itself finds, and only its COUNT is carried into the control's own output, so the control's text cannot become a function of its own text. And the pre-push check had been reading the umbrella ROOT's marketplace checkout -- a different commit from the pinned one the hook uses -- and it now reads the hook's own. AND THIS ROUND'S OWN AMEND INVALIDATED A PASTE IN THIS PR'S OWN BODY -- the reflog listing. The branch's reflog is APPEND-ONLY: every amend adds entries to it, so the listing the body carried stopped being what the command emits the moment this round's amend -- the one that carried the house lint's RCA above into this commit -- added one more entry, and the control's re-run said so: "FAIL the paste at body line 278 does not match what the command emits". MEASURED: the actual listing began {21:47}|commit (amend) where the body carried {20:13}|commit (amend), and nothing else in it moved. The body also claimed, in prose, that this round's commit "was created at 19:40 and amended ONCE (20:13)", which the same amend turned into a false claim. THE MECHANISM: the body pasted a LIVE surface and asserted a live COUNT, and the act that carried the fix was itself the invalidation -- so no re-run, no fresh capture and no careful ordering could have made that body true; the next capture would have died the same way. THE MISSED CONTROL: the control compares a paste with a command's output, which catches a STALE paste but cannot make a LIVE paste true -- and this body's own R1 list had claimed the count's root fix was "the count is a PASTE, a command a reader can run", which is true of a COUNT and false of a SNAPSHOT: a paste of a live surface is still live. THE ROOT FIX is in both places. In the BODY: the listing is FILTERED to the PUBLISHED commits -- the head's ancestors -- because a published commit cannot be amended (R6), so its reflog entries are HISTORY while the head's own entries are LIVE; the head's amend discipline is stated as the RULE (every amend is made while its commit is LOCAL and UNPUSHED), not as a snapshot of a live surface; and the pushes' times -- which the body carried in prose -- now come from the remote-tracking reflog's own record, frozen the same way. In the CONTROL: it now ASSERTS the invariant as a SEVENTH property -- every command that reads a reflog must filter it by a published commit's subject or SHA, and the head's own subject and SHA must not satisfy that filter -- so a body that pastes the live head's history again is RED before the push, not after it. Filed: #713, #714, #716, #717. Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated) --------- Co-authored-by: Andreas Trawoeger <[email protected]>
Closes #647
Summary
Head
e4a6f6d9e476a1909f0db502b2838c690ed8aee5— the commit this PR pushes: 1 file changed, 284 insertions(+), 5 deletions(-).scripts/init-submodules.shmaterialized a requested path but not the path's ownsubmodules, so a path that was already at its recorded gitlink kept an absent nested
level. The umbrella's currency report then cannot JUDGE an edge whose source is a nested
pin: the edge arm asks for the twin's checkout, and without one it prints
differs (no checkout of box/cachyos to judge ancestry)— a state that names nothing —instead of an ancestry verdict that names the producer.
The mechanism is git's
--recursive, and where it sits. It brings a path's nestedsubmodules in only when the very call that materializes the path is the one that recurses.
A path that was materialized EARLIER is already at its recorded gitlink, so
advance_pathreturns before git is called at all — and the nested level stays absent. The post-condition
is therefore the deep one #647 names: every requested path's own declared submodules are
materialized at the gitlinks that path's CURRENT tree records, because a twin that is
present but a revision behind the parent's record is still a stale twin. That post-condition
holds for every twin that can be brought to its record; the one shape where it cannot — a
twin that carries work — is reported and left alone, and the run fails rather than
discarding it (see Rulebook compliance, and #711).
The nested level is materialized by the same script, re-rooted at the path's own root —
one implementation of the path lifecycle, applied at every level (R2), under the same policy
(R6): a twin behind its record is advanced, a twin already at its record is left where it
is, and a twin that carries work cannot be brought to its record without discarding that
work — so it is REPORTED by name and left alone, and the run exits NON-ZERO. The pass runs
only for a path sitting AT its recorded gitlink, because the nested gitlinks live in the
path's own tree.
advance_pathno longer carries--recursive, and the reason is measured, notstylistic: git's recursion force-checks a nested submodule out to the recorded gitlink and
silently discards its local commits (rc=0, no warning, the nested checkout's own commit
dropped from its HEAD). A fix that simply ran the recursive command for every path would
therefore introduce exactly the R6 clobber the script's own
land_pinguard exists toprevent.
--recursivestays onmaterialize_uninitialized— the one call that touches apath with no subtree at all, where nothing under it can be clobbered.
The advance's "has UNCOMMITTED changes" notice now names both causes — the path's own
uncommitted work, or a nested path that does not match the gitlink it records for it —
because git reports the nested cause in the same porcelain view, and a path whose own tree
is clean does NOT have uncommitted changes. The old text was false for that state, and this
change makes that state reachable: it materializes the nested level, so a nested divergence
now reaches the parent's view. The original notice named no nested path either — it said
only "has UNCOMMITTED changes" — so this is a WIDENING of the text, not a loss of a name;
the specific twin is named by the nested pass, at the nested level. The sequencing question
behind it — should a descendant's state hold the parent back at all — is filed, not decided
here (#711).
The scope is
scripts/init-submodules.shalone — the script and its own--self-testlivein that one file. Not the pin contract, not how currency is reported, not a new gate, and
not
charly task init --allby default — the working set stays light.How tested
The head this body describes
The change-class gate — the changed script, executed live. The change class is an
executable script, so the gate is that script run live: its own
--self-test, on thecommitted tree this body describes.
The umbrella's own gate, on the same tree —
charly task verifycarries the pin check,the currency report, the branch audit and the committed builders' self-tests.
The coverage FAILS without the change — three mutations, each of which turns a
different claim RED, and each of which is proved APPLIED (the mutant differs from the
committed script in exactly the mutated hunk).
The R6 clobber that motivates the
--recursiveremoval, measured. git's recursionforce-checks a divergent nested checkout out to the recorded gitlink and drops its local
commits — rc=0, no warning. Mutation B is that mechanism, and its FAIL line is the
measurement: the twin's HEAD is not the twin's own work any more.
The live before/after on a real umbrella tree — the umbrella's OWN currency report,
before and after the fix, on the same tree and the same twin.
The FIRST currency line is the report on the tree where the nested level is ABSENT: the edge
charly:box/cachyoscannot be judged, and the report says so. The LAST is the report onthe same tree after the fixed script ran: the edge is judged
behind— an ancestry verdictthat names the producer. Between them, the ORIGINAL script (from
origin/main) ran on thesame defect state and left all six nested twins absent — a green run that left the defect
in place (
absent (-): 6 of 6).The instrument, and what it had to be true of. The twin's served ref is moved one commit
ahead of the recorded pin — the state between a producer's merge and a consumer's pin bump,
and the only state in which the report asks for the twin's checkout at all. The twin's
checkout must then CARRY that served commit, or the report's ancestry arm cannot answer:
the harness asserts it (
it carries the served commit: yes,the recorded pin descends from it: yes) and fails loud if it does not hold, and it asserts the verdicts it reads(
the BEFORE report carries …,the AFTER report carries the 'behind' verdict).The tree the fix leaves — the currency question asked of that tree, on the same run as
the gates above.
The README's clone-shape figures are not falsified by this change — the claim is
derived from the diff, not asserted. The table is measured on a FRESH clone, where the
nested level came in with git's
--recursiveunder BOTH versions, and the umbrella's owncontrol on those figures passes on the committed tree (pasted above). This change only
affects a path that was ALREADY materialized.
The R5 sweep —
--recursiveon the advance is gone. The claim is the grep's ownoutput, re-run on the committed tree: six occurrences survive, and the only one in CODE
is the materialization call (564) — the one that touches a path with no subtree at all,
where nothing under it can be clobbered. The other five are comments that name the
mechanism.
The list action spawns no child — the nested pass runs only for a materialize run, on
BOTH list channels. A fixture whose path sits at its recorded gitlink and whose nested
level is absent: the
--listrun and theCHARLY_INIT_MODE=listrun both leave thenested level absent, and the materialize run brings it back at the record.
Every paste in this body is reproducible — every command above is re-run and its
output compared, line for line, with the output this body claims. The control is
mechanical on purpose: a hand-written paste and a captured one look the same to a linter,
and only running the command tells them apart.
Rulebook compliance
AGENTS.mddispatcher selected/charly-internals:git-workflow(the git/ghworkflow, the PR body, the pre-validator self-audit),/charly-internals:strict-policy(R1–R5),/charly-internals:root-cause-analyzer(the findings) and/charly-check:check(the R10 gate by change class). This harness resolves the addressed forms only by path, so they were read from the authored sources (.agents/skills/<name>/SKILL.md, andmarketplace/check/skills/check/references/beds-and-r10.mdfor the change-class matrix). They were read after this leg's first tool actions, so their conclusions were re-derived against this tree before the push: the change-class gate (an executable script → the script run live, plus the repo's own gate), the mutation discipline (each claim proved by a mutation that turns it RED, with the mutation's application shown), the body discipline (every number read back from the artefact that owns it), and R1's classification of the findings (all non-blocking, all filed).charly task verify#710 (the umbrella's own gate does not assert this post-condition), a nested path's divergence blocks the advance of the path that CONTAINS it — a descendant's state holds the parent back #711 (a descendant's state holds the parent back), and pr_body_lint.py does not check diff-file accounting or sweep-claim output — two body defects it passed at 0 findings marketplace#473 (the body lint checks the evidence's SHAPE and never its TRUTH — the fourth arm of that issue's family, measured on this round's own BLOCK). None is blocking. This change's post-condition — every requested path's own declared submodules materialized at the gitlinks that path's CURRENT tree records — holds for every nested twin that can be brought to its record without discarding work. A twin that carries work, or whose work tree is dirty, CANNOT be brought to its record without discarding that work: the run then REPORTS the twin by name, leaves it untouched, and EXITS NON-ZERO — so in that one shape the post-condition is NOT met, by design (R6, never clobber), and that shape is a nested path's divergence blocks the advance of the path that CONTAINS it — a descendant's state holds the parent back #711's subject. None of the three is needed for this change's own gate to prove its claim. The RCA that SHAPED the change is measured above: git's--recursiveforce-checks a divergent nested checkout to the recorded gitlink and silently discards its local commits (rc=0, no warning) — so the advance no longer recurses. An anomaly in my own HARNESS, not in the product, is RCA'd on charly task init never materializes an ALREADY-materialized path's nested submodules, so the umbrella's currency report cannot judge the edges whose source is a nested pin #647: the first run's AFTER verdict was wrong for the state it created (the reused module repo was never re-fetched, so the twin's checkout did not carry the served commit, the report's ancestry arm errored, and the classifier fell back tonot-on-the-served-line); the harness now asserts the fixture's precondition and the verdicts it reads, and fails loud. An anomaly in my own EVIDENCE is the one the validator's round-1 BLOCK named: the R5 sweep block carried a line that the command above it could not produce (the advance command at 609, which does NOT contain--recursive). The missed control was that the body's commands were never re-run against the body's own text — the lint checks the body's FORM and cannot tell a hand-written paste from a captured one. The control is now mechanical and is pasted above: every command in this body is re-run and compared line for line, and it reported exactly one mismatch — that block, which is now the grep's true output. Zero warnings in every gate.materialize_nested_levelre-invokesbash "$SCRIPT" --root "$ROOT/$path"), so the advance/guard policy is not re-implemented for the nested level.git submodule update --recursiveshortcut.--recursiveon the advance — is pasted above: six occurrences survive, and the only one in CODE is the materialization call (564), the one that touches a path with no subtree at all, where nothing under it can be clobbered; the other five are comments that name the mechanism..worktrees/init-nested-647/opencharly) branched off freshorigin/main;git statuswas empty before every commit and after every run (pasted above); no history rewrite, no force-push, no hook bypass, nothing pushed tomain. The script's own guard never clobbers a checkout that carries work — and this change makes that guard hold at the nested level too (two claims prove it).--self-test, 28 claims, all live — plus the repo's own gate (charly task verify: 35 steps, 0 failed, 0 skipped, zero warning lines), the live before/after on a real umbrella tree, and the list-mode fixture. Every command this body shows is re-run and compared with the output this body claims (pasted above), so the evidence is the command's own output and not a description of it.Change classification
An executable script change — the umbrella's own materializer. The diff rewrites one
shell script and its self-test; it changes no Go source and no schema.
/charly-check:check's "Hook / workflow scripts" class): the gate is the changed script run live, plus the repository's own gate. It is NOT the documentation-only class — the diff is a script that changes behaviour.bash scripts/init-submodules.sh --self-test(28 claims, all live) on the committed tree;bash scripts/self-test.sh(the umbrella's committed builders' self-tests — the set the commit gate runs,SELFTEST_ALL_RC=0);./charly/bin/charly task verify(35 steps, 0 failed, 0 skipped, zero warning lines); three mutations that turn claims RED; the live before/after on a real umbrella tree; the list-mode fixture (both list channels leave the nested level absent, the materialize run brings it back at the record); and the mechanical re-run of every command this body shows, compared line for line with the output this body claims.fully tested and validated— the change-class gate passed on the final tree with zero warnings, and the changed path executed live.Filed issues
#710 — the umbrella's own gate does not assert #647's post-condition: a clean tree whose nested level is absent passes
charly task verify, and the step that owns the check is named for a claim it does not make. Non-blocking: this change's own gate proves its post-condition, and the decision the issue asks for has an operator-level consequence — turning the notice into a failure turns RED every tree whosecharlywas materialized by something other thancharly task init. Filed, claimed, with the measurement.#711 — a nested path's divergence blocks the advance of the path that CONTAINS it. Non-blocking: a twin that carries work cannot be moved to a gitlink without discarding its work, so it is reported rather than moved; this change's post-condition holds for every twin that can be brought to its record, and in the one shape where it cannot, the run reports the twin and exits non-zero. The issue names the fix's shape and the mutation that must turn its claim RED. Filed, claimed, with the measurement.
opencharly/marketplace#473 — the body lint checks the evidence's SHAPE and never its TRUTH. Non-blocking: this change's claims are true and are now proved by a control that re-runs them (pasted above), so nothing in this change rests on the lint's blind spot. The finding is added to that issue as its FOURTH arm — the body linter cannot tell a hand-written output block from a captured one — with the measurement from this round: the validator's round-1 BLOCK, the mechanical control that reproduced it (one mismatch of 37 groups), and the SAFE rule that would catch it without executing anything. The issue belongs to the linter's owner, so it is evidence there and not a new issue here.
No other issue is filed by this PR. Every finding this change raises is fixed in it or
filed here.
Agent: umbrella-prose-truth
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)