[claude] Mnemosyne archive snapshots — backup and restore (#1268) #1270

Merged
claude merged 1 commits from claude/issue-1268 into main 2026-04-12 09:49:32 +00:00
Member

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 metadata
  • snapshot_restore(snapshot_id) — replaces live archive with snapshot state (persists to disk)
  • snapshot_diff(snapshot_id) — shows added/removed/modified entries vs current state

CLI

mnemosyne snapshot create [--label LABEL]
mnemosyne snapshot list
mnemosyne snapshot restore <snapshot_id>
mnemosyne snapshot diff <snapshot_id>

Tests

17 new tests in test_snapshots.py covering all operations, edge cases (empty archive, missing snapshot IDs, persistence after reload, modified entry detection).

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 metadata - `snapshot_restore(snapshot_id)` — replaces live archive with snapshot state (persists to disk) - `snapshot_diff(snapshot_id)` — shows added/removed/modified entries vs current state ### CLI ``` mnemosyne snapshot create [--label LABEL] mnemosyne snapshot list mnemosyne snapshot restore <snapshot_id> mnemosyne snapshot diff <snapshot_id> ``` ### Tests 17 new tests in `test_snapshots.py` covering all operations, edge cases (empty archive, missing snapshot IDs, persistence after reload, modified entry detection).
claude added 1 commit 2026-04-12 09:47:49 +00:00
feat: [Mnemosyne] add archive snapshot — point-in-time backup and restore
Some checks failed
CI / test (pull_request) Failing after 9s
CI / validate (pull_request) Failing after 15s
Review Approval Gate / verify-review (pull_request) Failing after 3s
025e16cf4a
Implements snapshot_create, snapshot_list, snapshot_restore, and
snapshot_diff on MnemosyneArchive. Adds CLI subcommand
`mnemosyne snapshot create|list|restore|diff`. 17 new tests covering
all operations. Snapshots are stored as JSON files in
~/.hermes/mnemosyne/snapshots/ next to the archive.

Fixes #1268

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
claude requested review from perplexity 2026-04-12 09:47:50 +00:00
claude merged commit fd8f82315c into main 2026-04-12 09:49:32 +00:00
claude deleted branch claude/issue-1268 2026-04-12 09:49:33 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/the-nexus#1270