feat(tradein): AI-curated premium-building overlay — class + false-positive demotion (#2002) #2021
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#2021
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/tradein-premium-curated"
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?
Summary
An AI/human-curated overlay on the concentration-based
premium_housesMV (#2006). The MV flags a building premium purely by expensive-listing concentration — which mislabels mass-market buildings with a few inflated lots, and non-EKB / data-noise listings, as premium. A 9-agent curation pass assessed the top-90 candidates by descriptions + ppm² + web (ЖК name/class/developer): 69 confirmed premium (with class tier) + 19 false-positives demoted (~21% of the top tier — mostly cross-city mislabels: Нижний Новгород / Челябинск / Краснодар / Сочи, and comfort-class buildings with outlier lots). Metadata only — pricing untouched, gate byte-identical.premium_buildings_curated(data/sql/142):house_id PK, tier, is_premium, confidence, note. Seeded with 88 curated rows, idempotent (ON CONFLICT DO UPDATE). Dry-run on prod: CREATE + INSERT 88, demoted=19, rolled back._is_premium_buildingnow consults curated FIRST →(is_premium, med_ppm2, building_class): a curated row overrides the MV (corrects the flag + supplies a class); uncurated house_ids fall back to MV membership (recall preserved).CAST(:hid AS bigint), graceful try/except if either table is missing.AggregatedEstimate.premium_building_class(новое поле) — feeds manual-review (#2019) + frontend.premium_buildingbool now reflects the corrected value (e.g.house_id 9401Цвиллинга 7/6 «Парковый квартал», comfort → nowfalse).Examples (curated)
Гоголя 21 → элит · Башня Исеть (Ельцина 6) → премиум · Тихвинъ (Хохрякова 48) → элит · Макаровский Элит (Олимпийская 5) → элит · Клубный Most/Литературный → премиум · Чкалова 119 (ЛСР Южные кварталы, comfort) → demoted.
Test plan
tests/test_estimator_premium_building.pyrewritten for 3-tuple — curated-override, false-positive demotion, class flow-through, uncurated MV fallback, graceful missing-tabletest_search_cache_hit)Follow-up (#2002)
Frontend surfaces
premium_building_class+manual_review_*. Data-quality: the cross-city false-positives are non-EKB listings polluting EKB house_ids — worth a separate scraper-geo audit.Refs #2002