Skip to main content

State Ownership

Which process owns each state transition and which database guard prevents conflicting writers.

Notes

  • CLI commands create, cancel, and read state.
  • Coordinators own run dispatch, run finalization, and outbox publishing.
  • Workers own chunk leases and execution/attempt terminal transitions.
  • DB guards are the authority boundary: shared run-state locks, leases, conflict keys, current-attempt checks, and outbox delivery claim tokens prevent stale writes.