aien-architecture-mv
Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.
Brought by drakestapleton
aien-architecture-mv / docs / 08-world-cortex-provenance.md
| 1 | # World, Cortex, and Provenance |
| 2 | |
| 3 | > **Implementation status (2026-09-30).** World state is owned by omega `src/runtime/rx_world.c`. Cortex has three implementations and no recorded authoritative owner: sovereign-core `crates/cortex-rs` (live Linux LLM stack), omega `src/runtime/rx_cortex.{c,h}` (host reference, one in-memory tier) and aienos `crates/aienos-cortex` (Rust). Evidence is written by omega `src/omega_evidence.{h,c}`; no shared cross-repo evidence schema exists. Ownership: `doctrine/ARCHITECTURE.md` §2.8. |
| 4 | |
| 5 | ## World |
| 6 | |
| 7 | World is branchable execution state. |
| 8 | |
| 9 | ```text |
| 10 | World |
| 11 | ├─ object root |
| 12 | ├─ filesystem root |
| 13 | ├─ token root |
| 14 | ├─ memory view/root |
| 15 | ├─ capability set |
| 16 | ├─ effect intents |
| 17 | └─ parent lineage |
| 18 | ``` |
| 19 | |
| 20 | Worlds support speculative execution without immediately changing external reality. |
| 21 | |
| 22 | ## Cortex |
| 23 | |
| 24 | Cortex is durable epistemic memory. |
| 25 | |
| 26 | It owns: |
| 27 | |
| 28 | - entities, |
| 29 | - claims, |
| 30 | - evidence, |
| 31 | - sessions/events, |
| 32 | - summaries, |
| 33 | - memory candidates, |
| 34 | - promotion receipts, |
| 35 | - verification tiers. |
| 36 | |
| 37 | It does not own the live scheduler or speculative execution lifecycle. |
| 38 | |
| 39 | ## Provenance |
| 40 | |
| 41 | The target signed World commit binds: |
| 42 | |
| 43 | ```text |
| 44 | parent World |
| 45 | object/filesystem/token/memory roots |
| 46 | effect root |
| 47 | evidence root |
| 48 | model/tokenizer identity |
| 49 | policy digest |
| 50 | runtime build digest |
| 51 | J-Space decision |
| 52 | signer identity |
| 53 | signature |
| 54 | ``` |
| 55 | |
| 56 | Reuse existing AIEN protocol signers and Merkle-root machinery. |
| 57 | |
| 58 | ## Hardware signing |
| 59 | |
| 60 | Do not place hardware signing in the hot path for every small event. |
| 61 | |
| 62 | Preferred: |
| 63 | |
| 64 | - short-lived session signer, |
| 65 | - Merkle batching, |
| 66 | - periodic hardware-rooted checkpoint. |
| 67 | |
| 68 | ## Memory promotion |
| 69 | |
| 70 | Inferred knowledge should enter Cortex through candidate/evidence/promotion flow, not be silently asserted as fact. |