Machine 1 Native Boot Qualification Procedure: Attended, One-Time, Secure Boot OFF for development (as of 2026-10-01), ON for release
This document defines the safe, operator-attended qualification procedure for one-time native candidate boots of AIENOS on NVIDIA DGX Spark ("Machine 1").
1. Current Qualification Status
HARDWARE_QUALIFICATION_BLOCKED_BY_TRUST_CHAIN
[!NOTE] Update 2026-10-01 (owner decision): Secure Boot is OFF on Machine 1 for development, by Drake's decision. The TPM stores were relocked with PCR 7 measured under Secure Boot off (recovery procedure:
~/handoffs/secure-boot-off/after-restart.sh). Gates now report Secure Boot state as an observed fact and do not fail on it. Any production or release gate must still require Secure Boot ON. The historical warning below describes the 2026-09-24 state and the PCR 7 sealing risk when the setting is flipped.
[!CAUTION] HISTORICAL (2026-09-24): do not flip Secure Boot without re-sealing the TPM stores. On Machine 1, turning Secure Boot off alters TPM PCR 7. On the historical 2026-09-24 first-boot test, changing PCR 7 prevented the TPM from unsealing the volume encryption keys for
atlas-private-storageandatlas-forgejo-storage, locking the filesystem and causing severe service restart loops (evidence/machine1_core_baseline_2026-09-24.md). Secure Boot was restored then; as of 2026-10-01 it is OFF for development by owner decision (see note above).The native AIENOS boot images (
aienos-handoff.efi,aienos-boot.efi) are not currently signed by a key enrolled in Machine 1's UEFI database (db). Direct execution under Secure Boot will fail withSecure Boot Violation(evidence/gate1_machine1_selftest_2026-09-24.md).Physical hardware native boots remain BLOCKED until the owner-controlled boot trust chain (ADR 0007 / TRUST-1 implementation) is enrolled in firmware. Do not attempt to bypass this boundary by turning Secure Boot off. All rollback semantics must be validated in QEMU (
scripts/qemu_native_rollback_test.sh).
2. Hard Invariants & Safety Constraints
- Secure Boot (release only): a release gate requires
SecureBoot enabled; during development (OFF since 2026-10-01, owner decision) the state is only recorded. For a release, Machine 1 must reportSecureBoot enabled(/sys/firmware/efi/efivars/SecureBoot-*byte 4 == 1). Any tool or procedure attempting to disable Secure Boot fails closed. - Permanent BootOrder Immutable:
BootOrdermust not be modified. Linux (Ubuntu GRUB/shim,Boot0001) remains the permanent, unchallengeable default. - One-Time Staging Only: Candidates are invoked strictly via UEFI
BootNext. Firmware deletesBootNextupon boot. - Zero Persistent Storage Mutation: Candidate execution must not write to Linux root (
/dev/nvme0n1p2) or alter the EFI System Partition (/dev/nvme0n1p1) outside of the staging scratch directory\EFI\AIENOS. - Attended Execution Only: No autonomous or unattended physical hardware reboots are permitted. Operator must be present at physical console with recovery media attached.
3. Preparation & Pre-Flight Verification
Ensure the operator is present at the physical machine with:
- Recovery Media: Dedicated
AIENOSRECOVUSB stick inserted into Machine 1 (Boot0004), tested and proved perdocs/RECOVERY_MEDIA_MACHINE1.md. - Physical Display & Keyboard: Attached directly to DGX Spark console.
- Service Quiescence: Non-core services stopped per
evidence/machine1_core_baseline_2026-09-24.md.
4. Execution Workflow (When Trust Chain is Enrolled)
Step 1: Pre-Boot Baseline Capture
Capture the complete pre-boot state into evidence/pre_boot_capture.json:
sudo scripts/verify_native_rollback.sh --capture-pre evidence/pre_boot_capture.json
This records:
- Secure Boot status (
enabled) - Active and permanent boot configuration (
BootCurrent,BootOrder, noBootNext) - Partition UUIDs:
- Root:
d27bfd26-ff30-400e-9eca-9cdf73de9406(ext4, mounted at/) - ESP:
9DA2-3597(vfat, mounted at/boot/efi)
- Root:
- Kernel release (
uname -r)
Step 2: One-Time Candidate Staging
Under lease hold (aien-proof hold --resource machine-1):
# Verify working tree is clean and map to exact commit
commit=$(git rev-parse HEAD)
# Build signed native candidate (requires owner signing key)
scripts/sign_efi_binary.sh target/aarch64-unknown-uefi/release/aienos-handoff.efi
# Stage image to ESP and set BootNext
sudo bash scripts/stage_one_time_boot.sh --apply
The staging script:
- Copies the authenticated binary to
/boot/efi/EFI/AIENOS/aienos-handoff.efi. - Verifies that
BootOrderis preserved unchanged. - Creates/verifies non-default boot entry
Boot0000 "AIENOS handoff (one-time)". - Sets
BootNext = 0000.
Step 2 (C kernel variant, L6 / L6-C): scripts/stage_one_time_boot_ck.sh
For the C kernel infer image plus MODEL.MAP (the yardstick model read through the firmware's Block I/O, aienos#34 lane 6), with its console mirrored on the GOP framebuffer (CHANDOF3) and held on screen for 120 s before the reset:
scripts/stage_one_time_boot_ck.sh --dry-run # prints every command, touches nothing
scripts/stage_one_time_boot_ck.sh --apply # operator only, attended boot follows
One of the two flags is required. --apply stops before touching anything if the tree is dirty, the model or the ESP is not on /dev/nvme0n1, Secure Boot is on, BootNext is already set, or Boot0004 AIENOSRECOV is absent. In order it: builds the image (CK_INFER_LIB, CK_FB_HOLD_S=120) and ck_model_map; chattr +i on the model (first, so its blocks cannot move after the map is made); ck_model_map make --fiemap --part-start auto --disk /dev/nvme0n1, then ck_model_map check (re-reads every extent by LBA and recomputes the SHA-256) and requires the pinned model hash; verify_native_rollback.sh --capture-pre; copies aienos-ck.efi, MODEL.MAP and STAGED-CK.TXT to \EFI\AIENOS; creates a create-only boot entry, restores BootOrder if it changed, checks Boot0004 AIENOSRECOV is still present, and sets BootNext once. It never reboots. After the return to Linux: --capture-post, then sudo chattr -i on the model.
Step 3: Candidate Boot & Observation
- Reboot the machine:
sudo reboot - Observe Physical Screen:
- Firmware starts and evaluates
BootNext. - If firmware accepts signature: AIENOS banner, memory map validation,
kernel: aliveon screen. - Candidate counts down 30 seconds and calls cold reset via PSCI.
- If firmware reports
Secure Boot Violation: This is an expected STOP condition if keys are missing. Do not bypass. The machine will fall back toBootOrder(Linux).
- Firmware starts and evaluates
- If Machine Hangs:
- Wait 60 seconds.
- Power-cycle using the chassis power button.
- Because firmware consumed
BootNextprior to launching the image, the reset will boot Linux (BootOrder[0] = 0001).
Step 4: Out-of-Band Fallback (If Linux Fails to Boot)
If Linux does not automatically load:
- Press
F11(or firmware BBS hotkey) during startup. - Select
Boot0004(AIENOSRECOVUSB recovery stick). - In the recovery environment, verify root and ESP integrity read-only per
docs/RECOVERY_MEDIA_MACHINE1.md.
Step 5: Post-Return Capture & Automated Verification
Once returned to Linux:
sudo scripts/verify_native_rollback.sh \
--pre evidence/pre_boot_capture.json \
--post evidence/post_boot_capture.json \
--verify
The automated verifier evaluates all 10 invariants:
- Secure Boot state: unchanged (
enabled) BootOrder: identical to pre-bootBootCurrent: returns to0001(Linux)BootNext: consumed / empty- Root partition UUID & mount (
/,rw): unchanged - ESP partition UUID & mount (
/boot/efi,rw): unchanged - No boot loop created