Skip to content

feat(match): pin a model to the comparator algorithm version it was built against #798

Closed

Description

@athvin

Spec unit 1.12 (Classic model: versioning) · parent #513

Existing models stay on Similar v1 when the algorithm changes; new models get v2.
Done: Model carries algorithm version; re-analysis of an untouched model yields identical groups across runs.

What exists

er-versions — but it solves a different problem. Its surface (rust/crates/er-versions/src/lib.rs) is RunFingerprint, FieldDrift, ModeDecision, check_mode_preconditions, rebuild_reason_for: it decides whether a run may be incremental given std_version / survivorship_version drift. That is run-mode arbitration, not comparator versioning.

config_hash pins the configuration. Neither pins the implementation behind a comparator token.

The gap

jaro_winkler:0.90 names a threshold, not a version of the Jaro–Winkler implementation. Improve or fix that comparator and every existing model silently re-groups on its next analysis — with an unchanged config and an unchanged config_hash, so nothing in the system says why the answer moved.

Done when

  • a trained/compiled model records the comparator algorithm version it was built against
  • an existing model keeps its recorded version when the implementation changes; newly created models take the current one
  • re-analysis of an untouched model across a deliberate comparator change yields identical groups (the regression that makes this real)
  • the version is visible wherever the model is — not only in storage

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 8, 2026
  3. athvin commented on Nov 8, 2026

    @athvin
    OwnerAuthor

    Claimed by codex session 01a1b861-d8a0-7400-8aae-17fdde0059ec on Mac at 2026-11-08T07:49:44Z — draft PR #845 is the claim; closing it releases the ticket.

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