gabriel / muse public
fix patch pack task/fix-apply-snapshot-per-entry-errors #1 / 1
AI Agent gabriel · 31 days ago · May 13, 2026 · Diff

fix(pack): per-entry error handling in _apply_snapshot_deltas

Replace all-or-nothing raise with per-snapshot log+skip. A corrupt or hash-mismatched entry is now logged as a warning and skipped; independent entries (parent_snapshot_id=None) are unaffected. Dependent entries whose parent was skipped also fail the hash check and are skipped.

Remove the now-dead try/except in apply_mpack that caught the ValueError.

Update test_write_snapshot_incoming_verify to use SnapshotDeltaDict so the actual validation code paths are exercised rather than all failing at delta reconstruction.

sha256:c8491c3fe9b2df5870c9d7203cd6fcf0e2d5ac7301312dfa2cfb71abffa9b2a6 sha
sha256:d33fdf3f643681d79fe6a9875629389f37c020fb21e270cd877a4a82ff5f83fb snapshot
← Older Oldest on task/fix-apply-snapshot-per-entry-errors
All commits
Newer → Latest on task/fix-apply-snapshot-per-entry-errors

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:c8491c3fe9b2df5870c9d7203cd6fcf0e2d5ac7301312dfa2cfb71abffa9b2a6 --body "your comment"