Person entity contamination beyond role suffixes: speaker-label leak, multi-person merge, variant fragmentation, garbage names (from real vault)
Follow-up to #370 / #374. #374 fixed role/title-suffix contamination of person entity slugs. A real-vault people/ dump from @gtheys (#370 comment) shows the problem has several distinct classes beyond that one, none of which #374 addresses. Cataloguing them here as the work items for the person entity-resolution effort (#371).
Evidence: @gtheys's people/ folder (68 entries) — https://github.com/silverstein/minutes/issues/370#issuecomment-4829066294
Classes to fix (beyond role-suffix, which #374 handles)
-
Speaker-label leak into slugs.
<name>-speaker-Nand barespeaker-N:geert-speaker-0,bright-speaker-2,john-speaker-1,tanya-speaker-1,gert-anne-speaker-2, plus barespeaker-1…speaker-4,speaker-2-tech-lead. There is partial filtering (graph.rs:298excludesslug.starts_with("speaker-")), but the<name>-speaker-Ncompounds get through, and the SPEAKER_N label is leaking into the extracted entity name in the first place. Strip the(-)?speaker[-_ ]?\d+token from entity names at extraction (pipelineadd_person_entity) the same way role suffixes are now stripped, and at the normalize/index layer for already-written vaults. -
Multi-person concatenation. Several names fused into one entity:
gert-liam-junrei-an,gert-liam,liam-joe,unknown-liam,to-new-qa. The extractor is occasionally returning multiple names as one entity string. Needs split-on-conjunction/comma at extraction and a guard against multi-token person slugs. -
Name-variant fragmentation. Same person split across spellings:
geert/gert,junrei/jun-rei/junlei/junwei,tanya/tanya-speaker-1. This is the core of the entity-resolution plan (#371) — alias clustering / fuzzy canonicalization against the vocabulary store. -
Garbage / stopword "names". Non-person tokens that should never become person entities:
all,an,team,unassigned,none-identified,unnamed,nine,cs,dp,cimb,new-qa-member,additional-devops-team-members,qa-engineer,chatbot-owner(-developer). Add a person-name validity gate at extraction (min length, stopword/role-noun denylist, "looks like a role/group not a person") before creating an entity.
Recovery for existing vaults
The people/ folder is derived (graph.db rebuilds from meeting markdown via minutes people --rebuild), so hand-editing it won't stick. Role-suffix entries collapse automatically on rebuild thanks to #374's normalize layer. The classes above need their own extraction + normalize fixes plus the resolution pass before a rebuild cleans them up; until then, correcting a meeting's frontmatter people: / speaker_map is the manual lever.
Related: #371 (entity-resolution proposal), #374 (role-suffix fix), #384 (speaker-mapping redo/health).
Update: two of the classes here now have shipped support.
Shipped (#390): name-variant fragmentation (class 3) surfacing. The graph rebuild now clusters plausible name variants (junrei / jun-rei / junlei / junwei, geert / gert) and surfaces them under "Possible name variants" in minutes people. It is suggestion-only, clique-based (so fuzzy chains like jon~jan~jana never bridge distinct people), ASCII-guarded (distinct non-ASCII near-misses are not suggested), and gated by a new entity-resolution eval (wrong_merges == 0, full drift recall). Nothing is merged automatically. Speaker-label leak (class 1) and garbage/stopword names (class 4) shipped earlier in #386.
Still open here:
- Class 2, multi-person concatenation (
gert-liam,liam-joe). Deferred deliberately: it has to be source-aware and graph-rebuild-aware. Splitting onlyentities.peopleleaves rawattendees/ assignees to re-fuse on rebuild, and a slug-level hyphen split is indistinguishable from a real hyphenated name (mary-jane). Needs its own careful pass. - Confirm-merge action + persistence (the lever that actually collapses a confirmed cluster and survives
graph.dbrebuild, via overlays or vocabulary). That is the Slice 2 "part 2" in the plan and is the piece that turns these suggestions into applied merges.
Design notes and slice status are in docs/plans/person-entity-resolution-2026-06-26.md.
All four catalogued classes are now resolved, each with test coverage tied to the real-vault evidence:
- Class 1 — speaker-label leak (
geert-speaker-0,<name>-speaker-N): fixed in #386 —strip_speaker_label/strip_contamination(person_identity.rs) strip(-)?speaker[-_ ]?\d+at extraction and normalize; tests incl. non-ASCII byte-offset safety. - Class 2 — multi-person concatenation (
gert-liam,liam-joe): fixed in #442 —split_person_referencessplits on unambiguous conjunctions (and/&/+/;, commas only in a conjunction list), never splitting a real "Last, First" or two-word name. - Class 3 — name-variant fragmentation (
junrei/jun-rei/junlei/junwei,geert/gert): handled in #390 —entity_clusterfolds separators (compact_key) and clusters single-edit spelling drift with clique (not connected-component) grouping, so real drift sets collapse while chains likejon~jan~janadon't bridge. Suggestion-only + human-confirmedminutes people merge(#394). The exact vault names are in the test suite (clique_clustering_groups_a_drift_set,clustering_is_deterministic_and_excludes_singletons). - Class 4 — garbage / stopword names (
all,team,unknown,unnamed, role/group phrases): fixed in #386 —is_plausible_person_name+NON_PERSON_NAMES/GROUP_ROLE_TOKENSdenylists gate non-person tokens before an entity is created.
Existing contaminated vaults collapse on the next minutes people --rebuild (extraction + normalize both run there).
Closing this catalog; the broader entity-resolution effort continues under #371.