gabriel / muse public
fix patch task/verify-commit-tdd-fix #1 / 1
AI Agent gabriel · 161 days ago · Apr 18, 2026 · Diff

fix: _force_write_commit path bug + TDD tests for signature_format dispatch

- Strip sha256: prefix in _force_write_commit so overwrite lands on the correct file (bare-hex path), matching what read_commit reads from - Add 3 TDD tests that were red before the fix: * test_force_write_commit_path_matches_read_commit * test_signature_format_round_trips_through_store * test_verify_one_unknown_signature_format_returns_invalid - All 25 tests in test_cmd_verify_commit.py now pass

sha256:115fc97818e610f8a1e978269d810674f489a5c329d52a432c9357ccfebd7bf0 sha
+6 ~16 −2 symbols
sha256:359e1c4f5fb5ec20bbabaaa90df61e293de5bf2658907bf6b38aef3a09d530c9 snapshot
+6
symbols added
~16
symbols modified
−2
symbols removed
0
dead code introduced
Semantic Changes 24 symbols
~ muse/cli/commands/verify_commit.py .py 1 symbol added, 5 symbols modified
+ PROVENANCE_PAYLOAD_VERSION import import PROVENANCE_PAYLOAD_VERSION L66–66
~ tests/test_cmd_verify_commit.py .py 5 symbols added, 2 symbols removed, 11 symbols modified
− _sha function function _sha L48–49
− hashlib import import hashlib L18–18
+ PROVENANCE_PAYLOAD_VERSION import import PROVENANCE_PAYLOAD_VERSION L26–26
+ blob_id import import blob_id L35–35
+ test_force_write_commit_path_matches_read_commit function function test_force_write_commit_path_matches_read_commit L468–495
+ test_signature_format_round_trips_through_store function function test_signature_format_round_trips_through_store L498–506
+ test_verify_one_unknown_signature_format_returns_invalid function function test_verify_one_unknown_signature_format_returns_invalid L509–528
← Older Oldest on task/verify-commit-tdd-fix
All commits
Newer → Latest on task/verify-commit-tdd-fix

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