Repository navigation
Description
Parent epic: #2116
Priority and sequence
P0 within the Context Engine epic · CE03. Required for the first two-song/two-brief checkpoint.
Customer journey
A manager imports a known artist or a new artist. Both end up in the intended roster and organization. A second release reuses the artist without mixing up collaborators or namesakes.
Customer value and architecture
Make accumulating context attach to the correct real-world subjects.
Scope
- Use exact, case-preserving provider IDs; names are discovery candidates, never sufficient proof of identity. Align relevant artist resolution and catalog writers.
- Enforce provider identifier cardinality by resource type after inspecting conflicts; preserve accepted mappings separately from conflicting evidence.
- Keep original track/release/video resources and recording associations. The same ISRC can appear on different releases with different artwork and narrative.
- Preserve available credit roles/order and evidence; never choose the creative lead by an arbitrary internal identifier.
- Give existing/new artist paths identical organization/roster postconditions, safe concurrent creation and recoverable association failures. Lookup errors cannot trigger blind creation.
- Preserve aliases/source attribution for later repair. Quarantine ambiguous mappings; do not build automatic global merge/split or cleanup in this ticket.
Acceptance criteria
- Same provider identity resolves consistently under concurrent requests; two same-name artists with different provider IDs stay separate.
- Existing and newly created artists have the same authorized workspace attachment behavior.
- Conflicting track-to-recording mappings are visible and excluded from accepted context pending resolution.
- Reissues retain separate release artwork; collaborations retain attributed credits without copying a guest biography to the lead artist.
- Existing songs.isrc references and catalog/measurement consumers remain compatible.
Blocking dependencies
- [Context] Verify the deployed schema and inventory context identity conflicts #2117
- [Context] Define context contracts, ownership rules and acceptance fixtures #2118
These are completion prerequisites, mirrored by native GitHub blocked-by links. Contracts, fixtures and independent scaffolding may begin earlier.
Execution gates
Production constraint changes require CE01; fixture implementation may begin once CE02 contracts are fixed.
Validation
Test same-name accounts/artists, case-sensitive IDs, lookup outages, concurrent creation, partial organization failure, collaborations, reissues and conflicting ISRC evidence.
Owning implementation
API identity/catalog operations + additive database migrations
Delivery conventions
Shared API business logic serves HTTP, MCP and workers; clients do not duplicate it. Validate input with Zod and use the existing Supabase access layer. Database changes go through database-repository migrations and PRs. Use Vercel Workflows for new durable work. Reuse existing credits and record costs without exposing credentials or private traces. Every owning repository uses a feature branch and PR; distinguish fixture, local, merged and deployed verification.
Implementation checkpoint — 2026-09-22
Research/save does not imply roster membership or ownership. Verify provider IDs per record before reuse/save; recording, composition, release, store listing and promotional link identities remain distinct.
Activity
Let accepted observations resolve quarantined identity links
Skip Context planning for quarantined identity conflicts
Describe identity conflicts on the read action, not the shared line
sidneyswift commentedon Nov 6, 2026
Partly done on main: provider IDs are checked per record before evidence reuse (recoupable/api#917), existing and new Spotify artists attach to the selected organization atomically (recoupable/api#969, recoupable/database#83), and research no longer enrolls credited artists into rosters (recoupable/database#91).
Still open: conflicting track-to-ISRC mappings are not yet quarantined and shown (recoupable/database#100, recoupable/api#1007, unmerged), and reissue/collaboration acceptance has not been recorded.