You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Surface the person._possible_duplicate convergence marker in the desktop UI #2116
ADR-065 §4 describes the convergence duplicate indicator as: a duplicate that slips past creation-time suggestion (offline write, sync convergence) gets detected after the fact and "surfaced as a non-blocking 'possible duplicate' indicator."
The detection/marking half of this is live: nodespace-sync's pulled-write handler already stamps properties.person._possible_duplicate = true on both colliding nodes in production. nodespace-core additionally offers NodeService::mark_possible_duplicates as a generic, reusable, tested version of the same scan-and-mark behavior.
Nothing currently reads or displays this marker anywhere in the desktop app. No UI badge, no query filter, no NodeService accessor surfaces it to the frontend. The marker is write-only today — a duplicate that converges via sync gets flagged internally but a user has no way to discover it short of inspecting raw node properties.
Ask
Design and build a minimal, non-blocking UI surface for _possible_duplicate:
A visible indicator on a flagged person node (e.g. a small badge/icon in the person viewer and/or inline node view), consistent with this feature's suggest-don't-block posture (informational, dismissible or at least non-modal — never blocking normal use of the node).
A way to act on it that reuses the existing adopt-existing pattern from the creation-time suggestion (person-schema-form.svelte) rather than inventing new merge machinery — e.g. clicking the indicator could re-run the same duplicate lookup and offer the same "use existing" / dismiss choice.
A backend read path: a find_duplicate_for-style query or a lightweight accessor that surfaces the marker value (currently only visible via raw node.properties).
Non-goals (explicitly out of scope, per the parent ADR)
Building admin-driven merge (re-pointing mentions/member_of edges, tombstoning, sync-echo handling) — deferred indefinitely per ADR-065.
Any mechanism that could turn a marked duplicate into a blocking state.
Related
Companion to the store-aware unique validation work (ADR-065 in nodespace-docs).
Summary of the approach: builds directly on #2115's find_duplicate_for/adopt-existing pattern rather than inventing new merge machinery.
Backend read accessor: NodeService::is_possible_duplicate(&Node) -> bool — pure read-side counterpart to mark_possible_duplicates, reading the same properties.<node_type>._possible_duplicate path via the same POSSIBLE_DUPLICATE_FIELD constant.
Frontend accessor: lib/utils/possible-duplicate.ts (isPossibleDuplicate) — no new RPC needed, since node.properties already reaches the frontend unfiltered on every existing read path.
Property panel badge: person-schema-form.svelte shows a "Possible duplicate — click to review" badge when flagged; clicking it re-runs the exact same findDuplicateFor lookup and reuses the exact same adopt-existing Alert (Use existing / Keep as new) from Adopt-existing suggestion UI + convergence duplicate marker (ADR-065) #2115 — literal code reuse, not a parallel UI.
Inline node view badge: new possible-duplicate-badge.svelte, mirroring the existing RecoveredItemsBadge pattern, wired into base-node.svelte. Inert for every node type except a flagged person.
Both surfaces are informational/non-modal only — neither blocks editing, and dismissing only closes the local popover (the marker itself isn't cleared; no dismiss-persistence or admin-merge mechanism is in scope per ADR-065's non-goals).
Activity
mstomar125 commentedon Aug 18, 2026
Opened #2125 to close this out.
Summary of the approach: builds directly on #2115's
find_duplicate_for/adopt-existing pattern rather than inventing new merge machinery.NodeService::is_possible_duplicate(&Node) -> bool— pure read-side counterpart tomark_possible_duplicates, reading the sameproperties.<node_type>._possible_duplicatepath via the samePOSSIBLE_DUPLICATE_FIELDconstant.lib/utils/possible-duplicate.ts(isPossibleDuplicate) — no new RPC needed, sincenode.propertiesalready reaches the frontend unfiltered on every existing read path.person-schema-form.svelteshows a "Possible duplicate — click to review" badge when flagged; clicking it re-runs the exact samefindDuplicateForlookup and reuses the exact same adopt-existing Alert (Use existing / Keep as new) from Adopt-existing suggestion UI + convergence duplicate marker (ADR-065) #2115 — literal code reuse, not a parallel UI.possible-duplicate-badge.svelte, mirroring the existingRecoveredItemsBadgepattern, wired intobase-node.svelte. Inert for every node type except a flagged person.Both surfaces are informational/non-modal only — neither blocks editing, and dismissing only closes the local popover (the marker itself isn't cleared; no dismiss-persistence or admin-merge mechanism is in scope per ADR-065's non-goals).
PR pending adversarial review before merge.