interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

GitHub aien-dev/aien-architecture-mv#138 (code only)

closed derived b4d5fc8b07711962 #138

Imported from GitHub aien-dev/aien-architecture-mv#138 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 7390f5d963c54984b89c8a3d6dee4ab0e990b6c5 · Head 5544a618bd708354ce4da3df178ac2d4034b91e4

Apply it

git checkout -b patch-b4d5fc8b07711962 7390f5d963c54984b89c8a3d6dee4ab0e990b6c5
curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/b4d5fc8b07711962.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/aien-architecture-mv
138
5544a618bd708354ce4da3df178ac2d4034b91e4
{"kind":"github-import","owner":"aien-dev","repo":"aien-architecture-mv","number":138,"url":"https://github.com/aien-dev/aien-architecture-mv/pull/138","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:46Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 851e586..5fe3107 100644
--- a/.crumb
+++ b/.crumb
@@ -22,7 +22,7 @@
       "children": [
         {
           "digest": "4e1642f63092b7a66dba3b40e8cffe7a748d025a201ed2effb4c37ad1ab81957",
-          "last_commit": "d8bd4d9",
+          "last_commit": "7390f5d",
           "name": "docs",
           "purpose": "Directory docs. Purpose not yet described by a human."
         },
@@ -34,7 +34,7 @@
         },
         {
           "digest": "4e4e56f7069b2df5065f7020589175735a5f9fae2c99e75173c843a35b569ec5",
-          "last_commit": "d8bd4d9",
+          "last_commit": "7390f5d",
           "name": "scripts",
           "purpose": "Directory scripts. Purpose not yet described by a human."
         },
@@ -46,14 +46,14 @@
         }
       ],
       "children_root": "sha256:efc732facfc8380986a44ccf869d480965f0f4e27af5593e1e27fc66a04bcd1c",
