You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
charly task sync cannot run in a fresh worktree: it needs all 423 submodules initialized (the third surface of #847's root condition) #864
charly task sync cannot run in a fresh umbrella git worktree: it walks every gitlink and requires each submodule to be an initialized checkout, so on a worktree whose submodules are uninitialized it bumps what it can and fails the rest.
$ cd <umbrella>/.worktrees/<slug>/umbrella && charly task sync
[fail] run - bump the pins (charly rolls first, then distro-* from its new gitlinks)
[fail] run - run git-submodules in the selected mode
bumped 1 submodule pin(s): charly; 422 FAILED:
submodule "action-review" is not an initialized checkout
(/home/.../.worktrees/<slug>/umbrella/action-review)
Measured 2026-10-08 on current origin/main, in a worktree created by the sanctioned flow (.worktrees/<slug>/<repo>, Part II rule 2).
Why it matters
Part II rule 2 makes a session worktree the place umbrella work happens, and Part II rule 3 makes charly task sync the ONLY sanctioned way to advance a pin ("never a hand-pin"). Those two rules are currently unsatisfiable together in a fresh worktree - so a consumer pin bump cannot be produced from the sanctioned place, and the only ways out are to initialize all 423 submodules first or to hand-edit a gitlink (forbidden).
It is also the third surface of one root condition. The same "this worktree has no submodule content" state already blocks:
the umbrella pre-commit hook, which calls charly task ... (a single git submodule update --init --depth 1 charly makes it pass);
charly task sync, which needs all of them.
What is good about it, and worth keeping
task sync's own message is the behaviour #847 asked the loader to adopt: it names the submodule and the condition - submodule "action-review" is not an initialized checkout. The org already has the right idiom in one place; this row is about the requirement, not the wording.
Candidate fixes, for whoever takes it
Skip uninitialized gitlinks explicitly and say so, rather than failing the run: a worktree that cannot see submodule content cannot advance those pins, and a sync that reports "N pins skipped, M advanced, here is how to initialize" is honest and useful;
or detect the state up front and refuse with the one command that fixes it (git submodule update --init), instead of bumping 1 and failing 422.
Agent: issue-ledger-fanout · session session-66d2db27-61c9-484e-833f-534a3f71de10 Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
STATUS — opencharly/charly#864 · slug issue-ledger-fanout
The owning repo for the fix is located, and it is not charly.
$ grep -rln "is not an initialized checkout" $(go env GOMODCACHE)/github.com/opencharly/
opencharly/plugin-task/candy/plugin-task/verbs.go
charly task sync is implemented in the out-of-process plugin opencharly/plugin-task (candy/plugin-task/verbs.go; the string also appears in the pinned v0.2026277.711 and v0.2026279.1656). So the candidate fixes named in the issue body - skip uninitialized gitlinks with an honest report, or detect the state up front and name the one command that fixes it - are a cutover in plugin-task, not in the charly core.
How the site was found, since it is the reusable part: by grepping the module cache, not this checkout. A message a program prints is owned by whichever module built that code - three greps in charly/ find nothing, and one grep across $GOMODCACHE/github.com/opencharly/ names the file. An hour of guessing at the wrong repository, twice tonight, is what that rule now exists to prevent.
What stays unverified so far: the exact call path from task sync into that message, and whether the walk can distinguish "uninitialized gitlink" from "genuinely absent submodule" without new git plumbing. That is the R1 step for whoever takes it, before any edit.
Scope note: this row is the third surface of the condition tracked by opencharly/charly#847 (now closed - the loader and the pre-commit hook are fixed). Nothing here blocks that closure.
Agent: issue-ledger-fanout · session session-66d2db27-61c9-484e-833f-534a3f71de10 Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
STATUS — correction to this issue's framing, and the constraint any fix must respect.
Reading the code that emits the message (plugin-task/candy/plugin-task/verbs.go) turned up the guard's own history, and it changes what the right fix is.
// WHY the guard (charly#768): `git -C <path>` only CHANGES DIRECTORY. On a
// present-but-uninitialized submodule directory - the normal state of a freshly created
// `git worktree` that has not run `git submodule update --init` - git WALKS UP to the
// enclosing repository and resolves to the SUPERPROJECT, so a
// `git -C <empty-submodule-dir> switch --detach <ref>` silently switched the UMBRELLA ...
opencharly/charly#768 (CLOSED, 2026-10-03) is this same surface, and the loud failure is its FIX:task sync used to detach the caller's session worktree from its feat/ branch mid-sync. The guard that fails loud - submodule %q is not an initialized checkout ... run \git submodule update --init %s`` - was introduced to replace that silent damage.
So this issue is the residue of #768, not a regression of it, and the distinction decides the fix:
Not a fix: weakening or removing the guard, or making it fall back to a git -C operation. That would reintroduce #768 - a maintenance command silently moving a session's HEAD.
The fix:task sync should pre-flight the state and refuse once, naming the single command that repairs it, instead of bumping 1 pin and then failing 422 times. A fail-fast on a condition it can already detect is honest and costs nothing; the guard then never has to fire 422 times.
Still open, and it must be decided with #768 in view: whether skipping uninitialized gitlinks with an explicit "N pins skipped" report is acceptable. It does not weaken the guard (no git operation happens in those directories) - but it must be argued against #768's intent, not merely for convenience.
A process defect on my side, recorded rather than hidden: I filed this issue without first searching for an existing row on the surface, which is what R6 asks for. The search would have found #768 immediately and this framing would have been right on the first attempt. Filing is cheap; not searching costs a reader a wrong mental model of what the guard is for.
What is verified and what is not: the message's site and the guard's rationale are read from source (pasted above). The full call path from task sync to that message, and whether a pre-flight can distinguish "uninitialized gitlink" from "genuinely absent submodule" without new git plumbing, remain unverified - that is the R1 step before any edit.
Agent: issue-ledger-fanout · session session-66d2db27-61c9-484e-833f-534a3f71de10 Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
STATUS — the fix is designed from the code's own invariants, and it is small.
Reading runGitSubmodules (plugin-task/candy/plugin-task/verbs.go, entry :196, mode switch :206) turned up two documented invariants that already point at the answer:
1. status already treats an uninitialized submodule gracefully - in the same file:
branch := submoduleBranch(projDir, p)
// Read through submoduleAt's walk-up-safe form (charly#768): `git -C` on an
// uninitialized submodule reads the SUPERPROJECT's HEAD. An uninitialized
// checkout has no pin to report.
2. bump deliberately keeps going past a per-path failure:
// ONE FAILURE NEVER STRANDS THE REST (plugin-task#13): a per-path failure is
// RECORDED and the walk CONTINUES ... Every failure is reported together at the end
So the bump branch fails 422 times on a condition status already knows how to skip, and the failure count is the residue of a path that was never a failure in the first place: an uninitialized checkout has no pin to advance.
The change, in the shape the code already uses:
pre-flight once, before the phases: collect the submodule paths whose .git is absent (the same test submoduleAt makes, without performing any git operation in them - so charly#768's guard is neither weakened nor bypassed);
if any exist, report them as SKIPPED with the count and the one repairing command, and continue with the rest - mirroring status's treatment and plugin-task#13's "one condition never strands the rest";
the result line becomes "bumped N submodule pin(s): …; M skipped (not initialized): run git submodule update --init" instead of 422 FAILED.
Why this is the honest fix rather than a convenience: it adds no git operation anywhere the guard refused one, it preserves plugin-task#13's per-path resilience, and it turns an avalanche of identical failures into one statement of a condition the tool can already detect. A pre-flight that cannot change any outcome is also not a fix - the outcome it changes is "422 errors" becoming "1 statement".
Still unverified before any edit: that paths at the bump branch is the same set the pre-flight would test, and whether the existing skipped map is the right carrier or a parallel list is clearer. Both are one read each, in the worktree, before writing code.
Agent: issue-ledger-fanout · session session-66d2db27-61c9-484e-833f-534a3f71de10 Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
charly task sync no longer fails once per uninitialized submodule. The fix is merged: opencharly/plugin-task#24 (squash of 695f7ba + 3d6d568 + 4d55aaa).
before: bumped 1 submodule pin(s): charly; 422 FAILED: submodule "action-review" is not an initialized checkout …
after: bumped 0 submodule pin(s): ; 1 submodule(s) not an initialized checkout (action-review): run `git submodule update --init`
What was actually wrong, once the code's own history was read: the loud failure was not the bug — opencharly/charly#768 (closed) introduced it because git -C inside an uninitialized submodule walked up and detached the umbrella worktree. The residue was that a precondition was being reported once per path instead of once. So the guard, its vocabulary, and its regression assertion all stayed; only the reporting changed.
Three invariants were respected, each read from the code or its tests before any edit:#768's guard and the umbrella staying untouched; status keeping its uninitialized marker (and verify its policy judgement) — the injection is scoped to bump; and plugin-task#13's "one condition never strands the rest", so pins that can advance still do.
Gates on the final tree:go build/go vet/gofmt clean, go test ./... ok, and ./scripts/gate-task.shPASS — command:task + all five maintenance verbs executed live against charly main.
Why this row exists at all, for the next reader:charly task sync cannot run in a fresh worktree because it walks every gitlink, and the whole condition has three surfaces — the loader (opencharly/charly#847, fixed), the umbrella pre-commit hook (one git submodule update --init --depth 1 charly), and this verb. The umbrella gitlink advance still needs an initialized checkout; that part is unchanged.
STATUS — this CLOSED row's fix was never consumed, and I have verified it by content rather than by version arithmetic.
charly/go.mod pinned plugin-task v0.2026279.1656: that module version carries neitherverbs_uninit_test.gonoruninitializedSubmodules() (checked against the module zip from the proxy), while v0.2026283.105 (repo tag v2026.283.0105) carries both. So the row read COMPLETED while its failure still reproduced exactly today, in a worktree created by the sanctioned flow:
bumped 1 submodule pin(s): charly; 422 FAILED: submodule "action-review" is not an initialized checkout (…): run `git submodule update --init action-review`
With the pin consumed and a worktree-local binary, the same worktree gives one reported line instead of 418 failures, and the initialized pins advance (dotgithub a817054ac -> 1dc441368, marketplace ee110b46e -> fbdf3babf), after which charly task verify exits 0 there. The consumer leg is in flight as a charly PR linked in this thread; no code change was needed — the fix already existed, it just never reached the binary.
Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
Activity
chore: re-trigger on the body that routes the gitlink surface to its …
fix(deps): carry the sdk loader fix that names an uninitialized submo…
aitrawog commentedon Oct 8, 2026
STATUS —
opencharly/charly#864· slugissue-ledger-fanoutThe owning repo for the fix is located, and it is not
charly.charly task syncis implemented in the out-of-process pluginopencharly/plugin-task(candy/plugin-task/verbs.go; the string also appears in the pinnedv0.2026277.711andv0.2026279.1656). So the candidate fixes named in the issue body - skip uninitialized gitlinks with an honest report, or detect the state up front and name the one command that fixes it - are a cutover inplugin-task, not in the charly core.How the site was found, since it is the reusable part: by grepping the module cache, not this checkout. A message a program prints is owned by whichever module built that code - three greps in
charly/find nothing, and one grep across$GOMODCACHE/github.com/opencharly/names the file. An hour of guessing at the wrong repository, twice tonight, is what that rule now exists to prevent.What stays unverified so far: the exact call path from
task syncinto that message, and whether the walk can distinguish "uninitialized gitlink" from "genuinely absent submodule" without new git plumbing. That is the R1 step for whoever takes it, before any edit.Scope note: this row is the third surface of the condition tracked by
opencharly/charly#847(now closed - the loader and the pre-commit hook are fixed). Nothing here blocks that closure.Agent:
issue-ledger-fanout· sessionsession-66d2db27-61c9-484e-833f-534a3f71de10Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Oct 8, 2026
STATUS — correction to this issue's framing, and the constraint any fix must respect.
Reading the code that emits the message (
plugin-task/candy/plugin-task/verbs.go) turned up the guard's own history, and it changes what the right fix is.opencharly/charly#768(CLOSED, 2026-10-03) is this same surface, and the loud failure is its FIX:task syncused to detach the caller's session worktree from itsfeat/branch mid-sync. The guard that fails loud -submodule %q is not an initialized checkout ... run \git submodule update --init %s`` - was introduced to replace that silent damage.So this issue is the residue of
#768, not a regression of it, and the distinction decides the fix:git -Coperation. That would reintroduce#768- a maintenance command silently moving a session's HEAD.task syncshould pre-flight the state and refuse once, naming the single command that repairs it, instead of bumping 1 pin and then failing 422 times. A fail-fast on a condition it can already detect is honest and costs nothing; the guard then never has to fire 422 times.#768in view: whether skipping uninitialized gitlinks with an explicit "N pins skipped" report is acceptable. It does not weaken the guard (no git operation happens in those directories) - but it must be argued against#768's intent, not merely for convenience.A process defect on my side, recorded rather than hidden: I filed this issue without first searching for an existing row on the surface, which is what R6 asks for. The search would have found
#768immediately and this framing would have been right on the first attempt. Filing is cheap; not searching costs a reader a wrong mental model of what the guard is for.What is verified and what is not: the message's site and the guard's rationale are read from source (pasted above). The full call path from
task syncto that message, and whether a pre-flight can distinguish "uninitialized gitlink" from "genuinely absent submodule" without new git plumbing, remain unverified - that is the R1 step before any edit.Agent:
issue-ledger-fanout· sessionsession-66d2db27-61c9-484e-833f-534a3f71de10Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Oct 8, 2026
STATUS — the fix is designed from the code's own invariants, and it is small.
Reading
runGitSubmodules(plugin-task/candy/plugin-task/verbs.go, entry:196, mode switch:206) turned up two documented invariants that already point at the answer:1.
statusalready treats an uninitialized submodule gracefully - in the same file:2.
bumpdeliberately keeps going past a per-path failure:So the
bumpbranch fails 422 times on a conditionstatusalready knows how to skip, and the failure count is the residue of a path that was never a failure in the first place: an uninitialized checkout has no pin to advance.The change, in the shape the code already uses:
.gitis absent (the same testsubmoduleAtmakes, without performing any git operation in them - socharly#768's guard is neither weakened nor bypassed);status's treatment andplugin-task#13's "one condition never strands the rest";git submodule update --init" instead of422 FAILED.Why this is the honest fix rather than a convenience: it adds no git operation anywhere the guard refused one, it preserves
plugin-task#13's per-path resilience, and it turns an avalanche of identical failures into one statement of a condition the tool can already detect. A pre-flight that cannot change any outcome is also not a fix - the outcome it changes is "422 errors" becoming "1 statement".Still unverified before any edit: that
pathsat the bump branch is the same set the pre-flight would test, and whether the existingskippedmap is the right carrier or a parallel list is clearer. Both are one read each, in the worktree, before writing code.Agent:
issue-ledger-fanout· sessionsession-66d2db27-61c9-484e-833f-534a3f71de10Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Oct 8, 2026
RESOLVED —
opencharly/charly#864· slugissue-ledger-fanoutcharly task syncno longer fails once per uninitialized submodule. The fix is merged:opencharly/plugin-task#24(squash of695f7ba+3d6d568+4d55aaa).What was actually wrong, once the code's own history was read: the loud failure was not the bug —
opencharly/charly#768(closed) introduced it becausegit -Cinside an uninitialized submodule walked up and detached the umbrella worktree. The residue was that a precondition was being reported once per path instead of once. So the guard, its vocabulary, and its regression assertion all stayed; only the reporting changed.Three invariants were respected, each read from the code or its tests before any edit:
#768's guard and the umbrella staying untouched;statuskeeping its uninitialized marker (andverifyits policy judgement) — the injection is scoped tobump; andplugin-task#13's "one condition never strands the rest", so pins that can advance still do.Gates on the final tree:
go build/go vet/gofmtclean,go test ./...ok, and./scripts/gate-task.shPASS —command:task+ all five maintenance verbs executed live against charly main.Why this row exists at all, for the next reader:
charly task synccannot run in a fresh worktree because it walks every gitlink, and the whole condition has three surfaces — the loader (opencharly/charly#847, fixed), the umbrella pre-commit hook (onegit submodule update --init --depth 1 charly), and this verb. The umbrella gitlink advance still needs an initialized checkout; that part is unchanged.Agent:
issue-ledger-fanout· sessionsession-66d2db27-61c9-484e-833f-534a3f71de10Assisted-by: dsh deepseek-v4.1-flash (fully tested and validated)
aitrawog commentedon Oct 13, 2026
STATUS — this CLOSED row's fix was never consumed, and I have verified it by content rather than by version arithmetic.
charly/go.modpinnedplugin-task v0.2026279.1656: that module version carries neitherverbs_uninit_test.gonoruninitializedSubmodules()(checked against the module zip from the proxy), whilev0.2026283.105(repo tagv2026.283.0105) carries both. So the row read COMPLETED while its failure still reproduced exactly today, in a worktree created by the sanctioned flow:With the pin consumed and a worktree-local binary, the same worktree gives one reported line instead of 418 failures, and the initialized pins advance (
dotgithub a817054ac -> 1dc441368,marketplace ee110b46e -> fbdf3babf), after whichcharly task verifyexits 0 there. The consumer leg is in flight as a charly PR linked in this thread; no code change was needed — the fix already existed, it just never reached the binary.Agent:
dsh-opencharlyAssisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
chore(pins): advance the twelve non-current pins to their served main…