aien-protocols-mv
Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem
Brought by drakestapleton
aien-protocols-mv / specs / agent-state / SPEC.md
| 1 | # Agent State ABI Specification |
| 2 | |
| 3 | **Status**: Draft |
| 4 | **Version**: 1.0.0 |
| 5 | **License**: Community Specification License 1.0 |
| 6 | |
| 7 | ## Abstract |
| 8 | |
| 9 | The Agent State ABI defines a portable, transport-neutral specification for serializing, restoring, branching, and verifying autonomous agent lifecycle state. |
| 10 | |
| 11 | ## Core Concepts |
| 12 | |
| 13 | 1. **State Snapshot (`AgentState`)**: The authoritative logical snapshot encompassing identity, session metadata, context lineage, authority grants, resource budgets, and execution status. |
| 14 | 2. **Transition Events (`AgentStateEvent`)**: An append-only sequence of typed state transitions. Given an initial state and an ordered sequence of events, any conforming runtime reconstructs an identical logical agent state. |
| 15 | 3. **Subsystem Boundary**: Agent state strictly references semantic memory (`MemoryRef`), physical GPU KV cache (`InferenceContextRef`), and content-addressed artifacts (`ArtifactRef`). Subsystems remain independent and do not leak internal structures into the ABI. |