Skip to content

feat(match): cross-field comparison groups — compare mobile on A against home_phone on B #796

Closed

Description

@athvin

Spec unit 1.9 (Classic model: cross-field groups) · parent #513

Group Name on fields so values compare across fields (Work vs Mobile phone, Billing vs Shipping state); collective group matching.
Done: Phone in Mobile on record A matches Phone in Home on record B.

What exists

Nothing. This is the one genuine matcher-semantics gap in the epic, and it is worth being precise about why the obvious hits are not it:

  • variant_match is a lexicon comparator (nickname/synonym expansion), not cross-field — er-compile/src/lib.rs:399.
  • profile.rs:447's group_name is an unrelated SQL column alias in the profiler.
  • er-config's survivorship_groups groups fields for survivorship (which fields survive together from one record), not for comparison.

Every comparison today is column-to-same-column: ComparisonSpec is keyed by one canonical attribute (er-config/src/lib.rs:456).

Why it matters beyond parity

A CRM holds one phone in mobile and the same phone in home_phone constantly. Same-column comparison scores that pair as disagreement on two fields, which is worse than no evidence — it actively pushes a true duplicate below threshold.

Done when

  • config declares a comparison group (a set of attributes compared as a pool rather than pairwise by name)
  • it compiles to both the blocking conjunct and the comparison level, so a cross-field agreement can generate the candidate as well as score it
  • phone in mobile on A matches phone in home_phone on B, as a golden test
  • a config with no group declared produces byte-identical model SQL (the config_hash stability rule every optional block here follows)

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

  1. added
    mvp
    docs-backlog
    on Nov 7, 2026
  2. self-assigned this
    on Nov 7, 2026
  3. athvin commented on Nov 7, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #824 (draft). Closing that PR releases the claim. Promoted from Todo per the parent epic's decomposition note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docs-backlogmvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions