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/aien-architecture-mv/issues/069da01aa0025d50 # aien-architecture-mv Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers # [OM-FINAL] Repository-wide .om migration inventory, dependency order and retirement gates Open · #300 · open 2026-10-23 12:56 UTC Imported from GitHub aien-dev/aien-architecture-mv#300, by drakestapleton drakestapleton wrote on 2026-10-23 12:56 UTC ## 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. ## Outcome Make .om the final first-party source language across Drake's AIEN ecosystem, with an auditable route from current implementations to qualified native .om successors. This is a finite migration/accounting slice under #295 and omega-mv#599, not a second architecture or compiler programme. ## Inventory and ownership - Enumerate the actual accessible project repositories across aien-dev, aien-spark, aienos and relevant personally owned project repositories; verify canonical owners/renames and active versus archived status. Record inaccessible repositories as UNKNOWN instead of silently excluding them. Do not reopen archived projects without a concrete dependency. - For each active repository, list executable entrypoints, first-party source, runtime libraries, build/release tools, scripts, tests, bindings, schemas, generated artifacts and external dependencies. Classify each as native seeded .om, first-party code awaiting replacement and deletion, generated target artifact, external interoperability/firmware boundary, third-party independent oracle, documentation/data, or unresolved. - Bind every legacy component to its existing successor issue/owner, source paths, consumed interfaces, missing .om features, parity/recovery tests and retirement criterion. At minimum reconcile Omega, CUDApp, Sovereign Core, Aienux, Synapse, Open Humanity, Interplane, orchestration, tracing, benchmarks and user-facing applications. Link existing work; create bounded repo-local leaves only for uncovered components. ## Migration sequence Use omega-mv#599's seed/compiler line and #295/#298 application contracts. Freeze each component's observable behavior and resource/effect contracts; implement .om successor; independently compare; integrate behind its existing boundary; qualify the real consumer; then remove the old production dependency in a separately reviewable change. Compiler/runtime prerequisites precede consumers, but independent fixtures/documentation can proceed. Preserve rollback and historical bytes; no bulk rename or simultaneous whole-system rewrite. ## Enforcement and acceptance - Machine-readable ledger includes repository/commit/path, owning issue, status, successor artifact, seed lineage, transitive build/runtime dependencies, test/evidence links and retirement blocker. - Add a bounded repository check through existing tooling that detects new first-party legacy implementations or hidden foreign-runtime fallbacks. Every temporarily outstanding replacement names the owner, blocker and deletion gate; no retained-legacy exemption is allowed. - Build/execution dependency receipts reveal what actually compiled and ran. A .om wrapper around C/Rust/Python does not count as migrated. Generated machine code/required protocol assets are separately reported, not mistaken for authored source. - Cover build/release tooling, tests and automation in the ledger as well as product code; keep genuinely independent external oracles separate from the final production dependency closure. - Publish one end-to-end .om application vertical slice through the existing #299 qualification, including normal use, changed input, refusal, cancellation and restart. Expand coverage incrementally. - Final completion requires every in-scope first-party implementation accounted for and qualified, no legacy first-party source or build/runtime dependency, reproducible build from declared seed, and owner-reviewed retirement. Report counts by category and remaining blockers; language byte percentage alone is not completion. No repository visibility changes, destructive history rewrites, service restarts or firmware flashing are part of this issue. ## Replacement completion - Every ledger row has an explicit old-source deletion change and dependency-removal evidence, as well as successor qualification. - CI rejects reintroduction of deleted implementations and hidden runtime/build fallbacks. Temporary migration rows remain OPEN until removed; no permanent exception category for first-party legacy code. - History-linked evidence replaces retained reference-source copies in active repositories. ## Enforced user requirement: 100% first-party .om, retire C and handwritten executable hex (2026-10-24) Status: ACTIVE IN PLANNING / IMPLEMENTATION, all final gates NOT_RUN. This is a child implementation ledger of this existing authority, NOT a new master plan. New user instruction: the semantic compression release and all project-delivered code must not leave C or handwritten hex behind. This includes tests, build/installer scripts and fallback callpaths, not merely renaming source. What “zero legacy” means: no first-party authored executable source other than seeded .om in the qualified final product closure, plus generated binary data/output. Remove old project-owned C/H, .osc, hand-authored hex/assembly, first-party Rust/Python/shell functions after a tested .om successor and consumer cutover. Machine instructions and boot ROM/firmware cannot cease to exist; preserve a disclosed, pinned irreducible binary trust anchor and independently validate source correspondence. Non-executable signed hexadecimal test vectors are data, not “hex code”; immutable old source stays in Git history, not active fallback files. External kernel/firmware and third-party ABI/oracle remain transparently inventoried. ### Concrete owner issues created Slice Link Source evidence and terminal qualification Reusable cross-repo zero-legacy enforcement / release Architecture #316 Source & transitive linked/build/runtime closure, negative mutants, CI refusal Boot hex / irreducible trust anchor Omega #725 Remove active seed0.hex/hex1.hex/asm2.hex1 etc from build after qualified .om self-hosting, #650 DDC Omega C compiler / runtime and old tests Omega #726 C/H/OSC sources and interpreter/codegen/test retirement after sole seed and GPU owners accept GPU/CUDA++ motor / encoder C retirement CUDApp #79 Native .om sm_121 SASS codegen, session, kernels, model/golden gates, C removal 35B/27B serving first-party Rust/C Sovereign Core #753 Loader, controller, HTTP/tool, KV/Cortex, native .om source and old dependency deletion Aienux boot/kernel/OS C and Rust retirement Aienux #452 Old frozen C kernel, native Rust boot/storage, QEMU/physical recovery, real .om replacement Extracted Omega research/testing C omega-programs #13 (private) Turing/reservoir/WAVE/HDC old C/OSC + test/make replacement under pinned omega.lock FORGE/hardware client C and native assembly Physics #81 FORGE realization, nvrm and m16 native .om with driver/firmware floor documented AEGIS/security authority Rust AEGIS #75 Native capability, receipt, authorization and fault/revocation equivalence before Rust deletion Protocol parsers/C/Rust and data-only golden hex Protocols #55 Native .om validator and consumers; preserve true .hex test data Independent benchmark Rust/C runners Benchmarks #44 Native .om first-party runner, separate independent external oracle, old runner retired Preliminary current-main source indicators, not a verified product-closure denominator: GitHub recursive trees show at Omega `a0eafa39` 15,148 tracked files; under a filter excluding selected docs/evidence/research/goldens there are 603 .c, 312 .h, 250 .osc, 2 .hex, 2 .hex1; at CUDApp `3f9c154c` (1,008 tracked) 108 .c, 70 .h, 8 .osc and 42 .om under the same loose filter; at Sovereign Core `9699d928` 714 .rs; at Aienux `5550b70f` 260 .c, 133 .h, 191 .rs. They cannot be used as final “unmigrated” counts because some are tests, data, generated, historic or unbuilt. Existing active roots also include AEGIS, physics, protocols, benchmarks, RSI, Atlas, user interfaces, interplane and other registered projects; the scanner must inventory all accessible active first-party repos and create specific new owning leaves for uncovered active paths, never assert that eleven issues alone exhaust the system. ### Migration release gates - M0: Enumerate source/build/runtime closure, all active repos, exact compiler/binary/owner/consumers and missing native .om primitives. UNKNOWN is a blocker, not zero. - M1: Prove seeded .om compiler independent source/binary correspondence and feasible binary trust anchor; keep distinct from source-semantic equivalence. - M2: Qualify .om successors for every active C/H/handhex/OSC/Rust/Python/shell function with matching positive and discriminating negative behavior. - M3: Cut real consumers over; execute source-pinned tests and real GB10/QEMU/host per declared profile; preserve live 35B until specifically authorized. - M4: Delete superseded source and build/link/runtime/test dependencies in separate reviewed PRs; no hidden C or hex bootstrap path, no permanent in-tree “legacy reference”. - M5: Fresh independent rebuild from .om source + explicit bootstrap; audit no unauthorized foreign project logic in ELF/process closure; zero outstanding first-party code and no unknown active files in the declared release scope. - M6: Release desk and architecture #302 verify source, binary, tests, rollback and hardware records. Only qualified actual outcomes close this parent; proposed PRs do not. ### SEM-0 binding SEM-0 #315 plus its draft .om smoke PR are consumers of this migration contract. Short semantic codes may invoke only verified native .om realizations in the final system. Prefixing a legacy C function with a short ID does not close a migration row. All SEM-0 issues/owned project scripts use the same zero-first-party-C and no-authored-hex release gate. ## Additional active owner issues from source-level GitHub tree inspection (2026-10-24) Further active project-owned paths were confirmed after the initial eleven issues. These are scoped migration leaves, not proof of actual build/runtime dependency until the closure scanner reconciles consumers. Owner / pin Issue Active code family Open Humanity `edce1f77` #38 Rust encryption, signed retraction, coordinator/network and verification Spark RSI `5cd6263f` #72 Rust supervisor, canary/promotion/judge/receipts Atlas `440a9d4f` #9 first-party C/assembly bootstrap tools and qualified binary trust boundary Interplane `a68300c2` #118 Rust authority/provenance adapters, core crates; external test fixtures retained aienos.com `5db23d66` #79 Rust static site collector/render; source-verified public site generation drakestapleton.com `e0bbc7d7` #84 Rust personal site generator/evidence feeds, preview only AIEN Edge `700306e6` #7 Rust edge request handler/config, native .om/generated target 18 new bounded migration issues now linked by this authority, plus pre-existing migration #599/#650 and native consumers. New issues initially OPEN/PROPOSED; their source, hardware and old-path deletion gates NOT_RUN. Remaining accessible active repositories, multiple namespaces/ownership aliases, and production dependencies still require full zero-legacy scanner #316 reconciliation; do not declare total closure from this row count or from source extensions alone. Any new uncovered real first-party component gets a specific owner issue, not a “miscellaneous everything else” untracked category. drakestapleton wrote on 2026-10-23 22:05 UTC Existing replacement/deletion inventory: the new user-authorized delivery plan https://github.com/aien-dev/aien-architecture-mv/issues/303 reuses this issue and its owners. It covers full PyTorch and surrounding AI ecosystem replacement in seeded .om, with 14 bounded milestones, dependencies, parallel-agent lanes and release gates. It does not create a second compiler/runtime or supersede active ownership. First deliver reproducible seed -> complete GB10 model -> same workload on a second vendor, alongside tensor/autograd/data/native-training work; then distributed and catalogue-wide parity. Qualify/cut over/delete remains mandatory, and no automatic live deployment is authorized. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:15 UTC Recovered GitHub comment. Original comment `6392626555` ## M0 inspection receipt, 2026-10-24 (DGX Spark, this session) Seed compiler qualified on current main. `aien-dev/omega-mv` main = `a0eafa39ac9a92786dac68f7aa6d8564a28fa981`; clean detached worktree; `sh seed/omega-from-seed.sh` RC=0: seed0 408 B, hex1 776 B, asm2 2464 B, om4 14224 B, omc fixpoint `734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61`, omc.om 7838 lines sha256 `2e35db7d…3637`. Seed inputs: seed0.hex `baaf081f…e14d`, hex1.hex `2d3fecbf…d69c`, hex1.hex1 `020d4a39…b1b6`, asm2.hex1 `287b4054…46e2`, asm2.s `f378a115…55d`. Main already carries the native host words (files, dirs, stat, args, sockets, fork/exec, poll; `seed/host/README.md`), so a seeded `.om` inventory/closure checker for #316 is buildable today without language extension. SEM-1 starter reproduced. omega-mv PR #724 `dispatch-v0.om` compiles with that omc (rc 0, 1472 B, sha256 `c5d267bf…e4d0`) and runs exit 0; three discriminating mutants fail as expected. Receipt: https://github.com/aien-dev/omega-mv/pull/724#issuecomment-`6392603836` . Live private 35B (not touched). pid `2041615`, `aien-serve-http --engine omega --model-dir ~/models/qwen3.6-35b-a3b-fp8-95a723d0 --port 18091 --max-context 49152 --max-tokens-cap 16384 --thinking off --batch-slots 8`, binary `~/.local/state/aien-q36/bin-19173f9e/aien-serve-http` sha256 `19173f9ec3b609fe79af644f84741d8808b92ea8eb3ecec4bc945af6f22b3aeb`, env `AIEN_Q36_STROKE=1`. A second instance (another lane's q36-extra A/B) runs on port 18110 from bin-`186b4c4e`. Qualified 1-row baseline remains 20.594 ms/token, 419 launches (investigations/2026-10-24-q36-1row-timeline). Byte ledger authority: `docs/speed/Q36_CEILING.md` 2,972,307,456 B/token (header-derived 2,972,927,360, +0.021%); the L310 harness kind_bytes model (3,105 MB) is wrong for physics. Active agent worktrees on compiler/seed internals (do not claim): `omega-in-omega` (seed/omega-in-omega, omc.om modified, uncommitted), `omega-security673-supervision` (omc.om + security673 fixtures modified), `omega-qual-696`/`omc-696-l813`/`omc-unified-ddc`/`fix-omc-gate5`/`ddc-check` (L813 / #696 / #650 line, active today), `omega-c2om` (seed/c2om, untracked), `omega-toc` (seed/toc), `omega-x86` (seed/x86), `omega-seed56`. CUDApp: 20 worktrees dirty within 3 days (dx/, roadmap/, quantum-weights, rotation-int4, adaptive-27b with new `.om` tests). ~/workspace/omega itself sits on `hive/DEEP2-A3-gpu-engine-impl` with 127 dirty files; `omega-c5` has 2169 dirty entries including seed/ deletions. Full list: 190 omega/CUDApp/core/physics checkouts with recent commits or dirty state. Open PR pressure: omega-mv 40+ open PRs; `ready-to-merge` carried by omega-mv #538/#514/#509/#507/#525(draft), core #628/#612/#595, aienux #434/#415/#414/#412, omega-programs #11, several also `needs-rebase`. physics-mv: 0 open PRs. DDC state (#650): no DDC artifact on main (`git ls-tree` grep ddc/double: none); independent GATE_DDC PASS was reported on PR #696 head `9329e7fc`, author-run, no judge receipt. `seed/omega-from-seed.sh` overwrites `seed/out/omc` and never compares it to the committed `seed/out/omc.sha256`; that is a gap for M1. Next from this session: seeded `.om` closure-inventory checker for #316 (transitional mode first, with hidden-C / shell-runs-python / handhex mutants), on its own branch, no shared compiler internals touched. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:19 UTC Recovered GitHub comment by @aien-spark on 2026-10-24T22:12:23Z. Original comment `6390177716` First Sovereign Core `.om` increment toward the end-to-end vertical slice: aien-sovereign-core-mv#748 (tracking) and PR aien-sovereign-core-mv#749. What moved: the effect ledger's restart world check (read target, SHA-256, DONE / NOT_DONE / UNRESOLVED as `effects::state_from`) and the reconcile record text plus `text_sha256` (`effects::reconcile_text`). Byte-identical to the production Rust on 24 fixtures, with refusals and two mutants caught. Built by seed omc `d0603ff8…3e83` (omega-mv PR #696). Rust remains the production path; nothing retired. Missing `.om` capabilities found (dependencies, not exemptions): - descriptor-relative open with resolve flags (`openat2` RESOLVE_BENEATH), needed for the confined check; - the `aien-omega-compose` journal record format and digest in `.om`, needed for the durable write; - function-mode stack floor check in omc (found by the omega-bridge native call work, PR omega-bridge#8). Remaining slice steps (objective, inference, typed tool, approval and replay protection, the effect write, ledger rebuild) are listed in #748. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:24 UTC Recovered GitHub comment by @aien-spark on 2026-10-25T03:21:41Z. Original comment `6392901463` ## Session roll-up 2026-10-24 (Spark, host-only unless stated): what moved, what is blocked Executed and recorded - Seed compiler qualified on main `a0eafa39` (omc `734f0a39…6b61`), PR omega-mv#724 starter compiled+run PASS with 3 discriminating mutants: https://github.com/aien-dev/omega-mv/pull/724#issuecomment-`6392603836` - M1 gap with repro on omega-mv#725: birth script accepts any fixpoint and overwrites the committed omc pin: https://github.com/aien-dev/omega-mv/issues/725#issuecomment-`6392728052` - #316 checker in seeded `.om` + native comparator + gate, independent review round 1 (14 findings) fixed/documented: aien-architecture-mv PR #317; first measured source-row denominators for 8 repos in the PR body; status on #316: https://github.com/aien-dev/aien-architecture-mv/issues/316#issuecomment-`6392865525` - #722 first real emitted-byte measurement (32 B call vs 48 B inline, 60 B body, break-even 4 uses): https://github.com/aien-dev/omega-mv/issues/722#issuecomment-`6392732778` - #726 link-time consumer map of `src/compiler/` (8 build rules, seed gates use it as referee): https://github.com/aien-dev/omega-mv/issues/726#issuecomment-6392 ... (latest comment) - omega-programs#12 HDC capacity experiment, 1080 measured cells: omega-programs PR #15 Not moved, with reason - Stage F (cached scratch / fusion / 8-bit head) and any GB10 kernel work: BLOCKED_OPERATOR for this session; the chip is held by the live 18091 server plus another lane's q36-extra on 18110; no window requested, nothing restarted. - Stage D (aien-train #19, #651/#658) and Stage G retirement issues (Core #753, Aienux #452, AEGIS #75, OH #38, RSI #72, sites): no code this session; the checker gives each owner its first row list (available on request per repo). - Seed/compiler internals (#696/L813, #650 DDC run, #660): left to their active worktrees (`omega-qual-696`, `omc-696-l813`, `omc-unified-ddc`, `omega-in-omega`, `omega-security673-*`); only findings posted. Nothing is closed; all gates above are host receipts, none are hardware qualification. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:26 UTC Recovered GitHub comment. Original comment `6507765150` OM-FINAL status, 2026-10-29 (OmFinal300, bot aien-spark). Labels: IMPLEMENTED and EXERCISED on the host only. Nothing is QUALIFIED, MERGED or DEPLOYED, and no code was migrated by this run. Branch: `feat/300-m0-ledger` head `cd4b3dff9f98acac2d1ed96fd3f217642c6df8bd` (child of main `c6512a4c`). A READY line is on the PR desk; the desk opens the PR. What moved - M0 ledger (machine-readable): `tools/zero-legacy/m0/`. `repos.tsv` has 158 rows: 156 repos enumerated through the API plus 2 UNKNOWN namespace rows. Of these, 109 active non-fork repos were scanned at their default-branch head (sha per row) and the rest are listed as ARCHIVED/FORK. `ledger/_.tsv` holds per-file rows `REPO SHA CLASS STATUS CATEGORY PATH OWNER BLOCKER`, and `owners.tsv` is the binding. - Producer: the seeded .om tools only. `closure.om` classifies files, and the new `bind.om` binds rows to owners and refuses unbound or malformed input. Both were compiled by omc sha256 `734f0a39…6b61` (= `omega.pin`, omega-mv `a0eafa39` seed/out/omc; not re-born from seed in this run). - Totals over 109 repos (rows): Class Rows native .om 2160 first-party non-.om 10243 unresolved 65750 (mostly evidence/data extensions, e.g. aien-sealed 45k `.qbw`, which need manifest declarations) doc-data 30608 generated 0 (no manifests yet) external 0 (no manifests yet) - Largest first-party counts: aienux 2283, omega-mv 2273, aien-sovereign-core-mv 1018, omega-programs 455, CUDApp 440, fap-backend 423, omega-evidence 348, atlas-harness 259, github-atlas-harness 226, aienos.com 196. - Closure checker extension: new category `XLANG` (ts/tsx/js/mjs/cjs/go/swift/zig/rb/vue/ps1/java/kt/php/lua/mojo/pl/dart/cs/sql/nix). About 1450 first-party files were previously counted as unknown `OTHER`. Declaring one of these files as data is refused as FORGED. - Owner binding: every first-party and unresolved row in all 109 repos is bound; `bind` exits 0 for all 109. - 16 existing leaves are reused. omega-mv binds `seed/` → #725 and everything else → #726. - 69 new repo-local `[OM-*-RETIRE]` leaves were created, after an open/closed issue duplicate check in each repo. Each one cites the scanned sha, category counts and top paths, and states its done criteria. - 3 repos have issues disabled (`atlas-harness`, `github-atlas-harness`, `atlas-mac-devbox-control`). They are bound to this issue and were not enabled. - Host-mandated languages (VS Code TS, tree-sitter JS, Homebrew Ruby, browser frontends) are recorded in their leaves as exceptions that need exact-version records. They are not claimed as rewritable today. - Enforcement (#316): - `gate.om` now builds `bind` and requires the following exit codes: bound fixture ledger 0 (and `expect` 0 against `ledger.expected`), owner gap 1, unresolved gap 2, empty owners field 65, truncated report 66, unknown category 66. - Verified with `AIEN_OMC= bash tests/gates/run.sh zero-legacy`: rc 0, 15 AIEN-OBS lines, closure_sha256 `80051b36…0248`, bind_sha256 `d956caef…f283`. - Six source mutants each make the gate exit 1: no XLANG rule; XLANG forgeable as data; repo filter disabled; final-line check removed; unbound count ignored; category check removed. - `gate.sh` now exits 1 when `gate.om` fails to compile. Before this change it exec'd an empty file and exited 126. NOT_RUN / gated - No row has been retired. M1-M6 consumer cutovers belong to the leaves. - Build/runtime (ELF/process) closure, #316 item 2, is not started. - GPU qualification of the CUDApp/core/physics successors needs a spark-window authorization. - The `aienos` and `drakestapleton` private namespaces are UNKNOWN because the bot cannot enumerate them. Covering them needs Drake or a token with access. - `generated`/`external` manifests per repo: owners still have to declare them, and the 65750 unresolved rows stay UNKNOWN until then. - `crumb-verify` was not run on the branch. - PR #319 (#316 closure read errors) was not exercised in this run. Sign in to comment