omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / seed / build / README.md
| 1 | # Pure Seeded-Omega Build, Release, and Automation Coordinators (`seed/build/`) |
| 2 | |
| 3 | Every build, release, and delivery coordinator in this directory is pure seeded OM-2 compiled by `seed/out/omc` into a static AArch64 Linux ELF (`ldd: not a dynamic executable`), using dynamic run-time pools (`global ... *` + `enlarge`) and streaming 64 KiB FIPS 180-4 SHA-256 with zero shell, zero Python, and zero libc on the delivery path. |
| 4 | |
| 5 | ## Coordinators |
| 6 | |
| 7 | | File | Binary | Replaces | Role | |
| 8 | |---|---|---|---| |
| 9 | | `common.om` | *(shared OM-2 lib)* | — | Dynamic byte pools, streaming SHA-256, file/dir I/O, atomic rename, `envread`, `execprog`/`execenv` spawner | |
| 10 | | `birth.om` | `om-birth` | `seed/omega-from-seed.sh`, `seed/rung4/mk4.sh`, `seed/omc/tests/size-record.py` | Full compiler birth `seed0 -> hex1 -> asm2 -> om4 -> omc` 3-stage fixpoint, `diaggen` source identity, all 8 `size-record` cases, and all 4 names-pass probes (`--verify` for non-mutating check) | |
| 11 | | `units.om` | `om-units` | `om/units.sh` | Byte-for-byte regeneration and `--check` of `src/omega_om_units.{c,ident,fs.c}` and `src/omega_{native,api_decl}.h` | |
| 12 | | `tlsbuild.om` | `om-tlsbuild` | `om/tls/build.sh` | Composes the 15 `om/tls/` units with a program, compiles with `omc`, and stamps the FIPS FKIH HMAC-SHA-256 slot (`-p` for stamp-only) | |
| 13 | | `sparkefi.om` | `om-sparkefi` | `aienux/spark/build_spark_efi.sh` (including both inline Python 3 scripts) | Word-boundary namespacing, 6-slice `target a64efi` composition, `PLAT` safety guards, and PE32+ header + SHA-256 verification | |
| 14 | | `gpucoord.om` | `om-gpucoord` | `gpu/spirv/{omega-run,check}.sh`, `gpu/intel/gate.sh`, `om/gpu/{spec,dsv41,inkling2,q36}/build.sh` | SPIR-V `emit`/`val`/`run`/`conform` runner & check suite, Intel Xe gate, and SM121 model package builders (`build-spec`, `build-dsv41`, `build-inkling2`, `build-q36`) | |
| 15 | | `release.om` | `om-release` | `Makefile` lock checks, `tools/uxl/{windows_paths,run_all}.py`, `uxl-run.sh` (AArch64 Linux), layer/release orchestration | `check-locks` (omc pin + `*.lock` 40-hex + `.env` scan), `check-paths` (Windows path & case-collision check), `layers` (all 8 SI `units-gate.om`), `uxl` (host + 65-file Level 1 + SPIR-V + Xe), `package OUTDIR VERSION`, `verify OUTDIR` | |
| 16 | | `phase0.om` | `om-phase0` | — | Helix Phase 0 Baseline & Determinism Floor Exit Gate: 2× `omc` self-regeneration (`c(sA, A) == A`), 4-rung birth, `om-build-gate`, 78-theorem `uor-gpu` Lean 4 proof check, `uor-gpu-gate`, pure-OM-2 `q36`/`inkling2`/`dsv41` builds + host gates, and live GB10 silicon checks with `nvrm_errors_delta = 0` (`--host-only` for non-GPU hosts) | |
| 17 | | `gate.om` | `om-build-gate` | — | Self-qualification gate (`OMEGA-BUILD-COORD`): 2× deterministic builds of all 7 coordinators, end-to-end positive checks, and 6 planted negative controls | |
| 18 | |
| 19 | ## Direct Pure-Omega Invocation (No `make`, No `sh`, No Python) |
| 20 | |
| 21 | On AArch64 Linux from the repository root: |
| 22 | |
| 23 | ```sh |
| 24 | # Build and run the self-qualification gate (compiles & tests all 6 coordinators + negative controls): |
| 25 | cat seed/build/common.om seed/build/gate.om | seed/out/omc > build/om-build-gate |
| 26 | chmod +x build/om-build-gate |
| 27 | ./build/om-build-gate build/om-build-gate-work |
| 28 | |
| 29 | # Build the top-level release/delivery coordinator once, then package the full pure-Omega toolchain: |
| 30 | cat seed/build/common.om seed/build/release.om | seed/out/omc > build/om-release |
| 31 | chmod +x build/om-release |
| 32 | ./build/om-release check-locks |
| 33 | ./build/om-release check-paths |
| 34 | ./build/om-release uxl build/uxl-work |
| 35 | ./build/om-release package build/release-1.0 1.0.0 |
| 36 | ./build/om-release verify build/release-1.0 |
| 37 | ``` |
| 38 | |
| 39 | Once packaged into `OUTDIR/bin/`, every coordinator binary (`omc`, `om-birth`, `om-units`, `om-tlsbuild`, `om-sparkefi`, `om-gpucoord`, `om-release`) runs directly with zero shell or Python dependencies. |
| 40 | |
| 41 | Legacy `.sh` scripts (`seed/omega-from-seed.sh`, `om/units.sh`, `om/tls/build.sh`, `aienux/spark/build_spark_efi.sh`, `gpu/spirv/{omega-run,check}.sh`, `gpu/intel/gate.sh`, `om/gpu/{spec,dsv41,inkling2,q36}/build.sh`, `uxl-run.sh`) and `mk/omega-from-seed.mk` now act as thin compatibility shims that compile and `exec` these pure-Omega coordinators directly on AArch64 Linux, keeping existing callers (including `BLOCKED_OPERATOR` `tests/gates/run.sh`) working unchanged. |