mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
SapHeating.cylinder_heat_loss is read by the calculator (cert_to_inputs §4 cylinder loss) but had no column, so it was silently dropped on save: a dwelling reloaded from Postgres lost its lodged cylinder loss and fell back to the Table 2b age-band default — worst case -15.53 SAP over the corpus round-trip (#1665). Add heating_cylinder_heat_loss (nullable double precision) to EpcPropertyModel, write it in from_domain and reconstruct it in the SapHeating compose path, mirroring heating_cylinder_volume_measured_l. Remove the now-false _UNPERSISTED_ALLOWLIST entry ("dormant — not read by the calculator") so the ADR structural guard enforces it. Verified: worst cylinder cert 10091630692 round-trip -15.53 -> 0.0000. Companion assessment-model migration (heating_cylinder_heat_loss column) must land + be applied per-environment before the backend deploys (deploy gate). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| abri | ||
| applications | ||
| backend | ||
| datatypes | ||
| domain | ||
| e2e | ||
| fixtures | ||
| harness | ||
| infrastructure | ||
| lambdas | ||
| magic_plan | ||
| orchestration | ||
| repositories | ||
| scripts | ||
| utilities | ||
| utils | ||
| __init__.py | ||
| conftest.py | ||
| test_lambda_packaging.py | ||