feat(site-finder): детерминированная атрибуция застройщика в analyze (#1088) #1302
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#1302
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/developer-attribution-1088"
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
Детерминированная атрибуция застройщика для Site Finder analyze (#1088, GG-форсайт future-supply).
Связывает «пятно земли ↔ застройщик»:
ekburg_construction_permits(РНС ЕКБ, 4059 строк, есть developer_inn/cadastral_number/geom) ⋈domrf_kn_objects(10699, dev_inn/cad_quarter) по нормализованному ИНН + spatial/quarter fallback. Закрывает дыру: WFS/НСПД дают геометрию+статус, но не имя застройщика.Что добавлено (additive, 0 удалений)
data/sql/149_developer_attribution.sql—fn_normalize_inn, matviewdeveloper_registry(1024 застройщика, канон-имя + track-record + unique-idx для REFRESH CONCURRENTLY),developer_attributionview,fn_developer_for_parcel(cad, radius)резолвер (exact_cadastral → spatial_150m → quarter),fn_refresh_developer_registry. Проверена на prod BEGIN/ROLLBACK.services/site_finder/developer_attribution.py—get_developer_attribution(), дедуп по ИНН, graceful→None (OperationalError/ProgrammingError/DataError, pre-migration safe).workers/tasks/developer_registry_refresh.py+ beat-entry (1-го числа 05:30 МСК, после ekburg-permits).developer_attribution, только при наличии застройщика).Prod-факты
68% domrf-застройщиков имеют РНС; 80% domrf-объектов принадлежат застройщику с РНС. EXPLAIN: point-lookup 0.06ms, резолвер ~30ms.
Test plan
Деплой-порядок
Миграция 149 auto-apply через
_schema_migrationsПЕРЕД backend-кодом (sql.md). До применения сервис graceful→None.Closes #1088