Repository navigation
feat(match): cross-field comparison groups (#796) - #824
Merged
Merged
Conversation
Closed
4 tasks
…g, compile to pooled comparison + blocking rule (#796)
athvin
marked this pull request as ready for review
November 8, 2026 00:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #796
What
Adds
comparison_groups:to the tenant config (S6): a named set of attributes compared as a pool, somobileon record A compares againsthome_phoneon record B. Each group compiles to one pooled comparison (levels OR'd over the attribute cross-product) plus one blocking rule, so cross-field agreement both generates the candidate and scores it.Why
Spec unit 1.9 (parent epic #513). Today every comparison is column-to-same-column, so the CRM-common case of one phone in
mobileand the same phone inhome_phonescores as disagreement on two fields — actively pushing a true duplicate below threshold.Proof
make check; gated DuckDB behaviour tests iner-compile/tests/cross_field_groups.rs(pair with phone only inmobilevs only inhome_phonescores above threshold);reproduces_committed_modeland the std-hashes goldens unchanged (no-group configs compile byte-identically).Risk & rollback
Matcher-semantics change, opt-in only: a config with no
comparison_groupsblock compiles byte-identically and hashes identically. Rollback:git revert <merge-sha>; a tenant who declared a group re-publishes without it.Post-merge ledger
Closed by: agent · codex session
01a1b861-d8a0-7400-8aae-17fdde0059econbrians-MacBook-Pro· 2026-11-08T00:55:00Zmainis green with this change on it — merge SHAc46623c3(verified tip oforigin/main); on that SHA:rustsuccess (run 42430864100),frontend42430864051,infra42430864086,devcontainer42430864088 — all success.imagesbuilt — run 42430864048 success (rust/changed, so an image buildwas due, and it ran).
deployconverged — run 42431285574: smoke against the new colour beforecutover got
er-api-preview /readyz -> 200ander-web-preview /api/healthz -> 200("the blue colour serves through its own Services"), then
deployment "web-api-blue" successfully rolled outandtraffic is on blue. (A kubectl/CloudWatch read for apod-log line was unavailable from this session — read-only profile lacks exec auth and
the log group is not Standard class — so the evidence is the smoke the new pods served.)
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: deploy green (above);
driftlast green 2026-11-07T06:01Z and this change touches nothing underinfra/;kindnightly last green 2026-11-07T06:44Z. Knowingly red for a reason that is not this change: the scheduledAgentic Maintenancegh-aw run fired on this SHA and its maintenance jobs failed with zero steps run — the documented fail-closed gh-aw condition, not product code.Donethrough the automation — issue feat(match): cross-field comparison groups — compare mobile on A against home_phone on B #796 CLOSED(COMPLETED) on merge, card reads
Done.comparison_groupsblock (EXPLAINABLE_BLOCKS + prompt wording).comparison_groupssection added to.claude/skills/er-matching/references/config-to-model.mdin this PR, including thediscovery that the engine needed nothing new (input columns are parsed from level SQL).
Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files