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-PACKAGE.md

145 lines · 18901 bytes Raw Blame History Source

TRUST-1 attended package: what Drake does in person, in order

In plain words first

This page is the one document to follow when you sit at the Spark for the security work. It says what to prepare, what to do in each sitting, what you should see, what to do if it goes wrong, and which security checks each sitting can help finish. It adds nothing new to the plan. It gathers TRUST-1-ATTENDED-SEQUENCE.md, TRUST-1-OPERATOR-STEPS.md and TRUST-1-M5-GATE-MATRIX.md into one path, with the prerequisites checked against the live machine on 2026-10-05 (19:17 UTC).

Words used here, one sentence each: Secure Boot is the firmware switch that lets the computer start only signed software (it is OFF now). TPM is the security chip. A PCR is one numbered logbook slot in the TPM that records what started up. Relock script is my helper that re-locks the three stored passwords to the current Secure Boot state. Evidence checker is a new helper (below) that reads the files a sitting leaves behind and refuses them if they are incomplete, wrong or failing.

Honest status (2026-10-05). No attended boot, no recovery-stick boot under Secure Boot and no key ceremony has happened since the baseline of 2026-10-03. Every row below that needs one of those stays BLOCKED until it really happens and its evidence is recorded. Nothing on this page marks a physical result as done.

1. Prerequisites, checked against the live repos and machine

Result column: OK means observed on 2026-10-05 19:17 UTC; the other tags are explained after the table.

#PrerequisiteHow to check (read-only)Result
1Repository is at the pinned workgh api repos/aien-dev/aienux/commits/main -q .shaOK: main is 6bbd3c6 (docs only after bbad5e4; the scripts are unchanged between them, git diff --stat lists only docs and crumbs)
2Gate 2 tool copy is the one the runbook namessha256sum ~/workspace/aienos-recovery-gate/scripts/tpm_measurement_campaign.shOK: aac10377...4529, byte-identical to main's file
3Secure Boot statemokutil --sb-stateOK for the Gate 2 sittings: SecureBoot disabled (it must be enabled only after sitting 3)
4Booted by UEFI, boot entriesefibootmgrOK: BootCurrent 0001, BootOrder 0001,0003, no stale USB entry
5Recovery stick not plugged inlsblkOK: only the internal NVMe drive is present
6Firmware-update timer pausedsystemctl is-enabled fwupd-refresh.timerOK: disabled
7You may use the TPMid -nG lists tss; ls -l /dev/tpmrm0OK
8Tools presentcommand -v tpm2_pcrread tpm2_eventlog efibootmgr mokutil age sbsign sbverify openssl jq swtpmOK: all present
9Spare copies of the three passwords on the Sparkls -l ~/.config/atlas/offline-spares/OK: five .age files, MANIFEST.txt, the public recipient file
10Same spares on the MacBookssh macbook 'ls -l ~/aienos-offline-recovery' and compare MANIFEST.txtOK, with a correction: MANIFEST.txt has the same digest on both machines (093624fd...). The MacBook folder holds a sixth file, atlas-forge-state-luks-recovery-key.txt.age, that the manifest does not list (see stale item S2)
11Relock script existsls -l ~/handoffs/secure-boot-off/after-restart.shOK, but it lives only in the home folder, not in any repo (S3). Its three expected digests match the manifest
12Test file from Step 3cat ~/trust1-evidence/step3-roundtrip-fingerprint.txtOK: 32b2dc31...98a1
13Recovery stick AIENOSRECOV built and holding no secrets~/trust1-evidence/step4-stick-rebuild.txtOK on paper (built 2026-10-03 on 130aa20); the stick itself is not plugged in, so its contents are UNVERIFIED today
14No chip run in progresstest -e ~/workspace/.spark-quietOK: file absent at 19:17 UTC. Check again just before any restart: a restart during a chip run ruins that run
15Gate 7 pre-flightbash scripts/trust1_gate7_preflight.shEXPECTED FAIL: 23 passed, 2 failed (the two Secure Boot checks), as the sequence page predicts
16Gate 2 attended runs already donels ~/trust1-evidenceNone: no g2-exp* folders. Only the four baseline boots exist
17Spare USB sticksphysicalMISSING: none (step5-decision.txt, 2026-10-03). Needed: 1 for the key (decision below) and 2 for the Gate 3 backups
18Where the recovery key livesstep5-decision.txtOPEN: Option B (key on the stick) was chosen, then Steps 4 to 6 were deferred. Option B clashes with the stick builder's "no secrets on the stick" rule; that rule needs a decision first
19Firmware screen key and Secure Boot menu namesnone recordedUNVERIFIED: sitting 3 of Gate 2 is where you write them down

