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

closed derived 515caaf174707184 #380

Imported from GitHub aien-dev/aienux#380 (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 2951ea1593581acc424fa93171f5f53e213ea4bb · Head 9b0c7b2262f19b874eb0e5da46c1a01efd0771b2

Apply it

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

Changes

diff --git a/.crumb b/.crumb
index 0c8f0d64..09731fe1 100644
--- a/.crumb
+++ b/.crumb
@@ -22,13 +22,13 @@
       "children": [
         {
           "digest": "0a64e70b4b3a673fd433dc6404ed4c8fa0218362d90af3f16bd9f23ec4efc3e3",
-          "last_commit": "c9e49a1",
+          "last_commit": "2951ea1",
           "name": "crates",
           "purpose": "Directory crates. Purpose not yet described by a human."
         },
         {
-          "digest": "709a1c3e6f19e1eb6e4152056e08304a1f5db33f8ee96c7231b164e26e322523",
-          "last_commit": "02f8eab",
+          "digest": "edc9efe14efab371f4d937256d062b8e17b4387d11914fced55ccdf365ad85a2",
+          "last_commit": "426c4b5",
           "name": "docs",
           "purpose": "Directory docs. Purpose not yet described by a human."
         },
@@ -39,21 +39,21 @@
           "purpose": "Directory native. Purpose not yet described by a human."
         },
         {
-          "digest": "3acf9d9879c2376b99d9c9c569702af2c32c3bf8141334d034bedbca5599d5b0",
-          "last_commit": "8937980",
+          "digest": "172a8f2b99ec666758dfe56e51df2a79b9aa482154c193e1ce127b192e5fa520",
+          "last_commit": "426c4b5",
           "name": "scripts",
           "purpose": "Directory scripts. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:4ba32523d340e8ae83f0722723782524880eaf2925740d00fccff44999646982",
-      "compiled_at": "2026-10-14T05:42:42Z",
+      "children_root": "sha256:0ac43095d2b89a99e4c1a68fe524e2e5953560027a44adc807b04f7fd553ffa4",
+      "compiled_at": "2026-10-14T11:49:57Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:7826ddc84506de9a4db1bb3d109808230f07886a176334bd7936092f26753122",
+      "digest": "sha256:404b1bed66d33000266f0b0d3508abdc9335c80aeefcb4bd63c613cdb2557313",
       "evidence_files": 156,
       "evidence_root": "sha256:cd53ab119be9de6ce28c4f5949b106c9622f1fe105611de3de21c3bce7932694",
       "files": 3391,
-      "generated_at_commit": "02f8eab6a95907159c13e8b83fc0aaf2c100db11",
-      "source_tree": "sha256:c429aa912fc6f6cf748635c7a9ef7919d2f6723e138fe2cea5d74c28c0fc6b29"
+      "generated_at_commit": "426c4b5170cc0bdcb7b5d8a958508bf58705fe51",
+      "source_tree": "sha256:141a287bfa9195390e5915029bb32eb34982436d9745d8ee72a8c21ad43cf128"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/.crumb b/docs/.crumb
index 20c788b1..714a284b 100644
--- a/docs/.crumb
+++ b/docs/.crumb
@@ -30,14 +30,14 @@
         }
       ],
       "children_root": "sha256:491e93c09b6185b662afda8b29d24bb3ee81bc2aed9009757fdf4674d197be31",
