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

closed derived 77cc3ad0ebfe160b #373

Imported from GitHub aien-dev/aienux#373 (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 e9d39a960892d7caaf03a82ff3b99923876ebd9c · Head 03af7b8341c5ca133066af9edb17116df7257f6c

Apply it

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

Changes

diff --git a/.crumb b/.crumb
index 6f933285..a8b4bdb7 100644
--- a/.crumb
+++ b/.crumb
@@ -22,38 +22,38 @@
       "children": [
         {
           "digest": "f0423e1cf49107bf21cebbb87dc6e457aab99782ce8de074b67e657b69577354",
-          "last_commit": "e673bfb",
+          "last_commit": "e9d39a9",
           "name": "crates",
           "purpose": "Directory crates. Purpose not yet described by a human."
         },
         {
-          "digest": "e972155c7fe8802cecb2d0eb0064267c2e1bc60b13be45736c1a88fa0d12bd9d",
-          "last_commit": "a3e9c23",
+          "digest": "ca0dd7ea3a0dc128f4d33b7a00146ba4f9bce2ef19f970b188a4e297834ad10f",
+          "last_commit": "9ffc6b7",
           "name": "docs",
           "purpose": "Directory docs. Purpose not yet described by a human."
         },
         {
           "digest": "dc8479ff588f0d10dbfd65003c236db4cdeb9718a60d4fbf98822da677d908ff",
-          "last_commit": "e673bfb",
+          "last_commit": "e9d39a9",
           "name": "native",
           "purpose": "Directory native. Purpose not yet described by a human."
         },
         {
           "digest": "f573c48fba3478c69f1daac51db9427a959b611059ca020cd5eaa8c94685d883",
-          "last_commit": "e673bfb",
+          "last_commit": "e9d39a9",
           "name": "scripts",
           "purpose": "Directory scripts. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:77bca34ed477aafdcaed7d355c5617f3378552a11f1df29f0929ac83977e61ee",
-      "compiled_at": "2026-10-14T00:20:37Z",
+      "children_root": "sha256:aa32095175231f54df14cb1ef3b6a63b5148d15fd9bed9ec266f89587affd46c",
+      "compiled_at": "2026-10-14T01:05:33Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:444c8e8b6863adfeae1b4a9da31d2d27693a20cd971a514749aec6926a78e4d4",
+      "digest": "sha256:5fa7e374b39936a3e171f0250ae4574f2184dcf9cefe80d37b0f8607509fadde",
       "evidence_files": 156,
       "evidence_root": "sha256:cd53ab119be9de6ce28c4f5949b106c9622f1fe105611de3de21c3bce7932694",
-      "files": 3223,
-      "generated_at_commit": "a3e9c23dfc5b0ed0f9701132904b28edac14b71f",
-      "source_tree": "sha256:7901d2b70d100b61aaccea65d259b4c8745b45e98ee11c72330ce0354c3f121d"
+      "files": 3224,
+      "generated_at_commit": "9ffc6b7d779fbb0568af4af55b13a80c21923552",
+      "source_tree": "sha256:3c63e40d51e883a2abc8bd5b870eb334737da1118f0aba56a3cba7d6255a4c07"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/.crumb b/docs/.crumb
index 7ab6b3dc..a5587785 100644
--- a/docs/.crumb
+++ b/docs/.crumb
@@ -30,14 +30,14 @@
         }
       ],
       "children_root": "sha256:c5d7ca9ce0145309c90a439711adcb6dd8e8e40ff48b90455f545e63c05f04c8",
