gabriel / muse public
refactor BREAKING dev
AI Agent gabriel · 114 days ago · May 16, 2026 · Diff

refactor: delete mwp.py and purge remaining MWP references

- Delete muse/core/mwp.py (824 lines): MPackStreamWriter, MPackStreamReader, MuseWireFrameWriter, WireFrameError, frame TypedDicts, MPACK_VERSION, WIRE_CONTENT_TYPE, _canonical_header_payload — none used in production - Move compute_snapshot_delta / apply_snapshot_delta from mwp.py → mpack.py (pure manifest diff functions with no streaming dependency) - Delete tests/test_phase4_dag_prune_push.py: tested _is_ancestor (deleted) - Delete tests/test_wire_oc_n_objects.py: tested _frame_generator (deleted) - Update test_snapshot_delta.py: import from muse.core.mpack (not mwp) - Strip MWP mentions from docstrings/comments in: compression.py, store.py, symbol_cache.py, mpack.py, transport.py, clone.py - Remove duplicate _WireVal = _MsgVal reassignment in transport.py

sha256:3eaced7b5b9e42acf16605f5a6c01a7fc27fa62d8055004034cd129f715554e4 sha
+2 ~11 −101 symbols
sha256:d0a19216692eabdbff36b5abc832f0bfd8dfbc58d8ab3cff3f1321fb2bf58ac7 snapshot
+2
symbols added
~11
symbols modified
−101
symbols removed
0
dead code introduced
Semantic Changes 114 symbols
~ muse/core/mwp.py .py 48 symbols removed
FRAME_ACK variable variable FRAME_ACK L150–150
FRAME_COMMIT_PACK variable variable FRAME_COMMIT_PACK L145–145
FRAME_END variable variable FRAME_END L146–146
FRAME_ERROR variable variable FRAME_ERROR L148–148
FRAME_HEADER variable variable FRAME_HEADER L143–143
FRAME_OBJECT variable variable FRAME_OBJECT L144–144
FRAME_PROGRESS variable variable FRAME_PROGRESS L147–147
FRAME_RESULT variable variable FRAME_RESULT L149–149
MPACK_CONTENT_TYPE variable variable MPACK_CONTENT_TYPE L105–105
MPACK_VERSION variable variable MPACK_VERSION L104–104
MPackAckFrame class class MPackAckFrame L262–272
MPackCommitPackFrame class class MPackCommitPackFrame L212–217
MPackEndFrame class class MPackEndFrame L219–229
MPackErrorFrame class class MPackErrorFrame L242–251
MPackHeaderFrame class class MPackHeaderFrame L161–192
MPackObjectFrame class class MPackObjectFrame L194–210
MPackProgressFrame class class MPackProgressFrame L231–240
MPackResultFrame class class MPackResultFrame L253–260
MPackStreamReader class class MPackStreamReader L677–775
__init__ method method __init__ L706–717
decompress_object method method decompress_object L745–775
feed method method feed L719–727
frames method method frames L729–743
MPackStreamWriter class class MPackStreamWriter L321–671
write_ack method method write_ack L651–671
write_commit_pack method method write_commit_pack L545–572
write_end method method write_end L574–591
write_error method method write_error L612–625
write_header method method write_header L348–437
write_object method method write_object L503–543
write_object_raw method method write_object_raw L439–501
write_progress method method write_progress L597–610
write_result method method write_result L627–649
MuseWireFrameWriter class class MuseWireFrameWriter L784–824
wrap method method wrap L805–824
WIRE_CONTENT_TYPE variable variable WIRE_CONTENT_TYPE L106–106
WireFrameError class class WireFrameError L781–782
_ALL_FRAME_TAGS variable variable _ALL_FRAME_TAGS L152–155
_canonical_header_payload function function _canonical_header_payload L278–315
apply_snapshot_delta function function apply_snapshot_delta L126–140
compute_snapshot_delta function function compute_snapshot_delta L108–124
CommitDict import import CommitDict L97–97
Iterator import import Iterator L93–93
MsgpackDict import import MsgpackDict L98–98
SnapshotDict import import SnapshotDict L97–97
TypedDict import import TypedDict L93–93
msgpack import import msgpack L95–95
struct import import struct L92–92
~ tests/test_phase4_dag_prune_push.py .py 26 symbols removed
_make_commit function function _make_commit L75–99
_repo function function _repo L56–66
_write_obj function function _write_obj L69–72
CommitRecord import import CommitRecord L47–47
SnapshotRecord import import SnapshotRecord L47–47
__version__ import import __version__ L44–44
annotations import import annotations L35–35
blob_id import import blob_id L48–48
compute_commit_id import import compute_commit_id L46–46
compute_snapshot_id import import compute_snapshot_id L46–46
datetime import import datetime L37–37
inspect import import inspect L38–38
json import import json L39–39
muse_dir import import muse_dir L49–49
pathlib import import pathlib L40–40
pytest import import pytest L42–42
write_commit import import write_commit L47–47
write_object import import write_object L45–45
write_snapshot import import write_snapshot L47–47
test_p4_1_collect_object_ids_uses_prune function function test_p4_1_collect_object_ids_uses_prune L106–119
test_p4_2_walk_commits_uses_prune function function test_p4_2_walk_commits_uses_prune L126–134
test_p4_3_collect_object_ids_stops_at_have_boundary function function test_p4_3_collect_object_ids_stops_at_have_boundary L141–177
test_p4_4_is_ancestor_uses_walk_dag function function test_p4_4_is_ancestor_uses_walk_dag L184–202
test_p4_5_is_ancestor_finds_candidate_in_bundle function function test_p4_5_is_ancestor_finds_candidate_in_bundle L209–238
test_p4_6_is_ancestor_finds_candidate_in_store function function test_p4_6_is_ancestor_finds_candidate_in_store L245–269
test_p4_7_is_ancestor_returns_false_for_unreachable function function test_p4_7_is_ancestor_returns_false_for_unreachable L276–303
~ tests/test_wire_oc_n_objects.py .py 27 symbols removed
TestPOCN0Empty class class TestPOCN0Empty L118–125
test_e_n_objects_is_zero method method test_e_n_objects_is_zero L123–125
test_h_n_objects_is_zero method method test_h_n_objects_is_zero L119–121
TestPOCN1TwoOObjects class class TestPOCN1TwoOObjects L132–145
_objects method method _objects L133–137
test_e_n_objects_is_two method method test_e_n_objects_is_two L143–145
test_h_n_objects_is_two method method test_h_n_objects_is_two L139–141
TestPOCN2OneOCObjectTwoChunks class class TestPOCN2OneOCObjectTwoChunks L152–173
_objects method method _objects L158–159
test_e_n_objects_is_one method method test_e_n_objects_is_one L168–173
test_h_n_objects_is_one method method test_h_n_objects_is_one L161–166
TestPOCN3MixedObjects class class TestPOCN3MixedObjects L180–204
_objects method method _objects L181–196
test_e_n_objects_is_two method method test_e_n_objects_is_two L202–204
test_h_n_objects_is_two method method test_h_n_objects_is_two L198–200
TestPOCN4HEConsistency class class TestPOCN4HEConsistency L211–226
_cases method method _cases L212–218
test_h_equals_e_for_all_cases method method test_h_equals_e_for_all_cases L220–226
_h_and_e function function _h_and_e L99–111
_make_o_object function function _make_o_object L41–48
_make_oc_chunks function function _make_oc_chunks L51–76
_parse_mwp_frames function function _parse_mwp_frames L79–96
MsgpackDict import import MsgpackDict L34–34
annotations import import annotations L29–29
blob_id import import blob_id L34–34
msgpack import import msgpack L33–33
struct import import struct L31–31
~ muse/core/mpack.py .py 2 symbols added
+ apply_snapshot_delta function function apply_snapshot_delta L838–852
+ compute_snapshot_delta function function compute_snapshot_delta L823–835
~ muse/core/transport.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:3eaced7b5b9e42acf16605f5a6c01a7fc27fa62d8055004034cd129f715554e4 --body "your comment"