gabriel / musehub public
fix minor fix/object-integrity-storage-is-truth #1 / 1
gabriel · 168 days ago · Apr 11, 2026 · Diff

fix: storage is source of truth for object existence checks

wire_filter_objects: two-phase check — DB for candidates, then parallel backend.exists() to confirm bytes actually exist in storage. wire_push_objects: storage-based dedup instead of DB-based dedup.

A DB record saying an object exists is not proof it exists. Only the storage backend knows for certain. This matches git's model: the object store IS the truth, not a metadata table.

After deploy, a muse push from local will correctly detect all objects missing from staging storage and re-upload them.

sha256:4f4456f0b9645143fe9d9096958f9b479e4453f583bad56f626c2637beba851d sha
+1 ~2 symbols
sha256:e2a8fa66c68e9f8fea53c017d730bcb49a5afda929fefe1ef5c832a6abbc0239 snapshot
+1
symbol added
~2
symbols modified
0
dead code introduced
Semantic Changes 3 symbols
~ tests/test_wire_protocol.py .py 1 symbol added
+ test_filter_objects_storage_is_truth_not_db function async_function test_filter_objects_storage_is_truth_not_db L519–577
← Older Oldest on fix/object-integrity-storage-is-truth
All commits
Newer → Latest on fix/object-integrity-storage-is-truth

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:4f4456f0b9645143fe9d9096958f9b479e4453f583bad56f626c2637beba851d --body "your comment"