-      "compiled_at": "2026-10-14T00:20:37Z",
+      "compiled_at": "2026-10-14T01:05:33Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:e972155c7fe8802cecb2d0eb0064267c2e1bc60b13be45736c1a88fa0d12bd9d",
+      "digest": "sha256:ca0dd7ea3a0dc128f4d33b7a00146ba4f9bce2ef19f970b188a4e297834ad10f",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "files": 82,
-      "generated_at_commit": "a3e9c23dfc5b0ed0f9701132904b28edac14b71f",
-      "source_tree": "sha256:fed2f6b0afe5a7dadd36e87ab29ab36391b768f370313d55eaa8d6b94dcdddcc"
+      "files": 83,
+      "generated_at_commit": "9ffc6b7d779fbb0568af4af55b13a80c21923552",
+      "source_tree": "sha256:3621b6819ea170532fee0d36f0cbc9cba9059e1895fa9c98c1574c254e2bd1f5"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/native/PI5-7-LIFECYCLE-RUNS.md b/docs/native/PI5-7-LIFECYCLE-RUNS.md
new file mode 100644
index 00000000..8eb63127
--- /dev/null
+++ b/docs/native/PI5-7-LIFECYCLE-RUNS.md
@@ -0,0 +1,67 @@
+# PI5-7 agent runtime on the Raspberry Pi 5: run evidence
+
+QUALIFICATION ONLY. Image `make pi5-lifecycle` (CK_PI5_LIFECYCLE=1, PI5-7 cut 2, #370): the resident agent
+lifecycle runs on the Pi, driven by a command script on the card (`\EFI\AIENOS\AGENT.CMD`). The Store secret
+comes from the card `UNLOCK.REQ` (a throwaway qualification secret, never committed). All four runs used the
+same image (EFI sha256 `282507650d85d5e38a55f50663efc004a9aa1df9522fe01394516ccd43174641`, built from the #370
+branch on top of `073554361dd5`). Harness: `pi5-run-lifecycle.sh` (pi5-run.sh plus `AGENT_CMD=`), KLOG=1.
+
+| Run | Restart before it | Secret | Model | Result |
+|---|---|---|---|---|
+| L1 | tryboot soft reset | right | loaded (MODEL.MAP) | preference stored gen 11; reply approved and committed gen 12 id `e69ceb6d` |
+| L2 | tryboot soft reset | right | none | recall gen 12 id `e69ceb6d` 356 bytes; preference "short notes"; continuity resumed incarnation 2 |
+| L3 | tryboot soft reset | wrong | none | Store refused (RecoverySecretRejected), disk left as found; every memory verb refused |
+| P1 | **full power cut**: clean OS shutdown, power unplugged 10 s, cold boot (Linux uptime 6 min when the run started) | right | none | recall gen 12 id `e69ceb6d` 356 bytes; preference "short notes"; continuity resumed incarnation 3 |
+
+The full `recall gen=12` line (stored prompt, reply, context digest, model digest) has the same sha256
+(`8c82ce42ea0f33f9...`) in L1, L2 and P1: what the kernel prints from the persisted object is identical after a soft reset and after a
+real power loss. The generation steps are consistent with each successful boot committing two Store records (boot count and
+continuity incarnation; inferred, not logged separately): the
+Store opened at generation 12 in L2 and at 14 in P1 (L3 wrote nothing), while the reply object stays at generation 12.
+
+## Kernel log lines (verbatim, long lines cut at 230 characters)
+
+```
+--- l1
+store: opened generation=8 boot_count=4 prev_commit=5429602193cfc5ab79b05c0111b0cbad36e74fed anchor=valid-resume
+lifecycle: preferred id=2 t=2 store_gen=11 bytes=11 permitted=context agent=937b377ef64bae1f safe=yes text="short notes"
+lifecycle: state=ready store=open pending=- requests=2 continuity=provisioned agent=937b377ef64bae1f incarnation=1 subject_seq=1
+lifecycle: recall gen=7 kind=reply id=748380ef bytes=209 text="aienos.reply.v1?prompt: What is the capital of France??reply: The capital of France is Paris.?model: 3f5a22426976ab26cfe84dba63c1d08391717abb1af893e10f1b2968d862dcc1?i
+lifecycle: context memory=used selected=1 eligible=1 omitted=0 legacy=1 unpermitted=0 unsafe=0 other=0 records=2 prompt_bytes=116 limit=752 sha256=9de8ebddce5c8a3e agent=937b377ef64bae1f
+lifecycle: reply pending state=serve proposed="reply: The capital of France is Paris." (approve | deny | cancel)
+lifecycle: approve committed gen=12 id=e69ceb6d state=ready
+lifecycle: recall gen=12 kind=reply id=e69ceb6d bytes=356 text="aienos.reply.v1?prompt: What is the capital of France??reply: The capital of France is Paris.?context: sha256=9de8ebddce5c8a3e972fbf582776a2ed64d5f066f7b6bb7979c0ba7e
+lifecycle: preference id=2 t=2 store_gen=11 agent=937b377ef64bae1f permitted=context text="short notes"
+lifecycle: evidence requests=8 refused=0 invalid=0 tasks=0 approved=1 denied=0 cancelled=0 overlong=0 last_commit_gen=12 last_id=e69ceb6d prompts=1 replies=1 gen_cancelled=0 gen_failed=0 recalls=2 inference=resident remembers=0 fa
+--- l2
+store: opened generation=12 boot_count=5 prev_commit=073554361dd508f809c4b474ad66579104bd633f anchor=valid-resume
+lifecycle: state=ready store=open pending=- requests=1 continuity=resumed agent=937b377ef64bae1f incarnation=2 subject_seq=1
+lifecycle: recall gen=12 kind=reply id=e69ceb6d bytes=356 text="aienos.reply.v1?prompt: What is the capital of France??reply: The capital of France is Paris.?context: sha256=9de8ebddce5c8a3e972fbf582776a2ed64d5f066f7b6bb7979c0ba7e
+lifecycle: preference id=2 t=2 store_gen=11 agent=937b377ef64bae1f permitted=context text="short notes"
+lifecycle: evidence requests=4 refused=0 invalid=0 tasks=0 approved=0 denied=0 cancelled=0 overlong=0 last_commit_gen=0 last_id=00000000 prompts=0 replies=0 gen_cancelled=0 gen_failed=0 recalls=1 inference=none remembers=0 facts=1
+--- l3
+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
+lifecycle: REFUSED verb=prefer state=locked reason="locked: no production Store"
+lifecycle: state=locked store=locked pending=- requests=2 continuity=none
+lifecycle: REFUSED verb=recall state=locked reason="locked: no production Store"
+lifecycle: REFUSED verb=prompt state=locked reason="locked: no production Store"
+lifecycle: REFUSED verb=approve state=locked reason="nothing pending"
+lifecycle: REFUSED verb=recall state=locked reason="locked: no production Store"
+lifecycle: REFUSED verb=facts state=locked reason="locked: no production Store"
+lifecycle: evidence requests=8 refused=6 invalid=0 tasks=0 approved=0 denied=0 cancelled=0 overlong=0 last_commit_gen=0 last_id=00000000 prompts=0 replies=0 gen_cancelled=0 gen_failed=0 recalls=0 inference=none remembers=0 facts=0
+--- powercut
+store: opened generation=14 boot_count=6 prev_commit=073554361dd508f809c4b474ad66579104bd633f anchor=valid-resume
+lifecycle: state=ready store=open pending=- requests=1 continuity=resumed agent=937b377ef64bae1f incarnation=3 subject_seq=1
+lifecycle: recall gen=12 kind=reply id=e69ceb6d bytes=356 text="aienos.reply.v1?prompt: What is the capital of France??reply: The capital of France is Paris.?context: sha256=9de8ebddce5c8a3e972fbf582776a2ed64d5f066f7b6bb7979c0ba7e
+lifecycle: preference id=2 t=2 store_gen=11 agent=937b377ef64bae1f permitted=context text="short notes"
+lifecycle: evidence requests=4 refused=0 invalid=0 tasks=0 approved=0 denied=0 cancelled=0 overlong=0 last_commit_gen=0 last_id=00000000 prompts=0 replies=0 gen_cancelled=0 gen_failed=0 recalls=1 inference=none remembers=0 facts=1
+```
+
+Raw logs: `~/workspace/pi5-runs/pi5-lifecycle-{l1,l2,l3,powercut}/kernel.log` on the Spark.
+
+## Not verified
+
+- The image was built before #370 was rebased onto #369; the rebased image was not re-run on the Pi.
+- P1 is one power cut while the Pi was idle (after a clean shutdown). A power cut in the middle of a Store
+  commit is covered only by the QEMU crash gates, not on hardware.
+- L3 had no model loaded, so it does not exercise a refusal on the inference path.