feat: Phase 3 — MPack wire format replaces msgpack bundle encoding
- Add build_wire_mpack() and parse_wire_mpack() to muse/core/mpack.py - Add _parse_pack_bytes() to muse/core/pack_store.py (inverse of _build_pack) - transport.py: detect b'MUSE' magic; parse with parse_wire_mpack, fall back to msgpack for legacy - 18 new tests in tests/test_mpack_wire.py covering round-trip, integrity, zero loose objects - 66 tests pass across all Phase 1/2/3 test files
sha256:315674a246fbad2e2437c85441cfff2e9e8578a9ea7987b1d9dd0c0cf25d4320
sha
+51
~2
symbols
sha256:e263750f0140e80a565f84cf9b277c1200b8dc3dc3e8794faff13925eedd2688
snapshot
+51
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes
53 symbols
+
test_apply_wire_mpack_writes_no_loose_objects
function
function test_apply_wire_mpack_writes_no_loose_objects L265–273
+
test_legacy_msgpack_not_mistaken_for_wire_mpack
function
function test_legacy_msgpack_not_mistaken_for_wire_mpack L281–288
+
test_objects_section_identical_to_local_pack_bytes
function
function test_objects_section_identical_to_local_pack_bytes L236–257
+
test_parse_wire_mpack_raises_on_bad_magic
function
function test_parse_wire_mpack_raises_on_bad_magic L118–121
+
test_parse_wire_mpack_raises_on_corrupted_footer
function
function test_parse_wire_mpack_raises_on_corrupted_footer L124–129
+
test_wire_mpack_footer_sha256_is_valid
function
function test_wire_mpack_footer_sha256_is_valid L110–115
+
test_wire_mpack_round_trip_commit_fields
function
function test_wire_mpack_round_trip_commit_fields L176–185
+
test_wire_mpack_round_trip_object_count
function
function test_wire_mpack_round_trip_object_count L156–160
+
test_wire_mpack_round_trip_objects_byte_exact
function
function test_wire_mpack_round_trip_objects_byte_exact L137–143
+
test_wire_mpack_round_trip_objects_readable_after_apply
function
function test_wire_mpack_round_trip_objects_readable_after_apply L146–153
+
test_wire_mpack_round_trip_snapshot_delta_add
function
function test_wire_mpack_round_trip_snapshot_delta_add L201–207
+
test_wire_mpack_round_trip_snapshots
function
function test_wire_mpack_round_trip_snapshots L193–198
+
test_wire_mpack_starts_with_muse_magic
function
function test_wire_mpack_starts_with_muse_magic L98–101
+
test_wire_mpack_version_byte_is_one
function
function test_wire_mpack_version_byte_is_one L104–107
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:315674a246fbad2e2437c85441cfff2e9e8578a9ea7987b1d9dd0c0cf25d4320 --body "your comment"
No comments yet. Be the first to start the discussion.