fix(tradein): drop non-EKB avito detail coords on ingest (audit #1871 P2) #1879
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#1879
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "audit/1871-p2-avito-coord"
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
Audit-issue #1871 🟠 P2 — Avito coord-filter. Prod-verified 2026-06-23: 406 active avito-листингов с координатами Питер/Тюмень/Уфа просочились в ЕКБ-датасет (ложные аналоги через Tier A address-match оценщика). Дыра —
avito_detail.parse_detail_htmlписалdata-map-lat/lonбез bbox-валидации (geocoder фильтрует везде, avito_detail — нет).Изменения (4 файла, +184/-2)
is_within_ekb_bbox(lat, lon, bbox)+is_within_ekb_bbox_wide(); константыEKB_BBOX_TIGHT(56.65-56.95/60.40-60.85, = старые inline-числа) +EKB_BBOX_WIDE(56.6-57.1/60.3-60.9). 2 inline tight-проверки → хелпер (поведение identical).parse_detail_html: после извлечения lat/lon, если вне wide-bbox → reset None +logger.warning. COALESCE NULL не затирает прежнее хорошее значение; листинг падает в geocode-cron.WIDE строго содержит TIGHT — guard физически не режет ничего, что geocoder сам бы пропустил.
Scope-границы
Test plan
Deploy:
deploy-tradein.yml.Refs #1871
🤖 Generated with Claude Code