Skip to content

[Context] Connect the real Sites pipeline to saved context and selected briefs #2133

Open

Description

@sswiftdrtv

Parent epic: #2116

Priority and sequence

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

Customer journey

The artist pastes only a release URL into the existing composer. Sites retrieves useful saved context, develops a concept, and builds a private experience with a matching trusted sign-in/player.

Customer value and architecture

Turn the reusable context engine into better release experiences without adding a setup form.

Scope

  • Replace the actual Sites collectReleaseContext path with shared context requests/reads and the task-specific brief compiler; preserve progress, partial readiness and cancellation behavior.
  • Run branding extraction before concept development; pass the director selected branding text rather than raw artwork or the whole evidence corpus.
  • Give implementation/asset-generation modules only authorized media they need, with release and brief-version references; missing capabilities must remain explicit.
  • Persist private context/brief references in new drafts; keep existing drafts/URLs readable and the legacy path available behind a reversible rollout switch.
  • Use an explicit allowlist for public Site serialization before storing new private context references; publishing cannot expose research, customer directions or traces.
  • Reuse Sites [Sites] Automatically test generated Sites experiences and repair failures #2094 for creative concept/visual testing and bounded repair, and existing shared Fans/Widgets for trusted sign-in/player. Do not implement duplicate generation, authentication or playback systems here.

Acceptance criteria

  • The real UI, HTTP and MCP Site generation paths invoke the same engine modules and credit controls.
  • URL-only creation works with optional direction/assets; no mandatory long form is introduced.
  • Director input manifest proves selected branding text is included and raw artwork/unrelated research are omitted.
  • Production stages retain needed authorized media and explicit capability limitations.
  • Public/draft/preview access tests prove private context and raw traces never leak via published JSON.
  • Existing drafts and legacy collection inputs remain compatible; failed new runs preserve the last good draft.
  • Run the actual generated experience and report working/broken actions independently of context accuracy; no automatic publication.

Blocking dependencies

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

Execution gates

Completion requires CE14–CE16 context evidence. Sites #2094 remains owner of generation quality/repair; the deployed release gate also requires its exact-revision evidence.

Validation

End-to-end UI/API/MCP run, old draft fixture, explicit public-field allowlist test, mobile/desktop interaction evidence through #2094 and rollout-switch rollback.

Owning implementation

API Sites workflow + chat integration + public response serializer

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:P1Next customer value after the shared integration release
    on Sep 20, 2026
  2. sidneyswift commented on Nov 6, 2026

    @sidneyswift
    Collaborator

    Partly done. Sites generation can use a saved Context brief (recoupable/api#922), URL-only generation builds saved context before choosing a concept (recoupable/api#929), and published Site JSON now uses an explicit field allowlist (recoupable/api#1214).

    Still open: proof of the director's input manifest, draft/preview leak tests, the rollback switch and old-draft checks, and generated-experience testing through #2094. Its YouTube (#2131) and social/era (#2132) prerequisites are not started.

    recoupable/api#1010 is superseded by recoupable/api#1214.

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