Skip to content

[Context] Acquire song evidence and run Music Flamingo metadata, lyrics and neutral summary recipes #2127

Open

Description

@sswiftdrtv

Parent epic: #2116

Priority and sequence

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

Customer journey

A manager supplies only the track link. Recoup obtains available song evidence, explains the full-song or partial coverage, and saves analysis that other features can reuse.

Customer value and architecture

Ground creative work in the song instead of overfitting to artwork or a short excerpt.

Scope

  • Resolve accessible audio and lyrics using existing supported providers and record acquisition method, source, recording match, duration/range, language and uncertainty.
  • Prefer verified full-song/full-lyrics evidence where available; otherwise retain honest partial/unavailable states and coverage requirements. A URL alone does not prove the acquired audio matches.
  • Use existing Music Flamingo catalog_metadata and lyric_transcription recipes and record resolved preset prompts/configuration. Do not tell extraction that it is designing a fan experience.
  • Create a versioned neutral song-summary topic; existing song_description marketing copy stays labeled as promotional interpretation if reused.
  • Keep raw provider response, parsed result, validation/coverage result and accepted document separate. Failed sections never become a successful full report.
  • Capture actual provider/model, exact prompt and media manifest, recipe versions, timing and CE07 cost references in private traces. Record provider-supported summaries or explicit output rationale where available.

Acceptance criteria

  • Full, preview, wrong-recording, missing and multilingual evidence produce distinct validated results and downstream coverage labels.
  • Lyrics are attributed by source/version/language; unavailable full lyrics remain a gap rather than invented text or a claim of completeness.
  • Metadata, lyrics and neutral summary persist independently; a failed section does not discard accepted sections.
  • Repeated compatible analysis is reused without repeating a paid call.
  • Calls use existing Recoup service configuration and billing; credentials never enter traces, prompts or public artifacts.
  • An inspectable trace shows exactly what media and resolved prompts the actual configured model received.

Blocking dependencies

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

Execution gates

Paid runs require CE07 and configured limits. This ticket does not promise that every Spotify URL yields a downloadable full audio file. Existing analysis billing work #2061 is reused, not replaced.

Validation

Fixture and budgeted live checks for wrong audio, preview/full duration, multilingual lyrics, invalid structured output, partial report failure, cache reuse and provider outage.

Owning implementation

API acquisition adapters + existing Music Flamingo service/presets

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.

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. Verified full audio can be saved as a private module (recoupable/api#925), lyric transcription runs from saved audio (recoupable/api#927), and the Sites pipeline runs the lyric preset and a transcript-informed summary from a track URL (recoupable/api#929).

    Still open: catalog_metadata on saved audio (recoupable/api#1000, unmerged); distinct coverage labels for preview, wrong-recording, missing and multilingual cases; reuse without repeat paid calls under #2123; and a reviewed trace. Automatic dispatch from the Context engine itself remains off.

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