Workflow
Long-Running Workflows Need Heartbeat Semantics
Without heartbeats, a long-running workflow and an abandoned one look identical, and every recovery decision starts with an unanswerable question.
The most expensive question during an incident is whether the workflow is still working. Heartbeats replace that debate with a timestamp.
Heartbeat design
- Heartbeats carry position, so staleness has context.
- Missed-beat thresholds trigger routing, not just alerts.
- Takeover after silence follows a protocol that prevents duplicates.
Use the architecture guide, blackboard schema, and audit schema to tell slow work from dead work by protocol instead of intuition.