# Omega Knowledge Base (Machine-Readable Reference)

As of: 2026-11-26
Project: Sovereign Intelligence(TM) / Interplane / Omega
Human page: https://interplane.io/omega/kb/
Structured JSON: https://interplane.io/omega/kb/index-data.json
Online compiler: https://interplane.io/omega/compile/

Three status registers apply throughout this file:
- MERGED_MAIN: committed to public main and reproducible directly from Git.
- IN_WORKTREE_UNMERGED: verified in isolated worktrees on 2026-11-26, NOT yet merged to main.
- HOST_OR_MODEL_ONLY_HARDWARE_NOT_RUN: exercised on host/QEMU/software model only; physical target hardware NOT_RUN.

## 1. Sixty-Second Syntax Rules (OM-2 / omc)

- One statement per line, no semicolons, no curly braces.
- Prefix words only: `add x 1`, `mul add a b c`, `lt i n`.
- Comments start with `note`. `//` and `#` fail with error 16.
- Blocks (`fn`, `if`, `else`, `while`, `for`, `struct`, `layout`) close with `end`.
- No implicit conversions (error 7). Convert explicitly with type words (`long x`, `uint b`, `f64 n`).
- Bare numbers need type context: write `x = uint 5`, not `x = 5` (error 11).
- Scalar types: `bool`, `uchar/u8`, `ushort/u16`, `uint/u32`, `ulong/u64`, `byte/i8`, `short/i16`, `int/i32`, `long/i64`, `f32`, `f64`, `void`.
- `and` and `or` on `bool` evaluate both sides (no short-circuit); guard array indices with an outer `if`.
- Functions take at most 6 parameter slots (`view T *` / `edit T *` use 2 slots) and at most 16 live registers (error 12).
- Start OM-2 units with `om2` on the first non-note line for lowercase `0x` hex, `rotr`/`rotl`, unsized `view T *`/`edit T *`, `part`, `layout`, `abstract`/`seal`/`open`, `fresh`, and executable `requires`/`ensures`/`invariant` contracts.
- Signed integer overflow traps (`trap 1`, exit 101); unsigned arithmetic wraps modulo 2^width.
- Loops carry explicit bounds (`while cond bound N`, default 1000000; exceeding traps 4, exit 104).
- There is no dynamic heap or `free`; memory uses static globals (`global`), fixed stack arrays (`new T N v`), or OM-2 `enlarge` arenas.

## 2. Verified Mainline State (MERGED_MAIN)

### omega-mv (commit 06824ff19)
Clone: `git clone https://interplane.io/drakestapleton/omega-mv.git`
Browse: https://interplane.io/drakestapleton/omega-mv

- Helix Strand Exchange & Clip Studio (`apps/omega-strand-hub/main.om`, `06824ff19`): pure seeded-OM-2 zero-JS HTTP server implementing `/strands/` (public upload/browse/catalog), `/strands/clip` (zero-JS `spclip` Clip Editor & `.spclip` recipe builder), `/strands/strand/<sha256>` (cryptographic receipt & lineage), `/strands/index.{json,tsv}` and `/strands/clips/index.{json,tsv}` (`?trunk=`). Verified by `STRAND_HUB_GATE pass=52 fail=0`, `ADVERSARIAL_SUITE fails=0`, and real `ollm spclip`/`spmerge`/`trainf`/`spext` CLI roundtrip PASS (public nginx cutover staged for 1.0).
- Stage 1 Zero-C Closure Wave S1-1 (`a72beec32`): root Makefile `all`/`omegatool`, `test-m5..m15`, `test-r16-surface`, and `test-omegatool-path` cut over to pure seeded OM-2 (`tools/omegatool.om`, retiring 4,145-line `tools/omegatool.c`). `docs/migration/PARITY.tsv` tracks 375 rows / 2,114 C functions.
- 4-Strand BFT Braid (`seed/helix/`): 4 independent seeds (`408 + 396 + 404 + 404 = 1,612` bytes) converge bit-for-bit on `seed/out/omc` (`952,784` bytes) across 7 build routes, backed by 29 Lean 4.36.0 theorems (`0 sorry`) and pure-Omega Ed25519 signing.
- Unified 24-Field `TargetDesc` (`seed/ng/TARGET-DESC.md`, `seed/ng/target/`): 6 ISA targets (`AArch64`, `x86-64`, `RV64GC`, `Thumb2`, `SM121`, `Ethos-U`), verified by `NG-TARGET-GATE PASS checks=73 controls=10`.
- Universal Pure-OM-2 Zero-CUDA Inference Engine (`om/gpu/engine/`): reads standard HF `config.json`, 3-layout safetensors and GGUF, SM121 `OMMA.SF.16864` NVFP4 Tensor Cores, chunked-8 prefill, 4R SMEM MoE, B=8 fused kernels, Ternary Bonsai 2.5 27B (`PTQ1_0` + `blk.64` MTP), Full-APU (20 ARMv9 + 48 SMs), and Live Arboris.
- `om/gpu/q36/`: 281 KB static ELF, zero shared libraries, 67.71 tok/s real-weight Qwen 3.6 35B-A3B Full-W4 + SM121 JIT, 233.3 GB/s `lm_head` (98.5% of 236.9 GB/s GB10 ceiling), 43 to 72 s cold load across 3 windows.
- `om/gpu/q38/` (`37e6d7247`): Qwen 3.8 27B native SM121 NVFP4 `OMMA.SF.16864.E2M1` Tensor Core mode (1,124 / 1,045 / 799 tok/s prefill, 9/9 exact tokens).
- `om/gpu/inkling2/`: 8-stream static paged-KV server (84.19 tok/s aggregate at B=8, HTTP 503 `server_busy` on 9th concurrent request).

