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 / ENGINEERING-NOTES.md

111 lines · 25839 bytes Raw Blame History Source

Engineering notes

These sections were in README.md until 2026-11-14. They are moved here unchanged so the front page can stay short. They are detailed notes for people working on the code. Some of them describe earlier states of the project: links to GitHub and to pull requests are history (the project now lives on Interplane), and the GPU ownership note below is being replaced by the move described in gpu/README.md.

GPU stack owned by CUDA++ (aien-dev/CUDApp) (ARCH-0042: Omega owns computation, CUDApp owns GPU execution). CUDA++ is the single source of truth for the GB10 GPU stack: src/omega_gpu_*, src/omega_blackwell_*, src/omega_bw_*, src/omega_sm121_*, the GPU host tests (tests/gpu_*, tests/bw_*, tests/test_omega_gpu_*), mk/omega-gpu-*, mk/sm121dis.mk and tools/sm121dis/ (full list: .github/CODEOWNERS). Make new GPU changes there. The copies here stay in this repository; removing them needs a separate decision by Drake (ARCH-0042, decision 7). CUDA++'s drift gate (tools/extract/drift.sh) fails when one of these files changes here after the cutover baseline (e5b32567) without the same bytes in CUDA++. Building the server (aien-sovereign-core) from CUDA++ pinned in cudapp.lock is pending (aien-sovereign-core-mv#784).

Omega is a systems language and compute platform being implemented in handwritten, seeded .om. Its goal is one inspectable path from a small seed through compiler, runtime and applications to machine execution. Pure computation and authorized effects have distinct contracts; semantic identities identify declared computations, while validation and receipts record what was actually checked.

Migration is not finished. This repository's default branch still contains substantial C implementation and build/test tooling. The seeded .om compiler, its native host and device/mapping words, the OM-2 profile and the WebAssembly back end are on main; an existing C implementation is an outstanding replacement task, not the final language of Omega.

Why GitHub still shows C

GitHub's language bar measures recognized source bytes on the default branch; it is not the project's language specification or a migration-completion verdict. GitHub Linguist does not currently recognize Omega/.om, and the active C files here have not yet been replaced and removed. I do not label handwritten C as generated/vendor code, rename it to .om, or assign an unrelated language to change that statistic. See the inventory above for the actual remaining work. Native GitHub recognition requires support in Linguist.

SILICON -> ATLAS -> PHYSICS/FORGE -> OMEGA -> AIEN        (full picture: aien-architecture)

Omega was decided by Drake on 2026-09-29 to be both the reaction runtime and the compiler for Omega Systems Core (decision record, frozen). This retires the earlier "not a compiler" wording.

Current state

Research-grade, with a staged Alpha qualification programme in progress. An Alpha plan or an open PR is not a qualified release. Plainly:

The live status is owned by aien-architecture-mv: CURRENT_EXECUTION_PLAN.md and doctrine/ROADMAP.md. This file does not restate numbers that drift. Historical milestone receipts (for example Milestone 4, OMEGA_SEMANTICS, 12 of 12 gates) stay in evidence/ unchanged as history.

Core ideas

How this fits with the other repositories

