gabriel / muse public
refactor BREAKING task/consolidate-fingerprint #1 / 1
AI Agent gabriel · 155 days ago · Apr 22, 2026 · Diff

refactor: consolidate public_key_fingerprint to single canonical impl

- Add public_key_fingerprint(raw: bytes) -> str to muse.core._types, wrapping blob_id for semantic clarity (key identity vs content addressing) - Update keypair.public_key_fingerprint to delegate to _types impl - Delete _fingerprint private helper from agent.py (was returning bare hex); update call site to import from _types - Update all tests: remove TestFingerprint / TestUnitFingerprint classes (tested deleted function); update length assertions 64 -> 71; update test_fingerprint_matches_sha256_of_public_key to expect sha256: prefix

sha256:de46dbe9be881144559f9987c243c658604274b2eaccd0a6050a45a3fbd07f0f sha
~10 −16 symbols
sha256:46921231bf4b3e3330883b241c2f11f711df822ac6b78c1d221a086141ba46b5 snapshot
~10
symbols modified
−16
symbols removed
0
dead code introduced
Semantic Changes 26 symbols
~ muse/cli/commands/agent.py .py 1 symbol removed, 2 symbols modified
_canonical_fingerprint import import _canonical_fingerprint L96–96
~ muse/core/_types.py .py 1 symbol modified
~ muse/core/keypair.py .py 1 symbol removed, 3 symbols modified
_canonical_fingerprint import import _canonical_fingerprint L49–49
~ tests/test_agent_supercharge.py .py 10 symbols removed
TestUnitFingerprint class class TestUnitFingerprint L390–431
test_deterministic method method test_deterministic L417–420
test_different_inputs_differ method method test_different_inputs_differ L413–415
test_empty_bytes method method test_empty_bytes L408–411
test_known_input method method test_known_input L393–397
test_matches_canonical_formula method method test_matches_canonical_formula L428–431
test_returns_prefixed_string method method test_returns_prefixed_string L399–402
test_single_byte_inputs method method test_single_byte_inputs L422–426
test_total_length_is_71 method method test_total_length_is_71 L404–406
hashlib import import hashlib L40–40
~ tests/test_cmd_agent.py .py 4 symbols removed, 4 symbols modified
TestFingerprint class class TestFingerprint L181–198
test_returns_prefixed_string method method test_returns_prefixed_string L184–187
test_sha256_of_input method method test_sha256_of_input L189–193
test_total_length_is_71 method method test_total_length_is_71 L195–198
← Older Oldest on task/consolidate-fingerprint
All commits
Newer → Latest on task/consolidate-fingerprint

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