Repository navigation
Description
Parent epic: #2093
Priority
P1 — Next customer value after the shared integration release.
User journey
An artist or label creates a program, connects its campaigns/apps, and sets rules such as 50 points for a qualifying game result once per fan during the release campaign.
Acceptance criteria
- Create customer-owned programs with explicit artist or label-wide scope; campaigns/apps opt into the program. Do not imply one universal Recoup fan balance.
- Let authorized owners configure eligible actions, points, thresholds, start/end dates, per-fan/campaign/time limits, and program-wide award budgets. Public client code cannot change these rules.
- Version rule changes and preserve the rule version used for each award; define timezone and expiration behavior without silently rewriting prior balances.
- Model game achievements as externally reported qualifying results. External apps retain their game rules, raw scores, and score leaderboards; Recoup does not need to own those systems.
- Separate action availability from point amounts. Listening-related actions may be supported only where the source and verification method permit them; do not enable points-per-Spotify-stream as a default.
- Expose program/rule management through shared API/MCP, with draft/active/paused states and clear permissions. Recoup supplies infrastructure; the customer chooses and funds rewards.
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
Test rule changes during an attempt, time boundaries, thresholds, expired rules, caps, paused programs, cross-program actions, and unauthorized configuration.
Architecture and ownership
Customer-owned program; Recoup-owned infrastructure. Shared API business logic supports MCP, Recoup Sites, and independent apps. Database changes go through the database repository PR workflow. Use existing durable workflow patterns for notifications and reconciliation. Customer API credits and fan reward points are distinct systems. External games own their scoring and score leaderboards.
Approved category and ownership
Programs and earning rules are Fans resources. Sites and external apps report authorized qualifying actions; Widgets may display the program but never owns its rules or balances.
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
[-][Sites] Configure customer-owned points programs and earning rules[/-][+][Fans] Configure customer-owned points programs and earning rules[/+]