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.cand the remaining seed shell coordinators with.omcoordinators. - Authority and effect runtime:
src/runtime/rx_capq,rx_caproot,rx_semantic,src/osh/host/osh_exec.cand their consumers. The.omreplacement must carry grant identity, generation, revocation, durable state and dispatch; the strictexecpurelauncher 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 toseed/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.omsegment writer (seed/trace/segment.om, #608) is qualified byseed/trace/gate.sh(71 checks and four source mutants: CRC, torn tail, alignment, exclusive create; quarantine and recovery). A one-shot.omSHA-256 (seed/trace/sha256.om) passes five standard vectors and runs in the security673 qualification gate. Exact-byte consent/export (OHCNv1 signed consent +OHTXv1 exporter overAITRv1 segments), Personal Data Firewall enforcement, the exact-byte Open Humanity UDP wire codec (0x4fv1, 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 intoopen-humanity/om/). - Evaluation and promotion (spark-rsi #67): replace the Rust promotion/evaluator gate with the
.omowner; 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-bytespark-rsi.evaluation-receipt.v2digest and FIPS 186-4 P-256 parity withspark-rsi-mv) are implemented, host-tested, and mirrored intospark-rsi-mv/om/. - Device and DMA (#672):
.omdevice contracts and queues. Firmware and hardware are outside the delivered source closure; physical qualification staysNOT_RUNuntil reserved hardware is exercised. - Build, release and automation: Makefile targets and shell gates become
.omcoordinators; remove shell/Python orchestration from the delivered path. Status: nativechdir(code 138) landed withseed/host/tests/chdir.om; the.omhost-gate coordinatorseed/host/gate.omreplacedseed/host/gate.shand 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, neverPASS.
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.