A vCard whose FN is only whitespace gives a Person the display name ' ' #72
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp#72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Outcome
No Person has a blank display name such as
' '.Context
Live store, starbase-syd, 2026-11-04: Person
p_KGE17BFD3Khasdisplay_name = ' ', a single space. Its Handles come from thefastmailandicloudCardDAV Sources. It is a real contact with 3,843 mail interactions. The likely cause is a vCard whose name parts are empty, joined with a space, but this is not confirmed.Scope
FNand emptyNparts.trim(display_name) = ''.Acceptance criteria
SELECT COUNT(*) FROM persons WHERE trim(display_name) = ''returns 0.Filed under: operator word "file them." sha256:237e55ef9da1 (People Mind mail cross-check, test 5)
Agent Brief
Category: bug
Summary: A vCard whose
FNis only whitespace gives its Person the display name' ', and nothing repairs it.Current behavior:
Live store (starbase-syd, 2026-11-04): 29 Persons have
display_name = ' '. All come from Fastmail cards whoseFNis a single space. The cause is not emptyNparts, as the body first said.FNas it is. A single space is truthy, so it never falls back to theNcomponents. The record's first name is' '.ingest_recordcreates a new Person with the record's first name as the display name. So the first blank card to arrive sets' '.UPDATE_MAIL_DISPLAY_NAME) replaces a name only when it equals an email Handle and the Person has no names, so' 'stays.namesrow withname = ' 'andname_key = ''is stored. Example:p_KGE17BFD3Khas two "Adelicia Harding" rows (Fastmail and iCloud) and one' 'row from a second Fastmail card. Its display name is' '.Desired behavior:
FNand eachNcomponent. A blankFNfalls back toN. A card with no non-blank name yields a record with no names.namesrow is stored with a blank name or an emptyname_key, from any Source.(unnamed). This repair also covers the existing blank Persons, either on their next ingest or through a one-time store update. Choose one and say which in the PR.Key interfaces:
_recordand its_first/_componentshelpers): returnsSourceRecord.nameswith no blank entries.ingest_record: the display name chosen at creation and at update, and thenamesrows it writes.ingest_record(rec.names[0], else the email for a record with interactions, else(unnamed)). Keep it; do not invent a new order.Acceptance criteria:
FN:(a single space) and emptyN, and the Person's display name is not blank.namesrow with an emptyname_keyis written.SELECT COUNT(*) FROM persons WHERE trim(display_name) = ''on the live store returns 0 (29 today).make checkpasses.Out of scope:
name_keyrules beyond refusing an empty key.A vCard with empty name parts gives a Person the display name ' 'to A vCard whose FN is only whitespace gives a Person the display name ' '⏸ SVD architect gate: dev/people-mind-mcp#72 a-vcard-whose-fn-is-only-whitespace-gives-a-person-the-displ
Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
standard· dispatch effortmediumRun:
20261104T064531Z-c211b4a5Held because: CLEAN but 2 open risk(s) (2 verification) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
sqlite3 <live store> "SELECT COUNT(*) FROM persons WHERE trim(display_name) = ''"; expect 0 (29 per the triage brief, not measured this session because the live store is unreachable from Half A). Also run"SELECT COUNT(*) FROM names WHERE name_key = ''"; expect 0. Spot check: p_KGE17BFD3K should show 'Adelicia Harding'. [verification]Change: (1) vcard.py
_record(86-114): keepfnand the UID-less hash input (87-90, 94-96) byte-identical. Derive a separatename = _first(card,"fn").strip() or " ".join(N parts[0].split())and strip NICKNAME aliases, dropping blanks. Follow the blank-ORG guard at vcard.py:98-102. Shared helpers_first/_componentsdo not change. (2) graph.pyingest_record(243-369):kept = tuple(v for v in rec.names if name_key(v)), used in the empty check (255), the creation display name (305, same fallback order), the update (313-314) and the names rows (320).rec_hashkeeps hashingrec.names. (3) RenameUPDATE_MAIL_DISPLAY_NAME(76-80) toUPDATE_DISPLAY_NAMEand widen it so a real name always replaces a blank (trim='') or(unnamed)display name. The email-Handle + NOT EXISTS names branch stays. This is required for AC2, because a blank card now creates(unnamed). (4) Newgraph.repair_display_names(conn, *, now), mirroring theensure_ownershape (169-187): deletenamesrows withname_key=''; set every whitespace-only display name to the best name (embed.py:19 ordering), else the email for a Person with interactions, else(unnamed); emit_change'update' + updated_at for each touched Person; idempotent and select-only when clean. (5) Call it right afterensure_ownerat cli.py:50 and sync.py:664, printing nothing. No schema bump: CardDAV sync-token never re-delivers unchanged cards, so repair-on-ingest cannot reach the 29 live Persons, and a schema 8 would ripple into the schema-7 special case and 6+ test/README sites.Files:
src/people_mind_mcp/sources/vcard.py·src/people_mind_mcp/graph.py·src/people_mind_mcp/cli.py·src/people_mind_mcp/sync.py·tests/test_vcard_sync.pyDecision: accept the 2 open risk(s) above and dispatch this spec (
svd:go), or park (svd:skip) / re-spec (svd:respec)?Your call (when this issue is held at the gate via
svd:hold):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-04-a-vcard-whose-fn-is-only-whitespace-gives-a-person-the-displ.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-04-a-vcard-whose-fn-is-only-whitespace-gives-a-person-the-displ.mdspec-verify-dispatch Half B for dev/people-mind-mcp#72 a-vcard-whose-fn-is-only-whitespace-gives-a-person-the-displ completed integration verify.
ad6b1c4789ad6b1c4; re-poll before merge.codex-svd ship --run-id 20261104T084555Z-da0c4034 --confirm-merge)