-      "compiled_at": "2026-10-05T17:54:40Z",
+      "compiled_at": "2026-10-05T18:03:08Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:99184c1e6c3d4617d360ec0646c232117365c754ce695c241ee42aad15f94fe8",
+      "digest": "sha256:cf88861f835b8e258b444a3cb8b438c6ac32d9abd97a3d84e8908913a99cc248",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "files": 221,
-      "generated_at_commit": "d8bd4d922a556e00af2fb4d4b2dd8059c0740d2f",
-      "source_tree": "sha256:bb8bf90cd7181ccbf21b83017e4a08208c5701d455ee72a5360b6f1f5836be0d"
+      "files": 223,
+      "generated_at_commit": "3762d8f75a17cad70816ac938fbc5cc899f19169",
+      "source_tree": "sha256:fcb7063e7625344b7b3a6b0023bad3652415e5f8a522159b53cec10776925c98"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/qualification/candidates/CAND-2.gates.md b/qualification/candidates/CAND-2.gates.md
new file mode 100644
index 0000000..3eb0a58
--- /dev/null
+++ b/qualification/candidates/CAND-2.gates.md
@@ -0,0 +1,76 @@
+# CAND-2 gates and evidence
+
+CAND-2 is CAND-1 plus the 2026-10-05 cand3 campaign fixes (see `CAND-2.toml` note). Frozen 2026-10-05T17:57Z. It
+supersedes CAND-1 (`CAND-1.toml` is not edited). Evidence lives on the Spark under
+`~/workspace/evidence-out/CAND2-*`. The campaign ledger is `~/handoffs/2026-10-05-cand3-campaign.md`. Statuses:
+PASS, FAIL, NOT_RUN, BLOCKED_HARDWARE, BLOCKED_OPERATOR, BLOCKED_INSTRUMENT, MISSING_IMPLEMENTATION. "Host" means no
+chip; "QEMU" qualifies nothing physical.
+
+## 1. Clean-worktree builds (host only)
+
+Script `~/workspace/cand3-campaign/cand2/cand2_build.sh` (copy in each evidence directory), run twice, from two
+roots: `~/workspace/cand3-campaign/cand2/rootA` and `~/workspace/cand3-campaign/cand2/rootB/deeper/path-two`. Each
+root has its own detached worktrees at the CAND-2 commits and its own CARGO_HOME, empty before
+`cargo fetch --locked` (root A's fetch log lists the downloads). Each item is built, hashed, deleted and built
+again. Evidence: `CAND2-BUILD-A/summary.txt`, `CAND2-BUILD-B/summary.txt`. Verdict PASS for both.
+
+| Item | Result |
+|---|---|
+| physics boot bins | identical in all four builds and equal to the committed files |
+| omega `all libomega_gpu` | omegatool and libomega_gpu.a identical in all four builds; the archive has no omegatool or gate objects (G6) |
+| sovereign-core, production config, `scripts/repro-build.sh` | aien-cli, aien-proof, aien-test identical in all four builds; native engine linked (`has_omega_gpu`); aien-cli carries the native backend string; no home-directory or cargo registry path in aien-cli (G13) |
+| Zero-CUDA gate on aien-cli | PASS in both roots (self-test first) |
+| aienos C kernel core and full images | identical in all four builds |
+| **Path independence** | PASS: all nine digests are the same from root A and root B. CAND-1's omegatool FAIL (embedded physics checkout path) is closed by omega #296 |
+| Pins | `scripts/check_candidate.sh` OK; `scripts/check_candidate_pins.sh` PINS AGREE (sovereign-core omega.lock and Cargo.lock, omega physics/aienos/argus locks, every known consumed pin) |
+| crumb tool | omega and aienos `crumb.lock` pin aien-architecture `d0f0b95`; `git diff d0f0b95 7390f5d -- tools/crumb` is empty (gap G3 unchanged: different commit, same tool source) |
+
+Eight digests equal CAND-1's: omega-gpu-engine-lib, aien-cli-native-release, aien-proof, aien-test, both aienos
+images and both physics bins. Only omega-runtime (omegatool) is new.
+
+## 2. Results carried from CAND-1 by executable identity (not rerun)
+
+CANDIDATE.md freeze rule 3 reruns the results a change affects. These CAND-1 results ran executables whose CAND-2
+digests are byte-identical, at inputs that did not change; they are carried, labelled as such, and their receipts
+still name CAND-1. They are not new runs.
+
+| Area | Gate | CAND-1 status | Why it carries |
+|---|---|---|---|
+| Native model | strict real-model gate; Omega vs CPU reference; Omega vs HF oracle; paged_attention_batch; runtime e2e; daemon; zero CUDA | PASS | aien-cli, aien-test and libomega_gpu.a digests identical; same model inputs |
+| Attention | GB10 attention timing, TinyLlama shape (quiet window 1) | PASS | gpu_attention_test is built from `tests/gpu_attention_test.c`, `src/omega_gpu_attention_api.h` and libomega_gpu.a; the two sources are unchanged cb06d08..79a805d and CFLAGS lost only `-DOMEGA_PHYSICS_DIR` (#296), which neither file uses. Measured: built at cb06d08 and at 79a805d in the same worktree, the binary is byte-identical (sha256 e28bf26b...4299) and so is libomega_gpu.a (evidence `CAND2-ATTN-IDENTITY`, host build only) |
+| AIENOS | ck_gates (QEMU): 18 PASS, 2 MISSING_IMPLEMENTATION | as CAND-1 | aienos images identical |
+| AIENOS | TRUST-1 M5: NOT_QUALIFIED | as CAND-1 | aienos images identical; the attended steps are still blocked on the operator |
+| Continuity | M4_CONTINUITY, M4_RECOVERY, M4_ALLEN, M4_STORE_CRASH (QEMU only) | PASS (QEMU) | aienos images identical |
+
+## 3. Results that must be rerun on CAND-2 (omegatool changed)
+
+Every living-runtime result ran omegatool or binaries built from the changed omega tree, so none carries. They run in
+one quiet window under declared attempts (`~/workspace/cand3-campaign/cand2/DECLARED-ATTEMPTS.md`, sha256 announced
+before the window). Results are added to this section after the window, with an independent reconstruction of the
+verdict from the receipts.
+
+| Attempt | Gate | Status |
+|---|---|---|
+| A1 | R16 harness `tools/r16_qualify.sh` (omega c62f47b, code = 79a805d) | NOT_RUN (pending window) |
+| A1b | R11 living under load | NOT_RUN (pending window) |
+| A2 | R13 test build on silicon, candidate bound | NOT_RUN (pending window) |
+| A3 | production hygiene on silicon | NOT_RUN (pending window) |
+| A4 | COMPOSITION-2 GPU tier | NOT_RUN (pending window) |
+| A5 | CHIPWAIT campaign, 3 runs | NOT_RUN (pending window) |
+| A6 | M18 full qualification | NOT_RUN (pending window) |
+| A7 | R15 silicon performance acceptance | NOT_RUN (pending window); expected BLOCKED_INSTRUMENT while the SPBM energy reader is not loaded |
+| - | INTERPLANE offline gates: GitHub checks at the pinned commit 2049968 (interplane changed in #50-#68 and #208 since CAND-1: rust crates, adapters, conformance, bench, spec; CAND-1's result does not carry) | at freeze: 6 success, 2 in progress |
+
+## 4. What CAND-2 does not prove (known before the window)
+
+- **R16 G6:** the operator emergency stop exists in the runtime (omega #300, host-tested, 13 mutants) but the
+  production program does not wire it and has no operator entry point, so the item reads MISSING_IMPLEMENTATION and
+  G6 cannot pass. No silicon run exercises a stop. **G8** is the merge-commit step, outside the script.
+- **R15 / R16 G7:** the SPBM energy reader is not loaded (operator action: load the signed module, steps in
+  `~/handoffs/2026-10-05-spbm-energy-operator-steps.md`). R15 refuses to start (omega #295, BLOCKED_INSTRUMENT), so
+  G7, which needs an R15 PASS, cannot pass. CAND-1's R15 FAIL (G15 residency 0.849 from one stalled trial, SEQ-06)
+  is unexplained; a 30-trial diagnostic later saw 100 % residency in every trial, which is a clue, not a verdict.
+- **AIENOS:** no USB keyboard driver in the C kernel; C loader A/B and rollback parked (MISSING_IMPLEMENTATION).
+- **TRUST-1 M5:** attended hardware boots and owner-key ceremonies are blocked on the operator; Secure Boot is off.
+- **Physical machine:** every AIENOS result is QEMU. Nothing here qualifies the Spark booting AIENOS.
+- **Toolchain:** no rust-toolchain file pins the compiler (gap G4); both roots used the same installed toolchain.
diff --git a/qualification/candidates/CAND-2.toml b/qualification/candidates/CAND-2.toml
new file mode 100644
index 0000000..a447a60
--- /dev/null
+++ b/qualification/candidates/CAND-2.toml
@@ -0,0 +1,102 @@
+# Candidate manifest, schema CandidateManifestV1. See docs/qualification/CANDIDATE.md.
+# Required gates, build recipe and known reproducibility gaps: qualification/candidates/CAND-0.gates.md; results: CAND-2.gates.md
+schema = "CandidateManifestV1"
+id = "CAND-2"
+status = "frozen"
+created = "2026-10-05"
+note = "CAND-1 plus the 2026-10-05 cand3 campaign fixes; supersedes CAND-1 (CANDIDATE.md freeze rule 1: CAND-1.toml is not edited). Frozen 2026-10-05T17:57Z from GitHub mains and the lock chain (sovereign-core omega.lock -> omega; omega physics.lock, aienos.lock, argus.lock). Omega changes since CAND-1 (cb06d08..79a805d): source code changed in #296 (omegatool resolves the physics checkout at run time, closing CAND-1's path-independence FAIL) and #300 (operator emergency stop in the runtime; the R16 G6 item stays MISSING_IMPLEMENTATION because the production program does not wire it); the Makefile changed in #286, #294, #295, #296, #298, #300; the rest is tools, tests, docs and evidence (#170, #287-#293, #297, #299). Of the nine executables only omegatool's digest changed. Sovereign-core changes only omega.lock (#215). The R16 map lives in omega; the map-only commit c62f47b (#301) is code-identical to 79a805d (git diff 79a805d c62f47b touches only spec/r16-orchestrator-retirement-map.md and .crumb files) and is the tree the CAND-2 R16 harness runs from. [contracts] pin the revisions sovereign-core Cargo.lock consumes; CAND-1.toml pinned the two heads instead (recorded in CAND-1.gates.md section 3). Executable digests: two clean double builds from different roots (CAND2-BUILD-A, CAND2-BUILD-B), all 18 builds identical; recipe and results in CAND-2.gates.md."
+
+[commits]
+omega = "79a805d162bfded8c5ce5a4c14f7c29e79025f39"
+aienos = "bbad5e4250e57f8cbd1be4cf1390109aa65ef92c"
+aien-sovereign-core = "286fa9b7afbc71f06ed7e1dd29f68f36714fd92a"
+aien-protocols = "7ac6facb630ca7e9a6ab4125b292203fe2bb6687"
+aien-architecture = "7390f5d963c54984b89c8a3d6dee4ab0e990b6c5"
+physics = "6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf"
+interplane = "204996832b1810673644169716518d42dcda3e0a"
+
+# The revisions the candidate code consumes (aien-sovereign-core 286fa9b Cargo.lock, git dependencies; checked by
+# scripts/check_candidate_pins.sh). Both repos are archived; their heads (crumb-spec 10b8251, spark-crumbs 98bb7cb)
+# are 2 commits ahead and are not consumed.
+[contracts]
+crumb-spec = "24194d1b7917ef19244aae6bcaff510686b75fef"
+spark-crumbs = "9355a92bc9adfe95a6ec5f8ac926f38a0b6e7db2"
+
+# Pins that the pinned repos themselves hold; scripts/check_candidate_pins.sh checks the first five against the lock
+# files. The crumb.lock pin differs from [commits] aien-architecture (gap G3 in CAND-0.gates.md; the crumb tool
+# source is identical, see CAND-2.gates.md section 1).
+[consumed_pins]
+sovereign-core-omega-lock = "79a805d162bfded8c5ce5a4c14f7c29e79025f39"
+sovereign-core-cargo-lock-aien-protocols = "7ac6facb630ca7e9a6ab4125b292203fe2bb6687"
+omega-physics-lock = "6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf"
+omega-aienos-lock = "bbad5e4250e57f8cbd1be4cf1390109aa65ef92c"
+omega-argus-lock = "b375dcaa2887d53cda407d773c2e4e489a0b1365"
+omega-and-aienos-crumb-lock-aien-architecture = "d0f0b95d344b4c6628c3d868346932fd247ce168"
+
+# SHA-256 of each built binary or image under test. Built on the Spark, host only, at the commits above, from two
+# roots (~/workspace/cand3-campaign/cand2/rootA and .../rootB/deeper/path-two), each with its own fresh CARGO_HOME
+# filled by cargo fetch --locked; every item built twice per root: 4 identical builds each. aien-cli contains no
+# home-directory path and no cargo registry path. omega-runtime is new (CAND-1 f96bdb7c embedded the physics
+# checkout path); the other eight equal the CAND-1 digests, because no code they contain changed.
+[executables]
+omega-runtime = "5a3084278ce62868b3655978bc161a0c635b368bddc588963849dd2c5cb343cd"
+omega-gpu-engine-lib = "a4af088104203c9ce1b92b6787f140d822a8039ac86349a0438fb7a379c0fc5c"
+aien-cli-native-release = "3a17ee79a238ad223fd59f4436d98906a0144b8d5ac47809da194a9ac1d493db"
+aien-proof = "a37247a121eb96f56a637d5edf0712a636b341b9c02478dce5c119b559db5430"
+aien-test = "34ae31e5b16b078c6e41ca219c12e7895269542480c1b3509618ea3cd2c576ef"
+aienos-boot-image = "8b1595cc8e6729d7531a08f2ff19ceb9cddc6eba731f4efb1543a2ee37da5a07"
+aienos-ck-core-image = "a21218dc1df890274e1b90f9f8e4a3f3d374fd161b274836abcd462e3a195a82"
+physics-boot-bin = "4b22a08cd408b5cf90258af13b833b97a5211b4d2480fa74be357228f4aed3bd"
+atlas-m2-boot-bin = "1d6d75a6881bb9d9b17a777ec7dee885780386c4699d776adc7cc1c277b09012"
+
+# Model inputs for the real-model gates (inputs, never executables): unchanged from CAND-1.
+[model]
+model-id = "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
+format = "safetensors, torch_dtype bfloat16"
+model-safetensors-sha256 = "6e6001da2106d4757498752a021df6c2bdc332c650aae4bae6b0c004dcf14933"
+model-safetensors-bytes = "2200119864"
+tokenizer-json-sha256 = "bcd04f0eadf90287bd26e1a183ac487d8a141b09b06aecb7725bbdd343640f2e"
+config-json-sha256 = "486bedda3a6988332e60d9638a09ca4b260d34ebcf1b19e22cf3b140b63d8fe9"
+geometry = "LlamaForCausalLM: layers 22, hidden 2048, heads 32, kv heads 4, head_dim 64 (hidden/heads), intermediate 5632, vocab 32000, max positions 2048, rope_theta 10000.0, rms_norm_eps 1e-05"
+oracle-fixture-safetensors-sha256 = "4707e3ba5c75f6c953217235528b38b3dffa334f68b8356f7356f9a5f6a6a6ea"
+oracle-fixture-manifest-sha256 = "d9871e7834513dfff5d453e6915440e4976098a7e84bc75086a3ab7833dcefd9"
+
+[toolchain]
+rustc = "rustc 1.98.1 (48a229cea 2026-09-01), LLVM 22.1.8, host aarch64-unknown-linux-gnu"
+cargo = "cargo 1.98.1 (797e8a9bc 2026-08-05)"
+cc = "cc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0"
+make = "GNU Make 4.3"
+binutils = "GNU ld and ar 2.42 (Ubuntu)"
+cross-cc = "aarch64-linux-gnu-gcc, for physics m2_build.sh and the aienos C kernel (host is aarch64)"
+mojo = "not used by the default build (spark-max-cabi is opt-in since sovereign-core #212)"
+rust-toolchain-file = "none in any pinned repo (gap G4)"
+
+# What was built and how. Script: ~/workspace/cand3-campaign/cand2/cand2_build.sh (copy in each evidence directory).
+[build]
+physics = "./m2_build.sh (physics has no Makefile; omega compiles physics m16/nvrm sources directly). physics.bin and atlas_m2.bin rebuild byte for byte equal to the committed files."
+omega = "make -j6 PHYSICS_DIR=<physics worktree> OUT_DIR=build/rb all libomega_gpu"
+aien-sovereign-core = "cargo fetch --locked into a fresh CARGO_HOME, then scripts/repro-build.sh --offline (cargo build --release --locked with --remap-path-prefix for CARGO_HOME and the repo root) -p aien-cli -p aien-proof -p aien-test, default features (dev-fallback off), AIEN_OMEGA_DIR and AIEN_PHYSICS_DIR set, AIEN_DEV_FALLBACK and AIEN_FORCE_CPU_STUB unset"
+release-profile = "opt-level 3, lto true, codegen-units 1, panic abort, strip true (workspace Cargo.toml)"
+aienos = "make -C native/kernel -j4, then make -C native/kernel -j4 full (core image and full image)"
+aien-cli-target-dir = "<root>/wt-sc/target-rb (root A and root B)"
+native-engine-linked = "cargo:rustc-cfg=has_omega_gpu printed by crates/aien-omega-gpu/build.rs; aien-cli carries the string OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)"
+
+# Environment of the production configuration: unchanged from CAND-1.
+[env]
+AIEN_DEV_FALLBACK = "unset (production strict); CI sets 1 for host test runs, which a strict receipt rejects"
+AIEN_FORCE_CPU_STUB = "unset (would force the CPU stub library)"
+AIEN_OMEGA_DIR = "omega checkout at omega.lock, required for the native engine link"
+AIEN_PHYSICS_DIR = "physics checkout at omega physics.lock, required when physics is not at <omega>/../physics"
+AIEN_OMEGA_GPU_LIB = "unset (would link a prebuilt archive without a sha check)"
+AIEN_GPU_BACKEND = "omega demands the native backend at run time; AIEN_REQUIRE_BLACKWELL does the same"
+AIEN_E2E_CHECKPOINT = "directory of the TinyLlama checkpoint for the real-model gates"
+AIEN_MODEL_PATH = "safetensors file for aien-cli; with AIEN_TOKENIZER_PATH, AIEN_MODEL_DIR, AIEN_REQUIRE_CHECKPOINT=1 (no fallback to reference weights)"
+
+[hardware]
+machine = "spark-b87b, NVIDIA DGX Spark (GB10)"
+gpu = "NVIDIA GB10, Blackwell, part 2E12-275-A1, VBIOS 9A.0B.2D.00.00, driver 580.173.02"
+kernel = "Linux 7.0.0-1019-nvidia, aarch64"
+os = "Ubuntu 24.04.5 LTS"
+cpu = "20 cores: Cortex-X925 and Cortex-A725"
+memory = "127598528 kB"
+gpu-load-note = "At freeze (17:57Z) the GPU held one resident process of another account (atlas image python, 18.4 GB, 0 % utilization); no other GPU or build job. Chip timing results state the load they ran under (CAND-2.gates.md)."