Model/tests/fixtures/epc_prediction/CV15QJ/cert-8105f351163f.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
6.8 KiB
JSON

{"uprn": 10093945833, "roofs": [{"description": {"value": "Pitched, no insulation (assumed)", "language": "1"}, "energy_efficiency_rating": 1, "environmental_efficiency_rating": 1}, {"description": {"value": "Roof room(s), no insulation (assumed)", "language": "1"}, "energy_efficiency_rating": 1, "environmental_efficiency_rating": 1}], "walls": [{"description": {"value": "Cavity wall, as built, no insulation (assumed)", "language": "1"}, "energy_efficiency_rating": 2, "environmental_efficiency_rating": 2}], "floors": [{"description": {"value": "(other premises below)", "language": "1"}, "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}], "status": "entered", "tenure": 3, "window": {"description": {"value": "Fully double glazed", "language": "1"}, "energy_efficiency_rating": 3, "environmental_efficiency_rating": 3}, "addendum": {"cavity_fill_recommended": "true"}, "lighting": {"description": {"value": "Low energy lighting in all fixed outlets", "language": "1"}, "energy_efficiency_rating": 5, "environmental_efficiency_rating": 5}, "postcode": "CV1 5QJ", "hot_water": {"description": {"value": "From main system", "language": "1"}, "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}, "post_town": "", "built_form": 4, "created_at": "2021-04-18 12:35:07.312492", "door_count": 1, "glazed_area": 1, "glazing_gap": "16+", "region_code": 6, "report_type": 2, "sap_heating": {"cylinder_size": 1, "water_heating_code": 901, "water_heating_fuel": 26, "instantaneous_wwhrs": {"rooms_with_bath_and_or_shower": 1, "rooms_with_mixer_shower_no_bath": 1, "rooms_with_bath_and_mixer_shower": 0}, "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": 2102, "main_heating_category": 2, "main_heating_fraction": 1, "mcs_installed_heat_pump": "false", "central_heating_pump_age": 0, "main_heating_data_source": 1, "main_heating_index_number": 17815}], "immersion_heating_type": "NA", "has_fixed_air_conditioning": "false"}, "sap_version": 9.94, "schema_type": "RdSAP-Schema-20.0.0", "uprn_source": "Energy Assessor", "country_code": "EAW", "main_heating": [{"description": {"value": "Boiler and radiators, mains gas", "language": "1"}, "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}], "dwelling_type": {"value": "Top-floor flat", "language": "1"}, "language_code": 1, "property_type": 2, "address_line_1": "addr-2c1f9f08074c", "address_line_2": "", "address_line_3": "", "assessment_type": "RdSAP", "completion_date": "2021-04-18", "inspection_date": "2021-04-15", "extensions_count": 0, "measurement_type": 1, "sap_flat_details": {"level": 3, "top_storey": "Y", "flat_location": 1, "heat_loss_corridor": 0}, "total_floor_area": 94, "transaction_type": 8, "conservatory_type": 1, "heated_room_count": 5, "pvc_window_frames": "true", "registration_date": "2021-04-18", "sap_energy_source": {"mains_gas": "Y", "meter_type": 1, "photovoltaic_supply": {"none_or_no_details": {"pv_connection": 0, "percent_roof_area": 0}}, "wind_turbines_count": 0, "wind_turbines_terrain_type": 2}, "secondary_heating": {"description": {"value": "None", "language": "1"}, "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}, "sap_building_parts": [{"identifier": "Main Dwelling", "wall_dry_lined": "N", "wall_thickness": 290, "floor_heat_loss": 3, "sap_room_in_roof": {"floor_area": 33.52, "insulation": "AB", "roof_room_connected": "N", "construction_age_band": "C"}, "roof_construction": 5, "wall_construction": 4, "building_part_number": 1, "sap_floor_dimensions": [{"floor": 0, "room_height": {"value": 3.12, "quantity": "metres"}, "total_floor_area": {"value": 60.45, "quantity": "square metres"}, "party_wall_length": {"value": 15.58, "quantity": "metres"}, "heat_loss_perimeter": {"value": 15.52, "quantity": "metres"}}], "wall_insulation_type": 4, "construction_age_band": "C", "party_wall_construction": 0, "wall_thickness_measured": "Y", "roof_insulation_location": 4, "roof_insulation_thickness": "ND", "wall_insulation_thickness": "NI"}], "low_energy_lighting": 100, "solar_water_heating": "N", "habitable_room_count": 5, "heating_cost_current": {"value": 1117, "currency": "GBP"}, "insulated_door_count": 0, "co2_emissions_current": 6.3, "energy_rating_average": 60, "energy_rating_current": 50, "lighting_cost_current": {"value": 86, "currency": "GBP"}, "main_heating_controls": [{"description": {"value": "Programmer, no room thermostat", "language": "1"}, "energy_efficiency_rating": 1, "environmental_efficiency_rating": 1}], "multiple_glazing_type": 3, "open_fireplaces_count": 0, "has_hot_water_cylinder": "false", "heating_cost_potential": {"value": 597, "currency": "GBP"}, "hot_water_cost_current": {"value": 101, "currency": "GBP"}, "mechanical_ventilation": 0, "percent_draughtproofed": 100, "suggested_improvements": [{"sequence": 1, "typical_saving": {"value": 351, "currency": "GBP"}, "indicative_cost": "\u00a31,500 - \u00a32,700", "improvement_type": "A3", "improvement_details": {"improvement_number": 46}, "improvement_category": 5, "energy_performance_rating": 63, "environmental_impact_rating": 57}, {"sequence": 2, "typical_saving": {"value": 60, "currency": "GBP"}, "indicative_cost": "\u00a3500 - \u00a31,500", "improvement_type": "B", "improvement_details": {"improvement_number": 6}, "improvement_category": 5, "energy_performance_rating": 65, "environmental_impact_rating": 60}, {"sequence": 3, "typical_saving": {"value": 109, "currency": "GBP"}, "indicative_cost": "\u00a3350 - \u00a3450", "improvement_type": "G", "improvement_details": {"improvement_number": 12}, "improvement_category": 5, "energy_performance_rating": 69, "environmental_impact_rating": 66}], "co2_emissions_potential": 3.4, "energy_rating_potential": 69, "lighting_cost_potential": {"value": 86, "currency": "GBP"}, "schema_version_original": "LIG-19.0", "alternative_improvements": [{"improvement": {"sequence": 1, "typical_saving": {"value": 31, "currency": "GBP"}, "improvement_type": "Q2", "improvement_details": {"improvement_number": 55}, "improvement_category": 6, "energy_performance_rating": 67, "environmental_impact_rating": 62}}], "hot_water_cost_potential": {"value": 102, "currency": "GBP"}, "renewable_heat_incentive": {"water_heating": 2208, "impact_of_loft_insulation": -2210, "impact_of_cavity_insulation": -1077, "space_heating_existing_dwelling": 21166}, "energy_consumption_current": 377, "has_fixed_air_conditioning": "false", "multiple_glazed_proportion": 100, "calculation_software_version": "v94.0.1.1", "energy_consumption_potential": 207, "environmental_impact_current": 42, "fixed_lighting_outlets_count": 9, "current_energy_efficiency_band": "E", "environmental_impact_potential": 66, "has_heated_separate_conservatory": "false", "potential_energy_efficiency_band": "C", "co2_emissions_current_per_floor_area": 67, "low_energy_fixed_lighting_outlets_count": 9}