gabriel / muse public
fix stash task/ax-stash-snapshot-id-canonical #1 / 1
gabriel · 164 days ago · Apr 16, 2026 · Diff

fix(stash): normalize bare-hex snapshot_id to sha256: canonical form on load

_load_stash now normalizes any bare 64-hex snapshot_id from older stash.json files to the canonical sha256:<hex> form on read. New entries from compute_snapshot_id already produce the canonical form.

Also fix TestStashDeltaRegression._make_commit_with_files which was writing bare-hex object IDs into manifests — now uses sha256: prefix consistently.

sha256:9af0d1d3472e59478cb93b82a9e107bf3c97f50c2e910c19cfc997da03618b0b sha
+4 ~5 symbols
sha256:32a88721fe13566b36afc40697eb135fe80ddf7a1ae00ddbfcd589b4909e9be4 snapshot
+4
symbols added
~5
symbols modified
0
dead code introduced
Semantic Changes 9 symbols
~ muse/cli/commands/stash.py .py 1 symbol modified
~ tests/test_cmd_stash.py .py 4 symbols added, 4 symbols modified
+ TestStashSnapshotIdNormalization class class TestStashSnapshotIdNormalization L124–185
+ test_bare_hex_snapshot_id_normalized_on_load method method test_bare_hex_snapshot_id_normalized_on_load L127–145
+ test_canonical_snapshot_id_unchanged_on_load method method test_canonical_snapshot_id_unchanged_on_load L147–165
+ test_mixed_entries_all_normalized method method test_mixed_entries_all_normalized L167–185
← Older Oldest on task/ax-stash-snapshot-id-canonical
All commits
Newer → Latest on task/ax-stash-snapshot-id-canonical

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