Governing correction: replace and remove, no retained legacy code
Drake clarified: there will be no legacy code; it will be replaced with .om. The final state is .om throughout the project's first-party implementations, including runtime, compiler, services, build/release tools, automation and project-owned tests. This supersedes any older wording permitting a permanent legacy/reference implementation, wrapper, foreign fallback or dual production path. For each component: implement and qualify its .om replacement, cut its consumers over, then delete the superseded implementation and obsolete build/runtime dependencies from the active tree. Old source may be consulted in Git history during replacement; do not keep it in an active legacy/reference directory. Existing code present during unfinished migration is an outstanding replacement task, never an accepted end state. Preserve historical Git commits and immutable evidence; do not rewrite history. Missing .om capabilities are implementation dependencies for the existing seed/compiler owners, not exemptions. Independent third-party qualification oracles may run outside the delivered source/build/runtime closure; replace project-owned legacy test implementations too. Generated machine code, non-executable data/documentation, external protocol formats and device firmware are separately inventoried and cannot disguise retained first-party logic. Interoperation with users' external software does not make that software part of the .om implementation. Acceptance includes an active-tree/dependency audit showing the old implementation and fallback are gone, .om consumer tests pass, and exact source/seed/binary/evidence identities are recorded. Coordinate existing owners and release gates; replacement is complete only after deletion and consumer qualification.
Problem and scope
Computerphile's Reflections on Trusting Trust motivates independently checking the compiler ancestry. Legacy src/omega_self_host.c contains a narrow object-count dispatch/self-copy fixed-point demonstration. A self-reproducing binary or matching artifact hashes alone cannot establish absence of compiler-injected behavior. Inspect the actual current seed lineage under #599, not only legacy main.
Research: David Wheeler, Countering Trusting Trust through Diverse Double-Compiling, https://doi.org/10.1109/CSAC.2005.17 . This establishes conditional source–binary correspondence, not harmless source or universal compiler correctness. #623 retains per-lowering semantic validation ownership.
Implementation
- Inventory current handwritten seed, assembler/compiler stages, exact source closure, host/tool inputs and trusted comparator. State the trusted computing base and independent-route assumptions.
- Freeze the supported .om source subset and deterministic build inputs, including options, libraries, environment and generated assets. Resolve any undefined/unspecified behavior before byte comparisons.
- Implement a bounded DDC qualification harness for a real compiler stage using a sufficiently independent trusted route compatible with that stage's semantics. Reuse the seed chain; external compilers may be explicitly declared qualification oracles, never hidden production bootstraps.
- Derive the correct staged comparison for this toolchain; do not require an independently compiled intermediate to have identical bytes to the production compiler merely because it implements the same semantics. Compare the appropriate final compiler artifacts and report exact assumptions.
- If the independent route or source coverage is missing, deliver its concrete prerequisite and mark correspondence NOT_RUN; no substitution of self-copy or same-lineage rebuild for independence.
Acceptance
- Clean-room reconstruction from pinned sources succeeds for the declared stage; reproducibility and DDC claims are reported separately.
- A compiled binary-only injection/self-propagating mutation absent from claimed source is detected. Wrong-source, stale-seed, altered comparator/input and nondeterminism controls yield named failures or invalid runs.
- Include a malicious/incorrect-source control demonstrating that correspondence alone does not prove source safety; retain #623/checker semantic gates.
- Publish artifact identities, trusted assumptions, executed commands and an independent reproduction. Keep raw equality checks separate from the logical correspondence argument.
- Provide a short replicable teaching example through #624 and export trust status to the repository migration ledger. No production compiler replacement until existing release gates pass.
Replacement integration
Coordinate source–binary qualification with aien-dev/aien-architecture-mv#300. Inspect old bootstrap demonstrations from pinned history; do not preserve them as a permanent active second compiler. The final delivered compiler/qualification tooling is project-owned .om; genuinely independent third-party oracles stay outside the delivered closure.