mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Build the cohort IO port ADR-0029 deferred (ADR-0031 slice-5b): `ComparablePropertiesRepository.candidates_for(postcode) -> list[Comparable]`, with an EPC-API + geospatial adapter that lists the postcode's lodged certs (search_by_postcode), fetches + maps each (get_by_certificate_number), and resolves their UPRNs to coordinates in ONE batched read. Register metadata the cert doesn't carry (address, registration date) is threaded off the search row; a UPRN-less or unparseable-date cert is kept, just uncoordinated / unweighted. The domain select_comparables then filters these candidates into the cohort. Thin CohortEpcClient / CohortGeospatial Protocols keep the adapter testable against fakes; EpcClientService + GeospatialS3Repository satisfy them structurally (no changes). 3 tests; pyright strict clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| applications | ||
| datatypes | ||
| domain | ||
| fixtures/epc_prediction | ||
| harness | ||
| infrastructure | ||
| magic_plan | ||
| orchestration | ||
| repositories | ||
| scripts | ||
| utilities | ||
| __init__.py | ||
| conftest.py | ||
| test_lambda_packaging.py | ||