gabriel / musehub public
feat BREAKING entangle dev
AI Agent gabriel · 138 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
+10 ~3 symbols
sha256:7463d021434d9a70c4b93c16eaa108c98a056013453e3cc31a688bd319bb07e3 snapshot
+10
symbols added
~3
symbols modified
0
dead code introduced
Semantic Changes 13 symbols
+ branch_labels variable variable branch_labels L16–16
+ depends_on variable variable depends_on L17–17
+ down_revision variable variable down_revision L15–15
+ downgrade function function downgrade L59–69
+ Union import import Union L9–9
+ annotations import import annotations L7–7
+ op import import op L12–12
+ sa import import sa L11–11
+ revision variable variable revision L14–14
+ upgrade function function upgrade L20–56
← 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"