Architecture
Tyrum is an autonomous worker platform built around one control plane, durable agent identities, conversation-scoped continuity, and turn-driven progress.
Read this page
- Read this if: you are new to Tyrum and want the 5-minute system map.
- Skip this if: you already know the major boundaries and need mechanics details.
- Go deeper: start with Target-state package graph, Gateway, Agent, Messages and Conversations, and ARCH-20 conversation and turn clean-break decision.
System map
Core boundaries
- Gateway control plane: owns transport, validation, auth, routing, durable turn coordination, approvals, and operator-facing APIs.
- Agent runtime: owns persona continuity through conversations, prompt assembly, tool use, memory recall, and work-state updates.
- Conversations: durable context boundaries that separate one UI thread, DM, group chat, heartbeat stream, or delegated child context from another.
- Turns: the only top-level unit of agent progress. A turn consumes prompt context, makes progress, and records durable outcomes.
- Transcript and conversation state: transcript is retained history; conversation state is the mutable continuity layer that survives compaction.
- Memory and WorkBoard: durable state outside the conversation transcript. Memory is agent-scoped. WorkBoard is workspace-scoped.
Primary runtime flows
Interactive flow
- A surface event enters the gateway and is normalized into one typed message envelope.
- The gateway resolves the target agent and conversation, appends durable history, and schedules the next turn.
- The turn assembles prompt context from conversation state, memory, and work state.
- The turn streams progress, updates durable state, and may create follow-up turns or child conversations.
Background flow
- Automation, approvals, external callbacks, or work-state signals target an existing conversation or create a dedicated child conversation.
- The gateway schedules a turn in that conversation under the same durable rules as interactive work.
- The turn updates transcript, conversation state, memory, and work state without switching into a second top-level activity model.
Architecture posture
- Conversation-first continuity: context continuity is modeled through conversations.
- Turn-driven progress: progress is expressed as turns and durable state transitions.
- Durable state over transcript-only: transcript is retained history, but current truth lives in conversation state, memory, and WorkBoard.
- Child conversations for isolation: isolation is created by separate conversations when needed.
Contributor contract
This architecture section documents the clean-break target model. New design and implementation work should align to this vocabulary even when current code still reflects older terms. The forward execution contract is ARCH-23 native runtime and governed CLI tools, with the generic launcher specified by ARCH-24 governed process capability, its family-wide governance and truthful confinement posture specified by ARCH-25 process-family governance and truthful posture, durable background lifecycle specified by ARCH-26 durable background process lifecycle, specialist CLI guidance specified by ARCH-27 governed specialist CLI skills, and typed replaceable runtime seams governed by ARCH-29 policy-owning provider microkernel. The previous package-extraction contract (Target-state package graph) remains superseded as a forward plan; its currently enforced boundary rules and historical milestones require deliberate reevaluation under ARCH-23.
Go deeper
- ARCH-23 native runtime and governed CLI tools
- ARCH-24 governed process capability
- ARCH-25 process-family governance and truthful posture
- ARCH-26 durable background process lifecycle
- ARCH-27 governed specialist CLI skills
- ARCH-29 policy-owning provider microkernel
- D1 kernel invariants and provider control-plane contract
- I0 typed isolation-provider contract
- M0 typed primary-memory provider contract
- C0 ordered-many context-strategy provider contract
- ARCH-22 governed gateway over external harnesses (superseded)
- Gateway
- Agent
- Target-state package graph
- Messages and Conversations
- Conversations and Turns
- Transcript, Conversation State, and Prompt Context
- Protocol
- Work board and delegated execution
- Memory
- ARCH-20 conversation and turn clean-break decision