Part II — What survives, and where to go next
Sophos is deliberately small: one Node process, one SQLite file, one LangGraph graph with two nodes. Production systems usually move durability into something larger, such as a workflow engine, a managed agent runtime or a message-driven platform. That move is often the right one. It changes who implements durability. It does not answer the questions this part asked.
What should survive an implementation change?
Replace LangGraph checkpoints with a durable workflow engine and the vocabulary changes: steps become activities, threads become workflow histories, resume becomes replay. The design questions stay:
| Concern | The question that must still have an answer | Where Part II answers it for Sophos |
|---|---|---|
| Checkpoints | What exactly is recorded, and at what granularity? Is the unit a tool call, a turn or a step? | R2, R3 |
| Application records | Which records does your application own, separately from the engine's history? Sophos needed runs although the framework already had threads. | R2 |
| Recovery | After a crash, what is in flight, who notices, and who decides whether to resume? | R6 |
| Retries | Which steps are retried automatically, how often, and by whom: the engine, the client or the model itself? | R7 |
| Interruption | What happens to a live stream or a half-finished step when a connection drops or the process stops? | R4, R6 |
| Idempotency | When a step with an external effect runs twice, does the receiver recognise the repeat? | R7 |
| Duplicated work | Which repetitions are merely wasteful (a second model call) and which are harmful (a second email, a second charge)? | R7 |
| Failure boundaries | Where does the data go, and which network paths remain, once the runtime is "local" or "self-hosted"? | R8 |
The most important lesson transfers unchanged. Durable execution makes a workflow resumable. Across a network boundary, the caller alone cannot make an external effect happen exactly once: what systems actually provide is retries plus a receiver that recognises a repeat. Whichever engine you adopt, read its documentation for what it retries and what it records, and then decide which side effects still need an idempotency key. That decision remains yours.
Continue beyond this laboratory
You now understand this architectural problem. These are strong implementations, standards or ecosystems to explore next. They are a short, deliberate selection; Where CognoKratos fits explains how they were chosen and what the labels mean.
- Dapr Agents portable open source
Agents whose execution runs on Dapr Workflows, from a CNCF project. Read how it records progress and retries failed work, then apply the R7 question: which of your tools would run twice, and what makes that safe? - Temporal portable open source
A durable execution platform with documented integrations for agent frameworks. Its documentation is explicit that activities can be retried and should be idempotent, which is the lesson of R7 at production scale.
Both runtimes abstract away much of what Sophos makes you build and observe: run records, checkpoints, crash windows and resume. That is their value. Part II exists so that you know what they are doing on your behalf.