interplane.Get Omega
Read in your language

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

[OMEGA-UNIVERSAL P1] Import/export a restricted Rust subset with ownership-aware semantics

Open · #626 · open 2026-10-22 21:44 UTC

Imported from GitHub aien-dev/omega-mv#626, by drakestapleton

drakestapleton wrote on 2026-10-22 21:44 UTC

Parent https://github.com/aien-dev/aien-architecture-mv/issues/295. Prerequisites https://github.com/aien-dev/omega-mv/issues/625, https://github.com/aien-dev/omega-mv/issues/621, https://github.com/aien-dev/omega-mv/issues/622, https://github.com/aien-dev/omega-mv/issues/623.

Baseline: Omega src/compiler/osc_check.c already models own/borrow constraints, osc_ir.h uses canonical 64-bit scalar values and reference handling, and tools/omegese/omegese.c exposes limited own/edit/view arrays. Existing Rust code in aien-sovereign-core-mv/crates/ may serve as corpus/oracle. Omega does NOT yet translate general Rust.

Implement: Versioned Rust import adapter using a pinned and licensed parser/compiler frontend with an explicit supported subset: pure fixed-width arithmetic, typed functions, bounded branches/loops, stack-local values, and deliberately scoped borrows. Export valid restricted Rust from source-aware Omega semantics. Preserve external Rust snippets verbatim in a sidecar for text replay. Reject or defer macros, unsafe, lifetimes requiring higher-order borrow constraints, async, traits/generics, FFI, atomics, shared mutability and panic handling until specified. Do not turn Rust ownership into C pointers without proving compatibility.

Acceptance: >=30 positives including wrapping_add and overflow mode fixtures plus >=30 ownership/borrowing/refusal cases, compiler agreement with rustc pinned toolchain; property-fuzz inputs, independent OSC interpreter comparison, proof-tier receipt per translated function, no unsupported Rust admitted; unchanged historical OSC digests. Report true native/QEMU platform of each run. Research: https://doi.org/10.1145/3571220 and https://doi.org/10.1145/3519939.3523703.

drakestapleton wrote on 2026-10-31 00:11 UTC

Public C→Rust migration objective — existing Rust owner retained

Drake has directed that the migration should help external projects transition from C to Rust. Product acceptance is now tracked in https://github.com/aien-dev/babel/issues/4, consuming this issue, #622/#623/#624/#625/#631/#637 and the existing Omega Bridge. No duplicate translator or runtime is requested.

Priorities for this lane: editable standalone Cargo output; ownership/bounds/lifetime-aware safe Rust core; explicit ABI/unsafe boundary contracts; separately reviewed compatibility fixes versus source-bug remediation; debug/release and target qualification; and preservation of source provenance. Generated Rust is the intended deliverable; first-party translation implementation remains .om.

Source-specific qualification item: PR #839 at 656192e00368c9443370f0adbc4f89309da4bd5c reports debug Rust overflow checks. rust-i64-export.om emits ordinary signed +/−/* for attr 6. Before broader acceptance, qualify release and explicit overflow-check settings and distinguish equivalence on defined C inputs from the selected checked-error contract. This is a gap to qualify, not a claim that every current translation is incorrect. Its existing bounded S2 results remain scoped and unchanged.

First public milestone: one complete small C library exported as a maintainable Rust crate, with upstream tests plus independent validation and no hidden original-C/Omega execution dependency for the converted implementation. Reconcile current owners/branches, retain required existing profile gates, and open implementation PRs only when tested and ready for review/merge; no placeholder drafts. This comment adds acceptance direction only; no code was changed or tested.

Sign in to comment