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/aien-architecture-mv/blob/main/CONTEXT.md # aien-architecture-mv Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-architecture-mv / CONTEXT.md` 144 lines ยท 6336 bytes Raw Blame History Rendered 1 # AienOS 2 3 Sovereign Intelligence (SI) is the whole system. It is becoming a native AI runtime architecture centered on managed model contexts, shared physical KV memory, an effect boundary, typed subsystem protocols, native inference execution, and persistent state. AienOS is only the operating-system layer (ADR 0045). 4 5 ## Language 6 7 ### Names (ADR 0038) 8 9 **AienOS**: 10 Only the operating-system layer. Aienux is its kernel. The whole system is Sovereign Intelligence (SI), per ADR 0045. The site www.aienos.com shows this name. 11 _Avoid_: Aienix (retired: another company uses it), AIENOS, Aienos 12 13 **Aienux**: 14 The kernel: it boots the machine and drives the hardware (repository aien-dev/aienux; the old name aienos-mv is retired, ADR 0038). 15 _Avoid_: AIENOS, Aienos, "the OS" when only the kernel is meant 16 17 **AIEN**: 18 The project and the agent. Unchanged. 19 20 ### Runtime 21 22 **Inference context**: 23 The named state of one model computation: its identity, lineage, generation, model fingerprint, tokenizer fingerprint, KV format, logical state digest, runtime binding, and recovery recipe. 24 _Avoid_: agent, session, prompt, conversation, KV pool 25 26 **Inference client**: 27 A component that submits tokens to the inference runtime. Native chat, the AEGIS agent loop, and subagents are inference clients. 28 _Avoid_: Cortex, RSI, composition host 29 30 **KV pool**: 31 The physical memory of model computation, owned by the inference runtime. 32 _Avoid_: inference context, conversation 33 34 **Composition host**: 35 Infrastructure that exposes or hosts inference clients. `aien-local-stack` is a composition host. 36 _Avoid_: inference client, inference context, composition root 37 38 **Cortex**: 39 The durable memory system. 40 _Avoid_: cortex_recall, vector database 41 42 **AEGIS**: 43 The cross-cutting invariant and contract verifier. It checks admissibility and compliance; it does not mint capabilities or execute actions. 44 _Avoid_: Aienux, OpenClaw, inference runtime, Effect Broker 45 46 **Effect Broker**: 47 The executor for an effect that leaves the machine. 48 _Avoid_: AEGIS, shell dispatch, enforcement membrane 49 50 **RSI**: 51 The out-of-band promotion loop for candidate changes. 52 _Avoid_: inference runtime, canary observation 53 54 ### Capabilities 55 56 **Capability**: 57 A model-facing contract. It performs that contract, or it reports itself unavailable. 58 _Avoid_: feature, plugin 59 60 **Tool**: 61 An atomic capability. Canonical identifiers include `cortex.search`, `telemetry.read`, `process.execute`, `filesystem.read`, and `filesystem.write`. `cortex_recall` is a legacy alias for `cortex.search`, not a second tool. 62 _Avoid_: skill, procedure, cortex_recall 63 64 **Skill**: 65 A reusable procedure composed from tools, success criteria, constraints, and optional J-Space strategy. 66 _Avoid_: atomic handler, tool 67 68 ### Effects 69 70 **Workspace-bound execution**: 71 Execution whose working directory and path capability are checked against a workspace root. The command text may still name other paths, the network, and other processes. 72 _Avoid_: OS sandbox, enforcement membrane, confinement 73 74 **Shell dispatch**: 75 The single AEGIS entry for a shell request. It applies the enforcement membrane and the workspace-bound checks, then admits local execution only when the effect is positively shown to stay on the machine. 76 _Avoid_: OS sandbox, Effect Broker, denylist 77 78 **Local execution**: 79 Execution inside AEGIS that has already been shown to stay on the machine. Unclassified shell text is not local execution. 80 _Avoid_: workspace-bound execution, default shell, denylist fallback 81 82 **Enforcement membrane**: 83 The deterministic pre-dispatch policy that stands in front of shell execution, including the destructive-command denylist. 84 _Avoid_: OS sandbox, workspace-bound execution 85 86 **OS sandbox**: 87 Process isolation by namespace, mount, network, user identity, and syscall filtering. The shell path does not have this. 88 _Avoid_: workspace-bound execution, enforcement membrane 89 90 ### Evidence 91 92 **Canary observation**: 93 A uniquely identified measured result of executing one candidate, bound to that candidate's artifact digest. A new observation id counts once. The same id with the same canonical record is an idempotent success and does not count again. The same id with a different record is a conflict and does not count. 94 _Avoid_: synthetic rehearsal, safety envelope, canary quota 95 96 **Canary quota**: 97 The number of qualifying canary observations required before promotion. 98 _Avoid_: canary observation, synthetic rehearsal 99 100 **Safety envelope**: 101 A signed wrapper around an authorization or a body of evidence. 102 _Avoid_: canary observation, empirical proof 103 104 **Synthetic rehearsal**: 105 A generated event used to exercise a mechanism. It may share an observation's shape. Its provenance makes it ineligible for the production canary quota. 106 _Avoid_: canary observation, production evidence 107 108 ### Secrets 109 110 **Secret provider**: 111 The component that holds credentials. `atlas-vault` is the secret provider. 112 _Avoid_: vault client, TPM 113 114 **Vault client**: 115 The in-process component that asks the secret provider for a credential. `VaultResolver` is a vault client. 116 _Avoid_: secret provider, TPM 117 118 **Production secret resolution**: 119 An in-memory cache, then the secret provider. If the provider does not answer, resolution fails closed. 120 _Avoid_: process environment, hardware silicon 121 122 **Development secret fallback**: 123 An explicit, default-off permission for a development process to read a credential from its environment after the secret provider does not answer. 124 _Avoid_: production secret resolution, implicit fallback 125 126 ### Dependencies 127 128 **Verified Crumb**: 129 A content-addressed, immutable library object keyed by Omega semantic id and bound to a passing evidence receipt. It is the only thing Omega may resolve an import to (ARCH-0029). Always written in full; it is neither a `.crumb` coordination file (RFC-0001, `docs/CRUMB_PROTOCOL.md`) nor a Crumbline curriculum item. 130 _Avoid_: crumb (alone), package, library file, dependency by name or version 131 132 ### Status 133 134 **Implemented**: 135 Running behavior that performs the contract its name states. 136 _Avoid_: partial integration, scaffold 137 138 **Partial integration**: 139 A real subsystem that is not yet on the same path as the runtime it serves. 140 _Avoid_: scaffold, implemented 141 142 **Scaffold**: 143 A registered name whose implementation does not perform its contract. 144 _Avoid_: success-shaped result, healthy fixture