From c707c133ba6ee4cd615d336567b1462031698ca7 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sun, 4 Oct 2026 22:32:07 -0500 Subject: [PATCH 1/2] Freeze CAND-0: seven-repo candidate manifest, executable digests, gates and gaps The 2026-10-01 CAND-0 draft was never frozen. This replaces it with the 2026-10-05 campaign candidate: seven repo commits (omega e5593ae, physics 6d7cf0d, aien-sovereign-core 0c1d249, aienos 9d41efc, aien-protocols 3a4cdbe, aien-architecture c5d8097, interplane 58c5198), contracts pinned to the revisions Cargo.lock consumes, sha256 of ten built executables, the model and tokenizer digests, toolchain, env and hardware identity. Built host-only from clean worktrees, twice each, byte-identical results (omega, physics boot artifacts, aien-cli, aienos C kernel). Zero-CUDA gate on the release aien-cli: PASS. CAND-0.gates.md records the build recipe, twelve reproducibility gaps (the aienos.lock and aien-protocols pin mismatches, mojo/MAX inside the cargo build, path-bound digests) and the required gate list with exact commands and evidence class. check_candidate.sh now validates optional physics and interplane pins; its test uses the old draft as a fixture and covers the new checks with mutants (33 pass, 0 fail). Co-Authored-By: Claude Opus 5.5 --- .crumb | 24 ++--- docs/.crumb | 20 ++-- docs/qualification/CANDIDATE.md | 5 +- qualification/candidates/CAND-0.gates.md | 125 +++++++++++++++++++++++ qualification/candidates/CAND-0.toml | 109 +++++++++++++++++--- scripts/.crumb | 10 +- scripts/check_candidate.sh | 9 ++ scripts/test_check_candidate.sh | 16 ++- scripts/testdata/cand-draft-fixture.toml | 24 +++++ 9 files changed, 297 insertions(+), 45 deletions(-) create mode 100644 qualification/candidates/CAND-0.gates.md create mode 100644 scripts/testdata/cand-draft-fixture.toml diff --git a/.crumb b/.crumb index e25591b..5e14469 100644 --- a/.crumb +++ b/.crumb @@ -21,39 +21,39 @@ "generated": { "children": [ { - "digest": "ccd1b2595c8d39e425c8d31be72f01e106687ef9c46ae99cb4cce0f84267d1d7", - "last_commit": "5c1a523", + "digest": "c822171b6341f62f44e66c9b8c50bbab5eaa3df5bf61f010c8c7f166119e997a", + "last_commit": "c5d8097", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, { "digest": "1aeb38c2fca59189c2a9630d82f7d8c4ca808626f8ab907b79388520122482b9", - "last_commit": "607c6b5", + "last_commit": "c5d8097", "name": "doctrine", "purpose": "Directory doctrine. Purpose not yet described by a human." }, { - "digest": "b3d92d7358ad2a5174868b2227ae0f3b7d667cfc065820c43e9375f1ce51cbec", - "last_commit": "6c95697", + "digest": "fa990e71f6e3b3dbe1ab8072cf5ed51f8a4bcb0759756c60fc09b647bfcc6904", + "last_commit": "e43e476", "name": "scripts", "purpose": "Directory scripts. Purpose not yet described by a human." }, { "digest": "cdd14c4842f34bc96327321a87f1cd8a17a074966e0e25421da072bdbc249f8c", - "last_commit": "6c95697", + "last_commit": "d0f0b95", "name": "tools", "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:27fdc98cce2937a1ea2bd4da88b644463c82c886abfe75f83d21343f55907d34", - "compiled_at": "2026-10-05T02:57:45Z", + "children_root": "sha256:a8ad01414b11215054dcbfd41e8b3394460a1af113c287443bbd83135d501634", + "compiled_at": "2026-10-05T03:32:07Z", "compiler": "crumb-compile/1", - "digest": "sha256:1a36c1d192994772ef99b8555d7362b7cc098526d06a59cd957765b6b788fc8c", + "digest": "sha256:fa39965ce40bf7d49aaf8572a531c4df42fb19dba6573c63494f77c0f3a82db8", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 215, - "generated_at_commit": "607c6b5c2b2a2f824861a838dce9c7befe20b8b4", - "source_tree": "sha256:78214759cd17dbdd361d8a47de7437f1f9df837a8db43a16ed6e5d1e6344ccce" + "files": 217, + "generated_at_commit": "c5d80978c7a22cc039e67def9745cede5010f388", + "source_tree": "sha256:cc3a6c12428ba5b25564b0a60b4a6d90d75b70a9e1e1c0243a39e71afdb22feb" }, "owner_lane": "", "provenance": { diff --git a/docs/.crumb b/docs/.crumb index 9d72633..b5d3294 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -38,50 +38,50 @@ "children": [ { "digest": "53eaebf56e108247a1e0d254401862846780606c8722a90eb3809ce9d3443645", - "last_commit": "5c1a523", + "last_commit": "c5d8097", "name": "adr", "purpose": "Directory docs/adr. Purpose not yet described by a human." }, { "digest": "69a6bbf1824c743bd7447ce351c6ca39d49b241f2d6f6fc6bc9fe5b6fad77a01", - "last_commit": "6c95697", + "last_commit": "89fda22", "name": "crumbs", "purpose": "Directory docs/crumbs. Purpose not yet described by a human." }, { "digest": "0f9f110974f880c3527ac4f9bb755157a9e830080c7aff363e33d187bc22edc4", - "last_commit": "6c95697", + "last_commit": "874dc62", "name": "errata", "purpose": "Directory docs/errata. Purpose not yet described by a human." }, { "digest": "ec40dc0a778afd30b22ffcb2090caa1634e0ed0b0755d7a3ba01d5770bcd7188", - "last_commit": "6c95697", + "last_commit": "a0b3545", "name": "plans", "purpose": "Directory docs/plans. Purpose not yet described by a human." }, { "digest": "6301e5dfed47f354392e2b2b175845f1135e348b71fa91fa925dd2775947afa8", - "last_commit": "6c95697", + "last_commit": "12c6a57", "name": "research", "purpose": "Directory docs/research. Purpose not yet described by a human." }, { "digest": "187ee5c915158c24bdbcd58f548fd605eb73e9b9329ce7f36adabfecf80cf627", - "last_commit": "6c95697", + "last_commit": "874dc62", "name": "specs", "purpose": "Directory docs/specs. Purpose not yet described by a human." } ], "children_root": "sha256:8ad700210be84322b66fe3938d136a2c64bb41cd5e3021450c23bf5adbf21e36", - "compiled_at": "2026-10-05T02:57:45Z", + "compiled_at": "2026-10-05T03:31:54Z", "compiler": "crumb-compile/1", - "digest": "sha256:ccd1b2595c8d39e425c8d31be72f01e106687ef9c46ae99cb4cce0f84267d1d7", + "digest": "sha256:c822171b6341f62f44e66c9b8c50bbab5eaa3df5bf61f010c8c7f166119e997a", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 121, - "generated_at_commit": "607c6b5c2b2a2f824861a838dce9c7befe20b8b4", - "source_tree": "sha256:a4f8e829a5286c50d49bf8208f22684aab53b8472bc3729a16ce9534c64a6097" + "generated_at_commit": "c5d80978c7a22cc039e67def9745cede5010f388", + "source_tree": "sha256:0f1d51aadc4716a4e3faffe0eeafa09806b2979f485b6f037c57cf739fe8a8f3" }, "owner_lane": "", "provenance": { diff --git a/docs/qualification/CANDIDATE.md b/docs/qualification/CANDIDATE.md index 87225a8..8b73076 100644 --- a/docs/qualification/CANDIDATE.md +++ b/docs/qualification/CANDIDATE.md @@ -9,7 +9,7 @@ Scope: how one exact integrated AIEN build is named, frozen, and judged. ## Reuse, no parallel format -Results are `EvidenceReceiptV1` receipts from `aien-sovereign-core/crates/aien-proof` (`src/evidence.rs`: fields `repo`, `commit`, `dirty`, `toolchain`, `procedure`, `machine`, `env_class`, `input_artifacts`, `output_artifacts`, `assertions`, `output_digest`, `result`). Formal proofs use the `formal-oracle-binding` receipt kind (`src/formal.rs`, `KIND`). This spec adds only the candidate manifest and the rules below. It does not define a new receipt. +Results are `EvidenceReceiptV1` receipts from `aien-sovereign-core/crates/aien-proof` (`src/evidence.rs`: fields `repo`, `commit`, `dirty`, `toolchain`, `procedure`, `machine`, `env_class`, `input_artifacts`, `output_artifacts`, `assertions`, `output_digest`, `result`). Formal proofs use the `formal-oracle-binding` receipt kind (`src/formal.rs`, `KIND`). This spec adds only the candidate manifest and the rules below. It does not define a new receipt. CAND-0 was frozen on 2026-10-05 and replaced the never-frozen 2026-10-01 draft of the same id. ## The candidate manifest @@ -19,6 +19,7 @@ A candidate is a TOML file `qualification/candidates/CAND-.toml`, schema `Can - `[commits]`: one full 40-hex commit per repo: `omega`, `aienos`, `aien-sovereign-core` (FORGE and `aien-proof`), `aien-protocols`, `aien-architecture`. The contracts and wire schemas live in `aien-protocols`, so its pin is the contracts pin. The crumb contracts are pinned separately in `[contracts]`. - `[executables]`: a content digest for every built binary or image under test. `UNBUILT` is allowed only while status begins with `draft`. - `[contracts]`: one full 40-hex commit for each contract repo: `crumb-spec` (the Crumb Protocol specification) and `spark-crumbs` (its event ledger implementation). Orchestrator decision 2026-10-01: both are contracts and are pinned in every candidate. Both repos are archived on GitHub, so the pins are stable. +- Optional `[commits]` keys `physics` and `interplane` (added for CAND-0): validated like the others when present. Informational sections the checker ignores: `[consumed_pins]` (pins the pinned repos themselves hold, so a mismatch with `[commits]` is visible), `[model]`, `[toolchain]`, `[build]`, `[env]`, `[hardware]`. A candidate may carry a companion `CAND-.gates.md` next to its manifest with the build recipe, the reproducibility gaps and the required gate list (see `CAND-0.gates.md`); it defines no new format and no new receipt. `status` is one of: `draft, not frozen`, `frozen`, `superseded`. Only a `frozen` candidate may be qualified. @@ -56,4 +57,4 @@ Promotion checks (for example `evidence-immutable`) are mandatory. A bypass need ## Checker -`scripts/check_candidate.sh ` verifies that all required fields are present, that each pinned commit (`[commits]` and `[contracts]`) is 40 hex digits and exists in its repo (checked with `gh api`), that executable digests are 64 hex and not all zero, that a `#` inside a quoted value is kept (only a trailing comment is dropped), and that a non-draft manifest has real executable digests. Test: `scripts/test_check_candidate.sh` (offline: a fake `gh` on PATH exercises the real `gh` code path, and mutant copies of the checker prove each check bites). Wiring into CI is not done and needs Drake's approval. +`scripts/check_candidate.sh ` verifies that all required fields are present, that each pinned commit (`[commits]` and `[contracts]`) is 40 hex digits and exists in its repo (checked with `gh api`), that executable digests are 64 hex and not all zero, that a `#` inside a quoted value is kept (only a trailing comment is dropped), and that a non-draft manifest has real executable digests. Test: `scripts/test_check_candidate.sh` (the 2026-10-01 draft is kept as `scripts/testdata/cand-draft-fixture.toml`; offline: a fake `gh` on PATH exercises the real `gh` code path, and mutant copies of the checker prove each check bites). Wiring into CI is not done and needs Drake's approval. diff --git a/qualification/candidates/CAND-0.gates.md b/qualification/candidates/CAND-0.gates.md new file mode 100644 index 0000000..5180b3b --- /dev/null +++ b/qualification/candidates/CAND-0.gates.md @@ -0,0 +1,125 @@ +# CAND-0: build recipe, reproducibility gaps and required gates + +Manifest: `qualification/candidates/CAND-0.toml` (schema `CandidateManifestV1`, spec `docs/qualification/CANDIDATE.md`). +Written by lane L1-CAND on 2026-10-05 from clean worktrees at the pinned commits. Every claim is tagged OBSERVED (seen +in a command or file, named), INFERRED, or UNVERIFIED. Nothing here relaxes a gate or counts a skipped check as a pass. + +## 1. Which existing mechanism defines what + +| Question | Defined in | +|---|---| +| Candidate manifest, freeze rules, required result fields | `docs/qualification/CANDIDATE.md` (C2), manifest `qualification/candidates/CAND-.toml`, checker `scripts/check_candidate.sh`, test `scripts/test_check_candidate.sh` | +| Result record | `EvidenceReceiptV1` in aien-sovereign-core `crates/aien-proof/src/evidence.rs` (`cand:` and `exe:=` go in `external_refs`) | +| Gate manifest v1 and the runner receipt | ADR 0028 (`docs/adr/0028-aien-test-runner-and-evidence-contract.md`), implemented by `tools/aien-test` in aien-sovereign-core; v2 additions in ADR 0033 (PROPOSED) | +| Committed `.gate` manifests at the pinned commit | 9 in aien-sovereign-core (`crates/aien-runtime/tests/prefill_e2e2*.gate`); none in omega, physics, aienos, aien-protocols, aien-architecture, interplane (OBSERVED, `find -name '*.gate'`) | +| Other gate dialects still in use | omega `tools/manifests/*.chiprun` (run by `tools/chip_run.sh`), aienos `scripts/ck_gates.sh` table, aien-proof `crates/aien-proof/gates/*.json` (closure manifests for phases, not CAND-0 gates), CI workflows | +| Who reads CAND-0 today | omega `tools/c4_requal.sh` reads `qualification/candidates/CAND-0.toml` from aien-architecture `origin/main`; it reports `BOUND` only when status is `frozen` and the omega commit and `aienos.lock` equal the manifest (OBSERVED, `tools/c4_requal.sh` lines 31-37 and 63-64). Keep the `[commits]` key format. | + +A multi-repo candidate has a place already: the manifest lists seven repos. No new schema was added; this PR adds two +optional `[commits]` keys (`physics`, `interplane`) that the checker validates when present, plus informational sections +(`consumed_pins`, `model`, `toolchain`, `build`, `env`, `hardware`) that the checker ignores. + +## 2. Clean-worktree builds (host only, no chip, no QEMU) + +Worktrees at the pinned commits: `~/workspace/overnight-1005/wt-L1-CAND-`. Every build was run twice, the second +time after deleting the build outputs. Logs: `~/workspace/overnight-1005/logs/L1-CAND-*.log`. Copies of the first-run +binaries: `~/workspace/overnight-1005/artifacts-L1-CAND/`. All seven worktrees were clean (`git status --short` empty) after building. + +| Item | Command | Result | +|---|---|---| +| physics boot artifacts | `./m2_build.sh` (physics has no Makefile) | PASS twice; `physics.bin` 4b22a08c... and `atlas_m2.bin` 1d6d75a6... are byte for byte equal to the committed files (OBSERVED, `cmp`) | +| omega | `make -j6 PHYSICS_DIR= OUT_DIR=/build all libomega_gpu` | PASS twice; `omegatool` e702447f... and `libomega_gpu.a` e24cbfc9... identical across runs | +| aien-sovereign-core, production config | `env -u AIEN_DEV_FALLBACK AIEN_OMEGA_DIR= AIEN_PHYSICS_DIR= CARGO_TARGET_DIR= cargo build --release --locked --offline -p aien-cli -p aien-proof -p aien-test` | PASS twice (2m13s and 2m23s from an empty target directory, warm cargo cache); `aien-cli` 8b24a5bb... identical across runs at the same target path; native engine linked (`cargo:rustc-cfg=has_omega_gpu` in the build output; the binary carries "OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)"); the `libomega_gpu.a` that cargo built through `build.rs` equals the one built with `make` | +| aienos C kernel | `make -C native/kernel -j4` then `make -C native/kernel -j4 full` | PASS twice; both `BOOTAA64.EFI` images identical across runs | +| Zero-CUDA gate | `bash scripts/zero-cuda-gate.sh --self-test` then `bash scripts/zero-cuda-gate.sh ` | PASS: self-test caught the CUDA probe and accepted the clean library; `aien-cli` needs only libm, libssl, libcrypto, libgcc_s, libc (OBSERVED) | +| Zero-CUDA gate on the Mojo bridge | same script on `libspark_max.so` | PASS (extra, see gap G7) | +| Strict mode | default features, `AIEN_DEV_FALLBACK` unset | `dev-fallback` is declared only in `crates/aien-inference-abi/Cargo.toml` and no other crate enables it (OBSERVED, `grep`), so the build is strict. The strict refusal at run time was NOT exercised by this lane. | + +Not built by this lane: the aienos Rust kernel and its cargo crates, the QEMU test-variant images, aien-protocols, +aien-architecture and interplane (no executables in the manifest for them). aienos QEMU and every chip run are NOT_RUN. + +## 3. Reproducibility gaps (precise) + +- G1, aienos pin. omega `aienos.lock` holds d39dd5bc3deb (an ancestor of the CAND-0 aienos 9d41efc9d1be). The omega gates that build the aienos capability library bind to d39dd5b, and `c4_requal.sh` will print `NOT_BOUND` for CAND-0 until omega's `aienos.lock` equals the candidate or a new candidate is cut. omega `argus.lock` pins b375dcaa2887 on branch `feat/argus-0` (OBSERVED, file contents). +- G2, aien-protocols pin. aien-sovereign-core builds against `aien-protocols` rev 7ac6facb630c through git dependencies in `Cargo.lock` (4 entries, also crumb-spec 24194d1b7917 and spark-crumbs 9355a92bc9ad). The CAND-0 pin 3a4cdbe8d360 is 8 commits later (mostly `specs/` and licence changes; `crates/` has 32 changed files, INFERRED to be metadata and crumb files, not read in full). So the pinned commit is not what the build consumes. The contracts in the manifest follow `Cargo.lock`, not the archived repo HEADs. +- G3, crumb compiler. omega and aienos `crumb.lock` pin aien-architecture d0f0b95d344b; CAND-0 pins c5d80978c7a2. `git diff d0f0b95 c5d80978 -- tools/crumb` is empty (OBSERVED), so the crumb tool source is identical. +- G4, no toolchain pin. No `rust-toolchain` file in any pinned repo; CI uses the floating stable channel. This lane used rustc 1.98.1. +- G5, network and cache. The builds used `--offline` and succeeded only because `~/.cargo` already holds the crates and the three git checkouts (no `vendor/` directory). A cold machine needs crates.io and GitHub. UNVERIFIED on a cold cache. +- G6, path baked into artifacts. omega compiles `-DOMEGA_PHYSICS_DIR=` into `libomega_gpu.a`. Identical digests were obtained only with the same physics path both times. INFERRED that a different checkout path gives different bytes (not tested). omega's default `PHYSICS_DIR=../physics` is a sibling-directory dependency; `build.rs` refuses an omega checkout whose HEAD differs from `omega.lock`, and omega refuses a physics HEAD that differs from `physics.lock` unless `PHYSICS_LOCK_CHECK=0`. +- G7, Mojo and MAX in the Rust build. `crates/spark-max-cabi/build.rs` runs `mojo build` whenever a `mojo` binary is on PATH and ignores a missing one with only a warning. Here `mojo` is `~/.local/bin/mojo`, a symlink into `~/max-env` (a Python virtual environment). The resulting `libspark_max.so` (3630076d...) needs `libKGENCompilerRTShared.so` and `libAsyncRTMojoBindings.so` from that environment; it is copied into the source tree (git-ignored) and its build path is compiled into `aien-cli` through `option_env!("SPARK_MAX_SO_BUILT")`. Two consequences: the `aien-cli` digest is tied to the target directory path, and the build depends on a Modular install outside the pinned set. Whether the production GB10 path ever loads this library is UNVERIFIED. `zero-cuda-gate.sh` is only run on `aien-cli` in CI, not on this library. +- G8, unpinned CI inputs. physics `host-gates.yml` checks out omega and aien-architecture at `ref: main`. omega host suites run with `PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0` (OBSERVED), so those gates do not exercise the pinned physics. For CAND-0 runs the physics lock check should stay on (recommendation). +- G9, CI tests the stub configuration. aien-sovereign-core CI runs `cargo test --workspace` with `AIEN_DEV_FALLBACK=1` and no native engine link (OBSERVED, `ci.yml` lines 44-47). That is host evidence for the dev configuration, not for the strict native `aien-cli` hashed above. +- G10, aienos images. The C kernel QEMU gates build their own test-variant images (fw_cfg, SMP skip, store crash, stale handoff, xHCI mutations) through `native/kernel/Makefile` flags. Only the core and full images are in the manifest. The receipt of `ck_gates.sh` carries its own `physical: NOT_RUN`. +- G11, model location. The checkpoint lives outside every repo (`~/models/TinyLlama-1.1B-Chat-v1.0`). Its sha256 equals `model_sha256` in the committed oracle fixture manifest, which is the only in-repo pin (OBSERVED). The Hugging Face revision is recorded in the directory's `.cache/huggingface` metadata. +- G12, interplane. Its CI uses pip, pytest and Python scripts. That is the "yardstick outside AIEN" arrangement; the commit is pinned but its gates are not AIEN-native. + +## 4. Required gates for CAND-0 + +Evidence classes: **host** (this machine's CPU, no device), **simulator** (host software model of a device, for example omega `--sim`, physics analog-sim), +**QEMU** (emulated machine, qualifies nothing physical), **physical** (GB10 chip or real hardware). Commands come from the repositories' own CI workflows, +scripts and test headers. Status for every row except the zero-CUDA rows: NOT_RUN by lane L1-CAND (not this lane's job). Chip, QEMU and `aien-test` rows go through +`~/.claude/skills/orchestrate-lanes/lanes.sh queue --heavy`. Run each gate from a clean worktree at the pinned commit and bind the receipt to `cand:CAND-0`. + +### aien-sovereign-core (0c1d249) +| Gate | Command (repo root) | Class | +|---|---|---| +| format | `cargo fmt --all -- --check` | host | +| installer tests | `bash scripts/test-install-release.sh`; `bash scripts/test-install.sh` | host | +| compile | `cargo check --workspace --all-targets` | host | +| lint | `cargo clippy --workspace --all-targets -- -D warnings` | host | +| workspace tests | `AIEN_DEV_FALLBACK=1 cargo test --workspace --verbose -- --test-threads=1` | host (dev fallback recorded, gap G9) | +| zero-CUDA | `bash scripts/zero-cuda-gate.sh --self-test`; `bash scripts/zero-cuda-gate.sh ` | host. **PASS** (lane L1-CAND, section 2) | +| preflight | `bash scripts/test-preflight-branch-guard.sh`; `AIEN_PROOF_OFF=1 AIEN_DEV_FALLBACK=1 AIEN_PREFLIGHT_CONTEXT=merged-tree bash scripts/agent-preflight.sh` | host | +| secrets and voice audits | the two inline audit steps at the end of `.github/workflows/ci.yml` | host | +| PREFILL-E2E-2 (9 gates: main plus mutants M1 to M8) | `aien-test run crates/aien-runtime/tests/prefill_e2e2.gate` and the eight `prefill_e2e2_m.gate` files; or `aien-test test ./...` | host (real TinyLlama on CPU, `cache: never`, up to 120 min) | +| native chip parity | `AIEN_OMEGA_DIR= AIEN_PHYSICS_DIR= cargo test -p aien-omega-gpu --release --test parity -- --ignored --nocapture` (test `chip_parity_f32_and_bf16`) | physical | +| native backend parity | same env, `cargo test -p aien-inference-abi --release --test omega_backend_parity -- --ignored --nocapture` (4 chip tests; one is labelled diagnostic) | physical | +| real-model strict gate | `AIEN_E2E_CHECKPOINT=~/models/TinyLlama-1.1B-Chat-v1.0 AIEN_STRICT_RECEIPT= cargo test -p aien-inference-runtime --release --test strict_real_model omega_vs_reference_real_model -- --ignored --nocapture` | physical | +| logit drift | `AIEN_E2E_CHECKPOINT=... cargo test -p aien-inference-runtime --release --test logit_drift -- --ignored --nocapture` | physical | + +### omega (e5593ae) +| Gate | Command | Class | +|---|---|---| +| host suites | `make PHYSICS_DIR= ...` for the targets in `host-suites.yml`: test-searchtrace test-estimation test-est-tools test-estimation-v3 test-est3c-tools test-inertial-alignment test-numeric-cpu test-numeric-qualify test-e1-combine test-chipwait-campaign test-gpu-wait test-gpu-wait-mutants test-train test-compiler-quick test-compiler-full physics0-test | host | +| host suites 2 | `host-suites-2.yml`: test-visor test-turing test-turing-exp001-a test-turing-exp001-coders test-turing-verify-indep test-turing-qcont test-turing-qrecord test-brownian-tps test-polyglot-asm test-polyglot-encoder test-algebra test-algebra-asan test-realize test-phase-twin test-ma-digital-bottom test-path test-crumbline test-library test-vcstore test-resolve test-vcstore-genesis test-resolve-genesis test-genesis test-genesis-real test-program-ir test-vc-bridge test-r15-instr test-r15-receipt test-r16-inventory test-r16-negative test-r16-surface test-r16-negative-mutants test-r16-qualify-selftest test-argus-runtime test-machine-identity-argus test-numeric-reduce-cpu test-divsqrt-host test-tensor test-tensor-store test-m20-receipt test-tensor-mutations | host | +| host suites 3 | `host-suites-3.yml`: test-numeric-lifecycle test-numeric-transc test-numeric-transc-digest test-language, plus the per-milestone matrix `test-${m}` defined in that file | host | +| resident reaction host | `rx-host.yml`: test-r3 test-r7 test-r8 test-r9 test-r12 test-action-graph test-state-projection test-capability-query test-capability-graph test-skillroute-compose test-semantic-comm test-cognitive-routing test-sem-incremental test-cortex test-jspace-prod test-composition test-composition-attach-asan test-composition-gate test-fabric test-fabric-living test-machine-identity test-effect-cap64 test-workflow-fusion test-typed-results test-costmodel test-program-id test-program-realize test-r10 test-r11 test-r16-authpath-linkmap test-r16-authpath-linkmap-silicon test-prod-hygiene test-prod-hygiene-silicon (static checks only) test-prod-refuses-test-pieces test-empirical test-plan-reuse | host | +| turing yield, smoke | `make test-turing-yield test-turing-energy`; `pr-smoke.yml`: test test-language test-numeric-transc | host | +| GPU engine without the chip | `make PHYSICS_DIR= test-gpu-matmul-api test-gpu-elementwise test-gpu-attention` (host-only refusals plus the IR simulator battery, including `--sweep --sim`) | simulator | +| C4 requalification | `tools/c4_requal.sh --mutants` (refuses a dirty tree; BOUND needs gap G1 closed) | host | +| evidence immutability | `.github/workflows/evidence-immutable.yml` check | host | +| chip engine gates | `tools/run_gpu_matmul_api_chip.sh `; `tools/run_gpu_elementwise_chip.sh ...`; `tools/run_gpu_attention_chip.sh ...` (verdict `OMEGA_GPU_ATTENTION_PASS`, timing median < 3 ms) | physical | +| chip, declared SKIP in CI | `rx-host.yml` and `host-suites*.yml` declare these Spark-only: test-r12-silicon test-r13-host test-r14-host test-r13-silicon test-r13-testbuild-host test-r13-testbuild-silicon test-prod-hygiene-silicon (probe run) test-r14-silicon test-r15-g7-host test-r15-parity-host test-r15-parity-silicon test-r16-authpath test-r16-authpath-silicon test-composition-gate-gpu test-m5 test-m19 test-m19r-qualify test-gate14-combine test-m17 test-numeric-transc-full | physical (the `-host` and `test-r16-authpath` ones need both Spark core classes and no chip) | + +### physics (6d7cf0d) +| Gate | Command | Class | +|---|---|---| +| FORGE V2 known answers | `tests/run_forge_v2_gates.sh` | host | +| analog simulation | `tests/run_forge_analog_sim_gates.sh` | simulator | +| Gate 3/4 receipt writer | `OMEGA_DIR= tests/test_forge_gates_receipt.sh ` | host | +| M2 PHYSICS_BOOT (15 gates) | `./run_m2_gates.sh` (leaves the committed receipt untouched) | QEMU | +| M3 PHYSICS_EFFECTS (19 gates) | `m3/tests/run_m3_gates.sh` | QEMU | +| GB10 gates, declared SKIP in CI | `tests/run_forge_gates.sh`, `tests/run_m15_gates.sh`, `tests/run_m16_requalification.sh`, `tests/run_nvrm_lifecycle_gates.sh`, `tests/run_submission_visibility_gates.sh` (one at a time, never killed) | physical | + +### aienos (9d41efc) +| Gate | Command | Class | +|---|---|---| +| capability and store suites | `make -C native/capability test`; `make -C native/store test mutants` | host | +| native suites | `make -C native/ ` for net, sig, crypto, m5, disk (`test sanitize mutants`), argus (`test sanitize`), capability (`mutants`) | host | +| C kernel unit tests | `make -C native/kernel test sanitize stage-test stage-sanitize` | host | +| gate runner self-test, owner keys | `bash scripts/ck_gates.sh --self-test`; `bash scripts/ck_owner_keys_check.sh` | host | +| Rust crates | `cargo test --locked --offline -p aienos-crypto`; `cargo test --locked --offline -p aienos-kernel crypto::`; `cargo clippy --locked --offline -p aienos-crypto --all-targets -- -D warnings`; `cargo check --locked --offline -p aienos-kernel --target aarch64-unknown-none --no-default-features`; `cargo fmt -p aienos-infer --check`; `cargo clippy -p aienos-infer --all-targets -- -D warnings`; `cargo test -p aienos-infer`; `cargo build -p aienos-infer --target aarch64-unknown-none` | host | +| C kernel QEMU gates | `bash scripts/ck_gates.sh --out `: M1 M3 SMMU NVME_SHUTDOWN P2_ARTIFACT M0_ROLLBACK M4_NVME M4_STORE M4_STORE_CRASH M4_CONTINUITY M4_RECOVERY M4_ALLEN ARGUS1_REVOKE KEYBOARD NET SMP DISK_LAYOUT FPU INFER SCREEN (a gate with no C implementation prints NOT_RUN, never PASS) | QEMU | +| end to end harness | `bash scripts/verify_all.sh` (`AIENOS_STRICT=1` turns a skipped step into a failure) | QEMU | +| Machine 1 and hardware | any physical aienos claim | BLOCKED_OPERATOR / BLOCKED_HARDWARE until Drake provides the machine; never inferred from QEMU | + +### aien-protocols (3a4cdbe), aien-architecture (c5d8097), interplane (58c5198) +| Repo | Command | Class | +|---|---|---| +| aien-protocols | `cargo fmt --all -- --check`; `cargo check --workspace --all-targets`; `cargo clippy --workspace --all-targets -- -D warnings`; `cargo test --workspace --verbose` | host | +| aien-architecture | `make -C tools/crumb test`; `./tools/crumb/crumb verify .`; `scripts/check_doctrine.sh`; `scripts/test_check_candidate.sh`; `scripts/check_candidate.sh qualification/candidates/CAND-0.toml`; `sh scripts/verify-r16-status.sh ` | host | +| interplane | the `ci.yml` jobs (cargo fmt, clippy, test, conformance; Python fixtures, pytest, trust digest; see gap G12) | host | +| interplane live model | `qualification.yml` (manual, needs a live model endpoint) | physical or external endpoint, BLOCKED_OPERATOR until an endpoint is named | + +### All repos +`crumb verify ` (CI runs it; last step before any commit). diff --git a/qualification/candidates/CAND-0.toml b/qualification/candidates/CAND-0.toml index e078f60..82710a8 100644 --- a/qualification/candidates/CAND-0.toml +++ b/qualification/candidates/CAND-0.toml @@ -1,24 +1,103 @@ # Candidate manifest, schema CandidateManifestV1. See docs/qualification/CANDIDATE.md. +# Required gates, build recipe and known reproducibility gaps: qualification/candidates/CAND-0.gates.md schema = "CandidateManifestV1" id = "CAND-0" -status = "draft, not frozen" -created = "2026-10-01" -note = "First manifest. Heads taken from main on 2026-10-01 with gh api repos/aien-dev//commits/main. Not a qualification candidate until frozen." +status = "frozen" +created = "2026-10-05" +note = "Code candidate for the 2026-10-05 overnight qualification campaign. Frozen 2026-10-05T03:25Z from GitHub mains plus the sovereign-core omega.lock chain (omega) and the omega physics.lock (physics). Replaces the 2026-10-01 draft CAND-0 (heads 25b4a51, bb3a5f4, e58742a, 4a4877a, f11ac55), which was never frozen and never qualified anything; it is in git history. Evidence publication commits are not code candidates. Executable digests were produced by lane L1-CAND on 2026-10-05, host only, from clean worktrees at these commits; build recipe and gaps are in CAND-0.gates.md." [commits] -omega = "25b4a51141fa48be01d1cdbac8617d41065e523d" -aienos = "bb3a5f4efb4c632d8485f9d05f615f466aff0f69" -aien-sovereign-core = "e58742acbb781ad4e472b3355b9b6ac8624617d9" -aien-protocols = "4a4877a88e141cb0c2d397191459912b8bfa993a" -aien-architecture = "f11ac55bd96908e004af625c8b53dc02b6188bca" +omega = "e5593ae488fcb9038557a4317a07faa7625649a3" +aienos = "9d41efc9d1bea31be0640ca70eeeec9d1d000fad" +aien-sovereign-core = "0c1d249f2d119c7c2d726a2d252dc913e6185d28" +aien-protocols = "3a4cdbe8d360a2e1ddb3e8b108684048b9d4ba10" +aien-architecture = "c5d80978c7a22cc039e67def9745cede5010f388" +physics = "6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf" +interplane = "58c5198a17b94bd8830305e81d3a82a369ee3bd4" +# Contracts are pinned to the revisions the candidate code consumes (aien-sovereign-core Cargo.lock, +# git dependencies). Both repos are archived; their HEADs (crumb-spec 10b825133580f7a4388ce78aca64b5db52c5d35b, +# spark-crumbs 98bb7cbf7b7b5aba2d3f03c73b6e7045ad0f07eb) are 2 commits ahead and are not consumed by CAND-0. [contracts] -crumb-spec = "10b825133580f7a4388ce78aca64b5db52c5d35b" -spark-crumbs = "98bb7cbf7b7b5aba2d3f03c73b6e7045ad0f07eb" +crumb-spec = "24194d1b7917ef19244aae6bcaff510686b75fef" +spark-crumbs = "9355a92bc9adfe95a6ec5f8ac926f38a0b6e7db2" -# Executable digests (SHA-256 or BLAKE3 hex of each built binary or image). -# "UNBUILT" is allowed only while status starts with "draft". +# Informational: pins that the pinned repos themselves hold. These are not the same as [commits] in three +# places (see CAND-0.gates.md, reproducibility gaps G1 to G3). Not checked by check_candidate.sh. +[consumed_pins] +sovereign-core-omega-lock = "e5593ae488fcb9038557a4317a07faa7625649a3" +sovereign-core-cargo-lock-aien-protocols = "7ac6facb630ca7e9a6ab4125b292203fe2bb6687" +omega-physics-lock = "6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf" +omega-aienos-lock = "d39dd5bc3deb1a24e26a5059477a1342c110c71b" +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. +# aien-cli embeds its build output directory (SPARK_MAX_SO_BUILT, option_env!), so its digest is bound to the +# build path in [build].aien-cli-target-dir; the same path rebuilt from scratch gave the same digest. [executables] -omega-runtime = "UNBUILT" -aienos-boot-image = "UNBUILT" -aien-proof = "UNBUILT" +omega-runtime = "e702447fc50a3edc4279e7e47ea29c2e6a5d87b8ea5bbf8adc99c518cb3dfa62" +omega-gpu-engine-lib = "e24cbfc9f8062a4845376421d4a0debff776c843bee5ddd2f047605dc01b2215" +aien-cli-native-release = "8b24a5bb77518541446528af4b653c7334b2b027cdab6f288ecb6d579681cac5" +aien-proof = "70c505e8e5492bb444f2620303f393d120c9e1894e89f316bf0a1d59556c4871" +aien-test = "b1b4c71ff3869cc0b4c98e12131fe92f133851ba25acceb3d7558dcf40304a43" +spark-max-bridge-so = "3630076d83b8ef2c02ff51afde84fb9b9deba7beaee0ea1266b394c84b59023f" +aienos-boot-image = "a0e3ad101792c13409e9b2f99978c7fd785c288eea5252dbcaabfd5c726f3746" +aienos-ck-core-image = "74e0a6ee69d01cbe9211eb951776c6d58a595a4e99f19e5d3de86ccc545d9346" +physics-boot-bin = "4b22a08cd408b5cf90258af13b833b97a5211b4d2480fa74be357228f4aed3bd" +atlas-m2-boot-bin = "1d6d75a6881bb9d9b17a777ec7dee885780386c4699d776adc7cc1c277b09012" + +# Model inputs for the real-model gates (inputs, never executables). Files are on the Spark under +# ~/models/TinyLlama-1.1B-Chat-v1.0 (Hugging Face revision fe8a4ea1ffedaf415f4da2f062534de366a451e6, recorded in +# the directory's .cache/huggingface/download metadata). The model and tokenizer digests equal the ones in +# aien-sovereign-core crates/aien-inference-abi/fixtures/tinyllama_oracle_manifest.json. +[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 = "Mojo 1.0.0 (ed45d567), a symlink into ~/max-env; used only by crates/spark-max-cabi/build.rs" +rust-toolchain-file = "none in any pinned repo (gap G4)" + +# What was built and how. Paths are the L1-CAND worktrees under ~/workspace/overnight-1005. +[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= OUT_DIR=/build all libomega_gpu" +aien-sovereign-core = "cargo build --release --locked --offline -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 = "/home/drakestapleton/workspace/overnight-1005/target-L1-CAND-sc" +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. Dev fallback is a recorded opt-in, never part of a strict run. +[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 /../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 = "The GPU was shared at freeze time (ollama llama-server, an atlas python process and MAX serve resident, util 94% per the campaign ledger). Chip timing taken under that load must say so." diff --git a/scripts/.crumb b/scripts/.crumb index c10ac4d..dc606b8 100644 --- a/scripts/.crumb +++ b/scripts/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:24:44Z", + "compiled_at": "2026-10-05T03:32:07Z", "compiler": "crumb-compile/1", - "digest": "sha256:b3d92d7358ad2a5174868b2227ae0f3b7d667cfc065820c43e9375f1ce51cbec", + "digest": "sha256:fa990e71f6e3b3dbe1ab8072cf5ed51f8a4bcb0759756c60fc09b647bfcc6904", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 4, - "generated_at_commit": "89fda22daf3ddb149c82a36efdc89bc087ad2f0b", - "source_tree": "sha256:867d2105ce9d06cf687c79e1d77fb1290e3a8cdbde481ce50313a4edd1ef2ee4" + "files": 5, + "generated_at_commit": "c5d80978c7a22cc039e67def9745cede5010f388", + "source_tree": "sha256:9fcc43ef8155c0c5705c20333999b2a919de931f6d160ea822e13bfb6894f6cc" }, "owner_lane": "", "provenance": { diff --git a/scripts/check_candidate.sh b/scripts/check_candidate.sh index 11b3032..65f7256 100755 --- a/scripts/check_candidate.sh +++ b/scripts/check_candidate.sh @@ -45,6 +45,15 @@ for r in commits.omega commits.aienos commits.aien-sovereign-core commits.aien-p sha_exists "$repo" "$s" || err "commit $s not found in aien-dev/$repo" done +# Optional pins for repos that are part of a candidate but were not in the first schema (CAND-0 adds +# physics and interplane). When present they get the same checks as the required ones. +for r in commits.physics commits.interplane; do + s="${kv[$r]:-}"; repo="${r#*.}" + [ -n "$s" ] || continue + [[ "$s" =~ ^[0-9a-f]{40}$ ]] || { err "commit for $r is not 40 lowercase hex: $s"; continue; } + sha_exists "$repo" "$s" || err "commit $s not found in aien-dev/$repo" +done + nexe=0 for k in "${!kv[@]}"; do [[ "$k" == executables.* ]] || continue diff --git a/scripts/test_check_candidate.sh b/scripts/test_check_candidate.sh index 47922e4..91443df 100755 --- a/scripts/test_check_candidate.sh +++ b/scripts/test_check_candidate.sh @@ -11,7 +11,8 @@ cat > "$stub" <<'S' [ "$2" != "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef" ] S chmod +x "$stub"; export CAND_SHA_CHECK="$stub" -good="$here/../qualification/candidates/CAND-0.toml" +good="$here/testdata/cand-draft-fixture.toml" # the 2026-10-01 draft, kept as a fixture so these tests do not depend on the live manifest +live="$here/../qualification/candidates/CAND-0.toml" pass=0; bad=0 expect() { # expect <0|1>