Commit Graph
1 Commits
Author SHA1 Message Date
Максименко Никита ВладимировичandClaude Sonnet 5 e00062ea9f test: real Alfa-Bank addresses from the CBR registry; fix two gaps they found
alfabank.ru itself is unreachable from this environment, so addresses
came from the official regulator registry instead (cbr.ru/finorg/foinfo,
"Alfa-Bank subdivisions") — 981 addresses across 509 cities, one per
region sampled into benchmark-bank-context.txt (60 lines) as the
office-address trap the spec calls out explicitly.

Running them surfaced two real precision bugs, not just more test
data:

- ORGANISATION_NEARBY's veto window (80 chars) was too narrow for
  official addresses that include a region name before the city —
  "Отделение ... Республика Бурятия, г. Северобайкальск, ..." puts
  the house number 80+ chars from the anchor. Widened to 150.

- The two dictionary-only FIO rules (surname + capitalized word,
  no role word) had no address-context veto at all: "Великие Луки"
  matched as the given name "Лука" plus a stray word, "Богдана
  Хмельницкого" as a person because streets named after people are
  syntactically identical to actual names. Added the same
  ORGANISATION_NEARBY veto the address rules already use.

False-positive rate on the 60-address sample: 40.5% before, 0% after.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-21 21:29:57 +03:00