Model/tests/orchestration
Khalim Conn-Kowlessar 9ec7987e97 PR review: best-effort read path, true per-member streaming, race-safe 409, local email 🟩
Addresses PR #1498 review:
- A per-file read failure (missing/deleted object, or a bucket the role can't
  reach) is now a SkippedDocument(reason=unreadable), not a whole-run abort;
  an all-unreadable selection still fails (no empty package). Best-effort on
  the read path (ADR-0060).
- Each ZIP member is streamed to a temp file (S3DocumentDownloader.download,
  boto download_file) and added from disk, so a single multi-GB member never
  hits the heap — the 'never held whole in memory' claim is now true.
- The 409 double-submit guard is DB-arbitrated: the sub_task insert is
  conditional on the task having none, so a race creates only one.
- Local env gets a placeholder recipient email so the route is exercisable.
- PackageEntry carries landlord_property_id so a read failure can be reported.
- TODO noting the UploadedFile.s3_upload_timestamp typing fix.
Two new tests: per-file read failure skips-and-reports; address fallback flows
to the folder name.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 11:08:46 +00:00
..
audit_generator move spreadsheet population logic to domain 2026-06-09 14:43:24 +00:00
magic_plan UploadedFile, FileTypeEnum, FileSourceEnum importable from infrastructure.postgres.uploaded_file_table 🟩 2026-06-09 11:50:51 +00:00
__init__.py added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
fakes.py Review nitpicks: pids_with_default naming, empty-batch guard, truthful fake 🟪 2026-07-07 16:44:23 +00:00
test_abri_orchestrator_amend_job.py Amending an appointment needs only the deal's changed date and time 🟪 2026-07-07 10:07:23 +00:00
test_abri_orchestrator_log_job.py A changed booking amends the deal's OpenHousing appointment 🟩 2026-07-07 10:01:01 +00:00
test_abri_orchestrator_tenant_data_sync.py A changed booking amends the deal's OpenHousing appointment 🟩 2026-07-07 10:01:01 +00:00
test_ara_first_run_pipeline.py feat(modelling): ModellingOrchestrator persists a Plan end-to-end (#1157) 2026-06-03 12:08:32 +00:00
test_ara_first_run_pipeline_integration.py Fix integration test: LPG solid-brick dwelling now correctly offered HHRSH (#1378) 2026-07-01 11:14:36 +00:00
test_build_canonical_filename.py move tests out of scripts/ 2026-06-15 11:11:08 +00:00
test_bulk_document_download_orchestrator.py PR review: best-effort read path, true per-member streaming, race-safe 409, local email 🟩 2026-07-08 11:08:46 +00:00
test_bulk_upload_finaliser_orchestrator.py feat(modelling): mark a Property as run via has_recommendations + updated_at 2026-06-16 23:34:33 +00:00
test_first_run_without_database.py feat(modelling): run_one console entrypoint for DB-less inspection 2026-06-04 08:14:14 +00:00
test_ingestion_orchestrator.py 17.1 and 18 done by claude 2026-06-12 12:52:36 +00:00
test_ingestion_prediction.py An expired historic cert conditions ingestion's prediction and labels it 🟥 2026-07-06 08:34:54 +00:00
test_landlord_description_overrides_orchestrator.py Group landlord property-override enums under domain/epc/property_overrides 🟪 2026-06-19 14:49:58 +00:00
test_modelling_heat_pump_sizing_threading.py The orchestrator threads the dwelling design heat loss into ASHP sizing 🟥 2026-07-03 10:31:57 +00:00
test_modelling_solar_threading.py feat(modelling): gate generation by the considered-measures allowlist 2026-06-16 14:56:09 +00:00
test_postcode_splitter_orchestrator.py updated rdsap option; seperated s3 location in infrastrucutre; added open ai api 2026-05-22 14:00:33 +00:00
test_property_baseline_orchestrator.py ASHP sizing targets the Appendix-N efficiency peak (realistic installed pump) 🟩 2026-07-03 11:02:13 +00:00
test_task_orchestrator.py Test names state the surviving failure-recovery behaviors 🟪 2026-07-07 11:12:12 +00:00