Repository navigation
Description
Both committed account configs declare one comparison and one blocking rule. The committed account model has four comparisons and three blocking rules. So neither config describes the model the account pipeline actually scores with.
The discrepancy
fixtures/static/acct_base/config.yaml and rust/crates/er-standardize/tests/fixtures/acct_test.yaml both carry exactly:
blocking:
- { key_type: domain_exact, expr: "domain_norm" }
comparisons:
company_name: { levels: [exact, null] }fixtures/static/acct_model_v1.json carries:
- comparisons on
company_name_norm(exact / JW ≥ 0.92 / variants intersection / else),domain_norm,phone_e164,addr_postal - blocking on
domain_norm,phone_e164, andsubstr(company_name_norm, 1, 6)
acct_e2e works anyway because run_all is handed the model JSON directly and the model governs scoring — the config's comparison list is not consulted for it.
Why it matters
Two things read the config rather than the model, and both get a false picture:
er_compile::compilebuilds a model from the config. Compiling either account config produces a one-comparison model, nothing like the four-comparison model the account tests actually score with. Any measurement taken over a compiled account config is therefore measuring a different system than the e2e does.config_checkvalidates what the config declares, so none of the account model's real comparisons are ever checked.
fixtures/static/acct_10/config.yaml is the first account config coherent with acct_model_v1 — same four comparisons, same three blocking rules — and it exists partly because this gap made a calibration measurement impossible until it was closed.
Fix
Decide and then make it true, rather than leaving the mismatch implicit:
- make
acct_base/acct_testcoherent withacct_model_v1, or - document in each that it is deliberately minimal and must not be used as the basis of any compile-path measurement, pointing at
acct_10for that.
Product context (2026-11-26)
Why this matters for the API product: Configure. The committed account configs are the closest thing to an example account config, and they do not describe the model that actually scores. Anyone measuring or documenting the account config shape from them gets a different system.
Current state: Still reproduces. Both fixtures/static/acct_base/config.yaml:43-47 and rust/crates/er-standardize/tests/fixtures/acct_test.yaml:29-33 declare one domain_exact blocking rule and one company_name comparison. Neither has a "deliberately minimal" note. Neither file has changed since #739 (2026-11-06). fixtures/static/acct_model_v1.json still has four comparisons (company_name_norm, domain_norm, phone_e164, addr_postal) and three blocking rules. Only acct_10/config_domain_jw.yaml explains the gap, in its own header comment.
Definition of done: as above. Note that acct_base is read by at least nine test files (acct_e2e.rs, score_scale_calibration.rs, config_check.rs, acct_read.rs, export_write.rs, pg_dataset_sweep.rs, pg_duckfleet_task.rs, run_snapshot_read.rs, er-sql-check/src/stage.rs). Making it coherent can move expectations such as "4 entities from 7 records" (score_scale_calibration.rs:28). The "document it" option is far cheaper.
Dependencies / sequencing: Do before #663's second calibration corpus.
Size: 0.1 engineer-weeks to document; about 0.5 to make coherent and re-baseline the dependent tests.
Activity
test(matching): an account corpus with declared truth, and what it sa…
docs(fixtures): the two account configs say they are deliberately min…