-      "compiled_at": "2026-10-14T05:42:42Z",
+      "compiled_at": "2026-10-14T11:49:57Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:709a1c3e6f19e1eb6e4152056e08304a1f5db33f8ee96c7231b164e26e322523",
+      "digest": "sha256:edc9efe14efab371f4d937256d062b8e17b4387d11914fced55ccdf365ad85a2",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 215,
-      "generated_at_commit": "02f8eab6a95907159c13e8b83fc0aaf2c100db11",
-      "source_tree": "sha256:9509a76df698bf914f50e1df962531e1a112f41a2e3ac5b1947f66186b17138c"
+      "generated_at_commit": "426c4b5170cc0bdcb7b5d8a958508bf58705fe51",
+      "source_tree": "sha256:242122f3539c1120054625e9814c856d66946a0758f326bac5e0210ab67abec1"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/native/PI5-8-OWNER-CEREMONY.md b/docs/native/PI5-8-OWNER-CEREMONY.md
index 1a5475e2..82ef5f3d 100644
--- a/docs/native/PI5-8-OWNER-CEREMONY.md
+++ b/docs/native/PI5-8-OWNER-CEREMONY.md
@@ -1,7 +1,21 @@
-# PI5-8 Q2: the owner-key ceremony (prepared, NOT performed)
-
-Status: prepared and rehearsed with software keys only. No owner key exists. Nothing was written to any YubiKey. The real
-ceremony is run once, by Drake, on the Spark with the network down.
+# PI5-8 Q2: the owner-key ceremony (PERFORMED 2026-10-14)
+
+Status: performed once, by Drake, on 2026-10-14 at 11:45Z. `CEREMONY_REAL: PASS`. The owner key is an Ed25519 key in PIV slot
+9c of YubiKey serial 39017074. Public key `owner_root_ed25519 578ada3cb0c2d154623ac089191023c8ad4bc5e63b8ccd1a38db2d679b8c9e76`,
+owner file sha256 `9d2aabd949c71aa5e3d618e9182af1ce58bb8a2b52e10006caf0af2ceb34d181`. Re-checked afterwards with a separate
+tool: openssl verifies the ceremony signature over the ceremony statement; `ykman piv info` shows no factory PIN, PUK or
+management key (management key AES256), PIN tries 3/3, PUK tries 3/3, slot 9C occupied.
+
+Deviation from the plan below, by Drake's decision: the Spark was ONLINE. It has no screen output (it boots without a display,
+and the graphics driver offers no display connectors), so the ceremony ran over an ssh login from Drake's MacBook on the home
+network, with Drake beside the Spark to touch the key. The script was run as
+`owner_ceremony.sh --real --online-by-owner-decision`. That flag skips only the offline check, prints the network state, and
+writes it into `ceremony-report.txt` (`checks: network offline NOT CHECKED: ONLINE by owner decision ...`). Without the flag,
+`--real` still refuses while the Spark is online. What stays true: the private key was generated inside the YubiKey and never
+left it; the PIN, PUK and management key were typed by Drake and never seen, stored or logged by the script. What is weaker: the
+PIN, PUK and management key crossed the home network inside the encrypted ssh session.
+
+The text below is the plan as prepared before the ceremony.
 
 ## What this is
 
diff --git a/scripts/.crumb b/scripts/.crumb
index 2037d48c..5ca5cfed 100644
--- a/scripts/.crumb
+++ b/scripts/.crumb
@@ -7,14 +7,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-14T02:50:41Z",
+      "compiled_at": "2026-10-14T11:49:57Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:3acf9d9879c2376b99d9c9c569702af2c32c3bf8141334d034bedbca5599d5b0",
+      "digest": "sha256:172a8f2b99ec666758dfe56e51df2a79b9aa482154c193e1ce127b192e5fa520",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 112,
-      "generated_at_commit": "2a5d40fb8714e3917e82215388e08865a579ecbb",
-      "source_tree": "sha256:ca8e818343594e297f2add42a2e75332d5c54147e7f997f61562dd844fd906a9"
+      "generated_at_commit": "426c4b5170cc0bdcb7b5d8a958508bf58705fe51",
+      "source_tree": "sha256:9a6a9875841493c603123e66632b2fc41da523c6d29b61fad4b0e85bbd9d4af6"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/scripts/pi5-8/owner_ceremony.sh b/scripts/pi5-8/owner_ceremony.sh
index 80d0c23f..8ecded06 100755
--- a/scripts/pi5-8/owner_ceremony.sh
+++ b/scripts/pi5-8/owner_ceremony.sh
@@ -3,6 +3,10 @@
 #
 #   owner_ceremony.sh --dry-run [--out DIR]        rehearsal with a SOFTWARE key (openssl). Labelled TEST. Never touches a YubiKey.
 #   owner_ceremony.sh --real [--out DIR]           the ceremony. Writes to the YubiKey. Run it only when the Spark is offline.
