gabriel / muse public
fix patch object_store main #32 / 47
gabriel · 64 days ago · Apr 16, 2026 · Diff

fix(object_store): strip sha256: prefix before constructing filesystem path

object_path() was slicing object_id[:plen]/object_id[plen:] but after the sha256: prefix enforcement the ID starts with 'sha256:' — causing the shard directory to be 'sh/' and filename to be 'a256:...' instead of '7e/364b...'.

Fix: removeprefix('sha256:') before the shard split, same pattern as _commit_path and _snapshot_path in store.py.

sha256:4058d36a2c03c33e95f854d8b237027f186d3afaec2cb1bddcad1f4677da90a7 sha
sha256:67a57a3af9f16cf938aab103ab66326bf9704e1d3a585bb76ad95d2001435732 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:4058d36a2c03c33e95f854d8b237027f186d3afaec2cb1bddcad1f4677da90a7 --body "your comment"