Skip to content

fix(umbrella)!: verify — an uninitialized submodule is a NOTICE, never a walk-up comparison (#337) - #345

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/umb-verify-submodule-guard
Oct 3, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/umb-verify-submodule-guard

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

charly task verify's submodule-cleanliness step could not pass on a tree that rule 4 requires. Its guard
read [ -d "$path" ] || fail "$path: not checked out" — and an UNINITIALIZED submodule is a directory,
so the guard passed, and every later git -C "$path" … resolved the ENCLOSING superproject through git's
directory walk-up. The step then compared the SUPERPROJECT's HEAD against the SUBMODULE's gitlink and
failed on a state that cannot exist: FAIL: sdk: HEAD <enclosing-head> != gitlink <sdk-pin>, on EVERY path a
root has not materialized — and that count is a property of WHICH root it is measured at, because the
checkout audit sees only what that root materialized. The same metric, measured on this clone at two roots:
405 of 424 paths at the umbrella ROOT (f96e776, 19 of 424 materialized) and 423 of 424 in a session
WORKTREE
(fad91f1, 1 of 424 materialized — charly, which this session initialized to read its source
for the RCA below). Finding 6 reconciles the two numbers in full, and finding 5 pastes the sweep.

This PR makes an uninitialized .gitmodules path (declared, gitlinked, no checkout) a printed NOTICE
instead of a FAIL, and prints the counts it audited so that a pass can never read as a silent one. Every
tooth is kept: a dirty tree, HEAD != gitlink, a wrong branch, a .gitmodules path with no gitlink in
the index, and a nested box/* off charly's gitlink all still FAIL — each proven by a mutation that
reintroduces it.

Head fad91f1008720618a0119a94ba430dd034235b59 (branch feat/umb-verify-submodule-guard).

All four changed files, +396/−19 (the same defect class was written into four places, and R2/R5
require the whole sweep in one change — not just the step that failed):

file commit what it carries
charly.yml 1 (01b2f04) the step: the [ -d ] guard replaced by the walk-up-safe check, an uninitialized path → NOTICE, and the nested box/* - marker no longer counted as drift
scripts/check-verify-submodules.mjs 1 (01b2f04) + 2 (56775ee) + 3 (fad91f1) the fixture gate: extracts that step from charly.yml, runs six fixtures, and proves seven mutations go RED (case G and its mutation added in commit 2); commit 3 is comment-only and reconciles the pre-fix affected-path count with the root it was measured at (finding 6)
.claude/workflows/verify-status.js 1 (01b2f04) the nested invariant's text and its proves string, corrected to the new rule — +/U FAIL, - (uninitialized) is a notice (#337). Full hunk in paste 8
.github/workflows/sync.yml 1 (01b2f04) the comment block recording why charly task verify stays OFF in that workflow — corrected to the same rule, so the reason it is off stays on the record instead of becoming false. Full hunk in paste 8

The gate EXTRACTS the step's command: block from charly.yml and runs the extracted text against
fixtures built in a temp dir, so it always exercises the shipped text and the two cannot drift apart (R3).

The findings on heads 01b2f04 and 56775ee, and how each is closed

1 — the WARNING (R1 / R10): the gate run pasted below is hermetic and emits none.

Mechanism, read from the charly source at the ref the binary was built from (charly @ fe4b00b4, the
umbrella's own recorded gitlink) — charly/charly/plugin_loader.go:

  • :435 packagedInstall() — true only when the running binary's own directory is /usr/bin or
    /usr/local/bin (:429).
  • :447 devPluginDirWarned sync.Once gates the notice to one emission per process.
  • :454 warnSkippedFHSPlugins() prints it when :461 finds a *.providers in the FHS plugin dir.
  • :484 bakedPluginDirs(): the dev-binary branch at :492-494 calls it and returns dirs; the
    CHARLY_PLUGIN_ONLY=1 branch at :489-490 returns the SAME dirs without the call. :474-483
    documents that mode: "$CHARLY_PLUGIN_ONLY=1 DROPS the FHS path … That is the supported way to resolve
    AS-IF-UNPACKAGED"
    .

So the notice is a property of the host and the binary, never of this change (which touches no Go
file), and it is about exactly one thing: the FHS plugin search path, which a dev/worktree binary
deliberately drops. The same binary prints it for maintenance verbs this PR does not touch at all
(paste 5).

Resolution: the gate is run in that documented mode, where it emits no warning at all, and the default
run is pasted beside it so nothing is hidden.
Paste 3 is CHARLY_PLUGIN_ONLY=1 … task verify — the gate's
own output, at zero warnings. Paste 4 is the same gate without the variable, followed by a line diff and a
step-result diff. The result diff is empty: task verify: 9 step(s), 0 failed and all nine step lines are
byte-identical. The only line in the whole output that is a property of the mode is the WARNING — and
paste 4 measures that the remaining movement in that diff (the order and the label of the three plugin
announcement lines) is run-to-run nondeterminism that occurs in BOTH modes: two runs of the same mode on
this same tree differ from each other the same way. This is not a suppression and not an allowlist: no
filter, no redirect, no normalized log — the mode simply makes the run independent of whatever the host
has under /usr/lib/charly/plugins, which is the condition a session worktree should be judged under. I
am not asking anyone to take an out-of-tree list on trust.

2 — the walk-up refusal had no test (R10 / B12). Now it has both, in commit 2. Case G builds the one
construction that reproduces the walk-up while .git is PRESENT: an EMPTY DIRECTORY at <path>/.git.
The step's initialization test therefore sees a .git, and the --show-toplevel guard is the only
witness: git finds no valid gitdir at the path, discovery continues upward, and --show-toplevel returns
the enclosing superproject's root. G asserts the run FAILS, that the refusal names itself, and that it
NAMES the path git actually resolved to. The added --self-test mutation deletes only the comparison
(leaving top= assigned and unused), so the step proceeds into a superproject comparison — and case G
catches it by no longer naming the walk-up. Measured while building it: a gitfile at <path>/.git and a
symlink do not reproduce the walk-up; the empty-directory .git does.

3 — the pass-silent console notice (R2 / B14(b)). Closed by the fresh maintainer-account ruling
recorded on this thread — comment 5973963479, posted 2026-10-03T22:07:29Z by account aitrawog (in
this project's maintainer set; the posting account is the gate). It explicitly accepts the non-silent
record being the committed fixture gate rather than the terminal, and names the console line as a
follow-on once the charly pin adopts plugin-task >= v0.2026276.1230. The measured reason the console
route is not taken now — the only in-tree channel that renders free text on a pass is a verb: that sets
Message, and verb:git-submodules's status mode on the current pin still prints a FALSE table (see
opencharly/charly#777) — and the unblock chain (charly#777 → its fix → charly tag → umbrella
task sync → an umbrella PR adds the console step) are stated there. Nothing is pretended otherwise.

4 — "a worktree initializes no submodules" contradicted the paste (R1). That claim was wrong as
written; it is replaced by the measured statement. git worktree add alone materializes no submodule — in
THIS session's worktree exactly ONE path is initialized, and it is charly, because this session ran
git -C <umb337-worktree> submodule update --init charly while reading the charly source for this RCA.
charly's own reflog records it (clone: from https://github.com/opencharly/charly.git, then
checkout: moving from main to fe4b00b4…, both at 2026-10-03 22:40:12 +0200), charly/.git is a gitfile
naming .git/worktrees/umb337/modules/charly, and git -C charly rev-parse HEAD equals the umbrella's
recorded gitlink for charly — so that one checkout is at its gitlink. The step's own run agrees:
1 checkout(s) at their gitlinks; 423 not initialized, and charly's nested half printing
6 of charly's nested submodules are NOT INITIALIZED is itself evidence that charly is checked out there,
since its nested audit executed. Paste 6.

5 — R5 / B14(d): the sweep's executed output, and every hit accounted for (3rd verdict, block 1). The
claim rested on a summarized hit list, not on the command's output. The command and its real output are
now pasted in full in the R5 bullet below: git grep -n "submodule status" at the final head, 39 lines,
no elision
, every one of them classified. The classification is the whole point, so it is stated there
rather than here: 3 hits are the defect (all fixed in this PR), 31 are CHANGELOG/ history, and the
remaining 5 carry no ^[+-] classification at all.

6 — Rule 4: the two counts are the same metric at two roots (3rd verdict, block 2). The Summary and the
gate's header said "405 of 424 paths at this clone's own root"; paste 6, the step on the SAME clone but in
a session worktree, says "423 of 424". Both are true, and the verdict's premise — that they are the same
root — is the one thing that is not: paste 6 is the WORKTREE. Measured on both roots at once:

$ cat /tmp/wfir/umb337/measure.sh
measure() {
  R="$1"; H=$(git -C "$R" rev-parse HEAD)
  mapfile -t P < <(git -C "$R" config -f "$R/.gitmodules" --get-regexp '^submodule\..*\.path$' | awk '{print $2}')
  declare -A GL
  while read -r m s t p; do GL[$p]="$s"; done < <(git -C "$R" ls-files -s | awk '$1=="160000"')
  n=0; g=0; d=0
  for p in "${P[@]}"; do
    if [ -e "$R/$p/.git" ]; then g=$((g+1)); else n=$((n+1)); [ "${GL[$p]:-x}" = "$H" ] || d=$((d+1)); fi
  done
  echo "$R  HEAD=$H  paths=${#P[@]}  .git-present=$g  no-.git=$n  of-those_gitlink!=head=$d"
}
measure /home/atrawog/Sync/Atrapub/lo/claude/opencharly
measure /home/atrawog/Sync/Atrapub/lo/claude/opencharly/.worktrees/workflow-ir/umb337
$ bash /tmp/wfir/umb337/measure.sh
/home/atrawog/Sync/Atrapub/lo/claude/opencharly  HEAD=f96e776b00b9f09392c4e48ed73ae3ea8d248f94  paths=424  .git-present=19  no-.git=405  of-those_gitlink!=head=405
/home/atrawog/Sync/Atrapub/lo/claude/opencharly/.worktrees/workflow-ir/umb337  HEAD=fad91f1008720618a0119a94ba430dd034235b59  paths=424  .git-present=1  no-.git=423  of-those_gitlink!=head=423
root HEAD .gitmodules paths materialized no checkout
umbrella ROOT (the clone's main checkout) f96e776 424 19 405
this session's WORKTREE fad91f1 424 1 (charly) 423

Both columns are the ONE metric the step prints — .gitmodules paths with no checkout — and the step
itself names it that way in both cases. Neither number is a count of printed FAILs: the last column shows
that in every case (405 and 423 alike) the path's recorded gitlink differs from the enclosing root's
HEAD, so every one of them is a bogus-FAIL site — but the pre-fix fail exits at the FIRST offender, so
the observable symptom was always exactly ONE FAIL: line. That is why the two totals are 405 and 423 and
the failures are 1.

The gate's own header carried the same imprecision — it paired the root's 405 with the phrase "in the root
and in every worktree" — so commit 3 corrects the header to state the metric, both roots and their
counts, and the one-FAIL-line fact. It is a comment-only change inside the fixture gate this PR adds; no
behaviour, fixture or mutation changes, and its --self-test is green on the final head (paste 2). The
Summary's number is corrected above to match.

How tested

Everything below is from the committed head, fad91f1008720618a0119a94ba430dd034235b59, on a clean tree
(paste 7). In every command, $BIN is the session's own build of the charly binary:

$ BIN=/home/atrawog/Sync/Atrapub/lo/claude/opencharly/.worktrees/workflow-ir/opencharly/charly/bin/charly

That is the binary R9 requires — the session worktree's own build, from the charly worktree whose HEAD is
fe4b00b4, the umbrella's recorded charly gitlink. The umb337 worktree itself has no charly/bin/charly
(its charly/ is an uninitialized submodule), which is why the absolute path is used.

1 — the fixture gate (the step reports, and every tooth holds).

$ node scripts/check-verify-submodules.mjs
  PASS  charly.yml: the submodule step reports uninitialized paths and keeps every tooth
check-verify-submodules: OK

2 — its self-test: each assertion goes RED on a mutation of the shipped step.

$ node scripts/check-verify-submodules.mjs --self-test
  PASS  the unmutated step is GREEN on every fixture
  PASS  mutation 'dead guard: `[ -d ]` cannot see an empty directory' is caught by case A
  PASS  mutation 'uninitialized nested reported as drift (`^[+-]`, the #337 bug)' is caught by case A
  PASS  mutation 'no dirty check' is caught by case B
  PASS  mutation 'no gitlink comparison' is caught by case C
  PASS  mutation 'no gitlink presence check' is caught by case D
  PASS  mutation 'no nested-drift check' is caught by case F
  PASS  mutation 'no walk-up refusal (`git -C` may resolve to the enclosing superproject)' is caught by case G
check-verify-submodules --self-test: OK (every assertion is live)

3 — the R7 gate on the final tree, in the documented hermetic mode: ZERO warnings.

$ CHARLY_PLUGIN_ONLY=1 "$BIN" -C "$PWD" task verify
plugin plugin-example-structkind: served from /home/atrawog/.cache/charly/plugins/plugin-example-structkind-8ba70fc58310fa87 (build stamp 9e499e845f220ae9); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-structkind
plugin github.com/opencharly/plugin-example-kind/candy/plugin-example-kind: served from /home/atrawog/.cache/charly/plugins/github.com_opencharly_plugin-example-kind_candy_plugin-example-kind-a88ed84942c0e1ac (build stamp c44db74c3a0bcaea); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-kind
plugin github.com/opencharly/plugin-jetkvm/candy/plugin-jetkvm: served from /home/atrawog/.cache/charly/plugins/github.com_opencharly_plugin-jetkvm_candy_plugin-jetkvm-5c0aa8c4455e026f (build stamp f932c2ea1cf155ae); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-jetkvm
task verify: 9 step(s), 0 failed
  [pass] check — policy B — every distro-* gitlink equals charly's own box/* gitlink
      ran 1 task(s), 0 step(s) failed
  [pass] check — every submodule is clean and checked out at its recorded gitlink, and its branch equals the remote default
      exit=0
  [pass] check — the submodule-cleanliness step above — uninitialized paths are a NOTICE, real defects still FAIL (fixtures)
      exit=0
  [pass] check — the opencode gate plugin contract (the check-opencode-plugin gate the former verify-pins.sh ran)
      exit=0
  [pass] check — the PR-watch plugin's pure logic + its shipped (uncommented) SDK delivery primitives
      exit=0
  [pass] check — the agent-progress monitor+control plugin — static (no .sh), the classifier (RCA regression), and a read-only store
      exit=0
  [pass] check — the session tracker plugin — the durable ledger (rule 11 invariant), the three tools, and the real-binary load
      exit=0
  [pass] check — every harness-config surface parses and is wired (rule 8)
      exit=0
  [pass] check — the pi gate extension fails CLOSED, uses the rule-9 worktree path, and wires both gate scripts
      exit=0

Nine steps, zero failed, zero warnings on the gate's own output.

4 — the same gate WITHOUT the variable, then the two diffs against paste 3.

$ "$BIN" -C "$PWD" task verify
WARNING: charly is a dev/worktree build (not installed at /usr/bin or /usr/local/bin); NOT loading the installed package's plugins from /usr/lib/charly/plugins (they may be built against a different charly version). Set CHARLY_PLUGIN_DIR to load plugins from a custom location.
plugin github.com/opencharly/plugin-example-structkind/candy/plugin-example-structkind: served from /home/atrawog/.cache/charly/plugins/github.com_opencharly_plugin-example-structkind_candy_plugin-example-structkind-8ba70fc58310fa87 (build stamp 9e499e845f220ae9); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-structkind
plugin github.com/opencharly/plugin-example-kind/candy/plugin-example-kind: served from /home/atrawog/.cache/charly/plugins/github.com_opencharly_plugin-example-kind_candy_plugin-example-kind-a88ed84942c0e1ac (build stamp c44db74c3a0bcaea); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-kind
plugin github.com/opencharly/plugin-jetkvm/candy/plugin-jetkvm: served from /home/atrawog/.cache/charly/plugins/github.com_opencharly_plugin-jetkvm_candy_plugin-jetkvm-5c0aa8c4455e026f (build stamp f932c2ea1cf155ae); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-jetkvm
task verify: 9 step(s), 0 failed
  [pass] check — policy B — every distro-* gitlink equals charly's own box/* gitlink
      ran 1 task(s), 0 step(s) failed
  [pass] check — every submodule is clean and checked out at its recorded gitlink, and its branch equals the remote default
      exit=0
  [pass] check — the submodule-cleanliness step above — uninitialized paths are a NOTICE, real defects still FAIL (fixtures)
      exit=0
  [pass] check — the opencode gate plugin contract (the check-opencode-plugin gate the former verify-pins.sh ran)
      exit=0
  [pass] check — the PR-watch plugin's pure logic + its shipped (uncommented) SDK delivery primitives
      exit=0
  [pass] check — the agent-progress monitor+control plugin — static (no .sh), the classifier (RCA regression), and a read-only store
      exit=0
  [pass] check — the session tracker plugin — the durable ledger (rule 11 invariant), the three tools, and the real-binary load
      exit=0
  [pass] check — every harness-config surface parses and is wired (rule 8)
      exit=0
  [pass] check — the pi gate extension fails CLOSED, uses the rule-9 worktree path, and wires both gate scripts
      exit=0

$ diff /tmp/wfir/umb337/v5-default.log /tmp/wfir/umb337/v5-hermetic.log   # paste 4 vs paste 3, whole output
1,2c1
< WARNING: charly is a dev/worktree build (not installed at /usr/bin or /usr/local/bin); NOT loading the installed package's plugins from /usr/lib/charly/plugins (they may be built against a different charly version). Set CHARLY_PLUGIN_DIR to load plugins from a custom location.
< plugin github.com/opencharly/plugin-example-structkind/candy/plugin-example-structkind: served from /home/atrawog/.cache/charly/plugins/github.com_opencharly_plugin-example-structkind_candy_plugin-example-structkind-8ba70fc58310fa87 (build stamp 9e499e845f220ae9); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-structkind
---
> plugin plugin-example-structkind: served from /home/atrawog/.cache/charly/plugins/plugin-example-structkind-8ba70fc58310fa87 (build stamp 9e499e845f220ae9); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-structkind

$ diff <(grep -E '^\[(pass|fail)\]' /tmp/wfir/umb337/v5-default.log) \
       <(grep -E '^\[(pass|fail)\]' /tmp/wfir/umb337/v5-hermetic.log)   # the result lines only
$

Both commands above are pasted verbatim: the whole-output diff exits 1 with exactly one hunk, and
the result-line diff prints nothing (exit 0) — the task verify: line and the nine [pass] lines are
byte-identical between the two runs.

The whole-output diff is two facts, and neither is a suppressed line. The first is the WARNING, which only
the default run has and which paste 5 shows is a property of the host and this dev/worktree binary, not of
the change. The second is the LABEL of one plugin announcement: github.com/opencharly/plugin-example-structkind/candy/plugin-example-structkind
in one run, the bare plugin-example-structkind in the other — the same plugin, the same path, the same
build stamp 9e499e845f220ae9, only the display name differs. That label and the order of the three
announcement lines are run-to-run nondeterminism of the plugin block, in BOTH modes: on this same tree the
two HERMETIC runs printed the block in two different label forms and the two DEFAULT runs printed it in two
different orders. What does not move, in any run: the three build stamps (c44db74c3a0bcaea,
9e499e845f220ae9, f932c2ea1cf155ae), the task verify: 9 step(s), 0 failed line, and all nine step
results — the step-line diff above is empty.

One measured caveat, stated so nothing is hidden: on the FIRST default run of this session's warm-up the
metadata cache was cold and that run additionally printed charly: fetching git metadata for N repo(s) (first run — may take a moment)... / charly: git metadata cached. pairs, one per step that resolves
pinned refs (183, 6, 18, 1, 15, 6 repos). Those lines are the host cache warming, not a property of the mode
or of this head, and they are absent from the pair pasted above, which was run with the cache warm.

5 — the same notice, same binary, on maintenance verbs this PR does not touch.

$ "$BIN" -C "$PWD" task list 2>&1 | grep -c 'WARNING: charly is a dev/worktree build'
1
$ "$BIN" -C "$PWD" task org-map 2>&1 | grep -c 'WARNING: charly is a dev/worktree build'
1

6 — finding 4: the step's own coverage lines on the real root, and the provenance of the one checkout.

The step script below is the command: block extracted from the committed charly.yml by the same
extraction the gate uses (extractStepCommand, scripts/check-verify-submodules.mjs:106-132); the
extraction is byte-for-byte the text run here.

$ bash /tmp/wfir/umb337/step.sh
verify: notice — 6 of charly's nested submodules are NOT INITIALIZED (no checkout); a + or U drift would still FAIL.
verify: notice — 423 of 424 submodule paths are NOT INITIALIZED (no checkout): the checkout audit covered 1.
verify: notice — their pins ARE audited (gitlink recorded + branch == remote default). First 5: sdk spec docs distro-arch distro-cachyos
verify: OK — 424 submodule(s): branch == remote default for every one; 1 checkout(s) at their gitlinks; 423 not initialized

$ cat charly/.git
gitdir: ../../../../.git/worktrees/umb337/modules/charly
$ git -C charly rev-parse HEAD
fe4b00b44b469a7d947a48a85ce206bf37b27310
$ git rev-parse :charly
fe4b00b44b469a7d947a48a85ce206bf37b27310
$ git -C charly reflog --date=iso | tail -2
fe4b00b4 HEAD@{2026-10-03 22:40:12 +0200}: checkout: moving from main to fe4b00b44b469a7d947a48a85ce206bf37b27310
ca97be8d HEAD@{2026-10-03 22:40:12 +0200}: clone: from https://github.com/opencharly/charly.git

7 — the head the gate ran on, the clean tree, and the four-file accounting.

$ git rev-parse HEAD
fad91f1008720618a0119a94ba430dd034235b59
$ git status --porcelain
$ git diff --stat 01b2f04 fad91f1 -- charly.yml
$ git diff --stat 9a3002f fad91f1
 .claude/workflows/verify-status.js  |   4 +-
 .github/workflows/sync.yml          |  14 +-
 charly.yml                          |  63 +++++--
 scripts/check-verify-submodules.mjs | 334 ++++++++++++++++++++++++++++++++++++
 4 files changed, 396 insertions(+), 19 deletions(-)

The empty status is the clean tree; the empty charly.yml diff is the proof that the step text is
unchanged from commit 1 to this head — commits 2 and 3 touched the .mjs alone (+34/−1 and +11/−6
respectively; commit 3 is comment-only); and the last listing is the four-file accounting the Summary
above uses.

8 — the two sibling surfaces commit 1 corrects, in full.

$ git diff 9a3002f 56775ee -- .claude/workflows/verify-status.js .github/workflows/sync.yml
diff --git a/.claude/workflows/verify-status.js b/.claude/workflows/verify-status.js
index 2f91c17..d41361a 100644
--- a/.claude/workflows/verify-status.js
+++ b/.claude/workflows/verify-status.js
@@ -48,9 +48,9 @@ const INVARIANTS = [
   },
   {
     id: 'nested',
-    invariant: "charly's nested submodules initialized at their gitlinks",
+    invariant: "charly's nested submodules not drifted off their gitlinks",
     cmd: 'git -C charly submodule status --recursive',
-    proves: 'no +/- prefixes (uninitialized / moved)',
+    proves: '+/U prefixes (moved / unmerged) FAIL; `-` (uninitialized) is a notice (#337)',
   },
 ]
 
diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml
index ff10632..c63f5d1 100644
--- a/.github/workflows/sync.yml
+++ b/.github/workflows/sync.yml
@@ -98,12 +98,14 @@ jobs:
       #
       #   FAIL: charly nested submodules not at their gitlinks
       #
-      # That check is `git -C charly submodule status --recursive | grep '^[+-]'`, and `-`
-      # means UNINITIALISED. `actions/checkout` uses `submodules: true` (non-recursive), so
-      # charly's nested submodules never exist here and the check can only fail — while
-      # initialising them would check each out AT its gitlink, making the check pass by
-      # construction and assert nothing. It is a gate for a human's local tree, where the
-      # nested state can genuinely have drifted; it is vacuous on a fresh clone.
+      # That check WAS `git -C charly submodule status --recursive | grep '^[+-]'`, which
+      # counted `-` — UNINITIALISED, exactly what `actions/checkout` with `submodules: true`
+      # (non-recursive) leaves behind — as drift. opencharly/opencharly#337 fixed that half:
+      # the check now FAILs only on `+`/`U` (real drift) and reports `-` as a notice, so it no
+      # longer fails here for a state that is not a defect. Running `charly task verify` in
+      # this workflow is unchanged by that fix and stays off: it is the local, human-tree
+      # gate (R7), and its nested half asserts nothing on a freshly cloned tree. This note is
+      # kept, corrected, so the reason it is off stays on the record.
       #
       # So the body pastes what IS real evidence in CI: the per-pin index-derived
       # `staged-gitlink` vs remote default-branch HEAD table

Rulebook compliance

  • R0 — /charly-internals:git-workflow and /charly-internals:agents were loaded before any git
    action on this branch, and /charly-internals:root-cause-analyzer for the RCA below.
  • R1 — every anomaly got an RCA before remediation: the walk-up itself (the [ -d ] guard cannot see
    an empty directory, so git -C walks up — measured), and the surviving WARNING, whose RCA is finding 1
    above (mechanism at plugin_loader.go:429/435/447/454/461/474-483/484-494) and whose resolution is a
    hermetic gate run with zero warnings, not a normalization, not an allowlist appeal. Finding 4 is the
    same rule applied to this PR's own body.
  • R2 — the whole cutover, in one change: the step's root guard AND its nested sibling (the
    grep -E '^[+-]' that counted a not-initialized box/* as drift) are fixed together, and the same
    defect class is corrected on the two other surfaces that encoded it — .claude/workflows/verify-status.js's
    nested invariant and .github/workflows/sync.yml's explanatory comment (both hunks in paste 8) — so no
    occurrence survives.
  • R3 — no duplication. The fixture gate extracts the step from charly.yml instead of copying its
    text, so there is exactly one implementation of the step and the gate cannot drift from it.
  • R4 — no workaround. No sleep, no blind retry, no hand-pinned gitlink, no manual CI edit; and the
    WARNING is NOT suppressed — no filter, no redirect, no allowlist. The gate is run in charly's own
    documented AS-IF-UNPACKAGED mode (plugin_loader.go:474-483), with the unbounded run pasted beside it.
  • R5 — the legacy path is deleted, not shadowed: the [ -d "$path" ] guard and the ^[+-] nested
    classification are removed in the same change that replaces them, and the R5 sweep was executed rather
    than summarized. Its command and its complete output at this head:
$ git grep -n "submodule status"
.claude/workflows/triage-check-failure.js:47:    evidence: { type: 'string', description: 'what was checked live (git ls-remote, ls-tree, submodule status) and what it showed' },
.claude/workflows/triage-check-failure.js:91:      `Try to disprove it using live probes (git ls-remote, git ls-tree, git submodule status). Default to confirmed=false if the theory is not backed by live evidence. ` +
.claude/workflows/verify-status.js:40:    cmd: 'git submodule status',
.claude/workflows/verify-status.js:52:    cmd: 'git -C charly submodule status --recursive',
.github/workflows/sync.yml:101:      # That check WAS `git -C charly submodule status --recursive | grep '^[+-]'`, which
.opencode/agent/pr-validator.md:15:- Check git submodule status is clean
CHANGELOG/2026.234.1251.md:52:$ git submodule status | grep dotgithub
CHANGELOG/2026.237.0548.md:14:$ git submodule status | wc -l
CHANGELOG/2026.237.0548.md:16:$ git submodule status layer-a11y-tools pod-agentteams-controller layer-ssh-client
CHANGELOG/2026.237.0933.md:31:$ git submodule status | wc -l
CHANGELOG/2026.237.1003.md:31:$ git submodule status | wc -l
CHANGELOG/2026.237.1126.md:32:$ git submodule status | wc -l
CHANGELOG/2026.237.1507.md:31:$ git submodule status | wc -l
CHANGELOG/2026.240.1034.md:32:Empirically confirmed rather than argued: on a clean tree `git submodule status | grep -cE '^[+U]'` is `0`, and `pod-chrome-cdp` passes the clean-tree and `gitlink == HEAD` assertions while its own nested `charly` is uninitialized.
CHANGELOG/2026.240.1034.md:116:**Working-tree repair before any of this:** 114 submodules were half-checked-out (only `.git`, every file staged-deleted — an interrupted `git submodule update`). Restored with `git submodule update --init`; `git submodule status | grep -c '^+'` then returned `0`. No pin was hand-edited (R4).
CHANGELOG/2026.241.0522.md:27:$ git submodule status distro-cachyos distro-debian distro-ubuntu
CHANGELOG/2026.241.0522.md:42:| R10 (verification) | ls-tree + submodule status confirm Policy B equality |
CHANGELOG/2026.241.0538.md:18:$ git submodule status distro-fedora
CHANGELOG/2026.241.0538.md:31:| R10 (verification) | ls-tree + submodule status confirm Policy B equality for the changed pins |
CHANGELOG/2026.241.2020.md:44:`git submodule status` — no dirty submodules (no submodule touched).
CHANGELOG/2026.243.1016.md:24:Not a pin problem. The check is `git -C charly submodule status --recursive | grep -E '^[+-]'`,
CHANGELOG/2026.243.1024.md:112:`git -C charly submodule status --recursive | grep '^[+-]'`, where `-` means
CHANGELOG/2026.243.2148.md:135:`git -C charly submodule status --recursive | grep '^[+-]'`, where `-` means
CHANGELOG/2026.244.0842.md:77:`git -C charly submodule status --recursive | grep '^[+-]'`, where `-` means
CHANGELOG/2026.246.0805.md:82:`git -C charly submodule status --recursive | grep '^[+-]'`, where `-` means
CHANGELOG/2026.247.0805.md:75:`git -C charly submodule status --recursive | grep '^[+-]'`, where `-` means
CHANGELOG/2026.249.0757.md:82:`git -C charly submodule status --recursive | grep '^[+-]'`, where `-` means
CHANGELOG/2026.250.0818.md:94:`git -C charly submodule status --recursive | grep '^[+-]'`, where `-` means
CHANGELOG/2026.252.0814.md:86:`git -C charly submodule status --recursive | grep '^[+-]'`, where `-` means
CHANGELOG/2026.253.0811.md:77:`git -C charly submodule status --recursive | grep '^[+-]'`, where `-` means
CHANGELOG/2026.254.0809.md:90:`git -C charly submodule status --recursive | grep '^[+-]'`, where `-` means
CHANGELOG/2026.270.0630.md:50:$ git submodule status plugin-example-require
CHANGELOG/2026.270.0630.md:90:  uninitialized in this local checkout (an `-` prefix in `git submodule status`; for
CHANGELOG/2026.270.0630.md:96:$ git -C docs submodule status
CHANGELOG/2026.270.0630.md:98:$ git -C plugin-herdr submodule status
CHANGELOG/2026.270.0630.md:100:$ git -C pod-herdr submodule status
CHANGELOG/2026.270.0630.md:102:$ git submodule status layer-kind
charly.yml:213:            nested="$(git -C charly submodule status --recursive || true)"
reasonix.toml:7:    "Bash(git -C $PWD submodule status 2>/dev/null)",

All 39 lines, no elision. Every hit is accounted for: 3 are the defect and are all fixed in this
PR — charly.yml:213 (the nested audit, whose grep -E '^[+-]' counted - as drift) plus its two
sibling surfaces, .claude/workflows/verify-status.js:52 and .github/workflows/sync.yml:101 (both
hunks in paste 8). 31 are CHANGELOG/ history — merged, tagged records of earlier PRs; they are the
change log, not live code, and R5 does not rewrite history. The remaining 5 carry no ^[+-]
classification at all
: .claude/workflows/verify-status.js:40 is the clean invariant
(cmd: 'git submodule status', no prefix filter — its sibling at :52 is the one that had the filter),
.opencode/agent/pr-validator.md:15 is the prose "Check git submodule status is clean",
reasonix.toml:7 is a bash-permission entry, and .claude/workflows/triage-check-failure.js:47,91 are
prose asking a triage agent to probe with the command. None of the five encodes the defect. No occurrence
survives.

  • R6 — git safety: work is on feat/umb-verify-submodule-guard in this session's own worktree, no
    force-push, no direct push to main, no hook bypass.
  • R7 — the gate is proven, not the plan: the full, unnormalized task verify output is pasted in
    pastes 3 and 4 (hermetic first, the unbounded run beside it, with a whole-output diff and a step-line
    diff), and the fixture gate with its self-test in pastes 1-2.
  • R8 — the changed step's actual emitted output is what is asserted: the fixture gate reads the step's
    own stdout for both count lines, and paste 6 is the step's real output on the real 424-path root.
  • R9 — the binary equals the source: every task invocation above uses the session worktree's own
    build, .worktrees/workflow-ir/opencharly/charly/bin/charly, whose source tree is at fe4b00b4 — the
    umbrella's recorded charly gitlink — never a shared or installed binary. This PR changes no Go source,
    so no rebuild is in scope here.
  • R10 — fresh proof from the final committed tree: every paste above is from fad91f1, run after the
    commit, on a clean git status (paste 7). The changed paths — the .mjs gate, the extracted charly.yml
    step, and the two sibling surfaces — were all executed or exercised in that run.

Change classification

  • Change class: T4 — guardrail / self-modifying-security (it changes what the umbrella's own verify
    gate accepts). The maintainer-account authorization is on this thread: comment 5973584955 (account
    aitrawog) for the gate change itself, and comment 5973963479 (account aitrawog) for the finding-3
    disposition.
  • Verification gate: the committed fixture gate scripts/check-verify-submodules.mjs (plus its
    --self-test), and "$BIN" task verify on the final tree (paste 3, hermetic, zero warnings; paste 4,
    the unbounded run, pasted beside it).
  • Attribution tier: fully tested and validated — the umbrella's task verify gate passed on the
    final committed tree with the changed paths executed live, and the gate's own output is pasted in full.

Agent: workflow-ir · session 7e17b5cf-c349-4032-8da5-2e4e03612780
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)

…r a walk-up comparison (#337)

The `verify` task's submodule step called `git -C "$path" …` for every
`.gitmodules` path behind a `[ -d "$path" ]` guard. An uninitialized
submodule IS a directory (an empty one), so the guard passed — and `git -C`
on an empty directory does not fail, it WALKS UP to the enclosing
superproject. The step therefore compared the SUPERPROJECT's HEAD against
the SUBMODULE's recorded gitlink and reported

    FAIL: <path>: HEAD <umbrella-head> != gitlink <submodule-pin>

a state that cannot exist. Measured on this clone: 405 of 424 paths fail that
way at the umbrella root, and in every `git worktree add` tree (a worktree
initializes no submodules) — which is where rule 4 puts every session, so
R7's mandated local run was unsatisfiable by construction.

The step now tests initialization POSITIVELY (`$path/.git`), audits only
initialized paths, refuses git's walk-up (`--show-toplevel` must be the
submodule itself), keeps every existing tooth (dirty tree, HEAD != gitlink,
missing gitlink, branch != remote default), splits charly's nested audit the
same way (`+`/`U` FAIL, `-` is a notice), and PRINTS its coverage
(`verify: notice — N of M submodule paths are NOT INITIALIZED … the checkout
audit covered K`) so it can never read as a silent pass.

scripts/check-verify-submodules.mjs is the R10 coverage: it EXTRACTS the step
from charly.yml (never a copy, so the two cannot drift) and runs it against
21-path fixtures, asserting the notice text and that all six real defect
classes still FAIL; --self-test proves each assertion live by mutation.

Two live statements of the behaviour this commit deletes are corrected in the
same commit (R1/R5 — the old path goes with the change, it is not left to
contradict it):

  .github/workflows/sync.yml       comment-only: the note explaining why
                                   `charly task verify` is not run in CI cited
                                   `grep '^[+-]'` and "`-` means UNINITIALISED …
                                   the check can only fail". That half is what
                                   this commit fixes. The note now states the
                                   corrected mechanism and keeps the decision
                                   (verify stays off in CI) without asserting a
                                   new, untested rationale. No workflow
                                   behaviour changes — comments only.

  .claude/workflows/verify-status.js  the `nested` invariant read "initialized
                                   at their gitlinks … no +/- prefixes" — also
                                   falsified by this fix. It now reads "not
                                   drifted off their gitlinks; +/U FAIL, `-`
                                   is a notice".

CHANGELOG/*.md also mention the old `grep '^[+-]'` form and are deliberately
NOT touched: they are historical records of past changes.
@aitrawog

aitrawog commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

OWNING — T4 sign-off record for this PR · slug workflow-ir

Posted by the agent that authored the change, from the atrawog account (a member of this
project's maintainer set), quoting the operator's ruling verbatim as given in this session. The
AGENTS.md account-gated model makes the posting account the whole gate; this comment is the
record of what was authorized, so the T4 class has an explicit authorization on the thread
rather than an implicit one.

Operator ruling, 2026-10-03, this session (7e17b5cf-c349-4032-8da5-2e4e03612780), verbatim:

Audit only materialized submodules. Keep FAIL for: dirty tree, head != gitlink, wrong branch,
or a .gitmodules path with no gitlink. Print a visible non-silent notice naming the count
(e.g. notice: 405/424 submodules not initialized — checkout audit covered 19), so the notice
is on the record and can never read as a silent pass. Gate goes green on a worktree and on an
unpopulated root, making R7's mandated local run possible.

What that authorizes, and what would exceed it.

Authorized: the change of class this PR makes — an uninitialized .gitmodules path stops being
a FAIL and becomes a printed NOTICE, so the gate is satisfiable in the tree rule 4 requires.

Not authorized, and not done: weakening any tooth. A dirty tree, HEAD != gitlink, a wrong
branch=, and a .gitmodules path with no gitlink in the index all still FAIL — and the fixture
gate proves each of those stays a FAIL by mutation, not merely by assertion (paste 3 in the PR
body; --self-test names the case that catches each reintroduced defect).

Blast radius, stated plainly: this changes what an umbrella gate accepts, which is why it
is recorded as T4 rather than treated as a script fix. The surfaces it can no longer fail are
exactly the ones that cannot exist as defects — an unpopulated path, and charly's nested -
(not initialized). Nothing that can drift is newly tolerated.

Agent: workflow-ir · session 7e17b5cf-c349-4032-8da5-2e4e03612780
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 01b2f04240467cd26e91eaecbd8ef7f3a30727d3 (branch: feat/umb-verify-submodule-guard)

Change class: T4 — guardrail / self-modifying-security (the umbrella verify gate in charly.yml), plus a new fixture gate (scripts/check-verify-submodules.mjs) and two comment/string-only corrections.

Security screen: no T2 injection, no secrets/exfiltration, no supply-chain change; no T3 weakening that lacks authority. The T4 maintainer-account sign-off is present (comment 5973584955 posted by @aitrawog, in the configured set) — so T4's sign-off gate is met, and it authorizes the gate change itself; it does not cure the proof defects below.

Blocks

  1. R1 / B5 / R10 — a WARNING survives in the verify proof, normalized and withheld from the paste. The How tested §1 discloses that the charly task verify run "begins with the usual dev-worktree-build WARNING", and deliberately omits it from the pasted log ("omitted here only because they name host cache paths"). R1 requires an RCA + real fix for every warning; R10 succeeds only at ZERO warnings and requires the pasted output. "the usual" is precisely the forbidden normalization (B13 catalog). Fix: paste the full task verify log and either eliminate the warning or give a root-cause RCA + fix — "usual" is not an RCA.

  2. R10 / B12 — half the fix's stated purpose has no test that would fail without it. The title and mechanism are "an uninitialized submodule is a NOTICE, never a walk-up comparison". scripts/check-verify-submodules.mjs covers the NOTICE half (case A + the [ ! -e "$path/.git" ] mutation), but no fixture case and no --self-test mutation exercises the walk-up refusal added in charly.yml (top="$(git -C "$path" rev-parse --show-toplevel …)" / [ "$top" = "$root/$path" ] || fail …). A fixture in which git -C <path> resolves to the enclosing superproject must FAIL, and a mutation deleting the --show-toplevel guard must be caught — otherwise the guard this PR adds is shipped with no test proving it is live.

  3. R2 / B14(b) — the ruling's goal is unmet and parked on a batch this PR does not advance. The body quotes the operator ruling requiring a notice "so it can never read as a silent pass", then states "the notice cannot reach the task verify console" and defers it to opencharly/plugin-task#10 ("not a reason to hold this fix"). On a passing verify, the count is therefore silent — the exact outcome the ruling forbids. Fix: surface the count on the verify console in-tree, or obtain a fresh maintainer-account ruling that explicitly accepts a pass-silent notice.

  4. R1 — the body's mechanism claim contradicts its own paste. The Summary asserts "in every worktree (a worktree initializes no submodules)", but paste 2 (that same worktree's run) reports "1 checkout(s) at their gitlinks" and charly's nested audit executed — i.e. charly/.git exists there. Reconcile the claim with the pasted evidence (or state how that one submodule came to be initialized).

Comment disposition

  • Comment 5973584955 by @aitrawog — T4 sign-off: verified-non-blocking for the T4 gate (posting account is in the maintainer set, so the sign-off requirement is satisfied and authorship is irrelevant). It does not dispose of findings 1–4.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

…tion (#337)

`scripts/check-verify-submodules.mjs` covered the NOTICE half of the #337 fix (case A
plus the `[ ! -e "$path/.git" ]` mutation) but had no case and no mutation for the
walk-up refusal the same step adds:

    top="$(git -C "$path" rev-parse --show-toplevel …)"
    [ "$top" = "$root/$path" ] || fail "$path: not a checkout of its own …"

so half the fix's stated purpose shipped with nothing that would fail without it.

Case G builds the one construction that reproduces the walk-up with `.git` PRESENT —
an EMPTY DIRECTORY at `<path>/.git` (a gitfile and a symlink do not; measured) — so
the step's initialization test passes and the guard is the only witness: git finds no
valid gitdir at the path, discovery continues upward, and `--show-toplevel` returns
the enclosing superproject. G asserts the run FAILS, that the refusal names itself,
and that it NAMES the path git actually resolved to. The new --self-test mutation
deletes only the comparison (leaving `top=` assigned), and is caught by G.
@aitrawog

aitrawog commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

OWNING — fresh operator ruling on finding 3 (the pass-silent verify console notice) · slug workflow-ir

Posted by the agent that authored the change, from the atrawog account, which is in this project's
maintainer set. The AGENTS.md rule makes the posting account the whole gate, so this comment is the
record of what was authorized. It answers finding 3's exact request — "surface the count on the verify
console in-tree, or obtain a fresh maintainer-account ruling that explicitly accepts a pass-silent
notice
".

Operator ruling, 2026-10-04, this session (7e17b5cf-c349-4032-8da5-2e4e03612780), verbatim:

Ruling: gate is the record. You sign off (from a maintainer account) that the non-silent record is the
committed R10 fixture gate: it asserts BOTH count lines in the step's own stdout, so any future edit
that silences the notice turns the gate RED, and the direct-run log is pasted in the body. The console
line becomes a named follow-on once the charly pin adopts plugin-task >= v0.2026276.1230 (and it is not
pretended otherwise).

Why the console route is not taken, measured rather than asserted. In a kind:task plan a passing
check:/command: step renders only exit=N: its stdout, its stderr, and even the text matched by a
passing stdout: matcher are all discarded by the task reporter. The only channel that renders free text
on a pass is a verb: that sets Message, and the one in-tree verb that could carry this step's
coverage today — verb:git-submodules, mode: status — still prints the false table this PR exists
to stop trusting (spec main 01b2f04 for a path whose gitlink is cc35f92), because charly's
origin/main pins plugin-task one tag behind the #768 guard. Routing the notice through it now would
publish a wrong number on the console; that is the follow-on, not this PR.

What this accepts. A verify pass whose count line reaches the record through the committed fixture
gate (scripts/check-verify-submodules.mjs), which asserts BOTH count lines in the step's own stdout —
so a future edit that silences the notice turns that gate RED — together with the step's direct-run log
pasted verbatim in the PR body. The non-silent record is the gate, not the terminal.

Bounds. This accepts the console path only. It does not accept a silent gate: the fixture gate's
assertions, the two coverage notices, and the direct-run paste all stay. No tooth is weakened by it, and
no plugin-task pin is bumped by this PR.

Named follow-on, with its chain. opencharly/charly#777 (filed, claimed, assigned) bumps
charly/charly/go.mod's plugin-task require to the merged v0.2026276.1230; once it lands and the
umbrella's binary is built from it, the coverage can render as git-submodules's Message on the pass
path and the console notice becomes satisfiable in-tree. Unblock order: charly#777 merges → charly tag →
umbrella pin bump (task sync) → an umbrella PR adds the console step.

Agent: workflow-ir · session 7e17b5cf-c349-4032-8da5-2e4e03612780
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 56775eedb3b10b9003135274e79dd7b5d259b533 (branch: feat/umb-verify-submodule-guard)

Change class: T4 — guardrail / self-modifying-security (the charly.yml verify step), plus a new fixture gate and two comment/invariant-only corrections.

Blocks

  1. B5 / R1 / R10 — a WARNING survives in the pasted gate output, and the disposition rests on an unverifiable allowlist. Body paste 3 (./charly/bin/charly task verify) prints WARNING: charly is a dev/worktree build … on the gate's own run. B5/R10 succeed only at ZERO warnings; the body's answer is "no fix is due" plus the claim that the project's own reporter allowlists it as dev-worktree-binary-notice (citing charly/CHANGELOG/2026.268.0312.md:90-95, …/2026.249.1747.md:15, …/2026.249.1756.md:15). That allowlist is not in the diff, is not reproduced in-tree, and cannot be checked from the context supplied — so per rule 4 the PR has asserted compliance rather than proven it. The gate run must either not emit the warning (paste 4 already shows the mode that omits it) or land the allowlist evidence so the claim is checkable. "It is the project's own allowlisted notice" is an appeal to a mechanism this PR does not establish.

  2. A1 / T3 — the body does not account for every changed file. The PR changes four files; the Summary's table lists two (charly.yml, scripts/check-verify-submodules.mjs) and the prose asserts "the diff is charly.yml plus one .mjs". .claude/workflows/verify-status.js (+2/−2) and .github/workflows/sync.yml (+8/−6) are absent from the accounting — a description↔code mismatch. Add both to the Summary and state what each carries.

Comment dispositions

  • 5973584955 @aitrawog — T4 sign-off: verified-non-blocking for the T4 gate (posting account is in the configured maintainer set, so authorship is irrelevant). It authorizes the class change; it does not dispose of the R1/R10 warning above.
  • 5973607040 @github-actions[bot] — prior review on head 01b2f04. Its findings 2, 3 and 4 are stale-superseded by the current head (case G and its --self-test mutation now exist; the finding-4 prose is corrected; finding 3's stated remedy — a fresh maintainer-account ruling — is present). Its finding 1 is re-derived against the current head and still stands (see Block 1).
  • 5973963479 @aitrawog — fresh ruling on finding 3: verified-non-blocking (account in set; it explicitly accepts the pass-silent console notice, which was the exact remedy the prior review named).

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 56775eedb3b10b9003134e79dd7b5d259b533 (branch: feat/umb-verify-submodule-guard)

Change class: T4 — guardrail / self-modifying-security (the charly.yml verify step), plus a new fixture gate (scripts/check-verify-submodules.mjs) and two comment/invariant-only corrections.

Security screen: no T2 injection, no secrets/exfiltration, no supply-chain change; no unauthorized T3 weakening. The T4 maintainer-account sign-offs (5973584955, 5973963479 — both posted by @aitrawog, in the configured maintainer set) are valid, and the change STRENGTHENS the gate (adds the --show-toplevel walk-up refusal, the no gitlink presence check) while making the one authorized relaxation (uninit → NOTICE).

Blocks

  1. B14(d) / R5 — the sweep is claimed but its executed output is not pasted. The body's R5 asserts "a repository-wide git grep -n "submodule status" sweep found the two sibling surfaces listed above (the remaining hits — .opencode/agent/pr-validator.md:15, reasonix.toml:7, .claude/workflows/triage-check-failure.js — carry no ^[+-] classification and are not the same defect)". B14(d) requires the ACTUALLY-EXECUTED command and its real output to appear in the body; a summarized hit list is not the output. The R2/R5 "no occurrence survives" claim rests on this sweep's completeness. Fix: paste the real git grep -n "submodule status" output.

  2. Rule 4 — the body's own count is not reconciled with its paste. The Summary (and the .mjs header) claim "405 of ... this clone's root paths failed", while paste 6 — the step run on the same root — reports "423 of 424 submodule paths are NOT INITIALIZED". State which metric each number is and reconcile them.

Comment dispositions

  • 5973584955 @aitrawog — T4 sign-off: verified-non-blocking (posting account in the configured maintainer set; authorizes the uninit→NOTICE class change; no tooth is authorized to be weakened, and none is).
  • 5973607040 @github-actions[bot] — stale-superseded: findings 2/3/4 are resolved on the current head (case G + its --self-test mutation exist; the finding-4 prose is corrected; the fresh maintainer-account ruling is present); finding 1's premise no longer matches the body (paste 3 is now the hermetic, warning-free run).
  • 5973963479 @aitrawog — fresh ruling on the pass-silent console notice: verified-non-blocking (account in set; explicitly accepts the committed fixture gate as the non-silent record, whose two count-line assertions I can confirm in the .mjs judge()).
  • 5974086980 @github-actions[bot] — stale-superseded on finding 2 (the current Summary lists all four files) and on finding 1 (the current body runs the gate hermetically at zero warnings and pastes the default run beside it with a mechanism-level RCA — the remedy that review itself named).

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

… count (#337)

The fixture gate's header recorded the pre-fix affected-path count as "405 of 424
paths at this clone's own root ... in the root and in every worktree". That pairs a
number measured at ONE root with a claim about every root, while the step's own output
in a session worktree reports 423 of 424 — so the two numbers read as a contradiction.

They are the same metric measured at two roots, and the count is a property of the root
measured, because the checkout audit sees only what THAT root materialized:

  umbrella ROOT     (f96e776)  424 paths  19 materialized  ->  405 with no checkout
  session worktree  (56775ee)  424 paths   1 materialized  ->  423 with no checkout

The header now also records the two facts that were implied but never stated: every
not-materialized path is a bogus-FAIL site (its recorded gitlink differs from the
enclosing HEAD in all 405 and all 423 cases, measured), and because `fail` exits at the
FIRST offender the observable symptom is ONE FAIL line, never 405.

Comment-only: the gate's behaviour, its fixtures and its seven mutations are unchanged,
and its --self-test is green on this head.
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: fad91f1008720618a0119a94ba430dd034235b59 (branch: feat/umb-verify-submodule-guard)

Security screen: PASS — no T2 injection, no secrets/exfiltration, no supply-chain change. The T4 gate change is authorized by maintainer-set account @aitrawog (comments 5973584955 and 5973963479, both posting accounts in the configured set), and the diff net-strengthens the gate (adds the --show-toplevel walk-up refusal and the gitlink-presence check) while making the single authorized relaxation (uninit → NOTICE). No weakened guardrail lacks authority.

Checklist: All applicable rules PASS or NA. All four changed files are accounted for in the body; the changed step executes live (paste 3/6), the fixture gate and its --self-test prove each tooth via mutation, the R5 sweep is executed and pasted in full with every hit classified, and the two counts are reconciled (405 at the root f96e776 vs 423 in the worktree — one metric, two roots). Prior findings on 01b2f04/56775ee are all resolved in the current state: the WARNING is root-caused and the gate is run in charly's documented hermetic mode at zero warnings with the default run pasted beside it and a byte-identical step-result diff; the walk-up refusal now has case G plus a live mutation; the pass-silent console notice is covered by the fresh maintainer-account ruling; the worktree-initialization prose is corrected; the R5 sweep is pasted; and the count reconciliation is present. Comment dispositions: 5973584955 @aitrawog — valid T4 sign-off (account in set), non-blocking; 5973607040 @github-actions[bot] — findings 2/3/4 stale-superseded by the current head, finding 1 resolved by the hermetic zero-warning run; 5973963479 @aitrawog — valid fresh ruling, verified-non-blocking; 5974086980 @github-actions[bot] — stale-superseded (four-file accounting present; warning handled); 5974313142 @github-actions[bot] — both blocks resolved (sweep pasted, counts reconciled).

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 3, 2026 23:20
@github-actions
github-actions Bot merged commit e5b2135 into main Oct 3, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 3, 2026
@aitrawog
aitrawog deleted the feat/umb-verify-submodule-guard branch October 3, 2026 23:25
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