Daniel Roth
632465f03f
allow for multiple scenarios for 1 portfolio without ignoring all properties in second scenario
2026-06-26 11:24:26 +00:00
Daniel Roth
17a9f0aafc
refetch_epc=False skips API entirely; EPC-less properties go straight to prediction path
...
When refetch_epc=False and no stored lodged EPC exists, the handler no longer
falls back to a live EPC API call — it treats the property as EPC-less and
hands it to the prediction path. This keeps REFETCH_EPC (lodged path) and
REPREDICT_EPC (prediction path) cleanly independent.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 10:24:27 +00:00
Daniel Roth
b1fd9d9368
Clarify REFETCH_EPC/REPREDICT_EPC comments — both flags skip-if-stored, not never-fetch
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 10:20:29 +00:00
Daniel Roth
5c3bde0cf5
Update trigger script and local invoker to use refetch_solar, refetch_epc, repredict_epc 🟩
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 10:17:20 +00:00
Daniel Roth
100a580119
Add tests for repredict_epc flag routing via stored predicted EPC 🟩
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 10:15:40 +00:00
Daniel Roth
a940c94b33
Handler pre-fetches stored EPCs and routes per-property via refetch_epc flag 🟩
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 10:13:51 +00:00
Daniel Roth
c51ca47467
Rename no_solar → refetch_solar and add refetch_epc, repredict_epc flags to TriggerBody 🟩
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 10:12:21 +00:00
Daniel Roth
04b3cb240a
Merge pull request #1333 from Hestia-Homes/fix/baseline-downgrades
...
fix(epc-mapper): complete full-SAP 17.1 mapper so pre-SAP10 certs rebaseline (no more impossible downgrade)
2026-06-26 10:44:52 +01:00
Daniel Roth
d77232c333
Merge pull request #1332 from Hestia-Homes/fix/solar-429-concurrency
...
fix(solar): throttle per-container Solar calls to hold the fleet under 600 QPM
2026-06-26 10:44:47 +01:00
Khalim Conn-Kowlessar
e405928516
Re-baseline prediction component-accuracy gate for full-SAP donors (ADR-0037)
...
Full-SAP certs mapped property_type=None, so the hard cohort filter silently
excluded them as comparables. Correctly typing them admits real lodged EPCs as
donors — a ground-truth-method change (cf #1245 ). Net over the n=36 fixture: 16
components better, 4 worse, 6 unchanged; gains concentrated in the physical
characteristics full-SAP certs measure (window_count 3.83->1.69, building_parts,
total_window_area, floor_construction, construction_age_band, glazing, walls).
The 4 that fell are new-build-vs-old-stock service mismatch on 1-2 targets each
(heating/water fuel, cylinder insulation) + floor_area. Tighten 16, loosen 4.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 09:34:27 +00:00
Khalim Conn-Kowlessar
b2c74dbf5b
docs: ventilation mapping inconsistency — 17.1/18.0/20.0.0 fixed, 19.0/21.0.0 open
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 08:46:01 +00:00
Khalim Conn-Kowlessar
e770c876ea
Map mechanical_ventilation_kind in the 3 bare-SapVentilation RdSAP mappers 🟩
...
17.1/18.0/20.0.0 built SapVentilation(sheltered_sides=…) and dropped the cert's
mechanical_ventilation, mis-scoring MEV/MVHR dwellings as natural. Mirror 21.0.1's
_api_mechanical_ventilation_kind. Natural certs (code 0/5 → None) unchanged
(corpus 73.3%/0.774, mapper corpus green, 726605 SAP 68.058 unchanged).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 08:44:37 +00:00
Khalim Conn-Kowlessar
debbbb84f2
Map mechanical_ventilation_kind in the 3 bare-SapVentilation RdSAP mappers 🟥
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 08:38:13 +00:00
Khalim Conn-Kowlessar
3f69c4be02
docs: full-SAP baseline-downgrade follow-ups + Case A population sweep tool
...
Captures the calc-facing ventilation-type gap (older RdSAP mappers drop
mechanical_ventilation_kind), the FE-side Main Fuel display, the sweep survivor
clusters, and the predicted-property display path — all separate from ADR-0037.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 21:45:44 +00:00
Khalim Conn-Kowlessar
590a456065
Map main_heating_controls in the older RdSAP mappers for the FE panel 🟩
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 21:43:17 +00:00
Khalim Conn-Kowlessar
a975d870c9
Map main_heating_controls in the older RdSAP mappers for the FE panel 🟥
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 21:41:41 +00:00
Khalim Conn-Kowlessar
5deea0a27c
Map main_heating_controls on full-SAP certs for the FE panel 🟩
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 21:38:50 +00:00
Khalim Conn-Kowlessar
0440de4965
Map main_heating_controls on full-SAP certs for the FE panel 🟥
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 21:38:06 +00:00
Khalim Conn-Kowlessar
95701d03e4
Map display EnergyElements on full-SAP certs for the FE panel 🟩
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 20:55:51 +00:00
Khalim Conn-Kowlessar
4c65640e4e
Map display EnergyElements on full-SAP certs for the FE panel 🟥
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 20:54:46 +00:00
Khalim Conn-Kowlessar
304e8afb00
Map assessment_type on full-SAP certs 🟩
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 20:53:22 +00:00
Khalim Conn-Kowlessar
33f9988ac5
Map assessment_type on full-SAP certs 🟥
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 20:52:07 +00:00
Khalim Conn-Kowlessar
f568ec00fc
Full-SAP certs rebaseline off the lodged SAP-2012 value (downgrade fix) 🟩
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 20:43:31 +00:00
Khalim Conn-Kowlessar
5149400f96
Map secondary_heating on full-SAP certs for the calculator 🟩
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 20:40:59 +00:00
Khalim Conn-Kowlessar
7b06d9dbab
Map secondary_heating on full-SAP certs for the calculator 🟥
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 20:40:30 +00:00
Khalim Conn-Kowlessar
bc394ce5f5
Map built_form on full-SAP certs 🟩
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 20:38:50 +00:00
Khalim Conn-Kowlessar
d2ede36b41
Map built_form on full-SAP certs 🟥
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 20:38:16 +00:00
Khalim Conn-Kowlessar
5c0460cee2
Map property_type on full-SAP certs for correct heat-transmission 🟩
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 20:37:34 +00:00
Khalim Conn-Kowlessar
951bee3115
Map property_type on full-SAP certs for correct heat-transmission 🟥
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 20:36:38 +00:00
Khalim Conn-Kowlessar
cff5b061a4
Map sap_version on full-SAP certs so pre-SAP10 rebaseline fires 🟩
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 20:36:04 +00:00
Khalim Conn-Kowlessar
14c777f37b
Map sap_version on full-SAP certs so pre-SAP10 rebaseline fires 🟥
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 20:34:35 +00:00
Khalim Conn-Kowlessar
2d18e9a3b0
docs: ADR-0037 + Full-SAP Assessment term for the baseline-downgrade family
...
Captures the grill-with-docs decisions for the full-SAP-17.1 mapper completion:
rebaseline-to-10.2 (restores Rebaselining trigger (a)), calc-affecting fields
coupled with the sap_version flip, and growing Elmhurst-anchored validation.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 20:24:34 +00:00
Daniel Roth
8322c197aa
Merge pull request #1331 from Hestia-Homes/feature/handle-main_heating_category-11
...
Fix UnmappedSapCode for main_heating_category 11 (electric ceiling heating)
2026-06-25 17:14:55 +01:00
Khalim Conn-Kowlessar
ecb31bf114
Inject Solar throttle gap derived from queue maximum_concurrency
...
Terraform computes SOLAR_MIN_REQUEST_INTERVAL_SECONDS = N / (0.8 * 600 / 60)
from var.maximum_concurrency (=4.0s at N=32) so the fleet width has one source
of truth and the per-container Solar pacing tracks it automatically.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 16:05:57 +00:00
Khalim Conn-Kowlessar
1e3c401b38
Resolve the Solar throttle gap from env with a 32-wide fallback 🟩
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 16:04:39 +00:00
Khalim Conn-Kowlessar
85e203f366
Resolve the Solar throttle gap from env with a 32-wide fallback 🟥
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 16:03:42 +00:00
Khalim Conn-Kowlessar
4b9bd495e1
Pace Solar calls per container to stay under the 600 QPM fleet cap 🟩
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 16:00:33 +00:00
Daniel Roth
60b4cae498
_secondary_heating_fraction_for_category returns 0.10 for category 11 (electric ceiling heating) 🟩
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 15:59:47 +00:00
Daniel Roth
a19b3dada1
_secondary_heating_fraction_for_category returns 0.10 for category 11 (electric ceiling heating) 🟥
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 15:59:14 +00:00
Khalim Conn-Kowlessar
48a47590e9
Pace Solar calls per container to stay under the 600 QPM fleet cap 🟥
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 15:59:00 +00:00
Daniel Roth
c89ab7692d
Merge pull request #1329 from Hestia-Homes/feature/modelling-e2e-bugs
...
Fix: synthesise SapFloorDimension for SAP-16.0 flats with missing floor dimensions to unblock roof recommendations
2026-06-25 16:12:46 +01:00
Daniel Roth
5a4285e1b7
Include address and postcode in floor-dims synthesis ValueError for triage
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 15:07:07 +00:00
Daniel Roth
8024065d04
Raise ValueError when floor dims absent and synthesis guards cannot fire 🟩
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 15:03:03 +00:00
KhalimCK
c1869eb5db
Merge pull request #1327 from Hestia-Homes/fix/solar-429-backoff-jitter
...
fix(solar): ride out Google Solar 429s with jittered backoff
2026-06-25 16:02:48 +01:00
KhalimCK
2c49ca630c
Merge pull request #1328 from Hestia-Homes/fix/flat-location-banded-string
...
fix(epc-mapper): coerce banded flat_location "20+" to its floor integer
2026-06-25 16:02:26 +01:00
Daniel Roth
e62e5fbfe4
Add comment explaining floor-dim synthesis guard and bungalow coverage gap
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 14:24:59 +00:00
Daniel Roth
76d07dba39
Pin synthesised SapFloorDimension total area and heat-loss perimeter as regression tests 🟩
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 14:18:27 +00:00
Daniel Roth
8a909dc15b
Mapper synthesises SapFloorDimension for SAP-16.0 flats with empty floor dims 🟩
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 14:16:36 +00:00
Daniel Roth
c1e754057b
Mapper synthesises SapFloorDimension for SAP-16.0 flats with empty floor dims 🟥
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 14:14:03 +00:00
Khalim Conn-Kowlessar
48760971a7
Coerce banded flat_location string to its floor integer 🟩
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 12:01:44 +00:00