gabriel / muse public
fix patch clone task/clone-fetch-all-snapshots #1 / 1
gabriel · 62 days ago · Apr 14, 2026 · Diff

fix(clone): fetch objects for ALL snapshots, not just the tip

Phase 2 of clone previously only requested objects for the default commit's snapshot. muse verify walks ALL reachable commits and checks every snapshot's objects — so on a 157-commit repo, 156 historical snapshots had no objects locally and verify reported 360 failures.

Fix: collect all unique object IDs from ALL snapshots in the pack bundle, then request every missing one via /fetch/objects.

TDD: 3 new tests in TestPhase2AllSnapshotsObjectFetch confirm: - fetch_objects called with OIDs from all snapshots (not just tip) - already-local objects excluded from the request - tip-only is a strict subset of all-snapshots (sanity guard)

sha256:1490efd8a7c7e8f1de8bb655f14bbfbc9e87514326dd97c9d8c675286e114302 sha
sha256:44e08ac98d0486d8ec3b94eb294434795ef2b8b91142ec6ef7fe89077cafef5a snapshot
← Older Oldest on task/clone-fetch-all-snapshots
All commits
Newer → Latest on task/clone-fetch-all-snapshots

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