Skip to content

D11 — Resolver: four layers

  • Status: Accepted — amended by D11b
  • Date: 2026-09-17
  • Origin: design interview
  • Area: schema

Decision

Lead-in added in slice 20 so the decision reads as a sentence; the text after it is as first written.

The resolver runs four layers in order: external id → alias (normalised, pack-configured filler tokens) → fuzzy within a block → embeddings (last slice). - Blocks use any value the entity has ever held, so a defector still blocks with their old party. - Discriminator vetoes run before scoring: if both sides hold a value for a discriminating field and they differ, no_match regardless of name similarity. - rapidfuzz token_set_ratio: ≥ 0.85 → propose (always human-confirmed); 0.6–0.85 → listed as a near-miss; below → dropped. Thresholds in kg.yaml. - Multiple alias matches return ambiguous; never pick one.