Skip to content

[Context] Add single-video YouTube context with recording and artist attribution #2131

Open

Description

@sswiftdrtv

Parent epic: #2116

Priority and sequence

P1 within the Context Engine epic · CE15. Required for the complete initial release after that checkpoint.

Customer journey

The manager next supplies a music-video link for another song by the same artist. Recoup adds the video's story and song evidence to the existing context without treating the uploader as the artist.

Customer value and architecture

Extend URL-only ingestion beyond Spotify while proving the engine is provider-independent.

Scope

  • Support one music-video URL through existing request/identity/source/result/brief contracts and cost controls.
  • Distinguish uploader/channel, performers, credited artists and recording; use evidence-backed associations and preserve uncertainty.
  • Persist available description, captions/transcripts, language, media versions, analyzed ranges and video-specific narrative/visual interpretation.
  • Reuse compatible artist research and song evidence while keeping video storytelling distinct from release art and enduring artist brand.
  • Use the same private traces, validated results, budget policy and API/MCP path; no separate YouTube-only engine.

Acceptance criteria

  • A related video enriches the intended artist/recording or remains explicitly unresolved.
  • Missing captions, dubbed/live/remix versions and uncertain matches do not silently become original full-song lyrics.
  • Video-only visual/narrative context does not overwrite song or artist brand documents.
  • Successful modules survive unavailable media/partial video analysis.
  • Previously accepted compatible artist research is reused rather than regenerated.

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 may start after CE02; completion follows the reviewed CE14 checkpoint.

Validation

Same artist/new song, label-channel uploader, collaboration, live/remix ambiguity, missing captions, multilingual video and partial coverage tests; budgeted API/MCP live verification.

Owning implementation

API YouTube adapter using shared context engine

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:P1Next customer value after the shared integration release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions