Skip to content

feat: register distro-omarchy, and sync gitlinks to match (policy B) - #51

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/register-distro-omarchy
Aug 30, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/register-distro-omarchy

Conversation

@atrawog

@atrawog atrawog commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

charly gained box/omarchy in charly#476.
Policy B says the umbrella's distro-* pins must equal charly's own gitlinks, so
the umbrella has to record the same submodule at the same commit — or the pinning gate
fails outright:

FAIL: charly has no gitlink at box/omarchy

That is this PR: register distro-omarchy and bring every pin back into line.

Every file in the diff

File What changed
.gitmodules [submodule "distro-omarchy"] — path, url, branch = main
scripts/lib/policy-b.sh [box/omarchy]=distro-omarchy in CHARLY_PINNED
distro-omarchy new gitlink at 2a1f530 — the exact commit charly records
charly, sdk, spec, distro-cachyos, marketplace, plugin-generate-packages, pod-charly-hooks gitlinks advanced by task sync

Why seven other submodules moved

task sync bumps all pins per policy B, and verify-pins.sh compares all of them
across 347 submodules. The umbrella was simply behind on these seven, and a partial sync
would leave verify red — so this is the every-other-repo rule doing its job rather than
scope creep. The alternative (hand-pinning only charly + distro-omarchy) is exactly the
hand-pin R4 forbids: "If charly's pinning changed, the fix is a sync, not a hand-pin."

One step that is easy to miss

git -C charly submodule update --init --recursive is required after the sync. Without it
charly reports a dirty working tree — its own box/cachyos gitlink moved — and verify
fails at

FAIL: charly: dirty working tree

before it ever reaches the pin comparison. The failure names charly, not the real cause,
which is why it is called out here.

How tested

task verify — the full pinning gate — on the final tree:

$ task verify
check-policy-b: OK — 6 distro pins equal charly's gitlinks
verify-pins: OK — 347 submodules, policy B holds
OK: /home/atrawog/.cache/omarchy-work/umbrella2/.pi/extensions/umbrella-gates.ts parses (node type-strip pass)
EXIT=0

6 distro pins equal charly's gitlinks is the Policy B assertion this PR exists to satisfy;
it read 5 before distro-omarchy was registered. 347 submodules, policy B holds is the
whole-tree check.

The gate was not green on the way here, and both failures were real rather than
environmental:

  1. FAIL: charly has no gitlink at box/omarchy — the umbrella's charly pin predated
    chore(pins): sync the umbrella gitlinks to their current tags #476. Fixed by task sync, not by hand-pinning.
  2. FAIL: charly: dirty working tree — charly's inner submodules were stale after that
    bump. Fixed by the recursive update above.

The gitlink equality was also confirmed directly before running the gate:

$ git -C charly ls-tree origin/main box/omarchy
160000 commit 2a1f53055cbc3d7d0dbc94f25ffbb7cf944cba96	box/omarchy
$ git ls-files -s distro-omarchy
160000 2a1f53055cbc3d7d0dbc94f25ffbb7cf944cba96 0	distro-omarchy

Same commit on both sides, which is what Policy B means.

Where this was run

In a fresh recursive clone, not in an existing working tree. The developer checkout on
this machine is on someone else's feature branch with modified submodules, and switching it
would have destroyed in-flight work (R6). verify-pins.sh requires all 347 submodules
checked out, so a shallow clone cannot run it — the first attempt failed with a misleading
charly: dirty working tree because the uninitialised submodule made the script's cd
fall through to the umbrella root.

