Skip to content

Workflow Design

Design workflows as explicit state machines:

  • Each state has a single command: .dwp/command/<state>
  • A command does work and emits the next state by creating a commit
  • Keep policies (retries, approvals, gates) in workflow code, not in AYNIG

Prefer small, idempotent commands and stable trailer conventions.