gabriel / muse public
feat BREAKING wire task/w16-snapshot-delta #1 / 1
AI Agent gabriel · 49 days ago · Apr 23, 2026 · Diff

feat(wire): snapshot delta encoding in push stream

Wall 16 root cause: C frames sent full 1071-entry snapshot manifests for every commit (50 commits × 128KB = ~4MB per frame), exceeding CF's gRPC per-message limit of ~248KB.

Fix: delta-encode snapshots in _frame_generator. - First snapshot in stream: full manifest - Each subsequent: delta(added, removed) against previous - Frame size now proportional to what changed (2-5 files ≈ 1KB per delta) - Server reconstructs full manifests via stream-local _snap_manifest_cache

New: compute_snapshot_delta, apply_snapshot_delta in muse.core.mpack New: write_commit_pack accepts snapshot_deltas=[...] Tests: test_snapshot_delta.py (10), test_wire_snapshot_delta.py (8)

sha256:5a2df6e01f1482d1c058a7a5b12d1adad04c1985114ab930377398edb786640e sha
sha256:dc19dd1ca110866686432bdca8480a6dca90450aecfe47330ec04b8777ed6104 snapshot
← Older Oldest on task/w16-snapshot-delta
All commits
Newer → Latest on task/w16-snapshot-delta

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