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 Rendered 1 # Replace legacy first-party code with seeded `.om` 2 3 Directive: the final state is seeded `.om` throughout the project's first-party implementations, 4 including runtime, compiler, services, build/release tools, automation and project-owned tests. 5 There is no permanent legacy, wrapper or dual production path. For each component: implement and 6 qualify its `.om` replacement, cut consumers over, then delete the superseded implementation and its 7 obsolete dependencies. Consult old source in Git history; do not keep an active legacy directory. 8 9 Independent third-party oracles may stay outside the delivered source/build/runtime closure with 10 their identities disclosed. Project-authored oracles are migrated too. 11 12 ## Current inventory 13 14 This checkout, counted at the cutover commit: 15 16 | Area | Legacy now | Notes | 17 | --- | ---: | --- | 18 | `src/` | 272 C, 254 headers | runtime, OSH, authority, compiler C path, numeric kernels, services | 19 | `tests/` | 238 C, 35 headers, 3 Rust | project test harnesses and differential twins | 20 | `tools/` | 51 C, 10 headers | emitters, acceptance helpers, build tools | 21 | `bench/` | 6 C | benchmark drivers | 22 | `seed/` | 3 C | reference runner, sm121 listing, remaining seed oracles | 23 | `seed/omc/omc.om` | 1 `.om` production compiler | builds all other first-party `.om` | 24 | Cross-repo | Rust/C | `spark-rsi-mv`, `open-humanity`, `aienux`, `aien-sovereign-core-mv` | 25 26 The count is large enough that this is a phased replacement, not one change. Every phase ends with 27 deleted legacy code and qualified consumers; a plan or a passing unit test is not a cutover. 28 29 ## Order 30 31 0. **Stop new legacy.** New first-party implementation, runners and tests are seeded `.om`. Missing 32 facilities go to the existing compiler owner, not a new C/Rust/Python helper. 33 1. **Seed test and tooling surface** (pilot complete): remove gcc-built C twins; use committed 34 expected outputs and data fixtures; then replace `seed/check/runner.c`, `seed/sm121/sm121list.c` 35 and the remaining seed shell coordinators with `.om` coordinators. 36 2. **Authority and effect runtime**: `src/runtime/rx_capq`, `rx_caproot`, `rx_semantic`, 37 `src/osh/host/osh_exec.c` and their consumers. The `.om` replacement must carry grant identity, 38 generation, revocation, durable state and dispatch; the strict `execpure` launcher is the first 39 effect boundary. Delete the C authority path only after every consumer is cut over. 40 Status: the action, delegation and reuse transition contracts are promoted to 41 `seed/authority/` and pass 219/074/074 checks; the durable 32-word record store with fsync, 42 atomic rename and torn-file refusal passes 77 checks. The dispatcher persists in-flight, runs a 43 synthetic effect, records performed/unknown, and marks unknown when the generation changes during 44 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; 45 the C owner remains active. 46 3. **Trace and privacy (#607)**: `rx_argus`, trace producers and the Open Humanity consent lane. 47 Status: the local `.om` segment writer (`seed/trace/segment.om`, #608) is qualified by 48 `seed/trace/gate.sh` (71 checks and four source mutants: CRC, torn tail, alignment, exclusive 49 create; quarantine and recovery). A one-shot `.om` SHA-256 (`seed/trace/sha256.om`) passes five 50 standard vectors and runs in the security673 qualification gate. 51 Exact-byte consent/export (`OHCN` v1 signed consent + `OHTX` v1 exporter over `AITR` v1 segments), 52 Personal Data Firewall enforcement, the exact-byte Open Humanity UDP wire codec (`0x4f` v1, 53 bincode 1.3 LE, keyed BLAKE3 relay cookies, Ed25519), and the fail-closed trace receiver are now 54 implemented and host-tested in pure seeded `.om` (`protocol/open-humanity/trace_contract.om`, 55 `trace_contract_test.om`, `trace_receiver_main.om`, and mirrored into `open-humanity/om/`). 56 4. **Evaluation and promotion (spark-rsi #67)**: replace the Rust promotion/evaluator gate with the 57 `.om` owner; keep sealed tasks outside the proposer's writable surface. 58 Status: the pure-Omega 6-layer evaluator, canary, rollback (`core/rsi/om/eval/`), governance 59 envelope, SHA-256 Merkle ledger, and Version 2 ECDSA P-256 signed receipt verifier & promotion 60 gate (`core/rsi/om/governance/receipt_v2.om`, `v2_main.om`, `v2_test.om`, byte-for-byte 61 `spark-rsi.evaluation-receipt.v2` digest and FIPS 186-4 P-256 parity with `spark-rsi-mv`) are 62 implemented, host-tested, and mirrored into `spark-rsi-mv/om/`. 63 5. **Device and DMA (#672)**: `.om` device contracts and queues. Firmware and hardware are outside 64 the delivered source closure; physical qualification stays `NOT_RUN` until reserved hardware is 65 exercised. 66 6. **Build, release and automation**: Makefile targets and shell gates become `.om` coordinators; 67 remove shell/Python orchestration from the delivered path. 68 Status: native `chdir` (code 138) landed with `seed/host/tests/chdir.om`; the `.om` host-gate 69 coordinator `seed/host/gate.om` replaced `seed/host/gate.sh` and runs all 39 native host 70 fixtures plus generated identity programs, with an optional candidate-compiler argument. 71 Remaining shell release/packaging targets are still open. 72 7. **Compiler trust**: the C reference path is replaced or demoted to an external oracle outside the 73 closure; add the independent route required for diverse double compilation. 74 8. **Cross-repo services**: migrate the named repositories under their own owners and ledgers. 75 76 ## Cutover rules 77 78 - One owner and exact paths per component; no second compiler, runtime, authority or store. 79 - Freeze source/seed/compiler/binary/config identities and record raw commands and exits. 80 - Qualify the replacement, cut every consumer over, then delete the superseded implementation. 81 - Preserve Git history and immutable evidence; do not rewrite history or keep dead source active. 82 - Missing hardware, an independent compiler route or an authority owner is `NOT_RUN`/`BLOCKED`, 83 never `PASS`. 84 85 ## Pilot completed 86 87 `seed/rung4/tests/{fib,sort,bytecopy}.c` were gcc-built twins of the `.om` programs. They are 88 deleted. `fib.want`, `sort.want` and a deterministic `in.bin`/`bytecopy.want` are committed; 89 `gate4.sh` now compares the `.om` output with those fixtures and does not invoke gcc for the 90 program tests. `gate4` passes with 217 cases, including the expected-output checks. The C reference 91 runner remains for a later phase because it links the legacy C path and is an oracle, not a 92 production component. 93 94 ## Known `.om` capability gaps for later phases 95 96 - Multiple source files/imports for service-sized programs. 97 - Structured records and bounded maps for policy, grants and receipts. 98 - Durable atomic state primitives beyond single-file create/rename. 99 - Process supervision/process-tree budgets for the authority dispatcher. 100 - Threads or event loops for long-running services (the current host words are synchronous). 101 102 These are dependencies for the existing compiler/runtime owners. They are not exemptions for 103 keeping C or Rust.