Skip to content

[Widgets] Make installation discoverable and testable by building agents #2109

Open

Description

@sidneyswift

Parent epic: #2093

Priority

P0 — First shared Sites and external Widgets release.

User journey

User tells their builder agent Add Recoup music connection and player → agent discovers capabilities and costs → configures the app → retrieves the matching recipe → installs → runs verification → shows the user the result.

Acceptance criteria

  • Provide API/MCP discovery and integration recipes for hosted embed, plain JavaScript, and React with tested code, prerequisites, scopes, spend limits, and environment configuration.
  • Publish consistent OpenAPI, MCP schemas, error codes, lifecycle docs, and machine-readable docs from the marketing-owned documentation source. Avoid drift between HTTP and MCP behavior.
  • Add an integration verifier for allowed origin, embed configuration, callback round-trip, runtime readiness, and billing configuration; distinguish mocked tests from a real authorized fan test.
  • Provide non-spending test fixtures for successful auth, denial, unavailable playback, expired sessions, and insufficient credits. Mutating or paid checks require explicit scope/budget.
  • Publish a compatibility matrix based on actual tested hosting/runtime capabilities, including limitations of builders that disallow custom scripts or frames. Do not assume Lovable, v0, or ChatGPT-hosted outputs all support the same integration.

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

Have a fresh agent follow only public docs/recipes against a clean external sample app; record setup failures, missing instructions, secret handling, runtime verification, and final cost visibility.

Delivery conventions

API owns business logic and billing; HTTP and MCP share it. Chat/embeds/SDKs are clients. Database changes use the database repository PR workflow. Update marketing-owned docs and generated indexes. Use Vercel Workflows for new durable background work. No automatic publication or unbounded customer spending.

Callback installation recipe

Teach agents to register the customer website's exact origin and return destination with Recoup, then install the shared connection/player component. Do not tell customers to register every website URL in Spotify. Document popup and full-page fallback behavior and the one-time callback setup for a customer-owned Spotify application. Diagnose restricted scripts/frames/navigation by host capability rather than builder name. See #2107.

Fan points coordination

Extend installation recipes through #2115 for customer-owned points programs, trusted awards, embedded balances, and customer fulfillment. Outside games continue to own scoring and score leaderboards.

Approved category and ownership

Organize instructions around Sites, Fans, and Widgets. Recipes should name Spotify Sign-in, Webplayer, Points, and Rewards explicitly and explain which Fans service each consumes. Keep existing Music and artist Connectors documentation meanings intact.

Parent epic #2093 defines Sites, Fans, and Widgets. Use those names in public documentation and MCP descriptions. Preserve existing functional requirements, dependencies, and authorization/billing boundaries.

Activity

  1. changed the title [-][Sites] Make external integration discoverable and testable by building agents[/-] [+][Widgets] Make installation discoverable and testable by building agents[/+] on Sep 19, 2026
  2. added
    priority:P0Required for the first shared Sites and external Widgets release
    on Sep 19, 2026
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

    priority: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