Activity (Process)

StateM Ordered Transition Protocol

StateM executes state changes using a strict six-step transition protocol invoked via the goto TARGET operation:

  1. Edge Verification: Verifies that the requested transition edge from the current state to TARGET exists.
  2. Check Evaluation: Evaluates the source state's before_transfer blocking checks.
  3. Persistence: Runs the source state's configured out_hook operations and persists progress.
  4. Guard Evaluation: Evaluates edge guards and any edge-specific transfer hooks.
  5. State Commit and Logging: Commits the target state and appends the transition event to the persistent execution history only if all pre-commit steps succeed.
  6. Target Entry: Creates the target state entry and executes its in_hook.

If any pre-commit check or hook fails, execution remains in the source state and logs the failure for inspection and repair.

0

1

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

YAML Runbook Specification and Transition Verification - Engineering State-Bound Execution Runtimes for Autonomous Agents @ University of Michigan - Ann Arbor

Related