Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
docs: correct untested hotspot detection conditions (#3449)
Elton Chipika4f9bce56f607
diff --git a/docs/layers/TEST_INTELLIGENCE.md b/docs/layers/TEST_INTELLIGENCE.mdindex 357ddf2e8..3cb21679b 100644--- a/docs/layers/TEST_INTELLIGENCE.md+++ b/docs/layers/TEST_INTELLIGENCE.md@@ -163,10 +163,14 @@ file is all three of:| Condition | Threshold ||---|---|-| A hotspot | Flagged by the git layer, 8+ commits in 90 days, or a temporal hotspot score of 0.8 or more |+| A hotspot | Flagged by the git layer, which means top-quartile churn in this repository plus absolute activity floors || Depended on | At least 4 dependents || Under-tested | Line coverage below 40%. With no coverage ingested, only when *nothing* says a test touches the file: no paired test file by name and no test reaching it in the graph |+The file must also be code with at least one function (a config file or a+module of constants has nothing a test could exercise) and must not itself be+a test file.+Severity is `CRITICAL` at 15% coverage or less with 10+ dependents, `HIGH` at one ofthose two, `MEDIUM` otherwise. `coverage_gap` covers thin-but-present coverage, and`coverage_gradient` deducts in proportion to the uncovered share. The graph checkdiff --git a/packages/core/src/repowise/core/analysis/health/biomarkers/untested_hotspot.py b/packages/core/src/repowise/core/analysis/health/biomarkers/untested_hotspot.pyindex 5cb8aed53..3b64d34ff 100644--- a/packages/core/src/repowise/core/analysis/health/biomarkers/untested_hotspot.py+++ b/packages/core/src/repowise/core/analysis/health/biomarkers/untested_hotspot.py@@ -7,8 +7,7 @@ Fires when a file is **all three** of:- under-tested (``line_coverage_pct`` < 40 when coverage is available,OR, when it isn't, neither a paired test file nor a test reaching itthrough the call graph)-- centrally depended on (``dependents_count`` ≥ 4 OR temporal_hotspot- in the top decile)+- centrally depended on (``dependents_count`` ≥ 4)Severity grades on how bad the coverage is and how many dependents thefile has.