fix(estimator): топ-5 фиксов аудита «Мера» (anchor gate, analog_tier, freshness, MAD-order, data-age) #1836
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#1836
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/estimator-audit-top5"
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?
Топ-5 находок аудита trade-in оценки «Мера» (vault
audits/Mera_Tradein_Estimate_Audit_0620.md). 6 коммитов покоммитно, все пороги вsettingsс дефолтом ≈ текущему поведению, расчётные изменения за флагами.Коммиты
55c7bc2canchor low-confidence gate — якорь сconfidence=="low"ИЛИ (n<3Иfsd>0.20) больше не подменяет headline → fallback на radius. Settings:estimate_sb_low_conf_gate_enabled=True,estimate_sb_gate_min_n=3,estimate_sb_gate_max_fsd=0.20. Здоровые якоря (n≥4, fsd<0.15) проходят.6b99f7d2структурный analog_tier —AggregatedEstimate.analog_tier: Literal["same_building","micro_radius","district","city"] | None. Tier A→same_building, C→micro_radius, W→city, иначе district. Убирает хрупкий string-parse на фронте.address_precisionуже был в схеме (стр 208), не тронут. explanation сохранён (фронт fallback).17edac53Yandex history freshness —_fetch_price_trendисключает items старшеestimate_price_trend_max_age_months=6(scraped_at > now() - CAST(...)). Старая история (2024) больше не весит наравне со свежей.5b2a39cdMAD-clip после similarity-weighting + sigma>0 guard — clip на взвешенных значениях (видовой компл с меньшей площадью не выкидывается); guard против div-by-zero при σ=0 из config. Флагestimate_sb_clip_after_weight=True.a6ef2c73data-age guards — sber-серия старшеsber_index_max_age_days=35→ warning;AvitoImvSummary.thin_market: boolприmarket_count < avito_imv_thin_market_threshold=10. + empty-series guard (чинит pre-existing mock-test краш).daa2edfaтесты —tests/test_estimator_audit_fixes.py18 тестов.Проверка
ruff clean. pytest полный suite 445 passed, 0 failed.
Примечание (verify-don't-trust)
Аудит ОТКЛОНИЛ 2 заявленных CRITICAL после code-trace: repair-coef «double-apply» (anchor заменяет median, repair 1×) и temporal «double-count» QI+Sber (QI = кадастровый geo-квартал, не календарный). Эти НЕ менялись — они были false-positive.
Деплой
Backend Python → пересборка + recreate
tradein-backend. Аддитивно (новые опц. поля/settings), без миграций. Парный фронт-PR (analog_tier/expected_sold UI) мержить ПОСЛЕ деплоя этого. NB: не вплотную к другим tradein-PR (rapid-merge → stale image).