Omega 1.0: readiness audit, milestones and acceptance gates
Status: PROPOSED plan, 2026-10-26. Source audited: aien-dev/omega-mv main
3364a1dfd0ca50c1b82bf19ba34932d8bc10a7a9 (merge of #787). Nothing in this file is a readiness claim.
It records what exists at that commit, what is missing for a 1.0 language and toolchain, and the gate
each milestone must pass before anyone may call it done.
Ownership. Live programme status and sequencing stay with aien-architecture
(CURRENT_EXECUTION_PLAN.md, doctrine/ROADMAP.md); its M0..M40 rows are system milestones and are
not renumbered here. This file owns only the language/toolchain acceptance contract for Omega 1.0. Its
milestones are named RM1..RM11 so they cannot be confused with those rows, with the OM-1/OM-2 language
profiles, or with the R1..R16 runtime ladder. Each milestone has one tracking issue; existing owner
issues keep their scope and are linked, not replaced. The programme issue is
#599.
Evidence words, kept separate everywhere below: PROPOSED, IMPLEMENTED (code exists), EXERCISED (the
changed path ran with expected versus observed results and a negative control), QUALIFIED (the
repository gate for that claim passed at an exact commit), MERGED, DEPLOYED. Verdicts: PASS, FAIL,
NOT_RUN, BLOCKED_HARDWARE, BLOCKED_OPERATOR, MISSING_IMPLEMENTATION. Host and emulator results are never
hardware qualification. Every GPU acceptance step in this file is BLOCKED_OPERATOR until an authorized
exclusive GB10 window runs it; it is never satisfied by a host or simulator run. A head that changes
.aien/, tests/gates/, .github/workflows/, .forgejo/ or tools/aien-test/ is BLOCKED_OPERATOR
under AGENTS.md, so every "wire into the gate" step below needs that operator run.
0. What 1.0 means (bounded)
Omega 1.0 is a release of one named language profile and its toolchain with a written compatibility promise. It is reached when every RM gate below records PASS at one commit, or when a gate is removed from the 1.0 scope by Drake's explicit decision recorded in its tracking issue. It does not mean "every feature anyone may want", and it never means hardware qualification beyond the targets RM9 lists.
| 1.0 includes | 1.0 explicitly excludes unless a recorded decision adds it |
|---|---|
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) |
| Executable contracts checked by the compiler or at run time (RM2) | General constant-time or speculative-constant-time guarantees (OM-2 spec section 8) |
| A measured, reproducible efficiency baseline and at least one qualified optimization (RM3) | Packed C-compatible structs beyond layout (FR-2) |
| A decided allocation model (RM4), byte/text facilities (RM5), modules (RM6) | Kernel words (FR-8) and a full GPU programming model |
| A versioned FFI with executed callers (RM7), stable diagnostics (RM8) | Universal source conversion (#624 family stays separate work) |
| 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 |
1. Audit at 3364a1dfd
1.1 Components
| Component | Where | State at the audited commit |
|---|---|---|
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)). |
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). |
| 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. |
| Profile OM-1 | docs/one_layer/OMEGESE.md sections 3, 9, 10 | MERGED, EXERCISED by gates 5..18 and seed/host/check.sh. |
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. |
| 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. |
| 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. |
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). |
| 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. |
| C referees | tools/omegese/omegese.c, tools/omega_emit/omega_emit.c, src/checker2/ | Referees for gate-ir only, never write omc bytes. |
| 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. |
| 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. |
| Native host words | OMEGESE section 10, seed/host/ | MERGED, Linux AArch64 only, program mode only, no sandbox (operate with the process's permissions). |
| 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). |
| 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. |
| 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. |
| 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. |
| 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). |
1.2 Gate coverage
| Check | Wired into | Notes |
|---|---|---|
| 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. |
| OM-2 fixtures, C2 manifest (5,876 entries), mutants | seed/qualification/om2/gate.om | Run by authors (tutorial guarantee matrix); no gate manifest. |
| irwasm differential, mutant, refusals | seed/wasm/gate-irwasm.sh | Run by authors; no gate manifest. |
| SHA-256 and BLAKE3 parity, binding regeneration | tests/gates/run.sh om-units (OMEGA-OM-UNITS) | Needs ../omega-bridge at the lock. |
| Branch displacement (#669) | seed/qualification/security673/gate669.om | Branch-form slice on fix/security673-qualified; #669 open. |
| 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. |
| 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. |
1.3 Findings
- The OM-2 contract is cited as normative on main but is not on main. Fix in this PR: the three spec
files from
om2/contract@23fc7f5c9, byte-identical (sha256 recorded in RM1). - Two merged gates run nowhere automatically.
gate-irwasm.shand the OM-2gate.omare absent from every manifest, so a regression in OM-2 or irwasm is invisible toOMEGA-SEED. Fix is RM1 and BLOCKED_OPERATOR (touchestests/gates/). Rechecked 2026-11-10 at maina59a425b: OM-2gate.omis no longer absent: OMEGA-SEED runs it throughseed/host/check.shover 15 case files, and OMEGA-SECURITY758 over the relational suite;gate-irwasm.shis still in no manifest (grep -l irwasm tests/gates/*.gate tests/gates/run.sh seed/host/check.shprints nothing). - Open compiler defect #775. An empty
textpassed toview uchar *reports the following text's bytes (reported count 32 instead of 0, reported one623d440and stated to share main's code). Not reproduced in this audit (no builds were run). It is a memory-safety boundary: the callee reads bytes it was not given. Update 2026-11-08: fixed on main by #904 (e2662fff, 2026-10-28) with fixturess4-v-text-empty*and the mutantm-textleninseed/omc/om2/s4; both pass at omccfd96b48and now run inseed/host/check.shthroughseed/qualification/om2/every.sh. - Stale status text.
README.mdline 5 says the seeded compiler is in candidate branches (line 27 of the same file says it is on main since #696).OM2-TUTORIAL.mdsays the OM-2 stack is draft and main compiles OM-1 only.OM_COMPLETION.md(2026-10-23) quotes a 7,208-line compiler.seed/host/README.mdsays seventy original fixtures; #789 measured 62. This PR corrects the first two and marks the third as a dated snapshot; the fourth is corrected inside #789. Rechecked 2026-11-10 at maina59a425b:README.mdno longer says "candidate branch" (grep -n -i 'candidate branch' README.mdprints nothing), andOM_COMPLETION.mdnow carries a dated recheck of its compiler numbers.docs/one_layer/OM2-TUTORIAL.mdlines 8..10 say the OM-2 stack has merged and main compiles OM-1 and OM-2, andseed/host/README.mdline 235 says 62 original fixtures. - Diagnostics are numeric and overloaded. omc prints
omc: line N: error E; codes 1..24 and 27..29 exist (25 and 26 are unused). Inomc.om, error 7 is raised from 109 sites, 16 from 72 and 9 from 58, so one number names many different mistakes.om2 diagadds machine records (omc-diag 1 ...) only in OM-2 units. Rechecked 2026-11-10 at maina59a425b:seed/omc/error-codes.reglists codes 1..25 and 27..30, with 26 unused. I have not re-derived the per-code site counts. - Capacity and naming limits block real programs. Since 2026-11-11 omc has no table capacities
(OMEGESE 9.6: one growing arena, a usage alarm,
seed/omc/gate-usage.sh); before that omc held 4096 functions per unit; om4, which must compileomc.om, held 512 (raised to 4096 by thefeat/om4-fn-tabledraft), 16 registers with no spilling (error 12), 6 parameter slots. These are implementation limits, not language rules, and each needs a decision before 1.0 freezes them. Names are decided (Drake, 2026-11-08: long names belong in the final language): omc takes names of up to 63 characters for every declared name except abstract, layout, layout-field and IR-mode names, which stay at 8 (OMEGESE.md 9.2,seed/omc/gate-longnames.sh). - A second target is merged as a draft, not qualified. FR-9 (#923) integrates the historical
7eca2ac3fbackend into canonical base6999fa9e6; X86-LINUX.md records the design and actual unsupported paths. Its full fixture differential last ran EMULATED (QEMU) at62d1d0d6(seed/qualification/x86-linux/20261030-main-62d1d0d6.json): 15182 PASS, 0 FAIL, 2 NOT_RUN (QEMU invalid-fd ioctl artifacts), 222 EXCLUDED, aggregate verdict FAIL; native x86 is NOT_RUN. The earlier off-GitHub observation is not a current publication check or a completion claim. - No contracts in the forward compiler. omc has no
requires,ensuresorassert; the only contract syntax is in the legacy C front end, and OSC IR carries contract text as metadata. - Efficiency is not measured against an optimizing baseline. The only filed comparison
(
om/sha256/om2-evidence/s4/measure/RESULTS.txt) is OM-2 versus OM-1 plus a C adapter; arm C (pure C) is NOT_RUN. Hashes of 1 to 55 bytes were 6.5-12.9% slower (declared REGRESSION under the predeclared policy; ratios 1.065 to 1.129 in that file). - No heap and no imports by design decision. Decision 24 (no heap, no
free) and FR-3 (imports by digest, needs the OSC content-addressed unit store) are recorded blockers, not oversights.
2. Milestones
Each milestone lists current evidence, the gap, the acceptance gate (all items required), and its tracking issue. "New gate" means a gate that does not exist yet and is PROPOSED here; its first PASS must come with a negative control that fails.
RM1. Ground truth and gate coverage
Current: OM-2 and irwasm are MERGED with author-run evidence only; spec missing from main; #775 fixed (#904, see Known gaps item 3);
#789 open (fail-closed seed/secret gates). seed/host/check.sh runs every seed/omc/om2/*/*.cases file through
seed/qualification/om2/every.sh (case files PASS, mutant files catch every mutant, two negative controls),
plus the error-site fixtures and thirteen qualification files that pass on the committed compiler (baseline
guard/language/sha256/transform, the sec s0s2/s3s4/s4fuel/s5s7 and leak candidate files, selftest pass,
security673 relational consumer, l4-tripwire, qualification); the candidate files may skip only their declared
notrun cases (54, mostly waiting on the omega-bridge ABI v2 generator and the OM-2 SHA unit), and an undeclared
NOT_RUN is refused (third negative control); host run 2026-11-08 at omc cfd96b48: `OM2EVERY PASS files=30
cases=1554 skipped_declared=54 mutants=75. Found while adding them: security673 bindings.cases derive-wrong-image` fails (stdout differs
at byte 96): its stored evidence/run3/embed.bin is 2184 bytes from 2026-10-30, today's omc emits 2308 for
embed.om, so that pin is stale and needs re-deriving by its owner; the file stays out of every.sh until then. The OMEGA-SEED manifest
item below is still open.
Gap: a single gate run cannot currently show that every merged compiler path still works.
Acceptance:
spec/omegese-om2.md,-errata.md,-measure.mdon main with sha256 equal toom2/contract@23fc7f5c9:245bb74e...0881(contract),7b8c1ea5...d671(errata E1..E18),507702d0...7bad(measurement protocol). This PR carries them and the three digests were checked when copying.OMEGA-SEED(or a new manifest under the same owner) runsseed/qualification/om2/gate.omover everyseed/omc/om2/*/*.casesandseed/wasm/gate-irwasm.sh, and fails oninvalidornot_run> 0. Negative control: a fixture with a wrong expected status makes the gate exit nonzero. BLOCKED_OPERATOR.- #775 fixed with a fixture (empty text to
view uchar *returnslen0) and a mutant that restores the defect and is killed. - #789 resolved (merged or superseded) so a missing IR oracle can never yield a qualification PASS.
- (Retired, DRA-97, 2026-11-07: Crumbs left the active workflow, so
crumb verify .is no longer a 1.0 criterion.)
RM2. Executable contracts
Audited baseline (3364a1dfd): MISSING_IMPLEMENTATION in omc. OM-2 had one built-in invariant
(holds NAME dup32) with kept/erased reporting, fresh initialization tracking and layout checks.
The legacy C front end parses requires/ensures; IR v6 structured contracts remain draft PR #525.
Owners: #625 (semantics), #623 (per-lowering validation), #656 (contract-to-.om synthesis), #746.
Native implementation: PR #807 adds the versioned OMEGESE section 12 extension, default debug
checks, checked release erasure, constant-true proof, diagnostics and error 30. Source
00031d2456b2fe1e6ecdee6a0245d4c27b6749d2 is EXERCISED; see
evidence/CONTRACTS/20261026-00031d24/README.md for the complete manifest, C parity, bridge status,
mutants and historical-receipt controls. IR refuses these contracts rather than dropping them.
The pending guide update is omega-harness #27. This does not claim the remaining roadmap or
the separate structured-contract IR proposal is complete.
Acceptance:
- A versioned profile section (OMEGESE or
spec/omegese-om3.md, since OM-2 is frozen) defines contract words, their typing, evaluation order, purity rule (no effects, no calls with effects), and trap codes; a contract that cannot be checked is a refusal with a named obligation, never silently dropped. - omc lowers every contract to a runtime check unless a rule stated in the spec erases it; with
diageach check is reportedkeptorerasedwith its rule, asomc-checkdoes today. - Fixtures: each contract kind accepted and violated (trap code and site match), each refusal code, and a mutant per erasure rule (erasing a check that the rule does not justify must be caught).
- C1/C2 compatibility: every C2 manifest entry stays byte-identical; units without contracts compile identically.
- Function-mode contracts surface through the bridge as a status, never as undefined behaviour (RM7).
- IR mode either carries contracts in a version that checker2 reads, or refuses contract units with a named error (no silent omission).
RM3. Measured efficiency
Current: correctness gates only. Register allocation is a fixed 16-register pool with no spilling;
every float operation moves through v0/v1; OM-2 adds opt-in unroll, inline, folding inside expanded
bodies and constant-index check elimination. A fixed baseline protocol is being prepared on branch
perf/omc-efficiency-baseline (bench/omc_efficiency/PROTOCOL.md, kernels with C twins, an Omega
conductor, evidence under evidence/OMC-EFF-1/); no numbers are cited here until that evidence is
published.
Gap: no predeclared, paired comparison of omc output against an optimizing C compiler on the same kernels, and no optimization qualified against such a baseline.
Acceptance:
- A frozen protocol (sha256 recorded before data): kernels, input sizes, C twin and compiler flags, CPU pinning, interleaved paired arms, warm-up, repetitions, the statistic, and the regression policy. Statistics computed with Wolfram and quoted with the query.
- Baseline evidence: per kernel, output equality of the two arms first, then time, code size and compile time, all at one omc pin and one host.
- At least one optimization (for example a register allocator with spilling, which also removes error 12 as a user-facing limit) lands with: C2 manifest byte-identity for units that do not opt in, or a declared new pin with all fixtures equal in behaviour; birth fixpoint; a mutant that breaks the optimization and is caught; a paired A/B against the baseline under the same frozen protocol.
- Compile-time and compiler-memory bounds stay linear in output (OM-2 section 4 rule) and are gated.
- Results labelled MEASURED HOST AArch64; no GPU or cross-machine performance claim.
RM4. Memory model: heap and allocation
Current: decision 24 forbids a heap and free. Storage is stack new (4 MiB per function), global
pools (1 GiB total), process-local mappings through mapnew/maphold (128 slots, up to 64 GiB each,
accessed only through copy words). OSC IR v2..5 already specify arenas, pools and generation-checked
heap operations, but only in C. Related: #756 and draft PR #771 (bounded quantities and object
slices), #705, #759.
Gap: programs whose working set is not known at compile time (parsers, interpreters, aien-math)
must preallocate global pools or use mapping copies.
Decision (2026-11-11): run-time growth in its smallest form, recorded as decision 3 of
~/handoffs/yourtrained-cortex/briefs/decisions-20261111.md (the lead, under Drake's delegation of that
day; Drake can reverse it). This decision is the operator gate this milestone waited for. PROPOSED design,
independently reviewed: docs/RUNTIME-POOLS.md (run-time pools: global NAME T *, enlarge, len; no
free). Nothing built yet; the acceptance items below apply to its landings.
Acceptance:
- A decided model: the decision above. It settled as: decision 24 kept (no
free), with run-time growth added as a region without release, so the next bullet applies with no reachable release. The choice was between keeping decision 24 (documenting pools plus mappings as the 1.0 model with sizing guidance) or to replace it with a named model; options with existing specs were region/arena with whole-region release, and generation-checked handles matching IRHALLOC/HGEN/HFREEso checker2 can validate the lowering. - If a model is adopted: use-after-release, double release and stale generation are refused at compile time or trap with a named code before any access; exhaustion returns a status, never an overrun; fixtures, mutants that remove each check, and a fuzz differential against an independent model.
- Allocation is never implicit: no hidden allocation in any existing word (C1/C2 unchanged).
- Bounded quantities (#756): lengths, offsets and counts do not wrap silently; the
(2^64-8)+16counterexample in #756 is refused before addressing.
RM5. Strings and text
Current: text NAME "bytes" read-only literals (program mode only), uchar arrays, explicit lengths,
no terminators. OM-2 unsized views (view uchar *) and part give checked slices; this resolves the
"open arrays" blocker of OM_COMPLETION.md item 4 for parameters. There is no UTF-8 handling, no
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
path. Consumers that need more: #788 (TLS/HTTP/JSON proposal), omega-bridge text constants
(unsupported by its converters).
Acceptance:
- A seeded
.omtext unit (byte compare, search, split, decimal and hex integer parse/format with range refusal, UTF-8 validation with rejection of overlong, surrogate and out-of-range encodings), callable from OM-1.0 units, with no new compiler word unless one is proposed and gated. - Differential tests against an independent oracle on fixed and seeded random inputs, including empty, maximal and invalid inputs; UTF-8 vectors cite their source.
- Text in function mode: either supported with a stated ABI (RM7) or refused with a named error.
- #775 closed (RM1).
RM6. Modules and separate compilation
Current: no import; units compose by concatenation. OM-2 adds export fn (up to 32 entries) and
links separately compiled units only through bridge symbols that embed source sha256, omc pin and
profile. FR-3 (imports by digest) is blocked on the OSC content-addressed unit store. Capacity:
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.
Acceptance:
- A decided module form: digest-addressed import (source sha256 plus compiler pin), with a stated visibility rule and a refusal for a missing, stale or mismatched digest. If the unit store remains external, the decision records where digests resolve.
- Two separately compiled
.ommodules linked into one program-mode binary and one function-mode library, with interleaved calls, matching a concatenated single-unit build in behaviour. - Negative controls: wrong digest, wrong pin, wrong profile, duplicate export, cycle.
- (Amended 2026-11-11: the no-caps rule, OMEGESE 9.6, supersedes per-unit capacities.) No per-unit
capacity of omc's own; usage is watched by
seed/omc/gate-usage.sh, which alarms past its thresholds.
RM7. omega-bridge FFI
Current: ABI v1 (omega_<name>) and v2 (omega2_<name>, unsized views, out buffers, status 32
refusal before Omega code runs, status 33 reentry). omega-bridge main adb26cc6 prints
NATIVE-CALL PASS only after seven callers (c, c-bti, cpp, python, rust, zig, go) build
and run. omega-mv pins the older 431fff0a. Unsupported by contract: forged lengths, read-only memory
passed as edit, stack exhaustion (faults, not a status). Not present: shared objects and a general C
ABI (FR-7), callbacks into foreign code, floats and text through the C/Python converters.
Acceptance:
om/omega-bridge.lockat a bridge commit whosetests/native/run.shprintedNATIVE-CALL PASS, withtests/native/test_build_failures.shshowing FAIL and NOT_RUN for injected and missing toolchains.tests/gates/run.sh om-unitsPASS at that lock; regenerated binding byte-identical.- An ABI version document listing every supported parameter kind, status code and failure mode, with one executed refusal case per status and a version-mismatch case that fails at link time.
- Each RM2 contract violation and each trap reaches a caller in every qualified language as a status.
- Decision recorded on FR-7 (shared objects); if adopted, symbol versioning and a dlopen caller are exercised in each language.
RM8. Diagnostics and error messages
Current: one human line per refusal, numeric code only. One registry, seed/omc/error-codes.reg
(#797), lists every omc code (1..30; 26 has no site) and the irwasm codes 20..28 as a separate
namespace. gate15 refuses 33 minimal programs at their exact omc: line L: error C (every emitted code
1..25 and 27..30, 24 with its accept side, 30 including IR-mode contract lines from #791) and runs
seed/omc/codereg.om, which fails on a site without a row, a row without a site, an OMEGESE §9.14 /
§11.1 row that differs from the registry, or a registry case that did not refuse. Machine records
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 (2026-11-08): seed/omc/sitecov.sh
changes one fail N site at a time to code 97 and replays every refused tracked input; 480 of 584 sites are
reached at omc 564c5835 (195 before the fixtures in seed/omc/sites, now 289), and seed/host/check.sh fails if
that falls below seed/omc/sitecov.floor. The 104 unreached sites (list in its sites.tsv) are the fixture backlog.
Finding while writing them: error 4 ("the line ends where a word or value is needed") names the line AFTER
the short line whenever a newline follows it (fn main to int + x = + newline reports line 3; without the
final newline, line 2), in OM-1, OM-2 and IR mode alike; gate15 e4_line_ends pins the late number.
Proposal (not applied, it changes pinned compiler output): report the line of the last token read.
Acceptance:
- A code registry in the language doc: every code, its meaning, the obligation, and one minimal refusing fixture each, with gate15 extended to every code (including 24, 27, 28, 29).
- Overloaded codes split or given a stable sub-reason in the machine record, so each emitting site in
omc.ommaps to exactly one documented reason; a coverage check lists any emitting site without a fixture. - A human-readable message for each code (stderr text, still one line), with stdout unchanged and the
existing
omc: line N: error Eprefix preserved for current consumers. - Diagnostic records available in every profile of 1.0 (not only
om2 diagunits), keyed to the input sha256 and compiler pin.
RM9. Targets
| Target | State | 1.0 gate |
|---|---|---|
| AArch64 Linux static ELF (program and function mode) | MERGED; host EXERCISED by OMEGA-SEED | QUALIFIED by RM1's full gate at the release commit |
AArch64 UEFI PE32+ (target a64efi) | IMPLEMENTED; EXERCISED on one physical DGX Spark and under QEMU/EDK2; design, firmware words and evidence | tests/a64efi/run.sh virtualized under QEMU/EDK2; one physical machine is not a multi-machine qualification |
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+ |
SPIR-V 1.0 OpenCL Kernel via OSC IR v1 (irspirv) | IMPLEMENTED and CPU EXERCISED in #804; ABI, parity and toolchain | 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. |
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 | 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. |
| x86-64 Linux static ELF | DRAFT, merged as #923 on canonical base 6999fa9e6, using historical 7eca2ac3f; qualification tracked in #629; design and unsupported paths | 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 |
| 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 |
| RISC-V RV64GC (#630), ISA/ABI capability profiles (#628) | PROPOSED | Out of 1.0 unless a decision adds it |
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 |
Acceptance: the 1.0 target list is a recorded decision; every listed target has its own gate in the manifest set, a negative control, and an evidence class (HOST, EMULATED, PHYSICAL-GPU). A target not listed is not supported, regardless of what compiles.
RM10. Compiler trust and C retirement
Current: birth fixpoint, om4 as referee, seed/check/audit2.sh instruction referee, C referees for
gate-ir, gate17 differential fuzz against the pinned compiler. Open: #650 diverse double compilation,
#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
seed hex, #726 removing the legacy C compiler only after consumer cutover (drafts #761, #762, #763,
#765, #751 port parts of it).
Acceptance:
- #650: an independently built compiler path reproduces
seed/out/omcbyte for byte, with the independence argument written down; a planted miscompile in one path is detected. - #669 closed with every branch form and displacement extreme covered.
- #726: each removed C component has a qualified
.omreplacement, its consumers cut over, and an active-tree audit showing no fallback remains; the C referees that gates still need are declared as qualification oracles outside the delivered closure, per #599.
RM11. Stability guarantee
Current: profiles are frozen documents (OM-2 says a change needs omegese-om3.md); the C1 (meaning)
and C2 (bytes, per manifest entry) compatibility rules exist for OM-1 to OM-2 only. The compiler pin
changes with every compiler commit and consumers pin by hash. There is no versioned release and no
deprecation policy.
Acceptance:
OM-1.0profile document: the union of OM-1, OM-2 and the RM2/RM5/RM6 additions that pass, with every word, limit and code; anything not in it is unsupported.- Written promise for 1.x: a 1.0 program keeps its verdict, error code and line, stdout, exit status, trap code and order (C1) on every later 1.x compiler; machine-code identity (C2) is promised only where stated. Changes outside the promise need a new profile.
- A conformance suite (the C2 manifest plus RM1..RM8 fixtures) that every 1.x compiler must pass, run in the gate set.
- A tagged release: omc binary sha256 recorded before any rebuild, source commit, birth log, and the
gate receipts of RM1..RM10, content-addressed under
evidence/.
3. Order
RM1 first: it makes every later gate meaningful. RM8 and RM6 decisions early, because RM2, RM5 and 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 text unit uses caller-provided buffers. RM3's baseline can run now; its optimization step waits for RM2 so contracts and optimization do not edit the same compiler paths at once. RM9 and RM10 run in parallel on disjoint paths. RM11 is last and freezes only what passed.
4. Tracking issues
| Milestone | Tracking issue |
|---|---|
| RM1 Ground truth and gate coverage | #790 |
| RM2 Executable contracts | #791 |
| RM3 Measured efficiency | #792 |
| RM4 Memory model | #793 |
| RM5 Strings and text | #794 |
| RM6 Modules | #795 |
| RM7 omega-bridge FFI | #796 |
| RM8 Diagnostics | #797 |
| RM9 Targets | #798 |
| RM10 Compiler trust and C retirement | #799 |
| RM11 Stability guarantee | #800 |
4a. Networking and TLS follow-on
The bounded HTTP/JSON work tracked by #788 uses existing Linux-arm64 socket words, with additional bounded host operations proposed in PR #808 (pending). It does not add TLS. Public traffic terminates TLS at the hub's nginx; authorized internal services use plain HTTP on loopback or over the WireGuard tailnet. This transport arrangement is not a claim that Omega implements certificate verification or that plaintext is suitable on arbitrary networks.
TLS 1.3 client: PROPOSED, separate OmegaTLS lane. Implement record framing, handshake,
transcript hashes, key schedule, authenticated encryption, signature verification, and bounded
X.509 verification in .om. The minimum contract verifies a chain to an explicitly configured
trust store, hostname, validity interval and certificate constraints, and fails closed on every
unsupported or invalid input. There is no insecure verification toggle, implicit trust-on-first-use,
or silent downgrade. Trust-store provenance and trusted wall-clock requirements are explicit inputs.
No TLS 1.2, 0-RTT, or session-resumption claim is included without a separate replay/security contract.
Acceptance gates, all required before a consumer cutover:
- Published cryptographic known-answer vectors and differential tests against a pinned independent TLS implementation; document exact versions and oracle-only roles.
- Positive and negative certificate chains: hostname mismatch, expired/not-yet-valid certificates, unknown issuer, invalid signature, wrong key usage/EKU, path constraints, malformed DER, and unsupported critical extensions all refuse without sending application data.
- Fragmented/coalesced records, partial I/O, handshake and read deadlines, authenticated close, truncation, corrupt tags, altered handshake transcript, replay and sequence exhaustion tests.
- Deterministically seeded malformed-record/certificate fuzz corpus, retained failures, and a verification-bypass mutant that the gate demonstrably catches.
- Descriptor/memory lifecycle checks and a read-only end-to-end HTTPS GET with status, headers, bounded body, and an independently verified certificate identity.
- Independent protocol/cryptographic review plus seeded compiler/referee and consumer parity evidence at exact source and compiler pins. Host tests do not qualify hardware or deployment.
The GitHub API pusher and catalog remain recorded host dependencies until this separate TLS implementation passes these gates and each consumer completes its own exercised port. nginx termination does not replace outbound GitHub certificate verification. This item does not silently add a new RM milestone or declare Omega 1.0 ready.
5. Keeping this file honest
Update a row only with a link to the evidence that changed it (commit, receipt, gate log). Do not restate drifting numbers that aien-architecture owns. When the compiler pin moves, refresh section 1.1 and the omega-harness skills in the same piece of work.