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
+29
~5
symbols
sha256:f058b9dbb16bf1c2313fd8f15ee8dabfbaca0445dccee7f99323a87610c56642
snapshot
+29
symbols added
~5
symbols modified
0
dead code introduced
Semantic Changes
34 symbols
+
test_fi2_delta_frame_sha256_matches_object_id
method
async_method test_fi2_delta_frame_sha256_matches_object_id L224–291
+
test_fi1_full_frame_sha256_matches_object_id
method
async_method test_fi1_full_frame_sha256_matches_object_id L156–190
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:b4fb9db2858c35127b2dee273737d049c228a6f6d13ff8d671ad1c6dec5d5cae --body "your comment"
No comments yet. Be the first to start the discussion.