Ownership rule (ARCH-0042, Accepted by Drake 2026-10-30, merged as aien-architecture-mv#342): Omega owns computation, CUDA++ owns GPU execution, Omega Bridge owns compatibility.

Not yet true on main: the GPU C under src/omega_blackwell_*, src/omega_gpu_* and src/omega_sm121_disasm.c is a diverged copy of CUDA++ code that is still developed here, and the driver client comes from physics-mv. Existing code stays where it is (Drake, 2026-10-27); new GPU-execution work goes to CUDA++ or a repository connected to it. The copies are recorded in CUDApp#106, CUDApp#107, CUDApp#108 and CUDApp#10. The bridge's own seed bootstrap and front end are #870 and #871.

aienux holds Aienux, the kernel of AienOS, which Omega is meant to run on. physics-mv provides FORGE machine realization and the GB10 native path (pinned in physics.lock). aien-architecture-mv owns status and sequencing. ARGUS-0/1 (a defensive plane) is implemented in aienux (native/argus, pinned by argus.lock); Omega only carries the opt-in RX_ARGUS hooks (src/runtime/rx_argus.c) and receipts in evidence/ARGUS/. Physics Zero exists here as a host benchmark apparatus and learner (src/physics0/, tests/physics0/, mk/physics0-learner.mk, docs/physics0/, receipts in evidence/physics0/), with its specifications in the physics repository. DIRAC-0 is a specification in aien-architecture-mv plus an oracle source in research/dirac-oracle/ that has never been built or run. The Evolution Arena is a plan only.

Child repositories pin an omega-mv commit and the sha256 of the omc it births: omega-gpu-driver is the GB10 GPU driver in seeded Omega (W0 bind/read/release over VFIO via vfioctl/vfiomap; exercised in QEMU, not hardware-qualified). hive-view is the hive dashboard on the Spark, an HTTP service in seeded Omega built on seed/net/http.om (pending its first merge on Radicle, rad:zimVqDToqH8NL2YvgM8fQBQrvgHa).

Standing rules

Language rule: .om is the only forward first-party implementation language. Implement and qualify each replacement, switch its actual consumers, then remove the superseded first-party source and obsolete build/runtime dependencies from the active tree. This includes compiler/runtime code, services, tools, automation and project-owned tests; C/Rust/shell remaining today are unfinished migration, not permanent exemptions. Preserve Git history and immutable evidence. External protocol formats, generated machine code, device firmware and independently sourced qualification oracles have separately declared roles; they must not conceal a foreign implementation of Omega. See the replacement/deletion contract.

Preserve the native GPU work and its explicitly recorded OS/driver dependencies; do not infer hardware or OS independence from removal of a userspace library. No systemd. Offline, in-house builds. Never overwrite failed experiments or old receipts. Verdict words: PASS, FAIL, NOT_RUN, BLOCKED_HARDWARE, BLOCKED_OPERATOR, MISSING_IMPLEMENTATION.

Build and verify the existing default-branch implementation

These are C/legacy compatibility checks, not commands for the seeded .om compiler. The seeded compiler is rebuilt and qualified with sh seed/omega-from-seed.sh and tests/gates/run.sh seed (see seed/README.md); do not mix compiler binaries or relabel old receipts.

Needs gcc and make on an AArch64 Linux host: CI runs the host suites on ubuntu-24.04-arm, and test-realize compiles with -march=armv8.6-a+dotprod+i8mm+sve. Host suites need no GPU and no physics checkout:

make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-compiler-quick   # compiler, quick suite
make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-numeric-cpu      # E1 CPU numerics
make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-realize

The full omegatool build (make) links the physics repository at the commit in physics.lock. Some older milestone gate scripts rewrite their receipts in place, so do not run them on a clean checkout you mean to keep; prefer the make test-* targets above. Some GPU suites build against physics but still open no device: make test-gpu-decode-graph checks the decode graph's glue kernels and, on a fake platform, that a failed or abandoned decode token always gives the GPU session lock back (shown on the fake only; the real-chip decode run is tools/run_gpu_decode_graph_chip.sh). Targets that touch the GB10 need the DGX Spark, run one at a time, and are never killed mid-run. The M19 clean-clone gate rebuilds the tree in a temporary directory and runs the milestone gates there; when that nested build or nested run fails, it now prints the tail of its own log to stderr, so a failure names its cause instead of reporting a bare FAIL. CI definitions in .github/workflows/ list the suites that run on every push.

make test-bw-hazard (host only, links libomega_gpu.a, so it needs the physics checkout like make) reads the encoded bytes of every GPU kernel the generators build and checks the scoreboard waits: a register written by a load must be waited on before it is read, and a register a queued load or store still reads must be waited on before it is overwritten (omega-mv#554). The simulators do not model these waits, so this is the host check that would have caught the omega-mv#545 chip fault. Known findings on older kernels are listed, with how each was confirmed, in tests/bw_hazard_test.c.

Host checks on the shared Spark judge, whose 1-minute load average is rarely below 2, keep every check they had and never turn load into a pass. tests/runtime/r11_own_hold_test.sh raises the R11 load limit for its own runs (R11_LOAD_LIMIT, which can only raise it) and judges the quiet-flag hold decision the program prints; the living run's speed checks are judged there only when the load average is at most 2. The speed checks (the action-graph 2x speedup in tests/runtime/rx_action_graph.c, workflow fusion) take their median over the repetitions the machine did not disturb (run-queue delay from schedstat, tests/runtime/rx_quiet_reps.h); when too few are undisturbed the check reports NOT_RUN with reason cpu_busy, and tests/gates/run.sh reads that refusal from the receipt, runs the rest of the step and ends it NOT_RUN. Omega's serve cost is the CPU time of the serving thread (cost_ns in src/runtime/rx_omega.c), not wall-clock time, and the R15 parity rig gives both sides a fixed cost table (r15_use_cost_model).

Repository layout

src/ existing core and C compiler awaiting replacement (src/compiler/), src/runtime/ reaction runtime, src/fabric/ host-only fabric interface, src/physics0/ Physics Zero apparatus, spec/ and docs/ specifications (including docs/UXL.md, docs/A64-EFI.md, docs/baremetal/SPARK-LIVE-BOOT.md, and docs/gpu/Q38_27B_GB10_STRESS_20261119.md), tests/ gate suites, evidence/ content-addressed receipts, tools/ harnesses (including tools/trit/, tools/codebook/, tools/uxl/), mk/ make fragments included by the Makefile. Also gpu/ (Omega GPU, the GPU layer of Sovereign Intelligence (SI), moving here from CUDApp as pure Omega; see gpu/README.md), the pure-Omega Sovereign Intelligence layers (aienux/, apps/, bridge/, core/, protocol/, si/, train/, indexed in si/STACK.tsv), bench/prime_race/ (Prime Drag Race implementation), calibration/ (Turing calibration experiments, preregistration and blinding protocol), research/ (experiments and prototypes) and doctrine/ (the Milestone 4 doctrine).

Folder notes

FOLDERS.md says what each folder is for and the rules it keeps. It holds the written notes from the crumb files this repo used to carry. Those crumb files were removed on 2026-11-08 (Drake: "get rid of crumbs", "keep the parts that worked"), except evidence/hosted-x86-aien-abi1/.crumb and evidence/physics0/learner/.crumb, which stay because existing evidence is never deleted. Git history is the record of who changed what.