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

GitHub aien-dev/aienux#145 (code only)

closed derived eb25c63f764dfbb3 #145

Imported from GitHub aien-dev/aienux#145 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 761e63d9c2d8bc6eee248e87c7900d18284fda84 · Head 2b56359749e674c32792b7bd158658eca400d0c2

Apply it

git checkout -b patch-eb25c63f764dfbb3 761e63d9c2d8bc6eee248e87c7900d18284fda84
curl -fsSL https://interplane.io/drakestapleton/aienux/patches/eb25c63f764dfbb3.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/aienux
145
2b56359749e674c32792b7bd158658eca400d0c2
{"kind":"github-import","owner":"aien-dev","repo":"aienux","number":145,"url":"https://github.com/aien-dev/aienux/pull/145","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:35:49Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/ROADMAP.md b/ROADMAP.md
index c98bb528..bb8733a6 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -40,7 +40,7 @@ SEED-0B  PASS  Native capability admission, in QEMU (2026-09-25; TEST-ONLY keys)
     P2-9 Machine 1 qualification          prepared, not run; blocked on
                                           TRUST-1 (docs/SEED0B_MACHINE1_QUALIFICATION.md)
 
-M4  PARTIAL  Storage and recovery (QEMU only so far)
+M4  QUALIFIED IN QEMU  Storage, continuity, and recovery
     NVMe read                   QEMU_NVME: PASS (#129)
     NVMe write + flush          QEMU_NVME_RW: PASS (#132)
     4K root-write atomicity     QEMU_NVME_ATOMICITY_4K: PASS (#133); the Machine 1
@@ -50,13 +50,15 @@ M4  PARTIAL  Storage and recovery (QEMU only so far)
                                 STORE_MALFORMED_PEER_RECOVERY: PASS (#135)
     Store over NVMe crash/reboot STORE_V1_QEMU: PASS (#134, 4K LBA)
                                 STORE_512B_CRASH_RECOVERY_QEMU: PASS (#136)
-    gated in verify_all         step 6e (#137)
-    open: continuity objects over Store v1, Recovery Core (ADR 0006),
-          anything on Machine 1
+    Continuity objects          CONTINUITY_QEMU: PASS (#142, #143;
+                                evidence/continuity_qemu_2026-09-25.md)
+    Recovery Core               RECOVERY_CORE_QEMU: PASS (#144;
+                                evidence/recovery_core_qemu_2026-09-25.md)
+    gated in verify_all         step 6e (#137, #142, #144)
+    open: Machine 1 native storage & continuity (SSD 512B LBA; waits on TRUST-1)
 
 NEXT:
-M4 continuity: Generation + agent identity/state + Cortex checkpoint/WAL +
-artifact references over Store v1, proven by a QEMU cold restart
+M5: Encryption and identity (key hierarchy, sealed keys, encrypted Store v1 objects)
 ```
 
 The first native boot on the NVIDIA DGX Spark ("Machine 1") passed on
@@ -98,7 +100,7 @@ local agent, power off, power on, and it remembers.
 | M1 Emulator boot | [M1](https://github.com/aien-dev/aienos/milestone/2) | [#18](https://github.com/aien-dev/aienos/issues/18) QEMU boot, [#19](https://github.com/aien-dev/aienos/issues/19) CI | QEMU 8.2 and AAVMF chosen as the emulator |
 | M2 Spark bring-up | [M2](https://github.com/aien-dev/aienos/milestone/3) | [#20](https://github.com/aien-dev/aienos/issues/20) pre-exit file, [#21](https://github.com/aien-dev/aienos/issues/21) screen evidence, [#22](https://github.com/aien-dev/aienos/issues/22) UART via SPCR, [#23](https://github.com/aien-dev/aienos/issues/23) GB10 discovery, [#24](https://github.com/aien-dev/aienos/issues/24) USB keyboard, [#25](https://github.com/aien-dev/aienos/issues/25) test rig ([design](docs/HARDWARE_TEST_RIG.md)) | Gate passed: [#10](https://github.com/aien-dev/aienos/pull/10) memory handoff, [#11](https://github.com/aien-dev/aienos/pull/11) GB10 identity, [#13](https://github.com/aien-dev/aienos/pull/13) visible report ([a22b1d8](https://github.com/aien-dev/aienos/commit/a22b1d8)), [#14](https://github.com/aien-dev/aienos/pull/14) CPU topology ([44fcba7](https://github.com/aien-dev/aienos/commit/44fcba7)), [#15](https://github.com/aien-dev/aienos/pull/15) first-boot image ([52109bc](https://github.com/aien-dev/aienos/commit/52109bc)), [#16](https://github.com/aien-dev/aienos/pull/16) evidence ([f376589](https://github.com/aien-dev/aienos/commit/f376589)) |
 | M3 Kernel isolation | [M3](https://github.com/aien-dev/aienos/milestone/4) | none; #26 vectors, #27 MMU, #28 timer and GIC, #29 scheduler, #30 IPC and capabilities all closed | Frame allocator, bounded UART, fault capture used on the first boot; M3 merged as #103 SMMU, #104 EL0, #105 preemption, #106 IPC, #107 ABI freeze plus ADR 0013, #108 MMU and timer reconcile, #109 ABI unification, #110 fail-closed DMA, #111 and #114 device authority, #112 PCI ECAM, #113 strict verify, #115 ABI conformance; receipts in evidence/m3_canonical_receipt.md; verify_all green at 6ef8dde |
-| M4 Storage and recovery | [M4](https://github.com/aien-dev/aienos/milestone/5) | [#31](https://github.com/aien-dev/aienos/issues/31) NVMe and System Store: continuity objects over Store v1 (Generation, agent identity and state, Cortex checkpoint/WAL, artifact references; proven by a QEMU cold restart), Recovery Core deterministic scenarios ([ADR 0006](docs/adr/0006-deterministic-recovery-core-and-offline-operator-authority.md)), and everything on Machine 1 (its SSD is 512-byte LBA: `NATIVE_GB10_STORE_ROOT_ATOMICITY: FAIL`, [evidence](evidence/p3_nvme_atomicity_2026-09-25.md)). `P3_STORE_QEMU` and `P3_STORE_NATIVE` are not claimed | In QEMU: [#129](https://github.com/aien-dev/aienos/pull/129) NVMe read (`QEMU_NVME: PASS`, [evidence](evidence/p3_nvme_read_qemu_2026-09-25.md)), [#132](https://github.com/aien-dev/aienos/pull/132) write and flush (`QEMU_NVME_RW: PASS`, [evidence](evidence/p3_nvme_write_flush_qemu_2026-09-25.md)), [#133](https://github.com/aien-dev/aienos/pull/133) 4K root-write atomicity (`QEMU_NVME_ATOMICITY_4K: PASS`), [#134](https://github.com/aien-dev/aienos/pull/134) Store over NVMe crash/reboot (`STORE_V1_QEMU: PASS`, [evidence](evidence/store_nvme_qemu_2026-09-25.md)), [#136](https://github.com/aien-dev/aienos/pull/136) 512-byte LBA campaign (`STORE_512B_CRASH_RECOVERY_QEMU: PASS`, [evidence](evidence/store_512b_qemu_2026-09-25.md)), all gated by [#137](https://github.com/aien-dev/aienos/pull/137) (`verify_all` step 6e). Host-tested: [#130](https://github.com/aien-dev/aienos/pull/130) Store v1 format frozen in [ADR 0015](docs/adr/0015-system-store-v1-format.md), [#131](https://github.com/aien-dev/aienos/pull/131) mount and transaction engine, [#135](https://github.com/aien-dev/aienos/pull/135) malformed-peer amendment (`STORE_MALFORMED_PEER_RECOVERY: PASS`) |
+| M4 Storage and recovery | [M4](https://github.com/aien-dev/aienos/milestone/5) | Machine 1 native storage & continuity (SSD is 512-byte LBA: `NATIVE_GB10_STORE_ROOT_ATOMICITY: FAIL`, [evidence](evidence/p3_nvme_atomicity_2026-09-25.md); waits on TRUST-1). `P3_STORE_QEMU` and `P3_STORE_NATIVE` are not claimed | In QEMU: [#129](https://github.com/aien-dev/aienos/pull/129) NVMe read (`QEMU_NVME: PASS`), [#132](https://github.com/aien-dev/aienos/pull/132) write and flush (`QEMU_NVME_RW: PASS`), [#133](https://github.com/aien-dev/aienos/pull/133) 4K atomicity (`QEMU_NVME_ATOMICITY_4K: PASS`), [#134](https://github.com/aien-dev/aienos/pull/134) Store 4K crash/reboot (`STORE_V1_QEMU: PASS`), [#136](https://github.com/aien-dev/aienos/pull/136) 512-byte LBA crash/reboot (`STORE_512B_CRASH_RECOVERY_QEMU: PASS`), [#142](https://github.com/aien-dev/aienos/pull/142)/[#143](https://github.com/aien-dev/aienos/pull/143) continuity objects (`CONTINUITY_QEMU: PASS`, [evidence](evidence/continuity_qemu_2026-09-25.md)), [#144](https://github.com/aien-dev/aienos/pull/144) Recovery Core scenarios (`RECOVERY_CORE_QEMU: PASS`, [evidence](evidence/recovery_core_qemu_2026-09-25.md)), all gated by `verify_all` step 6e ([#137](https://github.com/aien-dev/aienos/pull/137), [#142](https://github.com/aien-dev/aienos/pull/142), [#144](https://github.com/aien-dev/aienos/pull/144)). Host-tested: [#130](https://github.com/aien-dev/aienos/pull/130) Store v1 format frozen in [ADR 0015](docs/adr/0015-system-store-v1-format.md), [#131](https://github.com/aien-dev/aienos/pull/131) mount and transaction engine, [#135](https://github.com/aien-dev/aienos/pull/135) malformed-peer amendment (`STORE_MALFORMED_PEER_RECOVERY: PASS`) |
 | M5 Encryption and identity | [M5](https://github.com/aien-dev/aienos/milestone/6) | [#32](https://github.com/aien-dev/aienos/issues/32) | Host-tested agent identity (ADR 0007) |
 | M6 Minimal networking | [M6](https://github.com/aien-dev/aienos/milestone/7) | [#33](https://github.com/aien-dev/aienos/issues/33) | |
 | M7 Native CPU inference | [M7](https://github.com/aien-dev/aienos/milestone/8) | [#34](https://github.com/aien-dev/aienos/issues/34) | Linux baseline recorded in M0 |
@@ -136,10 +138,10 @@ can be built and tested in QEMU on any machine. Good places to start:
   TRUST-1 owner-signed boot chain
   ([procedure](docs/SEED0B_MACHINE1_QUALIFICATION.md)). M3 kernel
   isolation is done in QEMU; see the M3 row above.
-- M4 storage: the native NVMe driver and System Store v1 are qualified in
-  QEMU (see the M4 row above). Next is continuity over Store v1: Generation,
-  agent identity and state, Cortex checkpoint/WAL and artifact references,
-  proven by a QEMU cold restart. All of it runs in QEMU.
+- M4 storage & recovery: the native NVMe driver, System Store v1, continuity
+  objects (same identity and memory across cold restarts), and the deterministic
+  Recovery Core are qualified in QEMU (see the M4 row above). Next is M5
+  encryption and identity.
 
 Work labelled [`needs-hardware`](https://github.com/aien-dev/aienos/labels/needs-hardware)
 runs on Machine 1; maintainers execute it and publish the evidence. Read
diff --git a/docs/MILESTONES.md b/docs/MILESTONES.md
index 085c2069..c67c3af3 100644
--- a/docs/MILESTONES.md
+++ b/docs/MILESTONES.md
@@ -55,8 +55,8 @@ QEMU, or on hardware (Machine 1). A QEMU result is never a hardware result.
 | | Store root-write power-fail atomicity | done in QEMU at 4096-byte LBA; Machine 1 SSD does not meet it | PR #133; `QEMU_NVME_ATOMICITY_4K: PASS`; read-only Identify of the Machine 1 SSD gives `NATIVE_GB10_STORE_ROOT_ATOMICITY: FAIL` (512-byte LBA, one-block guarantee) ([evidence](../evidence/p3_nvme_atomicity_2026-09-25.md)) |
 | | System Store v1 format and engine | done, host-tested | PR #130 format frozen in [ADR 0015](adr/0015-system-store-v1-format.md) with canonical vectors; PR #131 mount and transaction engine; PR #135 malformed-peer amendment (`STORE_MALFORMED_PEER_RECOVERY: PASS`, read-only `DegradedRecovery`) |
 | | Store v1 over NVMe, crash and reboot | done in QEMU | PR #134; `STORE_V1_QEMU: PASS` at 4096-byte LBA ([evidence](../evidence/store_nvme_qemu_2026-09-25.md)); PR #136; `STORE_512B_CRASH_RECOVERY_QEMU: PASS` at 512-byte LBA ([evidence](../evidence/store_512b_qemu_2026-09-25.md)). `P3_STORE_QEMU` and `P3_STORE_NATIVE` are not claimed. PR #137 gates the NVMe read, write/flush, 4K atomicity and both Store-over-NVMe QEMU runs in `scripts/verify_all.sh` step 6e |
-| | Continuity objects over Store v1 (Generation, agent identity and state, Cortex checkpoint/WAL, artifact references) | pending | Host crates exist (`aienos-agent-state`, `aienos-cortex`); not yet persisted over Store v1 |
-| | Recovery Core ([ADR 0006](adr/0006-deterministic-recovery-core-and-offline-operator-authority.md)) | pending | Host-tested kernel module `recovery` exists; the deterministic scenarios (including identity-loss refusal) are not qualified |
+| | Continuity objects over Store v1 (Generation, agent identity and state, Cortex checkpoint/WAL, artifact references) | done in QEMU | PR #142 (continuity objects over Store v1, commit-before-observation, cold restart proof, `CONTINUITY_QEMU: PASS`, [evidence](../evidence/continuity_qemu_2026-09-25.md)); PR #143 (fail-closed checkpoint restore validation, preserves branch identity) |
+| | Recovery Core ([ADR 0006](adr/0006-deterministic-recovery-core-and-offline-operator-authority.md)) | done in QEMU (TEST-ONLY keys) | PR #144; constant-time HMAC offline operator auth, deterministic inspection, authorized peer repair, authorized provisioning, identity-loss refusal (`RECOVERY_CORE_QEMU: PASS`, [evidence](../evidence/recovery_core_qemu_2026-09-25.md)) |
 | | Storage on Machine 1 | pending | Waits for TRUST-1 and a decision on the 512-byte-LBA SSD |
 | **M5** Encryption and identity | | pending | |
 | **M6** Minimal wired networking | DHCP/static IP, ARP/NDP, IP, UDP/TCP, secure control transport | pending | Before the self-maintaining agent; Wi-Fi and Bluetooth later |
@@ -72,26 +72,21 @@ M2                     PASS         first native Spark boot
 Machine 1 core         PASS         core operational baseline recorded (PR #41)
 M3                     PASS (QEMU)  kernel isolation, PRs #103-#115, evidence/m3_canonical_receipt.md; not run on Machine 1
 SEED-0B (Phase 2)      PASS (QEMU)  SEED_0B_QEMU: PASS, TEST-ONLY keys (evidence/seed0b_qemu_2026-09-25.md); P2-9 Machine 1 prepared, not run, blocked on TRUST-1
-M4                     PARTIAL      QEMU: QEMU_NVME, QEMU_NVME_RW, QEMU_NVME_ATOMICITY_4K, STORE_V1_QEMU, STORE_512B_CRASH_RECOVERY_QEMU all PASS (PRs #129, #132-#134, #136; gated by verify_all step 6e, PR #137); continuity objects, Recovery Core and Machine 1 storage pending
+M4                     PASS (QEMU)  QEMU: QEMU_NVME, QEMU_NVME_RW, QEMU_NVME_ATOMICITY_4K, STORE_V1_QEMU, STORE_512B_CRASH_RECOVERY_QEMU, CONTINUITY_QEMU, RECOVERY_CORE_QEMU all PASS (PRs #129, #132-#134, #136, #142-#144; gated by verify_all step 6e); Machine 1 storage pending (waits on TRUST-1)
 GB10 lane              LINUX ONLY   read-only characterization on Machine 1 (PR #125); no native AIENOS GB10 observation
 TRUST-1 Gate 0         DECLARED     baseline recorded (PR #46); independent key access pending attended proof
 TRUST-1 Gate 1         PARTIAL      stick boots on Machine 1 with Secure Boot on, inspects SB/PCRs/disks, returns (items 1-5, 7, 8, 15, 16 PASS; 6 partial); repair tooling added ([procedure](RECOVERY_MEDIA_MACHINE1.md)); items 9-14 + artifact round trip pending
 TRUST-1 Gate 4         TOOLING PASS swTPM + soak + fault injection (PR #48); 100-boot campaign pending
 TRUST-1 path:          Gate 0 key proof (decrypt on MacBook) + Gate 1 items 9-14 -> Gate 2 TPM campaign -> Gate 3 owner keys (runs in parallel with the plan below)
-NEXT:                  M4 continuity objects over Store v1 (plan item 1)
+NEXT:                  M5 key hierarchy and encrypted-store format design (plan item 2)
 ```
 
 **Adopted forward plan, in order:**
 
-1. **M4 continuity:** Generation, LogicalAgentId and agent state, Cortex
-   checkpoint/WAL and artifact references over System Store v1, proven by a
-   QEMU cold restart that returns the same identity and memory.
-2. **Recovery Core:** the deterministic scenarios of
-   [ADR 0006](adr/0006-deterministic-recovery-core-and-offline-operator-authority.md),
-   including refusal on identity loss.
-3. **M5 encryption and identity:** the key hierarchy and encrypted-store format
+1. **M4 continuity & recovery:** COMPLETE in QEMU (PRs #142-#144). Same identity, memory, and lineage survive cold restarts and commit checkpoints; deterministic Recovery Core handles degraded stores, offline operator repair/provisioning, and halts on identity loss without minting.
+2. **M5 encryption and identity:** the key hierarchy and encrypted-store format
    are decided with the operator before implementation.
-4. **Minimal M7 CPU inference:** one model, correct and acceptable;
+3. **Minimal M7 CPU inference:** one model, correct and acceptable;
    optimization waits until after M8.
 5. **M8 persistent agent in QEMU.** M6 networking runs in parallel.
 6. **TRUST-1 Gates 0–9** run in parallel (operator-attended hardware steps).