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/213c7ffaba143c20 # 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-L0] Enforce zero C/handwritten hex in qualified .om source and runtime closure Open · #316 · open 2026-10-25 02:16 UTC Imported from GitHub aien-dev/aien-architecture-mv#316, by drakestapleton drakestapleton wrote on 2026-10-25 02:16 UTC ## Objective Implement the enforceable last-mile zero-legacy gate already required by architecture #300 and extend it to SEM-0 #315 . This issue owns the cross-repository audit/check, not any compiler or service rewrite. NOT A MASTER PLAN. ## Inspected evidence (2026-10-24 current main) Full GitHub tree from Omega `a0eafa39` (15,148 files) includes active seeded compiler under seed/omc/omc.om, C compiler under src/compiler, source hex rungs and many C-based tests. CUDApp main `3f9c154c` contains C-based GPU codegen/session and native .om examples. Core main `9699d928` contains Rust model serving; Aienux main `5550b70f` has C native/kernel and Rust crates. Broad extension inventories are not proof of runtime dependency nor first-party authorship; calculate actual closure. No rewriting of historical evidence or deletion of golden byte vectors. ## Implement in existing native .om/CI ownership - Build a versioned per-repo per-commit inventory of all in-scope active first-party program source, compiler/backends, build/install/release logic, tests, scripts, dependencies, owning successor issue, last actual consumer, source and binary receipts, and retirement PR. Enumerate all accessible active repositories including aien-dev, aien-spark and user-registered projects; inaccessible = UNKNOWN. - Follow imports, actual static/dynamic libraries, process trees, command invocations, generated code, model serving and GPU runtime rather than only filename extension. A thin .om wrapper around C/Rust/Python is a FAIL, not a conversion. - Separately classify authored handwritten executable hex/assembly, non-executable hex test vectors and IDs, generated machine-code data, third-party interface/ABI, external OS/driver/firmware, and immutable historical Git commits. First-party runtime logic has no permanent exemption. Missing evidence is UNKNOWN and prevents "all migrated". - Implement a versioned seeded .om active-closure checker integrated with existing #300/#302 release gates. Transitional mode reports outstanding components. Release mode rejects new first-party C/.osc/.hex-assembly/foreign execution and fails if legacy remains in declared product closure. Guard also covers project-owned tests and build tools. - Include negative mutants: inject C source indirectly through a hidden archive, generated C in build, C launcher disguised by .om wrapper, shell running Python, stale handwritten hex seed, forged exclusion as fixture, stale binary hash. Genuine golden data and generated emitted instructions must remain permitted. ## Acceptance - Exact source-pinned inventory + owner/dependency/retirement denominators, no unowned remaining rows. - Working native .om checker plus CI wiring with representative legitimate exceptions and deliberately failing hidden-C/handhex cases. - Active source AND transitive product build/runtime dependencies show no first-party legacy; project-owned tests/tools migrated; external boundaries disclosed. - Each deletion is a separate reviewed change after equivalent .om consumer executes successfully; no main edits, firmware flashing or live-server restarts. - Fresh-checkout independent review of checker and closure, artifact source-to-binary receipts; NOT_RUN until actually tested. ## Ownership Under architecture #300 inventory and #302 release gate only. Respect PLAN_AUTHORITY, CURRENT_EXECUTION_PLAN, AGENTS.md, exclusive worktrees and existing merge desk. No competing master plan or new policy engine. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:15 UTC Recovered GitHub comment. Original comment `6392865525` ## Status 2026-10-24: first executable slice is up, PR #317 (seeded `.om`, independent review round 1 done) - `tools/zero-legacy/closure.om` + `expect.om`, built only by the pinned seed omc (`omega.pin`: omega-mv `a0eafa39`, omc `734f0a39…6b61`); gate `ARCH-ZERO-LEGACY-CLOSURE` green on the Spark; 14 reviewer defects fixed or documented (see the PR thread). Content-first classification, manifest kinds `data`/`generated`/`external`/`skip` that cannot launder source (`FORGED`), release mode exits 1/2 on outstanding/unknown rows. - Items 1 and 5 of this issue are partially met (versioned per-commit inventory on source trees; hidden-C-in-`.txt`, shebang-without-suffix, shell-runs-python, `.om` launcher, forged exclusion, ELF/archive mutants all refused). Items 2 (build/runtime closure: libraries, process trees, product ELF) and 4 (CI wiring beyond this repo's local gate) are NOT done; item 3's "stale binary hash" mutant is covered only at the compiler pin, not for product binaries. ### Measured denominators (transitional mode, clean `git archive` of each main) Raw table in the PR description. omega-mv `a0eafa39` with a first draft manifest (`data evidence/`, `data docs/`, the six committed seed-born binaries declared `generated`): OUTSTANDING 2071, UNKNOWN 997, release exit 1. Outstanding by top directory: tests 668, src 558, evidence 374 (these are `FORGED`: `.c/.sh/.cu` files inside immutable evidence directories declared as data; the tool is right to list them and the owners must decide whether evidence may hold source copies at all), tools 196, research 112, mk 74, seed 60, calibration 17, bench 8. C/H by subsystem: src/runtime 65, tests/runtime 62, research/atemporal 39, src/physics0 36, src/turing 35, src/compiler 31, tests/physics0 26, src/osh 23, src/visor 21, src/algebra 19. These are source rows, not product-closure rows: nothing here says which of the 962 C files are linked into `aien-serve-http` or the seed birth. That join is the next slice and needs the build graph. ### Next in this lane - Per-repo manifests owned by each repo (data/generated/external), committed beside their trees, so the ledger has an accountable claimant per row. - Closure item 2: follow the product build (Makefile/cargo graphs are themselves outstanding rows) to produce the dependency closure for `aien-serve-http`, `seed/out/omc`, and the CUDApp motor; emit rows `LINKED `. - Wire the transitional run into the local pipeline (`aien-local-ci`) as an advisory gate for omega-mv, CUDApp, sovereign-core, aienux, physics-mv, protocols-mv, aegis-runtime-mv, benchmarks-mv, with the per-commit counts stored as receipts. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:24 UTC Recovered GitHub comment by @aien-spark on 2026-10-25T03:34:19Z. Original comment `6393006487` #317 merged (independent review accepted by Drake 2026-10-24; fresh-checkout rerun identical). Item 2 first ledger in #318: live aien-serve-http closure = 85 omega C files (36,232 lines) + 2 physics C files + 30 Rust crates (128,931 lines), from `ar t` of the shipped lib and cargo metadata. Next: the same ledger for seed/out/omc (trivially: the seed chain) and the CUDApp motor, then an `.om` reader for `ar` archives so the ledger is produced by the checker rather than by hand. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:24 UTC Recovered GitHub comment by @aien-spark on 2026-10-25T04:24:46Z. Original comment `6393409623` Progress 2026-10-25 (all merged): - #320 `tools/zero-legacy/gate.om` + native `sha256.om`: gate judgment is now `.om`, shell reduced to a 3-line loader; omc pinned by native hash. - #321 `expect.om` multiset match (review D11). - #323 `tools/doctrine/doctrine.om` (1827 lines) replaces `scripts/check_doctrine.sh` — deleted. Oracle: bash script at `1adbb2a` with GNU grep/gawk; 40/40 corpus cases byte-identical in stdout+exit (real tree + 39 mutants); fresh-clone rerun by me: identical on the real tree and on a status-outside-roadmap mutant, `run.sh doctrine` PASS exit 0, NOT_RUN 3 without pinned omc. - omega-mv #732 `om/blake3/blake3.om`: 35/35 official vectors + 20 random files identical to `src/omega_blake3.c`; deletion of the C file waits on omega-bridge #8 (native call ABI). In flight: `tools/candidate/{check_candidate,check_pins}.om` replacing the two candidate shell scripts against their existing test suites. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:24 UTC Recovered GitHub comment by @aien-spark on 2026-10-25T04:26:04Z. Original comment `6393419856` #324 `tools/candidate/{check_candidate,check_pins}.om` replaces `scripts/check_candidate.sh` and `check_candidate_pins.sh` (both deleted). Fresh-clone rerun (`ba140d2`): `run.sh script-tests` exit 0, parity 113 identical / 4 named limits (locale, glob collation order, NUL warning, shell diagnostics) / 0 different; suites 47/47 and 17/17; doctrine and zero-legacy gates still PASS. Labelled ready-to-merge. Remaining shell in this repo's gate path: `scripts/pr-gate.sh` (144) and `scripts/rebase-crumb.sh` (103); then `tools/crumb/crumb.c` (2375, hosted x86 CI builds it). Sign in to comment