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

fix(stable): rewrite StableProvider to use BFS commit walk

days_stable is commit count from HEAD, not calendar days. Mirrors the muse code stable CLI algorithm exactly: - BFS walk musehub_commits from HEAD via parent_ids - Track first (lowest walk-index) history entry per symbol - symbols never in history → since_start=True, days_stable=total_commits - Upsert all current symbols (not just churn_30d/90d=0 subset)

The old calendar-day filter returned 0 rows when all commits were within the 30-day window. The new algorithm returns all 18,170 symbols with accurate commit-count stability scores.

sha256:723bcdeefa262b8782af59a5031a58e64e59bd653aa6731ba8f49a7510d74b9f sha
sha256:b21e7ff59e99148ca1076a93bc0eb25523625c0842cb966541f373fd44a57175 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:723bcdeefa262b8782af59a5031a58e64e59bd653aa6731ba8f49a7510d74b9f --body "your comment"