vocabulary add: non-ASCII canonical yields empty slug -> non-unique bare-kind id
Version: minutes 0.22.1 (macOS, aarch64)
Summary: minutes vocabulary add derives an entry's id by slugifying the canonical using ASCII characters only. When the canonical has no ASCII letters/digits (e.g. Cyrillic), the slug is empty and the id collapses to the bare <kind> — term, acronym, organization. Several such entries then share the same id, which makes vocabulary remove <ID> ambiguous (it matches many entries).
Repro:
minutes vocabulary add "TestLatin" --kind term # -> id="term-testlatin" (OK, unique)
minutes vocabulary add "Пример" --kind term # -> id="term" (bug: bare, non-unique)
Actual: any non-ASCII canonical gets a bare id="term" / "acronym" / "organization". In one install, 15 of 31 entries collapsed onto just 3 bare ids.
Expected: a unique id for every entry regardless of script — e.g. transliterate the canonical, hash it (term-<hash>), or append a counter (term-2).
Impact: vocabulary remove <ID> becomes unusable for non-Latin terms; the vocabulary silently accumulates id collisions. Affects any non-Latin-script user (Russian, etc.).
Thanks, this is an excellent bug report: clear repro, real impact, and you even scoped the fix options.
Confirmed the diagnosis. The id is derived by ASCII-only slugification of the canonical, so any script without ASCII letters or digits (Cyrillic, CJK, and so on) produces an empty slug, collapses to the bare <kind>, and collides. 15 of 31 entries landing on 3 ids is exactly that failure mode.
Fix we will take: a unique, stable id for every entry regardless of script. When the ASCII slug is empty (or would collide), fall back to a deterministic short hash of the canonical (term-<hash>) rather than a positional counter, so the id stays stable across runs and re-adds and does not renumber when earlier entries are removed. We will also make vocabulary remove disambiguate the entries that already collided, so existing installs are recoverable rather than stuck.
Timing heads-up: there is a large desktop/pipeline change in flight right now, so this lands shortly after that clears rather than this second, but it is queued and it is a clean, contained fix.
Thanks again for the precise report and for catching a real non-Latin-script gap.