gabriel / musehub public
refactor BREAKING wire task/mwp-cleanup #5 / 5
AI Agent gabriel · 55 days ago · Apr 24, 2026 · Diff

refactor(wire): delete legacy wire_push + gRPC dead code; migrate all tests to wire_push_stream

- Delete wire_push() (~430 lines) — superseded by wire_push_stream; all security invariants (quota, signed commits, agent flagging) are enforced in the stream path - Delete iter_wire_frames_grpc() — gRPC-era frame parser, unreachable from any route - Delete WirePushRequest + WirePushResponse Pydantic models (only served wire_push) - Remove application/grpc Content-Type branch from request_signing.py - Delete test_grpc_wire_framing.py (tested dead iter_wire_frames_grpc) - Migrate test_wire_push_plain.py: drop S5/S6 gRPC tests - Migrate test_security_hardening.py: replace wire_push mock tests with source-inspection tests against wire_push_stream - Migrate test_object_store.py: quota rejection test uses MWP frame builder - Migrate test_quota_via_refs.py: quota rejection test uses wire_push_stream - Migrate test_snapshot_entries.py: 3 wire push tests use wire_push_stream; add MANIFEST_WIRE (sha256: IDs) + _run_wire_push_stream helper that pre-seeds MusehubObject rows so the server's object-existence check passes

The MWP streaming push (wire_push_stream) is now the sole push entry point.

sha256:159b89d76a195e447ca519f501b24fde424c20da02cf83991b99bdefa839492b sha
sha256:3f8bd9b25b90494173b28dc5df694a5194fe6f5d6ed305fa2d363abd73691772 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:159b89d76a195e447ca519f501b24fde424c20da02cf83991b99bdefa839492b --body "your comment"