Category: Backend
Complexity: 200 points
Labels: backend, wave-200
Context
churn-analysis.ts and test-churn-analysis.ts exist for subscriber churn analytics.
Problem
Analytics scripts can regress silently without golden fixtures in scripts/data.
Goal
Expand deterministic tests with checked-in fixtures and stabilize metric definitions (logos, grace lapses, cancels).
Scope
Includes: fixtures + tests.
Does NOT include: ML forecasting (see renewal-forecast separately).
Implementation Guidelines
- Files:
churn-analysis.ts, test-churn-analysis.ts, data/ fixtures.
Acceptance Criteria
Validation
npx tsx test-churn-analysis.ts or npm test script.
PR Expectations
The PR should include:
Category: Backend
Complexity: 200 points
Labels: backend, wave-200
Context
churn-analysis.tsandtest-churn-analysis.tsexist for subscriber churn analytics.Problem
Analytics scripts can regress silently without golden fixtures in
scripts/data.Goal
Expand deterministic tests with checked-in fixtures and stabilize metric definitions (logos, grace lapses, cancels).
Scope
Includes: fixtures + tests.
Does NOT include: ML forecasting (see renewal-forecast separately).
Implementation Guidelines
churn-analysis.ts,test-churn-analysis.ts,data/fixtures.Acceptance Criteria
Validation
npx tsx test-churn-analysis.tsor npm test script.PR Expectations
The PR should include: