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/issues/fa259d309b3ce37d # 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 # [OM-C-CUTOVER] Remove legacy Omega C compiler/encoder/runtime/tests only after verified .om consumer cutover Open · #726 · open 2026-10-25 02:17 UTC Imported from GitHub aien-dev/omega-mv#726, by drakestapleton drakestapleton wrote on 2026-10-25 02:17 UTC ## Reproduced starting point At aien-dev/omega-mv main `a0eafa39ac9a92786dac68f7aa6d8564a28fa981`, `src/compiler/` has 27 first-pass C/C-header files (`osc_a64`, `osc_check`, `osc_front`, `osc_interp`, `osc_native`, `oscc_main`, etc.). Separate current C owners include `src/checker2/`, `src/omega_blackwell_codegen*`, `src/omega_blackwell_encoder*`, `src/runtime/`, `tools/` and `tests/`. A preliminary filtered tree inventory finds hundreds of active-path C/H files, not an audited set of live dependencies. Omega #599 owns global native migration; architecture #300 owns the per-path transitive inventory. ## Purpose and disjoint ownership This is a real consumer cutover, source retirement and negative gate, NOT a new compiler initiative. Existing #621 source-aware typed .om IR, #623 translation verification, #625 semantics, #636 host interfaces, #638 CPU-to-GPU, #650 compiler trust, #651 semantic reuse and #660 seed-device integration retain their file ownership. No competing compiler, IR, runtime or independent judge. ## Implementation steps - Record every compiled legacy implementation and test/tool as a versioned row: exact commit, file path, build target, exported ABI/effect contract, transitive consumers, .om successor owner, source and output tests, numerical/capability boundary and planned deletion PR. Name missing native language features as requirements of sole seed owner. - Migrate one bounded consumer family at a time: source parser/checker CLI; machine encoder and verifier; runtime/allocator/platform; GPU command/kernel emit; tests/build/installer. The product-authored logic must be handwritten seeded .om with qualified AArch64 and sm_121 generation. External libc/kernel/firmware are disclosed external host/hardware dependencies, not project C wrappers. - Freeze semantic, IEEE/NaN/overflow, endianness, trap, aliasing, atomic ordering, replay, error and numerical conventions. Test native .om outputs against independently executed existing baselines; preserve full model golden outputs when semantically equivalent. - Perform real dual-path differential testing only during migration and only in explicitly isolated test harnesses. After consumer cutover and owner-reviewed release, delete superseded C and H, .osc and handwritten-hex implementation paths and remove linked first-party runtime, build and test dependencies. No source copy under `legacy/` or hidden runtime C fallback. - Rebuild fresh from source under #725's approved bootstrap trust route. Audit executable imports and process tree, verify full signed source/compiler/binary receipts and rollback before any live serving change. ## Acceptance - Complete, source-pinned C/H/OSC/handhex inventory with explicit denominator; new owned issues for any uncovered active owners, no unowned bucket. - Native `.om` reproducible replacements and discriminating positive and negative compilation and execution tests. - Real consumer cutover and separate deletion PRs with transitive dependency/ELF/process closure proof. Code size "0 C" reported only when actual first-party C semantics absent, not when a wrapper was renamed. - Qualified seed/compiler source correspondence and independent per-lowering/CPU/GPU numerical acceptance; report available machine receipts vs NOT_RUN. - Independently reviewed final source and clean checkout; no unauthorized 35B restart, kernel module replacement or firmware update. Parent links: architecture #300 , architecture SEM-0 #315 , new enforced closure #316 , seed hex #725 . Inactive third-party code or immutable historic source stays historical, separately classified. Respect worktree leases and existing desk authority. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:16 UTC Recovered GitHub comment. Original comment `6400811692` GpuMathPort from the orphaned specs is a draft PR: #751. It covers `src/omega_gpu_hostmath.c`, `omega_gpu_fp8_pack.c` and `omega_gpu_fmt.c`, ported to `om/gpumath/gpumath.om`. - Parity: in a fresh-clone rerun, every exhaustive and corpus stream is byte-identical to the C object built with the product flags. That includes the 9 fused multiply-adds, which are reproduced exactly. - Mutants: 13 of 13 killed. - Bindings: 15 of 15 functions are bound by the omega-bridge generator, `native.om`. - Not done: the C adapters and removing the objects from `libomega_gpu.a`. - Limits: listed in the PR. - Review: an independent review is running. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:29 UTC Recovered GitHub comment. Original issue #726 · posting receipt `53da1220f3ca67347cb3a1507b7d7c3f57ca042f00cbfbb86a92238f476cc8b9` ## Consumer map of `src/compiler/` at main `a0eafa39` (2026-10-24, from a clean `git archive`, build graph read, nothing built) Source: 14 `.c` + 13 `.h` + `model/` (osc_model.c, osc_model_gen.c): 7,605 lines of C (`osc_check.c` 2,289, `osc_parse.c` 1,149, `osc_ir.c` 907, `osc_lower.c` 721, `osc_cg.c` 582, `osc_a64.c` 330, `osc_rt.c` 319, `osc_interp.c` 240, `osc_lex.c` 207, `oscc_main.c` 170, `osc_alloc.c` 109, `osc_front.c` 103, `osc_diag.c` 69, `osc_native.c` 63). Link-time consumers (all through the same pattern `$(filter-out src/compiler/oscc_main.c,$(wildcard src/compiler/*.c))`): Build rule Products that link the C compiler `mk/compiler.mk` (OSC_LIB) `oscc`, the compiler test binaries `Makefile:2097` (RESOLVE_OSC_LIB) `omega_resolve` / receipt path (`src/omega_resolve_osc.h`, `src/omega_vcstore.h`) `mk/omega-emit.mk` `omega_emit`, `x445`, `typediff` (the Omegese next/complete oracle, §6 of OMEGESE.md) `mk/checker2.mk` `osc_emit_ir` producer for the checker2 differential (checker2 itself links none) `mk/one-layer-acceptance.mk` `ola_runner` `mk/physics0.mk` physics0 `pd0_osc` tests `mk/osh.mk`, `mk/synapse.mk` OSH and Synapse hosts (`src/osh/host/osh_core.c`, `tests/synapse/test_syn_codec.c`) `seed/rung3/gate3.sh:41`, `seed/rung4/gate4.sh:38` the seed referee: gate3/gate4 compile the C path as the third referee for the om3/om4 mutant checks Header consumers outside `src/compiler/` (count of `osc_*.h` includes): tests/compiler 4 files, tests/osh 2, tests/physics0 1, tests/synapse 1, tests/one_layer/acceptance 2, tests/checker2 1, tools/omega_emit 2, tools/exp445 1, `src/osh/host/osh_core.{c,h}`, `src/oscv_main.c`, `src/omega_resolve_osc.h`, `src/checker2/c2_ir.h`, `src/checker2/c2_check.c`, `tests/test_omega_resolve.c`. What this means for the cutover order. Two consumers are not "old tests": (1) the seed gates use the C compiler as the independent referee that catches wrong-word mutants of om3/om4 (`gate5.sh` pattern); retiring it before a replacement referee exists weakens #650, so the DDC/second-referee question (#650, #660) is a prerequisite of this issue, not a parallel lane; (2) `omega_resolve` links it for OSC receipts, which the Cortex/receipt path reads. The forward `.om` compiler already covers the language (OMEGESE §9-10) but has no `ir` consumers for `omega_emit`/checker2 beyond the experimental §11 IR mode. Proposed slice order (no edits made here): A. IR-mode parity: `seed/out/omc` `ir` output vs `osc_emit_ir` on the checker2 corpus, so checker2/omega_emit can switch producer. B. Replace `oscc` in `omega_resolve` receipts behind a pinned-digest cutover. C. Second referee for the seed gates (an independently built omc, #650) so gate3/gate4 can drop the C path. D. Delete `src/compiler/` and the eight build rules in one reviewed PR, with the zero-legacy checker (aien-dev/aien-architecture-mv#317) confirming the rows are gone. Refs aien-dev/aien-architecture-mv#300 (M0/M3), #650, #660, #725. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:30 UTC Recovered GitHub comment by @aien-spark on 2026-10-25T03:34:17Z. Original comment `6393006189` Product-closure fact from the built artifact (aien-dev/aien-architecture-mv#318): the live 35B server's `libomega_gpu.a` (bin-`19173f9e`) has 87 members and none from `src/compiler/`. So the C compiler's remaining consumers are tooling (`omega_emit`, `omega_resolve` receipts, checker2 producer, OSH/Synapse hosts, physics0 tests) and the seed gates' referee role; it is not in the served product. That makes slice C (second referee, #650) the only true blocker for deletion; slices A/B are tooling cutovers. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:30 UTC Recovered GitHub comment by @aien-spark on 2026-10-25T11:21:30Z. Original comment `6396992915` C→Omega programme ledger (2026-10-25). Scope = the 87 C files / 36,208 lines in the live aien-serve-http closure (aien-architecture-mv ledger #318). Classification by host-purity (no ioctl/nvrm/mmap/session/submit references): - 52 host-pure files, 17,647 lines → ported directly with C-oracle byte parity, no GPU needed. - 34 GPU-touching files (session, cmdlist, submit, *_api, graphs, platform_linux, accelerator_world) → need an .om launch path (mapped memory + devctl exist on main per seed/host/MAPPING.md; GPFIFO submit does not). Merged: om/blake3 (#732). In flight (one PR each, no label until fresh-clone parity rerun): sha256; gpumath (hostmath+fp8_pack+fmt); aarch64 enc/dec; codec+canonical+validate; receipt; vector+evidence; blackwell encoder+qmd+matmul; codegen.c; gemm family (gemm,tc,tc2,qmma,bf16); attn family (attn,attn256,pattn,pattn256); moe family (moe,moe2,router,tern,qg); dec family (dec,gdn,pf,pfhost). That is 36 of the 52 host-pure files. Deletion of each C object from libomega_gpu.a is gated on omega-bridge #8 (native call ABI v1), under fresh review now. Sign in to comment