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

branch main Branches Tags History

omega-mv / MIGRATION.md

103 lines · 7085 bytes Raw Blame History Source

Replace legacy first-party code with seeded .om

Directive: the final state is seeded .om throughout the project's first-party implementations, including runtime, compiler, services, build/release tools, automation and project-owned tests. There is no permanent legacy, wrapper or dual production path. For each component: implement and qualify its .om replacement, cut consumers over, then delete the superseded implementation and its obsolete dependencies. Consult old source in Git history; do not keep an active legacy directory.

Independent third-party oracles may stay outside the delivered source/build/runtime closure with their identities disclosed. Project-authored oracles are migrated too.

Current inventory

This checkout, counted at the cutover commit:

AreaLegacy nowNotes
src/272 C, 254 headersruntime, OSH, authority, compiler C path, numeric kernels, services
tests/238 C, 35 headers, 3 Rustproject test harnesses and differential twins
tools/51 C, 10 headersemitters, acceptance helpers, build tools
bench/6 Cbenchmark drivers
seed/3 Creference runner, sm121 listing, remaining seed oracles
seed/omc/omc.om1 .om production compilerbuilds all other first-party .om
Cross-repoRust/Cspark-rsi-mv, open-humanity, aienux, aien-sovereign-core-mv

The count is large enough that this is a phased replacement, not one change. Every phase ends with deleted legacy code and qualified consumers; a plan or a passing unit test is not a cutover.

Order

  1. Stop new legacy. New first-party implementation, runners and tests are seeded .om. Missing facilities go to the existing compiler owner, not a new C/Rust/Python helper.
  2. Seed test and tooling surface (pilot complete): remove gcc-built C twins; use committed expected outputs and data fixtures; then replace seed/check/runner.c, seed/sm121/sm121list.c and the remaining seed shell coordinators with .om coordinators.
  3. Authority and effect runtime: src/runtime/rx_capq, rx_caproot, rx_semantic, src/osh/host/osh_exec.c and their consumers. The .om replacement must carry grant identity, generation, revocation, durable state and dispatch; the strict execpure launcher is the first effect boundary. Delete the C authority path only after every consumer is cut over. Status: the action, delegation and reuse transition contracts are promoted to seed/authority/ and pass 219/074/074 checks; the durable 32-word record store with fsync, atomic rename and torn-file refusal passes 77 checks. The dispatcher persists in-flight, runs a synthetic effect, records performed/unknown, and marks unknown when the generation changes during the effect (37 checks, including /bin/true and a static strict-profile exec). Real-effect dispatch, a cross-process lock and consumer cutover are next; the C owner remains active.
  4. Trace and privacy (#607): rx_argus, trace producers and the Open Humanity consent lane. Status: the local .om segment writer (seed/trace/segment.om, #608) is qualified by seed/trace/gate.sh (71 checks and four source mutants: CRC, torn tail, alignment, exclusive create; quarantine and recovery). A one-shot .om SHA-256 (seed/trace/sha256.om) passes five standard vectors and runs in the security673 qualification gate. Exact-byte consent/export (OHCN v1 signed consent + OHTX v1 exporter over AITR v1 segments), Personal Data Firewall enforcement, the exact-byte Open Humanity UDP wire codec (0x4f v1, bincode 1.3 LE, keyed BLAKE3 relay cookies, Ed25519), and the fail-closed trace receiver are now implemented and host-tested in pure seeded .om (protocol/open-humanity/trace_contract.om, trace_contract_test.om, trace_receiver_main.om, and mirrored into open-humanity/om/).
  5. Evaluation and promotion (spark-rsi #67): replace the Rust promotion/evaluator gate with the .om owner; keep sealed tasks outside the proposer's writable surface. Status: the pure-Omega 6-layer evaluator, canary, rollback (core/rsi/om/eval/), governance envelope, SHA-256 Merkle ledger, and Version 2 ECDSA P-256 signed receipt verifier & promotion gate (core/rsi/om/governance/receipt_v2.om, v2_main.om, v2_test.om, byte-for-byte spark-rsi.evaluation-receipt.v2 digest and FIPS 186-4 P-256 parity with spark-rsi-mv) are implemented, host-tested, and mirrored into spark-rsi-mv/om/.
  6. Device and DMA (#672): .om device contracts and queues. Firmware and hardware are outside the delivered source closure; physical qualification stays NOT_RUN until reserved hardware is exercised.
  7. Build, release and automation: Makefile targets and shell gates become .om coordinators; remove shell/Python orchestration from the delivered path. Status: native chdir (code 138) landed with seed/host/tests/chdir.om; the .om host-gate coordinator seed/host/gate.om replaced seed/host/gate.sh and runs all 39 native host fixtures plus generated identity programs, with an optional candidate-compiler argument. Remaining shell release/packaging targets are still open.
  8. Compiler trust: the C reference path is replaced or demoted to an external oracle outside the closure; add the independent route required for diverse double compilation.
  9. Cross-repo services: migrate the named repositories under their own owners and ledgers.

Cutover rules

Pilot completed

seed/rung4/tests/{fib,sort,bytecopy}.c were gcc-built twins of the .om programs. They are deleted. fib.want, sort.want and a deterministic in.bin/bytecopy.want are committed; gate4.sh now compares the .om output with those fixtures and does not invoke gcc for the program tests. gate4 passes with 217 cases, including the expected-output checks. The C reference runner remains for a later phase because it links the legacy C path and is an oracle, not a production component.

Known .om capability gaps for later phases

These are dependencies for the existing compiler/runtime owners. They are not exemptions for keeping C or Rust.