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

refactor: rename _push_stream → _push_mpack; delete MWP frame tests; update push.py docstring

- push.py: renamed _push_stream → _push_mpack (implementation already used presigned mpack protocol, only the name was stale); replaced MWP streaming docstring with accurate presigned mpack description - test_push_force_flag.py: updated _push_stream → _push_mpack import and references - test_push_object_integrity.py: updated stale comment referencing _push_stream - tests/test_wire_framing.py: deleted (tested MWP MuseWireFrameWriter) - tests/test_mpack_frames.py: deleted (tested MWP frame constants) - tests/test_wire_push_plain.py: deleted (tested application/x-muse-wire content-type)

sha256:10425950510498d92e04d7a24ca5b2d11e7aa5023780e9ce8cc24cb1beb7b6b7 sha
+1 ~5 −115 symbols
sha256:029a4c9f2eb85eaeba3ae0611c8a86ef071da0831fc8f8d53c3abff0a76fe5b8 snapshot
+1
symbol added
~5
symbols modified
−115
symbols removed
0
dead code introduced
Semantic Changes 121 symbols
~ tests/test_mpack_frames.py .py 70 symbols removed
TestCanonicalHeaderPayload class class TestCanonicalHeaderPayload L273–328
test_contains_version method method test_contains_version L291–298
test_covers_all_signing_fields method method test_covers_all_signing_fields L300–308
test_deterministic_across_calls method method test_deterministic_across_calls L310–316
test_different_inputs_produce_different_payloads method method test_different_inputs_produce_different_payloads L318–328
test_is_valid_msgpack method method test_is_valid_msgpack L282–289
test_returns_bytes method method test_returns_bytes L274–280
TestConstants class class TestConstants L22–81
test_frame_ack_tag_is_A method method test_frame_ack_tag_is_A L79–81
test_frame_commit_pack_tag_is_C method method test_frame_commit_pack_tag_is_C L59–61
test_frame_end_tag_is_E method method test_frame_end_tag_is_E L63–65
test_frame_error_tag_is_X method method test_frame_error_tag_is_X L71–73
test_frame_header_tag_is_H method method test_frame_header_tag_is_H L51–53
test_frame_object_tag_is_O method method test_frame_object_tag_is_O L55–57
test_frame_progress_tag_is_P method method test_frame_progress_tag_is_P L67–69
test_frame_result_tag_is_R method method test_frame_result_tag_is_R L75–77
test_frame_tags_are_distinct method method test_frame_tags_are_distinct L42–49
test_frame_tags_are_single_uppercase_ascii method method test_frame_tags_are_single_uppercase_ascii L31–40
test_mpack_content_type method method test_mpack_content_type L27–29
test_mpack_version method method test_mpack_version L23–25
TestDocstring class class TestDocstring L336–354
_doc method method _doc L337–339
test_documents_compression method method test_documents_compression L353–354
test_documents_content_type method method test_documents_content_type L347–348
test_documents_frame_sequence method method test_documents_frame_sequence L341–342
test_documents_mpack_version method method test_documents_mpack_version L344–345
test_documents_provenance method method test_documents_provenance L350–351
TestMPackAckFrame class class TestMPackAckFrame L260–265
test_has_ack_common_ready method method test_has_ack_common_ready L261–265
TestMPackCommitPackFrame class class TestMPackCommitPackFrame L203–212
test_exists method method test_exists L204–206
test_has_required_fields method method test_has_required_fields L208–212
TestMPackEndFrame class class TestMPackEndFrame L215–228
test_exists method method test_exists L216–218
test_has_n_commits_for_integrity_check method method test_has_n_commits_for_integrity_check L225–228
test_has_n_objects_for_integrity_check method method test_has_n_objects_for_integrity_check L220–223
TestMPackErrorFrame class class TestMPackErrorFrame L244–249
test_has_msg_and_code method method test_has_msg_and_code L245–249
TestMPackHeaderFrame class class TestMPackHeaderFrame L89–157
test_exists method method test_exists L90–92
test_has_agent_id_field method method test_has_agent_id_field L129–132
test_has_branch_field method method test_has_branch_field L109–112
test_has_domains_field method method test_has_domains_field L149–152
test_has_have_field method method test_has_have_field L154–157
test_has_model_id_field method method test_has_model_id_field L134–137
test_has_n_commits_field method method test_has_n_commits_field L119–122
test_has_n_objects_field method method test_has_n_objects_field L114–117
test_has_objects_bytes_field method method test_has_objects_bytes_field L124–127
test_has_op_field method method test_has_op_field L104–107
test_has_signature_field method method test_has_signature_field L144–147
test_has_signer_key_field method method test_has_signer_key_field L139–142
test_has_t_field method method test_has_t_field L94–97
test_has_version_field method method test_has_version_field L99–102
TestMPackObjectFrame class class TestMPackObjectFrame L160–200
test_exists method method test_exists L161–163
test_has_content_field method method test_has_content_field L175–178
test_has_dom_field method method test_has_dom_field L191–195
test_has_enc_field method method test_has_enc_field L180–183
test_has_id_field method method test_has_id_field L170–173
test_has_path_field method method test_has_path_field L197–200
test_has_sz_field method method test_has_sz_field L185–189
test_has_t_field method method test_has_t_field L165–168
TestMPackProgressFrame class class TestMPackProgressFrame L231–241
test_has_msg_field method method test_has_msg_field L238–241
test_has_pct_field method method test_has_pct_field L232–236
TestMPackResultFrame class class TestMPackResultFrame L252–257
test_has_ok_msg_heads_head method method test_has_ok_msg_heads_head L253–257
annotations import import annotations L11–11
get_type_hints import import get_type_hints L14–14
msgpack import import msgpack L13–13
~ tests/test_wire_framing.py .py 38 symbols removed
TestEnvelopeLogicalMismatch class class TestEnvelopeLogicalMismatch L276–307
test_can_detect_type_mismatch method method test_can_detect_type_mismatch L289–307
test_matching_types_are_consistent method method test_matching_types_are_consistent L279–287
TestHashMismatch class class TestHashMismatch L197–228
_tamper method method _tamper L200–202
test_tampered_frame_has_wrong_hash method method test_tampered_frame_has_wrong_hash L204–217
test_untampered_frame_hash_matches method method test_untampered_frame_hash_matches L219–228
TestSizeMismatch class class TestSizeMismatch L235–269
test_envelope_sz_matches_payload method method test_envelope_sz_matches_payload L238–246
test_sz_mismatch_detected method method test_sz_mismatch_detected L248–269
TestWall5Regression class class TestWall5Regression L314–375
_build_c_frame method method _build_c_frame L317–325
test_no_map32_from_truncation_at_various_offsets method method test_no_map32_from_truncation_at_various_offsets L348–375
test_truncation_at_magic_detected_cleanly method method test_truncation_at_magic_detected_cleanly L327–332
test_truncation_mid_payload_gives_wrong_length method method test_truncation_mid_payload_gives_wrong_length L334–346
TestWireFrameWriterRoundtrip class class TestWireFrameWriterRoundtrip L63–190
test_empty_payload method method test_empty_payload L143–153
test_import method method test_import L66–67
test_large_payload_size_field method method test_large_payload_size_field L131–141
test_total_frame_byte_length method method test_total_frame_byte_length L180–190
test_wire_content_type_import method method test_wire_content_type_import L72–74
test_wire_frame_error_import method method test_wire_frame_error_import L69–70
test_wrap_commit_pack_frame method method test_wrap_commit_pack_frame L108–117
test_wrap_end_frame method method test_wrap_end_frame L119–129
test_wrap_header_frame method method test_wrap_header_frame L76–91
test_wrap_object_frame method method test_wrap_object_frame L93–106
test_wrap_produces_exact_layout method method test_wrap_produces_exact_layout L155–178
_decode_envelope function function _decode_envelope L47–56
_make_envelope function function _make_envelope L32–44
_pack function function _pack L24–25
_unpack function function _unpack L28–29
MsgpackDict import import MsgpackDict L18–18
MsgpackValue import import MsgpackValue L18–18
annotations import import annotations L12–12
blob_id import import blob_id L18–18
msgpack import import msgpack L16–16
pytest import import pytest L17–17
struct import import struct L14–14
~ tests/test_wire_push_plain.py .py 6 symbols removed
annotations import import annotations L12–12
inspect import import inspect L14–14
test_p1_frame_generator_mwp_magic function function test_p1_frame_generator_mwp_magic L21–30
test_p1_frame_generator_with_objects function function test_p1_frame_generator_with_objects L33–46
test_p2_push_uses_wire_content_type function function test_p2_push_uses_wire_content_type L53–59
test_p3_push_upload_first function function test_p3_push_upload_first L66–77
~ muse/cli/commands/push.py .py 2 symbols modified
~ tests/test_push_force_flag.py .py 1 symbol added, 1 symbol removed, 3 symbols modified
_run_push_stream function function _run_push_stream L140–177
+ _run_push_mpack function function _run_push_mpack L140–177
← 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:10425950510498d92e04d7a24ca5b2d11e7aa5023780e9ce8cc24cb1beb7b6b7 --body "your comment"