In simple environments, state machines are very adequate to define and track state. You quickly get to understand if your computation is misbehaving, and report progress to users or other programs. Here’s how to think about state when building your own Operator (based on lessons learnt from building our own).