[Mnemosyne] Archive snapshot — point-in-time backup and restore (#1268) #1269

Closed
Rockachopa wants to merge 5 commits from feat/mnemosyne-snapshot into main
Owner

Summary

Adds a snapshot feature to Mnemosyne — point-in-time archive backup and restore.

Closes #1268.

What's new

New module: nexus/mnemosyne/snapshot.py

  • snapshot_create(archive, label) — timestamped JSON snapshot of full archive state
  • snapshot_list(archive) — list available snapshots, newest first
  • snapshot_restore(archive, snapshot_id) — replace archive contents from a snapshot
  • snapshot_diff(archive, snapshot_id) — compare snapshot vs current: added/removed/changed entries

CLI commands: mnemosyne snapshot {create|list|restore|diff}

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

Tests: nexus/mnemosyne/tests/test_snapshot.py

  • 12 tests covering create, list, restore, and diff operations

Use cases

  • Backup before consolidate or rebuild_links
  • Version history of archive state
  • Disaster recovery from known-good snapshots
## Summary Adds a **snapshot** feature to Mnemosyne — point-in-time archive backup and restore. Closes #1268. ### What's new **New module: `nexus/mnemosyne/snapshot.py`** - `snapshot_create(archive, label)` — timestamped JSON snapshot of full archive state - `snapshot_list(archive)` — list available snapshots, newest first - `snapshot_restore(archive, snapshot_id)` — replace archive contents from a snapshot - `snapshot_diff(archive, snapshot_id)` — compare snapshot vs current: added/removed/changed entries **CLI commands: `mnemosyne snapshot {create|list|restore|diff}`** - `mnemosyne snapshot create [-l label]` - `mnemosyne snapshot list` - `mnemosyne snapshot restore <snapshot_id>` - `mnemosyne snapshot diff <snapshot_id>` **Tests: `nexus/mnemosyne/tests/test_snapshot.py`** - 12 tests covering create, list, restore, and diff operations ### Use cases - Backup before `consolidate` or `rebuild_links` - Version history of archive state - Disaster recovery from known-good snapshots
Rockachopa added 5 commits 2026-04-12 09:45:48 +00:00
Point-in-time backup and restore for Mnemosyne.
snapshot_create, snapshot_list, snapshot_restore, snapshot_diff.
mnemosyne snapshot create|list|restore|diff
test_snapshot_create, test_snapshot_list, test_snapshot_restore, test_snapshot_diff
docs: add archive_snapshot to FEATURES.yaml (#1268)
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
25eee03f6b
Rockachopa requested review from perplexity 2026-04-12 09:45:49 +00:00
Member

🤖 Timmy PR Review — Status: Blocked

CI: All checks failing (validate, test, verify-review)

Merge: Conflicts with base branch.

Changes (442 additions, 1 deletion): Full snapshot system for Mnemosyne — snapshot_create, snapshot_list, snapshot_restore, snapshot_diff. Point-in-time backup and restore. Includes __init__.py exports, CLI subcommands, and comprehensive tests.

Note: This is the largest of the three Mnemosyne PRs. Conflicts with #1273 and #1271. Recommend merging this first as it's self-contained, then rebasing the others.

**🤖 Timmy PR Review — Status: Blocked** **CI:** ❌ All checks failing (validate, test, verify-review) **Merge:** ❌ Conflicts with base branch. **Changes (442 additions, 1 deletion):** Full snapshot system for Mnemosyne — `snapshot_create`, `snapshot_list`, `snapshot_restore`, `snapshot_diff`. Point-in-time backup and restore. Includes `__init__.py` exports, CLI subcommands, and comprehensive tests. **Note:** This is the largest of the three Mnemosyne PRs. Conflicts with #1273 and #1271. Recommend merging this first as it's self-contained, then rebasing the others.
gemini referenced this issue from a commit 2026-04-12 12:15:35 +00:00
gemini closed this pull request 2026-04-12 12:18:48 +00:00
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

Pull request closed

Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/the-nexus#1269