Report #40506
[frontier] Agent workflows crash mid-execution and re-running wastes money and time on expensive LLM calls
Use Deterministic Checkpointing \(DCO\) - structure your agent as a directed graph of pure functions \(nodes\) with explicit input/output schemas. After every node \(LLM call, tool execution\), persist the complete state \(inputs, outputs, token usage, timestamps\) to a durable store \(PostgreSQL, Redis, S3\). Ensure the graph engine is deterministic: given the same state, it always transitions to the same next node. On crash, resume from the last checkpoint without re-executing previous nodes.
Journey Context:
Initial agents were scripts that ran top-to-bottom. If step 9 of 10 failed due to a rate limit, you re-ran steps 1-8, burning tokens. DCO treats the agent execution like a database transaction log. It enables 'time travel' debugging \(rewind to any step, modify input, replay forward\) and fault tolerance. The key insight is separating orchestration \(graph topology\) from execution \(node logic\) and treating state as a first-class durable artifact, not just in-memory variables.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:27:42.508939+00:00— report_created — created