mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
The codebase targets SAP 10.2 (14-03-2025) per ADR-0010 and the values match SAP 10.2 (grid CO2 = 0.136 not 0.086, ECF deflator = 0.42, etc.). But ~35 docstrings/comments labelled formulas / sections / appendices as "SAP 10.3 (13-01-2026)" — mis-labeling without affecting behaviour. Relabels all of them to "SAP 10.2 specification (14-03-2025)" where the formula being implemented is identical between 10.2 and 10.3 (which is the vast majority — §1-§9 heat balance, §11/§13 SAP rating equations, Appendix U climate tables, Table 9a/9c utilisation factor). Intentionally retained: - `worksheet/rating.py:14` — explicit comparison "SAP 10.3 widens these to 0.36 / 16.21 / 108.8 / 120.5" annotating where 10.3 values would differ from the 10.2 values we ship. - `tables/table_12.py` — its docstring explicitly compares 10.2 vs 10.3 CO2 / PEF differences; the file's purpose is the 10.2 → 10.3 reference table, so the 10.3 label is intentional discussion. All 515 passing tests continue to pass (only the 48 known cascade-pin failures from slice 19a remain — those are real residuals, not label issues). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| domain | ||
| fetchers | ||
| repos | ||
| utils | ||
| README.md | ||
Shared packages
Workspace packages consumed by services/*. Each package is its own Python distribution with its own pyproject.toml; services import via the workspace dependency mechanism ({ workspace = true }).
| Package | Purpose |
|---|---|
domain/ |
Shared domain types — Property, BaselinePerformance, Plan, Scenario, EpcPropertyData, etc. No persistence, no IO, no business logic. |
repos/ |
Persistence layer — one repo per aggregate. Owns the SQL. Depends on domain. |
fetchers/ |
External API clients (gov EPC, Ofgem, Google Solar, etc.). Depend on domain for response shapes. |
utils/ |
Cross-cutting infra — logging, S3, CloudWatch URL builders, SQS task helpers. |
Adding a new shared package
Only when a real second consumer materialises. Don't pre-shatter (repos-epc, repos-property, ...) — split when a deployment needs to drop a dep, not before.
See ../ara_backend_design.md §11 for the broader monorepo layout and ../CONTEXT.md for the domain glossary that names the types living in domain/.