From 2903b79e0ac6fa1e23cc8de3f04822bf431651b9 Mon Sep 17 00:00:00 2001 From: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com> Date: Tue, 13 Oct 2026 11:42:54 -0400 Subject: [PATCH] fix(identity): implement the default exact record comparator Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com> --- specialized/identity-graph-operator.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specialized/identity-graph-operator.md b/specialized/identity-graph-operator.md index 04fe7092..d2bf6bf3 100644 --- a/specialized/identity-graph-operator.md +++ b/specialized/identity-graph-operator.md @@ -155,6 +155,11 @@ class IdentityMatcher: return weighted_score / total_weight if total_weight > 0 else 0.0 + def compare(self, value_a: str, value_b: str, comparator: str) -> float: + if comparator != "exact": + raise ValueError(f"Unsupported comparator: {comparator}") + return 1.0 if value_a == value_b else 0.0 + def normalize(self, value: str, normalizer: str) -> str: if normalizer == "email": return value.lower().strip()