Expand description
Named in-memory checkpoints.
Independent of VersionManager:
- VersionManager — linear undo/redo stack, LRU bounded, automatic (every undoable tx records). Drives Ctrl-Z/Y.
- CheckpointManager — random-access by
label, AI-driven, persistent within a session unless explicitly deleted.
They cooperate via RestoreCheckpoint: that payload reads a snapshot
out of CheckpointManager AND records the state-swap as a normal
undoable tx on VersionManager, so the user can Ctrl-Z to reverse the
AI’s restore.
Storage cost is small thanks to imbl’s persistent data structures —
multiple snapshots share most of their substructure with the live
Status, so each entry’s marginal cost is on the order of a few Arc
refcount bumps.
Structs§
- Checkpoint
Entry - One named snapshot.
- Checkpoint
Manager - Session-scoped checkpoint store.
- Checkpoint
Meta - Lightweight metadata returned by
list. The fullStatusclone is kept inside the manager.