Model/backend/documents_parser/tests
Khalim Conn-Kowlessar f4c409a1b4 Slice S0380.29: tighten _ASHP_COHORT_CHAIN_TOLERANCE 0.07 → 0.04
Post-S0380.28 (Appendix N footnote 43 reciprocal η interpolation), the
ASHP-cohort chain-test residuals collapsed:

  Summary path:
    cert 0380:  +0.000001  (was +0.034)
    cert 0350:  +0.000022  (was ~+0.046)
    cert 2225:  -0.000048  (was ~+0.044)
    cert 2636:  -0.014945  (was ~+0.003 — cantilever-specific)
    cert 3800:  -0.000020  (was +0.021)
    cert 9285:  -0.000034  (was +0.021)
    cert 9418:  -0.000000  (was +0.00004)

  API path (cohort handover thread 4 — open):
    cert 0380:  +0.025273
    cert 0350:  +0.030594  (worst)
    cert 2225:  +0.028517
    cert 2636:  +0.014705
    cert 3800:  +0.023327
    cert 9285:  +0.028674

The previous 0.07 tolerance gave 130%+ headroom over the pre-slice
worst residual; with S0380.28 closing the cluster the same tolerance
gives 130%+ headroom over the post-slice API worst (0.031), letting
regressions hide for a long time before firing.

0.04 gives ~30% headroom over the API path's worst residual (cert
0350 +0.0306) and ~170% over the Summary path's worst (cert 2636
-0.015 — the cantilever fixture). Fires loudly on any regression
beyond the documented API-path residual cluster.

Tightens 15 chain tests (8 Summary path + 7 API path). All pass.

Tests: 710 pass (unchanged), 10 expected fails unchanged.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 16:28:46 +00:00
..
fixtures Slice S0380.19: count Elmhurst shower outlets by type (no more hardcoded 1) 2026-06-01 16:28:46 +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-06-01 16:28:46 +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.29: tighten _ASHP_COHORT_CHAIN_TOLERANCE 0.07 → 0.04 2026-06-01 16:28:46 +00:00