Expand description
The runtime state + event loop (RFC 0026 §3, §8): one single-threaded
reactor over child frames, reaped children, executor results, timers, the
durable inbox and signals; state mutation happens only here (single
writer); every mutation is followed by a checkpoint decision (RFC 0025 §5).
The other runtime::* modules add impl Runtime blocks for turns, tools,
steps and subagents; this file owns construction, the loop, lifecycle and
the status view.
Structs§
- Counters
- Counters for status/reports.
- Instruction
- The current instruction (RFC 0028 §3
instruction.*). - Pending
Tool - A deferred internal-tool request (answered when its wait resolves).
- Runtime
- Subagent
Record - A subagent registry record (RFC 0026 §6; durable
subagent/<handle>). - TurnJob
- A queued root/conversation turn (RFC 0026 §3.2), waiting for a slot and for its context to be free.
Enums§
- Pending
Kind - Target
- Who receives a deferred tool’s answer.
Constants§
- ABANDON_
GRACE - Extra grace after the drain deadline before children are abandoned.
- TICK
- The reactor tick.
Functions§
- run_
exit_ code - RFC 0011 §5 exit mapping for a finished run.