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 / TRUST-1-ATTENDED-SEQUENCE.md

223 lines · 21362 bytes Raw Blame History Source

TRUST-1 attended sequence, missing implementations and gate unlock map

In plain words first (for the operator, who is not a programmer)

This page is the order of the hands-on jobs that remain for the Spark's security plan, what each one unlocks, and what has not been built yet. Terms, each in one everyday sentence:

Status: documentation only. Machine-independent companion to TRUST-1-OPERATOR-STEPS.md and TRUST-1-M5-GATE-MATRIX.md. Written 2026-10-05 against aienos main bbad5e4 (CAND-1 TRUST receipt: pass 20, fail 1, blocked 11, missing 5, NOT_QUALIFIED). It records no live machine state; the live preflight results and the request to the operator live in the operator's private handoff, not here. Nothing in this page was run on Machine 1. The single in-person document, with live-checked prerequisites and corrections to this page, is TRUST-1-ATTENDED-PACKAGE.md.

Secure Boot has been OFF since 2026-10-01. The one software FAIL, t1_gate7_preflight, reports that state and is not a code regression.

Important reading rule: the 16 rows that are blocked or missing (11 blocked, 5 missing) have no runner in the gate table (scripts/trust1_m5_qualify.sh, runner column -), so trust1_m5_qualify.sh cannot run them even after the attended action. An attended action produces evidence; turning it into PASS needs a runner or a recorded-receipt check added to the table (a recommendation, no design exists).

Part 2. Attended actions in order

General rules: one step at a time; anything unexpected stops the run (plan, "Unexpected states"). "Relock script" means the operator's private re-seal helper that re-seals the three Ubuntu credentials to the current Secure Boot state from the MacBook spares. Not before the chip window ends.

Action 1. Gate 2, Experiments 1, 2 and 4 (Secure Boot stays OFF; no sticks, no firmware change)

Action 2. Decide the key location, get the sticks, make the second offline copy (Gate 0 item)

Action 3. Turn Secure Boot ON again, relock the credentials, repeat the cold-boot baseline

Action 4. Gate 1 attended recovery-stick boot with Secure Boot ON (round trip)

Action 5. Gate 3 offline owner key ceremony (MacBook, network off)

Actions 6 to 9 (cannot be scripted for Drake yet; each waits on missing work in Part 3)


Part 3. Missing implementations

The five MISSING_IMPLEMENTATION rows (all NOT_RUN, "the gate table lists no implementation to run", scripts/trust1_m5_qualify.sh lines 79, 81, 82, 83 and 84; line 80 is a software row that passes):

#Row idWhat is missingWhere it is specified or stubbed
1m5_sealed_volume_keys_real_tpmProduct seal and unseal of the volume key on a real TPM. Today the kernel's production key source is a refusing stub returning CK_SB_E_BLOCKED_OPERATORnative/kernel/svc/store_boot.c:98-101 and :335; ADR 0017 section 2.8 (TPM PolicyAuthorize), docs/adr/0017-m5-key-hierarchy-and-encrypted-store.md:226; Gate 6 in the plan
2m5_store_kernel_bindingSealed C Store bound into the kernel boot path on a real device with real keys. QEMU with TEST keys passes (ck_store_kernel_qemu) and does not countmatrix row "Production Store wiring"; store_boot.c:172 refuses TEST keys in the hardware staging build (that refusal is the correct guard)
3m5_owner_signed_chain_machine1Owner-signed trust chain on Machine 1: needs Gate 3 real keys, a db enrollment tool, signed loader on the real image, Gate 7 run. No script contains efi-updatevar, KeyTool, sign-efi-sig-list or mokutil --import (searched scripts/ and docs/: none)plan Gate 7 "add owner trust without deleting factory trust"; matrix row "Owner-signed trust chain on Machine 1"
4m5_production_store_512bReal-device run of the production Store on the Machine 1 NVMe (512-byte blocks). Host and QEMU pass, including DISK_LAYOUT in QEMUmatrix "Production Store on 512-byte geometry"; native/kernel/dev/disk_layout.h; operator-steps "Known hardware risk" (do not boot the C kernel on a disk holding data)
5t1_gate4_manifest_abSigned boot manifest format and loader verification, A/B slot selection, failed-candidate fallback. No spec fixes a manifest format (matrix: searched docs/ and aien-architecture). Conflict to decide: the Gate 9 text asks for "AIENOS A/B discipline" but ADR 0024 Q3 says no A/B in the Rust loader; the C path uses firmware BootNext insteadmatrix "Signed boot manifests, A/B" table; docs/BOOT_HANDOFF_CONTRACT.md sections 1 and 7

