Model/tests/fixtures/epc_prediction/W104HL/cert-784f6ac96b11.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.2 KiB
JSON

{"uprn": 100022784892, "roofs": [{"description": "Pitched, 270 mm loft insulation", "energy_efficiency_rating": 5, "environmental_efficiency_rating": 5}], "walls": [{"description": "Solid brick, as built, no insulation (assumed)", "energy_efficiency_rating": 2, "environmental_efficiency_rating": 2}], "floors": [{"description": "Suspended, no insulation (assumed)", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}], "status": "entered", "tenure": 2, "window": {"description": "Single glazed", "energy_efficiency_rating": 1, "environmental_efficiency_rating": 1}, "addendum": {"addendum_numbers": [8, 15]}, "lighting": {"description": "Good lighting efficiency", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}, "postcode": "W10 4HL", "hot_water": {"description": "From main system", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}, "post_town": "", "psv_count": 3, "built_form": 4, "created_at": "2026-05-04 21:18:08", "door_count": 2, "region_code": 17, "report_type": 2, "sap_heating": {"number_baths": 1, "cylinder_size": 1, "shower_outlets": [{"shower_outlet": {"shower_wwhrs": 1, "shower_outlet_type": 1}}], "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": 0, "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": 18908}], "immersion_heating_type": "NA", "has_fixed_air_conditioning": "false"}, "sap_version": 10.2, "sap_windows": [{"pvc_frame": "true", "orientation": 1, "window_type": 1, "glazing_type": 5, "window_width": 1.27, "window_height": 1.79, "draught_proofed": "false", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "Y", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "orientation": 1, "window_type": 1, "glazing_type": 5, "window_width": 1.1, "window_height": 1.81, "draught_proofed": "false", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "Y", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "orientation": 1, "window_type": 1, "glazing_type": 5, "window_width": 1.27, "window_height": 1.79, "draught_proofed": "false", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "Y", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "orientation": 5, "window_type": 1, "glazing_type": 5, "window_width": 1.19, "window_height": 1.79, "draught_proofed": "false", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "Y", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "orientation": 5, "window_type": 1, "glazing_type": 5, "window_width": 1.12, "window_height": 1.31, "draught_proofed": "false", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "Y", "permanent_shutters_insulated": "N"}, {"pvc_frame": "true", "orientation": 5, "window_type": 1, "glazing_type": 5, "window_width": 1.71, "window_height": 1.8, "draught_proofed": "false", "window_location": 0, "window_wall_type": 1, "permanent_shutters_present": "Y", "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": "Mid-terrace house", "language_code": 1, "pressure_test": 4, "property_type": 0, "address_line_1": "addr-dd816c70a95d", "assessment_type": "RdSAP", "completion_date": "2026-05-04", "inspection_date": "2026-04-29", "extensions_count": 0, "measurement_type": 1, "total_floor_area": 84, "transaction_type": 8, "conservatory_type": 1, "heated_room_count": 4, "registration_date": "2026-05-04", "sap_energy_source": {"mains_gas": "Y", "meter_type": 2, "pv_connection": 2, "photovoltaic_supply": {"pv_arrays": [{"pitch": 2, "peak_power": 3.64, "orientation": 5, "overshading": 1}]}, "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}, "extract_fans_count": 1, "lzc_energy_sources": [11], "sap_building_parts": [{"identifier": "Main Dwelling", "wall_dry_lined": "Y", "floor_heat_loss": 7, "roof_construction": 4, "wall_construction": 3, "building_part_number": 1, "sap_floor_dimensions": [{"floor": 0, "room_height": {"value": 2.62, "quantity": "metres"}, "floor_insulation": 1, "total_floor_area": {"value": 42.05, "quantity": "square metres"}, "party_wall_length": {"value": 19.49, "quantity": "metres"}, "floor_construction": 0, "heat_loss_perimeter": {"value": 12.87, "quantity": "metres"}}, {"floor": 1, "room_height": {"value": 2.62, "quantity": "metres"}, "total_floor_area": {"value": 42.05, "quantity": "square metres"}, "party_wall_length": {"value": 19.49, "quantity": "metres"}, "heat_loss_perimeter": {"value": 12.87, "quantity": "metres"}}], "wall_insulation_type": 4, "construction_age_band": "B", "party_wall_construction": 1, "wall_thickness_measured": "N", "roof_insulation_location": 2, "roof_insulation_thickness": "270mm", "wall_insulation_thickness": "NI", "floor_insulation_thickness": "NI"}], "solar_water_heating": "N", "habitable_room_count": 4, "heating_cost_current": {"value": 817, "currency": "GBP"}, "insulated_door_count": 0, "co2_emissions_current": 2.4, "energy_rating_average": 60, "energy_rating_current": 76, "lighting_cost_current": {"value": 55, "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": 566, "currency": "GBP"}, "hot_water_cost_current": {"value": 196, "currency": "GBP"}, "mechanical_ventilation": 0, "percent_draughtproofed": 25, "suggested_improvements": [{"sequence": 1, "typical_saving": {"value": 173, "currency": "GBP"}, "indicative_cost": "\u00a37,500 - \u00a311,000", "improvement_type": "Q", "improvement_details": {"improvement_number": 7}, "improvement_category": 5, "energy_performance_rating": 80, "environmental_impact_rating": 76}, {"sequence": 2, "typical_saving": {"value": 26, "currency": "GBP"}, "indicative_cost": "\u00a3150 - \u00a3250", "improvement_type": "D", "improvement_details": {"improvement_number": 10}, "improvement_category": 5, "energy_performance_rating": 81, "environmental_impact_rating": 77}, {"sequence": 3, "typical_saving": {"value": 52, "currency": "GBP"}, "indicative_cost": "\u00a34,500 - \u00a36,000", "improvement_type": "O", "improvement_details": {"improvement_number": 8}, "improvement_category": 5, "energy_performance_rating": 83, "environmental_impact_rating": 79}, {"sequence": 4, "typical_saving": {"value": 220, "currency": "GBP"}, "indicative_cost": "\u00a3500 - \u00a35,000", "improvement_type": "U1", "improvement_details": {"improvement_number": 72}, "improvement_category": 5, "energy_performance_rating": 87, "environmental_impact_rating": 80}], "co2_emissions_potential": 1.6, "energy_rating_potential": 87, "lighting_cost_potential": {"value": 56, "currency": "GBP"}, "schema_version_original": "21.0.1", "hot_water_cost_potential": {"value": 196, "currency": "GBP"}, "renewable_heat_incentive": {"water_heating": 2371.37, "space_heating_existing_dwelling": 8050.43}, "draughtproofed_door_count": 2, "energy_consumption_current": 146, "has_fixed_air_conditioning": "false", "multiple_glazed_proportion": 0, "calculation_software_version": "5.02r0344", "energy_consumption_potential": 86, "environmental_impact_current": 70, "current_energy_efficiency_band": "C", "environmental_impact_potential": 80, "has_heated_separate_conservatory": "false", "potential_energy_efficiency_band": "B", "co2_emissions_current_per_floor_area": 28, "low_energy_fixed_lighting_bulbs_count": 12, "incandescent_fixed_lighting_bulbs_count": 0}