Cite the allen paths and M4_ALLEN gate that exist today
merged8ad4edd54f3f90fa #366 · opened 2026-10-30 14:19 UTC · closed 2026-10-30 14:29 UTC · merged 2026-10-30 14:29 UTC
Imported from GitHub aien-dev/aien-architecture-mv#366, by drakestapleton
Base 1a67324bcc3c922798a2704cd687ea7f2db1b82e · Head 52206bcab25346581d1472aa897449b1a04a13a6
Merged on GitHub as aa2670b51f18af0a9017fe01dc0681aeeae04ad8; reachable from main bccab5ea7a17be6c9ab30b1bd05db4898a4601be (observed 2026-11-18T16:37:25Z)
drakestapleton wrote on 2026-10-30 14:19 UTC
Issue-first tracking
Tracking issue: Refs #358
Gates advanced and status: CRUMB-VERIFY PASS at 52206bcab25346581d1472aa897449b1a04a13a6. ARCH-DOCTRINE NOT_RUN (exit 3): AIEN_OMC is unset and this host is x86_64, so the pinned AArch64 compiler never ran. The retired doctrine oracle from 1adbb2a (scripts/check_doctrine.sh, the parity target recorded in tools/doctrine/README.md) printed check_doctrine: PASS (30 files, 0 failures) on this same text.
Source, test and qualification evidence: read-only GitHub contents of aien-dev/omega-mv main 62d1d0d668f897386a0e311374f8dbcc5c32dde8 and aien-dev/aienux main 9e0e6179140e9571a95f19a1b707ac576e16c859. No code, receipts, or hardware runs.
Implementation issue exists and its scope/ownership is current.
This PR documents remaining unrun/failed gates.
Issue ledger will be reconciled when this PR merges.
None. The binding citations now name the omega paths and the aienux gate that exist on those mains. The subject remains Aien. The organism remains AIEN.
ADR
ADR 0035 stays ACCEPTED. Every edit in that record is an identifier spelling plus a (planned rename: ...) note. Status, the decision fence, consequences, and the surrounding decision sentences are unchanged. Section 3 item 3 is inside the Decision section; only the binding-record citation on line 45 changed, and that is called out in the list below.
Implementation evidence
Verified against current main, not the older pins in the issue comment:
External irreversible effects still require AEGIS + Effect Broker.
Secrets do not enter model-visible or provenance state.
References changed
Follows Drake's comment on #358: correct the current identifier wording in ADR 0035 and the binding row of doctrine/ARCHITECTURE.md, and leave the five earlier cleanup items untouched. The term AIEN and the subject name Aien are unchanged. AllenBinding, allen_bind.o, and allen publish are included because those citations name the symbol, object file, and host subcommand that sit on the real paths.
verified: scripts/ck_gates.sh:113 is M4_ALLEN|allen|-. scripts/ck_gates.sh:199 maps the allen child to scripts/qemu_ck_allen_test.sh, which exists. scripts/ck_gates.sh contains no M4_AIEN. scripts/qemu_ck_aien_test.sh returns HTTP 404.
Left alone
These already name an identifier that exists, or they are outside this slice.
docs/adr/0035-persistent-cognitive-entity-boundary-aien.md:5 already cites omega spec/allen.md. That file exists at the omega SHA above.
docs/plans/aien-continuity/CAMPAIGN-v0-PREREG.md:31 already cites allen_bind and omega src/allen/. Both exist (src/allen/allen_bind.c, src/allen/allen_bind.h).
docs/plans/aien-personalization/AUDIT-v1.md:17 already cites spec/allen.md and src/allen/allen_bind.{c,h}.
docs/campaign3/SOVEREIGNTY_AUDIT.md:69 and qualification/candidates/CAND-0.gates.md:112, CAND-1.gates.md:47, CAND-2.gates.md:43, CAND-3.gates.md:49 already name M4_ALLEN, which is the registered gate.
rx_aien and aien.assess stay. Omega has src/runtime/rx_aien.c and src/runtime/rx_aien.h at the same SHA. Those are the faculty, not the subject binding.
`AienId` on ADR 0035 line 45 stays. The sentence says there is no such id. It is the subject name Aien, not a file, test, or gate.
Sovereign-core crate and schema strings (aien-subject, aien-subject-profile, aien.subject.profile/1, aien-allen-memory, crates/aien-allen) stay. They are not omega-mv or aienux paths or gates.
The five earlier #358 items stay, as Drake's comment required: ADR 0036 E4 memory_store wording, CONTRACT-v1 calling aien-allen-profile new, the repeated "Allen has now evolved into the final Aien (2026-10-26)." note, ADR 0043 "boots Allen firmware", and the README ADR count.
drakestapleton reviewed (COMMENTED) on 2026-10-30 14:27 UTC
Checked read-only at 52206bc. Every new citation exists on omega-mv 62d1d0d and aienux 9e0e617, which are both current main:
omega-mv: src/allen/allen_bind.h (AllenBinding, L72), mk/allen.mk (allen_bind.o, L27), tests/allen/run.sh (G6; publish subcommand, ALLEN publish output at L103)
aienux: M4_ALLEN in native/kernel/GATES.md (rows A1-A30)
The old aien paths don't exist, so the "planned rename" notes are accurate.
ADR 0035 stays ACCEPTED. All 11 edits are citation-only: Decision item 3 and the §9 gate names, criteria and statuses read the same as before. rx_aien and aien.assess are real (src/runtime/rx_aien.c L218, L471) and are correctly left as they are. No other aien-named references to real code were missed in the two files.
CI: CodeQL and AIEN Checks pass. The doctrine gate didn't run (no omc on x86), which doesn't matter for a docs-only citation change. The branch is clean, 1 ahead and 0 behind main.
Small nits, none blocking: the line numbers in the PR body are slightly off (L72, not L70; L27 and L56-57, not L26 and L46). "aienos ADR 0018" now lives in aienux as docs/adr/0018-allen-subject-state-object.md, which could go in a follow-up. Separately, aienux native/kernel/GATES.md L461 still lists ARCH-0035 as PROPOSED (out of scope here; maybe a #358 follow-up).
— Grokbot
Apply it
git checkout -b patch-8ad4edd54f3f90fa1a67324bcc3c922798a2704cd687ea7f2db1b82e
curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/8ad4edd54f3f90fa.patch | git am
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`.