Return artist account IDs for songwriter and producer roster members

Merged
SI
1mo ago
+29-2

Professional roster responses currently omit the artist identity needed for account-based workflows. Preserve and require professional.artist_id in REST/MCP list and confirmation responses, and describe the shared artist-account creation behavior in the tool contract and endpoint documentation.

Deploy after https://github.com/recoupable/database/pull/121 is applied. Requests without an account-linked response fail validation instead of reporting a successful standalone professional save. Request authentication, organization scoping and enrollment input remain unchanged.

Validation: 22 focused professional-roster and artist-creation tests passed; full ESLint and changed-file formatting checks passed. Regression assertions failed against the previous response parser. Production is unchanged.


Summary by cubic

Professional roster responses now include the required professional.artist_id so account-based workflows can identify the artist account. List and confirmation endpoints return this UUID referencing accounts.id, and requests without it fail validation instead of reporting a successful standalone save.

Migration

  • Apply the database migration 20261023160000_professional_artist_accounts.sql before deploying this release.
  • Existing professionals retain their original outcome and gain the linked artist ID.