Skip to content

fix(customers): canceled card trials churn, abandoned checkouts never started - #642

Merged
JeremyFunk merged 4 commits into
fix/customers-unpaid-ended-planfrom
fix/customers-ended-plan-signals
Nov 24, 2026
Merged

JeremyFunk merged 4 commits into
fix/customers-unpaid-ended-planfrom
fix/customers-ended-plan-signals

fix(customers): a plan reusing an abandoned checkout's id shows as st…

b7e00d3
Select commit
Loading
Failed to load commit list.
Maple Review Bot / Maple / review succeeded Nov 23, 2026 in 4m 9s

Confidence 10/10 · No issues found

🟢 Confidence 10/10 · safe to merge. The Abandoned checkout fix re-records Started and drops the abandoned event on a live read, pinned by compute-loop.test.ts:1576.
no findings · tests covered · risk medium

Autumn abandoned checkouts now read as abandoned instead of started-then-canceled, a card trial canceled before converting counts as churn with no MRR lost, and a lead whose plans all ended unpaid stops getting signals. All three behaviors are pinned by map, compute and evaluate tests.

  • abandonedCheckout marks an expired paid plan with no cancellation or billing period
  • Ingest replaces a plan's Started/Canceled events with Abandoned checkout
  • canceledCardTrial and wasCustomer count a canceled card trial as a churn
  • leftUnpaid stops non-SLA signals for a lead whose plans ended unpaid

Fixed since the last review

  • ✅ F2 · An abandoned plan that later reads live keeps its Abandoned checkout event
What was checked
  • recordEvent is onConflictDoNothing, so dropping then re-recording an event lands (ingest-live.ts:520)
  • Account MRR sums live billed plans only, so a canceled card trial adds none (snapshot.ts:217)
  • paymentMethod is nullable and Stripe sets it only from a real card (stripe/map.ts:430)

b7e00d3 · Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.