diff --git a/.crumb b/.crumb index 03ae3e60..189b0f3e 100644 --- a/.crumb +++ b/.crumb @@ -22,44 +22,44 @@ "children": [ { "digest": "b7d58d76e7dacaa887051e8c2d64e2eaef683c9ba82c03e073002f6ddd920239", - "last_commit": "45d8f79", + "last_commit": "9f9b346c", "name": "crates", "purpose": "Directory crates. Purpose not yet described by a human." }, { "digest": "74bb22d6e439ad7405487d6846114229171cd42746cd2c3e7b2c2d41276008c4", - "last_commit": "4c25c6c", + "last_commit": "8182d6d3", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, { "digest": "0660522029d1706b495ea85da3194a9bcad5d7938241850f23920cd513f1b46d", - "last_commit": "b4c351e", + "last_commit": "aab6de6d", "name": "native", "purpose": "Directory native. Purpose not yet described by a human." }, { - "digest": "26606d0e8c4950a8c3c6e095c1420389acb5a4a1147b16b98c282db4c227d037", - "last_commit": "b4c351e", + "digest": "29e4b821b3b6cbd6ee01c8af06694de4a5118a2cf5f96ac6c7acca68f658d26c", + "last_commit": "bf113aa8", "name": "scripts", "purpose": "Directory scripts. Purpose not yet described by a human." }, { "digest": "e891c078bec120c3fdb14e13b7dd25d69054f608c2ea632adf2fd2b6e45d8fa1", - "last_commit": "29e884d", + "last_commit": "29e884d5", "name": "tools", "purpose": "First-party host artifact preparation tools" } ], - "children_root": "sha256:6bff61a659f1d6cfabc6ed7b237f02e998a6a134d21ece5aaa50af71fd3ab6ad", - "compiled_at": "2026-10-31T03:56:20Z", + "children_root": "sha256:a0cb9848caff8506cb044ae23751d1009b2359a03cec2882dcabe488cba98b6e", + "compiled_at": "2026-10-31T11:56:25Z", "compiler": "crumb-compile/1", - "digest": "sha256:66341791f683dae8f96d7aacc1842c249981f31ea4c2195997b827b43e18f3d9", + "digest": "sha256:8b51bc64008c9409492c736772f17cb7a7eb0a9e172971442af781baff4ee30d", "evidence_files": 274, "evidence_root": "sha256:af014a4ed8f6fe759fc5809807fb47578d3410811b522d9f65d749382b029802", - "files": 3729, - "generated_at_commit": "b4c351e7bc9c01e9384c19e9d6fc2ab4d2472e85", - "source_tree": "sha256:07c799c6a9a44467b36b39c4e9994e3bdd6417e0f726088b621e03b254c2e12e" + "files": 3730, + "generated_at_commit": "44f1fd15f64091e7c6ede3711b81aff3650711ff", + "source_tree": "sha256:76cc390202866ba028407965c89aab48ffdde357e9ce4cccb75678c15febba4a" }, "owner_lane": "", "provenance": { diff --git a/scripts/.crumb b/scripts/.crumb index a3e0db29..c0105d7e 100644 --- a/scripts/.crumb +++ b/scripts/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-31T02:58:08Z", + "compiled_at": "2026-10-31T11:56:25Z", "compiler": "crumb-compile/1", - "digest": "sha256:26606d0e8c4950a8c3c6e095c1420389acb5a4a1147b16b98c282db4c227d037", + "digest": "sha256:29e4b821b3b6cbd6ee01c8af06694de4a5118a2cf5f96ac6c7acca68f658d26c", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 133, - "generated_at_commit": "66bf338dd2c1ce4cf01f7f43094a939a33d1933a", - "source_tree": "sha256:222753c1362fb664e9d68a84113e34410a0eec5a1999c2135052abe9b513b221" + "generated_at_commit": "44f1fd15f64091e7c6ede3711b81aff3650711ff", + "source_tree": "sha256:638a38daf9f1fff1b7934a8f0d08aa94f914c93550fe54763f6e128396b78bc9" }, "owner_lane": "", "provenance": { diff --git a/scripts/qemu_artifact_test.sh b/scripts/qemu_artifact_test.sh index 0f769765..f85e5dca 100755 --- a/scripts/qemu_artifact_test.sh +++ b/scripts/qemu_artifact_test.sh @@ -120,7 +120,7 @@ fi # Test-only signing: debug build by design (release refuses the feature). cargo build --quiet -p aienos-artifact-tool --features seed0b-test-signing -tool="target/debug/aienos-artifact-tool" +tool="${CARGO_TARGET_DIR:-target}/debug/aienos-artifact-tool" esp_art="${work}/esp/EFI/AIENOS/ARTIFACTS" mkdir -p "${work}/esp/EFI/BOOT" "${esp_art}" "${fixtures}/pack.sh" "${tool}" "${esp_art}" @@ -210,7 +210,7 @@ commit="$(git rev-parse HEAD 2>/dev/null || echo unknown)" build_image() { # features, output AIENOS_COMMIT="${commit}" AIENOS_RESTART_SECS=1 cargo build --quiet --release \ -p aienos-boot --target aarch64-unknown-uefi --features "$1" --bin aienos-handoff - cp target/aarch64-unknown-uefi/release/aienos-handoff.efi "$2" + cp "${CARGO_TARGET_DIR:-target}"/aarch64-unknown-uefi/release/aienos-handoff.efi "$2" } if [[ -z "${captured}" ]]; then build_image seed0b-qualification "${work}/qualification.efi" diff --git a/scripts/qemu_boot_test.sh b/scripts/qemu_boot_test.sh index 897fda1d..f94c0a90 100755 --- a/scripts/qemu_boot_test.sh +++ b/scripts/qemu_boot_test.sh @@ -38,7 +38,7 @@ work="$(mktemp -d)" trap 'rm -rf "${work}"' EXIT mkdir -p "${work}/esp/EFI/BOOT" "${work}/esp/EFI/AIENOS" touch "${work}/esp/EFI/AIENOS/BOOTREPORT.TXT" -cp target/aarch64-unknown-uefi/release/aienos-handoff.efi "${work}/esp/EFI/BOOT/BOOTAA64.EFI" +cp "${CARGO_TARGET_DIR:-target}"/aarch64-unknown-uefi/release/aienos-handoff.efi "${work}/esp/EFI/BOOT/BOOTAA64.EFI" cp "${vars_fd}" "${work}/vars.fd" log="${work}/serial.log" diff --git a/scripts/verify_all.sh b/scripts/verify_all.sh index 49944abb..249a121c 100755 --- a/scripts/verify_all.sh +++ b/scripts/verify_all.sh @@ -120,9 +120,9 @@ echo "PASS AArch64 build: aienos-kernel for aarch64-unknown-none" echo "" echo "--- [AArch64 UEFI Image Builds] ---" cargo build --release -p aienos-boot --target aarch64-unknown-uefi --features firmware --bin aienos-boot -cargo run --quiet --release -p aienos-evidence -- verify-efi target/aarch64-unknown-uefi/release/aienos-boot.efi +cargo run --quiet --release -p aienos-evidence -- verify-efi "${CARGO_TARGET_DIR:-target}"/aarch64-unknown-uefi/release/aienos-boot.efi cargo build --release -p aienos-boot --target aarch64-unknown-uefi --features handoff --bin aienos-handoff -cargo run --quiet --release -p aienos-evidence -- verify-efi target/aarch64-unknown-uefi/release/aienos-handoff.efi +cargo run --quiet --release -p aienos-evidence -- verify-efi "${CARGO_TARGET_DIR:-target}"/aarch64-unknown-uefi/release/aienos-handoff.efi echo "PASS AArch64 build: aienos-boot.efi and aienos-handoff.efi PE headers verified" # Step 6: QEMU AArch64 UEFI Boot Verification (Emulator Boot Test) diff --git a/tests/gates/aienos-ck-b7b-probe.gate b/tests/gates/aienos-ck-b7b-probe.gate index c8ca7105..ba4908bc 100644 --- a/tests/gates/aienos-ck-b7b-probe.gate +++ b/tests/gates/aienos-ck-b7b-probe.gate @@ -16,6 +16,7 @@ inputs: - crates/aienos-infer-kernel/ - tests/gates/ - scripts/ + - native/ run: exec: tests/gates/run.sh args: ["ck-b7b-probe"] diff --git a/tests/gates/aienos-ck-host-tests.gate b/tests/gates/aienos-ck-host-tests.gate index b3f9cb0c..b0ba45d0 100644 --- a/tests/gates/aienos-ck-host-tests.gate +++ b/tests/gates/aienos-ck-host-tests.gate @@ -15,6 +15,12 @@ inputs: - crates/aienos-fpu-probe/ - crates/aienos-infer-kernel/ - tests/gates/ + - native/ + - scripts/native_package_test.sh + - scripts/native_package.sh + - crates/aienos-infer/ + - Cargo.toml + - .cargo/ run: exec: tests/gates/run.sh args: ["ck-host-tests"] diff --git a/tests/gates/aienos-ck-owner-keys.gate b/tests/gates/aienos-ck-owner-keys.gate index d0cd33a5..9a9053a4 100644 --- a/tests/gates/aienos-ck-owner-keys.gate +++ b/tests/gates/aienos-ck-owner-keys.gate @@ -16,6 +16,7 @@ inputs: - crates/aienos-infer-kernel/ - tests/gates/ - scripts/ + - native/ run: exec: tests/gates/run.sh args: ["ck-owner-keys"] diff --git a/tests/gates/aienos-ck-qemu-gates.gate b/tests/gates/aienos-ck-qemu-gates.gate index 7ebbb030..a1e0a341 100644 --- a/tests/gates/aienos-ck-qemu-gates.gate +++ b/tests/gates/aienos-ck-qemu-gates.gate @@ -16,6 +16,12 @@ inputs: - crates/aienos-infer-kernel/ - tests/gates/ - scripts/ + - native/ + - crates/ + - Cargo.toml + - Cargo.lock + - .cargo/ + - vendor/ run: exec: tests/gates/run.sh args: ["ck-qemu-gates"] diff --git a/tests/gates/aienos-ck-stage-tests.gate b/tests/gates/aienos-ck-stage-tests.gate index af76e173..f0c1e17a 100644 --- a/tests/gates/aienos-ck-stage-tests.gate +++ b/tests/gates/aienos-ck-stage-tests.gate @@ -15,6 +15,7 @@ inputs: - crates/aienos-fpu-probe/ - crates/aienos-infer-kernel/ - tests/gates/ + - native/ run: exec: tests/gates/run.sh args: ["ck-stage-tests"] diff --git a/tests/gates/aienos-crypto-boundary.gate b/tests/gates/aienos-crypto-boundary.gate index f923bce0..d6d481af 100644 --- a/tests/gates/aienos-crypto-boundary.gate +++ b/tests/gates/aienos-crypto-boundary.gate @@ -12,6 +12,9 @@ inputs: - Cargo.lock - vendor/ - tests/gates/ + - crates/ + - .cargo/ + - docs/adr/0015-golden-vectors.json run: exec: tests/gates/run.sh args: ["crypto-boundary"] diff --git a/tests/gates/aienos-disk-qemu.gate b/tests/gates/aienos-disk-qemu.gate index d8ac7a13..2b8fe430 100644 --- a/tests/gates/aienos-disk-qemu.gate +++ b/tests/gates/aienos-disk-qemu.gate @@ -10,6 +10,7 @@ inputs: - scripts/qemu_native_nvme_test.sh - scripts/lib_gate_hold.sh - tests/gates/ + - scripts/qemu_native_sdhci_test.sh run: exec: tests/gates/run.sh args: ["disk-qemu"] diff --git a/tests/gates/aienos-infer-crate.gate b/tests/gates/aienos-infer-crate.gate index 9110ee81..03612d05 100644 --- a/tests/gates/aienos-infer-crate.gate +++ b/tests/gates/aienos-infer-crate.gate @@ -10,6 +10,9 @@ inputs: - Cargo.toml - Cargo.lock - tests/gates/ + - crates/ + - .cargo/ + - vendor/ run: exec: tests/gates/run.sh args: ["infer-crate"] diff --git a/tests/gates/aienos-infer-forward.gate b/tests/gates/aienos-infer-forward.gate new file mode 100644 index 00000000..2782428a --- /dev/null +++ b/tests/gates/aienos-infer-forward.gate @@ -0,0 +1,26 @@ +# tests/gates/aienos-infer-forward.gate +# Not hosted (the hosted runner has no model file): release-build Llama forward comparisons against llama.cpp +# (crates/aienos-infer/tests/forward.rs) with the real model; FAILS if the model is missing or any test SKIPs +# (measured 2026-10-16 on the Spark: 178 s test wall, release build warm; timeout 15m leaves room for a cold build) +gate: AIENOS-INFER-FORWARD +manifest_version: 2 +owner: aienos +requires: + - host +inputs: + - crates/aienos-infer/ + - Cargo.toml + - Cargo.lock + - tests/gates/ + - crates/ + - .cargo/ + - vendor/ +run: + exec: tests/gates/run.sh + args: ["infer-forward"] +expects: + exit: 0 + verdict: PASS +timeout: 15m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/aienos-native-argus.gate b/tests/gates/aienos-native-argus.gate index ffb04708..d521cfe5 100644 --- a/tests/gates/aienos-native-argus.gate +++ b/tests/gates/aienos-native-argus.gate @@ -8,6 +8,7 @@ requires: inputs: - native/argus/ - tests/gates/ + - native/capability/ run: exec: tests/gates/run.sh args: ["native-argus"] diff --git a/tests/gates/aienos-native-capability.gate b/tests/gates/aienos-native-capability.gate index e2410afb..b87f0540 100644 --- a/tests/gates/aienos-native-capability.gate +++ b/tests/gates/aienos-native-capability.gate @@ -8,6 +8,7 @@ requires: inputs: - native/capability/ - tests/gates/ + - native/argus/ run: exec: tests/gates/run.sh args: ["native-capability"] diff --git a/tests/gates/aienos-native-crypto.gate b/tests/gates/aienos-native-crypto.gate index 7025555f..6394691e 100644 --- a/tests/gates/aienos-native-crypto.gate +++ b/tests/gates/aienos-native-crypto.gate @@ -8,6 +8,7 @@ requires: inputs: - native/crypto/ - tests/gates/ + - native/argus/ run: exec: tests/gates/run.sh args: ["native-crypto"] diff --git a/tests/gates/aienos-native-m5.gate b/tests/gates/aienos-native-m5.gate index 5682a090..440d4678 100644 --- a/tests/gates/aienos-native-m5.gate +++ b/tests/gates/aienos-native-m5.gate @@ -8,6 +8,9 @@ requires: inputs: - native/m5/ - tests/gates/ + - native/argus/ + - native/crypto/ + - native/sig/ run: exec: tests/gates/run.sh args: ["native-m5"] diff --git a/tests/gates/aienos-native-net.gate b/tests/gates/aienos-native-net.gate index ac8d497c..010d767b 100644 --- a/tests/gates/aienos-native-net.gate +++ b/tests/gates/aienos-native-net.gate @@ -8,6 +8,9 @@ requires: inputs: - native/net/ - tests/gates/ + - native/argus/ + - native/crypto/ + - native/sig/ run: exec: tests/gates/run.sh args: ["native-net"] diff --git a/tests/gates/aienos-store-native.gate b/tests/gates/aienos-store-native.gate index f7c3bfb2..02b47867 100644 --- a/tests/gates/aienos-store-native.gate +++ b/tests/gates/aienos-store-native.gate @@ -8,6 +8,11 @@ requires: inputs: - native/store/ - tests/gates/ + - native/argus/ + - native/crypto/ + - native/disk/ + - native/m5/ + - docs/adr/0015-golden-vectors.json run: exec: tests/gates/run.sh args: ["store-native"] diff --git a/tests/gates/aienos-verify-all.gate b/tests/gates/aienos-verify-all.gate index 39690c64..7237486a 100644 --- a/tests/gates/aienos-verify-all.gate +++ b/tests/gates/aienos-verify-all.gate @@ -11,6 +11,14 @@ inputs: - crates/ - native/boot/ - tests/gates/ + - scripts/ + - evidence/ + - native/kernel/tests/fixtures/ + - Cargo.toml + - Cargo.lock + - .cargo/ + - vendor/ + - docs/adr/0015-golden-vectors.json run: exec: tests/gates/run.sh args: ["verify-all"] diff --git a/tests/gates/run.sh b/tests/gates/run.sh index 3c24bf5b..49331c66 100755 --- a/tests/gates/run.sh +++ b/tests/gates/run.sh @@ -130,9 +130,34 @@ case "$step" in cargo test -p aienos-infer cargo build -p aienos-infer --target aarch64-unknown-none ;; + # Not hosted (the hosted runner has no model file): the real Llama forward comparisons in + # crates/aienos-infer/tests/forward.rs, release build. The sandbox finds the model at + # $HOME/models (aien-run-exec bind-mounts the operator's ~/models read-only there). + # A missing model or any SKIPPED line is a FAIL, never a silent pass. + infer-forward) + model="${AIENOS_MODEL:-$HOME/models/aien-mail/Llama-3.2-1B-Instruct-Q4_K_M.gguf}" + if [ ! -f "$model" ]; then + echo "::error::model file $model not present; infer-forward needs the real model" >&2 + obs model_present false + exit 1 + fi + obs model_present true + export AIENOS_MODEL="$model" + set -o pipefail + cargo test --release -p aienos-infer --test forward 2>&1 | tee "$TMP/forward.log" + if grep -q 'SKIPPED' "$TMP/forward.log"; then + echo "::error::forward tests printed SKIPPED" >&2 + obs skipped_in_log true + exit 1 + fi + obs skipped_in_log false + ;; # ci.yml (disabled on GitHub since the CK workflow took over): the suites it still names store-native) make -C native/store test mutants ;; - verify-all) bash scripts/verify_all.sh ;; + verify-all) + export AIENOS_MODEL="${AIENOS_MODEL:-/nonexistent/no-model.gguf}" # hosted parity: the debug workspace sweep skips forward tests (they run in infer-forward) + bash scripts/verify_all.sh + ;; zero-disk-secrets) echo "Auditing repository for prohibited plaintext secret files..." if find . -maxdepth 4 -name ".env*" -not -path "*/.git/*" -not -path "*/target/*" -not -path "*/vendor/*" | grep -q .; then