Commit graph

2 commits

Author SHA1 Message Date
lekss361
1f875e2179 fix(tradein): harden same-building anchor address normalizer for prod formats (#677)
#677 SB anchor matched 0 comps on real prod addresses (live golden KPI 67% vs 95% sim).
Rewrites _normalize_building_key to be format-invariant: strips city/r-n/mkr/dot-tail,
drops street-type words from either side (Олимпийская наб. <-> набережная), tolerant
house parse (',', 'д.', '/N', 'кN', glued corpus letter), ё->е + street alias on full
multi-word core. Validated on live DB: Ткачёва 13->27, Б.Ельцина 6->44, Олимп 13->5,
Сакко 99->4, Февральской 21->3 (all were 0); 13!=130/131, 99!=100 over-match guarded.
ruff clean; 30 anchor tests (12 new); no #677 weighting/guardrail change; behind flag.

Refs #651 #652 #677
2026-05-30 01:19:21 +03:00
03a3296332 feat(tradein): same-building anchor estimator (#651/#652 v2) behind flag (#677)
Some checks failed
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / test (push) Failing after 5s
Deploy Trade-In / build-backend (push) Has been skipped
Deploy Trade-In / deploy (push) Has been skipped
Co-authored-by: bot-backend <bot-backend@gendsgn.local>
Co-committed-by: bot-backend <bot-backend@gendsgn.local>
2026-05-29 21:01:21 +00:00