Repository navigation
feat(distro): the omarchy build vocabulary, and register distro-omarchy - #476
Conversation
spec/schema/distro_vocab.cue gained an `omarchy` #DistroID in spec#70,
but charly had no `kind: distro` entity for it. That gap is SILENT:
buildVmSyntheticBox leaves img.Pkg empty and compiles zero package steps
while reporting success, so an omarchy VM would build an empty rootfs and
say nothing.
The entity inherits arch with inherit_packages, which is what makes the
tag chain work: `distro: [omarchy]` expands to [omarchy, arch], so all 99
existing `distro: arch:` candy sections apply unchanged and zero candies
need an `omarchy:` section — the same trick cachyos uses.
It adds exactly three things arch cannot express:
- Omarchy's package sources. Every package, including the ~125 from
core/extra/multilib, is served by Omarchy's own frozen Arch mirror
snapshot. Expressed through runtime_pacman_conf with explicit
Server = lines rather than through mirrorlist_url, because
mirrorlist_url and keyring_init_cmd are BOTH dead fields: verified
zero Go consumers of MirrorlistURL or KeyringInitCmd anywhere in the
umbrella outside generated types, tests and the docs mirror. Using
them would look like configuration and do nothing.
- A limine boot chain, replacing arch's grub one wholesale. Every value
was read off a real ISO-installed Omarchy 4.0.1 guest: ESP at /boot
(not /boot/efi), root=PARTUUID= (not UUID=), rootflags=subvol=@.
- The disk layout, via the disk_layout block spec#72 added and
plugin-vm#7 wired: @/@home/@log/@pkg with the ESP at /boot.
Also registers distro-omarchy as the box/omarchy submodule and imports it
at v2026.242.0551, so `omarchy.omarchy` resolves like the other distros.
DownloadUser = alpm is deliberately absent from runtime_pacman_conf even
though upstream sets it: charly mounts /var/cache/pacman/pkg as a
root-owned build cache the alpm user cannot write to, and the whole
transaction dies with "failed to synchronize all databases".
Bumps spec to v0.2026242.753 and plugin-distro to v0.2026242.804, the
tags carrying #Distro.disk_layout and its #DistroInput mirror.
Claude-Session: https://claude.ai/code/session_01YKF2VLqeHHbrBDz8XftaD3
Review — BLOCKHead SHA: Change class: new distro build-vocabulary entity ( Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Change class: new Security screen: PASS — no secrets/exfiltration, no scope mismatch (body accounts for all 6 files), no weakened guardrails, submodule URL and dependency bumps point to legitimate Checklist: All applicable rules PASS or NA. Prior
Verified from the current diff/body: A1 body complete with per-file accounting, pasted Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Change class: new Security screen: PASS — no secrets/exfiltration, no scope mismatch (body accounts for all 6 files), no weakened guardrails, submodule URL and dependency bumps point to legitimate Checklist: All applicable rules PASS or NA. Prior comments re-derived against CURRENT state:
Verified from current diff/body: A1 body complete with per-file accounting, pasted Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets/exfiltration, no scope mismatch (body accounts for all 6 files), no weakened guardrails, submodule URL and dependency bumps point to legitimate Checklist: All applicable rules PASS or NA. Prior comments re-derived against CURRENT state:
Verified from current diff/body: A1 body complete with per-file accounting, pasted Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
…51) 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 Co-authored-by: atrawog <[email protected]>
Summary
spec/schema/distro_vocab.cuegained anomarchy#DistroIDinspec#70, but charly had no
kind: distroentity for it — and that gap is silent.
buildVmSyntheticBoxleavesimg.Pkgempty andcompiles zero package steps while reporting success, so an omarchy VM would build an
empty rootfs and say nothing about it.
Every file in the diff
charly/charly.ymlomarchy:distro:entity — 201 linescharly.ymlimport:omarchy: '@github.com/opencharly/distro-omarchy:v2026.242.0551'.gitmodules+box/omarchydistro-omarchyregistered as thebox/omarchysubmodulecharly/go.mod/go.sumspec→v0.2026242.753,plugin-distro→v0.2026242.804The tag chain is the whole design
inherits: arch+inherit_packages: truemakesdistro: [omarchy]expand to[omarchy, arch], so all 99 existingdistro: arch:candy sections apply unchanged andzero candies need an
omarchy:section. Same trickcachyosuses.The entity adds exactly three things arch cannot express:
1. Omarchy's package sources. Every package — including the ~125 from
core/extra/multilib— is served by Omarchy's own frozen Arch mirror snapshot, never ageneric Arch mirror. Building against upstream Arch would silently produce a guest with a
different kernel, and a different everything-else, than Omarchy ships.
This is expressed through
runtime_pacman_confwith explicitServer =lines rather thanthrough
mirrorlist_url, becausemirrorlist_urlandkeyring_init_cmdare both deadfields:
Both return nothing across the whole umbrella.
cachyosauthors both today and neitherdoes anything. Using them here would look like configuration and be inert.
2. A limine boot chain, replacing arch's grub one wholesale (
bootloader:overridesrather than merges). Every value was read off a real ISO-installed Omarchy 4.0.1 guest,
not from docs: ESP at
/boot(not/boot/efi),root=PARTUUID=(notroot=UUID=),rootflags=subvol=@.3. The disk layout, via the
disk_layoutblockspec#72 added and
plugin-vm#7 wired.
One upstream setting deliberately NOT copied
Upstream's
pacman.confsetsDownloadUser = alpm. It is a real privilege drop on anormal install and it breaks the build here: charly mounts
/var/cache/pacman/pkgas aroot-owned cache the
alpmuser cannot write to, and the transaction dies withfailed to synchronize all databases (failed to retrieve some files). Match upstream'sintent; verify each setting against the build context.
How tested
The entity validates and resolves — and getting there found a real bug in another repo.
The first attempt did not pass:
plugin-distrovalidates an authoreddistro:body against its own self-contained#DistroInput, which had drifted behind spec's#Distro— missing not onlydisk_layoutbut
installerfrom spec#71, which had been silently rejected since that landed. Fixed inplugin-distro#4 with a parity guard,
and this PR pins the tag carrying it.
Validation alone would only prove the YAML parses, so the box was generated:
That proves the whole chain: the
import:resolvesdistro-omarchy, the box composeslayer-omarchy-base's four members across a repo boundary, and the emitted Containerfilecarries Omarchy's mirror and its NoExtract rules.
The image this entity describes is already proven end to end:
check-omarchy-base-podpassed the full 13-step R10 sequence on a
disposable: truebed, with 19/19 baked checks,in
layer-omarchy-base. The bootstrap-VM half is proven at the emitter in plugin-vm#6/#7,where the generated disk script ran live against a real partitioned disk producing exactly
this entity's
@/@home/@log/@pkglayout with the ESP at/boot.Rulebook compliance
/charly-internals:git-workflow; thecachyosentity was read asthe model before a sixth distro was written.
#DistroInput.disk_layout: field not allowedrejection was root-caused to plugin schema drift and fixed there, whichturned up a second, older instance (
installer) nobody had reported. (b)mirrorlist_url/keyring_init_cmdlooked like the natural home for the mirror and thekey; grepping for consumers before using them showed both are dead, so neither is used
and the comment records why.
land together —
omarchy.omarchyresolves as of this commit.inherits: archmeans the pac/aur formats, container bootstrapand
local_pkgare inherited verbatim; only the three genuinely-different things arerestated.
box/omarchyisa real submodule at a merged tag.
N/A — a new entity; nothing is removed or renamed.The dead
mirrorlist_url/keyring_init_cmdfields are routed, not parked: filed asthe named batch charly#477
(
dead-distro-fields), which carries the grep evidence, the twocachyosvalues thatmust migrate with them, and the
#SchemaVersion+remove_keyshape the removal needs.This PR advances that exit by establishing the evidence and by refusing to add a third
authored use.
main, PR-only,no force-push, no direct push to
main, no hook bypass.box generateemits a real Containerfile andits contents are inspected;
box validatealone would prove only that YAML parses.actual
.build/output../bin/charly, built bytask build:binaryfrom this worktree after the dependency bumps.check-omarchy-base-pod(13/13,
disposable: true, destroy+rebuild) inlayer-omarchy-base. The VM side needsthe
distro-omarchyVM entities this entity unblocks, and the bed for it(
check-omarchy-vm) is named rather than used to defer.it — the PARTUUID form, the ESP path, the dropped
DownloadUser, the dead fields.measured on a real installed guest; the emitter that consumes them ran live.
second (plugin-distro#4), the consumer third (plugin-vm#7), and this entity last.
N/A — no roster.Change classification
Change class: new distro build-vocabulary entity + submodule registration + two
dependency bumps. No Go.
Verification gate:
charly box validate(exit 0),charly box generate omarchy.omarchywith the emitted Containerfile inspected,go build,go test -count=1.Attribution tier: analysed on a live system. Stated precisely, because the
entity has two halves and only one of them has run:
pacstrap.extra_repo,runtime_pacman_conf, the tag chain)check-omarchy-base-pod13/13 on adisposable: truebed, 19/19 baked checks, andbox generateemits a Containerfile carrying the Omarchy mirrorbootloader.install_template,fstab_template,initramfs_template)An earlier revision of this body claimed
fully tested and validated; that was anover-claim on the VM half and is corrected here rather than argued. The bed that closes
it is
check-omarchy-vmindistro-omarchy, which needs the VM entities this entityunblocks — it is the next unit of the cutover, not an open-ended deferral.
Assisted-by: Claude Code claude-opus-5[1m] (analysed on a live system)