Forecast delivery to cash conversion
Forecast how delivery-ready, accepted and invoiced value converts to collected cash and minimum liquidity from complete right-censored stage episodes, empirical-Bayes cohort/age hazards and coherent shared scenarios, while refusing unsupported stages or unverified evidence.
What it's for
Forecasts when delivered technical value is likely to become cash—and whether acceptance or invoicing delay threatens liquidity—using censoring-aware local evidence rather than a static milestone count.
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 |
|---|---|---|---|
| completed_stage_episodes | array of objects (7 fields) ≥ 1 item | Evidence | Yes |
| current_milestones | array of objects (6 fields) ≥ 1 item | Evidence | Yes |
| current_unrestricted_cash | number | Your calibration | Yes |
| horizon_periods | integer ≥ 1, ≤ 60 | Your calibration | Optional |
| minimum_stage_exposure | integer ≥ 0 | Your calibration | Optional |
| minimum_unrestricted_cash | number | Your calibration | Yes |
| prior_advance_probability | number ≥ 0, ≤ 1 | Your calibration | Optional |
| prior_exit_probability | number ≥ 0, ≤ 1 | Your calibration | Optional |
| prior_strength | number > 0 | Your calibration | Optional |
| scenarios | array of objects (9 fields) ≥ 1 item | Evidence | Yes |
| seed | integer ≥ 0, ≤ 2147483647 | Numerical control | Optional |
| simulations | integer ≥ 100, ≤ 100000 | Numerical control | Optional |
Each scenarios
record
| Field | Type | Required |
|---|---|---|
| accepted_advance_multiplier | number (≥ 0) | Yes |
| delivery_ready_advance_multiplier | number (≥ 0) | Yes |
| evidence_verified | boolean | Yes |
| exit_multiplier | number (≥ 0) | Yes |
| fixed_cash_flow_by_period | array of number (≥ 1 item) | Yes |
| id | string (non-empty) | Yes |
| invoiced_advance_multiplier | number (≥ 0) | Yes |
| invoiced_exit_recovery_fraction | number (≥ 0, ≤ 1) | Yes |
| probability | number (≥ 0, ≤ 1) | Yes |
{
"completed_stage_episodes": [
{
"cohort": "enterprise",
"duration_periods": 2,
"evidence_verified": true,
"id": "delivery_ready-0",
"outcome": "advance",
"stage": "delivery_ready",
"start_age_periods": 0
},
{
"cohort": "enterprise",
"duration_periods": 2,
"evidence_verified": true,
"id": "delivery_ready-1",
"outcome": "advance",
"stage": "delivery_ready",
"start_age_periods": 1
},
{
"cohort": "enterprise",
"duration_periods": 2,
"evidence_verified": true,
"id": "delivery_ready-2",
"outcome": "exit",
"stage": "delivery_ready",
"start_age_periods": 2
},
{
"cohort": "enterprise",
"duration_periods": 2,
"evidence_verified": true,
"id": "delivery_ready-3",
"outcome": "censored",
"stage": "delivery_ready",
"start_age_periods": 0
},
{
"cohort": "enterprise",
"duration_periods": 2,
"evidence_verified": true,
"id": "delivery_ready-4",
"outcome": "advance", Truncated for display — the full payload is 880 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": {
"horizon_periods": 4,
"prior_advance_probability": 0.2,
"prior_exit_probability": 0.03,
"prior_strength": 10,
"scenario_probability_sum_before_normalization": 1,
"seed": 7,
"simulations": 100
},
"decision": "delivery_to_cash_forecast_supported",
"forecast": {
"cash_collected": {
"mean": 77.73,
"p10": 4,
"p50": 80,
"p90": 180
},
"liquidity_breach_probability": 0,
"minimum_unrestricted_cash": {
"mean": 99.5,
"p10": 97.8,
"p50": 100,
"p90": 100
},
"remaining_value_by_stage_mean": {
"accepted": 40,
"delivery_ready": 8.4,
"invoiced": 58
}
},
"guardrails": [
"Stage histories must be complete right-censored episodes; snapshots bias conversion hazards.",
"Cohorts must be lawful aggregate operating segments, never named-customer credit scores.",
"Scenario effects require governed evidence and local backtesting; language models must not invent transition effects.",
"Accounting recognition and customer acceptance remain authoritative-system facts, not inferences from Git activity."
],
"method": "right_censored_empirical_bayes_multistage_delivery_to_cash_simulation",
"support": {
"completed_episode_count": 90,
"current_milestone_count": 3,
"evidence_complete": true,
"exposure_periods_by_stage": {
"accepted": 60, Truncated for display — the full payload is 51 lines.
How it works
Forecasting & survival — Estimate when something completes or fails, with censoring and unresolved work handled honestly rather than dropped.
- 1 Expand every resolved or censored stage episode into at-risk periods and an optional terminal advance/exit event; never relabel censoring as failure.
- 2 Estimate cohort-age advance and exit hazards with stage-pooled empirical-Bayes shrinkage, then gate all three stages on exposure support and authoritative evidence.
- 3 Simulate each current milestone sequentially through delivery-ready, accepted, invoiced and paid states under shared scenarios; credit cash only at payment or governed invoice-exit recovery and preserve period-by-period liquidity paths.
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
- Training examples precede their outcomes, censoring and unresolved work are represented, and deployment populations remain comparable to validation cohorts.
- Stage definitions, cohort assignment, cadence, age origin, censoring and operating process are stable; episodes contain the full observable risk interval; shared scenario multipliers and fixed cash flows use a consistent perimeter and currency.
- A predictive interval or risk estimate is not a deadline promise, causal explanation, or individual-performance judgment.
- The output is an aggregate operational cash forecast, not customer credit scoring, revenue recognition, or proof that engineering activity created billable value. LLMs may explain supplied scenarios but cannot invent transition effects.
Minimum evidence
- completed_stage_episodes: at least 1 rows/items
- current_milestones: at least 1 rows/items
- scenarios: at least 1 rows/items
- current_unrestricted_cash: required and organization-defined
- minimum_unrestricted_cash: 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
- versioned stage event history converted into non-overlapping at-risk episodes with honest censoring, joined to one as-of current milestone snapshot and finance-owned common macro/cash scenarios on the same currency and cadence
- stage/outcome taxonomy, cohort lawfulness, age origin and cadence, censoring and extraction completeness, process epoch, prior and support policy, scenario dependence, recovery and cash perimeter, simulations, liquidity floor, backtest windows and accountable owners
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": "forecast how deliveryready accepted and invoiced" }
→ finds "forecast_delivery_to_cash_conversion"
gitrevio_capability_describe
{ "capability_id": "forecast_delivery_to_cash_conversion" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "forecast_delivery_to_cash_conversion", "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 delivery to cash chain integrity
Reconcile each governed milestone from delivery-ready evidence through customer acceptance, billing eligibility, net invoicing and collected cash; enforce temporal ordering, eligible-unbilled and outstanding-receivable identities, evidence separation and bounded diagnostics without treating Git activity as an accounting fact.
Optimize delivery to cash intervention policy
Choose at most one evidence-backed intervention for each aggregate delivery-ready, accepted or invoiced milestone segment; propagate sequential stage mass under shared scenarios and maximize expected collected-cash net value minus CVaR subject to budget, capacity, liquidity and cash-target gates, with exact or explicitly uncertified beam search.
Audit benefit double counting
Reconcile business-case benefit claims to unique economic source pools and allocation fractions, exposing overallocated sources and claim-level mismatches before portfolio value is aggregated.
Audit cash flow timing consistency
Audit whether economic-event and cash-settlement timing obey governed lag rules across coherent scenarios, quantify the resulting NPV distortion, reconstruct scenario liquidity paths, and separate timing exceptions from liquidity-tail exposure without treating exceptions as wrongdoing.
Audit cost allocation consistency
Audit whether shared engineering, platform, cloud, vendor, or operating cost pools reconcile to source totals and follow their declared pro-rata allocation bases at every target.
Audit cost capitalization sensitivity
Audit whether permitted software-cost capitalization choices change reported project ROI and priority even though scenario cash NPV, downside, and economic rank are unchanged.