Skip to content

charly task map reports the enclosing superproject HEAD as the PIN of uninitialized submodules — adopt the #768 producer fix (plugin-task v0.2026276.1230) #777

Closed

Description

@aitrawog

Problem

charly task map — the umbrella's documented command — reports the enclosing superproject's
HEAD
as the PIN of every uninitialized submodule. The rows are not merely missing; they
assert a pin that does not exist for that path.

This is the consumer half of #768, which was closed on the producer merge
(opencharly/plugin-task#8, tagged v2026.276.1230) but whose consumer adoption never
landed
: charly's origin/main still pins plugin-task v0.2026276.1007, one tag behind the
walk-up guard.

Evidence (measured)

The charly that builds the umbrella's binary, and origin/main itself, both pin the pre-guard
tag:

$ git -C <charly> show origin/main:charly/go.mod | grep -m1 plugin-task/candy/plugin-task
	github.com/opencharly/plugin-task/candy/plugin-task v0.2026276.1007
$ git -C <charly> log --oneline -1 origin/main
ca97be8d docs: add CHANGELOG 2026.276.1447 for PR #773

task map in a session worktree (HEAD 01b2f04), against the real gitlinks:

$ charly -C <worktree> task map
task map: 1 step(s), 0 failed
  [pass] run — print the submodule map
      PATH                         BRANCH     PIN
      ...
      spec                         main       01b2f04
      docs                         main       01b2f04
      charly                       main       fe4b00b4
      ...
$ git -C <worktree> ls-files -s spec docs charly
160000 cc35f92… 0	spec
160000 cbe9d6a… 0	docs
160000 fe4b00b4… 0	charly
$ git -C <worktree> rev-parse --short HEAD
01b2f04

01b2f04 is the superproject's HEAD, not spec's gitlink (cc35f92) — git's directory
walk-up, exactly the mechanism #768 describes. charly is the only row that is right, and it
is the only initialized path: the same run reports 1 checkout(s) / 423 not initialized.

The guard is present in the producer tag and absent from the pinned one:

$ git -C <plugin-task> show candy/plugin-task/v0.2026276.1007:candy/plugin-task/verbs.go \
    | grep -c "is not an initialized checkout"
0
$ git -C <plugin-task> show candy/plugin-task/v0.2026276.1230:candy/plugin-task/verbs.go \
    | grep -c "is not an initialized checkout"
1

v0.2026276.1007's case "status" has neither submoduleAt nor the - (uninitialized) marker;
v0.2026276.1230 has both.

Impact

  • The umbrella's charly task map (README, "Umbrella maintenance commands") misinforms on any
    tree with uninitialized submodules — the normal state of a session worktree (rule 4) and of a
    fresh clone whose submodules were not recursed.
  • opencharly/opencharly#345 cannot add a git-submodules status step to the umbrella verify
    task to render its checkout-audit coverage on the pass path: the only in-tree rendering channel
    would print a false table until this pin lands.

Scope

Bump charly/charly/go.mod's github.com/opencharly/plugin-task/candy/plugin-task to the merged
v0.2026276.1230 (with go.sum, and the regenerated charly/plugins_refs_generated.go), the
exact shape of the merged #766 deps bump. The producer-side regression coverage already rode
plugin-task#8; this is the consumer adoption only, so no new behaviour is introduced here.

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

Activity

  1. self-assigned this
    on Oct 3, 2026
  2. aitrawog commented on Oct 3, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — consumer adoption of the #768 producer fix (plugin-task git-submodules walk-up guard).

    I found the residual while measuring for opencharly/opencharly#345 finding 3: the umbrella's
    task map printed spec main 01b2f04 for a path whose real gitlink is cc35f92 — the
    superproject's HEAD, the #768 walk-up, still live on origin/main because the pin is one tag
    behind. Evidence is in the issue body.

    Working it in this session: bump charly/charly/go.mod's plugin-task require to the merged
    v0.2026276.1230 (+ go.sum, + regenerated charly/plugins_refs_generated.go), the shape of
    the merged #766. PR against opencharly/charly follows.

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

  3. aitrawog commented on Oct 7, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — charly task map no longer reports the superproject's HEAD as an uninitialized submodule's PIN. The walk-up-safe resolver landed as opencharly/plugin-task#8 ("refuse an uninitialized submodule — never let git -C walk up to the superproject", merged 2026-10-03, v0.2026276.1230), and charly's origin/main already pins github.com/opencharly/plugin-task/candy/plugin-task v0.2026279.1656 (charly/go.mod), which carries it — candy/plugin-task/verbs.go on that tag reads the pin through submoduleAt's walk-up-safe form and its own comment names the failure this issue reports (git -C on an uninitialized submodule reads the SUPERPROJECT's HEAD).

    Agent: dsh-issue-triage
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions