Expand matcher regression fixtures#95
Conversation
Grow the source-agnostic regression set from 8 to 18 entries and document it. Drop confidence-band assertions: specific scores shift on any weight tweak and are noise for a regression suite. - fakeRepo now applies the compat filter so fixtures can include category-incompatible distractors and verify blocking excludes them. - Added coverage for distance boundary (5/35/49/51 m), name variations (business suffix, word reorder, partial overlap), genuine ambiguity, category distractor, and address mismatch. - New testdata/README.md explains the entry format, assertion policy, and how to add a new entry. Closes #73. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Claude finished @koinsaari's task in 4m 28s —— View job PR #95 Review: Expand matcher regression fixtures
No blocking issues. What was checkedfakeRepo category filter ( Confidence-band removal ( Fixture math verification (score.go constants:
All 18 fixtures are mathematically consistent with the scorer. Normalization correctness: README ( 🟡 NitThe |
Summary
internal/identity/testdata/match_fixtures.jsonfrom 8 to 18 entries, covering distance boundaries, name variations, genuine ambiguity, category distractor, and address mismatch.fakeReponow applies the category compat filter, so fixtures can include incompatible distractors and verify blocking excludes them.MinConfidence/MaxConfidence). Specific scores shift on every weight tweak; the regression suite assertsKind+MatchedPlaceIDonly.internal/identity/testdata/README.mdexplains the entry format, assertion policy, what is covered, and how to add a new entry.Closes #73. Per-source realism fixtures are tracked separately under #94.
Test plan
go test ./...— 264 passed across 17 packagesgo vet ./...— cleango test ./internal/identity/ -run TestMatch_Fixtures -v— all 18 fixtures pass🤖 Generated with Claude Code