gabriel / muse public
refactor BREAKING task/unified-object-store #5 / 9
AI Agent gabriel · 21 days ago · May 20, 2026 · Diff

refactor: migrate test suite to unified object store IDs (batches 1–15)

Replace all compute_commit_id/compute_snapshot_id shim imports with hash_commit/hash_snapshot from muse.core.ids across the test suite. Fix accompanying bugs surfaced by the migration:

- _write_object helpers in test_cmd_merge/shelf now use write_object() so the blob header is included - test_cmd_merge_tree snapshot existence check uses object_path() - test_cmd_name_rev/rev_parse/read_commit collision messages recomputed under new hash_commit formula - verify.py snapshot sweep walks iter_stored_objects() instead of scanning .muse/snapshots/*.msgpack - test_cmd_verify_commit _force_write_commit writes to unified object store with commit <size>\0<payload> header - test_cmd_verify_hardening bare hex snap_id wrapped with long_id()

sha256:b0e91fbefb1a2ce2d5cd47f2ac09380c9c25f961d8b2d280b5ccbd0d9e8bd350 sha
sha256:9d384fbf47336d7254b6929c7ced935fee28f50c0ca26acaa1143e96bb76cebc snapshot

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