Model/tests/domain/modelling/fixtures
Khalim Conn-Kowlessar 31c74ab500 feat(modelling): gas-boiler-upgrade-with-cylinder option in the heating rec
Add the first boiler-upgrade option to the single "Heating & Hot Water"
Recommendation (ADR-0024 expansion): a dwelling whose existing wet boiler heats
a hot-water cylinder is offered a new gas condensing boiler, with the cylinder
jacketed when under-insulated and given a thermostat when absent. One competing
Option (the Optimiser picks <=1), folded into one composite Plan line.

The end-state is read from the Elmhurst before/after re-lodgements (cert 001431,
gas boiler upgrade - with cylinder), which REVISE ADR-0024:

- Target is always a gas condensing boiler, not fuel-preserving: every after
  lodges fuel 26. Gas->gas always; a non-gas wet boiler ->gas only with a
  mains-gas connection; electric boilers are left alone (electrification is the
  upgrade path). Eligibility = wet-boiler SAP code (Table 4a/4b 101-141 /
  151-161 / 191-196) + not an electric boiler + mains gas present.
- End-state is a Table 4b SAP code, not a PCDB index: code 102 (regular boiler
  + cylinder). The calculator derives the condensing seasonal efficiency from
  the code, so no efficiency input exists or is needed.
- A modern condensing boiler has a fanned flue: the after flips
  `fan_flue_present` False->True on every cert (SAP 10.2 Table 4f flue-fan +
  the Table 4b condensing-efficiency basis). Added as a new HeatingOverlay
  field, routed to main_heating_details[0].
- Cylinder thermostat is always added when absent (user-locked); the jacket is
  the 80 mm `cylinder_insulation_type=2` end-state, applied only when the
  cylinder is below 80 mm (never downgrading a better one). Both are conditional
  per-dwelling components, not a frozen overlay.

Cascade-pinned delta-0 (SAP/CO2/PE) against the relodged after via
`_assert_overlay_reproduces_after`. NB the absolute SAP on this dwelling is
subject to a separate Summary-path mapper roof-fidelity gap (we read the roof
better-insulated than Elmhurst, scoring ~75 vs the printed 56); the gap is
identical on before+after (the boiler measure never touches the roof) so it
cancels and the pin still proves the exact heating field-delta. Tracked on the
calculator branch.

