mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Closes out the cohort-broadening work with its decision record and consolidates the retry plumbing. ADR-0034 documents broadening the EPC-Prediction cohort to the real unit postcodes nearest the target (via postcodes.io) when its own postcode holds no same-type comparable — extending ADR-0031 decision 5. Records why postcodes.io was chosen over council[] (whole-LA, no property_type in rows), a bulk Code-Point Open / ONSPD dataset, and the OS Places radius API, and the lazy / nearest-first early-stop / soft-fail policy. Broadening-specific docstrings now cite 0034. Retry consolidation: extract the EPC client's call_with_retry into a shared infrastructure/http_retry.py keyed off a generic TransientHttpError marker, so the mechanism (exponential backoff, Retry-After) is shared while each client keeps its own transient policy. EpcRateLimitError now subclasses TransientHttpError (still an EpcApiError); PostcodesIoClient routes through the same helper, raising TransientHttpError on 429/5xx and soft-failing to the seed once exhausted (the EPC client propagates instead). Direct tests for the shared helper; EPC + postcodes.io suites repointed at the shared sleep. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| eon | ||
| hyde | ||
| lisasrequest | ||
| analyse_api_sap_clusters.py | ||
| build_epc_prediction_fixture.py | ||
| compare_epc_paths.py | ||
| decompose_api_cost_error.py | ||
| decompose_co2_pe_error.py | ||
| dive_cert.py | ||
| download_cotality_evidence.py | ||
| e2e_common.py | ||
| elmhurst_input_sheet.py | ||
| eval_api_sap_accuracy.py | ||
| fetch_2026_epc_sample.py | ||
| fetch_cohort2_api_jsons.py | ||
| fetch_corpus_coordinates.py | ||
| fetch_epc_bulk_sample.py | ||
| fetch_epc_dump.py | ||
| fetch_epc_prediction_corpus.py | ||
| fetch_epc_prediction_dense_corpus.py | ||
| fetch_real_life_epc_sample.py | ||
| fill_domna_addresses.py | ||
| finalise_to_property_table.py | ||
| historic_epc_demo.py | ||
| hyde_epc_schema_versions.py | ||
| init_db.py | ||
| inspect_overlay.py | ||
| profile_api_error.py | ||
| profile_case34.py | ||
| profile_corpus_error.py | ||
| resolve_uprns_for_finaliser.py | ||
| run_audit_generator_local.py | ||
| run_first_run_e2e.py | ||
| run_modelling_cohort.py | ||
| run_modelling_e2e.py | ||
| run_property_report.py | ||
| trigger_modelling_e2e_sqs.py | ||
| validate_epc_prediction.py | ||