Repository navigation
Description
Spec unit 1.21 (Match confidence model) · parent #513
1–100 per record; group score = average of record scores and must include the master; minimum match confidence slider per dataset.
Done: Confidence identical in UI, export, API and Live Dedupe; threshold 80 excludes 79.6 consistently.
What exists
A threshold pair on a match-weight bit scale, not 0–1 and not 1–100. er-config/src/lib.rs:225 declares auto_merge/review_low as f64, and the doc comment at :233 is explicit: "auto_merge: 20 means 'most of the evidence' at a 22-bit scale".
That scale is the right internal representation — it is additive in log-odds and it is what the Fellegi–Sunter maths produces. It is also not a number anyone can put on a slider.
The gap
- No calibrated 1–100 projection of a match weight.
- No defined group score (the spec's is the average of member scores, and must include the master).
- Nothing guarantees the same number appears in the UI, an export and the API — today each surface would have to project the bits itself, which is how three surfaces come to disagree.
Why this is P0 rather than polish
A confidence number that differs between the review screen and the CSV is a correctness bug that reads as a rounding quirk. The spec's own done-criterion is a boundary case (threshold 80 excludes 79.6), which only has an answer once one function owns the projection.
Done when
- one function maps match weight → 1–100, with its rounding rule stated and tested at boundaries
- group score defined as the spec has it, master included, with a test that a master-excluded average is rejected
- UI, export and API all read that projection — no second implementation
- threshold 80 excludes 79.6 in all three, as one test per surface
Split out of the parent epic on 2026-11-07 by reading the spec's pillar table against this repo, file by file. Every "what exists" line below was grepped, not inferred — the parent epic's own history includes a coverage figure that was wrong because a stale design doc was trusted. Spec unit numbers refer to the DataGroomr Feature Parity Spec pillar tables. Estimates are mine and independent of the epic's total.
Activity
athvin commentedon Nov 8, 2026
Claimed — working in #827 (draft). Closing that PR releases the claim.
feat(match): one 1-100 confidence projection, identical in UI, export…