Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/docs/ROADMAP-1.0.md # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / docs / ROADMAP-1.0.md` 452 lines · 41902 bytes Raw Blame History Rendered 1 # Omega 1.0: readiness audit, milestones and acceptance gates 2 3 Status: PROPOSED plan, 2026-10-26. Source audited: `aien-dev/omega-mv` main 4 ``3364a1dfd0ca50c1b82bf19ba34932d8bc10a7a9`` (merge of #787). Nothing in this file is a readiness claim. 5 It records what exists at that commit, what is missing for a 1.0 language and toolchain, and the gate 6 each milestone must pass before anyone may call it done. 7 8 Ownership. Live programme status and sequencing stay with aien-architecture 9 (`CURRENT_EXECUTION_PLAN.md`, `doctrine/ROADMAP.md`); its `M0..M40` rows are system milestones and are 10 not renumbered here. This file owns only the language/toolchain acceptance contract for Omega 1.0. Its 11 milestones are named `RM1..RM11` so they cannot be confused with those rows, with the OM-1/OM-2 language 12 profiles, or with the R1..R16 runtime ladder. Each milestone has one tracking issue; existing owner 13 issues keep their scope and are linked, not replaced. The programme issue is 14 [#599](https://github.com/aien-dev/omega-mv/issues/599). 15 16 Evidence words, kept separate everywhere below: PROPOSED, IMPLEMENTED (code exists), EXERCISED (the 17 changed path ran with expected versus observed results and a negative control), QUALIFIED (the 18 repository gate for that claim passed at an exact commit), MERGED, DEPLOYED. Verdicts: PASS, FAIL, 19 NOT_RUN, BLOCKED_HARDWARE, BLOCKED_OPERATOR, MISSING_IMPLEMENTATION. Host and emulator results are never 20 hardware qualification. Every GPU acceptance step in this file is BLOCKED_OPERATOR until an authorized 21 exclusive GB10 window runs it; it is never satisfied by a host or simulator run. A head that changes 22 `.aien/`, `tests/gates/`, `.github/workflows/`, `.forgejo/` or `tools/aien-test/` is BLOCKED_OPERATOR 23 under `AGENTS.md`, so every "wire into the gate" step below needs that operator run. 24 25 ## 0. What 1.0 means (bounded) 26 27 Omega 1.0 is a release of one named language profile and its toolchain with a written compatibility 28 promise. It is reached when every RM gate below records PASS at one commit, or when a gate is removed 29 from the 1.0 scope by Drake's explicit decision recorded in its tracking issue. It does not mean "every 30 feature anyone may want", and it never means hardware qualification beyond the targets RM9 lists. 31 32 | 1.0 includes | 1.0 explicitly excludes unless a recorded decision adds it | 33 |---|---| 34 | One frozen source profile (`OM-1.0`, section RM11) that is a superset of today's OM-1 and OM-2 | Shared-memory threads and atomics (FR-6, decision 37 undecided) | 35 | Executable contracts checked by the compiler or at run time (RM2) | General constant-time or speculative-constant-time guarantees (OM-2 spec section 8) | 36 | A measured, reproducible efficiency baseline and at least one qualified optimization (RM3) | Packed C-compatible structs beyond `layout` (FR-2) | 37 | A decided allocation model (RM4), byte/text facilities (RM5), modules (RM6) | Kernel words (FR-8) and a full GPU programming model | 38 | A versioned FFI with executed callers (RM7), stable diagnostics (RM8) | Universal source conversion (#624 family stays separate work) | 39 | A declared target set, each with its own gate (RM9) and compiler trust evidence (RM10) | Any claim on hardware the target table does not list | 40 41 ## 1. Audit at ``3364a1dfd`` 42 43 ### 1.1 Components 44 45 | Component | Where | State at the audited commit | 46 |---|---|---| 47 | Seed chain `seed0 -> hex1 -> asm2 -> om4 -> omc` | `seed/rung0..4`, `seed/omega-from-seed.sh` | MERGED. Birth rule om4(omc.om) == omc(omc.om) == omc(omc(omc.om)). | 48 | Seeded compiler `omc` | `seed/omc/omc.om` (11,118 lines, 378 `fn`), `seed/out/omc` | MERGED. Binary sha256 ``befb8199db8c4bca188a494dfaac2a6f0ee5c36fcea11188c75666c55fce8a1d``; source sha256 ``bd64bb6f20952818e155328f429ab6cd36bba213e3e00b60d796336f9d0c9343``. The pin moved from ``49923639`...03ec` (main ``ec07d25d``) when #786 changed IR-mode boolean typing. Rechecked 2026-11-10 at main ``a59a425b``: `omc.om` is 19,052 lines with 510 top-level `fn`; source sha256 ``7995e0e31bb3abcf9905fbb6257d56613b2dc67dd22be56f7396151fa84e7189``; `seed/out/omc.sha256` records ``6d1b1cf5a44803389a831b67f750ea4cd1c9f53edfde9d6d9241d7352887f1f8``, which `sha256sum seed/out/omc` matches. Rechecked 2026-11-19 at main ``100a9a914``: `omc.om` is 25,250 lines (587,337 bytes) with 653 top-level `fn`; source sha256 ``d8a9cdc042072d88e9e38e064d1d93942f915954eab15d4c82e5d2e0acc4c833``; `seed/out/omc` is 937,288 bytes, sha256 ``b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2``. Rechecked 2026-11-19 at main ``48e84f0d3`` (`drm/xe` ioctl allowlist): `omc.om` is 25,316 lines (588,414 bytes) with 654 top-level `fn`; source sha256 ``86bc3d1f98b23db96704ffe057bd82f127b09c4feb434d0c599343646c5f5105``; `seed/out/omc` is 939,036 bytes, sha256 ``210c52566e782cf15ece6e478d45bfb67f1ad338f29e41546dad9b6c4f85b54c`` (matching `seed/out/omc.sha256`). | 49 | Keyword table | `fn kw` in `omc.om`, generated by `seed/omc/genkw.awk` | MERGED; native host words use ids 100..177 (host 100..165, device/mapping 166..177). gate11/gate18 pin it. | 50 | Profile OM-1 | `docs/one_layer/OMEGESE.md` sections 3, 9, 10 | MERGED, EXERCISED by gates 5..18 and `seed/host/check.sh`. | 51 | Profile OM-2 (opt-in `om2` line) | compiler slices #750, #753, #754, #764; qualification harness #752; SHA cutover #776 | MERGED. Implemented words are listed in OMEGESE section 9.13. | 52 | OM-2 normative contract | `spec/omegese-om2.md` (sha256 ``245bb74e940c811ab325e6fabb33f0599ad46aaf6b9064fd2750c43980040881``), `spec/omegese-om2-errata.md` (E1..E18), `spec/omegese-om2-measure.md` | Present only on branch `om2/contract` @ ``23fc7f5c9``; not an ancestor of main. Rechecked 2026-11-10 at main ``a59a425b``: all three files are on main (``60c80307``), sha256 prefixes ``245bb74e``, ``7b8c1ea5``, ``507702d0``, equal to the pins below. OMEGESE 9.13, `OM2-TUTORIAL.md`, `om/sha256/README.md` and `seed/qualification/om2/MUTANTS.md` cite it as normative. The roadmap PR adds those three files byte-identical. | 53 | OSC IR output from omc | leading `ir` line; OMEGESE section 11 | MERGED, IR version 1 scalar subset only: at most 32 functions, calls to earlier functions, no `continue`, floats, structs, globals, text or host words. | 54 | OSC IR versions 2..5 (structs, arenas, pools, generation heap ops `HALLOC/HGEN/HFREE`) | `spec/one-layer-format.md`, `src/compiler/osc_ir.{c,h}` | C only; omc never emits them. Version 6 with structured `requires`/`ensures` objects is draft PR #525 (C only, front end does not fill them). | 55 | Legacy C OSC compiler | `src/compiler/` (31 files, 9,118 lines of `.c`; Rechecked 2026-11-10 at main ``a59a425b``: 33 tracked files: 16 `.c` with 9,118 lines, 15 `.h` and 2 `.crumb`; after the crumb removal: 31 tracked files: 16 `.c` with 9,118 lines and 15 `.h`) | MERGED, legacy. Still the only compiler that parses `requires`/`ensures` (`osc_parse.h`, traps 9/10 in `osc_ir.h`). Removal is #726. | 56 | C referees | `tools/omegese/omegese.c`, `tools/omega_emit/omega_emit.c`, `src/checker2/` | Referees for gate-ir only, never write omc bytes. | 57 | WebAssembly back end | `seed/wasm/irwasm.om`, `seed/wasm/gate-irwasm.sh` | MERGED (#787, closes #785). EXERCISED by its authors on host with Node v24.21.0 as validation oracle. Not referenced by any `tests/gates/*.gate` or by `tests/gates/run.sh`. | 58 | OM-2 qualification conductor | `seed/qualification/om2/gate.om` (4 args: `omc pinhash casesfile scratchdir`) | MERGED. Not referenced by any gate manifest or by `seed/host/check.sh`. Rechecked 2026-11-10 at main ``a59a425b``: the "not referenced" sentence no longer holds. `seed/host/check.sh` line 30 builds it and lines 34..133 run it over 15 case files: contracts, s5, security673 packets, hex, bnd, fnhost, execenv and prlimit, plus 7 mutant sets (s5, contracts, devcall, packets, hex, bnd, fnhost). `tests/gates/run.sh seed` (`OMEGA-SEED`) runs `check.sh`, and `run.sh security758` (`omega-security758.gate`) also runs it over `seed/qualification/security673/relational`. | 59 | Native host words | OMEGESE section 10, `seed/host/` | MERGED, Linux AArch64 only, program mode only, no sandbox (operate with the process's permissions). | 60 | Device and mapping words | `seed/host/MAPPING.md`, `seed/host/tests/{device,devcall,mapio,mapping}.om` | MERGED. No GPU launcher and no model execution (MAPPING.md first paragraph). | 61 | GPU instruction encoding | `seed/sm121/` (asm2 table, `vecadd.s2`, `gate6.sh`, `chip6.sh`) | IMPLEMENTED; table lines cite the C code generator. Chip run is BLOCKED_OPERATOR. An author run exists: `evidence/SEED-0/sm121/chip/` (2026-10-20 03:02 UTC, `omega_commit `9d5d95ad` dirty=3`, session PASS, 1,048,576 additions with 0 wrong, mutant all wrong), at load average 61, not an exclusive window. | 62 | omega-bridge (C/Python emit, native ABI) | `aien-dev/omega-bridge`, lock `om/omega-bridge.lock` | Lock pins ``431fff0a95f84c0a8bf9d3383f94d7e1f02d913e``; bridge main is ``adb26cc654656926e76ab1839adae63e92909e88`` (#18, fail-closed native caller runner). ABI v2 (`omega2_` symbols) consumed by `om/sha256`. | 63 | Omega units behind C entry points | `om/sha256/sha256-om2.om`, `om/blake3/*.om`, `om/units.sh` | MERGED. `tests/gates/run.sh om-units` is their gate. | 64 | Repository language mix | tracked files | 725 `.c`, 346 `.h`, 730 `.om` (385 under `seed/qualification`, 274 under `seed/omc`). `docs/migration/C-TO-OM-INVENTORY.md` is a 2026-10-24 snapshot of ``d863780e`` and says "no tracked `.om`", which no longer holds. Rechecked 2026-11-10 at main ``a59a425b``: 899 `.c`, 359 `.h`, 1,629 `.om` tracked (454 under `seed/qualification`, 446 under `seed/omc`). Rechecked 2026-11-19 at main ``100a9a914``: 910 `.c`, 362 `.h`, 5,421 `.om` tracked (454 under `seed/qualification`, 830 under `seed/omc`, plus the integrated pure-Omega Sovereign Intelligence layers). | 65 66 ### 1.2 Gate coverage 67 68 | Check | Wired into | Notes | 69 |---|---|---| 70 | Birth fixpoint, gates 5..18, gate-ir, host gate/negative/regression | `tests/gates/run.sh seed` (`OMEGA-SEED`) | Fails if any line starts with `SKIP`, so gate-ir must run with the C oracles built. Standalone `seed/host/check.sh` still prints `SKIP gate-ir` and continues; PR #789 (open) makes it NOT_RUN/status 3. Rechecked 2026-11-10 at main ``a59a425b``: #789 is merged (``dc83c5bec``, train r5). `seed/host/check.sh` lines 5..9 now print `NOT_RUN gate-ir` and exit 3 when the C oracles are not built, and `tests/gates/run.sh` line 175 still exits 1 on any line starting with `SKIP`. | 71 | OM-2 fixtures, C2 manifest (5,876 entries), mutants | `seed/qualification/om2/gate.om` | Run by authors (tutorial guarantee matrix); no gate manifest. | 72 | irwasm differential, mutant, refusals | `seed/wasm/gate-irwasm.sh` | Run by authors; no gate manifest. | 73 | SHA-256 and BLAKE3 parity, binding regeneration | `tests/gates/run.sh om-units` (`OMEGA-OM-UNITS`) | Needs `../omega-bridge` at the lock. | 74 | Branch displacement (#669) | `seed/qualification/security673/gate669.om` | Branch-form slice on `fix/security673-qualified`; #669 open. | 75 | Diverse double compilation | `seed/qualification/ddc650/ddc.om` (PR #952; not in a gate manifest or CI) | #650 open. PROPOSED gate, host EXERCISED at ``62d1d0d6``: seed om4 route and GCC-built spec-interpreter route both reproduce `seed/out/omc`; controls fail. Same host and project lineage; see its README. The fixpoint alone is a same-lineage consistency check. | 76 | GPU words on the chip | `seed/sm121/chip6.sh` | BLOCKED_OPERATOR. Author run `evidence/SEED-0/sm121/chip/steps.txt`: check_words ok, run_seed exit 0, control_mutant exit 1 (caught), session PASS. Its launcher `tools/omega_bytes` came from ledger L098 and is not tracked on main, so `chip6.sh` cannot be rerun from main. | 77 78 ### 1.3 Findings 79 80 1. **The OM-2 contract is cited as normative on main but is not on main.** Fix in this PR: the three spec 81 files from `om2/contract` @ ``23fc7f5c9``, byte-identical (sha256 recorded in RM1). 82 2. **Two merged gates run nowhere automatically.** `gate-irwasm.sh` and the OM-2 `gate.om` are absent 83 from every manifest, so a regression in OM-2 or irwasm is invisible to `OMEGA-SEED`. Fix is RM1 and 84 BLOCKED_OPERATOR (touches `tests/gates/`). Rechecked 2026-11-10 at main ``a59a425b``: OM-2 `gate.om` is no longer absent: OMEGA-SEED runs it through `seed/host/check.sh` over 15 case files, and OMEGA-SECURITY758 over the relational suite; `gate-irwasm.sh` is still in no manifest (`grep -l irwasm tests/gates/*.gate tests/gates/run.sh seed/host/check.sh` prints nothing). 85 3. **Open compiler defect #775.** An empty `text` passed to `view uchar *` reports the following text's 86 bytes (reported count 32 instead of 0, reported on ``e623d440`` and stated to share main's code). 87 Not reproduced in this audit (no builds were run). It is a memory-safety boundary: the callee 88 reads bytes it was not given. Update 2026-11-08: fixed on main by #904 (``e2662fff``, 2026-10-28) with 89 fixtures `s4-v-text-empty*` and the mutant `m-textlen` in `seed/omc/om2/s4`; both pass at omc ``cfd96b48`` 90 and now run in `seed/host/check.sh` through `seed/qualification/om2/every.sh`. 91 4. **Stale status text.** `README.md` line 5 says the seeded compiler is in candidate branches (line 92 27 of the same file says it is on main since #696). `OM2-TUTORIAL.md` says the OM-2 stack is draft and 93 main compiles OM-1 only. `OM_COMPLETION.md` (2026-10-23) quotes a 7,208-line compiler. `seed/host/README.md` 94 says seventy original fixtures; #789 measured 62. This PR corrects the first two and marks the third 95 as a dated snapshot; the fourth is corrected inside #789. Rechecked 2026-11-10 at main ``a59a425b``: `README.md` no longer says 96 "candidate branch" (`grep -n -i 'candidate branch' README.md` prints nothing), and `OM_COMPLETION.md` now 97 carries a dated recheck of its compiler numbers. `docs/one_layer/OM2-TUTORIAL.md` lines 8..10 say the OM-2 stack 98 has merged and main compiles OM-1 and OM-2, and `seed/host/README.md` line 235 says 62 original fixtures. 99 5. **Diagnostics are numeric and overloaded.** omc prints `omc: line N: error E`; codes 1..24 and 100 27..29 exist (25 and 26 are unused). In `omc.om`, error 7 is raised from 109 sites, 16 from 72 and 9 101 from 58, so one number names many different mistakes. `om2 diag` adds machine records 102 (`omc-diag 1 ...`) only in OM-2 units. Rechecked 2026-11-10 at main ``a59a425b``: `seed/omc/error-codes.reg` lists codes 1..25 and 103 27..30, with 26 unused. I have not re-derived the per-code site counts. 104 6. **Capacity and naming limits block real programs.** Since 2026-11-11 omc has no table capacities 105 (OMEGESE 9.6: one growing arena, a usage alarm, `seed/omc/gate-usage.sh`); before that omc held 4096 functions per unit; om4, which 106 must compile `omc.om`, held 512 (raised to 4096 by the `feat/om4-fn-table` draft), 16 registers with no spilling (error 12), 107 6 parameter slots. These are implementation limits, not language rules, and each needs a decision 108 before 1.0 freezes them. Names are decided (Drake, 2026-11-08: long names belong in the final 109 language): omc takes names of up to 63 characters for every declared name except abstract, layout, 110 layout-field and IR-mode names, which stay at 8 (OMEGESE.md 9.2, `seed/omc/gate-longnames.sh`). 111 7. **A second target is merged as a draft, not qualified.** FR-9 (#923) integrates the historical 112 ``7eca2ac3f`` backend into canonical base ``6999fa9e6``; [X86-LINUX.md](X86-LINUX.md) records 113 the design and actual unsupported paths. Its full fixture differential last ran EMULATED (QEMU) at 114 ``62d1d0d6`` (`seed/qualification/x86-linux/`20261030`-main-`62d1d0d6`.json`): 15182 PASS, 0 FAIL, 115 2 NOT_RUN (QEMU invalid-fd ioctl artifacts), 222 EXCLUDED, aggregate verdict FAIL; native x86 is NOT_RUN. 116 The earlier off-GitHub observation is not a current publication check or a completion claim. 117 8. **No contracts in the forward compiler.** omc has no `requires`, `ensures` or `assert`; the only 118 contract syntax is in the legacy C front end, and OSC IR carries contract text as metadata. 119 9. **Efficiency is not measured against an optimizing baseline.** The only filed comparison 120 (`om/sha256/om2-evidence/s4/measure/RESULTS.txt`) is OM-2 versus OM-1 plus a C adapter; arm C 121 (pure C) is NOT_RUN. Hashes of 1 to 55 bytes were 6.5-12.9% slower (declared REGRESSION under the 122 predeclared policy; ratios 1.065 to 1.129 in that file). 123 10. **No heap and no imports by design decision.** Decision 24 (no heap, no `free`) and FR-3 (imports by 124 digest, needs the OSC content-addressed unit store) are recorded blockers, not oversights. 125 126 ## 2. Milestones 127 128 Each milestone lists current evidence, the gap, the acceptance gate (all items required), and its 129 tracking issue. "New gate" means a gate that does not exist yet and is PROPOSED here; its first PASS 130 must come with a negative control that fails. 131 132 ### RM1. Ground truth and gate coverage 133 134 Current: OM-2 and irwasm are MERGED with author-run evidence only; spec missing from main; #775 fixed (#904, see Known gaps item 3); 135 #789 open (fail-closed seed/secret gates). `seed/host/check.sh` runs every `seed/omc/om2/*/*.cases` file through 136 `seed/qualification/om2/every.sh` (case files PASS, mutant files catch every mutant, two negative controls), 137 plus the error-site fixtures and thirteen qualification files that pass on the committed compiler (baseline 138 guard/language/sha256/transform, the sec s0s2/s3s4/s4fuel/s5s7 and leak candidate files, selftest pass, 139 security673 relational consumer, l4-tripwire, qualification); the candidate files may skip only their declared 140 `notrun` cases (54, mostly waiting on the omega-bridge ABI v2 generator and the OM-2 SHA unit), and an undeclared 141 NOT_RUN is refused (third negative control); host run 2026-11-23 at omc ``708fdc0f`` (``38e613a9c``): `OM2EVERY PASS files=31 142 cases=1637 skipped_declared=54 mutants=77`. Security673 `bindings.cases` `derive-wrong-image` was re-derived into 143 `seed/qualification/security673/relational/evidence/run6/embed.bin` (2308 bytes, sha256 ``6b48d0a7`...`, preserving 144 historical `evidence/run3/embed.bin` untouched), passing 16/16 in `tests/gates/run.sh security758` and enabled in 145 `seed/qualification/om2/every.sh`. The `OMEGA-SEED` manifest wiring for `gate-irwasm.sh` and `ddc650` remains 146 `BLOCKED_OPERATOR` (touches `tests/gates/`). 147 148 Gap: a single gate run cannot currently show that every merged compiler path still works. 149 150 Acceptance: 151 - `spec/omegese-om2.md`, `-errata.md`, `-measure.md` on main with sha256 equal to `om2/contract` 152 @ ``23fc7f5c9``: ``245bb74e`...0881` (contract), ``7b8c1ea5`...d671` (errata E1..E18), ``507702d0`...7bad` 153 (measurement protocol). This PR carries them and the three digests were checked when copying. 154 - `OMEGA-SEED` (or a new manifest under the same owner) runs `seed/qualification/om2/gate.om` over 155 every `seed/omc/om2/*/*.cases` and `seed/wasm/gate-irwasm.sh`, and fails on `invalid` or `not_run` > 0. 156 Negative control: a fixture with a wrong expected status makes the gate exit nonzero. BLOCKED_OPERATOR. 157 - #775 fixed with a fixture (empty text to `view uchar *` returns `len` 0) and a mutant that restores the 158 defect and is killed. 159 - #789 resolved (merged or superseded) so a missing IR oracle can never yield a qualification PASS. 160 - (Retired, DRA-97, 2026-11-07: Crumbs left the active workflow, so `crumb verify .` is no longer a 1.0 criterion.) 161 162 ### RM2. Executable contracts 163 164 Audited baseline (``3364a1dfd``): MISSING_IMPLEMENTATION in omc. OM-2 had one built-in invariant 165 (`holds NAME dup32`) with kept/erased reporting, `fresh` initialization tracking and `layout` checks. 166 The legacy C front end parses `requires`/`ensures`; IR v6 structured contracts remain draft PR #525. 167 Owners: #625 (semantics), #623 (per-lowering validation), #656 (contract-to-.om synthesis), #746. 168 169 Native implementation: PR #807 adds the versioned OMEGESE section 12 extension, default debug 170 checks, checked release erasure, constant-true proof, diagnostics and error 30. Source 171 ``00031d2456b2fe1e6ecdee6a0245d4c27b6749d2`` is EXERCISED; see 172 `evidence/CONTRACTS/`20261026`-`00031d24`/README.md` for the complete manifest, C parity, bridge status, 173 mutants and historical-receipt controls. IR refuses these contracts rather than dropping them. 174 The pending guide update is omega-harness #27. This does not claim the remaining roadmap or 175 the separate structured-contract IR proposal is complete. 176 177 Acceptance: 178 - A versioned profile section (OMEGESE or `spec/omegese-om3.md`, since OM-2 is frozen) defines contract 179 words, their typing, evaluation order, purity rule (no effects, no calls with effects), and trap codes; 180 a contract that cannot be checked is a refusal with a named obligation, never silently dropped. 181 - omc lowers every contract to a runtime check unless a rule stated in the spec erases it; with 182 `diag` each check is reported `kept` or `erased` with its rule, as `omc-check` does today. 183 - Fixtures: each contract kind accepted and violated (trap code and site match), each refusal code, and a 184 mutant per erasure rule (erasing a check that the rule does not justify must be caught). 185 - C1/C2 compatibility: every C2 manifest entry stays byte-identical; units without contracts compile 186 identically. 187 - Function-mode contracts surface through the bridge as a status, never as undefined behaviour (RM7). 188 - IR mode either carries contracts in a version that checker2 reads, or refuses contract units with a 189 named error (no silent omission). 190 191 ### RM3. Measured efficiency 192 193 Current: correctness gates only. Register allocation is a fixed 16-register pool with no spilling; 194 every float operation moves through v0/v1; OM-2 adds opt-in unroll, inline, folding inside expanded 195 bodies and constant-index check elimination. A fixed baseline protocol is being prepared on branch 196 `perf/omc-efficiency-baseline` (`bench/omc_efficiency/PROTOCOL.md`, kernels with C twins, an Omega 197 conductor, evidence under `evidence/OMC-EFF-1/`); no numbers are cited here until that evidence is 198 published. 199 200 Gap: no predeclared, paired comparison of omc output against an optimizing C compiler on the same 201 kernels, and no optimization qualified against such a baseline. 202 203 Acceptance: 204 - A frozen protocol (sha256 recorded before data): kernels, input sizes, C twin and compiler flags, 205 CPU pinning, interleaved paired arms, warm-up, repetitions, the statistic, and the regression policy. 206 Statistics computed with Wolfram and quoted with the query. 207 - Baseline evidence: per kernel, output equality of the two arms first, then time, code size and compile 208 time, all at one omc pin and one host. 209 - At least one optimization (for example a register allocator with spilling, which also removes error 210 12 as a user-facing limit) lands with: C2 manifest byte-identity for units that do not opt in, or a 211 declared new pin with all fixtures equal in behaviour; birth fixpoint; a mutant that breaks the 212 optimization and is caught; a paired A/B against the baseline under the same frozen protocol. 213 - Compile-time and compiler-memory bounds stay linear in output (OM-2 section 4 rule) and are gated. 214 - Results labelled MEASURED HOST AArch64; no GPU or cross-machine performance claim. 215 216 ### RM4. Memory model: heap and allocation 217 218 Current: decision 24 forbids a heap and `free`. Storage is stack `new` (4 MiB per function), `global` 219 pools (1 GiB total), process-local mappings through `mapnew`/`maphold` (128 slots, up to 64 GiB each, 220 accessed only through copy words). OSC IR v2..5 already specify arenas, pools and generation-checked 221 heap operations, but only in C. Related: #756 and draft PR #771 (bounded quantities and object 222 slices), #705, #759. 223 224 Gap: programs whose working set is not known at compile time (parsers, interpreters, `aien-math`) 225 must preallocate global pools or use mapping copies. 226 227 Decision (2026-11-11): run-time growth in its smallest form, recorded as decision 3 of 228 `~/handoffs/yourtrained-cortex/briefs/decisions-`20261111`.md` (the lead, under Drake's delegation of that 229 day; Drake can reverse it). This decision is the operator gate this milestone waited for. Design and status: 230 `docs/RUNTIME-POOLS.md` (run-time pools: `global NAME T *`, `enlarge`, `len`; no `free`). Landing 1 231 (`seed/omc/omc.om`, `seed/omc/gate-pools.sh`, OMEGESE 9.15), Landing 2 (`seed/rung4/om4.s`, growing compiler 232 arena `a_ar`, `OMC_MEMORY_MAX`), and NG runtime pools (`docs/RUNTIME-POOLS.md` §12) are IMPLEMENTED on `main` 233 and host-EXERCISED on Spark (`POOLS_ONLY="1 2 4 5 8 9 10" sh seed/omc/gate-pools.sh` PASS, RC=0 at omc ``708fdc0f``). 234 235 Acceptance: 236 - A decided model: the decision above. It settled as: decision 24 kept (no `free`), with run-time growth 237 added as a region without release, so the next bullet applies with no reachable release. The choice 238 was between keeping decision 24 (documenting 239 pools plus mappings as the 1.0 model with sizing guidance) or to replace it with a named model; 240 options with existing specs were region/arena with whole-region release, and generation-checked 241 handles matching IR `HALLOC/HGEN/HFREE` so checker2 can validate the lowering. 242 - If a model is adopted: use-after-release, double release and stale generation are refused at 243 compile time or trap with a named code before any access; exhaustion returns a status, never an 244 overrun; fixtures, mutants that remove each check, and a fuzz differential against an independent 245 model. 246 - Allocation is never implicit: no hidden allocation in any existing word (C1/C2 unchanged). 247 - Bounded quantities (#756): lengths, offsets and counts do not wrap silently; the 248 `(2^64-8)+16` counterexample in #756 is refused before addressing. 249 250 ### RM5. Strings and text 251 252 Current: `text NAME "bytes"` read-only literals (program mode only), `uchar` arrays, explicit lengths, 253 no terminators. OM-2 unsized views (`view uchar *`) and `part` give checked slices; this resolves the 254 "open arrays" blocker of `OM_COMPLETION.md` item 4 for parameters. There is no UTF-8 handling, no 255 number/text conversion, no formatting word, no comparison or search library (`seed/text`, standalone gate, now covers compare, search, fields, integer parse/format, UTF-8 validation and code point decode/encode). #775 is a defect in this 256 path. Consumers that need more: #788 (TLS/HTTP/JSON proposal), omega-bridge text constants 257 (unsupported by its converters). 258 259 Acceptance: 260 - A seeded `.om` text unit (byte compare, search, split, decimal and hex integer parse/format with 261 range refusal, UTF-8 validation with rejection of overlong, surrogate and out-of-range encodings), 262 callable from OM-1.0 units, with no new compiler word unless one is proposed and gated. 263 - Differential tests against an independent oracle on fixed and seeded random inputs, including 264 empty, maximal and invalid inputs; UTF-8 vectors cite their source. 265 - Text in function mode: either supported with a stated ABI (RM7) or refused with a named error. 266 - #775 closed (RM1). 267 268 ### RM6. Modules and separate compilation 269 270 Current: no `import`; units compose by concatenation. OM-2 adds `export fn` (up to 32 entries) and 271 links separately compiled units only through bridge symbols that embed source sha256, omc pin and 272 profile. FR-3 (imports by digest) is blocked on the OSC content-addressed unit store. Capacity: 273 omc: no per-unit table capacity since 2026-11-11 (OMEGESE 9.6; 50,000 functions in `seed/omc/gate-nocaps.sh`); om4 (compiles `omc.om`): 4096 (`seed/rung4/gate4.sh` 7b). Owners: #621, #648, #631. 274 275 Acceptance: 276 - A decided module form: digest-addressed import (source sha256 plus compiler pin), with a stated 277 visibility rule and a refusal for a missing, stale or mismatched digest. If the unit store remains 278 external, the decision records where digests resolve. 279 - Two separately compiled `.om` modules linked into one program-mode binary and one function-mode 280 library, with interleaved calls, matching a concatenated single-unit build in behaviour. 281 - Negative controls: wrong digest, wrong pin, wrong profile, duplicate export, cycle. 282 - (Amended 2026-11-11: the no-caps rule, OMEGESE 9.6, supersedes per-unit capacities.) No per-unit 283 capacity of omc's own; usage is watched by `seed/omc/gate-usage.sh`, which alarms past its thresholds. 284 285 ### RM7. omega-bridge FFI 286 287 Current: ABI v1 (`omega_`) and v2 (`omega2_`, unsized views, `out` buffers, status 32 288 refusal before Omega code runs, status 33 reentry). omega-bridge main ``adb26cc6`` prints 289 `NATIVE-CALL PASS` only after seven callers (`c`, `c-bti`, `cpp`, `python`, `rust`, `zig`, `go`) build 290 and run. omega-mv pins the older ``431fff0a``. Unsupported by contract: forged lengths, read-only memory 291 passed as edit, stack exhaustion (faults, not a status). Not present: shared objects and a general C 292 ABI (FR-7), callbacks into foreign code, floats and text through the C/Python converters. 293 294 Acceptance: 295 - `om/omega-bridge.lock` at a bridge commit whose `tests/native/run.sh` printed `NATIVE-CALL PASS`, with 296 `tests/native/test_build_failures.sh` showing FAIL and NOT_RUN for injected and missing toolchains. 297 - `tests/gates/run.sh om-units` PASS at that lock; regenerated binding byte-identical. 298 - An ABI version document listing every supported parameter kind, status code and failure mode, with 299 one executed refusal case per status and a version-mismatch case that fails at link time. 300 - Each RM2 contract violation and each trap reaches a caller in every qualified language as a status. 301 - Decision recorded on FR-7 (shared objects); if adopted, symbol versioning and a dlopen caller are 302 exercised in each language. 303 304 ### RM8. Diagnostics and error messages 305 306 Current: one human line per refusal, numeric code only. One registry, `seed/omc/error-codes.reg` 307 (#797), lists every omc code (1..30; 26 has no site) and the irwasm codes 20..28 as a separate 308 namespace. gate15 refuses 33 minimal programs at their exact `omc: line L: error C` (every emitted code 309 1..25 and 27..30, 24 with its accept side, 30 including IR-mode contract lines from #791) and runs 310 `seed/omc/codereg.om`, which fails on a site without a row, a row without a site, an OMEGESE §9.14 / 311 §11.1 row that differs from the registry, or a registry case that did not refuse. Machine records 312 exist only in OM-2 `diag` mode (#655 owns incremental feedback). `seed/explain` (gate in `seed/host/check.sh`) prints the registry meaning and the refused source line for every code without changing omc's output. Site coverage: `seed/omc/sitecov.sh` 313 changes one `fail N` site at a time to code 97 and replays every refused tracked input; 553 of 625 sites are 314 reached at omc ``708fdc0f`` (2026-11-23, up from 480 of 584 at ``564c5835`` and 494 of 625 before adding 59 RM8 315 fixtures in `seed/omc/sites/`), and `seed/host/check.sh` fails if that falls below `seed/omc/sitecov.floor` (553). 316 The remaining 72 unreached sites include env/I/O/OOM guards (`OMC_MEMORY_MAX`, `a_rdin`/`mflush`/`writeout`/`obj_write`, 317 `a_full`/`a_ogrow`) and internal invariants. 318 Finding while writing them: error 4 ("the line ends where a word or value is needed") names the line AFTER 319 the short line whenever a newline follows it (`fn main to int` + `x =` + newline reports line 3; without the 320 final newline, line 2), in OM-1, OM-2 and IR mode alike; gate15 `e4_line_ends` pins the late number. 321 Proposal (not applied, it changes pinned compiler output): report the line of the last token read. 322 323 Acceptance: 324 - A code registry in the language doc: every code, its meaning, the obligation, and one minimal 325 refusing fixture each, with gate15 extended to every code (including 24, 27, 28, 29). 326 - Overloaded codes split or given a stable sub-reason in the machine record, so each emitting site in 327 `omc.om` maps to exactly one documented reason; a coverage check lists any emitting site without a 328 fixture. 329 - A human-readable message for each code (stderr text, still one line), with stdout unchanged and the 330 existing `omc: line N: error E` prefix preserved for current consumers. 331 - Diagnostic records available in every profile of 1.0 (not only `om2 diag` units), keyed to the input 332 sha256 and compiler pin. 333 334 ### RM9. Targets 335 336 | Target | State | 1.0 gate | 337 |---|---|---| 338 | AArch64 Linux static ELF (program and function mode) | MERGED; host EXERCISED by `OMEGA-SEED` | QUALIFIED by RM1's full gate at the release commit | 339 | AArch64 UEFI PE32+ (`target a64efi`) | IMPLEMENTED; EXERCISED on one physical DGX Spark and under QEMU/EDK2; [design, firmware words and evidence](A64-EFI.md) | `tests/a64efi/run.sh` virtualized under QEMU/EDK2; one physical machine is not a multi-machine qualification | 340 | WebAssembly MVP via OSC IR v1 (`irwasm`) | MERGED, scalar subset; host EXERCISED by authors | Gate wired (RM1); scope decision: stay scalar-only for 1.0, or add linear memory, text and globals with IR v2+ | 341 | SPIR-V 1.0 OpenCL Kernel via OSC IR v1 (`irspirv`) | IMPLEMENTED and CPU EXERCISED in [#804](https://github.com/aien-dev/omega-mv/pull/804); [ABI, parity and toolchain](SPIRV.md) | Standalone `seed/spirv/gate-irspirv.sh`: full irwasm scalar corpus, exact trap/result parity on PoCL CPU, validator, determinism, mutant and refusals. Manifest wiring needs operator authorization; GPU and DPC++ integration NOT_RUN. | 342 | StableHLO MLIR text via OSC IR v1/v7 (`irstablehlo`, Google TPU path) | IMPLEMENTED; EXERCISED on IREE 3.13 llvm-cpu and XLA CPU PJRT (jaxlib 0.12.0.1) interop oracles, see [seed/stablehlo](../seed/stablehlo/README.md) | Standalone `seed/stablehlo/gate-irstablehlo.sh`: elementwise one-block functions, exact results on both oracles, Omega-native integer cross-check, wrong-op, wrong-expected, malformed-module and refusal controls. Signed overflow trap NOT preserved. TPU (closed libtpu) NOT_RUN. | 343 | x86-64 Linux static ELF | DRAFT, merged as #923 on canonical base ``6999fa9e6``, using historical ``7eca2ac3f``; qualification tracked in #629; [design and unsupported paths](X86-LINUX.md) | Published PR; default AArch64 output byte-identical (C2 manifest); full existing fixture differential with equal trap codes (EMULATED run at ``62d1d0d6``: 15182 PASS, 0 FAIL, 2 NOT_RUN, 222 EXCLUDED, verdict FAIL); independent objdump oracle and wrong-encoding mutants (the same run's invalid-encoding and valid-wrong-encoding controls PASS, and a one-byte emitter mutant was caught); QEMU labelled EMULATED, physical x86 NOT_RUN unless tested | 344 | x86-64 UEFI PE32+ | Historical implementation in ``7eca2ac3f``; removed from the Linux-only FR-9 draft | Outside this integration; separate firmware/PE32+ acceptance and evidence required; Linux execution does not establish firmware or physical x86 qualification | 345 | RISC-V RV64GC (#630), ISA/ABI capability profiles (#628) | PROPOSED | Out of 1.0 unless a decision adds it | 346 | GB10 sm_121 device code (`seed/sm121`, device/mapping words) | IMPLEMENTED encodings and host-side device words; no GPU launcher | Chip gate BLOCKED_OPERATOR (author run `evidence/SEED-0/sm121/chip/` at load average 61 is not an exclusive-window qualification); host and simulator results are never cited as GPU qualification | 347 348 Acceptance: the 1.0 target list is a recorded decision; every listed target has its own gate in the 349 manifest set, a negative control, and an evidence class (HOST, EMULATED, PHYSICAL-GPU). A target not 350 listed is not supported, regardless of what compiles. 351 352 ### RM10. Compiler trust and C retirement 353 354 Current: birth fixpoint, om4 as referee, `seed/check/audit2.sh` instruction referee, C referees for 355 gate-ir, gate17 differential fuzz against the pinned compiler. Open: #650 diverse double compilation, 356 #669 branch displacement (imm19 and imm26 both checked by bdisp; long backward while/continue refused first by the forward bound-trap limit), #725 retiring handwritten 357 seed hex, #726 removing the legacy C compiler only after consumer cutover (drafts #761, #762, #763, 358 #765, #751 port parts of it). 359 360 Acceptance: 361 - #650: an independently built compiler path reproduces `seed/out/omc` byte for byte, with the 362 independence argument written down; a planted miscompile in one path is detected. 363 - #669 closed with every branch form and displacement extreme covered. 364 - #726: each removed C component has a qualified `.om` replacement, its consumers cut over, and an 365 active-tree audit showing no fallback remains; the C referees that gates still need are declared as 366 qualification oracles outside the delivered closure, per #599. 367 368 ### RM11. Stability guarantee 369 370 Current: profiles are frozen documents (OM-2 says a change needs `omegese-om3.md`); the C1 (meaning) 371 and C2 (bytes, per manifest entry) compatibility rules exist for OM-1 to OM-2 only. The compiler pin 372 changes with every compiler commit and consumers pin by hash. There is no versioned release and no 373 deprecation policy. 374 375 Acceptance: 376 - `OM-1.0` profile document: the union of OM-1, OM-2 and the RM2/RM5/RM6 additions that pass, with 377 every word, limit and code; anything not in it is unsupported. 378 - Written promise for 1.x: a 1.0 program keeps its verdict, error code and line, stdout, exit status, 379 trap code and order (C1) on every later 1.x compiler; machine-code identity (C2) is promised only 380 where stated. Changes outside the promise need a new profile. 381 - A conformance suite (the C2 manifest plus RM1..RM8 fixtures) that every 1.x compiler must pass, 382 run in the gate set. 383 - A tagged release: omc binary sha256 recorded before any rebuild, source commit, birth log, and the 384 gate receipts of RM1..RM10, content-addressed under `evidence/`. 385 386 ## 3. Order 387 388 RM1 first: it makes every later gate meaningful. RM8 and RM6 decisions early, because RM2, RM5 and 389 RM7 add codes and boundaries. RM4 has its decision (2026-11-11, docs/RUNTIME-POOLS.md); RM5 does not depend on it for 1.0 if the 390 text unit uses caller-provided buffers. RM3's baseline can run now; its optimization step waits for RM2 391 so contracts and optimization do not edit the same compiler paths at once. RM9 and RM10 run in 392 parallel on disjoint paths. RM11 is last and freezes only what passed. 393 394 ## 4. Tracking issues 395 396 | Milestone | Tracking issue | 397 |---|---| 398 | RM1 Ground truth and gate coverage | [#790](https://github.com/aien-dev/omega-mv/issues/790) | 399 | RM2 Executable contracts | [#791](https://github.com/aien-dev/omega-mv/issues/791) | 400 | RM3 Measured efficiency | [#792](https://github.com/aien-dev/omega-mv/issues/792) | 401 | RM4 Memory model | [#793](https://github.com/aien-dev/omega-mv/issues/793) | 402 | RM5 Strings and text | [#794](https://github.com/aien-dev/omega-mv/issues/794) | 403 | RM6 Modules | [#795](https://github.com/aien-dev/omega-mv/issues/795) | 404 | RM7 omega-bridge FFI | [#796](https://github.com/aien-dev/omega-mv/issues/796) | 405 | RM8 Diagnostics | [#797](https://github.com/aien-dev/omega-mv/issues/797) | 406 | RM9 Targets | [#798](https://github.com/aien-dev/omega-mv/issues/798) | 407 | RM10 Compiler trust and C retirement | [#799](https://github.com/aien-dev/omega-mv/issues/799) | 408 | RM11 Stability guarantee | [#800](https://github.com/aien-dev/omega-mv/issues/800) | 409 410 ## 4a. Networking and TLS follow-on 411 412 The bounded HTTP/JSON work tracked by [#788](https://github.com/aien-dev/omega-mv/issues/788) 413 uses existing Linux-arm64 socket words, with additional bounded host operations proposed in 414 [PR #808](https://github.com/aien-dev/omega-mv/pull/808) (pending). It does not add TLS. 415 Public traffic terminates TLS at the hub's nginx; authorized internal services use plain HTTP 416 on loopback or over the WireGuard tailnet. This transport arrangement is not a claim that 417 Omega implements certificate verification or that plaintext is suitable on arbitrary networks. 418 419 **TLS 1.3 client: PROPOSED, separate OmegaTLS lane.** Implement record framing, handshake, 420 transcript hashes, key schedule, authenticated encryption, signature verification, and bounded 421 X.509 verification in `.om`. The minimum contract verifies a chain to an explicitly configured 422 trust store, hostname, validity interval and certificate constraints, and fails closed on every 423 unsupported or invalid input. There is no insecure verification toggle, implicit trust-on-first-use, 424 or silent downgrade. Trust-store provenance and trusted wall-clock requirements are explicit inputs. 425 No TLS 1.2, 0-RTT, or session-resumption claim is included without a separate replay/security contract. 426 427 Acceptance gates, all required before a consumer cutover: 428 429 - Published cryptographic known-answer vectors and differential tests against a pinned independent 430 TLS implementation; document exact versions and oracle-only roles. 431 - Positive and negative certificate chains: hostname mismatch, expired/not-yet-valid certificates, 432 unknown issuer, invalid signature, wrong key usage/EKU, path constraints, malformed DER, and 433 unsupported critical extensions all refuse without sending application data. 434 - Fragmented/coalesced records, partial I/O, handshake and read deadlines, authenticated close, 435 truncation, corrupt tags, altered handshake transcript, replay and sequence exhaustion tests. 436 - Deterministically seeded malformed-record/certificate fuzz corpus, retained failures, and a 437 verification-bypass mutant that the gate demonstrably catches. 438 - Descriptor/memory lifecycle checks and a read-only end-to-end HTTPS GET with status, headers, 439 bounded body, and an independently verified certificate identity. 440 - Independent protocol/cryptographic review plus seeded compiler/referee and consumer parity 441 evidence at exact source and compiler pins. Host tests do not qualify hardware or deployment. 442 443 The GitHub API pusher and catalog remain recorded host dependencies until this separate TLS 444 implementation passes these gates and each consumer completes its own exercised port. nginx 445 termination does not replace outbound GitHub certificate verification. This item does not 446 silently add a new RM milestone or declare Omega 1.0 ready. 447 448 ## 5. Keeping this file honest 449 450 Update a row only with a link to the evidence that changed it (commit, receipt, gate log). Do not 451 restate drifting numbers that aien-architecture owns. When the compiler pin moves, refresh section 1.1 452 and the omega-harness skills in the same piece of work.