Expand description
Task Checkpointing & Persistence
Enables resumable long-running tasks by saving state to disk. Captures:
- Task description and status
- Conversation messages
- Tool call history with timing
- Git state for reproducibility
- Error logs for debugging
Checkpoints are stored as JSON files and can be resumed with Agent::resume().
Structs§
- Checkpoint
Delta - Represents the delta/diff between two checkpoints
- Checkpoint
Manager - Manager for saving and loading task checkpoints
- Error
Log - Log of an error during execution
- GitCheckpoint
Info - Git state at checkpoint time
- Guard
Counters - Anti-thrash guard counters persisted across resume. These are in-memory on the agent and otherwise reset to 0 on every restart — so a watchdog that auto-resumes a crash-looping task would hand it fresh rope forever, turning crash-loops into amnesiac infinite loops. Persisting them lets the guards (prefill breaker, mutation-gate abort, no-action abort) fire ACROSS resumes.
- Memory
Entry - A memory entry for serialization
- Task
Checkpoint - A complete checkpoint of task state
- Task
Summary - Summary of a task for listing
- Tool
Call Log - Log of a tool execution
- Verification
Result - Result of a visual verification check (used for verification results)
- Visual
Assertion - A persistent visual assertion that gates task progression. Can be used both for pending assertions (to verify) and completed assertions (in history).
Enums§
- Task
Status - Status of a task checkpoint
Constants§
- CURRENT_
CHECKPOINT_ VERSION - Current version of the checkpoint format
Functions§
- capture_
git_ state - Capture current git state for checkpoint