Repository navigation
Description
Parent epic: #2093
Current delivery status — November 17, 2026
- Merged source:
API #1260supplies the full candidate/report predicate;API #1263supplies capture/read adapters.API #1265merged asf6103bc4f31dfa12f8f9c553920837a7e4d80da5, adding exact-selected publication orchestration and explicit recorded override intent. These helpers remain unwired; existing advisory publication is unchanged. - Qualification: feat: implement drag-and-drop file upload functionality #1265 passed independent source reviews, 181 focused tests plus 70 affected tests after cleanup, and final exact-revision CI with 9,975 passing / 53 skipped tests plus offline workflow/type checks. The normal merged revision's three main workflows also passed, and the observed public homepage deployment marker matches that merge. Green CI is not authenticated publication or native-browser acceptance.
- Inactive SQL proposal: Database #136,
afd214aa73dfd70b0f2b860fce90c12ceb23f28b, remains draft and unmerged, outside migrations. Its expected-artist comparison runs under the site lock before publication writes; 30 disposable tests pass on each PostgreSQL 15/17. No production apply, schema exposure, runtime grants or retention activation occurred. - Bridge source delivered:
API #1266merged as37b5a07572e182429e3fc44baf24706ded292f7c. Its actual API-to-SQL tests exposed and fixed the JSONB journey-key-order mismatch while preserving the original report/hashes. Final exact-head CI passed 9,978 unit tests / 67 skipped; both PostgreSQL 15/17 jobs passed 14 contract cases, six lifecycle faults and old-output-marker rejection. Independent source reviews cleared the capture fix, contract mapping and parent-owned cleanup. All three normal merged-revision workflows also passed; the observed public homepage deployment marker matches this merge. The SQL bridge matrix is PR-only and remains separate evidence. This is disposable SQL with synthetic transport/external authority reads, not hosted PostgREST or authenticated publication. SQL admission, external-read races, explicit UI interaction and end-to-end acceptance remain open; criteria and dependencies below are unchanged.
Priority
P1 — Next customer value after the shared integration release.
User story
As an artist manager, I want a playable preview I can trust before sending it to fans.
User journey
Paste a Spotify link and brief → generate → see validation progress → open the tested preview → revise or publish.
Acceptance criteria
- Run generated experiences in an isolated browser with desktop and mobile viewports; check startup errors, overflow, actionable controls, and the interaction requested in the brief.
- For a game, exercise start, input, score/state changes, and restart; retain a short result report and screenshot tied to the draft revision.
- Attempt bounded automatic repairs, re-test each repaired revision, and show an actionable failure when the attempt/time budget is exhausted.
- Expose pending/running/passed/failed status through authenticated API and MCP; distinguish automated checks from human approval.
- A failed or canceled run preserves the last good draft and published version. Publishing requires a passed report for the exact revision or an explicit recorded override.
Owning code
API generation/validation and Vercel Workflow; chat progress/report UI; database migration if run evidence needs persistence.
Use the epic's API-first/MCP, workspace authorization, database migration, docs, and explicit-publishing requirements.
Blocking dependencies
These are completion prerequisites, mirrored in GitHub’s blocked-by links. Design and contract work may start earlier. Other coordination references are not blockers.
Validation
Use known-good, broken-JavaScript, nonfunctional-game, and mobile-overflow fixtures. Verify retry limits, cancellation, revision races, and tenant isolation.
Platform foundation alignment
This remains part of Sites epic #2093. Recoup Sites and external apps must share primitives, authorization, and billing. Coordinate with:
The Blocking dependencies section is authoritative. Campaign release follows the external integration proof gate; independent design/test work can proceed earlier.
Do not use restricted provider content as model input. Initial technical availability and recovery belong to #2107; #2106 is a nonblocking follow-up.
Approved creative direction and visual-quality loop — P1
- Before generating code, derive a compact visual brief from the Spotify release metadata, permitted artwork/assets and optional prompt. Specify palette, typography, layout, motifs, interaction and motion. Save the brief with the draft revision; allow chat revisions without a mandatory extra form or approval step.
- Provide a small curated set of reusable layout/control foundations and vary art direction and mechanics to match each release. A requested game must be playable, not a promotional page describing the game. Avoid a template-marketplace expansion.
- Make the first screen identify the artist/release, communicate the activity and present one clear primary action. Reveal concise instructions at the point of use; avoid competing actions and filler copy.
- Generate phone-first layouts with comfortable touch controls, readable text, safe areas and artwork proportions. Adapt to desktop. Account for the trusted login and player surfaces so they never obscure required controls.
- Pass constrained theme tokens to the same trusted Widgets used by external apps. Carry visual direction through entry, game and player without granting generated code authentication, credential or billing authority. Preserve provider attribution and no-music recovery.
- Capture and inspect desktop/mobile renders for clipping, overlap, contrast, hierarchy, artwork use and consistency with the saved visual brief. Record objective failures separately from model design critique and human approval; do not claim subjective quality is guaranteed by a passing build.
- Bound visual-repair attempts and charge generation/revision work through existing chat-credit rules and [Sites] Meter Sites operations with credit reservations and spending limits #2105 authorizations. Preserve the last good draft/published version; evidence and publish checks must refer to the exact repaired revision.
- Measure initial loading, asset weight and interactive readiness on a documented mobile test profile. Establish explicit acceptance thresholds from baseline measurements rather than inventing unmeasured performance claims.
Add fixtures for contrasting release styles, long artist/title text, absent artwork, slow/loading/error states, mobile touch play, connected playback and no-music recovery. Demonstrate visual variation and end-to-end usable controls with screenshots and interaction evidence. Runtime isolation remains a separate P0 requirement in #2110; this P1 design loop does not delay that gate.
Artwork-to-design-system acceptance — core generation requirement
- Interpret permitted release artwork before generating the site: identify composition/shapes, textures/materials, lettering, mood and distinctive motifs. Save the interpretation and concrete design choices with the revision's visual brief. Do not invent artist intentions or brand rules from the image.
- Translate those qualities into the site's layout, framing, typography, surfaces, controls, game objects and motion. Select a coherent set of motifs rather than mechanically applying every visual detail. Showing the artwork and sampling its colors alone does not satisfy this requirement.
- Carry the resulting design language into the trusted Spotify sign-in and Webplayer through supported theme tokens. Keep credentials and trusted behavior outside generated code; preserve provider attribution, contrast, touch usability and responsive layout.
- Respect the artist's prompt and supplied references when they steer or override the artwork interpretation. When artwork is unavailable, use the documented intentional fallback and disclose the missing input in the brief; do not add a mandatory setup form.
- During rendered visual critique, temporarily hide the displayed cover and assess whether the remaining site still expresses the release's visual world. Record the reasons and targeted improvements against the saved brief, distinguishing subjective critique from objective checks. Retain the cover in the actual design when appropriate.
- Demonstrate this with contrasting artwork fixtures: the resulting sites should differ in composition, surfaces, type treatment or interaction where supported by their briefs, rather than only changing a hero image and accent color. Repairs remain bounded and use existing generation-credit rules; no automatic publication.
This elaborates the existing P1 creative-direction loop without changing blocking dependencies or introducing a separate design system for authentication/player business logic.
Context Engine ownership split
The reusable extraction/enrichment work described above is now tracked in Context Engine epic #2116. Consume its accepted source-backed context and selected brief rather than implementing a second collector inside Sites.
- #2128 owns reusable artwork observations/branding extraction. #2130 selects a compact creative-direction brief with song/artist coverage and branding text.
- This ticket owns the creative concept, concrete production design decisions, generated code/assets, visual review, functional browser checks and bounded repairs.
- #2133 wires the real Sites path to those briefs. The director receives selected branding text, not raw artwork or the full corpus; implementation/asset stages receive needed authorized media separately.
- A context checkpoint passing does not prove that the experience is meaningful or works. Preserve this ticket's exact-revision mobile/desktop and interaction evidence.
Native dependencies remain unchanged so generation-quality fixtures and the current path can improve independently. The Context Engine's release gate #2134 depends on this ticket; do not add a reverse whole-epic dependency.
Activity
sidneyswift commentedon Nov 6, 2026
Sites production now runs a browser review with automatic repair (recoupable/api#936, recoupable/api#947), and keeps a needs-review draft when credits run out (recoupable/api#960).
Not met yet: a per-revision desktop/mobile report and screenshot exposed through API/MCP; a repair budget (recoupable/api#947 removed the attempt cap, so repairs continue until review passes or credits run out); and the publish gate (recoupable/api#959 made review advisory, with no recorded override).
Keeping open. The repair-budget and publish-gate criteria need a decision because shipped behaviour differs from them.