Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/spec/allen.md # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / spec / allen.md` 96 lines ยท 6174 bytes Raw Blame History Rendered 1 # ALLEN v0: the durable subject inside the organism (omega side) 2 3 Status: SPECIFIED + IMPLEMENTED + TESTED (host). Architecture: ARCH-0035 4 (aien-architecture, ACCEPTED 2026-10-06; see the dated note below). Format: aienos ADR 0018 (PROPOSED), continuity 5 kind 24. Nothing here is QUALIFIED on hardware, and no OS reboot or machine 6 migration is claimed. 7 8 > Note, 2026-10-08: this file originally read "ARCH-0035 PROPOSED". [ADR 0035](https://github.com/aien-spark/aien-architecture/blob/main/docs/adr/0035-persistent-cognitive-entity-boundary-allen.md) 9 > was ACCEPTED on 2026-10-06; only the architecture label changed. Aienos ADR 0018 (the kind-24 format) is still 10 > PROPOSED and unfrozen, and nothing here is QUALIFIED on hardware. User-editable personalization (display name, tone, 11 > working preferences) is a separate host record, not part of the subject format: see the personalization contract, 12 > aien-architecture `docs/plans/allen-personalization/CONTRACT-v1.md` (pending PR, aien-spark/aien-architecture#160). 13 14 ## 1. What ALLEN is here 15 16 AIEN is the organism (the resident World, its faculties, its Cortex) and the 17 cognitive faculty inside it (`src/runtime/rx_aien.*`, "AIEN PROPOSES"). ALLEN 18 is the durable subject the organism sustains: the same agent identity, the 19 same standing intents and the same memory lineage, resolved from the Aienux 20 Store after any restart. ALLEN is state. It has no cognition, no authority and 21 no loop. 22 23 Omega holds the three bindings and nothing else (`src/allen/allen_bind.{c,h}`): 24 25 1. **identity**: the subject object carries the LogicalAgentId and the AgentRoot 26 id the Store already has. Omega recomputes the object's content id and 27 records the World's external subject number against that agent (the 28 binding record). No `AllenId` exists. 29 2. **memory**: the subject's Cortex lineage reference must equal the digest of 30 record 1 of the Cortex journal it is run with (ARCH-0022 journal), or 31 nothing is published. Fail closed. 32 3. **intent**: each ACTIVE standing intent of kind GOAL_LATENCY becomes the goal 33 mutation the resident AIEN faculty already reads (`rx_aien.h`: goal = 34 {seq, regime, target ns}; field 3 = the intent id's first 64 bits, so the 35 EXTERNAL crumb names the intent it came from). 36 37 ## 2. R16 (binding) 38 39 ALLEN publishes typed state through `rx_world_publish_external` under the 40 World's external subject capability. The World's dependency machinery wakes 41 `aien.assess` because the goal object changed. ALLEN never calls a faculty, 42 never registers a reaction, never polls, never sleeps, has no thread, no 43 timer, no `max_turns`. Gate G5 checks the symbol tables of `allen_bind.o` and 44 `allen.o` and the source for loop words; the cross-repo loop inventory 45 (R16-G2, `make test-r16-inventory`) covers the committed tree. 46 47 ## 3. The host tool (`tools/allen.c`) 48 49 Inspection and qualification only: not a chat, not an agent runtime, not a 50 planner, not a daemon, not a Visor, not an operator shell. Verbs: `make` 51 (test fixture writer; in production the object is committed by the Aienux 52 kernel), `inspect`, `digest`, `lineage`, `seed-journal`, `publish` (the 53 R11 part-A rig: capability root, World, resident AIEN faculty; checks the 54 memory binding, publishes every ACTIVE intent, waits for quiescence, prints 55 what AIEN did), `probe` (the same rig started **without** ALLEN). 56 57 The subject codec is compiled from the aienos tree at `aienos.lock` 58 (`mk/allen.mk`); omega never redefines the format. 59 60 ## 4. Gates (`tests/allen/run.sh`, `make test-allen`) 61 62 | gate | claim | how | 63 |---|---|---| 64 | G1 identity binding | the subject id is content-addressed and bound to the LogicalAgentId; another agent gives another id | two makes with the same content give one id; agent B gives another; the binding line names agent A | 65 | G2 restart persistence | a second process restores the same subject id, intent id and goal, and AIEN assess wakes again | publish, exit, publish | 66 | G3 memory binding | a subject acts only with its own journal | another journal, an unbound subject and an empty journal are refused before any publish | 67 | G4 model independence | two model digests and no model at all give the same subject, intent and goal; the object bytes do not change and contain no model | `--model X`, `--model Y`, none | 68 | G5 no authority, no orchestrator | no thread/wait/timer/signal/reaction/mint symbols in `allen_bind.o`; none of thread/timer/signal/reaction/fork in `allen.o`; no loop words in source | `nm -u`, grep | 69 | G6 negative control | without ALLEN the restarted World holds 0 goals although the journal holds every record of the publish; with ALLEN the goal is back | publish, probe, publish. **If probe shows a goal, ALLEN is redundant and the gate FAILS ALLEN.** | 70 | FORMAT | unknown version, corrupted agent/intent, truncation, trailing bytes, unknown origin refused; nothing published | byte patches | 71 | REPLAY | the same bytes are the same subject every time | ids compared across runs | 72 | SUPERSEDE | two intents in one slot: the old one SUPERSEDED, only the new one published | `--intent 7,1000 --intent 7,2000` | 73 | MISMATCH | another agent's object binds as another subject | agent B | 74 75 The aienos half (foreign root/agent refusal at the Store resolver, two-process 76 restart over one sealed Store image, mutants) runs in the aienos tree 77 (`make -C native/kernel test test-continuity-subject-restart continuity-subject-mutants`) 78 and is recorded, not re-run, here. 79 80 ## 5. Status table 81 82 | | status | 83 |---|---| 84 | same subject identity across process restart | TESTED (host) | 85 | same standing intent across process restart | TESTED (host) | 86 | same Cortex binding across process restart | TESTED (host) | 87 | model replacement (X, Y, none) | TESTED (host) | 88 | OS reboot | NOT_RUN | 89 | machine migration | NOT_RUN (not claimed) | 90 | hardware qualification | NOT_RUN | 91 | multi-subject | FUTURE, NOT IMPLEMENTED (format does not preclude) | 92 | intents other than GOAL_LATENCY | FUTURE | 93 | production path (kernel commits the object; organism boot reads it) | PLANNED; v0 proves the contract on the host rig | 94 95 INTERPLANE IMPACT: NONE (no wire change; ALLEN is Store state and World 96 publication, not a protocol).