gabriel / musehub public
fix patch wire dev #95 / 100
AI Agent gabriel · 29 days ago · May 15, 2026 · Diff

fix(wire): rename delta frame key base_id → base; fix repo_id in test helpers

Server was emitting {"base_id": base_oid} in delta O frames but the client reads frame.get("base", ""). The mismatch caused apply_delta(b"", delta) to produce garbage — sha256(garbage) != object_id → Content integrity failure.

Fix: renamed server-side key from base_id to base in wire_fetch_stream.

Also removed repo_id from MusehubCommit and MusehubSnapshot instantiation in test helpers after those columns were dropped from the globally content-addressed models. Added test_wire_fetch_stream_frame_integrity.py (FI-1 full frame baseline, FI-2 delta frame integrity) that was RED before this fix.

sha256:b4fb9db2858c35127b2dee273737d049c228a6f6d13ff8d671ad1c6dec5d5cae sha
sha256:f058b9dbb16bf1c2313fd8f15ee8dabfbaca0445dccee7f99323a87610c56642 snapshot

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