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#368 (code only)

closed derived c4e22a0613689d71 #368

Imported from GitHub aien-dev/aienux#368 (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 5429602193cfc5ab79b05c0111b0cbad36e74fed · Head ffa916fbde9268f2400f0f3cea889db232555585

Apply it

git checkout -b patch-c4e22a0613689d71 5429602193cfc5ab79b05c0111b0cbad36e74fed
curl -fsSL https://interplane.io/drakestapleton/aienux/patches/c4e22a0613689d71.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
368
ffa916fbde9268f2400f0f3cea889db232555585
{"kind":"github-import","owner":"aien-dev","repo":"aienux","number":368,"url":"https://github.com/aien-dev/aienux/pull/368","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:17Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index d282b3f4..cac0732c 100644
--- a/.crumb
+++ b/.crumb
@@ -22,38 +22,38 @@
       "children": [
         {
           "digest": "ba157598d0766ef2f9e7fbc3b0333b3fd84fcfc9799497a70d2aa6dd0ea9afb3",
-          "last_commit": "bbf4428",
+          "last_commit": "5429602",
           "name": "crates",
           "purpose": "Directory crates. Purpose not yet described by a human."
         },
         {
-          "digest": "8b4247e1025c916ebcb329bb04e14d48822093b477cc5660d282ee3e5e87ce25",
-          "last_commit": "bbf4428",
+          "digest": "b623dcff39819d5cee38a02dcca6bf81b8808a5113b4b5115d9efabde1f7cea8",
+          "last_commit": "e039083",
           "name": "docs",
           "purpose": "Directory docs. Purpose not yet described by a human."
         },
         {
           "digest": "594ccac341112632f0c0264e2e9ac1dbe7e1a1b5f39db1a1997ae3755355f3f2",
-          "last_commit": "bbf4428",
+          "last_commit": "5429602",
           "name": "native",
           "purpose": "Directory native. Purpose not yet described by a human."
         },
         {
           "digest": "553278293606dd1b57c8dbdb1167c88ae7b877912a26b060fd1cd62acc4e52b7",
-          "last_commit": "bbf4428",
+          "last_commit": "5429602",
           "name": "scripts",
           "purpose": "Directory scripts. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:1a0529f7237503dfcd760caddd67ecf96998eccf528ef6a21c7301fee897bc3b",
-      "compiled_at": "2026-10-13T18:08:10Z",
+      "children_root": "sha256:d6a0cd12d4b1085c762464cf86d81a263f20d62741df3dceccbdee0b57f0ce59",
+      "compiled_at": "2026-10-13T21:03:58Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:49a5ea2a1ce21ed4d7f80e2105ab6f141665c45175226a5cfc5e35cb644cb4c7",
+      "digest": "sha256:096bd5562cb685fea5e60b23ece9d029778fd9762b351b1128da47ad08bdbe86",
       "evidence_files": 156,
       "evidence_root": "sha256:cd53ab119be9de6ce28c4f5949b106c9622f1fe105611de3de21c3bce7932694",
       "files": 3181,
-      "generated_at_commit": "bbf44285da08d70877d4b5d35ec805544bf70f3d",
-      "source_tree": "sha256:60f6b9cfd30953a52ed0eb35dfad743677b3ba68cdb0db7c77055f0ef68c3e8d"
+      "generated_at_commit": "e0390838eacf984a66dfdf4fdf9e8d5dc88bdd70",
+      "source_tree": "sha256:68727e70ea1ec093ed63c1943b94c7d874cededc9bdf0b27624b063eb8d00262"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/.crumb b/docs/.crumb
index cd98245a..57d74ca2 100644
--- a/docs/.crumb
+++ b/docs/.crumb
@@ -30,14 +30,14 @@
         }
       ],
       "children_root": "sha256:c5d7ca9ce0145309c90a439711adcb6dd8e8e40ff48b90455f545e63c05f04c8",
-      "compiled_at": "2026-10-13T18:08:10Z",
+      "compiled_at": "2026-10-13T21:03:58Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:8b4247e1025c916ebcb329bb04e14d48822093b477cc5660d282ee3e5e87ce25",
+      "digest": "sha256:b623dcff39819d5cee38a02dcca6bf81b8808a5113b4b5115d9efabde1f7cea8",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 79,
-      "generated_at_commit": "bbf44285da08d70877d4b5d35ec805544bf70f3d",
-      "source_tree": "sha256:8b10c367780e6bbb7c1bdf741ea114a97b30276741bc37d5b99b013ea7329d71"
+      "generated_at_commit": "e0390838eacf984a66dfdf4fdf9e8d5dc88bdd70",
+      "source_tree": "sha256:e59e5cb87ae38f2afc23020a84349606f61bd0b33877db6e2e6f4283d32d2cae"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/native/PI5-5-CORTEX-RUNS.md b/docs/native/PI5-5-CORTEX-RUNS.md
index 6ae02a86..b7e53486 100644
--- a/docs/native/PI5-5-CORTEX-RUNS.md
+++ b/docs/native/PI5-5-CORTEX-RUNS.md
@@ -44,10 +44,25 @@ malformed layout. Mutation proof (`make -f stage.mk pi5-fact-mutants`): `CK_FACT
 skipped, success still reported) and `CK_FACT_MUTANT_RECALL_BLIND` (recall never reads the journal) both make the
 test fail (mutants killed).
 
-## Pi runs (NOT_RUN)
+## Pi runs (PASS, 2026-10-13, Raspberry Pi 5, main dd99eda, `make pi5-fact`)
 
-F1 remember (boot 1, `FACT.REQ` placed, `UNLOCK.REQ` with secret S), F2 cold-boot recall (power-cycled by the
-run tool, `UNLOCK.REQ` with S, no `FACT.REQ`), F3 wrong secret W (no `FACT.REQ`): the fact is not recalled. The
-exact commands are in the PR description. Limits: the AIENOS partition holds a PRODUCTION-class Store from PI5-4;
-there is no TPM, the secret comes from the card; the anchor shares the disk, so a whole-disk rollback is not
-detectable (needs TPM NV or another external counter).
+Each run is one tryboot of the hub (`~/workspace/pi5/pi5-run-fact.sh`, KLOG=1): a soft reboot into AIENOS and back, NOT a power cut. The Store partition head was zeroed before F1 (the PI5-4 Store's throwaway secret no longer exists). Secrets S and W are throwaway QUALIFICATION ONLY request files, kept outside git and deleted from the card after each run.
+
+F1 remember (UNLOCK.REQ S, FACT.REQ "prefer short notes"):
+```
+store: opened generation=1 boot_count=0 prev_commit=none anchor=valid-resume
+store: committed generation=2 boot_count=1
+fact_stage: remembered id=1 t=1 store_gen=4 bytes=18 text="prefer short notes"
+fact_stage: readback id=1 t=1 store_gen=4 text="prefer short notes"
+```
+F2 recall on the next boot (UNLOCK.REQ S, no FACT.REQ):
+```
+store: opened generation=4 boot_count=1 prev_commit=dd99eda1ec2d3e6b097bfb71a9583b153e3face7 anchor=valid-resume
+fact_stage: recalled id=1 t=1 store_gen=4 text="prefer short notes"
+```
+F3 wrong secret W:
+```
+store: REFUSED proof=keyed step="recovery secret rejected (K_vol unwrap tag failed); disk not opened" rc=-2004 (RecoverySecretRejected); disk left as found, not reformatted
+fact_stage: NOTHING RECALLED: the Store is not open (recovery secret missing or rejected, or the disk was refused); no Cortex was read, nothing was written
+```
+Limits: tryboot reset, not a power cut (a power-cut recall run is owed, done by hand); secret from the card, no TPM; the anchor shares the disk, so a whole-disk rollback is not detectable; single runs.
diff --git a/docs/native/PI5-6-AGENT-RUNS.md b/docs/native/PI5-6-AGENT-RUNS.md
index 979b634c..2cfbe53b 100644
--- a/docs/native/PI5-6-AGENT-RUNS.md
+++ b/docs/native/PI5-6-AGENT-RUNS.md
@@ -77,8 +77,28 @@ model vanished, too many tokens) commit nothing; no reply and no model is NOMODE
 Mutation proof (each TEST-ONLY mutant must make the test fail; all six killed): NO_COMMIT (commit skipped, success reported), RECOVER_BLIND (recovery never reads the Store), NO_GOLDEN_CHECK, NO_PROMPT_CHECK, RECOVER_NO_CHECK, MODEL_FIRST (model touched before the Store check).
 Regressions: `make -C native/kernel test`; `scripts/ck_pi5_build_check.sh`; the QEMU infer gate (`scripts/qemu_ck_infer_test.sh`, PASS, includes the restored prompt-head check) and the QEMU lifecycle gate (`scripts/qemu_ck_lifecycle_test.sh`, the reply object path).
 
-## Pi runs (NOT_RUN)
+## Pi runs (PASS, 2026-10-13, Raspberry Pi 5, main 5429602, `make pi5-agent`)
 
-G1 generate and commit (boot 1: UNLOCK.REQ with secret S, MODEL.MAP placed). G2 cold-boot recovery (the run tool power-cycles the board; UNLOCK.REQ with S, no MODEL.MAP, no generation). G3 negative control (wrong secret W, MODEL.MAP placed so a
-leak into the model path would show): nothing recovered, no `infer: sha256=` line, the AIENOS partition's sha256 identical before and after. The exact commands are in the PR description.
-Limits: PRODUCTION-class Store from PI5-4 but the secret comes from the card, there is no TPM; the anchor shares the disk, so a whole-disk rollback is not detectable; one golden prompt only; speed 1.20 tok/s; single runs.
+Each run is one tryboot of the hub (`~/workspace/pi5/pi5-run.sh`, KLOG=1): a soft reboot, NOT a power cut. Same card and secret S as the PI5-5 runs (Store generation continues). MODEL.MAP was placed for G1 and G3 and removed from the ESP after each (every image's stub reads it).
+
+G1 generate, check golden, commit:
+```
+store: opened generation=5 boot_count=2 prev_commit=dd99eda1ec2d3e6b097bfb71a9583b153e3face7 anchor=valid-resume
+agent: generated tokens=8 prompt_ids=17 steps=25 us=16946950 prompt_head=128000,128006,882,128007
+agent: reply store_gen=7 object_sha256=07d15b3d26726090494b0d033f6a955d88e4b9a1ae4322130459297db952989c model_sha256=3f5a22426976ab26cfe84dba63c1d08391717abb1af893e10f1b2968d862dcc1 tokens=8 ids=791 6864 315 9822 374 12366 13 128009 text="The capital of France is Paris."
+agent: committed store_gen=7
+AIENOS_PI5_AGENT: GENERATED PASS
+```
+G2 recover on the next boot (no MODEL.MAP; no `model:` or `infer:` line in the log):
+```
+store: opened generation=7 boot_count=3 prev_commit=5429602193cfc5ab79b05c0111b0cbad36e74fed anchor=valid-resume
+agent: reply store_gen=7 object_sha256=07d15b3d26726090494b0d033f6a955d88e4b9a1ae4322130459297db952989c model_sha256=3f5a22426976ab26cfe84dba63c1d08391717abb1af893e10f1b2968d862dcc1 tokens=8 ids=791 6864 315 9822 374 12366 13 128009 text="The capital of France is Paris."
+AIENOS_PI5_AGENT: RECOVERED PASS
+```
+G3 wrong secret W (MODEL.MAP placed; the UEFI stub still read the model bytes before the kernel ran, the kernel never hashed or used them: no `infer: sha256=` line):
+```
+store: REFUSED proof=keyed step="recovery secret rejected (K_vol unwrap tag failed); disk not opened" rc=-2004 (RecoverySecretRejected); disk left as found, not reformatted
+agent: NOTHING RECOVERED: the Store is not open (recovery secret missing or rejected, or the disk was refused); the model was not read or hashed, nothing was generated, nothing was written
+AIENOS_PI5_AGENT: NOSTORE
+```
+Limits: tryboot reset, not a power cut; the AIENOS partition was not hashed around G3 (PI5-4 run C proved the same refusal path leaves the partition byte-identical); one golden prompt; 1.20 tok/s; single runs; secret from the card, no TPM.