Repository navigation
Open
Labels
admin-toolInternal tools for AAO staffclaude-triagedIssue has been triaged by the Claude Code triage routine. Remove to re-triage.enhancementNew feature or request
Milestone
Description
Split from #3590. Depends on the ownership/provenance contract in #6487.
Problem
The durable identity and plural WorkOS credential binding are live, but community profile fields still live on users, keyed by the canonical workos_user_id. Auth currently masks that coupling with a primary-user ID swap.
Changing a primary credential therefore still means moving person-owned application rows, and an incorrect link/split has no clean profile-ownership contract.
Scope
- Introduce identity-owned storage for portable community profile fields approved in Person identity: define ownership, provenance, and lifecycle of portable state #6487.
- Preserve credential-specific WorkOS names and emails as sourced credential facts; add an identity-owned preferred display value only where the model calls for one.
- Backfill existing profiles from the current canonical user without overwriting conflicting non-empty values silently.
- Add bounded dual-read/dual-write behavior and observability during rollout.
- Move profile APIs, directory rendering, and account settings to the identity-owned read model.
- Define safe fallback/rollback behavior while both representations exist.
Explicitly not included
- Community points, badges, and journey status (separate child issue)
- Organization memberships, roles, seats, or entitlements
- Certifications, billing, conversations, or audit-event provenance
- Employment affiliations
Acceptance criteria
- Signing in through any linked credential reads and writes one identity-owned profile.
- Promoting the primary credential requires no profile-row movement.
- Organization-scoped fields are not copied into the global profile.
- Backfill reports conflicts and preserves the pre-migration source value for audit/rollback.
- Unlink/split follows Person identity: define ownership, provenance, and lifecycle of portable state #6487/Admin identity merge/split: make credential linking genuinely reversible #6490 and does not silently duplicate the profile.
- Identity deletion/anonymization covers the new storage.
- Integration tests cover non-primary sign-in, link, unlink, promote, deletion, rollback, and concurrent profile updates.
Metadata
Metadata
Assignees
Labels
admin-toolInternal tools for AAO staffclaude-triagedIssue has been triaged by the Claude Code triage routine. Remove to re-triage.enhancementNew feature or request
Activity
[-]Identity storage: replace singular relationship identity columns with junction tables[/-][+]Person identity storage: migrate portable profile state off canonical WorkOS user[/+]bokelley commentedon Sep 21, 2026
Maintainer triage — 2026-09-21
Classification: Data migration
Status: Blocked on ownership/provenance decision
Decision: Retain the person-identity storage migration but do not move data before lifecycle and ownership semantics are settled.
Next gate: Resolve #6487, then produce a reversible migration plan with collision and rollback tests.