Expand description
Canonical wire contract for Structure.
Every UI sends CommandEnvelope values and observes EventEnvelope
values. Runtime, session, and runner modules must not invent parallel wire
types.
Modules§
- lrp
- Loop–Runner Protocol (LRP) wire types.
Structs§
- Command
Envelope - Command
Failure - A command rejected before it can produce a session-scoped event.
- Command
Id - Context
Decision - Context
Entry - Context
Identity - Context
RunSnapshot - Event
Envelope - EventId
- Event
Metadata - Plan
Entry - One durable item in the agent’s current plan.
- Protocol
Schema Document - RunId
- Session
Id - Workspace
Id
Enums§
- Agent
Loop Termination Reason - Command
- Context
Decision Reason - Context
Item Type - Context
Mode - Only exposure mode changes; policy enablement remains a separate decision.
- Context
Source Kind - Disclosure
Level - Error
Code - Event
- Model
Call Outcome - Model
Response Rejection Reason - Output
Stream - Plan
Entry Status - RunStatus
- Session
Status - Terminal
Controller Policy - Runtime-owned terminal control policy, recorded in canonical Events so experiments can prove that memory arms used identical control.
- Terminal
Controller State - Terminal
Controller Transition Reason - Tool
Interaction Kind - Provider- and runner-neutral retention semantics for one tool interaction. Concrete runners classify their own tools; Runtime memory policy consumes this typed event and never parses tool arguments.
- Tool
Permission Outcome - Whether a tool call was allowed to run.
- Tool
Permission Scope - How long a permission decision applies.
- Tool
Permission Source - Who or what produced a permission decision.
Constants§
Functions§
- event_
trace_ v1 - Project an ordered, single-session event stream. Returns no partial trace when its one MiB bound is exceeded. Source envelopes remain authoritative. Every protocol event has a record, including variants added in the future.
- protocol_
schema - Export the complete protocol schema used by code generators and hosts.
- trace_
atom_ v1 - UTF-8 percent encoding keeps record and path separators unambiguous.