Duplicates Service Module
What This Service Is For
The duplicates module provides matching evidence, staff review and creation-response settings. Its background detector follows record changes, while a dedicated dispatcher and consumer perform requested re-checks.
Boundary
Comparison keys, pairs, groups, rules, exceptions and re-check work belong here. Entities owns contacts and organizations, and merging owns execution; both call duplicate persistence when their transactions need its records.
Operations in Words
Review reads and decisions use separate permissions. Configuration authority controls rules and re-checks, and draft matching needs duplicate-read authority. The structured operations carry exact access rules and capability links.
Events and Jobs
Contact and organization change handlers refresh evidence. Re-check dispatch has its own queue and schedule. The declared group attention item remains held, and CRM-owned database functions provide the portal registration seam.
Consistency Guarantees
Review and grouping commit together; record creation and exceptions do too. Detection and re-check progress are eventual, with committed earlier work retained on later failure. All operations explicitly declare their unpublished Submissions status.