+#   owner_ceremony.sh --real --online-by-owner-decision [--out DIR]
+#                                                  the ceremony on a Spark that stays online (owner decision, used 2026-10-14
+#                                                  because the Spark has no screen). Skips only the offline check and records
+#                                                  the network state in ceremony-report.txt.
 #   owner_ceremony.sh --sign-manifest MANIFEST SIGOUT OWNERFILE
 #                                                  after the ceremony: the YubiKey signs the statement that binds MANIFEST
 #                                                  (PIN once, then touch). Checks the signature against OWNERFILE before it finishes.
@@ -27,7 +31,7 @@ PIV="${AIENOS_PIV_TOOL:-${HOME}/.local/yubico-piv-tool/bin/yubico-piv-tool}"
 YKMAN="${AIENOS_YKMAN:-${HOME}/.local/ykman-venv/bin/ykman}"
 export LD_LIBRARY_PATH="$(dirname "$(dirname "${PIV}")")/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
 SLOT=9c
-mode="" out="" tmp=""
+mode="" out="" tmp="" online_ok="" online_state=""
 say() { printf '%s\n' "$*"; }
 die() { printf 'REFUSED: %s\n' "$*" >&2; exit "${2:-1}"; }
 cleanup() { [ -z "${tmp}" ] || rm -rf "${tmp}"; }
@@ -175,7 +179,11 @@ ceremony() { # dry|real
         sw_generate "${out}/slot-9c-public.pem"
     else
         [ -t 0 ] && [ -t 1 ] || die "run this at the keyboard of the Spark (it asks you to type secrets)" 2
-        say "STEP 1: checking the Spark is offline."; require_offline; say "Offline: OK."
+        if [ -n "${online_ok}" ]; then
+            online_state="$(network_state | tr "\n" ";")"
+            say "STEP 1: offline check SKIPPED on purpose (--online-by-owner-decision). The Spark is ONLINE: ${online_state}"
+            say "This is recorded in the ceremony report."
+        else say "STEP 1: checking the Spark is offline."; require_offline; say "Offline: OK."; fi
         say "STEP 2: checking the tools and the YubiKey."; need_tools; yk_info
         read -r -p "Does that serial number match your YubiKey (type YES to go on)? " ans; [ "${ans}" = YES ] || die "stopped by you" 1
         yk_slot_must_be_empty
@@ -201,7 +209,9 @@ ceremony() { # dry|real
         echo "owner_root_ed25519: ${OWNER_HEX}"
         echo "owner_file_sha256: $(cut -d' ' -f1 "${out}/owner-pubkeys.txt.sha256")"
         echo "signed_statement_sha256: $(sha256sum < "${out}/ceremony-statement" | cut -d' ' -f1)"
-        echo "checks: network offline $([ "${kind}" = dry ] && echo n/a || echo ok); owner file accepted by ck_owner_gen; signature verified by in-tree Ed25519 and openssl; changed manifest refused"
+        net="ok"; [ "${kind}" = dry ] && net="n/a"
+        [ -n "${online_ok}" ] && net="NOT CHECKED: ONLINE by owner decision (Drake 2026-10-14, Spark has no screen output, run over a remote login); state: ${online_state}"
+        echo "checks: network offline ${net}; owner file accepted by ck_owner_gen; signature verified by in-tree Ed25519 and openssl; changed manifest refused"
     } > "${out}/ceremony-report.txt"
     say ""
     if [ "${kind}" = dry ]; then say "DRY RUN COMPLETE (TEST). Files in ${out}"; say "CEREMONY_DRY_RUN: PASS"
@@ -229,5 +239,5 @@ case "${1:-}" in
     --sign-manifest) [ $# = 4 ] || die "usage: --sign-manifest MANIFEST SIGOUT OWNERFILE" 2; sign_manifest "$2" "$3" "$4"; exit 0;;
     *) sed -n '2,13p' "$0" | sed 's/^# \{0,1\}//' >&2; exit 2;;
 esac
-while [ $# -gt 0 ]; do case "$1" in --out) out="${2:?--out DIR}"; shift 2;; *) die "unknown argument $1" 2;; esac; done
+while [ $# -gt 0 ]; do case "$1" in --out) out="${2:?--out DIR}"; shift 2;; --online-by-owner-decision) online_ok=1; shift;; *) die "unknown argument $1" 2;; esac; done
 ceremony "${mode}"