Skip to content

feat(review): per-record Delete, Verify, and a durable Unmatch distinct from unmerge #803

Closed

Description

@athvin

Spec unit 2.9 (Per-record actions) · parent #516

Protect (never modified or deleted), Delete, Unmatch (excluded from future grouping), Tag, Verify cell or row, AI Recommend.

What exists

Three of the six, server-side and routed:

  • Protect — frontend/src/app/api/orgs/[org]/datasets/[ds]/records/protect/route.ts and .../unprotect/route.ts, with rust/crates/er-server/tests/pg_protect_master.rs behind it
  • Tag — the tag service the epic correctly says is live (pg_tags.rs)
  • AI Recommend — recommendation-badge.tsx, assertion-library.tsx

The gap

  • Delete — no per-record delete action.

  • Verify cell or row — nothing. This is the spec's verification-status concept, which 1.28's filter list also depends on, so the two should be designed together.

  • Unmatch, as the spec means it. golden-records/[entityId]/unmerge exists and pg_unmerge.rs covers it — but unmerge and unmatch are different operations. Unmerge splits an entity that was already merged. Unmatch marks a pair as never to be grouped again, which is a must-not-link assertion that has to survive the next analysis.

    Worth checking before sizing: assertion-library.tsx suggests must-not-link assertions may already exist as a concept. If they do, this reduces to wiring a per-record action to them.

Done when

  • per-record Delete, with the protect flag honoured (a protected record must survive it)
  • verification status on a cell and on a row, persisted, and exposed for 1.28's filter
  • Unmatch recorded as a durable must-not-link that the next analysis respects — not an unmerge
  • a protected record survives a mass merge untouched (the spec's criterion for this unit)

Split out of the parent epic on 2026-11-07 by reading the spec's pillar table against this repo, file by file. Every "what exists" line below was grepped, not inferred — the parent epic's own body records a coverage figure that was once wrong because a stale design doc was trusted. Spec unit numbers refer to the DataGroomr Feature Parity Spec pillar tables. Estimates are mine and independent of the epic's total.

Activity

  1. added
    mvp
    docs-backlog
    on Nov 7, 2026
  2. self-assigned this
    on Nov 8, 2026
  3. athvin commented on Nov 8, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #874 (draft). Closing that PR releases the claim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docs-backlogmvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions