diff --git a/backend/documents_parser/tests/fixtures/pashub_accuracy/507639151845.pdf b/backend/documents_parser/tests/fixtures/pashub_accuracy/507639151845.pdf index 2c6a8a218..b72df83c9 100644 Binary files a/backend/documents_parser/tests/fixtures/pashub_accuracy/507639151845.pdf and b/backend/documents_parser/tests/fixtures/pashub_accuracy/507639151845.pdf differ diff --git a/backend/documents_parser/tests/fixtures/pashub_accuracy/manifest.json b/backend/documents_parser/tests/fixtures/pashub_accuracy/manifest.json index 7db88f559..59b7c6c86 100644 --- a/backend/documents_parser/tests/fixtures/pashub_accuracy/manifest.json +++ b/backend/documents_parser/tests/fixtures/pashub_accuracy/manifest.json @@ -1091,8 +1091,8 @@ { "deal_id": "507639151845", "uprn": null, - "pre_sap_raw": "C80", - "pre_sap_score": 80, + "pre_sap_raw": "C76", + "pre_sap_score": 76, "pdf": "507639151845.pdf" }, { diff --git a/backend/documents_parser/tests/test_pashub_sap_accuracy.py b/backend/documents_parser/tests/test_pashub_sap_accuracy.py index 25d2d8009..bdc027c74 100644 --- a/backend/documents_parser/tests/test_pashub_sap_accuracy.py +++ b/backend/documents_parser/tests/test_pashub_sap_accuracy.py @@ -344,3 +344,25 @@ def test_walsden_pins_to_pashub_resurvey_sap_64() -> None: f"13 Walsden SAP {outcome.sap_continuous:.2f} diverged from the PAS Hub " "re-survey's own accredited 64 (NOT the colliding 24-Jun cert's 68)" ) + + +@pytest.mark.skipif(not _FIXTURES, reason="no pashub_accuracy fixtures/manifest") +def test_paxton_fixture_is_v5_resurvey_sap_76() -> None: + """5 Paxton Place (deal 507639151845, uprn 10070864419) was RE-ISSUED: the + same PAS Hub survey (inspected 29 May/Jun 2026, report B74AA5A4-…) has two + accredited revisions — V2 (ventilation "Natural", SAP 80) and V5 (ventilation + "Mechanical Extract - Centralised", SAP 76, the current version). The + portfolio-838 oracle tracks the latest revision (76), so the fixture is + refreshed to the V5 PDF (2026-07-15e); our engine reproduces its accredited 76 + (~75.6). Do NOT revert this fixture/manifest to the V2 SAP-80 version. + CAVEAT: `hubspot_deal_data.pre_sap` for this deal is still stale at "C80", so a + `scripts/build_pashub_accuracy_fixtures.py` rerun would regenerate the manifest + `pre_sap` back to 80 — this pin (asserting a literal 76 against the V5 fixture) + is the canary. Confirmed against pashub: April survey → SAP 76 (Khalim).""" + outcome = _evaluate("507639151845") + assert outcome.sap_continuous is not None + assert abs(outcome.sap_continuous - 76) < 0.5, ( + f"5 Paxton SAP {outcome.sap_continuous:.2f} diverged from the current V5 " + "(MEV) re-survey's accredited 76 — has the fixture reverted to the V2 " + "(Natural, SAP 80) PDF?" + )