Rulebook compliance

  • R0 — skills first. /charly-internals:git-workflow — the pinning/gitlink policy and
    the task sync + task verify pair.
  • R1 — RCA every anomaly. Three surfaced, each root-caused rather than retried: the
    missing charly gitlink, charly's stale inner submodules, and the shallow-clone
    misdiagnosis above.
  • R2 — finish the whole cutover. .gitmodules, policy-b.sh and the gitlink land
    together — registering in one and not the others leaves the gate red.
  • R3 — no duplication. The gitlink is recorded once and derived from charly's, which
    is what Policy B means by "equal".
  • R4 — no workarounds. No hand-pinned gitlink. Every pin comes from task sync.
  • R5 — delete legacy completely. N/A — purely additive registration.
  • R6 — preserve user work and Git safety. Done in a fresh clone precisely so the
    developer checkout's in-flight branch was untouched. Feature branch, PR-only, no
    force-push, no direct push to main, no hook bypass.
  • R7 — prove the gate, not the plan. task verify output pasted above, from the final
    committed tree. A green git status would prove nothing here.
  • R8 — preserve emitted artifacts. N/A — no build artifact.
  • R9 — binary equals source. N/A — no binary; the gate is shell + node scripts from this tree.
  • R10 — fresh disposable proof. N/A — the umbrella has no bed; task verify IS its gate, and it ran on a freshly cloned tree.
  • ADE / SDD / concurrency mandate. N/A — gitlink registration; no candy, no schema, no roster.

Change classification

  • Change class: submodule registration + policy-B gitlink sync. No code, no schema.
  • Verification gate: task verify (exit 0) on the final tree.
  • Attribution tier: fully tested and validated — the umbrella's own full pinning gate
    passed on the committed tree, after failing twice for real reasons that were fixed.

Assisted-by: Claude Code claude-opus-5[1m] (fully tested and validated)

charly gained box/omarchy in opencharly/charly#476. Policy B says the
umbrella's distro-* pins must EQUAL charly's own gitlinks, so the
umbrella has to record the same submodule at the same commit or the
pinning gate fails:

  FAIL: charly has no gitlink at box/omarchy

Register distro-omarchy in .gitmodules and scripts/lib/policy-b.sh, add
the gitlink at 2a1f530 -- the exact commit charly records -- and run
`task sync` so every pin lines up.

The sync also catches six submodules the umbrella was simply behind on:
charly, sdk, spec, distro-cachyos, marketplace, plugin-generate-packages
and pod-charly-hooks. That is the every-other-repo rule doing its job,
not scope creep: `task sync` bumps all pins per policy B and the gate
compares all of them, so a partial sync would leave verify red.

charly's own inner submodules were updated too (`git -C charly submodule
update --init --recursive`); without that charly reports a dirty working
tree and verify fails before it reaches the pin comparison.

Claude-Session: https://claude.ai/code/session_01YKF2VLqeHHbrBDz8XftaD3
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 3f0608e02794 (branch: feat/register-distro-omarchy)

Change class: submodule registration + policy-B gitlink sync (config/gitlink, no code/schema).

Security screen: PASS — additive registration only; no secrets, no exfiltration, no scope mismatch (every file in the diff is accounted for in the body's table), no weakened guardrails, no embedded directives.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: body supplies full summary, pasted task verify output, per-rule compliance with one-line HOW/N/A, and ends with the *Assisted-by:* footer. Attribution tier "fully tested and validated" is justified — the changed paths (.gitmodules, policy-b.sh) executed via task verify on the final tree.
  • R0–R10: git-workflow skill honored; three surfaced failures each root-caused (no forbidden framing); no pre-existing split; no duplication; no hand-pinning (R4); R5/R8/R9/R10 N/A with reasons; R6 satisfied via fresh clone.
  • B13/B14/B15: N/A (no candy/schema/roster); single atomic commit; no concurrency issues.
  • B16 placement: CORRECT — distro-omarchy is a distro submodule registered in .gitmodules and CHARLY_PINNED; no core/sdk/candy misplacement.
  • Gitlink equality cross-checked: distro-omarchy at 2a1f530 matches the body's ls-tree/ls-files output; gate output internally consistent (6 pins, 347 submodules).

Comment intake: no comments on the thread.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 30, 2026 09:00
@github-actions
github-actions Bot merged commit 60abfd4 into main Aug 30, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 30, 2026
@aitrawog
aitrawog deleted the feat/register-distro-omarchy branch September 25, 2026 18:27
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