gabriel / musehub public
refactor BREAKING task/fingerprint-prefix #1 / 1
AI Agent gabriel · 157 days ago · Apr 22, 2026 · Diff

refactor: canonical sha256: prefix for key_fingerprint

key_fingerprint() now returns "sha256:<64-hex>" (71 chars) matching the canonical fingerprint format used everywhere else in the Muse ecosystem.

- musehub/crypto/keys.py: updated key_fingerprint(), docstrings - musehub/db/musehub_auth_models.py: String(64)→String(71) for both auth tables - musehub/models/musehub_auth.py: updated Pydantic validators and patterns - alembic/versions/widen_auth_fingerprint_to_prefixed.py: migration widens columns and data-migrates existing rows with sha256: prefix - tests/test_musehub_auth_crypto.py: updated TestKeyFingerprint to expect sha256: prefix and 71-char length

sha256:1e51b77750a01e060bba89615fd2d81f3f8d52909013fb93109194236e43eff9 sha
+15 ~9 −3 symbols
sha256:f02a2c77cec0e30e162256688436b9c6f518a97ab3134c697f44a8ed9a0f83ff snapshot
+15
symbols added
~9
symbols modified
−3
symbols removed
0
dead code introduced
Semantic Changes 27 symbols
+ _TABLES variable variable _TABLES L28–31
+ branch_labels variable variable branch_labels L25–25
+ depends_on variable variable depends_on L26–26
+ down_revision variable variable down_revision L24–24
+ downgrade function function downgrade L48–59
+ Union import import Union L18–18
+ annotations import import annotations L16–16
+ op import import op L21–21
+ sa import import sa L20–20
+ revision variable variable revision L23–23
+ upgrade function function upgrade L34–45
~ tests/test_musehub_auth_crypto.py .py 4 symbols added, 3 symbols removed, 3 symbols modified
− test_is_sha256_hex method method test_is_sha256_hex L116–119
− test_output_is_64_hex_chars method method test_output_is_64_hex_chars L121–122
− test_output_is_lowercase method method test_output_is_lowercase L124–126
+ test_hex_part_is_lowercase method method test_hex_part_is_lowercase L128–131
+ test_is_sha256_prefixed_hex method method test_is_sha256_prefixed_hex L116–119
+ test_output_is_71_chars method method test_output_is_71_chars L121–122
+ test_starts_with_sha256_prefix method method test_starts_with_sha256_prefix L124–126
← Older Oldest on task/fingerprint-prefix
All commits
Newer → Latest on task/fingerprint-prefix

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