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 / ATTENDED_SESSION_N1.md

313 lines · 26540 bytes Raw Blame History Rendered
1# ATTENDED_SESSION_N1: the first attended service session on the physical DGX Spark
2
3Status: PLAN (2026-10-12). Nothing in this document has run on hardware. Every
4hardware row is **NOT_RUN**. Writing it changed nothing on the machine: no
5reboot, no staging, no boot-variable change, no partition change, no root
6command. The only commands run on the Spark while writing it were read-only
7(`lsblk`, reads of `/sys/block/nvme0n1/*`), quoted where used.
8
9Owner's words (2026-10-12): "Prepare one attended hardware session with
10explicit prerequisites, stop conditions, and a known-good native recovery
11path. My earlier approval of a window does not mean I am currently present."
12The milestone he set: "boot the candidate, unlock it, run bounded CPU
13inference, approve and remember something, restart, and recover the saved
14state." Native GPU and update/rollback qualification are separate proofs.
15
16**Verdict today: NO-GO.** Four prerequisites in section 2.2 are not met and
17three of them need desk-side code first. This page says what each one is and
18where it stands, so that the session can be run as written once they close.
19The B7b window (`docs/campaigns/B7B-PHYSICAL-BOOT-PREP.md`) is a different,
20smaller session and does not depend on them.
21
22Related, read first: `docs/NATIVE_BOOT_ROLLBACK_CONTRACT.md`,
23`docs/BOOT_HANDOFF_CONTRACT.md` section 7, `docs/campaigns/B7B-PHYSICAL-BOOT-PREP.md`,
24`docs/native/PREFLIGHT-AND-RECOVERY.md`, `docs/RECOVERY_MEDIA_MACHINE1.md`,
25`docs/NATIVE_IMAGE_SLOTS.md`, `native/kernel/GATES.md` LIFECYCLE and INFER
26sections, aien-architecture `CURRENT_EXECUTION_PLAN.md` (native v1 addendum,
27gates N1 to N7).
28
29## 1. Purpose and the exact proof
30
31One attended window, two native boots of the same release-candidate image on
32the same disk, with Linux returning between them by the firmware's one-time
33`BootNext` rule.
34
35| step | what is proved | gate it feeds (aien-architecture N1 to N7 ledger) |
36|---|---|---|
37| boot the candidate | the service image starts on the Spark, its console is readable and takes operator input | N1 ("boot is observable and recoverable; operator input and abort work") |
38| unlock | `unlock <64-hex recovery secret>` formats a production Store on a blank AIENOS partition (genesis) and opens it | N1 (operator input), N2 (real owner state) |
39| bounded CPU inference | `prompt <text>` generates at most 16 tokens on the CPU from the model read off the boot disk; a second prompt is cancelled between steps | N3 ("supplies a new prompt, sees bounded generated output ... cancels another request") |
40| approve and remember | `approve` commits the reply as one sealed Store object; `remember <text>` appends one fact to the Omega Cortex journal on the Store | N3 ("approves a useful local artifact"), N2 ("committed Store objects") |
41| restart | `shutdown` runs the stop order and resets; Linux comes up (BootNext consumed); `BootNext` is armed once more and the machine reboots into the same image | N1 (rollback evidence), N2 (one physical cold start) |
42| recover the saved state | after `unlock`, `recall` returns the approved reply and `facts` returns the fact from the disk; the fact is never typed in this boot | N3 ("cold-boots to recover the approved artifact and a memory-only fact") |
43
44What this session does **not** prove, stated so nobody reads more into it:
45
46- N1 also needs "bounded B7b result" (the SMMU probe window, a separate
47 session). This session gives N1 its operator-input and rollback part only.
48- N2 also needs "the declared fault cases" (power loss mid-commit, corrupt and
49 stale state). One clean cold start is not those.
50- N3 is the gate this session can close, and only if every expected line in
51 section 3 is seen and the verifier agrees (N6 rule).
52- Nothing about N4 (GB10), N5, N6 or N7. The return path in this session is
53 the Linux `BootOrder`, which N7 says is insufficient.
54
55## 2. Prerequisites
56
57### 2.1 Pins and the image
58
59| # | prerequisite | state on 2026-10-12 | source |
60|---|---|---|---|
61| R1 | One release candidate pinned: aienos, omega, physics, aien-sovereign-core, aien-architecture commits recorded as RC-1 in aien-architecture `CURRENT_EXECUTION_PLAN.md`. The session boots exactly that aienos commit. | being recorded (aien-architecture branch `native-v1/gates-ledger-2026-10-12`) | Drake decision 3, 2026-10-12 |
62| R2 | The service image built from the RC-1 aienos commit twice, byte-identical, digests written to a `SHA256SUMS` kept with the RC-1 record, together with source revision, toolchain and inputs (Drake decision 7) | NOT BUILT: no build recipe exists yet (R2 depends on B2) | `scripts/native_package.sh` (aienos#322) does this for the slot package; the staging scripts each build twice and compare (`scripts/stage_one_time_boot_ck_b7b.sh` header) |
63| R3 | The model file pinned and immutable: `Llama-3.2-1B-Instruct-Q4_K_M.gguf`, sha256 `3f5a22426976ab26cfe84dba63c1d08391717abb1af893e10f1b2968d862dcc1`, `chattr +i` before `MODEL.MAP` is made | procedure exists for the one-shot inference image | `scripts/stage_one_time_boot_ck.sh` lines 2-40 and `pinned_sha` |
64| R4 | Owner files for a hardware staging image (`CK_OWNER_PUBKEYS`, `CK_MACHINE_ID`); the TEST-FIXTURE files are refused for a boot | NOT DONE: the owner key ceremony is decided (MacBook, Wi-Fi off) but the key is generated only when Drake says he is present | `native/kernel/Makefile` lines 13-18; Drake decision 1; `docs/OWNER_KEY_CEREMONY.md` (in preparation by another worker, not merged) |
65| R5 | The 64-hex recovery secret written on paper, generated offline, never typed into any chat, file or terminal on the Spark except the AIENOS console | NOT DONE; how it is generated and backed up must be written down before the window (if the ceremony document does not cover it, this is an open item) | ADR 0017 Slot 1 (`docs/adr/`), `native/kernel/GATES.md` row 170 (secret hygiene) |
66
67### 2.2 Blocking prerequisites (each one alone makes today a NO-GO)
68
69**B1. Operator input on the Spark's console.** Half solved at the desk
70(aienos#328); the other half is an operator step that needs a cable.
71
72Verified on the Spark on 2026-10-12 (read-only, Linux running, no write):
73the ACPI SPCR (80 bytes, revision 2) names interface type **0x01** (16550
74subset, Linux `ACPI_DBG2_16550_SUBSET`), a memory-mapped UART at
75**0x16A00000** with 32-bit dword-spaced registers (GAS access size 3),
76interrupt GSIV 878, baud byte 7 (115200). Linux drives the same port as
77`ttyS0` (`console=ttyS0,921600`, device `MTKI0511:00`, ACPI `\_SB_.COM1`,
78`io_type=3` 32-bit MMIO, `iomem_reg_shift=2`, `uartclk=26000000`).
79Before aienos#328 the kernel accepted SPCR types 0x00 and 0x12 only, so by
80the code (not observed on the machine) it had no serial console on the
81Spark at all, and the lifecycle would have stopped with `REFUSED no
82operator input`.
83
84Implemented by aienos#328 (desk, host-tested; `native/kernel/GATES.md`
85rows 167c-167f): the kernel selects that 16550 from the SPCR for output and
86for operator input, reads it with 32-bit accesses, polls it (no
87interrupts) between lifecycle steps and between generation steps (so
88`cancel` works), refuses overlong lines and lines with a receive error
89(overrun, parity, framing, break) whole, and prints `lifecycle: ready ...
90(operator input: serial 16550 at 0x16a00000, polled)`. With no supported
91UART it prints `lifecycle: REFUSED console input unsupported on this
92platform` and stops. QEMU cannot run the 16550 path (QEMU virt has only a
93PL011); the PL011 path passes the full lifecycle QEMU gate.
94
95Still an operator step and UNVERIFIED: (1) whether the Spark's 16550 is
96wired to a connector you can reach (no documented external serial port;
97`docs/HARDWARE_TEST_RIG.md` plans the hub Pi's 3.3 V GPIO UART); (2) the
98line speed AIENOS inherits, because the kernel never reprograms the UART
99(try 115200 from the SPCR first, then 921600, 8N1, no flow control).
100**A prompt on the screen does not prove input.** What proves it: the bytes
101you type echo back on the serial terminal, `status` is answered with a
102`lifecycle: state=... store=...` line, and `shutdown` is answered with
103`lifecycle: shutdown accepted`, the `lifecycle: stop order ...` line and
104the final report. If no reachable serial connector exists, the remaining
105path is the local USB keyboard bound to the service lifecycle (the keyboard
106and xHCI code exist in `native/kernel/dev/usb_kbd.c`, CONSOLE gate, in a
107TEST-only image), which is a separate desk cut not done yet.
108
109**B2. A hardware service image with resident CPU inference.** The milestone
110image is `make full CK_SERVICE=1 CK_HARDWARE_STAGING=1 CK_INFER_LIB=...`.
111The Makefile refuses it: "CK_INFER_LIB (inference probe, QEMU gate only)
112cannot be combined with CK_HARDWARE_STAGING" (`native/kernel/Makefile` lines
113264-266). `native/kernel/GATES.md` INFER section says the same: "the hardware
114service image has no inference yet (the MODEL.MAP boot-disk source is the
115hardware path)". The kernel code already reads the model from the boot disk
116when the stub found `MODEL.MAP` (`native/kernel/core/infer.c` ck_infer_run,
117source 1; aienos#254, merge `25836ba`), but the resident session in a service
118image has only run on the TEST-ONLY fw_cfg source with TEST keys (LIFECYCLE
119rows 174-176). No staging script stages a `CK_SERVICE` image (only
120`scripts/qemu_ck_lifecycle_test.sh` names `CK_SERVICE`). Needed, desk-side:
121lift the refusal for the `CK_SERVICE` + `MODEL.MAP` combination only (fw_cfg
122stays refused in hardware images), a QEMU gate that runs this session's
123script end to end on the production service image with the model on the
124disk (two boots, same disk), and a staging variant
125(`stage_one_time_boot_ck_service.sh`, same shape as the B7b variant) that
126builds twice, makes `MODEL.MAP`, stages once and sets `BootNext` once.
127
128**B3. An AIENOS partition on the Spark's NVMe.** The kernel writes only
129inside the one GPT partition of type `38DAAC89-5EAD-4B40-8B1E-3687A7418061`;
130otherwise it prints `disk: no AIENOS partition, refusing writes` and the
131Store reports `no boot disk` (`native/kernel/README.md` lines 439-450). The
132Spark has one NVMe, `nvme0n1`, with exactly two partitions: the ESP
133(`nvme0n1p1`, start 2048, 610304 sectors) and the Linux root ext4
134(`nvme0n1p2`, start 612352, 8000961167 sectors). The disk has 8001573552
135sectors, so after the root partition only the 33 sectors of the backup GPT
136remain (read 2026-10-12 from `/sys/block/nvme0n1/`). There is no room for an
137AIENOS partition without shrinking the Linux root filesystem, which can only
138be done with it unmounted (ext4 does not shrink online; whether the recovery stick carries the tools is not checked), and which changes the
139Linux disk. That conflicts with "Linux side left untouched" and needs its
140own owner decision and its own attended window, with a verified backup
141first. Whether the Spark has a free slot for a second NVMe is UNKNOWN. Until
142B3 is decided and done, `unlock` cannot open anything on the Spark.
143
144**B4. Owner files (R4) and the recovery secret (R5).** Both are owner steps
145with Drake present.
146
147### 2.3 Machine and people
148
149| # | prerequisite | how it is checked |
150|---|---|---|
151| M1 | Drake at the machine for the whole window, display and USB keyboard attached, with a fresh "go" given in the window (an earlier yes does not carry over) | said aloud and written in the notes with the time |
152| M2 | Window: two hours, start time written in advance; nothing else uses the machine | the notes |
153| M3 | Quiet flag held for the window, raised only with Drake's OK: `quietlock hold --owner attended-n1 --minutes 150 --reason "attended N1 session" -- <the staging command>`; `quietlock check` clear before it | `quietlock check` output saved |
154| M4 | Recovery stick `AIENOSRECOV` plugged in and listed (`Boot0004`), verified (section 5) | `efibootmgr` output; it is NOT plugged in on 2026-10-12 (`/dev/disk/by-label` shows only `EFI` and `root`) |
155| M5 | Console capture: one phone or camera on the screen for both boots (the screen is the observation channel); serial capture only if B1 is solved by a wired serial link; a witness or a time-stamped recording; paper for times and exact words | the recording and the notes |
156| M6 | Linux side untouched apart from the one-time boot: the staging script writes only `\EFI\AIENOS` on the ESP, creates one boot entry outside `BootOrder` and sets `BootNext` once; `BootOrder` unchanged (`docs/NATIVE_BOOT_ROLLBACK_CONTRACT.md` sections 3.2 and 5) | `scripts/verify_native_rollback.sh --capture-pre/--capture-post/--verify` |
157| M7 | Secure Boot recorded, never changed (OFF since 2026-10-01, owner decision) | `scripts/native_boot_preflight.sh` records it |
158| M8 | Preflight P1 to P13 of `docs/campaigns/B7B-PHYSICAL-BOOT-PREP.md` section 3 passed within 24 hours on the RC-1 commit, with the service staging script's `--dry-run` in place of P12, plus `bash scripts/qemu_ck_lifecycle_test.sh` and the new B2 gate PASS at RC-1 | outputs saved with the commit and digests |
159
160## 3. The session, step by step
161
162Drake (or the witness) reads each step aloud. "Expected" lines are taken from
163the QEMU gate regexes in `scripts/qemu_ck_lifecycle_test.sh` (rows named) and
164`native/kernel/GATES.md`; they are **expected, not observed** on hardware.
165Generation numbers hold only if the verbs are typed in exactly this order.
166The secret is echoed as 64 `*` (row 170); `<S>` below is the paper secret.
167
168### Boot 1 (genesis)
169
170| # | do | expected on screen | row |
171|---|---|---|---|
172| 1 | In Linux: `sudo scripts/stage_one_time_boot_ck_service.sh --apply` (B2; does not exist yet). Read its output aloud. | ends with `BootNext` set to the new entry, `Boot0004 AIENOSRECOV` still listed, `BootOrder` unchanged, two equal image digests equal to the RC-1 `SHA256SUMS` | M6 |
173| 2 | `sudo reboot`. Start the clock. | firmware, then `model_map: ok len=807694368 extents=<n> sector=512 disk=<guid>` (stub, before ExitBootServices; length per aienos#254), then `kernel: alive` | INFER disk mode |
174| 3 | wait | `disk: gpt ok primary+backup crc32 ... aienos_index=<n> first_lba=<n> ...` (B3); `store: REFUSED proof=keyed step="production Store key source" rc=-2002 (service image stays LOCKED ...`; `store: service lifetime: Store LOCKED, NVMe stays bound for ...`; `infer: resident open rc=0 tensors=147 vocab=128256 layers=16 kv_capacity=64 max_new=16 max_prompt_bytes=256 heap_reserve_kib=64 ...`; `lifecycle: ready state=locked store=locked (operator input: <source>)` and the `> ` prompt | 160, 174 |
175| 4 | type `status` | `lifecycle: state=locked store=locked pending=- requests=1 continuity=none` | 161 |
176| 5 | type `unlock <S>` | `> unlock ****...` (64 stars); `store: blank disk (all-zero anchor + Store head): formatted production store`; `store: key source=recovery-keyslot genesis=1 ...`; `store: committed generation=2 boot_count=1`; `store: security manifest sequence=1 generation=2 keyslot=bound previous=genesis`; `store: unlock ok source=recovery-keyslot slot=1 genesis=1 generation=2 boot_count=1`; `continuity: PROVISIONED agent=<64 hex> incarnation=1 sequence=1 ...`; `allen: GENESIS subject=<64 hex> sequence=1 ...`; `lifecycle: unlock ok state=ready` | 168, 171, 183 |
177| 6 | write down the first 16 hex of `agent=` | (the notes) | 172 |
178| 7 | type `prompt What is the capital of France?` | `lifecycle: generating prompt="What is the capital of France?" (cancel stops it between steps)`; then `lifecycle: reply ids=791 6864 315 9822 374 12366 13 128009 tokens=8 prompt_ids=17 steps=25 us=<n>`; `lifecycle: reply pending state=serve proposed="reply: The capital of France is Paris." (approve | deny | cancel)` | 174 |
179| 8 | type `approve` | `lifecycle: approve committed gen=4 id=<8 hex> state=ready` | 164, 174 |
180| 9 | type `prompt Say hello.` then, as soon as `generating` appears, `cancel` | `lifecycle: generation cancelled steps=<n> prompt_ids=<n> produced=0 us=<n> state=ready`, or, if the reply was already complete before `cancel` arrived (the Spark CPU may be fast enough), `lifecycle: cancelled state=ready` (the pending reply dropped, `native/kernel/core/lifecycle_fsm.c` CK_LC_V_CANCEL); both are a cancelled request, write down which one | 165, 175 |
181| 10 | type `remember prefer short notes` | `lifecycle: cortex open records=0 chunks=1 journal_bytes=32 store_gen=5 ... chain=ok`; `lifecycle: remembered id=1 t=1 store_gen=6 bytes=18 text="prefer short notes"` | 180 |
182| 11 | type `facts`, then `recall`, then `evidence` | `lifecycle: facts records=1 shown=1 journal_bytes=192 chain=ok`; `lifecycle: recall gen=4 kind=reply ...text="aienos.reply.v1 ... The capital of France is Paris."`; one `lifecycle: evidence ...` line with `approved=1`, `prompts=2 replies=1 gen_cancelled=1`, `remembers=1 facts=1` | 175, 176, 180 |
183| 12 | type `shutdown` | `lifecycle: shutdown accepted ...`; `lifecycle: cortex closed ...`; `infer: resident close rc=0 ...`; `lifecycle: stop order store=closed nvme=released state=stop requests=<n>`; `stage lifecycle: ok rc=0`; `report_kind: final`; the screen hold; reset | 167, 176 |
184| 13 | do nothing | Linux comes up (BootNext was consumed, `BootOrder` unchanged) | M0 rule |
185
186### Between the boots (Linux)
187
188| # | do | expected |
189|---|---|---|
190| 14 | `sudo scripts/verify_native_rollback.sh --capture-post evidence/<session>/post_boot1.json`, then `--verify` against the pre capture | the ten invariants PASS; `BootNext` absent; `BootOrder` as before |
191| 15 | Arm the same entry once: `sudo efibootmgr --bootnext <entry printed in step 1>` (the only boot-variable write; never `--bootorder`). Do not rebuild or restage: the image and `MODEL.MAP` stay as staged, the model stays immutable. | `efibootmgr` shows `BootNext: <entry>` |
192| 16 | `sudo reboot` | |
193
194### Boot 2 (cold resume)
195
196| # | do | expected | row |
197|---|---|---|---|
198| 17 | wait | as steps 2 and 3, `lifecycle: ready state=locked store=locked`; no `store: blank disk` line | 169 |
199| 18 | type `unlock <S>` | `store: opened generation=6 boot_count=1 prev_commit=<hex> anchor=valid-resume`; `store: committed generation=7 boot_count=2`; `store: security manifest sequence=2 generation=7 keyslot=bound previous=linked`; `store: unlock ok source=recovery-keyslot slot=1 genesis=0 generation=7 boot_count=2`; `allen: RESTORED subject=<hex> sequence=1 ...`; `continuity: RESUMED agent=<same as step 6> incarnation=2 sequence=2 ...`; `lifecycle: unlock ok state=ready` | 169, 172, 183 |
200| 19 | type `status` | `... continuity=resumed agent=<first 16 hex from step 6> incarnation=2 subject_seq=1` | 172 |
201| 20 | type `recall` | `lifecycle: recall gen=4 kind=reply id=<same id as step 8> ...The capital of France is Paris.` | 175 |
202| 21 | type `facts` (never `remember` in this boot) | `lifecycle: cortex open records=1 chunks=2 journal_bytes=192 store_gen=8 ... chain=ok`; `lifecycle: fact id=1 t=1 store_gen=6 text="prefer short notes"`; `lifecycle: facts records=1 shown=1 journal_bytes=192 chain=ok` | 181 |
203| 22 | type `evidence`, then `shutdown` | evidence with `recalls=1 facts=1 remembers=0`; the stop order as step 12; reset; Linux returns | 167, 181 |
204| 23 | In Linux: capture post, `--verify` | ten invariants PASS | M6 |
205
206Timing on hardware is UNKNOWN for every step. QEMU under TCG needs about 15
207minutes for step 7; the Spark's CPU is expected to be far faster, not measured.
208
209## 4. Stop conditions
210
211Two kinds. **Soft stop**: the console still answers; type `shutdown`, let
212the stop order finish, do not continue to the next step, go to section 6.
213**Abort**: the console does not answer or the screen shows a panic; act as
214below. Any one of these stops the session:
215
216| # | condition | kind |
217|---|---|---|
218| S1 | no `kernel: alive` within 300 s of the firmware leaving its own screen (the stub reads about 0.8 GB through firmware Block I/O first; its duration on the Spark is UNKNOWN) | abort |
219| S2 | nothing new on screen for 60 s at any time outside generation; during generation (after `lifecycle: generating`), nothing for 600 s | abort |
220| S3 | `Secure Boot Violation` or any firmware refusal | firmware returns to `BootOrder` by itself; record, never bypass |
221| S4 | any `report_kind: panic` or `report_kind: fault`, any `panic:` line, any handoff refusal line of `docs/BOOT_HANDOFF_CONTRACT.md` section 6 | abort (the kernel resets itself) |
222| S5 | `lifecycle: REFUSED console input unsupported on this platform` or `REFUSED console input not ready`, or no echo / no answer to `status` on the serial terminal | a refusal: soft (the image already stopped); no echo or no answer: abort. Either way B1 is not solved |
223| S6 | `disk: no AIENOS partition, refusing writes` or `store: ... no boot disk` | soft: B3 is not solved |
224| S7 | any `store: ... REFUSED` or `store: unlock REFUSED` line after `unlock <S>` (wrong secret, keyslot, SecurityManifest, rollback anchor), any `continuity: REFUSED`, `degraded` or `RESUMED_READONLY` | soft; never retype a different secret in the same window |
225| S8 | `store: blank disk ... formatted` in boot 2 (the Store did not survive) | soft; a finding against N2 |
226| S9 | `infer: ingest FAIL`, `infer: resident open rc=` not 0, a model sha256 mismatch, or `infer_source_mode: TEST-ONLY` in a hardware image | soft |
227| S10 | a reply whose ids differ from step 7, or `recall`/`facts` text that differs from what was approved/remembered | soft; record verbatim (a finding, not a retry) |
228| S11 | any line not in the tables of section 3, or a number that differs from them | soft; write the time and the exact words |
229| S12 | anyone says "stop", or less than 30 minutes of the window are left before boot 2 | soft |
230
231**What abort means physically** (from `docs/campaigns/B7B-PHYSICAL-BOOT-PREP.md`
232section 7): touch nothing for 60 s, then hold the chassis power button until
233the machine is off, wait ten seconds, press it again. `BootNext` was consumed
234before the image started, so the firmware boots `BootOrder` (Linux, `0001`).
235Nothing on the Linux side and no boot variable is changed by the candidate
236(`docs/NATIVE_BOOT_ROLLBACK_CONTRACT.md` section 5). Plainly: the AIENOS
237partition may hold Store generations committed before the abort; that is by
238design (every commit is durable when the line prints) and is recorded, not
239repaired. A power cut during a commit is one of N2's declared fault cases and
240is not claimed by this session. Never during the window: run `--apply` a
241second time, change `BootOrder`, change firmware settings or Secure Boot, or
242"fix" anything without a new, separate go from Drake.
243
244## 5. Recovery path for this session
245
246**What exists today.**
247
2481. The firmware's one-time `BootNext` rule back to the unchanged Linux
249 install (`docs/NATIVE_BOOT_ROLLBACK_CONTRACT.md`; C kernel as the BootNext
250 candidate, QEMU gate M0_ROLLBACK rows 42-46 PASS, aienos#273 merge
251 `61bd76a`; log `evidence/ck_rollback_qemu_5deb3971...log`). On hardware
252 NOT_RUN for the C kernel.
2532. The recovery stick `AIENOSRECOV` (1 GB, vfat UUID `3511-E686`, firmware
254 entry `Boot0004`): a Linux-based recovery environment that runs from RAM,
255 mounts the internal root and ESP read-only and collects evidence
256 (`docs/RECOVERY_MEDIA_MACHINE1.md`). Last physical boot recorded
257 2026-09-25 with Secure Boot ON (`evidence/recovery_boot_machine1.md`); it
258 has not been booted since Secure Boot was turned OFF on 2026-10-01
259 (UNVERIFIED that it still boots; preflight P13). It is not a key backup.
260
261**What does not exist yet.** The known-good AIENOS recovery image (P11 cut 4
262in `docs/NATIVE_IMAGE_SLOTS.md` section 6, item 4: "the same loader plus a slot
263image on recovery media built by my tools, for the dual-invalid case") is
264not built, and the slot loader (cut 2a) is not merged.
265
266**So, for this session, the recovery path is the firmware BootNext rule back
267to the unchanged Linux install, plus the Linux recovery stick if Linux does
268not come up.** That is a Linux recovery path. It is acceptable as the safety
269net of a development session and it is explicitly insufficient for N7. If
270Linux does not come up: firmware boot menu, pick `AIENOSRECOV`, mount root
271and ESP read-only, run the collector exactly as in
272`docs/RECOVERY_MEDIA_MACHINE1.md`; any repair needs a new go from Drake.
273
274## 6. Evidence and where it goes
275
276| evidence | where |
277|---|---|
278| camera recording and photos of both boots | offline only, `~/aienos-private-evidence/` (phone photos carry location data; never committed) |
279| witness notes with times and exact screen words; the transcript of every screen line from section 3 | `evidence/attended_n1_<date>/notes.md` in aienos |
280| staging script output, `efibootmgr` before and after each boot, `pre`/`post` captures and both `--verify` verdicts | `evidence/attended_n1_<date>/` |
281| RC-1 pins, image `SHA256SUMS`, toolchain and inputs record | the same folder, and the RC-1 entry in aien-architecture `CURRENT_EXECUTION_PLAN.md` |
282| physical rows (new rows beside LIFECYCLE 160-185, labelled "Machine 1", never replacing the QEMU status) | `native/kernel/GATES.md`, after the session, by whoever records it |
283| one result note per gate touched, observed facts with limits | aienos#34 (N3 inference), #35 (memory across reboot), #31 (storage), #32 (unlock); ledger update on aien-architecture#190 |
284
285A physical PASS is claimed only for lines that were seen. Anything not seen
286stays NOT_RUN; any deviation is a finding.
287
288## 7. Pre-flight checklist for Drake (plain words)
289
290Before the day:
291
2921. The four missing pieces are done and merged: typing commands into AIENOS
293 (B1), the AIENOS build that has the language model and the safe-box
294 together (B2), a separate area on the drive for AIENOS's safe-box (B3,
295 your decision first, because it means shrinking Linux's area), and your
296 owner key plus the long unlock code on paper (B4).
2972. One frozen set of versions ("RC-1") is written down, and the AIENOS build
298 made from it twice came out identical.
2993. The recovery stick has been booted once since Secure Boot was turned off,
300 and Linux came back.
301
302On the day, before anything is touched:
303
3044. You are at the Spark with screen and keyboard, a camera on the screen, and
305 paper. You have two free hours.
3065. The recovery stick is plugged in.
3076. The unlock code is on paper in front of you and nowhere else.
3087. The pre-checks have all passed today; nobody else is using the machine.
3098. Everyone can say the stop rule: if the screen freezes for a minute or
310 shows a crash, wait one more minute, hold the power button until it turns
311 off, wait ten seconds, turn it back on. Linux comes back by itself.
3129. You say "go" out loud and the time is written down. Without that, nothing
313 starts.