Concept icon
Concept

State as Context-and-Contract Boundary

In state-bound agent runtimes like StateM, each phase-level state functions simultaneously as a context boundary and a contract boundary to target distinct operational failure modes:

  1. Context Boundary: Entering a state triggers an entry hook (in_hook) that exposes the active phase, valid outgoing transitions, state-local instructions, and durable progress. This provides a fresh, explicit control anchor without erasing prior history or requiring the agent to infer its obligations from an append-only terminal log.
  2. Contract Boundary: Departing a state requires satisfying explicit exit conditions. An exit hook (out_hook) persists progress and artifacts, while a before_transfer block evaluates pre-commit checks (e.g., test execution, artifact generation, or approval) before the transition commits, ensuring unmet requirements block handoffs rather than silently propagating.

0

1

Concept icon
Updated 2026-09-11

Tags

Prep Sessions

Engineering State-Bound Execution Runtimes for Autonomous Agents @ University of Michigan - Ann Arbor

Ch.2 Agent Runtime Design and Execution Framework - Engineering State-Bound Execution Runtimes for Autonomous Agents @ University of Michigan - Ann Arbor

StateM Agent-Native Runtime Architecture - Engineering State-Bound Execution Runtimes for Autonomous Agents @ University of Michigan - Ann Arbor

Context and Contract Boundaries in Phase Execution - Engineering State-Bound Execution Runtimes for Autonomous Agents @ University of Michigan - Ann Arbor