Skip to content

feat(distro): the omarchy build vocabulary, and register distro-omarchy - #476

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/omarchy-distro-vocabulary
Aug 30, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/omarchy-distro-vocabulary

Conversation

@atrawog

@atrawog atrawog commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

spec/schema/distro_vocab.cue gained an omarchy #DistroID in
spec#70, but charly had no kind: distro
entity
for it — and 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 about it.

Every file in the diff

File What changed
charly/charly.yml the omarchy: distro: entity — 201 lines
charly.yml import: omarchy: '@github.com/opencharly/distro-omarchy:v2026.242.0551'
.gitmodules + box/omarchy distro-omarchy registered as the box/omarchy submodule
charly/go.mod / go.sum spec → v0.2026242.753, plugin-distro → v0.2026242.804

The tag chain is the whole design

inherits: arch + inherit_packages: true makes distro: [omarchy] expand to
[omarchy, arch], so all 99 existing distro: arch: candy sections apply unchanged and
zero candies need an omarchy: section. Same trick cachyos uses.

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 a
generic 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_conf with explicit Server = lines rather than
through mirrorlist_url, because mirrorlist_url and keyring_init_cmd are both dead
fields
:

$ grep -rn 'MirrorlistURL' --include='*.go' . | grep -v 'cue_types_gen|_test|/docs/'
$ grep -rn 'KeyringInitCmd' --include='*.go' . | grep -v 'cue_types_gen|_test|/docs/'

Both return nothing across the whole umbrella. cachyos authors both today and neither
does anything. Using them here would look like configuration and be inert.

2. A limine boot chain, replacing arch's grub one wholesale (bootloader: overrides
rather 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= (not root=UUID=),
rootflags=subvol=@.

3. The disk layout, via the disk_layout block
spec#72 added and
plugin-vm#7 wired.

One upstream setting deliberately NOT copied

Upstream's pacman.conf sets DownloadUser = alpm. It is a real privilege drop on a
normal install and it breaks the build here: charly mounts /var/cache/pacman/pkg as a
root-owned cache the alpm user cannot write to, and the transaction dies with
failed to synchronize all databases (failed to retrieve some files). Match upstream's
intent; verify each setting against the build context.

How tested

The entity validates and resolves — and getting there found a real bug in another repo.

$ ./bin/charly box validate
$ echo $?
0

The first attempt did not pass:

node "omarchy": plugin kind:distro: plugin_input fails #DistroInput:
#DistroInput.disk_layout: field not allowed

plugin-distro validates an authored distro: body against its own self-contained
#DistroInput, which had drifted behind spec's #Distro — missing not only disk_layout
but installer from spec#71, which had been silently rejected since that landed. Fixed in
plugin-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:

$ ./bin/charly box generate omarchy.omarchy
$ echo $?
0
$ grep -E 'FROM|stable-mirror|NoExtract' .build/omarchy.omarchy/Containerfile
FROM scratch AS omarchy-repo
FROM scratch AS omarchy-runtime
FROM scratch AS omarchy-skel
FROM scratch AS omarchy-base
FROM ${BASE_IMAGE}
  stable) mirror=stable-mirror.omarchy.org ;;
NoExtract = usr/share/libalpm/hooks/80-limine-efi-deploy.hook
NoExtract = usr/share/libalpm/hooks/10-limine-snapper-lock.hook

That proves the whole chain: the import: resolves distro-omarchy, the box composes
layer-omarchy-base's four members across a repo boundary, and the emitted Containerfile
carries Omarchy's mirror and its NoExtract rules.

$ go build ./... && go test -count=1 ./...

The image this entity describes is already proven end to end: check-omarchy-base-pod
passed the full 13-step R10 sequence on a disposable: true bed, 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/@pkg layout with the ESP at /boot.

