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/43d7e0aaa751fdbf # 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 # [OMEGA-UNIVERSAL P0] C subset importer/exporter with measured Omega round trip Open · #622 · open 2026-10-22 21:42 UTC Imported from GitHub aien-dev/omega-mv#622, by drakestapleton drakestapleton wrote on 2026-10-22 21:42 UTC Parent: https://github.com/aien-dev/aien-architecture-mv/issues/295 Baseline: `src/compiler/osc_parse.c` parses OSC, not C; `src/compiler/osc_front.c` lowers OSC; `src/compiler/osc_ir.h` defines bounded integer CFG; `tools/omegese/omegese.c` is not a C importer; `src/polyglot/omx_lang.h` registers kernels rather than translating sources. Build a frontend adapter instead of rewriting any of them. Scope: Choose a narrow sequential freestanding C subset (fixed-width unsigned integers, pure arithmetic, function parameters/return, bounded control flow and simple local values), pin Clang AST or another concrete parser, import to source-aware layer -> existing OSC where legal, and generate equivalent C from that same defined subset. Preserve original bytes for source-text replay; generated C only promises bounded behavior equivalence, not comment/format/idiom recovery. C signed overflow, undefined behavior, aliasing, volatile, pointers, dynamic memory, callbacks, preprocessing/macros, varargs and I/O are initially out of scope or explicit runtime boundaries. Acceptance matrix: 30 positive fixtures including u8/u16/u32/u64 overflow, 30 negative fixtures; C -> Omega -> C compiler executes identical output/trap in scope with independent GCC/Clang oracles, compiler/interpreter agreement on AArch64 and x86 as available, strictly reported gate vs NOT_RUN. Property-based fuzz (>=10k valid programs, declared seeds/bounds); mutation creates at least five detected semantic mismatches; cross-process identity stable. Tests do not mistake bounded examples for a general C converter. Prerequisite: semantics tier spec & source-aware dialect issue under this parent; reuse proof gate in aien-architecture-mv #248. drakestapleton wrote on 2026-10-22 23:11 UTC Implemented source-aware semantics and a first bounded C-import slice; this is not programme completion. - #621 handwritten seeded Omega codec/API source: `cd2c41f3c697524629585b2a228e2f0ab5b99c45` . It implements versioned typed upper records, profile/effect/alias/obligation validation, separate semantic/provenance identities and byte-exact source replay without changing existing OSC/checker2 formats. - #622 native handwritten Omega lexer/parser/upper-envelope producer: `50f75da28845f21b118bcf8e3499b96c35ddb587` , branch `universal/622-c-u64-import`. Supported first profile: one pure u64 function, zero through six inputs, decimal ULL literals, parentheses, +,-,*. Precedence/associativity, modulo arithmetic and input slots are explicit. Names/preprocessing/resource bounds are deliberately narrow; unsupported forms refuse, not approximate. Precise profile and teaching guide . Published complete cold replay, raw values, source/upper fixtures, compiler/tool/hardware identities and preserved RED controls . Evidence-only successor `3b86bb2cbe41c8871344fd87feccaebf50c56939` has no runtime-source changes from the reviewed target. Remote inventory was read back and byte-checked. A fresh checkout of the committed source, with no build directory, reconstructed through the existing immutable source-only bootstrap and executed sequentially: - C import gate: 35 programs,48 refusals,817 native-GCC behavioral observations,105 existing native #621 decode/replay/legality requests;15 boundary/public controls;five successfully compiled semantic mutants caught by real differing values. - Full #621 gate: 10000 unique valid +100000 unique malformed units,131000 actual consumed-input-hash-checked structural requests, plus capability/edge/public/direct transactional controls,nine compiled mutants and60 unchanged OSC fixtures through existing decoder/checker2. Exact sourceHEAD is recorded. The native codec artifact hash consumed by the C gate matches this full gate. - Existing base `make test`: 14/14 gates and both reference demonstrations pass, using exact physics pin `6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf`. Real pre-freeze semantic defects were reproduced against GCC: octal010 meant8 in C but10 after import; backslash/trigraph line splicing meant1 in C but3 after import. The corrected first profile explicitly refuses those source forms before publishing an upper unit. Original REDs remain published. Unused named parameters are valid C and intentionally tested; only that oracle warning classification was corrected, with no fixture/assertion removed. Scope: physical Linux AArch64 host correctness evidence. The Omega-native importer and semantic codec executed; the imported C computation was compared through an independent development upper evaluator, not yet lowered/executed through an Omega CPU backend. Python build/dispatch orchestration is disclosed, not called a pure-Omega public command boundary. No exporter, other widths/control flow,10k-C-program corpus,source-to-OSC lowering,checker-bound translation proof,Rust/Python adapter,x86/RV64/GPU qualification or signed production authority is supplied by this slice. Hash equality is identity, not equivalence proof. Independent combined source review L602 is running against exact #621 `cd2c41f3` and #622 `50f75da28845f21b118bcf8e3499b96c35ddb587`. Findings, sole Renda publication and exact-head Spark/hosted verification remain acceptance gates. No issue closed or merge approval asserted. Next executable package after review disposition: C exporter/round-trip qualification and continued #623 obligation/receipt binding, without bypassing the existing checker. drakestapleton wrote on 2026-10-22 23:18 UTC Independent source review completed: PASS for the explicitly bounded #621 source-aware codec and first #622 C importer; no blocking findings. Published original report, reviewer raw C gate/boundary/mutant records and parent disposition . Exact reviewed functional pins: #621 `cd2c41f3c697524629585b2a228e2f0ab5b99c45`, #622 `50f75da28845f21b118bcf8e3499b96c35ddb587`. Report SHA256 `48efc75073aa1e501d3a694c19b28bb0378f99da87491744ae30e4038499965a`; controls SHA256 `caad8a85060ec84e827a7211b8cfe2f68b021988015156cef414292987dae873`. Reviewer independently built in a private archived snapshot and executed 35 positive programs,48 refusals,817 native-GCC comparisons,105 existing #621 API requests,15 boundary/public controls and five successfully compiled semantic mutants. Builder symlink/special-file refusals preserved external sentinels. The full 131000-request #621 suite was not redundantly rerun by the reviewer; its exact committed-source cold receipt was inspected, with fresh focused review/probes separately reported. Parent verified original report/control hashes, actual raw reviewer results, all10 recorded consumed source-closure hashes against the frozen author replay, and equality of reviewer/author native importer artifact hashes. The private snapshot's local git metadata is explicitly not the upstream source pin. This evidence-only commit changes no runtime source. The independent-source-review hold is cleared only. No whole-#622 completion, C exporter/roundtrip, new widths/control flow, imported computation through Omega CPU lowering, translation proof, signed Spark/hosted gate, PR merge, other CPU/GPU support or production authority is inferred. #625/#621 remain dependency-ordered inputs to the sole Renda publisher; full programme remains open and no issue is closed. The broader #622 exporter/corpus/lowering work remains on its existing branch/owner rather than a duplicate worker. Sign in to comment