Skip to content

feat(gitmodules): declare branch = main for the five box/* submodules that declared none - #945

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/box-ref-declarations
Oct 15, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/box-ref-declarations

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

.gitmodules now declares branch = main for the five box/* submodules that declared no ref at all — box/cachyos, box/debian, box/fedora, box/omarchy, box/ubuntu — matching the shape box/arch already carries.

These five declarations turn five refusals-to-judge into five honest behind rows — "we cannot see" becomes "we can see, and it is behind" — and the umbrella's five STRUCTURAL blocked-by charly:box/<ns> (no ref declared) rows become behind rows, a strictly smaller and truthful problem. That matters because the umbrella's currency reading currently REPORTS those five and cannot advance them; after this change it can still not advance them, but it will say so truthfully and name the right reason. (charly#942, claimed before branching.)

$ git rev-parse HEAD
9022a37b…
$ git diff --stat origin/main...HEAD
 .gitmodules | 5 +++++
 1 file changed, 5 insertions(+)
$ git diff origin/main...HEAD -- .gitmodules | grep -c '^+	.*branch = main'
5

Scope, exactly: five lines. No task:, no verb, no charly.yml change, and no gitlink movement — no submodule SHA is touched, so nothing about what is checked out changes; only what can be judged changes. The issue's second half — a verb that can advance charly's own box/* gitlinks — is a separate decision and stays open, which is why this references #942 rather than closing it.

How tested

This repo's own gate, charly/AGENTS.md "R9 and the core Go gate", run on this committed tree with the worktree-local CalVer binary:

$ bash scripts/bootstrap-charly.sh
bootstrap-charly: built ./bin/charly (2026.288.0854)                        # rc=0
$ ./bin/charly version
2026.288.0854                                                              # rc=0
$ cd charly && go test ./...
ok  github.com/opencharly/charly/charly                       265.260s     # rc=0, 0 FAIL
ok  github.com/opencharly/charly/charly/internal/pluginsgen   117.463s
$ cd charly && go vet ./...
                                                                           # rc=0

And the changed artefact is verified through the reader that consumes it — git itself, not a grep of the file:

$ git config -f .gitmodules --get-regexp '^submodule\..*\.branch$'
submodule.box/arch.branch main
submodule.box/cachyos.branch main
submodule.box/debian.branch main
submodule.box/fedora.branch main
submodule.box/ubuntu.branch main
submodule.box/omarchy.branch main
$ git status --porcelain            # post-commit
                                    # empty: nothing but .gitmodules landed

Rulebook compliance

  • R0 — skills loaded before any git action: git-workflow, strict-policy, root-cause-analyzer, plus this repo's own AGENTS.md (Part II refactor(charly): P1 lint/dead/dup rewrite + concurrency & correctness fixes #4, which is why the gate above is the core gate rather than a bed).
  • R1 — no anomaly arose. The finding this implements is #942's (five submodules with no declared ref, so nothing can judge them), claimed with a CLAIM comment and an assignee before the branch; this change carries the declarations half and says so. Zero warnings; the one WARNING in the gate output is charly's own dev/worktree-build notice, which every non-installed build prints.
  • R2/R5 — one shape, copied exactly from box/arch; nothing deleted or renamed, so there is no stale reference to sweep.
  • R3/R4 — no workaround and no prose routing around anything: this is a declaration, and the mechanism half (a verb able to move these gitlinks) is left as its own decision rather than faked here.
  • R6 — git status clean before the commit and after it; worktree branched off fresh origin/main 280a46ad; no force-push, no rebase, no other session's work touched (the branch reused held zero commits, and the neighbouring charly worktree belongs to another session).
  • R7 — the emitted artefact is validated at its actual boundary: the consumer of a .gitmodules declaration is git, and git config -f .gitmodules reports all six.
  • R9 — the CalVer-stamped, worktree-local binary was built by scripts/bootstrap-charly.sh and reports 2026.288.0854, never installed as a shared binary.
  • R10 — not a runtime change: the class gate for this repo's non-runtime changes is the core gate above, run on the committed tree. Its consumer (the umbrella's currency reading) needs nothing from this repo beyond the declarations.

Change classification

  • Diff: .gitmodules only — five insertions of branch = main.
  • Change class: repository/submodule-ref declaration (non-runtime).
  • Behaviour change: none at checkout time; no gitlink moved. What changes is judgability — git can now compare each of the five against main.
  • Attribution tier: fully tested and validated — the class gate passed on the committed tree and the changed artefact was verified through the reader that consumes it.

Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (fully tested and validated)

… that declared none

charly's .gitmodules named box/arch's branch but left box/cachyos, box/debian,
box/fedora, box/omarchy and box/ubuntu with no ref at all, so nothing could judge
whether they were behind: five refusals-to-judge instead of five honest `behind`
rows. Matching box/arch's shape turns each into a `behind` row — "we cannot see"
becomes "we can see, and it is behind" — and the umbrella's five
`STRUCTURAL blocked-by charly:box/<ns> (no ref declared)` rows become `behind` rows,
a strictly smaller and truthful problem (charly#942).

Declarations only: no task:, no verb, no charly.yml change, no gitlink movement. The
issue's second half — a verb that can advance charly's own box/* gitlinks — stays
open, which is why this change references the issue rather than closing it.

Gate (charly/AGENTS.md "R9 and the core Go gate"), all on this tree:
  scripts/bootstrap-charly.sh          rc=0, built ./bin/charly (2026.288.0854)
  ./bin/charly version                 2026.288.0854
  cd charly && go test ./...           rc=0, 0 FAIL (265.260s + 117.463s)
  cd charly && go vet ./...            rc=0

Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 9022a37b22e053f94de360f72efa9137aeb93e50 (branch: feat/box-ref-declarations)

Security screen: PASS — .gitmodules branch declarations only; no secrets/egress, no guardrail or rulebook edits, no dependency/URL/pin changes, no scope mismatch.

Checklist: All applicable rules PASS or NA. (Diff is a 5-line non-runtime .gitmodules declaration: A1 body complete and correctly footered *Agent: …* then *Assisted-by: …*; A2/A3 non-runtime gate + artefact verified through its consumer git config -f .gitmodules; R0–R10 apply only as the body states, coverage/bed rules NA — no code, candy, CUE/schema, or target touched; PIL/ARCH/DISP/QUAL/CONC/HC NA.) Comment thread is empty — nothing to disposition.

Verdict: PASS


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

View action run

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