aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
GitHub aien-dev/aienux#240 (code only)
Apply it
git checkout -b patch-872fa5f30e3d634d 44de11fe644ce568702a405d9f374c62843e841f curl -fsSL https://interplane.io/drakestapleton/aienux/patches/872fa5f30e3d634d.patch | git am
Provenance
github-import 1
aien-dev/aienux
240
fe3e2f980739b740e09b19567ebaf2acf8f1f6ac
{"kind":"github-import","owner":"aien-dev","repo":"aienux","number":240,"url":"https://github.com/aien-dev/aienux/pull/240","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:02Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/docs/TRUST-1-M5-GATE-MATRIX.md b/docs/TRUST-1-M5-GATE-MATRIX.md index a6e7c9d9..526afae7 100644 --- a/docs/TRUST-1-M5-GATE-MATRIX.md +++ b/docs/TRUST-1-M5-GATE-MATRIX.md @@ -77,3 +77,11 @@ running them, and writes a content-addressed receipt (`evidence/trust1_m5_qualif New on main since the snapshot: Gate 5 swTPM simulation (#185), `native/crypto` (#183), `native/m5` (#186). Overall is unchanged: **TRUST-1 NOT QUALIFIED. M5 NOT QUALIFIED.** The receipt committed with that update was the authoritative count at the time; the newest one is named in the section above. + +## Update 2026-10-02 (LT-C5): fresh receipt and 100-boot soak + +Newest receipt, run at 44de11f with QEMU suites on: +`evidence/trust1_m5_qualification_3f9d07f50196b4ad741b03c353ed3c45c268a72f04c32f00a0ddfab5294a3eee.json`, +`TRUST1_M5_QUALIFICATION: NOT_QUALIFIED (pass=19 fail=1 not_run=1 blocked=11 missing=5)`. It supersedes 3358bc25. +The one FAIL is `t1_gate7_preflight`, which reads live operator state: the Spark now has SecureBoot=0 (Drake's decision 2026-10-01), so the pre-flight correctly refuses. It is not a code regression. `store_rust_crosscheck` is NOT_RUN (Rust store tool not built). +Gate 4 soak: `GATE4_SOAK_RUNS=100 bash scripts/qemu_security_suite.sh` passed 100/100 boots plus the tampered-binary rejection (swTPM, QEMU, forge job C5-SOAK, log `~/workspace/test-queue-logs/C5-SOAK-005901.log`). Gate 4 stays MISSING_IMPLEMENTATION for the loader A/B and manifest items. diff --git a/evidence/trust1_m5_qualification_3f9d07f50196b4ad741b03c353ed3c45c268a72f04c32f00a0ddfab5294a3eee.json b/evidence/trust1_m5_qualification_3f9d07f50196b4ad741b03c353ed3c45c268a72f04c32f00a0ddfab5294a3eee.json new file mode 100644 index 00000000..206c3334 --- /dev/null +++ b/evidence/trust1_m5_qualification_3f9d07f50196b4ad741b03c353ed3c45c268a72f04c32f00a0ddfab5294a3eee.json @@ -0,0 +1,77 @@ +{ + "schema": "aienos.trust1_m5_qualification.v2", + "started_utc": "2026-10-02T00:46:41Z", + "finished_utc": "2026-10-02T00:59:00Z", + "commit": "44de11fe644ce568702a405d9f374c62843e841f", + "commit_subject": "ck: partition-aware disk footprint + DISK_LAYOUT gate (CK-4, R2) [NOT_RUN] (#228)", + "tree_clean_before": true, + "tree_clean_after": true, + "with_qemu_requested": true, + "quiet_flag_present": false, + "quiet_flag_present_at_write": false, + "quiet_flag_refused_gates": 0, + "machine": { + "hostname": "spark-b87b", + "machine_id_sha256": "8383859c16f2a14ee62645efb08f9f25723377856bfdbf47b28ac3d08fb8ceb5", + "dmi_product": "NVIDIA_DGX_Spark", + "dmi_board": "P4242", + "dmi_serial_sha256": "not readable", + "cpu_model": "Cortex-A725;Cortex-X925", + "kernel": "7.0.0-1019-nvidia", + "firmware_version": "5.36_0ACUM018", + "firmware_date": "08/06/2025", + "secure_boot_efivar": "0", + "setup_mode_efivar": "0", + "secure_boot_mokutil": "SecureBoot disabled", + "tpm_present": "yes", + "tpm_manufacturer": "NTC", + "tpm_vendor_string": "NPCT75x!#>rls", + "tpm_firmware_version_raw": "0x70002.0x40001", + "pcr_sha256": {"0": "3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969", "1": "d700258c7b8bdbdca97ba8dc878fe4be0d674f448ac8510ec39b6746f74398e4", "2": "4e0a0cf49a01dd797a54bee5a8d01a73b9b4fdce29b7b59177d8beaee45a7c6c", "3": "3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969", "4": "cfadd602cf80ff3887432ae3526939f6ff2b486dbcd1158f58ae7b757cc50693", "5": "f72d2e96253dd2afc446c37116813a711d649daaaa12620f9a7cf5a0dec47a58", "6": "3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969", "7": "127c18eba2300e30767fafe71f4e5975776f665d22c7ca9017c7c24846b96fa1", "8": "0e3bc6488f6c6b84a2e7160103b173d58274f501a66d50af173ee74537c2bee2", "9": "0fcd3715a3fffef1669e5835866350668a649180ff834f76df41ff862fbf6506", "10": "978d3b1b1924145826e2634c26c3727f032f7bb2343c607a224355c2f49112fe", "11": "0000000000000000000000000000000000000000000000000000000000000000", "12": "0000000000000000000000000000000000000000000000000000000000000000", "13": "0000000000000000000000000000000000000000000000000000000000000000", "14": "3934eca101a2cd5f472a58d55edf2204ea214d1e426280458614790a50f26555", "15": "0000000000000000000000000000000000000000000000000000000000000000"}, + "boot_disk": "nvme0n1", + "boot_disk_logical_block_size": "512", + "host_capture": "ok 7b330fee9e706be278f0b10c891770ecbf4e2a75d8493e6c0b4fa582d111189e" + }, + "gates": [ + {"id": "t1_measurement_tools", "kind": "software", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "TRUST-1 Gate 0/2 read-only tools self-test on a software TPM", "log_sha256": "1e511e0d6c34fd13c50f0268b9c62b4332589f967995d408369077bb44dfdaec", "log_lines": 7, "seconds": 2}, + {"id": "t1_key_ceremony", "kind": "software", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "TRUST-1 Gate 3 key ceremony self-test with throwaway keys", "log_sha256": "529d373bb1bd0c866dc8ea813709e9f50caf949d8e369fee01f762943603bf4a", "log_lines": 15, "seconds": 2}, + {"id": "t1_gate7_preflight", "kind": "software", "verdict": "FAIL", "blocker": "-", "reason": "exit 1", "description": "TRUST-1 Gate 7 read-only pre-flight (depends on operator state)", "log_sha256": "8787d0ced2fc53fbe5b50f977089a28d22c04137ff83eabad74ed4bf6bdf18ac", "log_lines": 51, "seconds": 6}, + {"id": "t1_recovery_tools", "kind": "software", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "recovery initrd ships mount, EFI repair and boot-entry restore tools", "log_sha256": "29e10484d3425b2b4cb0f81eb3cefba0d8877be0c9a323fd6eabc4c21cb86ac6", "log_lines": 52, "seconds": 6}, + {"id": "store_torn_slot_c", "kind": "software", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "Store C reference torn-write test (host block-device emulation)", "log_sha256": "5a0f131c2b6dcf52c9746e192670f02afa553690babab686c9a2172f30b902b2", "log_lines": 67, "seconds": 58}, + {"id": "store_native_c", "kind": "software", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "C twin of the System Store v1 engine + sealed Store (host file-backed; golden vectors byte-identical to Rust)", "log_sha256": "d7f7c294cd324cc8dfbdc861544e7e8f04a1c9df021c558d9a368eed916e66fc", "log_lines": 38, "seconds": 55}, + {"id": "store_rust_crosscheck", "kind": "software", "verdict": "NOT_RUN", "blocker": "-", "reason": "exit 2: a required tool is missing", "description": "Rust aienos-store-tool opens C-written stores and reads back the same generation and objects (C to Rust direction; NOT_RUN when the Rust tool is not built)", "log_sha256": "8ccd1cb2f3cb3d8f746f3545e05f34b8b3d82fe5540527cd153f7ba94be03e13", "log_lines": 22, "seconds": 1}, + {"id": "m5_crypto_crate", "kind": "cargo", "verdict": "PASS", "blocker": "-", "reason": "10 tests passed, 0 failed", "description": "cargo test -p aienos-crypto", "log_sha256": "4646cfb39ef8e14b1ac3b3f70239b55a80fab322d854ee7b2012c17463808456", "log_lines": 24, "seconds": 1}, + {"id": "m5_kernel_crypto_security", "kind": "cargo", "verdict": "PASS", "blocker": "-", "reason": "17 tests passed, 0 failed", "description": "cargo test -p aienos-kernel --lib (crypto:: security::)", "log_sha256": "a36337ff0d5ace2813fe7aa900e273e244ec1116c4e60616e58e1a7512106e9a", "log_lines": 50, "seconds": 4}, + {"id": "t1_gate5_policy_sim", "kind": "auto", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "TRUST-1 Gate 5 policy simulator self-test", "log_sha256": "997816615c2497b64c5894eca1688ae1f62fffd80b6f732c94c40d1d8536a316", "log_lines": 44, "seconds": 5}, + {"id": "m5_native_test", "kind": "auto", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "make -C native/m5 test", "log_sha256": "a81178acfe714bca02e6dda145819dab422da00edce0993f9a5c0b99a98c26f5", "log_lines": 144, "seconds": 2}, + {"id": "crypto_native_test", "kind": "auto", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "make -C native/crypto test", "log_sha256": "c35ff2b484be49d9ad6108442800d3bd58b8b00acf449ded23291a28358bf0b8", "log_lines": 15, "seconds": 1}, + {"id": "disk_native_test", "kind": "auto", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "make -C native/disk test (block layer + C NVMe driver vs a software controller model, host only)", "log_sha256": "0467d346749075326e3b14e2a8e96152d2ef40d207e9da62257d2c335d5b86a1", "log_lines": 13, "seconds": 0}, + {"id": "qemu_secureboot_signing", "kind": "qemu", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "QEMU Secure Boot signing test (TRUST-1 Gate 4)", "log_sha256": "6fd1ec768784edd02d6bf4780a878cd215591948536732bbaff2b297db8b3331", "log_lines": 6, "seconds": 146}, + {"id": "qemu_store_512b_crash", "kind": "qemu", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "QEMU Store crash recovery on 512-byte blocks", "log_sha256": "eea9b7a78dadabad1f4e8ce70ad2c229e03f4c0e0f6d48efeb17392b65b3a516", "log_lines": 47, "seconds": 288}, + {"id": "qemu_native_nvme", "kind": "qemu", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "C NVMe driver write/flush/reset/read-back on QEMU virtual NVMe (emulator only)", "log_sha256": "b9064ddb3ab61d610151678bd6524ca28aad00d7e17984a89e3bbc801b79b34c", "log_lines": 9, "seconds": 0}, + {"id": "ck_m1_boot_qemu", "kind": "qemu", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "C kernel (native/boot + native/kernel, Lane 18) UEFI boot observables on QEMU, scripts/qemu_ck_boot_test.sh (emulator only)", "log_sha256": "859c4c91d35f913e20c828299adcd7c2a309392ec01e60a35a50c9c0376812d1", "log_lines": 24, "seconds": 8}, + {"id": "ck_store_kernel_qemu", "kind": "qemu", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "sealed C Store (native/store + native/m5, TEST keys) in the C kernel boot path on QEMU virtual NVMe, DMA confined by the emulated SMMU, scripts/qemu_ck_store_test.sh (emulator only; not a real device, not real keys)", "log_sha256": "3176b825530a5fdbacab10b65efb7850e3a7c9c21138b176732efebe26f76199", "log_lines": 612, "seconds": 98}, + {"id": "ck_argus1_revoke_qemu", "kind": "qemu", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "ARGUS-1 narrow revoke inside the C kernel on QEMU, scripts/qemu_ck_store_test.sh (emulator only)", "log_sha256": "52564e1e32dc0283fba64ce1d64d58bf8ba7a401292926fbd7d8edfcc965f831", "log_lines": 613, "seconds": 0}, + {"id": "t1_gate0_second_offline_location", "kind": "operator", "verdict": "NOT_RUN", "blocker": "BLOCKED_OPERATOR", "reason": "BLOCKED_OPERATOR: needs an attended operator step; this script cannot check it", "description": "Gate 0: second offline backup location", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "t1_gate0_cold_boot_pcr_stability", "kind": "hardware", "verdict": "NOT_RUN", "blocker": "BLOCKED_HARDWARE", "reason": "BLOCKED_HARDWARE: needs attended hardware boots on Machine 1; this script cannot check it", "description": "Gate 0: cold-boot PCR stability on Machine 1", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "t1_gate0_firmware_refresh_pause", "kind": "operator", "verdict": "NOT_RUN", "blocker": "BLOCKED_OPERATOR", "reason": "BLOCKED_OPERATOR: needs an attended operator step; this script cannot check it", "description": "Gate 0: firmware refresh paused", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "t1_gate1_attended_recovery_boot", "kind": "operator", "verdict": "NOT_RUN", "blocker": "BLOCKED_OPERATOR", "reason": "BLOCKED_OPERATOR: needs an attended operator step; this script cannot check it", "description": "Gate 1: attended recovery-stick boot", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "t1_gate2_reboot_campaign", "kind": "hardware", "verdict": "NOT_RUN", "blocker": "BLOCKED_HARDWARE", "reason": "BLOCKED_HARDWARE: needs attended hardware boots on Machine 1; this script cannot check it", "description": "Gate 2: reboot measurement campaign", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "t1_gate3_offline_key_ceremony", "kind": "operator", "verdict": "NOT_RUN", "blocker": "BLOCKED_OPERATOR", "reason": "BLOCKED_OPERATOR: needs an attended operator step; this script cannot check it", "description": "Gate 3: offline owner key ceremony", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "t1_gate6", "kind": "operator", "verdict": "NOT_RUN", "blocker": "BLOCKED_OPERATOR", "reason": "BLOCKED_OPERATOR: needs an attended operator step; this script cannot check it", "description": "Gate 6 (attended)", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "t1_gate7", "kind": "hardware", "verdict": "NOT_RUN", "blocker": "BLOCKED_HARDWARE", "reason": "BLOCKED_HARDWARE: needs attended hardware boots on Machine 1; this script cannot check it", "description": "Gate 7: attended owner-key enrollment boot, checkpoints A-E", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "t1_gate8", "kind": "operator", "verdict": "NOT_RUN", "blocker": "BLOCKED_OPERATOR", "reason": "BLOCKED_OPERATOR: needs an attended operator step; this script cannot check it", "description": "Gate 8 (attended)", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "t1_gate9", "kind": "operator", "verdict": "NOT_RUN", "blocker": "BLOCKED_OPERATOR", "reason": "BLOCKED_OPERATOR: needs an attended operator step; this script cannot check it", "description": "Gate 9 (attended)", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "m5_sealed_volume_keys_real_tpm", "kind": "missing", "verdict": "NOT_RUN", "blocker": "MISSING_IMPLEMENTATION", "reason": "MISSING_IMPLEMENTATION: the gate table lists no implementation to run", "description": "M5: sealed volume keys bound to a real TPM", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "m5_store_encrypted_objects", "kind": "software", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "M5: encrypted objects in the C sealed Store (host file-backed only; not QEMU, not Machine 1)", "log_sha256": "32ef3cbb4609afd1435a3f1553366cc1c4344a615bfa5a97f0518edea776b9cb", "log_lines": 113, "seconds": 56}, + {"id": "m5_store_kernel_binding", "kind": "missing", "verdict": "NOT_RUN", "blocker": "MISSING_IMPLEMENTATION", "reason": "MISSING_IMPLEMENTATION: the gate table lists no implementation to run", "description": "M5: sealed C Store bound into the kernel boot path on a real device with real keys (the QEMU binding with TEST keys is row ck_store_kernel_qemu; it does not count here)", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "m5_owner_signed_chain_machine1", "kind": "missing", "verdict": "NOT_RUN", "blocker": "MISSING_IMPLEMENTATION", "reason": "MISSING_IMPLEMENTATION: the gate table lists no implementation to run", "description": "M5: owner-signed trust chain on Machine 1", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "m5_production_store_512b", "kind": "missing", "verdict": "NOT_RUN", "blocker": "MISSING_IMPLEMENTATION", "reason": "MISSING_IMPLEMENTATION: the gate table lists no implementation to run", "description": "M5: production Store on 512-byte geometry on Machine 1 (C engine native/store + C NVMe driver native/disk are host/QEMU tested and the C kernel loads the Store in QEMU with TEST keys; no real-device run, not qualified on Machine 1)", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "t1_gate4_manifest_ab", "kind": "missing", "verdict": "NOT_RUN", "blocker": "MISSING_IMPLEMENTATION", "reason": "MISSING_IMPLEMENTATION: the gate table lists no implementation to run", "description": "Gate 4: signed boot manifest + A/B slot selection in the loader (awaits the C/asm loader)", "log_sha256": "-", "log_lines": 0, "seconds": 0}, + {"id": "m5_migration_sig_test_key", "kind": "auto", "verdict": "PASS", "blocker": "-", "reason": "exit 0, marker found", "description": "M5: owner-signed migration record (native/m5 + native/sig Ed25519), host test with TEST keys only", "log_sha256": "ae3a38ae2c21fed4b178a791ceb315b44d32a2a89a7785f17de95a81c09d2ddb", "log_lines": 126, "seconds": 0}, + {"id": "m5_migration_owner_signature", "kind": "operator", "verdict": "NOT_RUN", "blocker": "BLOCKED_OPERATOR", "reason": "BLOCKED_OPERATOR: needs an attended operator step; this script cannot check it", "description": "M5: migration signed by the real owner key (needs the Gate 3 offline key ceremony)", "log_sha256": "-", "log_lines": 0, "seconds": 0} + ], + "counts": {"total": 37, "pass": 19, "fail": 1, "not_run": 1, "blocked": 11, "missing": 5}, + "verdict": "NOT_QUALIFIED", + "not_pass": ["t1_gate7_preflight:FAIL", "store_rust_crosscheck:NOT_RUN", "t1_gate0_second_offline_location:NOT_RUN", "t1_gate0_cold_boot_pcr_stability:NOT_RUN", "t1_gate0_firmware_refresh_pause:NOT_RUN", "t1_gate1_attended_recovery_boot:NOT_RUN", "t1_gate2_reboot_campaign:NOT_RUN", "t1_gate3_offline_key_ceremony:NOT_RUN", "t1_gate6:NOT_RUN", "t1_gate7:NOT_RUN", "t1_gate8:NOT_RUN", "t1_gate9:NOT_RUN", "m5_sealed_volume_keys_real_tpm:NOT_RUN", "m5_store_kernel_binding:NOT_RUN", "m5_owner_signed_chain_machine1:NOT_RUN", "m5_production_store_512b:NOT_RUN", "t1_gate4_manifest_ab:NOT_RUN", "m5_migration_owner_signature:NOT_RUN"] +}