src/lib/agent/people-match.ts's matchPeople matches on employee number first, then normalised full name (case/accent/spacing/hyphen insensitive, so "André" == "Andre" and "Nkosi-Dlamini" == "Nkosi Dlamini"), then surname + first initial as "likely" — ambiguous surname+initial pairs report "none" rather than guess. The match_workers tool wraps it: typed names, or a previously-read attachment's sheet (name/employee-no/id-number columns picked by header text). The prompt's worker-loading recipe wires it to read_attachment -> match_workers -> propose_changes, refusing to re-create an exact match. Live check skipped: needs the full chat pipeline (thread persistence), which needs ask_threads (not yet applied). Covered by unit tests, including Afrikaans/Zulu name variants and the ambiguous-match case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| hooks | ||
| lib | ||
| mcp | ||
| types | ||