diff --git a/.crumb b/.crumb index ae9c0a5..e25591b 100644 --- a/.crumb +++ b/.crumb @@ -21,39 +21,39 @@ "generated": { "children": [ { - "digest": "9371971a527d7229d98beb1e5223a85f6854bafaaa45a94ce59bd19ab826ac03", - "last_commit": "7454d9f", + "digest": "ccd1b2595c8d39e425c8d31be72f01e106687ef9c46ae99cb4cce0f84267d1d7", + "last_commit": "5c1a523", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, { - "digest": "e9cb868b83b6a51a1d8b4e449269070e036170ecb3aa4985d915afdf387f656c", - "last_commit": "6f51f83", + "digest": "1aeb38c2fca59189c2a9630d82f7d8c4ca808626f8ab907b79388520122482b9", + "last_commit": "607c6b5", "name": "doctrine", "purpose": "Directory doctrine. Purpose not yet described by a human." }, { "digest": "b3d92d7358ad2a5174868b2227ae0f3b7d667cfc065820c43e9375f1ce51cbec", - "last_commit": "e43e476", + "last_commit": "6c95697", "name": "scripts", "purpose": "Directory scripts. Purpose not yet described by a human." }, { "digest": "cdd14c4842f34bc96327321a87f1cd8a17a074966e0e25421da072bdbc249f8c", - "last_commit": "d0f0b95", + "last_commit": "6c95697", "name": "tools", "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:59511c2137ed16676c163189e7a468eba1ead2910ae5f3b66567e597c338b06b", - "compiled_at": "2026-10-04T19:21:19Z", + "children_root": "sha256:27fdc98cce2937a1ea2bd4da88b644463c82c886abfe75f83d21343f55907d34", + "compiled_at": "2026-10-05T02:57:45Z", "compiler": "crumb-compile/1", - "digest": "sha256:9d5fdb295eca905dacc84ef75fee43bf4fa567a9d80068104b2a56b619994c02", + "digest": "sha256:1a36c1d192994772ef99b8555d7362b7cc098526d06a59cd957765b6b788fc8c", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 214, - "generated_at_commit": "f1a63b815fb9a9764339860e38783248dcf20671", - "source_tree": "sha256:bd09d5f75d39a53b11b23cdb9334031ad658804ab7b1cc888ac1d100bdd14006" + "files": 215, + "generated_at_commit": "607c6b5c2b2a2f824861a838dce9c7befe20b8b4", + "source_tree": "sha256:78214759cd17dbdd361d8a47de7437f1f9df837a8db43a16ed6e5d1e6344ccce" }, "owner_lane": "", "provenance": { diff --git a/docs/.crumb b/docs/.crumb index 6bd3acf..9d72633 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -37,51 +37,51 @@ "generated": { "children": [ { - "digest": "e885344ae8a551eddf25dcd694dd2d245edc2f27029e71aa39b900255bedabfc", - "last_commit": "7454d9f", + "digest": "53eaebf56e108247a1e0d254401862846780606c8722a90eb3809ce9d3443645", + "last_commit": "5c1a523", "name": "adr", "purpose": "Directory docs/adr. Purpose not yet described by a human." }, { "digest": "69a6bbf1824c743bd7447ce351c6ca39d49b241f2d6f6fc6bc9fe5b6fad77a01", - "last_commit": "89fda22", + "last_commit": "6c95697", "name": "crumbs", "purpose": "Directory docs/crumbs. Purpose not yet described by a human." }, { "digest": "0f9f110974f880c3527ac4f9bb755157a9e830080c7aff363e33d187bc22edc4", - "last_commit": "874dc62", + "last_commit": "6c95697", "name": "errata", "purpose": "Directory docs/errata. Purpose not yet described by a human." }, { "digest": "ec40dc0a778afd30b22ffcb2090caa1634e0ed0b0755d7a3ba01d5770bcd7188", - "last_commit": "a0b3545", + "last_commit": "6c95697", "name": "plans", "purpose": "Directory docs/plans. Purpose not yet described by a human." }, { "digest": "6301e5dfed47f354392e2b2b175845f1135e348b71fa91fa925dd2775947afa8", - "last_commit": "12c6a57", + "last_commit": "6c95697", "name": "research", "purpose": "Directory docs/research. Purpose not yet described by a human." }, { "digest": "187ee5c915158c24bdbcd58f548fd605eb73e9b9329ce7f36adabfecf80cf627", - "last_commit": "874dc62", + "last_commit": "6c95697", "name": "specs", "purpose": "Directory docs/specs. Purpose not yet described by a human." } ], - "children_root": "sha256:259f32f4b8a1d9a8229c900033bd38cd8ded47cdb1d925c97fae81c85db54225", - "compiled_at": "2026-10-04T19:21:19Z", + "children_root": "sha256:8ad700210be84322b66fe3938d136a2c64bb41cd5e3021450c23bf5adbf21e36", + "compiled_at": "2026-10-05T02:57:45Z", "compiler": "crumb-compile/1", - "digest": "sha256:9371971a527d7229d98beb1e5223a85f6854bafaaa45a94ce59bd19ab826ac03", + "digest": "sha256:ccd1b2595c8d39e425c8d31be72f01e106687ef9c46ae99cb4cce0f84267d1d7", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 120, - "generated_at_commit": "f1a63b815fb9a9764339860e38783248dcf20671", - "source_tree": "sha256:17f424ab93db929a78f223398ce0abfde7ea98dcb794f917f97c229edf49dcfd" + "files": 121, + "generated_at_commit": "607c6b5c2b2a2f824861a838dce9c7befe20b8b4", + "source_tree": "sha256:a4f8e829a5286c50d49bf8208f22684aab53b8472bc3729a16ce9534c64a6097" }, "owner_lane": "", "provenance": { diff --git a/docs/adr/.crumb b/docs/adr/.crumb index 144be39..a72b358 100644 --- a/docs/adr/.crumb +++ b/docs/adr/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T19:21:19Z", + "compiled_at": "2026-10-05T02:57:45Z", "compiler": "crumb-compile/1", - "digest": "sha256:e885344ae8a551eddf25dcd694dd2d245edc2f27029e71aa39b900255bedabfc", + "digest": "sha256:53eaebf56e108247a1e0d254401862846780606c8722a90eb3809ce9d3443645", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 35, - "generated_at_commit": "f1a63b815fb9a9764339860e38783248dcf20671", - "source_tree": "sha256:8c3c2f1c8ff040c75bad5c577af647b7081134b495c13fe27134fbff54fa504c" + "files": 36, + "generated_at_commit": "607c6b5c2b2a2f824861a838dce9c7befe20b8b4", + "source_tree": "sha256:8ee7c06016be21ca4b09427c124093c199eb8afdc516ab4c64a26fbdf0c08837" }, "owner_lane": "", "provenance": { diff --git a/docs/adr/0035-persistent-cognitive-entity-boundary-allen.md b/docs/adr/0035-persistent-cognitive-entity-boundary-allen.md new file mode 100644 index 0000000..d99e9f0 --- /dev/null +++ b/docs/adr/0035-persistent-cognitive-entity-boundary-allen.md @@ -0,0 +1,155 @@ +# ADR 0035: Persistent Cognitive Entity Boundary (ALLEN) + +**Status:** PROPOSED (2026-10-04). NOT ACCEPTED. The creed line, `doctrine/ARCHITECTURE.md` §1.2 / §1.3 / §2.8 and the aienos Blueprint keep their present wording until the operator accepts this record. What is already true on branches is marked IMPLEMENTED / TESTED below; nothing in this ADR is QUALIFIED on hardware. +**Author:** Claude (Fable 5.1) for Drake Stapleton. Investigation: `~/handoffs/2026-10-04-allen-architecture-investigation.md`; drift re-audit before implementation: `~/handoffs/2026-10-04-allen-phase-a-delta.md`. +**Supersedes:** nothing. **Amends (if accepted):** `doctrine/ARCHITECTURE.md` §1.2 gloss of AIEN PROPOSES ("initiates intent" moves to ALLEN), §1.3 creed, §2.8 ownership table (new rows). **Already changed in companion PRs (no acceptance needed; they state facts about code):** `doctrine/AIEN.md` §10 model-generation naming (this PR, second commit); aienos `docs/ARCHITECTURE.md` §10 and `CONTEXT.md` "AIEN Agent" (aien-dev/aienos#259); omega `spec/allen.md` (aien-dev/omega#276). +**Related:** ARCH-0007 (J-Space effect boundary), ARCH-0011 (inference context is model state), ARCH-0015 (resident semantic store), ARCH-0016 (resident reaction system; readiness, not turn order), ARCH-0020 (belief / estimation), ARCH-0022 (Cortex owner), ARCH-0024 (Rust scaffolding, Omega destination), ARCH-0028 (aien-test), omega R16 (orchestrator retirement); aienos ADR 0006, 0007, 0015, 0016, 0017, **0018 (ALLEN subject state object, PROPOSED)**. +**Evidence base:** GitHub `main` on 2026-10-04: aien-architecture 6c95697, aienos fbbfc9c, omega e5593ae, aien-sovereign-core 6c28524, aegis-runtime f4e8709, aien-protocols 3a4cdbe, interplane 59bb72b. Branches: aienos `feat/allen-subject-state` (cd4b089, PR #259), omega `feat/allen-v0` (7151e45, PR #276). Code beats plans. +**Name:** ALLEN is a proper name, not an acronym. It echoes Alan Turing (spelled Alan), whose measurement line the project already carries, and the project creator's first best friend. It is not changed to ALAN and no five words are manufactured for it. + +Citation note: in this repository "ADR 0035" and ARCH-0035 name the same decision. + +--- + +## In plain words + +Until now the word AIEN meant four things: the whole living system, the thinking part of that system, the one individual that is supposed to survive reboots and model swaps, and (by accident, in one doctrine section) a particular version of the model. The individual had a 32-byte id in AIENOS and nothing else: no record of what it currently wants, what it holds as known, or which memory journal is its own. A restart lost the standing goal even though the memory journal had recorded it. This decision gives that individual a name, ALLEN, and one small durable state object. ALLEN is not a new layer, not a scheduler, not a memory, not a planner, not a chat. It is the subject that the rest of AIEN works for. + +## 1. Context + +1. `doctrine/ARCHITECTURE.md` §1.1 and §2.2 define AIEN as the cognitive layer. ADR 0016 defines AIEN as "a persistent resident computational organism" with AIEN, Omega and AEGIS as its faculties. aienos `docs/ARCHITECTURE.md` §10 said "The persistent thing is AIEN itself." `doctrine/AIEN.md` §10.2 named model generations "AIEN-N", "AIEN-N+1", while §12.1 says "AIEN is Not a Weight Matrix" and aienos `CONTEXT.md` says a model is a replaceable component with no identity. +2. Code on `main` (re-audited 2026-10-04 before implementation; delta note): aienos holds the AgentRoot (continuity kind 16), ContinuityManifest (kind 17) and the branch table (kind 18, `cc_state`) over Store v1 (aienos ADR 0016, PROPOSED), resolved by `native/kernel/svc/continuity_resolve.c`; the manifest has no free slot; the resolver ignores untracked kinds. omega `src/runtime/rx_aien.h` implements AIEN as a resident faculty (observe, predict, explain, assess, plan) whose goal object is "written from outside" and labelled "(external, human)"; the only path for that write is `rx_world_publish_external` under the World's external-subject capability; a World holds it in memory only. omega `rx_cortex` is the canonical Cortex (ARCH-0022); its journal header reserves a word for a future machine identity and has no identity, self or goal record kind. The model's identity in code is a digest in the boot handoff (`native/boot/handoff.h: model_sha256`); there is no ModelId type. +3. INTERPLANE's runtime-side counterparty is a `RuntimeAuthority` (decide / execute / catalog); its session is an opaque handle. It has no concept of agent identity or continuity. +4. `doctrine/ARCHITECTURE.md` §2.8 has no rows for identity, standing intent or the identity-to-memory binding. + +## 2. The collision this resolves + +| meaning of "AIEN" | kept? | name | +|---|---|---| +| 1. the organism (World, faculties, Cortex, Store) | kept | AIEN | +| 2. the cognitive faculty that proposes | kept | AIEN ("AIEN PROPOSES") | +| 3. the one durable subject that survives restarts and model swaps | renamed | **ALLEN** | +| 4. a model generation ("AIEN-N") | corrected | model generation N (`doctrine/AIEN.md` §10) | + +## 3. Decision (proposed) + +```text +AIEN IS THE ORGANISM. ALLEN IS THE SUBJECT IT SUSTAINS. +ALLEN IS DURABLE STATE BOUND TO ONE LOGICALAGENTID. ALLEN IS NOT A LOOP. +ALLEN HOLDS STANDING INTENT, HELD KNOWLEDGE REFERENCES AND THE +IDENTITY-TO-MEMORY BINDING. EVERYTHING ELSE KEEPS ITS PRESENT OWNER. +``` + +1. **Definition.** ALLEN is the persistent cognitive subject sustained by the AIEN organism: one chain of durable, content-addressed state objects bound to one AIENOS `LogicalAgentId` and its AgentRoot, holding what the subject currently intends (standing intents), what it holds as known (references to Cortex promotion records, by digest), and the binding that names its memory (the Cortex journal lineage). +2. **Format (IMPLEMENTED, aienos ADR 0018).** AIENOS continuity object **kind 24, SubjectState**, format_version 0, 16-byte header as every continuity object, fixed little-endian layout, at most 9416 bytes. One ACTIVE intent per slot; supersession is named by exactly one successor; intent ids derive from content; the chain is gap-free and fork-free from sequence 1; a foreign root or agent, a fork, a gap, a broken link or an unknown claim version is CORRUPT; a Store with a root and no subject object is ABSENT and the kernel never mints one. The object carries **no capability, weight, model, machine, process or queue field**: model independence is structural. +3. **Identity (IMPLEMENTED).** ALLEN is the agent the AgentRoot already names. There is no `AllenId`. The subject object carries the `LogicalAgentId` and the AgentRoot id and is refused by the resolver if either is foreign. On the omega side the World's external subject number is recorded against that agent (the binding record, `src/allen/allen_bind.h: AllenBinding`). +4. **Memory (IMPLEMENTED).** The lineage reference is the digest of the Cortex journal's record 1 (ARCH-0022). A subject acts only with the journal whose lineage it names; anything else is refused before any publication (fail closed). The journal header's reserved identity word is left alone; nothing in Cortex is redesigned. +5. **Standing intent (IMPLEMENTED, one kind).** v0 defines `GOAL_LATENCY` (regime, target ns), the one goal shape `rx_aien` reads today. ALLEN publishes each ACTIVE intent as the goal mutation through `rx_world_publish_external`; the EXTERNAL crumb carries the intent id's first 64 bits. The World's dependency machinery wakes `aien.assess`. Other kinds are FUTURE. +6. **AIEN keeps PROPOSES.** Proposing, hypothesis formation, prediction, explanation, planning, search, synthesis, cost modelling and the Turing measurement remain faculty work under their present owners. The one gloss word that moves is "initiates intent" (ARCHITECTURE §1.2), which becomes ALLEN's on acceptance. +7. **Position.** ALLEN is inside the AIEN organism, not above it. The layer order in ARCHITECTURE §1.1 does not change. +8. **Creed (evaluated, not applied).** `ATLAS AWAKENS. ALLEN INTENDS. AIEN PROPOSES. OMEGA DEFINES. FORGE REALIZES. AEGIS VERIFIES. HARDWARE ACTS. EVIDENCE TEACHES.` The line reads correctly against the implemented boundary: ALLEN's object says what is intended; AIEN's faculty proposes what to do about it. It is applied only on acceptance. +9. **Model naming (applied in this PR).** `doctrine/AIEN.md` §10 names model generations "Model N / N+1 / N-1" serving ALLEN; the succession triad and the non-self-promotion law are unchanged. + +## 4. Alternatives considered and rejected + +- **A: no ALLEN.** Rejected by the negative control (§8): a standing intent does not survive a restart through Cortex alone; something must own it, and nothing did. +- **B: ALLEN as a plain sub-module of AIEN.** True structurally (it is three bindings and one object kind), but it hides that ALLEN resolves a doctrine naming defect; this ADR records both. +- **C: ALLEN above AIEN with AIEN as machinery.** Rejected: contradicts ADR 0016's organism sentence and ARCHITECTURE §1.1 / §2.2. +- **ALLEN as the "AIEN Agent" of aienos (planner / router / operator UI).** Rejected: a service shape; it would recreate the orchestrator R16 retired. +- **ALLEN as memory or planning.** Rejected: Cortex (ARCH-0022) and J-Space / `rx_plan` own those. +- **ALLEN as the payload of continuity kind 18.** Rejected at the drift re-audit: kind 18 is the branch table. (The earlier draft said kind 18; that was wrong.) +- **A slot in the ContinuityManifest.** Rejected: no free slot; frozen format; every Store would need a version bump. +- **A new `AllenId`.** Rejected: a second identity that must be kept in step with the AgentRoot and can drift from it. +- **Keeping the standing goal in Cortex.** Rejected: Cortex is an append-only record of what happened; a standing intent is a claim about the present that the kernel resolves. + +## 5. Ownership changes + +| concept | from | to | +|---|---|---| +| "initiates intent" | AIEN (gloss, §1.2) | ALLEN (on acceptance) | +| standing goal source in the living runtime | unowned ("external, human") | ALLEN object, published through the existing external path | +| held-knowledge set (which promotions are the subject's own) | unnamed | ALLEN (by digest; records stay in Cortex) | +| identity <-> Cortex journal <-> World subject binding | absent | ALLEN (binding record); the mechanisms stay with AIENOS and omega | +| everything else in ARCHITECTURE §2.8 | unchanged | unchanged | + +What did **not** change: AIEN cognition (`rx_aien` reads the same goal object, unmodified), R16 (no loop, no faculty call), Omega, AEGIS, Cortex ownership (ARCH-0022; one lineage reference read, nothing written by ALLEN), J-Space ownership, INTERPLANE authority (`INTERPLANE IMPACT: NONE`), the AIENOS capability authority (the only mint). + +## 6. Invariants + +- I1 ALLEN's subject id is invariant under model replacement (TESTED: G4). +- I2 ALLEN's subject id is invariant across process restart (TESTED: G2 in omega; two processes over one sealed Store image in aienos). +- I3 ALLEN contains no capability, weight, KV state, machine id, process or queue reference (structural; the format has no such field). +- I4 One subject chain per AgentRoot in v0. A fork is CORRUPT and stops in the resolver; multi-subject Stores are FUTURE and the format does not preclude them (every object names its root and agent). +- I5 ALLEN's held set references only Cortex promotion records, by digest; never candidates or raw claims. +- I6 ALLEN's objects change only by a committed successor that continues the resolved chain (stale successor and second genesis refused). +- I7 ALLEN has no thread, no poll, no timer and no call into any faculty. Faculties react to ALLEN's publications by readiness (TESTED: G5 symbol scan; R16 loop inventory unchanged). +- I8 ALLEN is never created implicitly; the kernel reports ABSENT and never mints a subject. + +## 7. R16 compatibility (binding gate) + +ALLEN is state. The only thing it does at run time is publish typed state through `rx_world_publish_external`, which is the path the human already used. No semantic master loop returns: `allen_bind.o` carries no thread, wait, clock, signal, reaction-registration or mint symbol; the host tool carries none of thread, timer, signal, reaction or fork; the cross-repo loop inventory on the omega branch equals `main` (256 omega sites, 0 new). Preserving R16 was an implementation gate (G5), not a preference. + +## 8. Negative control (the falsifier) + +Before ALLEN could pass, the test had to show that the intent does **not** already survive a restart without it. omega `tests/allen/run.sh` G6: a fresh Cortex journal; one publication through ALLEN (the journal then holds 15 records: the EXTERNAL crumb, the AIEN activations, the commits); the rig started again **without** ALLEN holds **0 goals**; the rig started again **with** ALLEN holds the goal (regime 7, target 1000 ns). Had the probe shown a goal, ALLEN would have been redundant and the gate fails ALLEN. The control is a gate in CI, not a one-off. + +## 9. Gates and status + +Status vocabulary: IMPLEMENTED / TESTED / QUALIFIED / SPECIFIED / PROPOSED / PLANNED / PARTIAL / ABSENT / BLOCKED_OPERATOR / NOT_RUN. + +| gate | claim | status | where | +|---|---|---|---| +| G1 identity binding | subject id is content-addressed and bound to the LogicalAgentId; foreign root / agent refused | TESTED (host) | omega run.sh G1; aienos `t_resolve` | +| G2 restart persistence | a second process restores the same subject, intent and goal; AIEN assess wakes again | TESTED (host, process level) | omega run.sh G2; aienos `CK_CONTINUITY_SUBJECT_RESTART` (two processes, one sealed Store image) | +| G3 memory binding | only the journal whose lineage the subject names is accepted; fail closed | TESTED (host) | omega run.sh G3 | +| G4 model independence | models X, Y and none: same subject, intent, goal; bytes unchanged | TESTED (host) | omega run.sh G4 | +| G5 no authority, no orchestrator | symbol and source scan; loop inventory unchanged | TESTED (host) | omega run.sh G5; receipt | +| G6 negative control | 0 goals without ALLEN although the journal recorded everything | TESTED (host) | omega run.sh G6 | +| format refusals, replay, supersession, mismatch | unknown version, corruption, truncation, trailing bytes, origin refused; same bytes = same subject; one ACTIVE per slot; agent B is another subject | TESTED (host) | omega run.sh; aienos 150-check test; 4 mutants red | +| OS reboot | | NOT_RUN | | +| machine migration | | NOT_RUN, not claimed | | +| G7 native genesis | the AIENOS kernel creates the genesis subject inside the identity provisioning Store transaction (one `ss_transact`: AgentRoot, AgentState, Manifest 1, subject) and one standing intent as sequence 2; no host tool creates it | TESTED (QEMU) | aienos `M4_ALLEN` G7; host `test_continuity_subject_provision` | +| G8 exactly once | provisioning a provisioned Store is refused, image unchanged; restores never mint | TESTED (QEMU) | aienos `M4_ALLEN` G8, G11c | +| G9 QEMU cold restart | two restores, each a new `qemu-system-aarch64` process over the same emulated NVMe image: same subject, intent and lineage | TESTED (QEMU) | aienos `M4_ALLEN` G9 | +| G10 native persistence path | the restore request carries only the mode; ESP and UEFI vars rebuilt per boot; another image restores another subject; an independent reader decodes the head from the sealed Store; omega `allen publish` of that head drives the AIEN goal | TESTED (QEMU) | aienos `M4_ALLEN` G10; receipt omega cross-check | +| G11 corruption does not re-provision | forked chain, flipped envelope, missing subject: refused or reported, nothing minted, image unchanged | TESTED (QEMU) | aienos `M4_ALLEN` G11; mutant `subject_restore_mints` KILLED | +| G12 foreign identity does not re-provision | another installation's subject chain is refused, never adopted | TESTED (QEMU) | aienos `M4_ALLEN` G12; mutant `subject_accept_foreign` KILLED | +| power loss during genesis | SIGKILL at all 9 Store checkpoints, then a cold boot: unprovisioned or identity with its genesis subject, never one alone | TESTED (QEMU + host) | aienos `M4_ALLEN` FI rows; host power cuts at every block boundary | +| hardware qualification (physical Spark NVMe, physical cold reboot) | | NOT_RUN | QEMU is not hardware | +| production path (kernel commits the object at a generation barrier; organism boot resolves it) | | PARTIAL | the kernel writes and restores the subject in the TEST continuity image (QEMU); the default image provisions no identity yet; organism boot does not yet read the subject from the kernel | +| multi-subject | | FUTURE, NOT IMPLEMENTED | | +| creed, §1.2 / §1.3 / §2.8 edits | | BLOCKED_OPERATOR (acceptance) | | + +Receipts (immutable; earlier ones unchanged): host v0 omega `evidence/ALLEN/83c62a41f0252d4b00de78dcad280b78827821c1181e0b02a0690403b8b4f085.json` (candidate `cda7609`, aienos lock `cd4b089`); host v0 after reconciliation omega `evidence/ALLEN/18cfa250cee91ce5abe4cba21fa9fb70da4df36b9b593924b86538dcdfdfabef.json` (candidate `6b78165`, aienos lock = merged aienos#259 `71d5b32`; merged as omega `b544d81`, same tree); native and QEMU aienos `evidence/allen_native_qemu_cfe9aecffb8b20e0c1ff51fad54c46c522ec7d6c56c6cba7661e4b8cda1ee25a.json` with `evidence/ck_gates_1ecf5bcd303bf88422dd0542f14851c931f5d52276838fa182c812f3c73f3c1b.json` (code commit `640522a`, aienos#260, merged as `9d41efc`). `ALLEN_V0_HOST`, `ALLEN_NATIVE_PROVISIONING` and `ALLEN_QEMU_COLD_RESTART` are separate results; QEMU is not a physical cold reboot. + +## 10. Authority implications + +None to the root. The AIENOS capability authority remains the only mint. ALLEN holds no capability reference and never appears as a subject of an authority decision. AEGIS verifies ALLEN's objects like any other objects and decides no policy. ARGUS may observe ALLEN state transitions. + +## 11. Persistence implications + +ALLEN is continuity kind 24 (aienos ADR 0018). Kinds 16 to 23 are unchanged; the resolver gains one pass per kind-24 object. ADR 0015's live-authority rule is unchanged: the in-memory copy is authoritative while running; storage is recovery material. The first subject object is written by the kernel inside the identity provisioning transaction (aienos ADR 0018 §2.7), so no crash leaves an identity without its subject; restore resolves it read-only and never mints. The manifest link to the subject head and display of kind 24 by the recovery tools are FUTURE. + +## 12. Interplane implications + +`INTERPLANE IMPACT: NONE`. No wire change. INTERPLANE's runtime-side counterparty stays the runtime authority; ALLEN is Store state and World publication, never a party, adapter, dialect or transport. Carrying the subject id in the host-side `AuthorityContext` is a possible later cut and is not part of v0. + +## 13. Backward compatibility + +All existing receipts, milestone names and evidence are unchanged. Historical uses of "AIEN" in receipts stay. Stores without a kind-24 object resolve exactly as before. `rx_aien` is unmodified. + +## 14. Risks + +- ALLEN grows into an agent framework. Mitigated by I7 and gate G5 in CI. +- Doctrine churn in operator-confirmed documents. Mitigated: the only edits made before acceptance are two factual sentences in aienos and the model-generation naming in `doctrine/AIEN.md` §10. +- The abstraction is redundant. Tested by G6 on every CI run. +- Multi-subject questions get smuggled in. Deferred (I4). +- The production path is PLANNED, not built: today the host tool writes the object bytes; the kernel's `cs_commit` exists and is tested on a sealed Store image, but no boot path calls it yet. + +## 15. Falsification criteria + +The ADR is withdrawn if any of these holds: a standing intent survives restart and model swap without ALLEN (G6 shows a goal); ALLEN v0 cannot pass G1 to G6 without planner, router, UI or loop code (G5); or the binding of `LogicalAgentId` to the Cortex journal turns out to exist already in accepted code (re-checked 2026-10-04: aienos ADR 0016 kind 19 targets the legacy crate, ARCH-0022 reserves but does not define an identity; it did not exist). + +## 16. One next step + +Done in QEMU (G7 to G12, aienos `M4_ALLEN`). Next: give the default (production) AIENOS image an operator-approved identity provisioning path that calls `cs_provision`, so the same genesis and restore can run outside the TEST continuity image and then on the Spark's physical NVMe. diff --git a/docs/adr/README.md b/docs/adr/README.md index fcfe728..8e8c276 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -44,3 +44,4 @@ Current ADRs: - [0031 - DUAL: constraint pricing for soft resource budgets; hard gates are never priced](0031-dual-constraint-pricing.md) - Accepted by operator Drake Stapleton, 2026-10-03 (via his "DUAL / Constraint Pricing" brief) - [0032 - Inertial Alignment (ANS): frozen reference, drift filter, three sensor classes, autonomy tiers, promotion gate; advisory only](0032-inertial-alignment.md) - Accepted by operator Drake Stapleton, 2026-10-03 (via his "fully implement this feature /goal Inertial Alignment" instruction on the pasted brief) - [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) - PROPOSED 2026-10-04, NOT ACCEPTED; creed and ARCHITECTURE.md edits wait for the operator; aienos#259, omega#276; native genesis and QEMU cold restart TESTED (QEMU) in aienos#260, hardware NOT_RUN diff --git a/doctrine/.crumb b/doctrine/.crumb index 0ca7294..8cfe01e 100644 --- a/doctrine/.crumb +++ b/doctrine/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:24:44Z", + "compiled_at": "2026-10-05T00:58:00Z", "compiler": "crumb-compile/1", - "digest": "sha256:e9cb868b83b6a51a1d8b4e449269070e036170ecb3aa4985d915afdf387f656c", + "digest": "sha256:1aeb38c2fca59189c2a9630d82f7d8c4ca808626f8ab907b79388520122482b9", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 11, - "generated_at_commit": "89fda22daf3ddb149c82a36efdc89bc087ad2f0b", - "source_tree": "sha256:eee36311ee5b6b817c3ab4efb3e725b2cfbe4eb51ae4c2f79f6ef9d7913cb932" + "generated_at_commit": "5c1a5239ecb6bed243ab0d4e53a7fdba7d12b4b5", + "source_tree": "sha256:2a9588aba763cab99c541959ca929540e68e6b85fc6369c743b2edffaabb8ca1" }, "owner_lane": "", "provenance": { diff --git a/doctrine/AIEN.md b/doctrine/AIEN.md index fba0ab0..aeca637 100644 --- a/doctrine/AIEN.md +++ b/doctrine/AIEN.md @@ -626,7 +626,7 @@ However, unconstrained self-modification leads directly to cognitive collapse, g ### 10.2 The Succession Triad -At all times, Omega maintains three distinct generations of AIEN: +At all times, Omega maintains three distinct model generations. A model generation is a replaceable component of the organism (§12.1: AIEN is not a weight matrix); the subject every generation serves is ALLEN ([ARCH-0035](../docs/adr/0035-persistent-cognitive-entity-boundary-allen.md), PROPOSED), whose identity, standing intents and memory lineage do not change when a generation is promoted or rolled back. Generations are named Model N, Model N+1 and Model N-1; none of them is "AIEN": ```text ┌────────────────────────────────────────────────────────────────────────┐ @@ -634,16 +634,16 @@ At all times, Omega maintains three distinct generations of AIEN: │ │ │ ┌──────────────────────┐ ┌──────────────────────┐ ┌──────────────┐ │ │ │ CURRENT STABLE │ │ CANDIDATE MODEL │ │ ROLLBACK │ │ -│ │ (AIEN-N) │ │ (AIEN-N+1) │ │ (AIEN-N-1) │ │ +│ │ (Model N) │ │ (Model N+1) │ │ (Model N-1)│ │ │ │ Holds Active Planning│ │ Undergoing Training │ │ Cold Golden │ │ │ │ & Proposal Duty │ │ & Verification │ │ Snapshot │ │ │ └──────────────────────┘ └──────────────────────┘ └──────────────┘ │ └────────────────────────────────────────────────────────────────────────┘ ``` -1. **Current Stable (AIEN-N)**: The active, verified model currently entrusted with reasoning and proposal generation. -2. **Candidate (AIEN-N+1)**: The newly synthesized model architecture or parameter set undergoing evaluation. -3. **Rollback (AIEN-N-1)**: The proven, immutable predecessor held in reserve. If AIEN-N exhibits divergence, degradation, or invariant failure, the system falls back to Rollback instantly. +1. **Current Stable (Model N)**: The active, verified model currently entrusted with reasoning and proposal generation. +2. **Candidate (Model N+1)**: The newly synthesized model architecture or parameter set undergoing evaluation. +3. **Rollback (Model N-1)**: The proven, immutable predecessor held in reserve. If Model N exhibits divergence, degradation, or invariant failure, the system falls back to Rollback instantly. ### 10.3 The Non-Self-Promotion Law @@ -653,18 +653,18 @@ The core safety invariant of self-improvement is: > > *An intelligence cannot evaluate, authorize, or promote its own successor.* -AIEN-N may propose architectural modifications, identify curriculum weaknesses, generate synthetic training graphs, and write candidate code. But AIEN-N **never** possesses the authority to sign, certify, or promote AIEN-(N+1) into production. +Model N may propose architectural modifications, identify curriculum weaknesses, generate synthetic training graphs, and write candidate code. But Model N **never** possesses the authority to sign, certify, or promote Model N+1 into production. ### 10.4 The Succession Lifecycle ```mermaid sequenceDiagram autonumber - participant A_N as AIEN-N (Current) + participant A_N as Model N (Current) participant OMG as Omega (Training & Verify) participant CAN as Canary Substrate (Physics) participant AEG as AEGIS / Operator Gate - participant A_NEXT as AIEN-N+1 (Candidate) + participant A_NEXT as Model N+1 (Candidate) A_N->>OMG: Propose Architecture / Weight Improvement OMG->>OMG: Validate Proposal Syntax & Invariants @@ -678,25 +678,25 @@ sequenceDiagram CAN-->>AEG: Return Canary Observations & Telemetry alt Canary Fails or Drifts AEG-->>OMG: Discard Candidate (Record Failure in Cortex) - AEG-->>A_N: Reversion to Stable AIEN-N + AEG-->>A_N: Reversion to Stable Model N else Canary Passes Quota AEG->>AEG: Operator Cryptographic Verification - AEG->>A_NEXT: PROMOTE: AIEN-N+1 becomes Current Stable - Note over A_N: AIEN-N becomes Rollback + AEG->>A_NEXT: PROMOTE: Model N+1 becomes Current Stable + Note over A_N: Model N becomes Rollback end end ``` -1. **Improvement Hypothesis**: AIEN-N identifies a performance bottleneck, representational insufficiency, or reasoning gap in its execution logs. It generates a formal improvement proposal (`PROPOSAL_IR`). -2. **Omega Invariant Pre-check**: Omega verifies that the proposal adheres to structural constraints (e.g., memory bounds, safety checks, interface types). If invalid, it is rejected back to AIEN-N's memory as a failure record. -3. **Sovereign Training**: Omega's sovereign training runtime compiles the forward and gradient graphs, training Candidate AIEN-(N+1) on the targeted curriculum and empirical failure datasets. -4. **Formal Verification Suite**: Candidate AIEN-(N+1) is subjected to Omega's offline verification suite: mathematical proofs, safety invariants, and thousands of boundary conditions. +1. **Improvement Hypothesis**: Model N identifies a performance bottleneck, representational insufficiency, or reasoning gap in its execution logs. It generates a formal improvement proposal (`PROPOSAL_IR`). +2. **Omega Invariant Pre-check**: Omega verifies that the proposal adheres to structural constraints (e.g., memory bounds, safety checks, interface types). If invalid, it is rejected back to the organism's memory (Cortex) as a failure record. +3. **Sovereign Training**: Omega's sovereign training runtime compiles the forward and gradient graphs, training Candidate Model N+1 on the targeted curriculum and empirical failure datasets. +4. **Formal Verification Suite**: Candidate Model N+1 is subjected to Omega's offline verification suite: mathematical proofs, safety invariants, and thousands of boundary conditions. 5. **Physical Canary Quota**: The candidate is deployed into a strictly bounded, non-critical execution sand-box with access to real hardware. It must successfully execute a quota of diverse, physical, real-world tasks without a single safety fault or invariant violation. 6. **Promotion Gate**: The candidate's `OMEGA_MODEL_ARTIFACT` is signed by the independent verification authority and human operator gate. 7. **Atomic Cutover**: - * AIEN-N-1 is retired to cold storage. - * AIEN-N becomes the new Rollback. - * AIEN-N+1 is promoted to Current Stable and assumes the active residency slot in Blackwell memory. + * Model N-1 is retired to cold storage. + * Model N becomes the new Rollback. + * Model N+1 is promoted to Current Stable and assumes the active residency slot in Blackwell memory. ---