Wires the new `gas_boiler_upgrade` MeasureType through contingencies (0.26),
the offline sample catalogue, the catalogue-coverage list, and the ARA
first-run integration seed (the option fires on any mains-gas boiler+cylinder
dwelling).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 16:16:46 +00:00
..
ashp_from_gas_boiler_001431_before.pdf test(modelling): ASHP before/after cascade pin (001431) at 1e-4 2026-06-06 17:01:40 +00:00
ashp_from_gas_boiler_instant_hw_001431_before.pdf test(modelling): ASHP pin from a gas boiler with instantaneous HW + fuel tripwire 2026-06-06 17:40:25 +00:00
ashp_from_system_boiler_with_cylinder_001431_after.pdf test(modelling): finalize Vaillant ASHP swap on the cascade pins 2026-06-06 21:33:09 +00:00
ashp_from_system_boiler_with_cylinder_001431_before.pdf test(modelling): ASHP from a system gas boiler with an existing cylinder 2026-06-06 18:20:58 +00:00
boiler_cyl_gas_001431_after.pdf feat(modelling): gas-boiler-upgrade-with-cylinder option in the heating rec 2026-06-09 16:16:46 +00:00
boiler_cyl_gas_001431_before.pdf feat(modelling): gas-boiler-upgrade-with-cylinder option in the heating rec 2026-06-09 16:16:46 +00:00
cavity_wall_001431_after.pdf test(modelling): Elmhurst before/after cascade pin for cavity wall (#1154) 2026-06-03 09:36:53 +00:00
cavity_wall_001431_before.pdf test(modelling): Elmhurst before/after cascade pin for cavity wall (#1154) 2026-06-03 09:36:53 +00:00
double_glazing_001431_after.pdf test(fixtures): add glazing before/after certs (001431) for the pin slices 2026-06-05 07:54:43 +00:00
double_glazing_001431_before.pdf test(fixtures): add glazing before/after certs (001431) for the pin slices 2026-06-05 07:54:43 +00:00
flat_roof_001431_after.pdf feat(modelling): roof dispatcher insulates a flat roof 2026-06-04 21:16:00 +00:00
flat_roof_001431_before.pdf feat(modelling): roof dispatcher insulates a flat roof 2026-06-04 21:16:00 +00:00
google_building_insights_001431.json feat(modelling): typed SolarPotential projection over Google buildingInsights 2026-06-08 09:55:55 +00:00
hhr_storage_001431_after.pdf test(modelling): HHRSH before/after cascade pins (001431) at 1e-4 2026-06-05 19:09:23 +00:00
hhr_storage_from_electric_storage_001431_before.pdf test(modelling): HHRSH before/after cascade pins (001431) at 1e-4 2026-06-05 19:09:23 +00:00
hhr_storage_from_no_system_001431_before.pdf test(modelling): HHRSH before/after cascade pins (001431) at 1e-4 2026-06-05 19:09:23 +00:00
loft_001431_after.pdf feat(modelling): loft overlay 270→300 mm + Elmhurst cascade pin (#1158) 2026-06-03 09:39:21 +00:00
loft_001431_before.pdf feat(modelling): loft overlay 270→300 mm + Elmhurst cascade pin (#1158) 2026-06-03 09:39:21 +00:00
loft_thatched_001431_after.pdf feat(modelling): fold loft into the roof dispatcher; thatch routes to loft 2026-06-04 21:12:01 +00:00
loft_thatched_001431_before.pdf feat(modelling): fold loft into the roof dispatcher; thatch routes to loft 2026-06-04 21:12:01 +00:00
low_energy_lighting_some_leds_001431_after.pdf test(modelling): lighting before/after cascade pins (001431) at 1e-4 2026-06-05 12:27:36 +00:00
low_energy_lighting_some_leds_001431_before.pdf test(modelling): lighting before/after cascade pins (001431) at 1e-4 2026-06-05 12:27:36 +00:00
low_energy_lighting_zero_leds_001431_after.pdf test(modelling): lighting before/after cascade pins (001431) at 1e-4 2026-06-05 12:27:36 +00:00
low_energy_lighting_zero_leds_001431_before.pdf test(modelling): lighting before/after cascade pins (001431) at 1e-4 2026-06-05 12:27:36 +00:00
secondary_glazing_001431_after.pdf test(fixtures): add glazing before/after certs (001431) for the pin slices 2026-06-05 07:54:43 +00:00
secondary_glazing_001431_before.pdf test(fixtures): add glazing before/after certs (001431) for the pin slices 2026-06-05 07:54:43 +00:00
sloping_ceiling_001431_after.pdf feat(modelling): recommend_roof_insulation insulates a sloping ceiling 2026-06-04 21:02:06 +00:00
sloping_ceiling_001431_before.pdf feat(modelling): recommend_roof_insulation insulates a sloping ceiling 2026-06-04 21:02:06 +00:00
solar_pv_001431_before.pdf test(modelling): Solar PV Elmhurst cascade pins + battery tripwire 2026-06-08 12:42:24 +00:00
solar_pv_no_battery_001431_after_1.pdf test(modelling): Solar PV Elmhurst cascade pins + battery tripwire 2026-06-08 12:42:24 +00:00
solar_pv_no_battery_001431_after_2.pdf test(modelling): Solar PV Elmhurst cascade pins + battery tripwire 2026-06-08 12:42:24 +00:00
solar_pv_no_battery_001431_after_3.pdf test(modelling): Solar PV Elmhurst cascade pins + battery tripwire 2026-06-08 12:42:24 +00:00
solar_pv_with_battery_001431_after.pdf test(modelling): Solar PV Elmhurst cascade pins + battery tripwire 2026-06-08 12:42:24 +00:00
solid_brick_ewi_001431_after.pdf feat(modelling): overlay models solid-wall insulation (IWI/EWI), pinned 2026-06-04 15:11:26 +00:00
solid_brick_ewi_001431_before.pdf feat(modelling): overlay models solid-wall insulation (IWI/EWI), pinned 2026-06-04 15:11:26 +00:00
solid_brick_iwi_001431_after.pdf feat(modelling): overlay models solid-wall insulation (IWI/EWI), pinned 2026-06-04 15:11:26 +00:00
solid_brick_iwi_001431_before.pdf feat(modelling): overlay models solid-wall insulation (IWI/EWI), pinned 2026-06-04 15:11:26 +00:00
solid_floor_001431_after.pdf feat(modelling): floor insulation-type overlay field + cascade pins (#1159) 2026-06-03 09:41:54 +00:00
solid_floor_001431_before.pdf feat(modelling): floor insulation-type overlay field + cascade pins (#1159) 2026-06-03 09:41:54 +00:00
suspended_floor_001431_after.pdf feat(modelling): floor insulation-type overlay field + cascade pins (#1159) 2026-06-03 09:41:54 +00:00
suspended_floor_001431_before.pdf feat(modelling): floor insulation-type overlay field + cascade pins (#1159) 2026-06-03 09:41:54 +00:00
system_built_ewi_001431_after.pdf feat(modelling): system-built walls take EWI+IWI (blocked on basement-code fix) 2026-06-04 18:26:08 +00:00
system_built_ewi_001431_before.pdf feat(modelling): system-built walls take EWI+IWI (blocked on basement-code fix) 2026-06-04 18:26:08 +00:00
system_built_iwi_001431_after.pdf feat(modelling): system-built walls take EWI+IWI (blocked on basement-code fix) 2026-06-04 18:26:08 +00:00
system_built_iwi_001431_before.pdf feat(modelling): system-built walls take EWI+IWI (blocked on basement-code fix) 2026-06-04 18:26:08 +00:00
timber_frame_iwi_001431_after.pdf feat(modelling): solid-wall generator offers IWI-only for timber frame 2026-06-04 15:33:46 +00:00
timber_frame_iwi_001431_before.pdf feat(modelling): solid-wall generator offers IWI-only for timber frame 2026-06-04 15:33:46 +00:00