fix(scoring): correct price_feasibility reason — market rate, not subsidized (#1225)
All checks were successful
CI / changes (pull_request) Successful in 8s
CI / changes (push) Successful in 8s
CI / frontend-tests (pull_request) Has been skipped
CI / frontend-tests (push) Has been skipped
CI / backend-tests (pull_request) Successful in 6m38s
CI / backend-tests (push) Successful in 6m37s

ProductScore.reason для price_feasibility (§14.2) называл основу платежа
'субсид. ставка', но compute_affordability с #981 DoD перешёл на рыночный
прокси key_rate + 4.5 п.п. (~19%, rate_kind='key_rate_proxy'); субсидированный
путь не вызывается. Метка делала рыночный платёж в §22-отчёте похожим на
льготный и противоречила affordability.degraded_reason в том же payload.

Текстовый фикс: 'рыночная ставка key_rate + спред, §7.9' — число платежа
было корректно, advisory-описание теперь совпадает.

Closes #1225
This commit is contained in:
Light1YT 2026-06-13 13:08:32 +05:00
parent ac446236e7
commit 514d627ce6

View file

@ -401,7 +401,7 @@ def _score_price_feasibility(
value = _PRICE_HALF_PAYMENT_RUB / (_PRICE_HALF_PAYMENT_RUB + monthly_payment_rub)
reason = (
f"Прокси платежа ~{round(monthly_payment_rub / 1000.0)} тыс.₽/мес "
f"(субсид. ставка, §7.9 — доступность относительная)."
f"(рыночная ставка key_rate + спред, §7.9 — доступность относительная)."
)
return value, confidence, reason