gabriel / musehub public
feat patch task/grpc-framing #1 / 1
AI Agent gabriel · 153 days ago · Apr 23, 2026 · Diff

feat: add gRPC framing strip on server side

- Add iter_wire_frames_grpc() that strips 5-byte gRPC prefix before yielding MWP frames - wire_push_stream now calls iter_wire_frames_grpc instead of iter_wire_frames - request_signing.py exempts application/grpc content type from body hashing - Remove debug body_iter logging from wire.py - Add test_grpc_wire_framing.py: 7 tests covering server-side gRPC framing

sha256:a71920f985c358a129690a684cab6848f803cc23e5e3772243cd873238cb69ef sha
+18 ~3 symbols
sha256:3b5a42fbf3406ff1ebbba86c09640d4270db0a89a7439c7c3f3bf738360ff3f4 snapshot
+18
symbols added
~3
symbols modified
0
dead code introduced
Semantic Changes 21 symbols
~ tests/test_grpc_wire_framing.py .py 17 symbols added
+ _collect function async_function _collect L43–53
+ _grpc_wrap function function _grpc_wrap L33–35
+ _make_mwp_frame function function _make_mwp_frame L38–40
+ _pack function function _pack L29–30
+ _run function function _run L56–57
+ annotations import import annotations L16–16
+ asyncio import import asyncio L19–19
+ msgpack import import msgpack L21–21
+ pytest import import pytest L22–22
+ struct import import struct L18–18
+ test_empty_stream_yields_nothing function function test_empty_stream_yields_nothing L79–81
+ test_full_client_server_roundtrip function function test_full_client_server_roundtrip L166–178
+ test_multiple_frames_decoded_in_order function function test_multiple_frames_decoded_in_order L88–99
+ test_single_frame_roundtrip function function test_single_frame_roundtrip L64–72
+ test_truncated_grpc_body_raises function function test_truncated_grpc_body_raises L146–159
+ test_truncated_grpc_header_raises function function test_truncated_grpc_header_raises L127–139
+ test_wrong_compression_flag_raises function function test_wrong_compression_flag_raises L106–120
~ musehub/api/routes/wire.py .py 1 symbol modified
~ musehub/services/musehub_wire.py .py 1 symbol added, 1 symbol modified
+ iter_wire_frames_grpc function async_function iter_wire_frames_grpc L2150–2175
← Older Oldest on task/grpc-framing
All commits
Newer → Latest on task/grpc-framing

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