withDuplicateDetection

fun withDuplicateDetection(strategy: DuplicateCollectorStrategy = DuplicateCollectorStrategy()): CollectorRunner.Builder

Configure the near-duplicate dedup sweep by adding a DuplicateCollectorStrategy.

Merge-on-collapse comes from the builder's default MergingSweepPolicy, so a duplicate loser has its grounding and provenance folded onto the survivor before it is retired — whether the strategy was added here or via plain withStrategy. If a mark in the same run retires the survivor, the merged evidence still wins: the runner applies merges first and later transitions read the merged state.

Return

this builder, for chaining.

Parameters

strategy

The duplicate-detection strategy (defaults to a DuplicateCollectorStrategy with the repository-matching thresholds).