gabriel / musehub public
feat BREAKING intel task/velocity-pure-sql #1 / 1
AI Agent gabriel · 46 days ago · May 3, 2026 · Diff

feat(intel): rewrite VelocityProvider as pure-SQL BFS

Replace _run_muse subprocess (exits 2 in worker env) with a pure-SQL implementation that mirrors muse code velocity exactly.

- BFS-walks commit DAG from HEAD ref (cap 10_000 commits) - Splits walk into current window (20 commits) and prior window (20 commits) - Derives module as directory of file component of each address - Accumulates added/removed/modified per-commit per-module - Computes active_commits, stagnant_commits, acceleration, net - Sorts by active_commits DESC, stores top 20 - DELETE stale rows + upsert fresh set (same pattern as CouplingProvider)

sha256:16555f9716940f91d88223347eb29f93565f0da2bb9b969f7bf4250688e654d8 sha
sha256:be4e8bcc305fa42f817bb7f24fd70a1d61845b568d48d0fc8e577452c07090be snapshot
← Older Oldest on task/velocity-pure-sql
All commits
Newer → Latest on task/velocity-pure-sql

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:16555f9716940f91d88223347eb29f93565f0da2bb9b969f7bf4250688e654d8 --body "your comment"