Skip to content

[Context] Verify the deployed schema and inventory context identity conflicts #2117

Open

Description

@sswiftdrtv

Parent epic: #2116

Priority and sequence

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

Customer journey

A customer imports a release already present in their catalog. Recoup preserves the correct artist and recording instead of creating duplicates or changing existing catalog links.

Customer value and architecture

Establish the real starting point before enforcing new identity constraints.

Scope

  • Read the intended deployed database and application/API revisions; compare relevant tables, constraints, grants, storage configuration and migration history with source.
  • Count duplicate/conflicting provider artist and track mappings, questionable name-based associations and incomplete organization attachments. Inventory affected catalog, research, profile/knowledge and Sites writer paths.
  • Keep the detailed report and customer examples private; publish only a sanitized completion summary and migration prerequisites.
  • Propose handling for each conflict class. Do not automatically merge, delete, rewrite or backfill production records.

Acceptance criteria

  • A private baseline records deployed revision references, source/live differences, aggregate conflict counts and affected writer paths.
  • Each proposed production constraint has a conflict-handling and compatibility rule.
  • Existing public/private storage paths are classified without copying customer content into this issue.
  • Missing live access is recorded explicitly; contract design, synthetic fixtures and draft migrations can continue.

Blocking dependencies

None. Start now.

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

Execution gates

This gates production identity/schema mutations. It does not block fixture-driven development.

Validation

Read-only inventory is reproducible against the intended environment; no customer data or production mutations are required.

Owning implementation

API + database; private operational report

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. The October 8 read-only production check confirmed the Context migrations, grants and RLS that later releases depended on.

    Still open: the aggregate identity-conflict inventory and its per-class handling rules (recoupable/database#103) are unmerged and have not been run, and conflict quarantine (recoupable/database#100) is unmerged.

    Keeping this open until conflict counts and affected writer paths are recorded.

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