Reference -- Use this when you lose track of where state lives. Each record has one clear job.
The easiest way to get lost in an agent system is not feature count -- it is losing track of where the state actually lives. This document collects the core records that appear again and again across the mainline and bridge docs so you always have one place to look them up.
glossary.mdfor term meaningsentity-map.mdfor layer boundariess13a-runtime-task-model.mdfor task vs runtime-slot separations19a-mcp-capability-layers.mdfor MCP beyond tools
messages,tool_result, and memory text are content stateturn_count,transition, and retry flags are process-control state
- tasks, memory, and schedules are usually durable
- runtime slots, permission decisions, and live MCP connections are usually runtime state
Stores conversation and tool round-trip history.
Stable message shape ready for the model API.
External input used to start one query process.
Mutable state that changes across turns.
Explains why the next turn exists.
Compressed carry-forward summary when old context leaves the hot window.
One stable prompt fragment.
Separated prompt fragments before final assembly.
Temporary one-turn or one-mode injection.
What the model knows about one tool.
Name-to-handler routing table.
Shared execution environment visible to tools.
Normalized result returned into the main loop.
Policy that decides allow / deny / ask.
Structured output of the permission gate.
Normalized lifecycle event emitted around the loop.
Durable work-graph node with goal, status, and dependency edges.
Rule describing when work should trigger.
Cross-session fact worth keeping.
Live execution-slot record for background or long-running work.
Small result bridge that carries runtime outcomes back into the main loop.
State used to continue coherently after failures.
Persistent teammate identity.
Structured message between teammates.
Durable record for approvals, shutdowns, handoffs, or other protocol workflows.
Record for one isolated execution lane.
Configuration for one external capability provider.
Routing decision for native, plugin, or MCP-backed capability.
| Record | Main Job | Usually Lives In |
|---|---|---|
Message |
conversation history | messages[] |
QueryState |
turn-by-turn control | query engine |
ToolUseContext |
tool execution environment | tool control plane |
PermissionDecision |
execution gate outcome | permission layer |
TaskRecord |
durable work goal | task board |
RuntimeTaskState |
live execution slot | runtime manager |
TeamMember |
persistent teammate | team config |
RequestRecord |
protocol state | request tracker |
WorktreeRecord |
isolated execution lane | worktree index |
MCPServerConfig |
external capability config | settings / plugin config |
High-completion systems become much easier to understand when every important record has one clear job and one clear layer.