Skip to content
Evals & Experiment

Prove it offline, then on 10% of upgrades.

Billing has no partial credit: a wrong charge is a wrong charge. So correctness is proven against ground truth before a single customer is exposed, and behavior is measured after.

  1. 01Offline evals: is the billing right?
  2. 02Canary and experiment: is it safe at scale?
  3. 03KPIs: is it better?
16 permutations × 6 checks
Upgrade pathFR-01 · FR-05Amount chargedFR-01Cycle resetFR-03Credit grantFR-04Unused creditsFR-06Failed paymentFR-07Repeated notification
01Pro Monthly → Pro Monthly
02Pro Monthly → Pro Annual
03Pro Annual → Pro Monthly
04Pro Annual → Pro Annual
05Biz Monthly → Biz Monthly
06Biz Monthly → Biz Annual
07Biz Annual → Biz Monthly
08Biz Annual → Biz Annual
09Pro Monthly → Biz Monthly
10Pro Monthly → Biz Annual
11Pro Annual → Biz Monthly
12Pro Annual → Biz Annual
13Biz Monthly → Pro Monthly
14Biz Monthly → Pro Annual
15Biz Annual → Pro Monthly
16Biz Annual → Pro Annual
Result

— / 96

Not run yet

Running against the policy as specified. Inject a regression to see what the suite catches.

Selected check

Run the suite, then select a cell to see expected against actual.

  • A hand-written answer key

    Expected charge, credits and renewal date for each path, worked out from the PRD's rules, not from the code under test.

  • One fixed setup

    Subscribed Jan 15, upgrading Nov 14, 60% of credits spent, using the PRD's own example plans for every path.

  • A check per requirement

    Each column guards a functional requirement, including the two that only show up when something goes wrong.

The suite runs live in this page against a reference implementation of the PRD's rules. The same cases are the acceptance tests for the Stripe build (PRD §8: all critical offline evals pass).

Rollout through Confidence

From test accounts to 10% of eligible upgrades.

Confidence, Spotify's feature-flag and experimentation platform, assigns each customer to treatment or control. Exposure grows only when the stage before it is clean.

Stage 3 of 5 · 10% experiment
≈5,795 upgrades a month, at previous volume
Treatment · 10% · reset on upgradeControl · 90% · previous billing

What this stage is for

Treatment gets reset-on-upgrade; the other 90% keep the previous behavior.

Moves on when

Enough evidence on billings, tickets and conversion.

  • Assignment is consistent per customer across repeated upgrade attempts.

  • Targeting lives in Confidence; the creating team owns the flag.

  • Rollback stops new exposure without disturbing existing subscriptions.

  • Outcomes are captured per upgrade path, not only in aggregate.

KPI dashboard

Two primary metrics, five early warnings, six guardrails.

The experiment has not run, so these readouts are simulated: one for each way it could end. Scrub the weeks to see why renewal guardrails need more than one billing period.

Simulated data
Week 8 of 8
Take this to the decision

Primary · Increase

Net billings per eligible upgrader

Clear lift

+8.4%

Customer-level net billings over a comparable observation period, including abandoned upgrades.

Primary · Decrease

Upgrade-related ticket rate

Clear drop

−33.9%

Relevant support tickets per 1,000 completed upgrades. ≈12.6 per 1,000 before.

Leading indicators · early warning
  • Upgrade checkout completion

    −1.0%

    Within tolerance

    No worse than −3%

  • Payment success

    −0.1%

    Within tolerance

    No worse than −2%

  • Upgrade abandonment

    +0.5%

    Within tolerance

    No worse than +5%

  • Billing support contacts

    −29.0%

    Clear drop

    Decrease

  • Upgrade timing

    −2.4%

    Tracked, not judged

    Observe

Guardrails · must not break
  • Completed renewals

    −0.3%

    Within tolerance

    No worse than −2%

  • Refunds and chargebacks

    −7.6%

    Within tolerance

    No worse than +10%

  • Credit consumption and cost

    +1.5%

    Within tolerance

    No worse than +5%

  • Incorrect or duplicate charges

    0

    None found

    Zero

  • Incorrect credit grants

    0

    None found

    Zero

  • Subscription-state mismatches

    0

    None found

    Zero

No difference from controlTolerance for a guardrailRange the true effect is likely in

Metric names, definitions and desired directions: PRD §6. Every effect size shown is simulated. Ticket baseline: 1,455 tickets over 60 days ÷ two 30-day cohorts of 57,947 upgrades.