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
Exclude reference-only facts from god-class & hotspots fan-in (GAP-XL-15)
test_ref/file_ref nodes are indexed into the coupling graph, so their
RelCalls edges landed in the reverse adjacency map and were counted as
dependents by the two reverse-index explainers — inflating fan-in and
centrality and, worse, drifting the outlier threshold so genuine
findings dropped below the cut. The plugin contract promised "no other
explainer is affected"; it was.
Add Graph.ArchitecturalReverse(), which filters reverse edges by source
fact kind, and point god-class and hotspots at it. orphans,
impact_analysis, traverse and find_path keep the unfiltered Reverse() —
they intentionally surface those references.
Explainer read-path + a derived index only; facts.jsonl is byte-identical,
so no cacheVersion bump and no golden regeneration.
Tests: facts.TestArchitecturalReverse_ExcludesReferenceKinds,
{godclass,hotspots}.TestExplain_ExcludesTestRefFanIn.
0 commit comments