Expand description
Per-session log of turn-level checkpoint records.
Each session writes a checkpoints.jsonl file alongside its
transcript. One line = one turn, capturing the pre/post checkpoint
ids and the set of files this turn touched (via structured tool
calls and/or fallback shell-diff).
This metadata is what recursive sessions rewind reads to:
- find the right
precheckpoint to restore to, - compute the union of files touched in the rewound-away turns,
- detect conflicts where the workspace’s current state diverges from this session’s last known post-snapshot.
Structs§
- Checkpoint
LogWriter - Append-only writer.
- Checkpoint
Record - One record per turn.
Enums§
Functions§
- read_
log - Read all records from
path. Empty / missing file → empty vec. - truncate_
to_ turn - Truncate the log to records with
turn < cutoff. Atomic via temp file + rename.