Rulebook compliance

  • R0 — skills first. /charly-internals:git-workflow; the cachyos entity was read as
    the model before a sixth distro was written.
  • R1 — RCA every anomaly. Two surfaced. (a) The #DistroInput.disk_layout: field not allowed rejection was root-caused to plugin schema drift and fixed there, which
    turned up a second, older instance (installer) nobody had reported. (b)
    mirrorlist_url / keyring_init_cmd looked like the natural home for the mirror and the
    key; grepping for consumers before using them showed both are dead, so neither is used
    and the comment records why.
  • R2 — finish the whole cutover. Entity, import, submodule and both dependency bumps
    land together — omarchy.omarchy resolves as of this commit.
  • R3 — no duplication. inherits: arch means the pac/aur formats, container bootstrap
    and local_pkg are inherited verbatim; only the three genuinely-different things are
    restated.
  • R4 — no workarounds. No sleeps, no retries, no hand-pinned gitlink: box/omarchy is
    a real submodule at a merged tag.
  • R5 — delete legacy completely. N/A — a new entity; nothing is removed or renamed.
    The dead mirrorlist_url / keyring_init_cmd fields are routed, not parked: filed as
    the named batch charly#477
    (dead-distro-fields), which carries the grep evidence, the two cachyos values that
    must migrate with them, and the #SchemaVersion + remove_key shape the removal needs.
    This PR advances that exit by establishing the evidence and by refusing to add a third
    authored use.
  • R6 — preserve user work and Git safety. Feature branch off current main, PR-only,
    no force-push, no direct push to main, no hook bypass.
  • R7 — prove behavior, not compilation. box generate emits a real Containerfile and
    its contents are inspected; box validate alone would prove only that YAML parses.
  • R8 — preserve emitted artifacts. The generated Containerfile is quoted from the
    actual .build/ output.
  • R9 — binary equals source. All evidence from ./bin/charly, built by
    task build:binary from this worktree after the dependency bumps.
  • R10 — fresh disposable proof. The image side is proven by check-omarchy-base-pod
    (13/13, disposable: true, destroy+rebuild) in layer-omarchy-base. The VM side needs
    the distro-omarchy VM entities this entity unblocks, and the bed for it
    (check-omarchy-vm) is named rather than used to defer.
  • ADE — spec-is-the-test. Every non-obvious value carries the measurement that produced
    it — the PARTUUID form, the ESP path, the dropped DownloadUser, the dead fields.
  • RDD — prove high-risk assumptions before editing. The boot chain and disk layout were
    measured on a real installed guest; the emitter that consumes them ran live.
  • SDD — schema-driven design. The schema landed first (spec#72), its plugin mirror
    second (plugin-distro#4), the consumer third (plugin-vm#7), and this entity last.
  • Concurrency mandate. 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.omarchy with 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:

    Half Status
    the image path (pacstrap.extra_repo, runtime_pacman_conf, the tag chain) ran live — check-omarchy-base-pod 13/13 on a disposable: true bed, 19/19 baked checks, and box generate emits a Containerfile carrying the Omarchy mirror
    the VM path (bootloader.install_template, fstab_template, initramfs_template) has not executed. Its emitter is proven live in plugin-vm#6/chore: bump pkg/arch → #commit-pinned PKGBUILD #7 against a real partitioned disk, but these templates themselves have not run in a guest

    An earlier revision of this body claimed fully tested and validated; that was an
    over-claim on the VM half and is corrected here rather than argued. The bed that closes
    it is check-omarchy-vm in distro-omarchy, which needs the VM entities this entity
    unblocks — 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)

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
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: e8cd7b814708 (branch: feat/distro-omarchy)

Change class: new distro build-vocabulary entity (omarchy:) + submodule registration + two dependency bumps. No Go code in this repo.

Blocks

  1. A3 — attribution tier inflated. The body claims fully tested and validated, but the VM-side of the entity is not proven end-to-end. The NEW/CHANGED code paths include the bootloader:, disk_layout:, fstab_template:, and initramfs_template: blocks. The body proves the image side end-to-end (check-omarchy-base-pod, 13/13, disposable: true) and proves the disk script at the emitter in plugin-vm#6/chore: bump pkg/arch → #commit-pinned PKGBUILD #7, but the full omarchy VM build consuming this entity's bootloader/fstab/initramfs templates has not executed against the fresh rebuild. The body itself concedes this: "the bed for it (check-omarchy-vm) is named rather than used to defer." Per A3, a change whose changed branch never ran live is at most analysed on a live system. Downgrade the tier or run check-omarchy-vm end-to-end.

  2. B14(b)/R2 — parking phrase without a named batch. The body surfaces the dead mirrorlist_url / keyring_init_cmd fields and defers them: "removing them is a distro-wide cutover with its own blast radius, and the comment names them rather than quietly reusing them." This is a pre-existing framing with no named thematic batch cutover — "distro-wide cutover" is not a named task, and "the comment names them" is not an exit this PR advances. Per B14(b), a parking phrase is itself a finding unless it names an exit THIS PR advances. Route the dead-field removal to a NAMED batch/task, or fix it in-tree.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: e8cd7b814708 (branch: feat/distro-omarchy)

Change class: new omarchy: distro build-vocabulary entity (charly/charly.yml) + submodule registration (box/omarchy, .gitmodules) + import: registration (charly.yml) + two dependency bumps (go.mod/go.sum). No Go code in this repo.

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 opencharly/* repos, no embedded directives aimed at the reviewer.

Checklist: All applicable rules PASS or NA.

Prior github-actions[bot] comment considered and re-derived against CURRENT state:

  • A3 tier block — stale-superseded. The current body now claims analysed on a live system and explicitly corrects the earlier fully tested and validated over-claim ("An earlier revision of this body claimed fully tested and validated; that was an over-claim on the VM half and is corrected here rather than argued"). The tier is now the honest ceiling for a change whose VM half has not executed.
  • B14(b)/R2 parking block — stale-superseded. The current body now routes the dead mirrorlist_url/keyring_init_cmd fields to a NAMED batch — charly#477 (dead-distro-fields) — and states the exit this PR advances ("establishing the evidence and by refusing to add a third authored use"). No longer an unnamed deferral.

Verified from the current diff/body: A1 body complete with per-file accounting, pasted box validate/box generate output, and the *Assisted-by: Claude Code claude-opus-5[1m] (analysed on a live system)* footer; A2/A3 gate matches the honest analysed on a live system tier; R1 RCA on both surfaced anomalies (plugin schema drift → plugin-distro#4; dead fields → grep-verified, routed to named batch); R2/R5 dead fields routed to named batch; R3 inherits: arch avoids duplication; R4 no workarounds (real submodule); R6/R8/R9 integrity claims present; R10 image side proven live on disposable: true bed (check-omarchy-base-pod 13/13, 19/19 baked checks) with the VM gap honestly named (check-omarchy-vm) as the next cutover unit; RDD measured on a real installed guest; SDD schema-first ordering; B16 placement CORRECT (distro entity data, not core capability); B17 disposable-only; B18 N/A (no Go). go.mod/go.sum bumps internally consistent.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 30, 2026 08:32
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: e323abdd147a2d2560523af0a5a6e96eaf6e42fa (branch: feat/omarchy-distro-vocabulary)

Change class: new omarchy: distro build-vocabulary entity (charly/charly.yml) + submodule registration (box/omarchy, .gitmodules) + import: registration (charly.yml) + two dependency bumps (go.mod/go.sum). No Go code in this repo.

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 opencharly/* repos, no embedded directives aimed at the reviewer.

Checklist: All applicable rules PASS or NA.

Prior comments re-derived against CURRENT state:

  • A3 tier block (first comment) — stale-superseded. The current body now claims analysed on a live system and explicitly corrects the earlier fully tested and validated over-claim. The tier is the honest ceiling for a change whose VM half has not executed.
  • B14(b)/R2 parking block (first comment) — stale-superseded. The current body routes the dead mirrorlist_url/keyring_init_cmd fields to a NAMED batch — charly#477 (dead-distro-fields) — and states the exit this PR advances (establishing the grep evidence and refusing to add a third authored use). No longer an unnamed deferral.
  • Second comment (PASS) — verified-non-blocking. Its conclusions reproduce against the current diff/body.

Verified from current diff/body: A1 body complete with per-file accounting, pasted box validate/box generate output, and the *Assisted-by: Claude Code claude-opus-5[1m] (analysed on a live system)* footer; A2/A3 gate matches the honest analysed on a live system tier; R1 RCA on both surfaced anomalies (plugin schema drift → plugin-distro#4; dead fields → grep-verified, routed to named batch); R2/R5 dead fields routed to named batch; R3 inherits: arch avoids duplication; R4 no workarounds (real submodule at a merged tag); R6/R8/R9 integrity claims present; R10 image side proven live on disposable: true bed (check-omarchy-base-pod 13/13, 19/19 baked checks) with the VM gap honestly named (check-omarchy-vm) as the next cutover unit — a legitimate sequencing constraint since the VM entities in distro-omarchy depend on this entity; RDD measured on a real installed guest; SDD schema-first ordering; B16 placement CORRECT (distro entity data, not core capability); B17 disposable-only; B18 N/A (no Go). go.mod/go.sum bumps internally consistent.

Verdict: PASS


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: c8eacf01cac0cd06467e5e353ec555e2e417e937 (branch: feat/omarchy-distro-vocabulary)

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 opencharly/* repos, no embedded directives aimed at the reviewer.

Checklist: All applicable rules PASS or NA.

Prior comments re-derived against CURRENT state:

  • First comment (BLOCK, A3 tier + B14(b) parking) — stale-superseded. The current body now claims analysed on a live system and explicitly corrects the earlier fully tested and validated over-claim ("An earlier revision of this body claimed fully tested and validated; that was an over-claim on the VM half and is corrected here rather than argued"). The dead mirrorlist_url/keyring_init_cmd fields are now routed to a NAMED batch — charly#477 (dead-distro-fields) — with the exit this PR advances stated (establishing the grep evidence and refusing to add a third authored use). Both blocks resolved.
  • Second/third comments (PASS) — verified-non-blocking. Their conclusions reproduce against the current diff/body.

Verified from current diff/body: A1 body complete with per-file accounting, pasted box validate/box generate output, and the *Assisted-by: Claude Code claude-opus-5[1m] (analysed on a live system)* footer; A2/A3 gate matches the honest analysed on a live system tier (VM half not executed, honestly named); R1 RCA on both surfaced anomalies (plugin schema drift → plugin-distro#4; dead fields → grep-verified, routed to named batch); R2/R5 dead fields routed to named batch; R3 inherits: arch avoids duplication; R4 no workarounds (real submodule at a merged tag); R6/R8/R9 integrity claims present; R10 image side proven live on disposable: true bed (check-omarchy-base-pod 13/13, 19/19 baked checks) with the VM gap honestly named (check-omarchy-vm) as the next cutover unit — a legitimate sequencing constraint since the VM entities in distro-omarchy depend on this entity; RDD measured on a real installed guest; SDD schema-first ordering; B16 placement CORRECT (distro entity data, not core capability); B17 disposable-only; B18 N/A (no Go). go.mod/go.sum bumps internally consistent.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot merged commit b2a74ed into main Aug 30, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 30, 2026
github-actions Bot pushed a commit to opencharly/opencharly that referenced this pull request Aug 30, 2026
…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]>
@aitrawog
aitrawog deleted the feat/omarchy-distro-vocabulary branch September 25, 2026 19:05
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