Architecture Note · Operations & RevOps

Deterministic Customer Health Scoring & Churn-Prevention Controls

Why prompt-driven retention bots misread quiet accounts and risk unapproved executive outreach—and how weighted SQLite scoring, HTTP 409 human sign-off gates, and formula-safe NRR reporting keep renewal operations auditable.

The Operational Problem: Quiet Churn Inside the 120-Day Window

Enterprise Customer Success teams rarely lose renewals from a single obvious outage. Churn arrives quietly inside the 0–120 day renewal window: weekly active usage collapses by 40% while zero support tickets are logged, an executive sponsor changes roles, or an accounts-payable hold stalls an invoice past net terms. When CRM notes, Zendesk escalations, product telemetry, and billing aging live in separate spreadsheets, CSMs discover the problem only when procurement declines the renewal quote. At the same time, high-ARR accounts concentrate on overloaded regional CSMs above 85% weekly capacity, delaying executive business reviews (EBRs) until save probability drops.

Why Naive AI Wrappers Fail Retention Operations

Dropping an LLM prompt on top of raw CRM exports introduces four structural failures into renewal workflows:

  • Nondeterministic health math: Asking a model to summarize an account into a “red/amber/green” label produces drifting scores across runs. A VP of Customer Success cannot compare 30-day trend deltas or calibrate segment weights if the scoring function itself is stochastic.
  • Blindness to silent-usage drops: Chat summaries overweight recent noisy support tickets while overlooking low-ticket accounts whose DAU/WAU has collapsed—the classic silent-churn signature.
  • Unsupervised customer outreach: Auto-sending AI-drafted executive emails, outbound calls, or SMS blasts when a score dips risks citing stale invoice figures to a CFO or messaging a sponsor who already left the company.
  • Uncontrolled data egress and unverified retention math: Uploading customer ARR ledgers, NPS comments, and contact rosters to external third-party APIs widens exposure without leaving a verifiable GRR/NRR bridge or tamper-evident approval record.

The Deterministic Architecture That Fixes It

A production churn-prevention control plane separates deterministic telemetry scoring, explicit capacity accounting, and mandatory human sign-off before any customer outreach occurs.

  1. Weighted five-signal scoring in SQLite WAL mode: POST /api/health/compute ingests single accounts, JSON batches, or multipart/form-data CSV/JSON uploads and computes normalized 0–100 composite scores across five explicit dimensions: product_adoption (30% default), support_severity (20%), sponsor_turnover (20%), nps_csat (15%), and invoice_timeliness (15%). Scores classify accounts into deterministic tiers (Critical <55, Watch 55–74, Healthy ≥75 in the interactive sandbox; persisted with at_risk granularity and historical trend deltas in SQLite). Ephemeral batch uploads in CS_UPLOAD_DIR auto-wipe after 3,600 seconds.
  2. Rule-based early-warning radar: Rather than guessing risk from prose, deterministic detectors flag silent_usage_drop (e.g., DAU/WAU change ≤-25% alongside 0–2 open tickets), sponsor_departure (departed, role-changed, or unresponsive champion), Sev-1/invoice-aging stress, and renewal_120d_risk segmented into 0–30d, 31–60d, 61–90d, and 91–120d cohorts.
  3. Playbook staging with HTTP 409 human CSM gates: POST /api/playbooks/trigger stages an ebr_prep_brief, executive_alignment_alert, or adoption_workshop draft (defaulting to OfflineDeterministicAdapter) in pending_csm_review state alongside regional csm_capacity load tracking (evaluating 40-hour weekly budgets with risk-adjusted effort hours and ≥85% overload alerts). Calling POST /api/playbooks/{id}/dispatch without an explicit POST /api/playbooks/{id}/approve fails closed with HTTP 409 Conflict. Outreach policy permits inbound-only voice and verified Official WhatsApp Business Cloud API threads only—zero outbound AI calls or unsolicited SMS.
  4. Renewal forecasting, formula-safe exports, and hash-chained audits: POST /api/renewals/forecast persists CSM-adjusted confidence, save outcomes, and expansion/contraction ARR in renewal_forecasts. GET /api/portfolio/nrr computes segment and region GRR/NRR bridges (modeling expansion capture against Watch contraction and Critical churn exposure, with signed-off playbooks adding explicit save-rate lift), while GET /api/portfolio/export.csv emits RFC 4180 CSV sanitized against OWASP formula injection. Every approval and state transition appends to a SHA-256 hash-chained audit_logs table (GET /api/audit/logs), secured by scoped HMAC invite tokens, sliding-window rate limiting, and a full pytest suite.

Operational Takeaway

Retention engineering works when signal math is reproducible, silent-usage anomalies surface early, CSM workload stays visible, and no playbook crosses the customer boundary without an authenticated human CSM sign-off on record.

Benchmark churn radar & NRR controls on your renewal cohort

Start with a free 30-minute workflow check. Bring 10–25 anonymized renewal accounts and leave with one concrete health-scoring and playbook recommendation in writing within one business day.