Model/tests/fixtures/epc_prediction/CF481ND/cert-96d09ac53f57.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
8.4 KiB
JSON

{"uprn": 100100583982, "roofs": [{"description": "Pitched, 200 mm loft insulation", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}], "walls": [{"description": "Cavity wall, filled cavity", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}], "floors": [{"description": "Solid, no insulation (assumed)", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}, {"description": "To unheated space, no insulation (assumed)", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}], "status": "entered", "tenure": 1, "window": {"description": "Mostly double glazing", "energy_efficiency_rating": 2, "environmental_efficiency_rating": 2}, "addendum": {"high_exposure": "true", "addendum_numbers": [8]}, "lighting": {"description": "Below average lighting efficiency", "energy_efficiency_rating": 3, "environmental_efficiency_rating": 3}, "postcode": "CF48 1ND", "hot_water": {"description": "From main system", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}, "post_town": "", "psv_count": 1, "built_form": 4, "created_at": "2026-05-14 10:00:59", "door_count": 2, "region_code": 5, "report_type": 2, "sap_heating": {"number_baths": 1, "cylinder_size": 1, "shower_outlets": [{"shower_wwhrs": 1, "shower_outlet_type": 2}], "number_baths_wwhrs": 0, "water_heating_code": 901, "water_heating_fuel": 26, "cylinder_thermostat": "N", "main_heating_details": [{"has_fghrs": "N", "main_fuel_type": 26, "boiler_flue_type": 2, "fan_flue_present": "Y", "heat_emitter_type": 1, "emitter_temperature": 1, "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": 15709}], "immersion_heating_type": "NA", "has_fixed_air_conditioning": "false"}, "sap_version": 10.2, "sap_windows": [{"pvc_frame": "true", "orientation": 3, "window_type": 1, "glazing_type": 5, "window_width": {"value": 0.35, "quantity": "m"}, "window_height": {"value": 0.85, "quantity": "m"}, "draught_proofed": "false", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "N", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "glazing_gap": "16+", "orientation": 1, "window_type": 1, "glazing_type": 3, "window_width": {"value": 1.37, "quantity": "m"}, "window_height": {"value": 1.19, "quantity": "m"}, "draught_proofed": "true", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "N", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "glazing_gap": "16+", "orientation": 1, "window_type": 1, "glazing_type": 3, "window_width": {"value": 0.47, "quantity": "m"}, "window_height": {"value": 1.16, "quantity": "m"}, "draught_proofed": "true", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "N", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "glazing_gap": "16+", "orientation": 5, "window_type": 1, "glazing_type": 3, "window_width": {"value": 1.46, "quantity": "m"}, "window_height": {"value": 1.16, "quantity": "m"}, "draught_proofed": "true", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "N", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "glazing_gap": "16+", "orientation": 5, "window_type": 1, "glazing_type": 3, "window_width": {"value": 1.46, "quantity": "m"}, "window_height": {"value": 1.16, "quantity": "m"}, "draught_proofed": "true", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "N", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "glazing_gap": "16+", "orientation": 1, "window_type": 1, "glazing_type": 3, "window_width": {"value": 1.45, "quantity": "m"}, "window_height": {"value": 0.89, "quantity": "m"}, "draught_proofed": "true", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "N", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "glazing_gap": "16+", "orientation": 1, "window_type": 1, "glazing_type": 3, "window_width": {"value": 0.95, "quantity": "m"}, "window_height": {"value": 0.87, "quantity": "m"}, "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": "WLS", "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": "Mid-terrace house", "language_code": 1, "pressure_test": 4, "property_type": 0, "address_line_1": "addr-5b9c3a723c39", "assessment_type": "RdSAP", "completion_date": "2026-05-14", "inspection_date": "2026-05-14", "extensions_count": 1, "measurement_type": 1, "open_flues_count": 0, "total_floor_area": 90, "transaction_type": 1, "conservatory_type": 1, "heated_room_count": 6, "other_flues_count": 0, "registration_date": "2026-05-14", "sap_energy_source": {"mains_gas": "Y", "meter_type": 2, "pv_connection": 2, "photovoltaic_supply": {"none_or_no_details": {"percent_roof_area": 50}}, "wind_turbines_count": 0, "gas_smart_meter_present": "false", "is_dwelling_export_capable": "false", "wind_turbines_terrain_type": 2, "electricity_smart_meter_present": "false"}, "secondary_heating": {"description": "None", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}, "closed_flues_count": 1, "extract_fans_count": 0, "lzc_energy_sources": [11], "sap_building_parts": [{"identifier": "Main Dwelling", "wall_dry_lined": "N", "wall_thickness": 300, "floor_heat_loss": 7, "roof_construction": 4, "wall_construction": 4, "building_part_number": 1, "sap_floor_dimensions": [{"floor": 0, "room_height": 2.4, "floor_insulation": 1, "total_floor_area": 40.58, "party_wall_length": 7.3, "floor_construction": 1, "heat_loss_perimeter": 12.6}, {"floor": 1, "room_height": 2.4, "total_floor_area": 42.34, "party_wall_length": 0, "heat_loss_perimeter": 11.6}], "wall_insulation_type": 2, "construction_age_band": "E", "party_wall_construction": 0, "wall_thickness_measured": "N", "roof_insulation_location": 2, "roof_insulation_thickness": "200mm", "wall_insulation_thickness": "NI"}, {"identifier": "Extension 1", "wall_dry_lined": "N", "floor_heat_loss": 2, "roof_construction": 4, "wall_construction": 4, "building_part_number": 2, "sap_floor_dimensions": [{"floor": 0, "room_height": 2.4, "floor_insulation": 1, "total_floor_area": 7.3, "party_wall_length": 7.3, "floor_construction": 3, "heat_loss_perimeter": 2}], "wall_insulation_type": 2, "construction_age_band": "E", "party_wall_construction": 0, "wall_thickness_measured": "N", "roof_insulation_location": 2, "roof_insulation_thickness": "200mm", "wall_insulation_thickness": "NI"}], "boilers_flues_count": 0, "open_chimneys_count": 0, "solar_water_heating": "N", "habitable_room_count": 6, "heating_cost_current": {"value": 897, "currency": "GBP"}, "insulated_door_count": 0, "co2_emissions_current": 2.5, "energy_rating_average": 60, "energy_rating_current": 78, "lighting_cost_current": {"value": 86, "currency": "GBP"}, "main_heating_controls": [{"description": "Programmer, room thermostat and TRVs", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}], "blocked_chimneys_count": 0, "has_hot_water_cylinder": "false", "heating_cost_potential": {"value": 897, "currency": "GBP"}, "hot_water_cost_current": {"value": 306, "currency": "GBP"}, "mechanical_ventilation": 0, "percent_draughtproofed": 89, "schema_version_current": "LIG-21.0", "co2_emissions_potential": 2.5, "energy_rating_potential": 78, "lighting_cost_potential": {"value": 86, "currency": "GBP"}, "schema_version_original": "LIG-21.0", "hot_water_cost_potential": {"value": 306, "currency": "GBP"}, "renewable_heat_incentive": {"water_heating": 2171.71, "space_heating_existing_dwelling": 8990.87}, "draughtproofed_door_count": 2, "energy_consumption_current": 151, "has_fixed_air_conditioning": "false", "multiple_glazed_proportion": 96, "calculation_software_version": "10.2.2.0", "energy_consumption_potential": 151, "environmental_impact_current": 77, "cfl_fixed_lighting_bulbs_count": 3, "current_energy_efficiency_band": "C", "environmental_impact_potential": 77, "led_fixed_lighting_bulbs_count": 6, "has_heated_separate_conservatory": "false", "potential_energy_efficiency_band": "C", "co2_emissions_current_per_floor_area": 28, "incandescent_fixed_lighting_bulbs_count": 2}