gabriel / musehub public
feat BREAKING entangle dev
AI Agent gabriel · 46 days ago · May 3, 2026 · Diff

feat(entangle): Phase 0+1 — migration + pure-SQL EntangleProvider

Phase 0 — migration 0010: - Adds commits_both_active, file_a, file_b, same_file, a_in_test, b_in_test to musehub_intel_entangle - Adds indexes on (repo_id, file_a), (repo_id, co_change_rate), (repo_id, symbol_a), (repo_id, symbol_b)

Phase 1 — EntangleProvider rewrite: - Replaces subprocess _run_muse call with pure BFS + SQL (same as StableProvider) - BFS-walks musehub_commits from HEAD; groups history entries by commit - Excludes import pseudo-symbols and bare paths (no '::' in address) - Skips mass-refactor commits (> 500 symbols touched) - co_change_rate = co_changes / min(|commits_A|, |commits_B|) — matches CLI - Filters same-file pairs; stores top 500 by rate DESC, co_changes DESC - Verified: top pairs match muse code entangle --json field-for-field

sha256:bad87d447b3c4b3745b48744af4976dc7fcd8aefe30eb030e881c2bcf9635b34 sha
sha256:7463d021434d9a70c4b93c16eaa108c98a056013453e3cc31a688bd319bb07e3 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:bad87d447b3c4b3745b48744af4976dc7fcd8aefe30eb030e881c2bcf9635b34 --body "your comment"