gabriel / muse public
fix patch graph dev
AI Agent gabriel · 42 days ago · May 9, 2026 · Diff

fix(graph): migrate two missed Phase 2 BFS sites

_collect_ancestor_snapshots in verify.py replaces its inline deque BFS with iter_ancestors(exclude=frozenset(visited)). The main run_verify BFS remains inline — it must report missing commits as VerifyFailure entries, which iter_ancestors cannot do (it silently skips missing commits). Documented as an intentional exception alongside gc.py.

run_query in _midi_query.py replaces its while commit_id first-parent loop with iter_ancestors(first_parent_only=True, prune=..., max_commits=...).

Tests: 5 new in test_phase2b_missed_bfs_sites.py (V1, V2, M1, M2, M3).

sha256:853dcd33cf4aace116dfb1c28fa7d50853b943669b9518a097dd12f29ccec2a2 sha
sha256:868729927a82f1bb1d1e9a938480ff62f9a578b366709fbd7ade3ecfa4c67100 snapshot
← Older Oldest on dev
All commits
Newer → Latest on dev

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:853dcd33cf4aace116dfb1c28fa7d50853b943669b9518a097dd12f29ccec2a2 --body "your comment"