Repository navigation
Description
Parent epic: #2116
Priority and sequence
P0 within the Context Engine epic · CE12. Required for the first two-song/two-brief checkpoint.
Customer journey
An artist supplies a release link. Recoup understands its visual language once, then different features can use relevant branding without copying the whole artwork or forcing a generic template.
Customer value and architecture
Separate visual evidence from the later decision about which experience to build.
Scope
- Extract composition, shapes, materials/textures, lettering, palette, mood and distinctive motifs from attributed release artwork using the selected GPT-6 Astra where available.
- Separate directly visible observations, inferred visual interpretation and proposed design choices; do not invent artist intentions, official brand rules or a game concept.
- Preserve release-specific visual context separately from enduring artist brand and provisional era context.
- Store exact media/source versions, prompt, model/provider/configuration, output, validation, timing and cost references privately.
- Keep the output modular and task-independent. CE14 selects branding text for the director; later production stages may receive authorized raw media.
Acceptance criteria
- Contrasting artwork fixtures produce distinct evidence-grounded visual documents rather than only accent colors.
- Missing or unreadable artwork yields explicit gaps and supported fallback context.
- Artwork extraction completes before it is selected for a creative-direction brief.
- Same recording/different artwork stays release-specific and never overwrites the artist's entire brand.
- No silent model substitution; unavailable selected model is visible and recoverable.
- Evidence records contain no instructions claiming the artist endorses an inferred concept.
Blocking dependencies
- [Context] Authorize context spending and reconcile provider attempts with existing credits #2123
- [Context] Ingest Spotify track, recording, release and credited-artist evidence #2126
These are completion prerequisites, mirrored by native GitHub blocked-by links. Contracts, fixtures and independent scaffolding may begin earlier.
Execution gates
Live vision calls require CE07. Creative generation and visual critique remain in Sites #2094.
Validation
Review contrasting styles, typography-heavy art, missing media, ambiguous motifs and reissue artwork; inspect exact input/output trace and evidence-versus-interpretation separation.
Owning implementation
API artwork analysis and versioned visual-context recipes
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
sidneyswift commentedon Nov 6, 2026
Partly done. An artwork observation module exists (recoupable/api#916), and the Sites pipeline collects artwork before concept selection and passes the observations through the saved brief (recoupable/api#922, recoupable/api#929).
Still open: the branding contract that separates visible observations, interpretation and design choices (recoupable/api#999, unmerged), contrasting-artwork fixture review, and visible handling when the selected model is unavailable.