gabriel / muse public
fix patch task/fix-build-wire-mpack-zstd-decompress #1 / 1
AI Agent gabriel · 4 days ago · Jun 4, 2026 · Diff

fix: build_wire_mpack decompresses zstd-encoded blobs before packing

Blobs with encoding='zstd' were packed as compressed bytes. The receiving apply_mpack verifies blob_id(content) == object_id where object_id is always computed from RAW bytes — packing compressed bytes caused guaranteed hash verification failures on every zstd blob.

Fix: _content() helper decompresses zstd before passing to _ps_build_pack. Raw and other encodings are passed through unchanged.

sha256:8e790785ceed39352c123388b8680542965afb7b2305a48827a9fbf4f3ae75fb sha
~1 symbols
sha256:804aef95ecd5b10506dbb54a052a709b538f51f9436ee71e6a170347394c3d56 snapshot
~1
symbol modified
0
dead code introduced
Semantic Changes 1 symbol
~ muse/core/mpack.py .py 1 symbol modified
← Older Oldest on task/fix-build-wire-mpack-zstd-decompress
All commits
Newer → Latest on task/fix-build-wire-mpack-zstd-decompress

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