Skip to main content

Module checkpoint_manager

Module checkpoint_manager 

Source
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§

CheckpointEntry
One named snapshot.
CheckpointManager
Session-scoped checkpoint store.
CheckpointMeta
Lightweight metadata returned by list. The full Status clone is kept inside the manager.