Forecast recurring revenue regimes
Fit a diagonal-Gaussian hidden Markov model to consecutive organic ARR growth, GRR, gross margin and cash-burn intensity, order latent regimes by growth rather than arbitrary labels, test effective regime support and improvement over a single-state model, then simulate ARR and unrestricted cash through fitted transitions, within-regime variation and coherent common market scenarios.
What it's for
Shows boards whether growth, retention, margin and burn have entered a different operating regime—and forecasts ARR and liquidity from those joint dynamics instead of extrapolating one headline growth rate.
What you give it
Inputs split into evidence read from your connected systems, calibration your team owns, and numerical controls that affect precision but never the result's meaning.
| Field | Type | Role | Required |
|---|---|---|---|
| confidence_level | number ≥ 0.5, ≤ 0.999 | Your calibration | Optional |
| convergence_tolerance | number ≥ 1e-12, ≤ 1 | Your calibration | Optional |
| current_recurring_revenue | number > 0 | Your calibration | Yes |
| current_unrestricted_cash | number ≥ 0 | Your calibration | Yes |
| em_iterations | integer ≥ 1, ≤ 500 | Your calibration | Optional |
| historical_periods | array of objects (7 fields) ≥ 12 items | Evidence | Yes |
| horizon_periods | integer ≥ 1, ≤ 120 | Your calibration | Yes |
| market_scenarios | array of objects (5 fields) ≥ 1 item | Evidence | Yes |
| max_detail_rows | integer ≥ 1, ≤ 500 | Numerical control | Optional |
| minimum_hmm_log_likelihood_improvement_per_period | number | Your calibration | Optional |
| minimum_liquidity_probability | number ≥ 0, ≤ 1 | Your calibration | Optional |
| minimum_regime_effective_periods | number ≥ 0 | Your calibration | Optional |
| minimum_target_probability | number ≥ 0, ≤ 1 | Your calibration | Optional |
| minimum_unrestricted_cash | number ≥ 0 | Your calibration | Yes |
| regime_count | integer ≥ 2, ≤ 6 | Your calibration | Optional |
| seed | integer ≥ 0, ≤ 2147483647 | Numerical control | Optional |
| simulations | integer ≥ 200, ≤ 50000 | Numerical control | Optional |
| target_terminal_recurring_revenue | number ≥ 0 | Your calibration | Yes |
| transition_prior | number > 0 | Your calibration | Optional |
| variance_floor | number ≥ 1e-8, ≤ 10 | Your calibration | Optional |
Each historical_periods
record
| Field | Type | Required |
|---|---|---|
| evidence_verified | boolean | Yes |
| gross_margin | number (≥ -1, ≤ 1) | Yes |
| gross_revenue_retention | number (≥ 0, ≤ 1) | Yes |
| id | string (non-empty) | Yes |
| net_cash_burn_per_opening_arr | number (≥ -10, ≤ 10) | Yes |
| organic_arr_growth_rate | number (≥ -0.99, ≤ 5) | Yes |
| period_index | integer (≥ 0) | Yes |
{
"current_recurring_revenue": 100,
"current_unrestricted_cash": 200,
"historical_periods": [
{
"evidence_verified": true,
"gross_margin": 0.4,
"gross_revenue_retention": 0.85,
"id": "revenue-history-0",
"net_cash_burn_per_opening_arr": 0.2,
"organic_arr_growth_rate": -0.055,
"period_index": 0
},
{
"evidence_verified": true,
"gross_margin": 0.4,
"gross_revenue_retention": 0.85,
"id": "revenue-history-1",
"net_cash_burn_per_opening_arr": 0.2,
"organic_arr_growth_rate": -0.05,
"period_index": 1
},
{
"evidence_verified": true,
"gross_margin": 0.4,
"gross_revenue_retention": 0.85,
"id": "revenue-history-2",
"net_cash_burn_per_opening_arr": 0.2,
"organic_arr_growth_rate": -0.045000000000000005,
"period_index": 2
},
{
"evidence_verified": true,
"gross_margin": 0.4,
"gross_revenue_retention": 0.85,
"id": "revenue-history-3",
"net_cash_burn_per_opening_arr": 0.2,
"organic_arr_growth_rate": -0.055,
"period_index": 3
},
{
"evidence_verified": true,
"gross_margin": 0.4,
"gross_revenue_retention": 0.85, Truncated for display — the full payload is 352 lines.
What you get back
This is the actual output of running the example above — computed by the same function the platform calls, not an illustration.
{
"configuration": {
"confidence_level": 0.9,
"horizon_periods": 6,
"simulations": 500
},
"decision": "recurring_revenue_regime_forecast_supported",
"failed_gates": [],
"fit_diagnostics": {
"converged_before_iteration_limit": true,
"em_iterations_completed": 2,
"minimum_regime_effective_periods": 12
},
"forecast_regime_probability_by_period": [
{
"period": 1,
"probabilities": {
"regime-1": 0.138,
"regime-2": 0.058,
"regime-3": 0.804
}
},
{
"period": 2,
"probabilities": {
"regime-1": 0.212,
"regime-2": 0.138,
"regime-3": 0.65
}
},
{
"period": 3,
"probabilities": {
"regime-1": 0.244,
"regime-2": 0.2,
"regime-3": 0.556
}
},
{
"period": 4,
"probabilities": {
"regime-1": 0.274,
"regime-2": 0.24,
"regime-3": 0.486 Truncated for display — the full payload is 143 lines.
How it works
Markov & state-space control — Choose a policy over evolving states when today's action changes tomorrow's options.
- 1 Freeze consecutive finance-approved period features and standardize them; initialize multiple latent states by growth rank, then fit transition, mean and diagonal-variance parameters with forward-backward EM and Dirichlet transition smoothing.
- 2 Relabel fitted states from weakest to strongest organic growth, calculate posterior historical/current state probabilities, effective periods, transition matrix and per-period log-likelihood improvement over one diagonal Gaussian state.
- 3 Simulate future regime transitions and joint growth/margin/burn observations under one common market scenario per path; propagate opening ARR and unrestricted cash and apply evidence, support, model-improvement, target-ARR and liquidity gates.
Before you trust it
Every tool in the catalog ships with the conditions under which its answer is meaningful — and the conditions under which it should abstain instead of guessing.
Assumptions & guardrails
- States are decision-sufficient at the chosen cadence and transition evidence is recent, identifiable, and not silently pooled across incompatible regimes.
- Period definitions are consecutive and stable; feature measurements share one finance perimeter; latent state dynamics are approximately first-order Markov with diagonal within-state residual covariance; common scenarios span material structural shocks.
- A policy is conditional on the declared state abstraction and transition model; hidden omitted state can invalidate its ranking.
- Regimes are descriptive joint states, not causal diagnoses, company-quality grades or management scores. Simulation includes process and scenario uncertainty but not full parameter/model uncertainty and is not accounting, valuation, financing, solvency or investment advice.
Minimum evidence
- historical_periods: at least 12 rows/items
- market_scenarios: at least 1 rows/items
- current_recurring_revenue: required and organization-defined
- current_unrestricted_cash: required and organization-defined
- minimum_unrestricted_cash: required and organization-defined
- target_terminal_recurring_revenue: required and organization-defined
- horizon_periods: required and organization-defined
How to validate it
Use chronological train/calibration/test windows, compare proper scores and decision value with a simple baseline, and recalibrate only from outcomes resolved after prediction time.
Calibrating it to your org
Same for everyone
The mathematical kernel, validation rules, method version, and JSON output semantics are organization-independent; no tenant-trained coefficients or company benchmark is embedded in the function.
Specific to you
- version-matched finance period panel joining the governed recurring-revenue bridge to recognized gross margin and treasury cash/burn, plus finance-approved common forecast scenarios
- period cadence and eligibility, organic growth and retention perimeter, margin and burn definitions, historical process epoch, regime count and priors, variance floor, scenario dependence and probabilities, current balances, forecast horizon, simulation precision, target/liquidity gates and review authority
Calibration workflow
- 1 Define the management decision, target outcome, aggregate unit, privacy boundary, cadence, and prediction/intervention horizon for this organization.
- 2 Build a tenant-scoped historical cohort using only information available before each prediction or decision; preserve zero periods, censoring, assignment probabilities, and unresolved outcomes when the method requires them.
- 3 Estimate statistical parameters on training history, but obtain costs, utilities, risk tolerance, practical-effect thresholds, capacity, and policy constraints from accountable decision owners.
- 4 Validate on later time windows or held-out aggregate units at the deployment grain, against a simple baseline and the function-specific validation strategy.
- 5 Deploy only if the returned decision clears evidence, overlap, calibration, robustness, and guardrail checks; warning, unsupported, schema-gap, and fallback decisions are abstentions.
- 6 Monitor realized outcomes, data drift, coverage, and decision regret; recalibrate at a governed cadence or after a detected regime/definition change, never merely because a stakeholder dislikes the result.
Call it from your AI
You don't wire up 388 tools in your MCP client. The GitRevio MCP server exposes 18 tools, three of which let an agent search the catalog, read a tool's schema, and run it — so the assistant finds this one on its own.
gitrevio_capabilities_search
{ "q": "fit a diagonalgaussian hidden markov model" }
→ finds "forecast_recurring_revenue_regimes"
gitrevio_capability_describe
{ "capability_id": "forecast_recurring_revenue_regimes" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "forecast_recurring_revenue_regimes", "arguments": { ... } }
→ returns the result shown above Works in Claude Desktop, Claude Code, Cursor, Cline, Continue.dev, Goose and Aider. See the MCP server.
Related tools
Audit recurring revenue bridge integrity
Audit recurring revenue as a continuous stock/flow ledger: reconcile opening revenue through new, expansion, reactivation, contraction, churn, FX and acquisition/divestiture movements to closing revenue; require each next opening to equal the prior close; and recompute GRR and NRR on an organic existing-customer perimeter that cannot be inflated by new business, reactivation, FX or M&A.
Optimize regime contingent growth capital policy
Choose one action for each observable recurring-revenue regime and reuse it on every matching future, charging unique commitment resources once; evaluate every policy on coherent regime paths with multiplicative ARR, cash-burn and full action cost, then maximize expected terminal ARR value plus cash minus CVaR shortfall subject to liquidity, target-ARR, dependencies, exclusions, budget and capacity.
Calculate churn prevention break even
Calculate the absolute churn reduction an intervention must cause to break even, then test aligned baseline/treated scenarios against probability-of-positive-value and portfolio CVaR gates.
Calculate procurement negotiation range
Calculate an uncertainty-aware procurement bargaining zone from independently governed buyer and supplier BATNA economics; protect both reservation prices at explicit confidence levels, derive a bargaining-weight target, quantify ZOPA probability and tail overpayment, and abstain when evidence cannot support an overlap.
Estimate cannibalization adjusted feature value
Estimate feature value after posterior cannibalization of legacy contribution, using aligned adoption scenarios, beta-binomial substitution uncertainty, and value plus substitution-risk gates.
Estimate feature incremental value
Estimate rollout value from segment-level treated/control outcomes with beta-binomial uplift posteriors, finance-owned contribution economics, and a probability-of-positive-value gate.