fix(estimator): low-findings аудита «Мера» — cian sanity, deal floor-edge, price_trend dedup, DEAL_MAX verify #1863
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#1863
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/estimator-low-findings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Закрывает low-findings аудита «Мера» (последний хвост). 4 покоммитных фикса.
Коммиты
50a72f03Cian valuation sanity bounds —_is_price_sane:sale_price_rubвне[cian_valuation_min_rub=500k, max_rub=500M]илиlow>high/отрицательные → warning + None (битый API не становится якорем). Заодно починен pre-existing KeyError в тест-моке.81ee864d_is_plausible_deal floor/area/price edge —floor<1(ловит 0/-5) или>60→ drop;area<=0/price<=0→ drop; None graceful. Защита от битого парсера. Caller_fetch_dealsпрокидывает area/price.af1d8827cross-source dedup price_trend —DISTINCT ON (round(area), floor, price, date)с приоритетом source (avito_imv>yandex) → одна сделка на Avito+Yandex не двоится в тренде. Легитимно разные квартиры (разная цена) не схлопываются. Флагestimate_price_trend_dedup_enabled(True).92725c61DEAL_MAX_PPM2 — verify, НЕ менял — проверено по proddeals(49791 записей): p90=172k, p99=279k, p99.9=500k, выше 800k всего 13 сделок (0.026%) = outlier'ы, не премиум.DEAL_MAX_PPM2=800kадекватен (двойной запас над p99.9) → значение не тронуто, добавлен верификационный комментарий с цифрами+датой.Новые settings
cian_valuation_min_rub=500_000,cian_valuation_max_rub=500_000_000,estimate_price_trend_dedup_enabled=True.Тесты
33 новых, ruff clean, 2156 passed (1 pre-existing fail
test_search_cache_hit, не связан).Деплой
Backend Python → recreate tradein-backend. Аддитивно, без миграций, без изменения ценовых порогов (#4 verify-only). Cross-ref аудит
audits/Mera_Tradein_Estimate_Audit_0620.md.После этого PR по «Мере» открытых findings аудита НЕ остаётся (только coverage-левер houses/detail через city_sweep — отдельная операционная задача, не дефект).