diff --git a/docs/adr/0035-persistent-cognitive-entity-boundary-aien.md b/docs/adr/0035-persistent-cognitive-entity-boundary-aien.md index 0226f23..7cc47d8 100644 --- a/docs/adr/0035-persistent-cognitive-entity-boundary-aien.md +++ b/docs/adr/0035-persistent-cognitive-entity-boundary-aien.md @@ -42,7 +42,7 @@ IDENTITY-TO-MEMORY BINDING. EVERYTHING ELSE KEEPS ITS PRESENT OWNER. 1. **Definition.** Aien 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).** Aien is the agent the AgentRoot already names. There is no `AienId`. 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/aien/aien_bind.h: AienBinding`). +3. **Identity (IMPLEMENTED).** Aien is the agent the AgentRoot already names. There is no `AienId`. 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` (planned rename: `src/aien/aien_bind.h: AienBinding`)). 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. Aien 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 Aien's on acceptance. @@ -87,11 +87,11 @@ What did **not** change: AIEN cognition (`rx_aien` reads the same goal object, u ## 7. R16 compatibility (binding gate) -Aien 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: `aien_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. +Aien 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` (planned rename: `aien_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 Aien could pass, the test had to show that the intent does **not** already survive a restart without it. omega `tests/aien/run.sh` G6: a fresh Cortex journal; one publication through Aien (the journal then holds 15 records: the EXTERNAL crumb, the AIEN activations, the commits); the rig started again **without** Aien holds **0 goals**; the rig started again **with** Aien holds the goal (regime 7, target 1000 ns). Had the probe shown a goal, Aien would have been redundant and the gate fails Aien. The control is a gate in CI, not a one-off. +Before Aien could pass, the test had to show that the intent does **not** already survive a restart without it. omega `tests/allen/run.sh` (planned rename: `tests/aien/run.sh`) G6: a fresh Cortex journal; one publication through Aien (the journal then holds 15 records: the EXTERNAL crumb, the AIEN activations, the commits); the rig started again **without** Aien holds **0 goals**; the rig started again **with** Aien holds the goal (regime 7, target 1000 ns). Had the probe shown a goal, Aien would have been redundant and the gate fails Aien. The control is a gate in CI, not a one-off. ## 9. Gates and status @@ -108,13 +108,13 @@ Status vocabulary: IMPLEMENTED / TESTED / QUALIFIED / SPECIFIED / PROPOSED / PLA | 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_AIEN` G7; host `test_continuity_subject_provision` | -| G8 exactly once | provisioning a provisioned Store is refused, image unchanged; restores never mint | TESTED (QEMU) | aienos `M4_AIEN` 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_AIEN` 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 `aien publish` of that head drives the AIEN goal | TESTED (QEMU) | aienos `M4_AIEN` 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_AIEN` 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_AIEN` 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_AIEN` FI rows; host power cuts at every block boundary | +| 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` (planned rename: `M4_AIEN`) 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` (planned rename: `M4_AIEN`) 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` (planned rename: `M4_AIEN`) 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` (planned rename: `aien publish`) of that head drives the AIEN goal | TESTED (QEMU) | aienos `M4_ALLEN` (planned rename: `M4_AIEN`) 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` (planned rename: `M4_AIEN`) 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` (planned rename: `M4_AIEN`) 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` (planned rename: `M4_AIEN`) 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 | | @@ -152,4 +152,4 @@ The ADR is withdrawn if any of these holds: a standing intent survives restart a ## 16. One next step -Done in QEMU (G7 to G12, aienos `M4_AIEN`). 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. +Done in QEMU (G7 to G12, aienos `M4_ALLEN` (planned rename: `M4_AIEN`)). 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/doctrine/ARCHITECTURE.md b/doctrine/ARCHITECTURE.md index eeed6ac..814e331 100644 --- a/doctrine/ARCHITECTURE.md +++ b/doctrine/ARCHITECTURE.md @@ -245,7 +245,7 @@ This table names, for each runtime concept, the one implementation that is autho | Resource scarcity pricing (DUAL) | No owner yet: ADR 0031 records the contract; planned home omega `src/dual/` (standalone) then `src/runtime/rx_dual.{c,h}` | none. Price-like inputs today are constants: omega `rx_jspace.c` residency pressure (`1e9` / `1e3`), sovereign-core `aien-scheduler` `SchedulerConfig` limits (E), spark-rsi fixed-weight `rank_bottlenecks` | Missing. DUAL prices SOFT budgets only, never INVARIANT constraints; it orders survivors of hard gates and Pareto filtering and holds no authority (ADR 0031) | | Standing goal source (Aien) | Aien subject object (aienos continuity kind 24, aienos ADR 0018), published through the existing external path `rx_world_publish_external` ([ADR 0035](../docs/adr/0035-persistent-cognitive-entity-boundary-aien.md) §3, §5). Previously unowned ("external, human") | none | Host and QEMU TESTED; hardware NOT_RUN; kernel production path PARTIAL (ADR 0035 §9 gate table). Aien is durable state, not a loop (I7) | | Held-knowledge set (Aien) | Aien: references to Cortex promotion records, by digest; the records stay in Cortex (ADR 0035 §5, I5) | none | Same as above | -| Identity, Cortex journal and World subject binding (Aien) | Aien binding record (omega `src/aien/aien_bind.h: AienBinding`); the mechanisms stay with Aienux and omega (ADR 0035 §3 item 3, §5) | none | Same as above | +| Identity, Cortex journal and World subject binding (Aien) | Aien binding record (omega `src/allen/allen_bind.h: AllenBinding` (planned rename: `src/aien/aien_bind.h: AienBinding`)); the mechanisms stay with Aienux and omega (ADR 0035 §3 item 3, §5) | none | Same as above | A concept moves to a new owner only through an accepted ADR or an R16 gate result recorded in `ROADMAP.md`.