Module finding_hotspot_overlap
Expand description
finding-hotspot-overlap — external scanner findings fused with behavioral
hotspot and code-health signal.
For each file path that appears in the external findings sidecar, this analysis emits one row carrying:
findings— total finding count across all enginesengines— comma-joined, sorted list of engine namesworst_level— most severe level ("error">"warning">"note")hotspot_score— from [hotspots::run_hotspots]; 0.0 when absentrevs_percentile—PERCENT_RANKof this file’s revision count within the hotspot result set; 0.0 when absent from hotspotshealth_band—"red"/"yellow"/"green"from [code_health::run_code_health];"unknown"when absentpriority— classifier produced bypriority_label
§Join strategy
The external sidecar and the main FactsDb each own a separate !Send + !Sync DuckDB connection; they MUST NOT be ATTACHed together. All joining
is done in Rust via HashMap lookups after materialising each side
independently.
§Absent paths
A path that has findings but is not in the hotspot result set (new file,
below min_revs, unsupported language) still appears in the output with
hotspot_score = 0.0, revs_percentile = 0.0. This is the honest
LEFT-join contract documented to callers.
Structs§
- Finding
Hotspot Overlap Row - One row of
finding-hotspot-overlapoutput.
Functions§
- priority_
label - Classify priority given the three fused signals.
- run_
finding_ hotspot_ overlap - Run the
finding-hotspot-overlapanalysis. - run_
finding_ hotspot_ overlap_ with - Run the
finding-hotspot-overlapanalysis with pre-computed behavioral rows.