Model/docs
Khalim Conn-Kowlessar 90fe2914e0 Select documents by HubSpot project_code(s), unioned with hand-picked property_ids
The 'all properties' selection resolved against property.portfolio_id, but a
portfolio spans multiple HubSpot projects — so 'all' pulled the whole portfolio,
not the project the user was looking at. The project↔property grain lives on
hubspot_deal_data, not property.

task.inputs is now {project_codes?: str[], property_ids?: int[], portfolio_id?}:
the route resolves the distinct landlord_property_id set as the union of every
property in the named project_codes (from hubspot_deal_data) and the hand-picked
property_ids; portfolio_id is optional and only names the package. Drops the
portfolio-scoped select_all. Cap now applies to the resolved set size.

ADR-0060, CONTEXT.md and the request schema updated to match. New router tests
cover project-code resolution, the union+dedup, null landlord_property_id drop,
and the empty-project rejection.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-08 11:42:17 +00:00
..
adr Select documents by HubSpot project_code(s), unioned with hand-picked property_ids 2026-07-08 11:42:17 +00:00
backlog move spreadsheet population logic to domain 2026-06-09 14:43:24 +00:00
grill-sessions scripts? 2026-06-11 07:07:27 +00:00
migrations Document the nullable lodged_* migration for the FE/Drizzle owner 2026-06-30 22:19:54 +00:00
baseline-downgrade-followups.md docs: record predicted-property display fixes (item 4) 🟪 2026-06-26 10:54:53 +00:00
HANDOVER_API_ACCURACY_S2.md docs: session-2 API-accuracy handover (fabric+tariff fixes, worksheet path) 2026-06-06 19:13:21 +00:00
HANDOVER_API_FETCH_AND_REPORT.md docs(modelling): handover — EPC API fetch + property inspection report 2026-06-04 10:46:31 +00:00
HANDOVER_API_PROFILING.md docs: session-9 close-out + session-10 handover (summary-report-based audit) 2026-06-09 14:54:08 +00:00
HANDOVER_ARA_NEXT.md docs: correct SAP calculator path in CONTEXT (domain/sap → domain/sap10_calculator) 2026-06-04 15:40:26 +00:00
HANDOVER_EPC_PREDICTION.md docs(epc-prediction): handover for the accuracy backlog + geo work 2026-06-15 15:12:00 +00:00
HANDOVER_EPC_PREDICTION_WIRING.md feat(epc-prediction): thread prediction injection points through the composition root 2026-06-16 13:53:54 +00:00
HANDOVER_MODELLING.md docs(modelling): next-phase handover — depth + scale e2e + grilling prompt 2026-06-03 23:09:08 +00:00
HANDOVER_NEXT_PHASE_PROMPT.md docs(modelling): next-phase handover — depth + scale e2e + grilling prompt 2026-06-03 23:09:08 +00:00
HANDOVER_REAL_LIFE_CERT_ACCURACY.md docs: handoff for expanding the real-life cert SAP-accuracy corpus 2026-06-15 15:28:40 +00:00
HANDOVER_SUMMARY_AUDIT.md docs: session-9 close-out + session-10 handover (summary-report-based audit) 2026-06-09 14:54:08 +00:00
MIGRATION_NOTE_predicted_epc_source.md feat(epc-prediction): slice-5c predicted-EPC persistence slot 2026-06-16 03:50:19 +00:00
PR_NOTE_system_built_basement_1177.md docs: PR note for #1177 — system_build property vs field merge collision 2026-06-04 19:51:29 +00:00