feat(coupling): Phase 0 — rewrite CouplingProvider to pure-SQL BFS
Replaces _run_muse subprocess with BFS commit walk over musehub_symbol_history_entries — same pattern as EntangleProvider.
Algorithm mirrors muse code coupling exactly: - BFS from HEAD, cap _MAX_WALK=10_000 - Derive file = address.split('::')[0]; bare paths valid at file level - Skip commits with > _MAX_FILES_PER_COMMIT=200 distinct files (mass-commit guard) - Accumulate pair_co_changes[(a,b)] for every unordered file pair (a < b) - Filter co_changes >= _MIN_CO_CHANGES=2, sort DESC, truncate to _MAX_PAIRS=200 - DELETE stale rows, upsert fresh set - Returns count + commits_analysed + truncated in result metadata
No local repo required. Works in every deployment environment.
sha256:03e2f72dbfc28522824d06dcbd26972d3504482bc16e058d35d502abef0db45a
sha
sha256:36091a1345dc9ac9a24842fc99229ed9bb219593643506d4427721da4554d006
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:03e2f72dbfc28522824d06dcbd26972d3504482bc16e058d35d502abef0db45a --body "your comment"
No comments yet. Be the first to start the discussion.