gabriel / musehub public
refactor BREAKING dev
AI Agent gabriel · 149 days ago · Apr 26, 2026 · Diff

refactor: update to muse.core.types; strict canonical codec enforcement

- All 71 muse.core._types imports updated to muse.core.types - b64url_encode/decode moved to muse.core.types; re-exported from crypto/keys.py - b64url_decode: strict bare-only (MSign sig= field); decode_pubkey/decode_sig for prefixed values - TestB64urlDecodeCanonicalPrefix rewritten to test strict contracts

sha256:440a36fd811a18d5bec205f79ed9027cb251c52ab64e595ce0575c3cef8f44be sha
+8 ~85 −9 symbols
sha256:8cfc4a00acaafc45012b5d5cd25e2397c09633da0cf9f046a913960458a6ffa8 snapshot
+8
symbols added
~85
symbols modified
−9
symbols removed
0
dead code introduced
Semantic Changes 102 symbols
~ deploy/decompress_objects.py .py 3 symbols modified
~ deploy/load-tests/locustfile.py .py 2 symbols modified
~ musehub/api/routes/musehub/repos.py .py 1 symbol modified
~ musehub/core/genesis.py .py 2 symbols modified
~ musehub/crypto/keys.py .py 2 symbols added, 3 symbols removed, 2 symbols modified
b64url_decode function function b64url_decode L263–277
b64url_encode function function b64url_encode L280–282
base64 import import base64 L51–51
+ b64url_decode import import b64url_decode L56–56
+ b64url_encode import import b64url_encode L56–56
~ musehub/db/muse_cli_models.py .py 1 symbol modified
~ musehub/main.py .py 1 symbol modified
~ musehub/muse_cli/db.py .py 1 symbol modified
~ musehub/muse_cli/snapshot.py .py 1 symbol modified
~ musehub/protocol/responses.py .py 1 symbol modified
~ musehub/services/musehub_coord.py .py 1 symbol modified
~ musehub/services/musehub_domains.py .py 1 symbol modified
~ musehub/services/musehub_issues.py .py 1 symbol modified
~ musehub/services/musehub_jobs.py .py 1 symbol modified
~ musehub/services/musehub_search.py .py 1 symbol modified
~ musehub/types/hash_utils.py .py 1 symbol modified
~ musehub/worker.py .py 1 symbol modified
~ tests/bench_push.py .py 1 symbol modified
~ tests/factories.py .py 1 symbol modified
~ tests/test_api_performance.py .py 1 symbol modified
~ tests/test_background_jobs.py .py 1 symbol modified
~ tests/test_domains.py .py 1 symbol modified
~ tests/test_encoding_roundtrip.py .py 1 symbol modified
~ tests/test_gc_object_refs.py .py 1 symbol modified
~ tests/test_msign.py .py 2 symbols modified
~ tests/test_msign_request_signing.py .py 1 symbol modified
~ tests/test_musehub_auth_crypto.py .py 6 symbols added, 6 symbols removed, 1 symbol modified
TestB64urlDecodeCanonicalPrefix class class TestB64urlDecodeCanonicalPrefix L461–504
test_bare_base64url_still_decodes method method test_bare_base64url_still_decodes L470–474
test_prefixed_ed25519_key_decodes method method test_prefixed_ed25519_key_decodes L476–481
test_prefixed_ed25519_signature_decodes method method test_prefixed_ed25519_signature_decodes L483–488
test_round_trip_prefixed_key method method test_round_trip_prefixed_key L497–504
test_unknown_prefix_still_decodes_payload method method test_unknown_prefix_still_decodes_payload L490–495
+ TestBase64UrlCodecContracts class class TestBase64UrlCodecContracts L461–511
+ test_b64url_decode_bare_64_byte_signature method method test_b64url_decode_bare_64_byte_signature L478–482
+ test_b64url_decode_bare_value method method test_b64url_decode_bare_value L472–476
+ test_decode_pubkey_extracts_raw_bytes method method test_decode_pubkey_extracts_raw_bytes L484–491
+ test_decode_pubkey_round_trip_with_real_key method method test_decode_pubkey_round_trip_with_real_key L502–511
+ test_decode_sig_extracts_raw_bytes method method test_decode_sig_extracts_raw_bytes L493–500
~ tests/test_object_integrity.py .py 1 symbol modified
~ tests/test_object_store.py .py 1 symbol modified
~ tests/test_quota_via_refs.py .py 1 symbol modified
~ tests/test_snapshot_entries.py .py 1 symbol modified
~ tests/test_static_assets.py .py 2 symbols modified
~ tests/test_wire_multibatch_push.py .py 1 symbol modified
~ tests/test_wire_oc_server.py .py 1 symbol modified
~ tests/test_wire_push_plain.py .py 1 symbol modified
~ tests/test_wire_snapshot_delta.py .py 1 symbol modified
~ tests/test_wire_streaming_push.py .py 1 symbol modified
← Older Oldest on dev
All commits
Newer → Latest on dev

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