interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / AGENTS.md

92 lines · 8820 bytes Raw Blame History Rendered
1# OMEGA (a systems language and compute platform being implemented in handwritten, seeded `.om`)
2
3> Omega aims at one inspectable path from a small seed through compiler, runtime and applications to machine execution. The seeded `.om` compiler, `seed/out/omc`, is rebuilt from a 408-byte hand-written loader (`seed0 -> hex1 -> asm2 -> om4 -> omc`). The default branch still holds substantial C (`src/`, the legacy OSC compiler, the reaction runtime, GB10 numerics) that is unfinished migration, not the final language. Research-grade; an Alpha plan or an open PR is not a qualified release.
4
5Shared rules: read https://www.aienos.com/agents/RULES.md first. This file adds what is specific to this repository; where the two differ, this file wins here.
6
7## Scope
8
9- Applies to the whole repository.
10- `seed/`: the seeded compiler chain (rungs 0 to 4, `seed/omc/omc.om`, host checks in `seed/host/`). The language is specified in `docs/one_layer/OMEGESE.md`.
11- `gpu/`, `aienux/`, `apps/`, `bridge/`, `core/`, `protocol/`, `si/`, `train/`: pure-Omega Sovereign Intelligence layers built by `seed/out/omc`, each with its `README.md`, `UNITS.md`, `units.tsv` and `units-gate.om` (master ledger: `si/STACK.tsv`).
12- `om/`: Omega implementations behind C entry points (`om/sha256`, `om/blake3`), bound into the C build through the generated `src/omega_om_units.inc`.
13- `src/`: existing core and the C compiler awaiting replacement (`src/compiler/`), the reaction runtime (`src/runtime/`), the host-only fabric interface (`src/fabric/`), the Physics Zero apparatus (`src/physics0/`).
14- `spec/`, `docs/`: specifications. `tests/`: gate suites; `tests/gates/*.gate` are the manifests the DGX Spark judge runs. `tools/`: harnesses (including `tools/trit/`, `tools/codebook/`, `tools/uxl/`, invoked via `./uxl-run.sh` or `.\uxl-run.ps1`). `mk/`: make fragments included by the `Makefile`.
15- `bench/prime_race/`, `calibration/`, `research/`, `doctrine/`: benchmark, Turing calibration, experiments, the Milestone 4 doctrine.
16- `evidence/`: content-addressed receipts, additions only.
17- `docs/migration/C-TO-OM-INVENTORY.md` lists the C that remains to be replaced.
18
19## Installation
20
21Needs an AArch64 Linux host with `gcc`, `make` and `sh`. CI runs host suites on `ubuntu-24.04-arm`, and `test-realize` compiles with `-march=armv8.6-a+dotprod+i8mm+sve`.
22
23Get a copy with its history from the project page, https://interplane.io/drakestapleton/omega-mv, then in that folder:
24
25```bash
26sh seed/omega-from-seed.sh # or: make omega-from-seed
27```
28
29`omega-from-seed.sh` grows the compiler from `seed/rung0/seed0.hex` (the one outside step is `seed/rung0/load0.sh`, POSIX `printf`), has omc rebuild itself twice to identical bytes, and leaves it at `seed/out/omc` with its sha256 beside it. No C is on that path.
30
31Some gates expect sibling checkouts next to this one: `../physics` (physics-mv) and `../aienos` for the pinned FORGE and kernel sources, `../omega-bridge` for `om-units`, `../aien-train` for `orig4-shadow`. A step whose sibling is missing exits 3 with a message.
32
33## Configuration
34
35- `physics.lock`, `aienos.lock`, `argus.lock`: commits of the sibling sources the full build and some gates pin. `om/omega-bridge.lock`: the omega-bridge commit whose `src/native.om` generates `src/omega_om_units.inc`.
36- `PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0` on `make` builds the host suites without a physics checkout.
37- `OUT_DIR`: per-step build directory; `tests/gates/run.sh` sets it to `build/step-<name>`.
38- `.aien/always` lists the gates every commit must pass (`OMEGA-EVIDENCE-IMMUTABLE`, `OMEGA-ZERO-DISK-SECRETS`); `.aien/verify.pub` is the Spark judge's public key.
39- `AIEN_OMEGA_FP8_GROUPED_WAVE=1` and `AIEN_OMEGA_FP8_GROUPED_CTAS=n` change the GB10 FP8 grouped expert launch (off by default; see `ENGINEERING-NOTES.md`).
40
41## Usage
42
43`tests/gates/run.sh <step>` is the one entry point for the local gates; each step runs the same command as the gate manifest that names it.
44
45Host-only (no GPU):
46
47```bash
48sh seed/omega-from-seed.sh # seeded omc, self-rebuild fixpoint
49tests/gates/run.sh seed # OMEGA-SEED: fixpoint, seed/host/check.sh, IR comparison against the C oracles
50tests/gates/run.sh om-units # Omega units: binding regenerated byte for byte, SHA-256/BLAKE3 parity, mutants (needs ../omega-bridge)
51make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-compiler-quick # legacy C compiler, quick suite
52make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-numeric-cpu # E1 CPU numerics
53make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-realize
54tests/gates/run.sh zero-disk-secrets # no plaintext .env files
55```
56
57The `make test-*` targets are C/legacy compatibility checks, not commands for the seeded compiler; do not mix compiler binaries or relabel old receipts. The full omegatool build (`make`) links the physics repository at the commit in `physics.lock`.
58
59Gates whose manifest lists `gb10` under `requires:` (for example the `*-silicon` gates) need the GB10 on the DGX Spark. Run them only there, one at a time, inside an authorized GPU window, and never kill one mid-run. Gates that list `bare_metal` or `operator` are not for a plain host checkout; leave them to the Spark judge or an operator.
60
61## Conventions
62
63- Language rule: `.om` is the only forward first-party implementation language. Implement and qualify each replacement, switch its consumers, then remove the superseded C/Rust/shell. Do not rename C to `.om`, label handwritten C as generated or vendored, or otherwise game the language statistics.
64- Verdict words: PASS, FAIL, NOT_RUN, BLOCKED_HARDWARE, BLOCKED_OPERATOR, MISSING_IMPLEMENTATION. Host and emulator passes are never reported as hardware qualification; GB10 results are tied to the exact commit in each receipt.
65- Receipts are content-addressed (`<name>.<sha256>.json`), name the exact commit and refuse a dirty tree. A rerun adds a file; it never replaces one.
66- Some older milestone gate scripts rewrite their receipts in place. Do not run them on a clean checkout you mean to keep; prefer the `make test-*` targets and `tests/gates/run.sh`.
67- No systemd. Offline, in-house builds.
68- Crumbs are gone (removed 2026-11-08, Drake: "get rid of crumbs"), except two files already under `evidence/`, which stay because that tree is additions-only. `FOLDERS.md` keeps each folder's written purpose and rules as plain notes; if your change makes one wrong, fix it in the same change.
69- Credit work in `CONTRIBUTORS.md` in the same commit as the work.
70
71## Safety and approvals
72
73- Never modify, rename or delete an existing file under `evidence/`. `.github/workflows/evidence-immutable.yml` fails any pull request that does.
74- Never overwrite failed experiments or old receipts.
75- Preserve the native GPU work and its recorded OS and driver dependencies. Do not infer hardware or OS independence from removing a userspace library.
76- GB10 work happens only on the DGX Spark in an authorized window. Ask before running anything that opens the GPU.
77- A head that changes `.aien/`, `tests/gates/`, `.github/workflows/`, `.forgejo/` or `tools/aien-test/` is `BLOCKED_OPERATOR` and needs an operator run on the Spark. Ask before touching those paths.
78- GitHub workflows (`aien-verification.yml`, `om-units-arm64.yml`) are advisory; verifier source commits are pinned, but action tags and the stable Rust toolchain track upstream. This is not an immutable execution/toolchain claim. Alpha qualification happens on the Spark. External review is expected before merge. Open a pull request with the exact command you ran and its output.
79
80## Further reading
81
82- `README.md`: the plain front page. `ENGINEERING-NOTES.md`: current state, standing rules and the legacy build commands.
83- `seed/README.md`: the seed ladder rung by rung, and the seeded compiler's checks.
84- `docs/one_layer/OMEGESE.md`, `docs/one_layer/OM_COMPLETION.md`: the language and its completeness audit.
85- `docs/ROADMAP-1.0.md`: the Omega 1.0 readiness audit, milestones RM1..RM11 and their acceptance gates (live status stays with aien-architecture).
86- `docs/migration/C-TO-OM-INVENTORY.md`: remaining C to replace.
87- `docs/PIPELINE.md`: how a pull request is tested on the Spark.
88- `docs/UXL.md`: one-command UXL verification (`./uxl-run.sh`, `.\uxl-run.ps1`).
89- `docs/A64-EFI.md`, `docs/SPIRV.md`, `docs/baremetal/SPARK-LIVE-BOOT.md`: AArch64 UEFI backend, SPIR-V OpenCL kernel emitter, and bare-metal Spark boot runbook.
90- `si/STACK.tsv`: master ledger of Sovereign Intelligence pure-Omega layers in this repository.
91- `CONTRIBUTORS.md`: who built what.
92- The kernel Omega is meant to run on, Aienux: https://interplane.io/drakestapleton/aienux