[claude] Mnemosyne archive snapshots — backup and restore (#1268) #1270
Reference in New Issue
Block a user
Delete Branch "claude/issue-1268"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1268
What
Adds point-in-time snapshot support to the Mnemosyne archive.
Archive methods
snapshot_create(label)— serializes current archive to a timestamped JSON file in~/.hermes/mnemosyne/snapshots/snapshot_list()— lists all snapshots newest-first with metadatasnapshot_restore(snapshot_id)— replaces live archive with snapshot state (persists to disk)snapshot_diff(snapshot_id)— shows added/removed/modified entries vs current stateCLI
Tests
17 new tests in
test_snapshots.pycovering all operations, edge cases (empty archive, missing snapshot IDs, persistence after reload, modified entry detection).