Duplicate Detection and Review

Detect highly similar rows, route ambiguous matches to review, and consolidate approved duplicates without guessing.

Overview

Description

Duplicate Detection and Review finds high-similarity row pairs, emits review work, and applies approved consolidation through a contained consumer.

The detection behavior queries compatible embeddings and emits candidates above a configured threshold rather than merging them. Review-queue behavior turns ambiguous evidence into explicit work, and a separate consumer handles only an approved consolidation event. This separation keeps a probabilistic retrieval signal from becoming destructive authority and preserves a durable event boundary around the decision.

Selling Points

  • Separates machine detection from merge judgment.
  • Avoids creating false duplicate links when evidence is ambiguous.
  • Preserves an event trail around consolidation.
  • Keeps the original rows intact until review produces an approved action.
  • Reuses semantic retrieval while making identity judgment explicit.

User Story

As a curator, I review likely duplicates and consolidate them without manually searching the entire Dotabase. I enable detection with a threshold appropriate to the corpus and receive bounded candidate pairs with similarity evidence. I compare their meaning and provenance, reject unrelated matches, and approve only true duplicates. The consumer then applies the governed consolidation. I walk away with a cleaner corpus without trusting vector proximity as proof.

Extension Surface

Configurable: bindings control thresholds and review behavior; consolidation semantics remain guarded.

packages/dotabases/src/behaviors/dedup-detection/index.ts exposes thresholds and candidate limits. Those settings tune discovery, but packages/dotabases/src/services/consolidation-consumer.ts keeps approved side effects behind a fixed event and service contract.

Capabilities & Limits

  • Capability: Executes the scoped workflow described above through the cited live implementation paths.
  • Capability: Preserves typed validation and applicable tenant, schema, lifecycle, or service boundaries.
  • Limit: Depends on compatible embeddings. Similarity proposes candidates but does not prove two records are the same. The workflow can retrieve likely matches, suppress unsupported outcomes, create review work, and process approved consolidations. It cannot compare rows without compatible vector provenance, resolve nuanced identity automatically, or guarantee that a high score means duplication. Curator judgment and ordinary row permissions remain required.

Implementation Map

  • packages/dotabases/src/behaviors/dedup-detection/index.ts
  • packages/dotabases/src/behaviors/review-queue/index.ts
  • packages/dotabases/src/services/consolidation-consumer.ts

Properties

Property
Value
product
dots-platform
extensibility
configurable
module
Dotabases
packages
dotabases
status
shipped
surface
background
summary
Detect highly similar rows, route ambiguous matches to review, and consolidate approved duplicates without guessing.

Connections

Duplicate Detection and Review · Explore connections

  • implemented bytopackages/dotabases/src/internal/behaviors/review-queue/index.ts
  • implemented bytopackages/dotabases/src/internal/services/consolidation-consumer.ts
  • implemented bytopackages/dotabases/src/internal/behaviors/dedup-detection/index.ts
  • implemented bytobuildConsolidationConsumer
  • implemented bytodedupDetectionBehavior
  • implemented bytoreviewQueueBehavior
  • requirestoDotabase Behavior Automation Engine
  • requirestoSemantic Row Embeddings
  • implementstoDS_Dotabases — Comprehensive Module Spec

Connected Records9

Implemented by
buildConsolidationConsumer
dedupDetectionBehavior
packages/dotabases/src/internal/behaviors/dedup-detection/index.ts
packages/dotabases/src/internal/behaviors/review-queue/index.ts
packages/dotabases/src/internal/services/consolidation-consumer.ts
reviewQueueBehavior
Implements
DS_Dotabases — Comprehensive Module Spec
Requires
9 connections.