Model/packages
Khalim Conn-Kowlessar 3d315a0d90 Slice 82: bulk-update cohort 000490 hand-built for Cat A diff parity
Closes 31 of 32 mapper-vs-hand-built load-bearing divergences by
populating fields the Elmhurst mapper extracts from Summary_000490.
pdf but the original hand-built left at their `make_minimal_sap10_
epc` / dataclass-default values. Every change is cascade-equivalent —
all 11 `_FIXTURE_PINS["000490"]` SapResult pins remain GREEN against
worksheet `SAP value 57.3979`.

000490-specific deltas vs prior cohort certs:

- `dwelling_type="End-Terrace house"`, `built_form="End-Terrace"` —
  first end-terrace fixture (vs Mid-Terrace / Enclosed Mid-Terrace
  on the other 4 cohort certs); sheltered_sides=1 is already set on
  the existing SapVentilation block.
- `number_of_storeys=2` — 000490 has no room-in-roof (2-storey main
  + 2-storey extension), so dwelling height is 2 (vs 3 for the RR
  cohort certs).
- `number_baths=1` on sap_heating — mapper extracts 1 from Summary
  §16; cascade-equivalent (Appendix J §1a defaults to 1 if absent).
- `wall_thickness_measured=True` on **both** bps (Summary §7 lodges
  measured Wall Thickness 400 mm).

Standard Cat A additions (per Slice 72/75/78 pattern): floor
descriptive fields per bp, roof_insulation_location, 6 ventilation
zero counts, draught_lobby=True, pressure_test="Not available",
top-level descriptive strings + booleans + extensions_count=1,
blocked_chimneys_count=0, shower_outlets=Non-electric shower,
central_heating_pump_age_str="Unknown".

Diff count: 32 → **1**. Remaining diff is `sap_windows: LEN 6 vs 3` —
closes via Slice 83.

Pyright net-zero on the touched fixture.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 18:09:45 +00:00
..
domain Slice 82: bulk-update cohort 000490 hand-built for Cat A diff parity 2026-05-25 18:09:45 +00:00
fetchers added potential file scaffolding: 2026-05-15 10:56:53 +00:00
repos added potential file scaffolding: 2026-05-15 10:56:53 +00:00
utils added potential file scaffolding: 2026-05-15 10:56:53 +00:00
README.md added potential file scaffolding: 2026-05-15 10:56:53 +00:00

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/.