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

closed derived 6cd1342ff7a4bc48 #500

Imported from GitHub aien-dev/aienux#500 (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 c63acd12a47d883a8d727b90662137f6aaafe2e7 · Head 1b608a328e745098fe6611602d0a0af58287e8a0

Fetch it

A git bundle of the pull request's head, 4393 bytes.

curl -fsSL https://interplane.io/drakestapleton/aienux/patches/6cd1342ff7a4bc48.bundle -o 6cd1342ff7a4bc48.bundle
git fetch 6cd1342ff7a4bc48.bundle refs/pull/500/head

Raw bundle · 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
500
1b608a328e745098fe6611602d0a0af58287e8a0
{"kind":"github-import","owner":"aien-dev","repo":"aienux","number":500,"url":"https://github.com/aien-dev/aienux/pull/500","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:36Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 2147e671..fee89334 100644
--- a/.crumb
+++ b/.crumb
@@ -33,8 +33,8 @@
           "purpose": "Directory docs. Purpose not yet described by a human."
         },
         {
-          "digest": "ddeca3b970dd25d09570df2b2f904589480bd9dff8a0523e7a1b56eac10c20d5",
-          "last_commit": "9514b124",
+          "digest": "9918c4b413351b6d02dad81db2180d9872efeaf37820597b287f54f1dfbdf8c1",
+          "last_commit": "1942af09",
           "name": "native",
           "purpose": "Directory native. Purpose not yet described by a human."
         },
@@ -51,15 +51,15 @@
           "purpose": "First-party host artifact preparation tools"
         }
       ],
-      "children_root": "sha256:50971cbb3a5c49aad979bb7ee1061af0a014bce69cdd2a07de061eed2e4056c7",
-      "compiled_at": "2026-11-05T22:53:57Z",
+      "children_root": "sha256:27da27d62ef348f4add42098b1a4a123b7b94f34ab0fd3a2a18535a66a666af4",
+      "compiled_at": "2026-11-05T23:26:53Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:75a27fa4b77d7a9623070a36c15eaf484bd5c3be9c426bff7d114c7747235618",
+      "digest": "sha256:6893c6182fa1e747cdfae4d700e7f167786acc089ca3ad627fac290655182dc0",
       "evidence_files": 274,
       "evidence_root": "sha256:af014a4ed8f6fe759fc5809807fb47578d3410811b522d9f65d749382b029802",
       "files": 3776,
-      "generated_at_commit": "9514b124626e4c063bc7e96cf7faf0babb8cbcf5",
-      "source_tree": "sha256:a985d1d380c3b31e1f1a6fb7f48387facbbc08a4a1a5e68a74a21e9455767611"
+      "generated_at_commit": "1942af09630a80d5bca743a155405fb525cb4a6d",
+      "source_tree": "sha256:6247f4b3aafc9c03f01c2e214c509965c1746e65a408bfca25220a55186cfa3d"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/native/.crumb b/native/.crumb
index b0440e0d..38a6fa89 100644
--- a/native/.crumb
+++ b/native/.crumb
@@ -79,8 +79,8 @@
           "purpose": "Directory native/disk. Purpose not yet described by a human."
         },
         {
-          "digest": "a89faea3222761b7e0817ca5d98a3609803e405b4dcfa880facf80da68966a84",
-          "last_commit": "9514b124",
+          "digest": "41683b31b9cbe4939abc057544901d81f461b67067162859575ffcec9abf9b54",
+          "last_commit": "1942af09",
           "name": "kernel",
           "purpose": "Directory native/kernel. Purpose not yet described by a human."
         },
@@ -115,15 +115,15 @@
           "purpose": "Directory native/store. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:d8b3d6b0ae076f6082e7b26e1012e0540b8e4feaef482b0600145876752d4de6",
-      "compiled_at": "2026-11-05T22:53:57Z",
+      "children_root": "sha256:ae1ed827d05e93a93b82985cf65110475491695a572fd866de02e87144ea63a3",
+      "compiled_at": "2026-11-05T23:26:53Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:ddeca3b970dd25d09570df2b2f904589480bd9dff8a0523e7a1b56eac10c20d5",
+      "digest": "sha256:9918c4b413351b6d02dad81db2180d9872efeaf37820597b287f54f1dfbdf8c1",
       "evidence_files": 24,
       "evidence_root": "sha256:ecc7ccf2e924c221a5bac1d91e23b13d8f3c8d78c2a893a882ed7ca5e88d855d",
       "files": 776,
