Model/backend/documents_parser/tests
Khalim Conn-Kowlessar b0919e8d6f Slice S0380.36: tighten _ASHP_COHORT_CHAIN_TOLERANCE 0.04 -> 1e-4 after S0380.31 closes cohort
Cohort-1 ASHP cohort residuals at HEAD d61a27e0 (post S0380.31..S0380.35):
  cert 0330: Summary -1.1e-5  (API -1.1e-5 via cert 0380 fixture)
  cert 0350: Summary +2.2e-5  (API +2.2e-5)
  cert 0380: Summary +1.0e-6  (API +1.0e-6)
  cert 2225: Summary -4.8e-5  (API -4.8e-5) [worst]
  cert 2636: Summary -2.4e-6  (API -2.4e-6)  closed by S0380.31
  cert 3800: Summary -2.0e-5  (API -2.0e-5)
  cert 9285: Summary -3.4e-5  (API -3.4e-5)
  cert 9418: Summary -3.6e-7  (API -3.6e-7)

All 7 certs sit at < 5e-5 on BOTH paths. The 0.04 tolerance set in
S0380.29 was sized to the API-path +0.03..+0.06 cluster that S0380.30
(glazing codes) and S0380.31 (alt-wall openings in (31)) subsequently
closed.

1e-4 matches the user's "1e-4 across the board" target with ~2x
headroom over cert 2225's worst residual. Any future regression beyond
~5e-5 fires the tolerance loudly.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 16:10:50 +00:00
..
fixtures Slice S0380.19: count Elmhurst shower outlets by type (no more hardcoded 1) 2026-05-28 07:16:32 +00:00
__init__.py Map to RdSapSiteNotes from site notes JSON 🟥 2026-04-16 13:54:03 +00:00
test_elmhurst_end_to_end.py Slice S0380.17: map Elmhurst §11 glazing-type labels to SAP10 codes 2026-05-27 23:05:52 +00:00
test_elmhurst_extractor.py extract window frame details from elmhurst site notes 🟥 2026-04-27 15:50:25 +00:00
test_end_to_end.py P6.1 follow-on: unbox BuildingPartIdentifier at backend boundaries 2026-05-20 09:58:23 +00:00
test_extractor.py Handle wall thickness "Unmeasurable" 🟩 2026-04-30 16:41:16 +00:00
test_pdf.py rename example site notes to PasHub_ and add Elmhurst example 2026-04-24 13:01:51 +00:00
test_summary_pdf_mapper_chain.py Slice S0380.36: tighten _ASHP_COHORT_CHAIN_TOLERANCE 0.04 -> 1e-4 after S0380.31 closes cohort 2026-05-28 16:10:50 +00:00