From fe1d04983b0c28f561ac5c5c252cb07f3d2dab28 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 30 Jun 2026 15:25:02 +0000 Subject: [PATCH] =?UTF-8?q?effective-lodged-divergence=20is=20silent=20for?= =?UTF-8?q?=20implausible=20lodged=20scores=20(<=2013)=20=F0=9F=9F=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- scripts/audit/anomalies.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/audit/anomalies.py b/scripts/audit/anomalies.py index 7b1ac62e2..c856a5d17 100644 --- a/scripts/audit/anomalies.py +++ b/scripts/audit/anomalies.py @@ -175,9 +175,14 @@ def _zero_works_post_differs(a: PropertyAudit) -> Optional[str]: def _effective_lodged_divergence(a: PropertyAudit) -> Optional[str]: """The Effective baseline is far from the lodged accredited figure (≥15 SAP). Often legitimate (overrides / pre-SAP10 rebaseline), but worth a look — a big - gap can also mean a bad override or a calculator divergence.""" + gap can also mean a bad override or a calculator divergence. + + Lodged scores below 13 are handed off to ``implausible-lodged-score`` — they + indicate corrupt upstream EPC register data, not a modelling divergence.""" if a.effective_sap is None or a.lodged_sap is None: return None + if a.lodged_sap < 13: + return None gap = a.effective_sap - a.lodged_sap if abs(gap) < 15: return None