0106:
Agents step as Transition<Self> state
machines
Status: Proposed (default; pending owner confirmation)
Amends ADR-0010; v0 is single-threaded and has no fork.
Context
Agent behavior needs deterministic state transitions without introducing concurrent execution or making interfaces into values. Cancellation and child completion must be represented explicitly.
Decision
Define
Agent.step(self, event) -> Transition<Self>,
where a transition contains the next state and actions. Children
use the parent's agent type. Actions cover model/tool calls,
spawn, cancel and finish; events carry their results and lifecycle
changes. Cancellation proceeds monotonically through requested,
acknowledged, suppressed and confirmed; late results after
suppression are dropped and journaled.
Consequences
Agent behavior remains explicit, value-based and replayable. If
Transition<Self> does not typecheck, use the
documented two-method fallback only through an ADR amendment, not
a language change.