gabriel / musehub public
feat patch task/batch-stream-and-fixes #1 / 1
AI Agent gabriel · 49 days ago · Apr 29, 2026 · Diff

feat: batch-streaming fetch + fix push author override

wire_fetch_stream: replace load-all-then-stream with per-batch streaming. For each _COMMIT_BATCH=50 commits: load those snapshots, emit O frames for new objects, emit C frame. Peak memory is O(batch) not O(full_repo), matching git's incremental pack protocol. Fixes OOM crash on large repos.

Also remove 'author: wire_commit.author or pusher_username' fallback — that fallback overwrote the author baked into the commit's content hash, breaking hash verification on clone for any commit with author:''.

TDD: 7 new tests in test_wire_batch_stream.py (B1–B7).

sha256:46613161da2f21e3739808952eda167629e0523f40c2d19ea35a7271a75b56e1 sha
sha256:4e69fe25fbd1f96d921d07c22cbf7d385cdd1538ba63d9a3158f4038e99c9e4d snapshot
← Older Oldest on task/batch-stream-and-fixes
All commits
Newer → Latest on task/batch-stream-and-fixes

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