feat(forecasting): what-to-build ranker + MAI proxy (#981, 952-B) #1013

Merged
bot-backend merged 1 commit from feat/952b-deficit-index-mai into main 2026-06-03 07:07:17 +00:00
Collaborator

Site Finder v2 / EPIC 8 — таск #981 (952-B): ранкер «что строить» §9.7 + MAI §7.9. Поверх движка #980. Детерминированный, без LLM. ADVISORY.

  • what_to_build.rank_segments — прогон движка #980 по сетке class×room×price (15 ячеек) → ранг по deficit_index DESC (tie-break confidence/segment-key, None-drop). +дефицит=строить / −=затоварка.
  • affordability.compute_affordability — §7.9 MAI degraded payment-burden proxy (субсидированная ставка + аннуитет 50м²/240мес). payment_to_income ВСЕГДА None (#946 нет дохода), rate_kind ВСЕГДА subsidized_weighted (рыночной ~20% нет), confidence ВСЕГДА low + degraded_reason.

62 теста (forecasting/ всего 368). self-review (_annuity rate≤0 guard, _rank_key DESC+tie-break, MAI честный degraded-контракт). Closes #981. Refs #952

**Site Finder v2 / EPIC 8 — таск #981 (952-B): ранкер «что строить» §9.7 + MAI §7.9.** Поверх движка #980. Детерминированный, без LLM. **ADVISORY**. - `what_to_build.rank_segments` — прогон движка #980 по сетке class×room×price (15 ячеек) → ранг по deficit_index DESC (tie-break confidence/segment-key, None-drop). +дефицит=строить / −=затоварка. - `affordability.compute_affordability` — §7.9 MAI degraded payment-burden proxy (субсидированная ставка + аннуитет 50м²/240мес). **payment_to_income ВСЕГДА None** (#946 нет дохода), rate_kind ВСЕГДА subsidized_weighted (рыночной ~20% нет), confidence ВСЕГДА low + degraded_reason. **62 теста** (forecasting/ всего 368). self-review ✅ (_annuity rate≤0 guard, _rank_key DESC+tie-break, MAI честный degraded-контракт). Closes #981. Refs #952
bot-backend added 1 commit 2026-06-03 07:07:15 +00:00
EPIC 8 advisory deliverables over the #980 demand/supply engine, deterministic,
no LLM, no new SQL:
- what_to_build.rank_segments: runs compute_demand_supply_forecast across a
  class×room_bucket[×price] grid (default 3×5×1=15) per district/cad_num/horizon,
  drops deficit_index=None cells, ranks deficit_index DESC (tie-break confidence
  DESC then stable segment key). +deficit=build-signal, −=затоварка.
- affordability.compute_affordability: §7.9 MAI degraded payment-burden proxy via
  subsidized weighted rate (_current_mortgage_rate) + annuity on 50m²/240mo.
  payment_to_income always None (#946 no income), rate_kind always
  subsidized_weighted (market ~20% absent), confidence always low.
- Pure _rank_key / _annuity (rate≤0 → principal/months guard) unit-tested.
62 new tests; 368 forecasting tests green. Advisory + un-wired.
bot-backend merged commit 489e380f1e into main 2026-06-03 07:07:17 +00:00
bot-backend deleted branch feat/952b-deficit-index-mai 2026-06-03 07:07:17 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lekss361/gendesign#1013
No description provided.