Other gaps found (not rows in the table):

  1. Anti-rollback anchor in a TPM NV index: the anchor is on disk; rolling back store and anchor regions together still mounts (matrix, "Anti-rollback anchors"; ADR 0017 lines 190 to 207 define the rule).
  2. C rollback rows 42 to 46 (M0_ROLLBACK): spec in docs/BOOT_HANDOFF_CONTRACT.md section 7.1 (line 249), rows 42, 45, 46 need script changes only, rows 43 and 44 need two TEST-only kernel flags. Physical rollback test M0_NATIVE_ROLLBACK_MACHINE1 is BLOCKED.
  3. Gate 7 written checklist and approval receipt template: absent (runbook "Later gates"; grep for "Gate 7" in docs/ finds only the plan, the runbook line and the preflight script).
  4. Firmware db enrollment and owner-signing procedure for the real boot image (see row 3): absent.
  5. Gate 2 Experiment 3 (USB stick) and 5 (boot order) written steps, and the Secure Boot ON experiment list (docs/TRUST-1-GATE2-EXPERIMENTS.md).
  6. Runners for the 11 blocked rows (Part 4 explains why this matters): none exists.
  7. Soak after #243 is stale (matrix, Gate 4 row); a 5-boot rerun was queued, not part of the attended work.
  8. Menu names of the firmware Secure Boot setting: not recorded anywhere (UNVERIFIED).

Part 4. Gate unlock map

Reading rule. The qualify script marks a row PASS only if it has a runner. These 16 rows (the 11 blocked rows and the 5 missing rows) have none, so even after the action below, bash scripts/trust1_m5_qualify.sh will still print them as NOT_RUN. What each action really produces is evidence (capture folders, collector output, ceremony record). Turning that evidence into a PASS needs a small agent change: add a runner or a recorded-receipt check to the gate table (UNVERIFIED that a design exists; this is a recommendation). Exception: t1_gate7_preflight has a runner today.

After this actionRowWhat changesCommand to run afterwards
Action 3 (Secure Boot ON, steps 1 to 6)t1_gate7_preflight (the FAIL)Expected to pass after Action 3 (its two Secure Boot checks are inferred, not yet observed; the other checks passed in the 05:44Z run)bash scripts/trust1_gate7_preflight.sh then, for the receipt, bash scripts/trust1_m5_qualify.sh --out evidence/ (no --with-qemu)
Action 3 step 7 (3 SB-ON cold boots)t1_gate0_cold_boot_pcr_stability (hardware)Evidence to answer it; plan says Secure Boot ON precondition. Today only an OFF repeat exists (evidence/trust1_gate2_baseline_2026-10-03/)bash scripts/tpm_measurement_campaign.sh compare ~/trust1-evidence/sb-on-boot1 ~/trust1-evidence/sb-on-boot2 (and 2 vs 3). Needs a runner to count
Action 1 (Experiments 1, 2, 4)t1_gate2_reboot_campaign (hardware)Some experiments done, not all, and OFF only. Does NOT go PASSbash scripts/tpm_measurement_campaign.sh receipt ... per experiment (arguments UNVERIFIED)
Action 1 (Experiment 2 end state: timer disabled) plus a written approval notet1_gate0_firmware_refresh_pause (operator)Pause is observed (disabled at 2026-10-05T03:25Z and 12:55Z). Owed: the written approval and a service baseline (matrix Gate 0 row)systemctl is-enabled fwupd-refresh.timer; the approval is an agent note, no command
Action 2 (second offline copy)t1_gate0_second_offline_location (operator)Evidence once the copy and hash match are recordedsha256sum of the identity at both places, compared by the orchestrator
Action 4 (Gate 1 stick boot)t1_gate1_attended_recovery_boot (operator)Evidence: RECOVERY_BOOT_GATE: PASS and the round trip. Needs Gate 0 firstcollector command printed in Action 4; host-side pre-check bash scripts/verify_recovery_tools.sh (already PASS in the CAND-1 receipt)
Action 5 (Gate 3 ceremony)t1_gate3_offline_key_ceremony (operator)Evidence: ceremony record. Also unlocks m5_migration_owner_signature (operator), which needs a real owner signature, and the Gate 4 signing with the real Boot Signerbash scripts/trust1_key_ceremony.sh record <dir> on the ceremony machine; host test remains bash scripts/test_trust1_key_ceremony.sh
Actions 6 and 7 plus Part 3 items 1, 6, 8t1_gate6 (operator), m5_sealed_volume_keys_real_tpm, m5_store_kernel_bindingCannot startnone exists
Action 8 plus Part 3 items 3, 5, 8, 9t1_gate7 (hardware), m5_owner_signed_chain_machine1, t1_gate4_manifest_abCannot startnone exists
After Gate 7t1_gate8, t1_gate9, m5_production_store_512bwaitnone exists

Which of the 11 blocked rows become attended-runnable in order: Gate 0 pause (now), Gate 2 (partly now, fully after Action 3 and Gate 3 certificates), Gate 0 stability, Gate 0 second location, Gate 1, Gate 3, m5_migration_owner_signature. The other four blocked rows (t1_gate6, t1_gate7, t1_gate8, t1_gate9) are not unlocked by anything on the list above.