omega-packages
aien-dev/omega-packages
Brought by drakestapleton
omega-packages / README.md
| 1 | # omega-packages |
| 2 | |
| 3 | Install `omc`, the Omega compiler, the way you already install software: Nix, Guix, Arch Linux ARM, |
| 4 | Debian/Ubuntu `.deb`, a container image, or Homebrew. Every one of these recipes builds the same thing |
| 5 | the same way. It starts from **seed0, a 408-byte hand-written AArch64 Linux program**, climbs four seed |
| 6 | rungs (hex1 776 B, asm2 2,464 B, om4 14,224 B) to a 325,524-byte compiler, lets `omc` rebuild itself |
| 7 | until two generations are byte-identical, and then refuses the result unless its sha256 is exactly |
| 8 | |
| 9 | ``` |
| 10 | 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f omc (325524 bytes) |
| 11 | ``` |
| 12 | |
| 13 | No C compiler, assembler or linker writes a byte of that chain. The build needs only `sh`, `printf`, |
| 14 | `cat`, `stat`, `sed`, `sha256sum` and `cmp`; the container recipe does it with BusyBox alone. If you care |
| 15 | about trusting your toolchain, I think that is worth five minutes of your time. |
| 16 | |
| 17 | **What this does and does not show.** The 408 bytes are a binary written as 7,903 bytes of commented hex |
| 18 | text and turned into bytes by a 1,048-byte POSIX shell script (`load0.sh`); the shell's `printf` is the |
| 19 | one outside tool. Each recipe here is a fixed-output reproducibility match along one build path from a |
| 20 | pinned commit: it is not diverse double compilation, and it does not prove `omc` correct. |
| 21 | |
| 22 | **Platform.** `omc` runs on and emits code for **AArch64 (arm64) Linux only**, and every recipe here is |
| 23 | arm64 Linux only. On x86_64 the only route is `qemu-aarch64` user emulation, which I have not exercised |
| 24 | in this repo. The version is `0.0.0+git.e5b32567` because omega-mv has not tagged a release yet; it |
| 25 | means "the compiler at omega-mv commit `e5b32567`". |
| 26 | |
| 27 | ## Install |
| 28 | |
| 29 | Latest release: <https://github.com/aien-dev/omega-packages/releases/tag/v0.0.0-git.e5b32567> |
| 30 | |
| 31 | **Debian / Ubuntu (arm64)** |
| 32 | |
| 33 | ```sh |
| 34 | v=0.0.0-git.e5b32567; u=https://github.com/aien-dev/omega-packages/releases/download/v$v |
| 35 | curl -fsSLO "$u/omc_0.0.0+git.e5b32567-1_arm64.deb" -O "$u/SHA256SUMS" |
| 36 | sha256sum -c --ignore-missing SHA256SUMS |
| 37 | sudo dpkg -i omc_0.0.0+git.e5b32567-1_arm64.deb |
| 38 | ``` |
| 39 | |
| 40 | **Container (linux/arm64)** — the image is `FROM scratch` with one file, `/omc`: |
| 41 | |
| 42 | ```sh |
| 43 | docker run --rm -i ghcr.io/aien-dev/omc:0.0.0-git.e5b32567 < hello.om > hello && chmod +x hello && ./hello |
| 44 | ``` |
| 45 | |
| 46 | **Nix (aarch64-linux, flakes)** |
| 47 | |
| 48 | ```sh |
| 49 | nix run github:aien-dev/omega-packages < hello.om > hello && chmod +x hello && ./hello |
| 50 | nix build github:aien-dev/omega-packages#omc |
| 51 | ``` |
| 52 | |
| 53 | **Guix (aarch64-linux)** — from a clone, or add the channel: |
| 54 | |
| 55 | ```sh |
| 56 | git clone https://github.com/aien-dev/omega-packages && cd omega-packages |
| 57 | guix build -L guix omc |
| 58 | ``` |
| 59 | |
| 60 | ```scheme |
| 61 | ;; ~/.config/guix/channels.scm |
| 62 | (cons (channel (name 'aien) (url "https://github.com/aien-dev/omega-packages") (branch "main")) |
| 63 | %default-channels) |
| 64 | ``` |
| 65 | |
| 66 | **Arch Linux ARM** — `aur/PKGBUILD`. It is not on the AUR, and I am not submitting it there: the |
| 67 | [AUR submission guidelines](https://wiki.archlinux.org/title/AUR_submission_guidelines) do not allow |
| 68 | packages that lack x86_64 support, and `omc` is AArch64 only. Build it from this repo instead: |
| 69 | |
| 70 | ```sh |
| 71 | git clone https://github.com/aien-dev/omega-packages && cd omega-packages/aur && makepkg -si |
| 72 | ``` |
| 73 | |
| 74 | **Homebrew on Linux arm64** — [aien-dev/homebrew-omega](https://github.com/aien-dev/homebrew-omega): |
| 75 | |
| 76 | ```sh |
| 77 | brew install --build-from-source aien-dev/omega/omc |
| 78 | ``` |
| 79 | |
| 80 | **Try it** with [`examples/hello.om`](examples/hello.om), which sums 1..10 and prints `omega 55`: |
| 81 | |
| 82 | ```sh |
| 83 | omc < hello.om > hello && chmod +x hello && ./hello |
| 84 | ``` |
| 85 | |
| 86 | ## Checking what you got |
| 87 | |
| 88 | Every release file and the container image carry a GitHub artifact attestation (SLSA build |
| 89 | provenance), and the bare binary carries an SPDX SBOM listing the source archive and each seed input |
| 90 | with its sha256: |
| 91 | |
| 92 | ```sh |
| 93 | gh attestation verify omc-linux-arm64 --repo aien-dev/omega-packages |
| 94 | gh attestation verify oci://ghcr.io/aien-dev/omc:0.0.0-git.e5b32567 --repo aien-dev/omega-packages |
| 95 | ``` |
| 96 | |
| 97 | Better still, rebuild it yourself and compare: `sh scripts/omc-from-seed.sh build` on any arm64 Linux |
| 98 | box prints `PASS omc 2c8248…029f` or refuses. |
| 99 | |
| 100 | ## How the recipes are checked |
| 101 | |
| 102 | [`recipes`](.github/workflows/ci.yml) runs on GitHub's `ubuntu-24.04-arm` runners on every push: the |
| 103 | seed build plus `.deb` install, `nix build`/`nix run`, `guix build`, `makepkg` inside Arch Linux ARM, |
| 104 | and the container build. Each recipe also has a negative control that must fail: a tampered seed byte, |
| 105 | a wrong expected hash, a changed source archive, a drifted pin. A dispatch with |
| 106 | `control=tampered-seed` makes the main build job go red on purpose. |
| 107 | |
| 108 | | file | what it is | |
| 109 | | --- | --- | |
| 110 | | `pins.env` | omega-mv commit, source-archive sha256, omc sha256, version | |
| 111 | | `scripts/omc-from-seed.sh` | fetch + check archive, run `seed/omega-from-seed.sh`, check omc | |
| 112 | | `scripts/check-pins.sh` | every recipe carries the pins in `pins.env` | |
| 113 | | `scripts/sbom.sh` | SPDX 2.3 SBOM on stdout | |
| 114 | | `debian/` | `.deb` assembly (`dpkg-deb`) | |
| 115 | | `flake.nix` | `packages.aarch64-linux.omc`, `apps.aarch64-linux.omc` | |
| 116 | | `.guix-channel`, `guix/aien/omega.scm` | Guix channel with package `omc` | |
| 117 | | `aur/` | `PKGBUILD` and `.SRCINFO` | |
| 118 | | `docker/Dockerfile` | `ghcr.io/aien-dev/omc` | |
| 119 | |
| 120 | ## Connected repos |
| 121 | |
| 122 | - Parent: [aien-dev/omega-mv](https://github.com/aien-dev/omega-mv), pinned at `e5b32567a7aff3ce594e3254a622a846a6cd190b` (the language, the compiler and the seed chain live there). |
| 123 | - [aien-dev/homebrew-omega](https://github.com/aien-dev/homebrew-omega): the Homebrew tap. |
| 124 | - [aien-dev/omega-seed-challenge](https://github.com/aien-dev/omega-seed-challenge): rebuild the chain yourself and check every rung's hash. |
| 125 | |
| 126 | ## Foreign dependencies |
| 127 | |
| 128 | These are packaging glue, not part of Omega. None of them writes a byte of `omc`. |
| 129 | |
| 130 | | dependency | version | what it does here | |
| 131 | | --- | --- | --- | |
| 132 | | POSIX sh, printf, cat, stat, sed, sha256sum, cmp | host's (GNU coreutils / BusyBox 1.37.0) | run the seed chain; check hashes | |
| 133 | | curl, tar, gzip | host's | fetch and unpack the pinned source archive | |
| 134 | | dpkg-deb | Ubuntu 24.04's | assemble the `.deb` | |
| 135 | | Nix + nixpkgs | nixpkgs `3ec63636` (flake.lock) | `stdenvNoCC` shell environment for the flake | |
| 136 | | GNU Guix | 1.4.0 (Ubuntu 24.04 package, in CI) | `gnu-build-system` shell environment | |
| 137 | | makepkg / pacman | Arch Linux ARM (`menci/archlinuxarm`, in CI) | Arch package build | |
| 138 | | BusyBox | `busybox:1.37.0-musl` (digest-pinned) | the container's build stage | |
| 139 | | spdx-tools | 0.8.3 (CI) | validates the SBOM | |
| 140 | | GitHub Actions: checkout, upload/download-artifact, attest-build-provenance, attest-sbom, docker/*, cachix/install-nix-action | tags in the workflows | CI and release | |
| 141 | |
| 142 | The Omega replacement for the glue that matters (fetch, unpack, hash) is Omega's own toolchain growing |
| 143 | those words; the hash checks stay as outside oracles on purpose, since a checker built by the chain it |
| 144 | checks would be circular. |
| 145 | |
| 146 | ## License |
| 147 | |
| 148 | Apache-2.0 WITH LLVM-exception (see `LICENSE`). omega-mv itself is Apache-2.0. |
| 149 | |
| 150 | ## Human-Directed Agentic Engineering |
| 151 | |
| 152 | Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, |
| 153 | constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose |
| 154 | failures, and revise within those boundaries. Human review retains responsibility for claims, |
| 155 | acceptance, and release decisions. Package verification and release gates remain unchanged. |
| 156 | |
| 157 | For the documented method and a systems-software case study, see Gregory M. Kurtzer, |
| 158 | [*Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic |
| 159 | Engineering* (2026)](https://doi.org/10.5281/zenodo.23682548). |