Model/tests/fixtures/epc_prediction/LE113PX/cert-1d3b9feac3b4.json
Khalim Conn-Kowlessar 008c1922c4 feat(epc-prediction): anonymised Tier-1 fixture + builder (ADR-0030)
The committed gate needs frozen, reproducible data without dumping real UK
addresses into the repo. Add:
- harness anonymise_payload + stable_hash: hash street address + cert number
  into opaque, dedup-stable tokens; blank secondary address lines + post_town;
  keep postcode + all component/lodged fields (gov data is OGL). Unit-tested.
- scripts/build_epc_prediction_fixture.py: curate qualifying postcodes (>=1
  SAP 10.2 target + >=2 distinct addresses) from the local scratch corpus,
  anonymise, freeze under tests/fixtures/epc_prediction/.
- The frozen fixture: 15 postcodes / 280 certs / 36 SAP-10.2 targets.
  Verified no plaintext address_line_1 and post_town all blank.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 09:17:27 +00:00

1 line
No EOL
10 KiB
JSON

{"uprn": 100030465850, "roofs": [{"description": "Pitched, 270 mm loft insulation", "energy_efficiency_rating": 5, "environmental_efficiency_rating": 5}, {"description": "Flat, limited insulation", "energy_efficiency_rating": 1, "environmental_efficiency_rating": 1}], "walls": [{"description": "Cavity wall, as built, no insulation (assumed)", "energy_efficiency_rating": 2, "environmental_efficiency_rating": 2}], "floors": [{"description": "Solid, no insulation (assumed)", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}], "status": "entered", "tenure": 1, "window": {"description": "Fully double glazed", "energy_efficiency_rating": 2, "environmental_efficiency_rating": 2}, "addendum": {"cavity_fill_recommended": "true"}, "lighting": {"description": "Good lighting efficiency", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}, "postcode": "LE11 3PX", "hot_water": {"description": "From main system", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}, "post_town": "", "built_form": 1, "created_at": "2025-07-30 11:37:41", "door_count": 3, "region_code": 6, "report_type": 2, "sap_heating": {"number_baths": 1, "cylinder_size": 1, "shower_outlets": [{"shower_outlet": {"shower_wwhrs": 1, "shower_outlet_type": 2}}], "number_baths_wwhrs": 0, "water_heating_code": 901, "water_heating_fuel": 26, "main_heating_details": [{"has_fghrs": "N", "main_fuel_type": 26, "boiler_flue_type": 2, "fan_flue_present": "Y", "heat_emitter_type": 1, "emitter_temperature": "NA", "main_heating_number": 1, "main_heating_control": 2106, "main_heating_category": 2, "main_heating_fraction": 1, "central_heating_pump_age": 0, "main_heating_data_source": 1, "main_heating_index_number": 9505}], "immersion_heating_type": "NA", "has_fixed_air_conditioning": "false"}, "sap_version": 10.2, "sap_windows": [{"pvc_frame": "true", "glazing_gap": 12, "orientation": 6, "window_type": 1, "glazing_type": 3, "window_width": 1.85, "window_height": 1.3, "draught_proofed": "true", "window_location": 1, "window_wall_type": 1, "permanent_shutters_present": "N", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "glazing_gap": 12, "orientation": 6, "window_type": 1, "glazing_type": 3, "window_width": 2, "window_height": 2, "draught_proofed": "true", "window_location": 1, "window_wall_type": 1, "permanent_shutters_present": "N", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "glazing_gap": 12, "orientation": 2, "window_type": 1, "glazing_type": 3, "window_width": 1.87, "window_height": 1.3, "draught_proofed": "true", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "N", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "glazing_gap": 12, "orientation": 2, "window_type": 1, "glazing_type": 3, "window_width": 2.53, "window_height": 1.3, "draught_proofed": "true", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "N", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "glazing_gap": 12, "orientation": 8, "window_type": 1, "glazing_type": 3, "window_width": 1.23, "window_height": 1.3, "draught_proofed": "true", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "N", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "glazing_gap": 12, "orientation": 4, "window_type": 1, "glazing_type": 3, "window_width": 1.88, "window_height": 1.3, "draught_proofed": "true", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "N", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "glazing_gap": 12, "orientation": 4, "window_type": 1, "glazing_type": 3, "window_width": 1.51, "window_height": 1.3, "draught_proofed": "true", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "N", "permanent_shutters_insulated": "N"}], "schema_type": "RdSAP-Schema-21.0.1", "uprn_source": "Energy Assessor", "country_code": "ENG", "main_heating": [{"description": "Boiler and radiators, mains gas", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}], "air_tightness": {"description": "(not tested)", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}, "dwelling_type": "Detached bungalow", "language_code": 1, "pressure_test": 4, "property_type": 1, "address_line_1": "addr-e1efb3e670c9", "assessment_type": "RdSAP", "completion_date": "2025-07-30", "inspection_date": "2025-07-30", "extensions_count": 1, "measurement_type": 1, "total_floor_area": 84, "transaction_type": 1, "conservatory_type": 1, "heated_room_count": 6, "registration_date": "2025-07-30", "sap_energy_source": {"mains_gas": "Y", "meter_type": 1, "pv_connection": 0, "photovoltaic_supply": {"none_or_no_details": {"percent_roof_area": 0}}, "wind_turbines_count": 0, "gas_smart_meter_present": "true", "is_dwelling_export_capable": "false", "wind_turbines_terrain_type": 2, "electricity_smart_meter_present": "true"}, "secondary_heating": {"description": "None", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}, "sap_building_parts": [{"identifier": "Main Dwelling", "wall_dry_lined": "Y", "wall_thickness": 290, "floor_heat_loss": 7, "roof_construction": 4, "wall_construction": 4, "building_part_number": 1, "sap_floor_dimensions": [{"floor": 0, "room_height": {"value": 2.42, "quantity": "metres"}, "floor_insulation": 1, "total_floor_area": {"value": 72.06, "quantity": "square metres"}, "party_wall_length": {"value": 0, "quantity": "metres"}, "floor_construction": 1, "heat_loss_perimeter": {"value": 29.76, "quantity": "metres"}}], "wall_insulation_type": 4, "construction_age_band": "E", "party_wall_construction": "NA", "wall_thickness_measured": "Y", "roof_insulation_location": 2, "roof_insulation_thickness": "270mm", "wall_insulation_thickness": "NI", "floor_insulation_thickness": "NI"}, {"identifier": "Extension 1", "wall_dry_lined": "Y", "wall_thickness": 290, "floor_heat_loss": 7, "roof_construction": 1, "wall_construction": 4, "building_part_number": 2, "sap_floor_dimensions": [{"floor": 0, "room_height": {"value": 2.42, "quantity": "metres"}, "floor_insulation": 1, "total_floor_area": {"value": 12.38, "quantity": "square metres"}, "party_wall_length": {"value": 0, "quantity": "metres"}, "floor_construction": 1, "heat_loss_perimeter": {"value": 10.14, "quantity": "metres"}}], "wall_insulation_type": 4, "construction_age_band": "E", "party_wall_construction": "NA", "wall_thickness_measured": "Y", "roof_insulation_location": 6, "wall_insulation_thickness": "NI", "floor_insulation_thickness": "NI", "flat_roof_insulation_thickness": "AB"}], "solar_water_heating": "N", "habitable_room_count": 6, "heating_cost_current": {"value": 1212, "currency": "GBP"}, "insulated_door_count": 0, "co2_emissions_current": 3.7, "energy_rating_average": 60, "energy_rating_current": 60, "lighting_cost_current": {"value": 63, "currency": "GBP"}, "main_heating_controls": [{"description": "Programmer, room thermostat and TRVs", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}], "has_hot_water_cylinder": "false", "heating_cost_potential": {"value": 745, "currency": "GBP"}, "hot_water_cost_current": {"value": 323, "currency": "GBP"}, "mechanical_ventilation": 0, "percent_draughtproofed": 70, "suggested_improvements": [{"sequence": 1, "typical_saving": {"value": 50, "currency": "GBP"}, "indicative_cost": "\u00a3900 - \u00a31,200", "improvement_type": "A2", "improvement_details": {"improvement_number": 45}, "improvement_category": 5, "energy_performance_rating": 61, "environmental_impact_rating": 63}, {"sequence": 2, "typical_saving": {"value": 147, "currency": "GBP"}, "indicative_cost": "\u00a3900 - \u00a31,500", "improvement_type": "B", "improvement_details": {"improvement_number": 6}, "improvement_category": 5, "energy_performance_rating": 64, "environmental_impact_rating": 68}, {"sequence": 3, "typical_saving": {"value": 117, "currency": "GBP"}, "indicative_cost": "\u00a35,000 - \u00a310,000", "improvement_type": "W2", "improvement_details": {"improvement_number": 58}, "improvement_category": 5, "energy_performance_rating": 67, "environmental_impact_rating": 71}, {"sequence": 4, "typical_saving": {"value": 180, "currency": "GBP"}, "indicative_cost": "\u00a32,200 - \u00a33,500", "improvement_type": "I", "improvement_details": {"improvement_number": 20}, "improvement_category": 5, "energy_performance_rating": 71, "environmental_impact_rating": 75}, {"sequence": 5, "typical_saving": {"value": 270, "currency": "GBP"}, "indicative_cost": "\u00a38,000 - \u00a310,000", "improvement_type": "U", "improvement_details": {"improvement_number": 34}, "improvement_category": 5, "energy_performance_rating": 77, "environmental_impact_rating": 76}], "co2_emissions_potential": 2.2, "energy_rating_potential": 77, "lighting_cost_potential": {"value": 63, "currency": "GBP"}, "schema_version_original": "21.0.1", "alternative_improvements": [{"sequence": 1, "typical_saving": {"value": 60, "currency": "GBP"}, "improvement_type": "Q2", "improvement_details": {"improvement_number": 55}, "improvement_category": 6, "energy_performance_rating": 66, "environmental_impact_rating": 70}, {"sequence": 2, "typical_saving": {"value": 131, "currency": "GBP"}, "improvement_type": "J2", "improvement_details": {"improvement_number": 54}, "improvement_category": 6, "energy_performance_rating": 69, "environmental_impact_rating": 95}, {"sequence": 3, "typical_saving": {"value": 67, "currency": "GBP"}, "improvement_type": "Z3", "improvement_details": {"improvement_number": 53}, "improvement_category": 6, "energy_performance_rating": 68, "environmental_impact_rating": 68}], "hot_water_cost_potential": {"value": 296, "currency": "GBP"}, "renewable_heat_incentive": {"water_heating": 2322.89, "space_heating_existing_dwelling": 11919.6}, "draughtproofed_door_count": 0, "energy_consumption_current": 246, "has_fixed_air_conditioning": "false", "multiple_glazed_proportion": 100, "calculation_software_version": "5.02r0290", "energy_consumption_potential": 143, "environmental_impact_current": 61, "current_energy_efficiency_band": "D", "environmental_impact_potential": 76, "has_heated_separate_conservatory": "false", "potential_energy_efficiency_band": "C", "co2_emissions_current_per_floor_area": 44, "low_energy_fixed_lighting_bulbs_count": 12, "incandescent_fixed_lighting_bulbs_count": 0}