Repository navigation
Description
Spec unit 1.11 (Classic model: preprocessing) · parent #513
What exists — most of it
er-standardize plus er-config's transforms block already cover the spec's basic clean and more:
transforms: ordered per-attribute cleanse rules,TransformRule(er-config/src/lib.rs:59-85); a config with notransformsblock produces byte-identical staging SQL (er-standardize/src/lib.rs:90)lowercase_trim,email_norm(withemail_strip_plus_addressing),phone_e164,name_norm,name_variants,null_semantics,parse_date(er-standardize/src/lib.rs:16)- First N characters → the
first_n:<n>comparator - Synonym dictionary → the lexicon, loaded as
(term, canonical)pairs (er-server/src/runctx.rs:115) with aGET/PUT /v1/orgs/{org}/lexiconAPI
The gap
- Ignore-words / stop-words dictionary. Zero matches for
ignore_wordsorstopwordanywhere inrust/cratesorentities/. This is the spec's second dictionary type and it is genuinely absent — it is what makesAcme IncandAcme LLCagree. - Preprocessing visible in the score explanation. The spec's done-criterion is that each step shows in the explanation and names the dictionaries used.
waterfall-chart.tsxrenders score contributions; whether it can name the preprocessing applied needs checking before this is sized.
Explicitly not in scope: the spec's "disable basic clean for SKUs" switch. Transforms here are per-attribute and opt-in, so a SKU column simply declares none — the switch exists to undo a global default this engine does not have.
Done when
- an ignore-words dictionary type, reaching the comparison the same way the synonym lexicon does
-
Acme IncvsAcme LLCagree with a suffix dictionary loaded, as a golden test - the explanation names the dictionaries and transforms applied to a pair, or an issue comment records why that belongs with 1.22 instead
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 #853 (draft). Closing that PR releases the claim.
athvin commentedon Nov 8, 2026
Recording the box-3 deferral (the explanation naming the dictionaries/transforms applied to a pair): that belongs with spec unit 1.22 (score explanation), not here.
Reasoning: the match explanation (
match_scores.evidence, rendered bywaterfall-chart.tsx) is per-pair model output — comparison levels and weights for one record pair. Preprocessing is a run-level input: transforms and the ignore-words/synonym dictionaries are applied to every record identically before standardization, and a run already records that preprocessing identity in the run ledger (runs.config_hash+ the newruns.ignore_words_hash, sibling tolexicon_hash). Naming preprocessing inside each pair's evidence blob would repeat run-level facts on every pair and is exactly the surface 1.22 redesigns (what evidence carries and how it is explained). What this unit delivers instead: the dictionary now reaches comparison — the corpus a pair is scored over is demonstrably different with the dictionary loaded (golden test inacct_e2e.rs), and any drift in it forces a full rebuild rather than silently mixing corpora.feat(match): ignore-words dictionary reaching comparison (#799)