fix(valuation): stop minting a duplicate roster artist per funnel signup (chat#1850 P1)
Merged
SW
5mo ago+4+4+0123456789-123-123-012345678901234567890123456789
What
Deletes lib/valuation/linkArtistToAccount.ts (and its test) and its call in useCatalogValuation.doRun — the funnel no longer mints an artist account per signup.
Call-site decision (delete, not find-first)
linkArtistToAccount had exactly one caller: the valuation flow (useCatalogValuation.doRun, post-run). Per the settled design the choice was delete vs. keep-but-find-first. Deleted, because:
- The claim (
useGetFullReport→claimCatalog→POST /api/catalogs) now attaches the canonical artist server-side — the roster gets the artist that actually owns thesong_artistslinks, at the moment the account takes ownership. - A run-time roster artist without a claimed catalog lit no surface anyway (a song-less artist is the exact 0/$0 defect), while actively polluting rosters and artist search with duplicates.
- Leads who run but never claim therefore no longer get a roster artist; that surface loss is nil (nothing rendered from it) and re-clicking "Get the full report" later heals the roster via the api's re-claim attach.
Verification
pnpm --ignore-workspace test: 19 files / 62 tests green (was 20/67 — the 5 deleted-file tests removed).NEXT_PUBLIC_PRIVY_APP_ID=… pnpm --ignore-workspace build: green (the marketing gate, per marketing#44).- Pending (needs deploy): fresh funnel walkthrough confirming no duplicate artist is created and the chat hero shows the valuation.
Links
- Tracking: recoupable/chat#1850 (P1)
- Settled design: P1 implementer context
- Siblings: recoupable/docs#269 (contract) · recoupable/database#43 (backfill, applied+verified) · recoupable/api#768 (claim-time attach + socials-at-ingest)
Merge order
- docs → 2. database → 3. api → 4. marketing (this PR). All PRs base
main.
🤖 Generated with Claude Code