Skip to content

[Context] Ingest Spotify track, recording, release and credited-artist evidence #2126

Open

Description

@sswiftdrtv

Parent epic: #2116

Priority and sequence

P0 within the Context Engine epic · CE10. Required for the first two-song/two-brief checkpoint.

Customer journey

A manager pastes a Spotify track URL. Recoup identifies the exact song, release, artwork and credited artists without asking them to fill in a form.

Customer value and architecture

Provide a dependable release identity for every later analysis module.

Scope

  • Normalize supported track URLs while preserving submitted resource identity and provenance; obtain provider track/release/artist identifiers, credits and artwork.
  • Persist metadata/source versions through the shared engine rather than a Sites draft-only object.
  • Keep recording, release membership and artist credit attribution distinct; surface uncertain/conflicting matches instead of guessing.
  • Route unsupported album/playlist inputs explicitly and preserve any supported legacy Sites path until collection semantics are built.
  • Reuse compatible provider metadata/source versions without overwriting newer accepted context.

Acceptance criteria

  • One track URL produces independently inspectable source and subject records with no mandatory extra fields.
  • Two tracks by the same artist reuse identity while keeping separate recording/release context.
  • Same recording on a different release retains release-specific art and attribution.
  • Malformed/unavailable URLs and provider errors produce recoverable states without creating incorrect artist records.
  • Any paid integration path is guarded by CE07 before a live call.

Blocking dependencies

These are completion prerequisites, mirrored by native GitHub blocked-by links. Contracts, fixtures and independent scaffolding may begin earlier.

Execution gates

Fixture adapter work can begin after CE02. Paid live verification requires CE07.

Validation

Fixtures for query-string variations, reissue/collaboration, deleted track, provider outage, conflicting identity and legacy album/playlist routing.

Owning implementation

API Spotify adapter using existing provider integrations

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

Production Spotify metadata/release identity verified after API916 and database74/75: recording, canonical album resource, release membership and three artist credits. This is partial acceptance evidence; broader source variants and enrichment remain open.

Activity

  1. added
    enhancementNew feature or request
    priority:P0Required for the first shared Sites and external Widgets release
    on Sep 20, 2026
  2. sidneyswift commented on Nov 6, 2026

    @sidneyswift
    Collaborator

    Partly done. Production Spotify metadata was verified with separate recording, release membership and artist credits; provider IDs are checked per record before reuse (recoupable/api#917), and research no longer enrolls credited artists into rosters (recoupable/database#91).

    Still open: distinct recoverable failure states and explicit album/playlist routing (draft recoupable/api#1216, which supersedes recoupable/api#1001), and recorded checks for the reissue and same-recording-on-another-release cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:P0Required for the first shared Sites and external Widgets release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions