You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
blast-radius's embedded [deps] section is nondeterministic across identical runs #153
Running blast-radius repeatedly on an unchanged repo at a fixed ref produces different function and dependency counts each time. Only the embedded [deps] sub-section varies; the rest of the output is stable.
So the standalone deps scanner is fine. Only the copy of it embedded in blast-radius races.
Likely cause
Looks like a concurrent scan that's cut off by blast-radius's character budget or a timeout — whichever workers have finished when the budget is hit is what lands in the output. That would explain why counts vary downward-ish and why the standalone command, which has no such budget, is stable.
Why it matters
Anything comparing two blast-radius runs — CI gating, a diff of before/after, an LLM told "here is the dependency context" — sees changes that didn't happen. Nondeterministic output also makes the tool hard to snapshot-test.
Suggested fix
Collect results deterministically before applying the budget: gather the full set, sort by a stable key, then truncate. If the truncation is intentional, report it (showing 174 of N functions) rather than presenting a partial count as the total.
Could not reproduce on main after the #174 to #182 series: 4 consecutive codemap blast-radius --text --ref main . runs on a 6-file Go diff returned identical 144 functions · 0 deps, and --markdown matched. The embedded deps scan may have been stabilised by the index rewrite in #182, or the race needs a larger diff than I had. Closing as not reproducible; reopen with a repo and ref that still vary and it gets chased.
Activity
fix(scanner): Keep the Rust fallback when cargo metadata times out
fix(scanner): sort importers and hubs so identical scans give identic…
JordanCoin commentedon Oct 7, 2026
Could not reproduce on
mainafter the #174 to #182 series: 4 consecutivecodemap blast-radius --text --ref main .runs on a 6-file Go diff returned identical144 functions · 0 deps, and--markdownmatched. The embedded deps scan may have been stabilised by the index rewrite in #182, or the race needs a larger diff than I had. Closing as not reproducible; reopen with a repo and ref that still vary and it gets chased.Generated by Claude Code
fix(scanner): return analyses in path order so blast-radius counts th…