Skip to content

charly task sync materializes a new submodule INSIDE every charly checkout, not just at the umbrella root #1182

Open

Description

@aitrawog

Measured 2026-11-17 while running the pin wave after the omarchy split.

charly task sync in the umbrella reported:

pinned 5 pin_map entr(y|ies) (distro-arch, distro-cachyos, distro-debian, distro-fedora, distro-ubuntu; 1 moved)
after rolling 387 leaf submodule(s) to their default-branch HEAD (34 moved)
and advancing 1 leaf pin(s) in the index (1 moved); 36 pin(s) moved

The advance itself was correct. The corpus had just split box/omarchy (a path inside the charly repo) into top-level repos — distro-omarchy, eval-omarchy, layer-omarchy-*, plugin-omarchy, omarchy-eval-artifacts — and the sync added all 17 at the top level, which is right.

But it ALSO materialized box/omarchy as an UNTRACKED DUPLICATE inside three separate charly checkouts:

$ ls charly/box/omarchy
AGENTS.md  box  candy                 # a full copy of distro-omarchy
$ git -C charly ls-files box/omarchy | wc -l
0                                     # untracked — charly never carried it after the split
$ ls plugin-herdr/charly/box/omarchy   # same, in the NESTED charly submodule
$ ls pod-herdr/charly/box/omarchy     # same

So the tree could not be made clean: git status showed M? charly, M? plugin-herdr and M? pod-herdr — a modified gitlink AND untracked content — where only the gitlink advance was intended.

Why it matters beyond tidiness: Part II #1 says "Never edit inside a submodule", and git status cannot go clean while an untracked duplicate sits inside one. A session following the rulebook is left with a tree it is forbidden to clean by committing, and charly task verify's checkout audit is the thing that notices.

Resolution used: rm -rf the three duplicates (git ls-files empty, so nothing tracked was lost), after which the umbrella reported 0 dirty paths and every submodule clean.

What I would expect the fix to be: the sync's materialization step should key the path on the pin's umbrella-relative location and never write inside a submodule checkout — a path that is no longer a declared submodule of the repo being rolled should be skipped, not created.

Agent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Activity

  1. added
    category:governance
    type:chore
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:governancetype:chore

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions