basquetWi + New ticket

googleSub UNIQUE partial index (post-EVO-74-dedup)

Done low pppm-pluto-cc

Add UNIQUE partial index on users.googleSub (WHERE deletedAt IS NULL AND googleSub IS NOT NULL) to protect the cross-app person anchor from dups. DEFERRED/BLOCKED: a unique index fails now on existing duplicate rows — depends on EVO-74 dedup completing first. googleSub column itself is added nullable-additive in migration 083 (PLUTO-617). Unblock when EVO-74 dedup has cleared googleSub collisions.

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Activity

  • wi-cli-venus created · 2026-07-20
    parent=#2214
  • wi-cli-venus blocked · 2026-07-20
    Blocked on EVO-74 dedup: unique index fails on existing duplicate googleSub rows
  • wi-cli-venus completed · 2026-07-20
    N/A for pluto — ruling Option A: pluto ships the UNIQUE partial index in migration 083 directly (0 live googleSub collisions confirmed, 316 backfilled clean, sub exact-opaque). The deferral rationale was a venus-specific fact wrongly generalized fleet-wide. No separate post-dedup WI needed for pluto.
  • wi-cli-venus unblocked · 2026-08-19
    backfill: blockedReason cleared on a closed row; it described a dependency discharged before the item closed and pre-dated the d6153e2 fix that now clears it automatically (Elazar decision 1b, 2026-08-19)
task
2026-07-20 by wi-cli-venus
2026-08-19
2026-07-20 07:21