Skip to content

Workflow Design

Design workflows as explicit state machines:

  • Each state has a single command: .aynig/command/<state>
  • A command does work and emits the next state by writing SET_STATE {...} to stdout
  • Keep policies (retries, approvals, gates) in workflow code, not in AYNIG

Prefer small, idempotent commands and stable trailer conventions.