Skills
LangGraph Time Travel: Checkpoint-Based State Replay Converts Non-Deterministic Agent Failures Into Debuggable State Machines
LangGraph's durable execution model persists full agent state at every node boundary via PostgresSaver (production standard) or AWS DynamoDB with automatic S3 overflow for payloads exceeding DynamoDB's 400KB item limit—enabling Time Travel, the ability to replay any historical state and re-execute from an arbitrary checkpoint. For debugging, this transforms the classic 'the agent did something weird Tuesday' post-mortem into a reproducible inspection of every intermediate value at every step. The sync checkpointing mode (write-before-proceed) guarantees durability at a small latency cost; async mode trades a small crash-window for performance—the choice should be explicit in production.
Source
↳ Follow the thread