interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / docs / M0_NATIVE_BOOT_ROLLBACK_AUDIT.md

85 lines · 9509 bytes Raw Blame History Source

M0 Native-Boot Rollback Evidence Audit

Executive Summary & Gate Verdict

This document audits all historical and current physical evidence from Machine 1 (NVIDIA DGX Spark) regarding the M0 Native-Boot Rollback Gate.

Core Questions

A. Does existing evidence already satisfy the M0 rollback gate?

NO. Existing evidence is INSUFFICIENT to close the M0 rollback gate on physical hardware. While individual mechanisms (such as UEFI BootNext consumption and fallback to GRUB/Linux) were observed across separate historical boots, the full set of mandatory safety and rollback invariants has never been satisfied simultaneously under the required security baseline.

B. What are the exact missing assertions?

  1. Secure Boot Unchanged & Enabled: The M2 native boot (evidence/m2_first_boot_2026-09-24.md) was performed with Secure Boot explicitly disabled in firmware. The recovery USB boot (evidence/recovery_boot_machine1.md) ran with Secure Boot enabled, but it booted an Ubuntu Linux recovery image, not native AIENOS.
  2. TPM PCR 7 & Sealed Storage Invariant: Disabling Secure Boot for the M2 boot mutated TPM PCR 7, preventing the unsealing of the LUKS/storage keys for atlas-private-storage and atlas-forgejo-storage and triggering a service restart storm (evidence/machine1_core_baseline_2026-09-24.md). A valid rollback test must prove that TPM-sealed state remains unperturbed before, during, and after candidate execution.
  3. Hardware Trust Chain Boundary (HARDWARE_QUALIFICATION_BLOCKED_BY_TRUST_CHAIN): Machine 1 currently has Secure Boot enabled with production firmware keys (Microsoft / Canonical). The native AIENOS boot image (aienos-handoff.efi) is not signed by an enrolled key. Attempting to boot it directly under Secure Boot fails immediately with Secure Boot Violation (evidence/gate1_machine1_selftest_2026-09-24.md). Hardware qualification of native AIENOS is therefore formally blocked by trust chain.
  4. Failure & Fault Branch Coverage: The historical M2 native boot tested only a single cooperative countdown-and-reset path. It did not test candidate crash/panic, CPU fault, runaway timeout, or corrupted/untrusted binary fallback.
  5. Exact BootOrder Invariance: On the M2 native boot, firmware appended Boot0004 (USB stick) to BootOrder (0001,0003 became 0001,0003,0004). While the relative order of default entries was preserved, strict bit-for-bit invariance was not asserted.
  6. Cryptographic Root/ESP Identity Pre/Post Verification: Historical runs lacked unified cryptographic verification asserting that internal root UUID (d27bfd26-ff30-400e-9eca-9cdf73de9406), ESP UUID (9DA2-3597), and filesystem mount options remained identical before staging and after return.
  7. Post-Consumption Re-execution Immunity: No test demonstrated that subsequent host reboots after the one-time boot attempt continue to boot the default OS without entering a loop or re-invoking the candidate.

Detailed Audit of Existing Evidence

1. M2 First Native Boot (evidence/m2_first_boot_2026-09-24.md)

2. Machine 1 Baseline & Restart Storm Resolution (evidence/machine1_core_baseline_2026-09-24.md)

3. Recovery Media Attended Boot (evidence/recovery_boot_machine1.md)

4. TRUST-1 Gate 1 Self-Test (evidence/gate1_machine1_selftest_2026-09-24.md)


Evidence Audit Matrix

Assertion #Required Rollback InvariantExisting EvidenceProven?Missing Evidence / Failure ModeRequired Next Action
1Default/Linux boot state captured before candidate bootm2_first_boot_2026-09-24.md, STAGED.TXTPROVENNone. Baseline capture is established.Maintain pre-boot capture format in automated tools.
2One-time candidate selected without replacing default BootOrderm2_first_boot_2026-09-24.md, gate1_machine1_selftest_2026-09-24.mdPROVENNone. efibootmgr --bootnext creates one-time boot without modifying BootOrder.Standardize in rollback contract.
3AIENOS actually gains native controlm2_first_boot_2026-09-24.md (kernel: alive, EL2)PARTIALOnly proven with Secure Boot OFF. Unproven with Secure Boot ON.Requires signed binary or owner trust enrollment.
4Failure, fault, timeout, or exit does not create a boot loopm2_first_boot_2026-09-24.md (clean exit only)UNPROVENFault, hang/timeout, and invalid image branches were never tested on hardware.Prove all failure branches in QEMU harness.
5One-time selection (BootNext) is consumedm2_first_boot_2026-09-24.md, recovery_boot_machine1.mdPROVENNone. Firmware deletes BootNext upon boot.Re-verify in automated test harness.
6Machine returns to default Linux boot pathm2_first_boot_2026-09-24.md (BootCurrent: 0001)PROVENNone. Return to BootCurrent: 0001 occurred.Re-verify in automated test harness.
7Permanent BootOrder remains unchangedm2_first_boot_2026-09-24.mdPARTIALFirmware added 0004 (USB stick). 0001,0003 became 0001,0003,0004.Enforce strict comparison ignoring or isolating hotplug devices.
8Secure Boot state remains unchanged (and ON)m2_first_boot_2026-09-24.mdFAILEDSecure Boot was explicitly turned OFF for M2 boot.Mandatory Secure Boot ON invariant; block hardware boot until signed.
9Linux root and ESP state remain intactm2_first_boot_2026-09-24.md, recovery_boot_machine1.mdPARTIALChecked root: rw, but UUIDs, partition tables, and mount points were not diffed.Automated pre/post evidence verifier checking exact UUIDs.
10No TPM, firmware trust, or key mutation requiredmachine1_core_baseline_2026-09-24.mdFAILEDSecure Boot disable altered PCR 7, breaking storage unseal.Forbid Secure Boot mutation; maintain PCR 7 integrity.
11Evidence is independently inspectablem2_first_boot_2026-09-24.md, evidence/*.mdPROVENLedger payloads and markdown receipts exist in git.Package automated evidence verifier CLI.

Formal Status: Hardware Qualification Blocked

Because the native AIENOS binary (aienos-handoff.efi) is not signed by a key trusted by Machine 1's UEFI database (db), and because the hard safety rules prohibit disabling Secure Boot, enrolling keys into production firmware, or mutating TPM configuration:

HARDWARE_QUALIFICATION_BLOCKED_BY_TRUST_CHAIN

Action Plan

  1. Emulation Proof (M0 Rollback Gate in QEMU): All 6 rollback failure branches (normal exit, panic/fault, hang/timeout, rejected/corrupt image, absent candidate, and repeated post-consumption reboot) will be proven deterministically in QEMU using disposable variable storage (AAVMF_VARS.fd).
  2. Safe Operational Runbook: Update docs/NATIVE_BOOT_ONE_TIME.md to permanently retire the obsolete Secure-Boot-off procedure and enforce the trust boundary.
  3. Automated Verifier: Deliver a host-side verifier script that validates pre- and post-boot records and yields PASS, FAIL, BLOCKED, or INCOMP.