gabriel / muse public
fix task/object-store-algo-dir #2 / 2
AI Agent gabriel · 160 days ago · Apr 18, 2026 · Diff

fix: replace _sha256 bare-hex helpers with blob_id in test files

Replace all local _sha256(data) helpers (returning bare hexdigests) with blob_id(data) from muse.core._types (returning sha256:<hex>). Also fix downstream uses: shard path constructions using oid[:2]/oid[4:] now call oid.removeprefix('sha256:') first, and hardcoded bare-hex fake OIDs are updated to sha256: prefix form. Affected files: test_stress_object_store, test_core_coverage_gaps, test_core_blame, test_cli_new_commands, test_integrity_I8_object_store_scale.

sha256:61bae996bc0a7c2313d680a6cd078ff5c84e8c5db19f6ca8d7a2312a6fc09b97 sha
+5 ~98 −9 symbols
sha256:9692222f3aaca5a3af0ca1a325fbd2e3bbe42915fbbfc99d718e09233f902dc0 snapshot
+5
symbols added
~98
symbols modified
−9
symbols removed
0
dead code introduced
Semantic Changes 112 symbols
~ tests/test_cli_new_commands.py .py 1 symbol added, 2 symbols removed, 6 symbols modified
− _sha256 function function _sha256 L25–26
− hashlib import import hashlib L6–6
+ blob_id import import blob_id L13–13
~ tests/test_core_blame.py .py 1 symbol added, 2 symbols removed, 2 symbols modified
− _sha256 function function _sha256 L25–26
− hashlib import import hashlib L6–6
+ blob_id import import blob_id L14–14

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