Skip to content

feat(memory): hash-manifested snapshot archives - #89

Open
HugoXK wants to merge 2 commits into
mainfrom
janus/21-snapshot-archive
Open

HugoXK wants to merge 2 commits into
mainfrom
janus/21-snapshot-archive

Conversation

@HugoXK

@HugoXK HugoXK commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Refs JAN-021.

What changed

  • New core/janus/memory/snapshot_archive.py: as-of export of observations and feature rows with a hash-manifested archive.
  • Manifest records row counts, per-file SHA-256, lineage, and a content hash; verify_snapshot detects missing files, hash mismatches, row-count drift, and manifest tampering.
  • import_snapshot verifies first, then writes observations and feature rows into a fresh store; the round-trip preserves feature hashes.
  • CLI adds janus archive export/verify/import.
  • Tests cover as-of filtering, tamper detection, verified import, feature-hash round-trip, and the CLI path.

Verification

  • tests/test_snapshot_archive.py: 5 tests pass locally.
  • Parquet is written when an optional writer is installed; JSON remains authoritative and verifiable.

@HugoXK
HugoXK requested a review from HugoXK-bot as a code owner November 26, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant