D21b — Duplicates as built¶
- Status: Accepted — amended by D53 (a rejection named at creation is kept) — implements D21
- Date: 2026-09-18
- Origin: slice 4 build
- Area: identity
Decision¶
kg dupes [--type]runs the resolver with each existing entity as the query and lists pairs that match or are proposed; a shared external id is listed first. It is read-only unless--stage, which stages each pair as a merge — held for confirmation like any other (D20b).kg mergechecks every entity it has just merged against what was already there and prints any likely duplicate straight away.- The brief's verify section flags an external id that another entity also holds.
- A pair recorded with
kg not-same, or with a merge already staged, is skipped.
Why¶
Most duplicates are never noticed by the person who creates them; they have to be looked for, and the moment they are merged is the cheapest time to catch them.