Juncture Checkpoint
Checkpoint persistence for Juncture state machine executions. Provides save/restore of complete execution state for time-travel debugging, crash recovery, and HITL workflows.
Features
- Multiple Storage Backends: Memory, SQLite, PostgreSQL
- Serialization Formats: JSON, MessagePack, JSON+ (with type info)
- Encryption: AES-GCM + PBKDF2 for sensitive checkpoints
- TTL Support: Automatic checkpoint expiration
- Delta Recovery: Recover from delta-only checkpoints
Usage
use ;
// In-memory checkpoint saver (for testing)
let saver = new;
// SQLite checkpoint saver (for persistence)
let saver = new.await?;
// Use with graph compilation
let graph = state_graph
.compile_with_checkpointer;
Storage Backends
| Backend | Feature | Description |
|---|---|---|
MemorySaver |
(default) | In-memory storage, ideal for testing |
SqliteSaver |
sqlite |
SQLite-backed persistence |
PostgresSaver |
postgres |
PostgreSQL-backed persistence |
Serialization
JsonSerializer- Standard JSON serializationMsgpackSerializer- Binary MessagePack formatJsonPlusSerializer- JSON with type informationEncryptedSerializer- AES-GCM encryption (featureencryption)
License
Licensed under Apache License, Version 2.0. See LICENSE for details.