gendesign/tradein-mvp/backend
bot-backend e6e2a2cdc4 fix(tradein): confidence_explanation no longer contradicts counters (#695)
When the same-building/micro-radius anchor built the headline, the explanation
CONCATENATED three fragments describing different populations: the radius base
text («Найдено N аналогов из M разных адресов»), the analog_tier note, and the
anchor sentence («построено по anchor['n'] аналогам из того же дома»). Result:
contradictory counts (n_analogs≠anchor['n'], e.g. «4 … по 5») and tiers
(«разных адресов» vs «того же дома»).

Fix: when the anchor fires, the anchor sentence becomes authoritative — replace
the explanation with it (+ repair_note, which is orthogonal) instead of
appending to the radius base + tier_note. Radius path unchanged.

Refs #695
2026-05-30 18:07:44 +03:00
..
app fix(tradein): confidence_explanation no longer contradicts counters (#695) 2026-05-30 18:07:44 +03:00
data/sql feat(tradein): white-label branded page for client «Практика» (#657) (#672) 2026-05-29 16:09:23 +00:00
scripts feat(backtest): per-rooms asking→sold correction block (#648 S1) (#650) 2026-05-29 13:11:55 +00:00
tests fix(tradein): confidence_explanation no longer contradicts counters (#695) 2026-05-30 18:07:44 +03:00
.dockerignore feat: add tradein-mvp subproject (Trade-In Estimator под /trade-in) 2026-05-21 00:25:39 +03:00
Dockerfile feat(tradein): persistent infra для backfill scripts (PR F) (#592) 2026-05-27 06:59:54 +00:00
pyproject.toml feat(rbac): role-based access control via X-Authenticated-User middleware (#585) 2026-05-26 06:18:40 +00:00