mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
The warm-start (and max-gain fallback) now price each forced Measure Dependency the candidate triggers, not just inject it afterwards: optimise/optimise_min_cost fold dependencies into each candidate's cost+gain via _augmented_cost_gain, and optimise_package scores each dependency's true role-1 signal (_with_role1_signals) instead of the 0.0 placeholder. This stops the min-cost objective (i) ignoring the ~£900 a wall drags in (a wall-free package reaching target can be cheaper) and (ii) picking a small-gain wall whose mandatory ventilation (down to -5 SAP) makes it net-negative, which repair cannot un-pick. Budget is now a hard envelope: the constraint applies to the augmented (measure + its ventilation) cost, so a wall that fits alone but whose ventilation would bust the budget is DROPPED rather than forced over budget. This reverses the earlier 'forced regardless of budget' call (which made sense when selection was ventilation-blind). Safety invariant intact — presence still injected on every path; we just never recommend a wall we can't afford to ventilate. ADR-0016 amendment updated. 94 modelling+orchestration tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| adr | ||
| migrations | ||
| HANDOVER_ARA_NEXT.md | ||
| HANDOVER_MODELLING.md | ||