interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

branch main Branches Tags History

aien-architecture-mv / CONTEXT.md

144 lines · 6336 bytes Raw Blame History Rendered
1# AienOS
2
3Sovereign 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**:
10Only 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**:
14The 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**:
18The project and the agent. Unchanged.
19
20### Runtime
21
22**Inference context**:
23The 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**:
27A 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**:
31The physical memory of model computation, owned by the inference runtime.
32_Avoid_: inference context, conversation
33
34**Composition host**:
35Infrastructure that exposes or hosts inference clients. `aien-local-stack` is a composition host.
36_Avoid_: inference client, inference context, composition root
37
38**Cortex**:
39The durable memory system.
40_Avoid_: cortex_recall, vector database
41
42**AEGIS**:
43The 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**:
47The executor for an effect that leaves the machine.
48_Avoid_: AEGIS, shell dispatch, enforcement membrane
49
50**RSI**:
51The out-of-band promotion loop for candidate changes.
52_Avoid_: inference runtime, canary observation
53
54### Capabilities
55
56**Capability**:
57A model-facing contract. It performs that contract, or it reports itself unavailable.
58_Avoid_: feature, plugin
59
60**Tool**:
61An 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**:
65A 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**:
71Execution 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**:
75The 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**:
79Execution 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**:
83The 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**:
87Process 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**:
93A 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**:
97The number of qualifying canary observations required before promotion.
98_Avoid_: canary observation, synthetic rehearsal
99
100**Safety envelope**:
101A signed wrapper around an authorization or a body of evidence.
102_Avoid_: canary observation, empirical proof
103
104**Synthetic rehearsal**:
105A 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**:
111The component that holds credentials. `atlas-vault` is the secret provider.
112_Avoid_: vault client, TPM
113
114**Vault client**:
115The 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**:
119An 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**:
123An 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**:
129A 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**:
135Running behavior that performs the contract its name states.
136_Avoid_: partial integration, scaffold
137
138**Partial integration**:
139A real subsystem that is not yet on the same path as the runtime it serves.
140_Avoid_: scaffold, implemented
141
142**Scaffold**:
143A registered name whose implementation does not perform its contract.
144_Avoid_: success-shaped result, healthy fixture