-      "generated_at_commit": "9514b124626e4c063bc7e96cf7faf0babb8cbcf5",
-      "source_tree": "sha256:7aae030c16056181ca325c1da23350c78ad03e0aa281a92be69e3e22dbfba634"
+      "generated_at_commit": "1942af09630a80d5bca743a155405fb525cb4a6d",
+      "source_tree": "sha256:cc15ec6de14cdd68534635155cbde3771c8c9dc37ce2fdd09bd14b94249c8c56"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/native/kernel/.crumb b/native/kernel/.crumb
index 4149ee05..ae652326 100644
--- a/native/kernel/.crumb
+++ b/native/kernel/.crumb
@@ -94,20 +94,20 @@
         },
         {
           "digest": "e3d5d3207f53ae5e7bec4b8bb2f95b64008fbec0b1150ca51b4403b12b4c91f4",
-          "last_commit": "cf8ffa9a",
+          "last_commit": "c63acd12",
           "name": "tools",
           "purpose": "Hosted (Linux-built) checkers for the native kernel, run by `make -C native/kernel test`; nothin"
         }
       ],
       "children_root": "sha256:0f1092440229ff0834e5fbe28b8ede7c65da44054cc430dbc9e3a5634ae88247",
-      "compiled_at": "2026-11-05T22:53:57Z",
+      "compiled_at": "2026-11-05T23:26:53Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:a89faea3222761b7e0817ca5d98a3609803e405b4dcfa880facf80da68966a84",
+      "digest": "sha256:41683b31b9cbe4939abc057544901d81f461b67067162859575ffcec9abf9b54",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 520,
-      "generated_at_commit": "9514b124626e4c063bc7e96cf7faf0babb8cbcf5",
-      "source_tree": "sha256:25539bb35180dbe8423ee4b61170ddb67903af3933d7de26a44b15d618a8d4b2"
+      "generated_at_commit": "1942af09630a80d5bca743a155405fb525cb4a6d",
+      "source_tree": "sha256:e4f3b916221b2b61e97a524977b7e8b03674de634d7ef1d61007afe99a1a9436"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/native/kernel/README.md b/native/kernel/README.md
index 18584762..c84e306e 100644
--- a/native/kernel/README.md
+++ b/native/kernel/README.md
@@ -382,9 +382,20 @@ disks are up an audit of every page table leaf must find nothing writable and
 executable, only the code executable, and NXE and WP on every core
 (`wx_audit: ok ...`). The QEMU test also builds two TEST-ONLY mutants
 (`make imac-kernel IMACKERN_WX_MUTANT=no_nx` or `=text_writable`) and fails
-unless their probes panic. W^X is not process isolation: everything here still
-runs in ring 0 in one address space, any kernel code can change the page
-tables, and learned or generated code must never be given kernel authority.
+unless their probes panic. None of this holds from the first instruction: W^X,
+NX and WP are enforced only once `mm_build` (`x86/kmain_x86.c`) sets EFER.NXE,
+loads the kernel's own tables into CR3 and sets CR0.WP. Until that CR3 load the
+kernel runs on the firmware's page tables, which may map memory writable and
+executable at once. That stretch runs the relocation and bss clearing in
+`../boot/efi_entry_x86_64.S`, the UEFI stub `x86/efi_x86.c` (RSDP and GOP
+lookup, the final memory map, ExitBootServices), and then in
+`ck_x86_kernel_entry` `tables_load` (GDT, TSS, IDT), the CHANDOF3 handoff check
+(`core/handoff_check.c`) and `mm_build` itself. The #426 review found no
+untrusted input handled in that stretch. What permissions Apple's firmware
+tables really give is not checked on the iMac. W^X is not process isolation:
+everything here still runs in ring 0 in one address space, any kernel code can
+change the page tables, and learned or generated code must never be given
+kernel authority.
 QEMU only; not yet run on the iMac.
 
 The Spark's Realtek RTL8127 10 GbE (10ec:8127, segment 7) has a driver core in