aien-architecture-mv
Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.
Brought by drakestapleton
aien-architecture-mv / qualification / candidates / CAND-5.gates.md
| 1 | # CAND-5 gates and evidence |
| 2 | |
| 3 | CAND-5 is the 2026-11-06 mains: sovereign-core `dffdbd19` (omega.lock `f9a9a40`), omega `f9a9a40` (physics.lock |
| 4 | `048e5f5e`, aienos.lock `b84c0a6`, argus.lock `b375dca`), with no model (engine-only, see `CAND-5.toml` `[model]`). |
| 5 | Cut 2026-11-07 for the first tagged Core release (Linear DRA-46, DRA-51). It supersedes CAND-4 (`CAND-4.toml` is not |
| 6 | edited). Evidence lives on the Spark under `~/workspace/evidence-out/CAND5-*`. Statuses as in `CAND-3.gates.md`. |
| 7 | |
| 8 | ## 1. Clean-worktree build (host only) |
| 9 | |
| 10 | Script `cand5_build.sh` (copy in each evidence directory, sha256 `7c373da1...`), adapted from `cand4_build.sh`: |
| 11 | blobless GitHub clones (omega-mv, aienux, physics-mv, aien-sovereign-core-mv), detached worktrees at the CAND-5 |
| 12 | commits, a fresh CARGO_HOME filled by `cargo fetch --locked`, every item built, hashed, deleted and built again. The |
| 13 | script refuses to build unless the lock chain matches the commits it was given. Differences from CAND-4: `make -j2` |
| 14 | under `taskset -c 8-9`; sovereign-core also builds `aien-serve-http` alone after `aien-cli` (the engine SI embeds), |
| 15 | so 26 digests; the release logs are searched for the GPU link mode and for "development override". |
| 16 | |
| 17 | | Run | Root | Result | |
| 18 | |---|---|---| |
| 19 | | CAND5-BUILD-A | `cand5/rootA` | PASS: 26 of 26 digests identical in both builds, VERDICT PASS (summary sha256 `5c5a5696...`) | |
| 20 | | CAND5-BUILD-B | `cand5/rootB` (other path; CARGO_HOME a hard-linked copy at another path) | PASS: 26 of 26, VERDICT PASS (summary sha256 `569deb9c...`) | |
| 21 | |
| 22 | `digests.txt` of A and B are byte-identical (sha256 `1b5435e9b23c03945c2e9d084ac0918440869bb0ac22cdeec5679f43e4632ae3`), |
| 23 | so the digests also agree across two roots. Checks in both roots: physics boot bins equal the committed files; |
| 24 | `libomega_gpu.a` carries no gate objects (G6); native engine linked (`has_omega_gpu`); composition library linked |
| 25 | (`has_omega_compose`); aien-cli carries the native backend string; no cargo registry path in aien-cli (G13); zero-CUDA |
| 26 | gate PASS; no TEST strings in the aienos production images; every worktree clean after the build. The aien-cli and |
| 27 | aien-serve-http release logs each show `AIEN_OMEGA_GPU_LINK=pinned-source` and `AIEN_OMEGA_GPU_DIGEST=locked`, and |
| 28 | 0 "development override" lines. `omega-gpu-engine-lib` `2ea0d7f0...` and `omega-librx-compose` `28896316...` equal |
| 29 | the f9a9a40 lines of sovereign-core `native-artifacts.lock` (sovereign-core #921), an independent reproduction. |
| 30 | |
| 31 | Unchanged from CAND-4 (same digest): physics-boot-bin, atlas-m2-boot-bin, aienos-boot-image, aienos-ck-core-image, |
| 32 | omega-rx-operator. Every other entry changed. |
| 33 | |
| 34 | Release tree gate: sovereign-core branch `hive/dra-46-release-gate` pins CAND-5 in `release/candidate.toml`; |
| 35 | `scripts/check-release-candidate.sh` prints `candidate=CAND-5`, rc 0. A package built from root A's binaries by |
| 36 | `scripts/package-release.sh` passes `check-release-candidate.sh --package ... --native` (sha256 `a8ffd568...`, |
| 37 | byte-reproducible; `~/workspace/evidence-out/CAND5-RELEASE-PREP/`). |
| 38 | |
| 39 | ## 2. What CAND-5 does not prove yet |
| 40 | |
| 41 | - No model is qualified: `[model]` is `none`. No real-model gate ran. The own Omega LLM is served by aien-train's |
| 42 | `ollm`, not by this engine (DRA-124 selects the checkpoint). |
| 43 | - Qualification campaigns (useful workflow Q1, recovery Q2): NOT_RUN. |
| 44 | - Chip results: none; the build is host only. No GPU window was used. |
| 45 | - Release demo with a public key (sign, verify as `release`, install, upgrade, rollback): NOT_RUN. No public-release |
| 46 | key exists until the key ceremony (Linear DRA-42, in person); the publish gate refuses the placeholder key. |
| 47 | - The hosted `release.yml` build on `ubuntu-24.04-arm` was not run, so whether the hosted toolchain reproduces these |
| 48 | digests is NOT_RUN. |
| 49 | - `aien-serve-http-native-release` is the host recipe, not the DRA-43 container build that SI ships. |
| 50 | |
| 51 | ## 3. GPU library provenance (DRA-41) |
| 52 | |
| 53 | `libomega_gpu.a` is built from omega-mv `f9a9a40` (pinned source, digest locked in `native-artifacts.lock`). That |
| 54 | is not a tagged commit, and omega-mv is not the canonical GPU repository: ADR 0042 and the queen decision of |
| 55 | 2026-11-06 (si034) name aien-dev/CUDApp. Building the engine's GPU library from a tagged CUDApp commit depends on |
| 56 | CUDApp #280 (integration branch `integ/omega-cuda-stack`) merging, a CUDApp tag, and sovereign-core #784 (build from |
| 57 | `cudapp.lock`, draft). A candidate after that lands (CAND-6) replaces `omega-gpu-engine-lib`. |
| 58 | |
| 59 | ## 4. Checker results and gaps |
| 60 | |
| 61 | - `tools/candidate/check_candidate.om` (omc `734f0a39...`): `OK: qualification/candidates/CAND-5.toml (amendments: 0)`. |
| 62 | - `tools/candidate/check_pins.om` (same omc): PINS DISAGREE. omega.lock, aienos.lock, physics.lock, argus.lock and |
| 63 | their `[consumed_pins]` agree; the three sovereign-core Cargo.lock pins report `git revision none`. Recorded gaps, |
| 64 | not candidate defects: |
| 65 | - **G1**: `check_pins` reads only the `aien-dev/<name>` source URL, not `aien-dev/<name>-mv`. sovereign-core |
| 66 | consumes aien-protocols as `aien-protocols-mv` (#906) and crumb-spec as `crumb-spec-mv` (issue 815), at exactly |
| 67 | the pinned commits `28bc49ec` and `24194d1`. |
| 68 | - **G2**: spark-crumbs is in-tree in sovereign-core (#892), so there is no git revision to compare; the |
| 69 | `[contracts]` value is the archived `9355a92`. |
| 70 | A checker change (accept `-mv` sources, and an in-tree contract) is a follow-up; until then CAND-5's `check_pins` |
| 71 | result stays FAIL with these two named reasons, as CAND-0 and CAND-1 carry theirs. |
| 72 | |
| 73 | **Note 2026-11-07 (checker change, no amendment; CAND-5.toml is not edited).** `check_pins.om` now reads `-mv` |
| 74 | sources and in-tree contracts (`tools/candidate/README.md`, DRA-46 follow-up). On CAND-5, with the lock files of |
| 75 | its pinned commits (read offline from local clones at sovereign-core `dffdbd19` and omega `f9a9a40`, and as the |
| 76 | parity case `live-cand5` on byte copies of the same git blobs), it prints PINS DISAGREE with exactly one FAIL line: |
| 77 | `sovereign-core Cargo.lock spark-crumbs: git revision none (Cargo.lock has a path package spark-crumbs: the crate is |
| 78 | built in-tree, which this manifest does not state with contracts.spark-crumbs-consumed = "in-tree")`. Every other |
| 79 | pin agrees, including aien-protocols `28bc49ec` (as `aien-protocols-mv`), crumb-spec `24194d1` (as `crumb-spec-mv`) |
| 80 | and `consumed_pins.sovereign-core-cargo-lock-aien-protocols`; `omega-crumb-lock-aien-architecture` is `SKIP` (not |
| 81 | read by the checker). |
| 82 | - **G1 closed** by the checker: a `-mv` source counts as its repo, and the old and `-mv` names are one pin. |
| 83 | - **G2** is now a stated, genuine difference rather than a checker gap. A manifest says a contract is built |
| 84 | in-tree with `[contracts] spark-crumbs-consumed = "in-tree"`; the checker then requires a path package and no git |
| 85 | source, as sovereign-core's own gate does for `[pins] spark-crumbs = "in-tree"` (ce792cf5). CAND-5 cannot gain |
| 86 | the key (an amendment may not touch `[contracts]`), so its `check_pins` result stays FAIL with this one named |
| 87 | reason. The same manifest with the key added agrees (parity case `live-cand5-intree`); a later candidate states it. |