← All architecture templates
07AgentsBlueprint

Workflow and state-machine agent

A deterministic state machine controls a multi-step process while models handle bounded decisions.

Runtime flow

What happens, in order.

The flow becomes the backbone of the audit trace. Every important boundary needs an input, an output, timing, and an owner.

  1. 01

    Create a versioned workflow instance

  2. 02

    Advance only through permitted state transitions

  3. 03

    Retry transient failures with idempotency

  4. 04

    Verify and record the terminal business state

Components

System inventory

  • Workflow engine
  • State store
  • Task queue
  • Model steps
  • Retry policy

Test packs

Required coverage

  • State transitions
  • Retries
  • Partial failure
  • Idempotency
  • Recovery

Evidence

Capture contract

  • Workflow state
  • Transition log
  • Attempts
  • Errors
  • Final outcome