Stale or imprecise items found in the existing docs and handoff

2. The sittings, in order

General rules (from the runbook): one step at a time; if anything differs from "expected", stop and give the output to the orchestrator; never improvise with security settings. Emergency stop for a stuck restart: plain power off, wait 30 seconds, one press of the power button, nothing else.

Sitting A. Gate 2 restarts with Secure Boot staying OFF (about 2 hours)

Sitting B. Decide the key location, get three sticks, make the second offline copy

Sitting C. Turn Secure Boot ON, relock, repeat the cold-boot baseline

Sitting D. Gate 1 recovery-stick boot with Secure Boot ON

Sitting E. Gate 3 owner key ceremony (MacBook, network off)

Not yet possible (no written steps or no tool)

Gate 2 experiments 3 and 5 and the Secure Boot ON experiment list; Gate 6 (needs the real-TPM sealing code); Gate 7 (needs its own checklist, an enrollment tool for the firmware's trusted-signer list, and an owner-signed loader); Gates 8 and 9. These are listed in Part 3 of the sequence page. No sitting above starts them.

3. What each sitting can unlock

"Row" means a line of scripts/trust1_m5_qualify.sh. No row below goes PASS by itself: the qualify script marks a row PASS only when it has a runner, and these rows have none by design (the sequence page, Part 4). The evidence checker output is a pre-check that the files are sound. The owner records the physical result separately.

SittingRowState todayAfter the sitting
Ct1_gate7_preflightFAIL (Secure Boot OFF)Expected PASS once Secure Boot is ON; re-run the pre-flight
At1_gate0_firmware_refresh_pauseBLOCKED_OPERATORStill blocked: owes a written approval and a service baseline
At1_gate2_reboot_campaignBLOCKED_HARDWAREStill blocked: experiments 3 and 5 and the ON list are missing
Bt1_gate0_second_offline_locationBLOCKED_OPERATOREvidence once the matching hashes are recorded
Ct1_gate0_cold_boot_pcr_stabilityBLOCKED_HARDWAREEvidence (three ON cold boots). Only the OFF repeat exists today
Dt1_gate1_attended_recovery_bootBLOCKED_OPERATOREvidence once the log is checked and recorded
Et1_gate3_offline_key_ceremony, m5_migration_owner_signatureBLOCKED_OPERATOREvidence for the first; the second also needs a real signature
nonet1_gate4_manifest_ab, t1_gate6, t1_gate7, t1_gate8, t1_gate9, m5_sealed_volume_keys_real_tpm, m5_store_kernel_binding, m5_owner_signed_chain_machine1, m5_production_store_512bblocked or missingCannot start from any sitting listed here

4. The evidence checker (HOST VALIDATION ONLY)

scripts/trust1_attended_evidence_check.sh reads the files a sitting leaves behind and prints TRUST1_ATTENDED_EVIDENCE <gate>: ACCEPT or REJECT with the reasons. Every run starts with the line HOST VALIDATION ONLY. It checks files only, so a forged file could pass: ACCEPT means "well formed and matches the digests you named", never "the boot happened". It does not touch the TPM, firmware, sticks or keys, and it is not wired to change any row in the qualify script. Its own test is bash scripts/test_trust1_attended_evidence_check.sh and the qualify script runs it as the row t1_attended_evidence_checker.

It rejects, for every command: a missing record, a record with the wrong digest or candidate, a partial record, and a failing record.

SittingCommand
Abash scripts/trust1_attended_evidence_check.sh gate2-receipt RECEIPT.json --expect-baseline-sha <baseline receipt digest> --expect-variable NAME --before DIR --after DIR --post-rollback DIR
Cbash scripts/trust1_attended_evidence_check.sh gate0-stability ~/trust1-evidence/sb-on-boot1 .../sb-on-boot2 .../sb-on-boot3 --expect-secure-boot 1 (give cold boots only; add --expect-pcr7 HEX once you know the value to expect)
Dbash scripts/trust1_attended_evidence_check.sh gate1 gate1-output.txt --expect-test-sha 32b2dc3155e92e071800370f9578e0ebf404df8513ca4b6213f015bacab498a1 [--expect-loader-sha SHA]
Ebash scripts/trust1_attended_evidence_check.sh gate3 public --expect-manifest-sha <value written on paper at the ceremony>

Limits stated plainly: it cannot tell a cold boot from a warm one; for Gate 1 the collector log carries no commit id, so candidate binding rests on the test-file digest and, if given, the loader digest; the second-location note for Sitting B has no checker because no record format exists for it yet.