From 09f577002480a0c969fdb803388e88108b1886a1 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Mon, 12 Oct 2026 13:14:48 -0500 Subject: [PATCH 1/2] docs(adr): ADR 0037 PROPOSED, who signs native slot images (Owner Root vs Release Signer) Addendum to ADR 0024 Q3 for native v1 P11 (gate N7). The TRUST-1 roles are defined (Q6, trust1_key_ceremony.sh) but slot format v1 trusts the Owner Root directly and OWNER_KEY_CEREMONY.md records the question as open. This ADR lays out options A (Owner Root direct, today), B (root-signed authority record delegating to a Release Signer) and C (both keys baked in the loader), proposes B as the target with A kept for v1, and asks Drake one question. Nothing decided; code unchanged. Refs aien-dev/aienos#333, #190 Co-Authored-By: Claude Opus 5.5 Co-authored-by: Drake Stapleton --- .../0037-native-image-slot-signing-roles.md | 41 +++++++++++++++++++ docs/adr/README.md | 1 + 2 files changed, 42 insertions(+) create mode 100644 docs/adr/0037-native-image-slot-signing-roles.md diff --git a/docs/adr/0037-native-image-slot-signing-roles.md b/docs/adr/0037-native-image-slot-signing-roles.md new file mode 100644 index 0000000..6cc6d6a --- /dev/null +++ b/docs/adr/0037-native-image-slot-signing-roles.md @@ -0,0 +1,41 @@ +# ADR 0037: Who signs native slot images: Owner Root directly, or a Release Signer it delegates to + +**Status:** PROPOSED (2026-10-12). Not decided. Written by the P11 recovery worker (w-recovery, Claude) for Drake Stapleton, as the handoff "DRAKE DECISIONS" of 2026-10-12 asked: if the Owner Root versus Release Signer contract is undefined, propose it here as a reviewed change rather than decide it in code. Until Drake decides, the code keeps doing what it does today (Option A below). +**Addendum to:** ADR 0024 Q3 (boot), as amended by the native v1 addendum of `CURRENT_EXECUTION_PLAN.md` (R8, N7: the slot loader approved on 2026-10-12 for "signed A/B image selection, boot-success tracking, and rollback" only). +**Related:** aien-architecture#190 (native v1 plan), aienos#333 (P11 cuts 2b, 3, 4), aienos#35. Cite aienos ADRs as OS-00nn. +**Evidence base:** aienos `main` at aa76c36 (paths relative to aienos). + +--- + +## What is defined today + +- **The roles exist.** TRUST-1 Q6 (`docs/TRUST-1-IMPLEMENTATION-PLAN.md` line 115): "Root never on Spark, never routine; Boot Signer signs small stable loader (firmware trusts its cert); Release Signer signs kernel/manifests under loader (replaceable via root-signed manifest; compromise never requires firmware-root replacement)". +- **The ceremony makes all four keys.** `scripts/trust1_key_ceremony.sh` generates Owner Root, Boot Signer, Release Signer and Operator Approval and an authority manifest signed by the Owner Root; its `role.release_signer.duty` is "signs kernels and manifests under the loader; replaceable by a root-signed manifest". `scripts/trust1_gate5_policy_sim.sh` models the Owner Root to Release Signer delegation. `scripts/trust1_key_ceremony.sh rotate release_signer add|revoke` already rotates the Release Signer as new root-signed generations. +- **The slot format trusts the Owner Root directly.** `native/boot/slot_format.h` (format v1): the slot manifest "is signed by the Owner Root Ed25519 key"; SLOTLDR.EFI verifies it against public keys baked in at build time (`CK_SLOT_KEYS`). There is no authority manifest in the slot path. +- **The gap is recorded, not decided.** `docs/OWNER_KEY_CEREMONY.md` lines 65-71: "Which key signs routine releases is a later design decision; this ceremony creates both, so either answer works without a second ceremony." +- Owner decision of 2026-10-12: the owner key ceremony happens on the MacBook with Drake present; no real key is generated on the Spark. + +So the roles are defined; how the slot loader would verify a delegated Release Signer is not. Format v1 contradicts Q6's "Root never routine" for every release. + +## Options + +**A. Owner Root signs every slot manifest (today).** +What changes: nothing. Upside: one key, one signature, no new format, already gated in QEMU (slot loader gate rows 186-197). Downside: the Owner Root comes out of its offline storage for every release, which TRUST-1 Q6 says it must not do routinely; a compromised Owner Root cannot be replaced without re-baking every loader. Reversible: yes (Option B is additive). + +**B. Owner Root delegates to a Release Signer through a root-signed authority record (TRUST-1 as written).** +What changes: the loader keeps only Owner Root public keys. The slots partition carries one more unit, an authority record signed by the Owner Root: authority generation, the Release Signer public key(s), and a minimum authority generation. Slot manifests (format v2) are signed by a Release Signer named in the newest valid authority record whose generation is at or above the floor kept in the control record. Revoking a Release Signer is a new root-signed authority record with a higher generation; the Owner Root is used only for that. Upside: matches Q6; releases never need the Owner Root. Downside: a new signed record, a format v2, and new loader and gate code (new negative controls: authority signed by the wrong key, authority generation rollback, manifest signed by a revoked signer). Reversible: yes, while v1 images stay bootable under a policy that still accepts them. + +**C. Bake both Owner Root and Release Signer public keys into SLOTLDR.EFI.** +What changes: `CK_SLOT_KEYS` lists both. Upside: no new format. Downside: replacing a compromised Release Signer means rebuilding and re-signing the loader (Boot Signer) and touching the ESP, which is exactly what Q6 says a Release Signer compromise must never require. Not recommended. + +## Proposal + +Adopt **B** as the target, implemented as its own small cut after N7's install, update and recovery paths are proven with Option A, and keep **A** for native v1 until then, recorded as a known deviation from TRUST-1 Q6 ("Root never routine"). The owner key ceremony is unaffected: it already creates the Release Signer, so neither option needs a second ceremony. + +## What Drake is asked + +One question: should native v1 ship with the Owner Root signing every slot image (A, simplest, the Owner Root is used offline once per release), or should the delegated Release Signer of B be built before the first release? + +## Not in scope + +Key rotation mechanics beyond what B needs, the Boot Signer and firmware db (TRUST-1 Q6, unchanged), TPM, networking. Hardware NOT_RUN; nothing here was run on a physical machine. diff --git a/docs/adr/README.md b/docs/adr/README.md index 9bf4f7d..a35962d 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -46,3 +46,4 @@ Current ADRs: - [0034 - Physical-Form Realization IR: substrate-neutral realization form below Omega meaning and beside substrate lowering; LINEAR_OPERATOR first cut, ENERGY_FUNCTIONAL specified only](0034-physical-form-realization-ir.md) - Accepted by the orchestrator under operator delegation of 2026-10-04 (Drake: "make the calls yourself"); operator may revoke; extends ADR 0018 / 0019 - [0035 - Persistent Cognitive Entity Boundary (ALLEN): AIEN is the organism, ALLEN the durable subject it sustains; one continuity object kind (aienos ADR 0018), three bindings in omega, six host gates incl. negative control](0035-persistent-cognitive-entity-boundary-allen.md) - ACCEPTED 2026-10-06 by the operator; creed and ARCHITECTURE.md edits applied; aienos#259, omega#276; native genesis and QEMU cold restart TESTED (QEMU) in aienos#260, hardware NOT_RUN - [0036 - Release v1 memory owner (lane L3): aien-allen-memory under an engaged ALLEN identity; remember and recall refuse when not engaged; every declared E2E run engages a fixture subject](0036-release-v1-memory-owner.md) - ACCEPTED 2026-10-10 (engineering decision under Drake directive; aien-architecture#197, aien-sovereign-core#386) +- [0037 - Who signs native slot images: Owner Root directly, or a Release Signer it delegates to](0037-native-image-slot-signing-roles.md) - PROPOSED 2026-10-12 (addendum to 0024 Q3; aienos#333, aien-architecture#190; not decided) From f95638c9d75898015920479f34a41e804f4a6600 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Mon, 12 Oct 2026 13:14:54 -0500 Subject: [PATCH 2/2] crumb: compile for ADR 0037 Co-Authored-By: Claude Opus 5.5 Co-authored-by: Drake Stapleton --- .crumb | 16 ++++++++-------- docs/.crumb | 16 ++++++++-------- docs/adr/.crumb | 10 +++++----- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.crumb b/.crumb index e935d21..5e91775 100644 --- a/.crumb +++ b/.crumb @@ -21,8 +21,8 @@ "generated": { "children": [ { - "digest": "7ffdf9c89eb400d8df8a4b17b24c29aaf7bf7c87b67e4bc9a9251726fd98fa33", - "last_commit": "6f69ba6", + "digest": "f007feeb65410f490853822dbf22b17b890d41295cd007254366e66d93722b60", + "last_commit": "09f5770", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, @@ -45,15 +45,15 @@ "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:8b17c01896a208e4f472f356584b615ac4eb940c4082b657cb88b2134e13e4f8", - "compiled_at": "2026-10-12T16:08:10Z", + "children_root": "sha256:1d04f73ac1723f4d2fc744ca87070da194f8ba7bfbe752b1266c10289fc00580", + "compiled_at": "2026-10-12T18:14:49Z", "compiler": "crumb-compile/1", - "digest": "sha256:24fa48c8654d658242d3669760259f4e2a00d623c25b45b7f5a3e92d590cc1c1", + "digest": "sha256:adcce81e45dc0aacfcebff2aa28f4aced75d69f2626e398ff70e6316698dd530", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 307, - "generated_at_commit": "6f69ba6a382fa106ead9bdd50ebf328ee2743545", - "source_tree": "sha256:518ad92725e942629206052a6d62ad342b4035482fc0638ebcb5cf4ee32e21cd" + "files": 308, + "generated_at_commit": "09f577002480a0c969fdb803388e88108b1886a1", + "source_tree": "sha256:aa9a62fbf4dc3f0cb8a33d6e31e55b696e90ef262106fa98240fe20348e6c9bb" }, "owner_lane": "", "provenance": { diff --git a/docs/.crumb b/docs/.crumb index bdfa27f..85d5298 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -37,8 +37,8 @@ "generated": { "children": [ { - "digest": "a267b4219ee3550bc8832fd07fdcb0baf36cf13f3e447356012e99898d2af8d0", - "last_commit": "f05541b", + "digest": "4fb903f58eef35b8168fd714fe53d335f8886d6483b82405183e899a59e2f705", + "last_commit": "09f5770", "name": "adr", "purpose": "Directory docs/adr. Purpose not yet described by a human." }, @@ -79,15 +79,15 @@ "purpose": "Directory docs/specs. Purpose not yet described by a human." } ], - "children_root": "sha256:ca7f28baffe004ea406f1f505489759f6557abfeaa8327aa4d170e18b2e8dbb8", - "compiled_at": "2026-10-12T16:08:10Z", + "children_root": "sha256:a8734fb21e63762e0a4a91add465488a1b581f7badba382f08617b266960b39e", + "compiled_at": "2026-10-12T18:14:49Z", "compiler": "crumb-compile/1", - "digest": "sha256:7ffdf9c89eb400d8df8a4b17b24c29aaf7bf7c87b67e4bc9a9251726fd98fa33", + "digest": "sha256:f007feeb65410f490853822dbf22b17b890d41295cd007254366e66d93722b60", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 171, - "generated_at_commit": "6f69ba6a382fa106ead9bdd50ebf328ee2743545", - "source_tree": "sha256:affa7e643d34f38b1bf568c5cf5894449a970d253621ac5190350c91014d7e3a" + "files": 172, + "generated_at_commit": "09f577002480a0c969fdb803388e88108b1886a1", + "source_tree": "sha256:3f56ab424616ee777e64a6c7ab8ab6b27596ac6d3304095449893622957dda17" }, "owner_lane": "", "provenance": { diff --git a/docs/adr/.crumb b/docs/adr/.crumb index 32c28df..5e106bd 100644 --- a/docs/adr/.crumb +++ b/docs/adr/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-11T16:21:36Z", + "compiled_at": "2026-10-12T18:14:49Z", "compiler": "crumb-compile/1", - "digest": "sha256:a267b4219ee3550bc8832fd07fdcb0baf36cf13f3e447356012e99898d2af8d0", + "digest": "sha256:4fb903f58eef35b8168fd714fe53d335f8886d6483b82405183e899a59e2f705", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 37, - "generated_at_commit": "0f11240583a8f5fd1ac5eab047fb42bc6e0258d7", - "source_tree": "sha256:d54bfb0b600f7a5c21f6c995f394435edee121fb7ae67a61ab81150127ae5a4b" + "files": 38, + "generated_at_commit": "09f577002480a0c969fdb803388e88108b1886a1", + "source_tree": "sha256:912f8b26024216ba4f6c12b2b2e1937ee6809a4a742b99b4b2ee7b657b75273d" }, "owner_lane": "", "provenance": {