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/blob/main/MIGRATION.md # 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 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: Area Legacy now Notes `src/` 272 C, 254 headers runtime, OSH, authority, compiler C path, numeric kernels, services `tests/` 238 C, 35 headers, 3 Rust project test harnesses and differential twins `tools/` 51 C, 10 headers emitters, acceptance helpers, build tools `bench/` 6 C benchmark drivers `seed/` 3 C reference runner, sm121 listing, remaining seed oracles `seed/omc/omc.om` 1 `.om` production compiler builds all other first-party `.om` Cross-repo Rust/C `spark-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 - 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. - 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. - 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. - 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/`). - 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/`. - 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. - 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. - 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. - Cross-repo services: migrate the named repositories under their own owners and ledgers. ## Cutover rules - One owner and exact paths per component; no second compiler, runtime, authority or store. - Freeze source/seed/compiler/binary/config identities and record raw commands and exits. - Qualify the replacement, cut every consumer over, then delete the superseded implementation. - Preserve Git history and immutable evidence; do not rewrite history or keep dead source active. - Missing hardware, an independent compiler route or an authority owner is `NOT_RUN`/`BLOCKED`, never `PASS`. ## 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 - Multiple source files/imports for service-sized programs. - Structured records and bounded maps for policy, grants and receipts. - Durable atomic state primitives beyond single-file create/rename. - Process supervision/process-tree budgets for the authority dispatcher. - Threads or event loops for long-running services (the current host words are synchronous). These are dependencies for the existing compiler/runtime owners. They are not exemptions for keeping C or Rust.