mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
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>
|
||
|---|---|---|
| .. | ||
| adr | ||
| backlog | ||
| grill-sessions | ||
| migrations | ||
| baseline-downgrade-followups.md | ||
| HANDOVER_API_ACCURACY_S2.md | ||
| HANDOVER_API_FETCH_AND_REPORT.md | ||
| HANDOVER_API_PROFILING.md | ||
| HANDOVER_ARA_NEXT.md | ||
| HANDOVER_EPC_PREDICTION.md | ||
| HANDOVER_EPC_PREDICTION_WIRING.md | ||
| HANDOVER_MODELLING.md | ||
| HANDOVER_NEXT_PHASE_PROMPT.md | ||
| HANDOVER_REAL_LIFE_CERT_ACCURACY.md | ||
| HANDOVER_SUMMARY_AUDIT.md | ||
| MIGRATION_NOTE_predicted_epc_source.md | ||
| PR_NOTE_system_built_basement_1177.md | ||