Repository navigation
feat: register distro-omarchy, and sync gitlinks to match (policy B) - #51
Merged
Merged
Conversation
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
Contributor
Review — PASSHead SHA: 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.
Comment intake: no comments on the thread. Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
charlygainedbox/omarchyin charly#476.Policy B says the umbrella's
distro-*pins must equal charly's own gitlinks, sothe umbrella has to record the same submodule at the same commit — or the pinning gate
fails outright:
That is this PR: register
distro-omarchyand bring every pin back into line.Every file in the diff
.gitmodules[submodule "distro-omarchy"]— path, url,branch = mainscripts/lib/policy-b.sh[box/omarchy]=distro-omarchyinCHARLY_PINNEDdistro-omarchy2a1f530— the exact commit charly recordscharly,sdk,spec,distro-cachyos,marketplace,plugin-generate-packages,pod-charly-hookstask syncWhy seven other submodules moved
task syncbumps all pins per policy B, andverify-pins.shcompares all of themacross 347 submodules. The umbrella was simply behind on these seven, and a partial sync
would leave
verifyred — so this is the every-other-repo rule doing its job rather thanscope creep. The alternative (hand-pinning only
charly+distro-omarchy) is exactly thehand-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 --recursiveis required after the sync. Without itcharly reports a dirty working tree — its own
box/cachyosgitlink moved — andverifyfails at
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:6 distro pins equal charly's gitlinksis the Policy B assertion this PR exists to satisfy;it read 5 before
distro-omarchywas registered.347 submodules, policy B holdsis thewhole-tree check.
The gate was not green on the way here, and both failures were real rather than
environmental:
FAIL: charly has no gitlink at box/omarchy— the umbrella'scharlypin predatedchore(pins): sync the umbrella gitlinks to their current tags #476. Fixed by
task sync, not by hand-pinning.FAIL: charly: dirty working tree— charly's inner submodules were stale after thatbump. Fixed by the recursive update above.
The gitlink equality was also confirmed directly before running the gate:
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.shrequires all 347 submoduleschecked out, so a shallow clone cannot run it — the first attempt failed with a misleading
charly: dirty working treebecause the uninitialised submodule made the script'scdfall through to the umbrella root.
Rulebook compliance
/charly-internals:git-workflow— the pinning/gitlink policy andthe
task sync+task verifypair.missing charly gitlink, charly's stale inner submodules, and the shallow-clone
misdiagnosis above.
.gitmodules,policy-b.shand the gitlink landtogether — registering in one and not the others leaves the gate red.
is what Policy B means by "equal".
task sync.N/A — purely additive registration.developer checkout's in-flight branch was untouched. Feature branch, PR-only, no
force-push, no direct push to
main, no hook bypass.task verifyoutput pasted above, from the finalcommitted tree. A green
git statuswould prove nothing here.N/A — no build artifact.N/A — no binary; the gate is shell + node scripts from this tree.N/A — the umbrella has no bed; task verify IS its gate, and it ran on a freshly cloned tree.N/A — gitlink registration; no candy, no schema, no roster.Change classification
task verify(exit 0) on the final tree.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)