### omega-helix (Interplane main a909888, GitHub main cb10d92)
Clone: `git clone https://interplane.io/drakestapleton/omega-helix.git`
GitHub: https://github.com/drakestapleton/omega-helix

- Full chronological GB10 training progression (`v0` through `Rung 10`): 85,285 tok/s BF16 Tensor Core (`Rung 10`, 983.0M tokens, 0.449322 bpb, 0 micro-nats CPU f64 vs on-chip `geval` delta) and 68,549 tok/s FP32 SASS (`Rung 7`).
- Universal zero-cap engine `ollm-univ` (`OLLMCK04`), pure-Omega HF Safetensors & GGUF v3 interchange (`ollm-interchange`), `OLLMSP01` Merkle chains + `spclip`, live `install.sh` + `omega-helix` Studio (:18420, Python 3 stdlib, zero telemetry, 73+ OpenWALDO corpora).
- Landed features: Apple Silicon Metal (`TARGET=macos-metal`), Full-APU (`apuweave`), Spiral-2048 Razor MoE (`OLLMSP02`), continuous batching + shared-trunk KV prefix cache, SM121 NVFP4 training + `/dev/aien-gpu` M16 gate, and zero-Python `scripts/verify-om.sh`.
- 8-pillar runtime + 4 byte-traceability locks: verified in CPU-SIM and NVDISASM only; LIVE GPU NOT_RUN.

## 3. Omega NG Upgrade Lanes (IN_WORKTREE_UNMERGED - NOT YET ON MAIN)

These four lanes passed isolated worktree checks on 2026-11-26 and await merge to `omega-mv` `main`:

- Lane 1 (`seed/ng/egraph/ir_egraph.om`): Omega-IR E-Graph optimizer. Passed isolated worktree checks and live zero-shared-code handshake into Lane 2 (`NG-EGP3-CHECKER PASS certs=10 steps=81 evals=40`, exit 0).
- Lane 2 (`f56ef7f9e`, `seed/helix/proofs/NgEGraphIR.lean` + `seed/ng/verify/egp3_checker.om`): 18 32/64-bit rewrite rules + `egraph_extract_sound` proved in Lean 4.36.0 (`0 sorry`, axioms `[propext, Quot.sound]`, 3 non-vacuity counterexamples) + independent pure-Omega checker (`NG-EGP3-CHECKER PASS certs=8 rules=18 neg_controls=5/5` + 12/12 CLI neg controls).
- Lane 3 (`4ef7fd121`, `seed/ng/pack/sem_pack.om`): `OMPK` v1 semantic packaging + Compile-on-Arrive cache dedup (`NG-PACK-GATE PASS checks=99 dedup_hits=3 neg_controls=7/7` + live mutant caught).
- Lane 4 (`c5bbe6167`, `seed/ng/live/arboris_spec.om`): Live Arboris specialization + `proofMask==7` `QDI_WTBL` swap + `ORACLE` rollback (`NG-LIVE-ARBORIS-GATE PASS checks=98 swaps=2 rollbacks=1 neg_controls=4/4` + live mutant caught).

## 4. Standalone Driver & OS Repositories (Honest Hardware Status)

Current GB10 GPU runs open `/dev/nvidiactl`, `/dev/nvidia0`, and `/dev/nvidia-uvm` over NVIDIA's open kernel modules and signed GSP firmware (no CUDA user-space library). Standalone driver and OS repos remain separate research trees:

- `omega-gpu-driver` (`2d01d74`): https://interplane.io/drakestapleton/omega-gpu-driver -- W0/host/QEMU exercised; physical GB10 hardware NOT_RUN.
- `aien-gpu` (`8f7070c`, git-only: `git clone https://interplane.io/drakestapleton/aien-gpu.git`) -- host/QEMU pass; physical GB10 hardware NOT_RUN.
- `rtl8127-omega` (`f53059a`): https://interplane.io/drakestapleton/rtl8127-omega -- software model & read-only inspect only; physical NIC hardware NOT_RUN.
- `aienux` (`47063db5`): https://interplane.io/drakestapleton/aienux -- pre-alpha C tests on Pi 5 and iMac; DGX Spark bare-metal boot NOT_RUN.

## 5. Exact TSV Tables

- Compiler errors 1..30: https://interplane.io/omega/kb/omc-errors.tsv
- Unified 24-field TargetDesc schema (MERGED_MAIN): https://interplane.io/omega/kb/target-desc.tsv
- 18 Lean-proved EGP3 rewrite rules (IN_WORKTREE_UNMERGED): https://interplane.io/omega/kb/egp3-rules.tsv
- Full machine-readable JSON: https://interplane.io/omega/kb/index-data.json
