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 / adr / 0011-inference-context-is-model-state.md
| 1 | # ADR 0011: An Inference Context Is Model State |
| 2 | |
| 3 | **Status:** Accepted |
| 4 | |
| 5 | ## Context |
| 6 | |
| 7 | Diagrams have placed Cortex, AEGIS, RSI, and the composition host on the same physical KV pool as the agents. An inference context had started to mean "anything that participates in AIENOS." |
| 8 | |
| 9 | ## Decision |
| 10 | |
| 11 | An inference context names the state of one model computation. Inference clients are native chat, the AEGIS agent loop, and subagents. They share one inference runtime, one scheduler, and one KV pool. Cortex is the memory system. AEGIS is the effect boundary. RSI is the promotion loop. The composition host exposes or hosts inference clients. The lower three may invoke an inference client. Invocation does not make them inference contexts. |
| 12 | |
| 13 | ## Consequences |
| 14 | |
| 15 | Sharing the KV pool is a property of inference clients and the contexts they fork. Memory, authorization, and promotion sit beside that runtime. |