Forecast contract delivery and liability

Forecast remaining commercial-commitment delivery time, on-time probability, contractual penalties, acceptance cash and liquidity from a right-censored empirical-Bayes lognormal duration model, conditioning each live promise on its age and refusing sparse or unverified classes.

What it's for

Turns commercial promises into an age-conditioned delivery, penalty and cash distribution, giving boards and operators a defensible view of liability before deadlines fail.

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
current_commitments array of objects (10 fields) ≥ 1 item Evidence Yes
current_unrestricted_cash number Your calibration Yes
historical_commitment_episodes array of objects (6 fields) ≥ 5 items Evidence Yes
horizon_periods integer ≥ 1, ≤ 120 Your calibration Optional
max_detail_rows integer ≥ 1, ≤ 500 Numerical control Optional
minimum_delivered_per_class integer ≥ 0 Your calibration Optional
minimum_unrestricted_cash number Your calibration Yes
mu_grid_points integer ≥ 5, ≤ 101 Your calibration Optional
prior_strength number > 0 Your calibration Optional
scenarios array of objects (6 fields) ≥ 1 item Evidence Yes
seed integer ≥ 0, ≤ 2147483647 Numerical control Optional
sigma_grid_points integer ≥ 5, ≤ 51 Your calibration Optional
simulations integer ≥ 100, ≤ 100000 Numerical control Optional

Each current_commitments record

Field Type Required
age_periods number (≥ 0) Yes
baseline_planned_duration_periods number (> 0) Yes
cash_on_acceptance number (≥ 0) Yes
commitment_class string (non-empty) Yes
evidence_verified boolean Yes
id string (non-empty) Yes
maximum_penalty number (≥ 0) Yes
penalty_free_grace_periods number (≥ 0) Yes
penalty_per_late_period number (≥ 0) Yes
promised_total_duration_periods number (≥ 0) Yes
Example input
{
  "current_commitments": [
    {
      "age_periods": 6,
      "baseline_planned_duration_periods": 10,
      "cash_on_acceptance": 100,
      "commitment_class": "standard",
      "evidence_verified": true,
      "id": "current-standard",
      "maximum_penalty": 50,
      "penalty_free_grace_periods": 1,
      "penalty_per_late_period": 10,
      "promised_total_duration_periods": 12
    }
  ],
  "current_unrestricted_cash": 100,
  "historical_commitment_episodes": [
    {
      "baseline_planned_duration_periods": 10,
      "commitment_class": "standard",
      "evidence_verified": true,
      "id": "standard-0",
      "observed_duration_periods": 8,
      "outcome": "censored"
    },
    {
      "baseline_planned_duration_periods": 10,
      "commitment_class": "standard",
      "evidence_verified": true,
      "id": "standard-1",
      "observed_duration_periods": 9,
      "outcome": "delivered"
    },
    {
      "baseline_planned_duration_periods": 10,
      "commitment_class": "standard",
      "evidence_verified": true,
      "id": "standard-2",
      "observed_duration_periods": 10,
      "outcome": "delivered"
    },
    {
      "baseline_planned_duration_periods": 10,
      "commitment_class": "standard",

Truncated for display — the full payload is 229 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.

Example output
{
  "commitment_diagnostics": [
    {
      "commitment_class": "standard",
      "commitment_id": "current-standard",
      "contractual_penalty": {
        "mean": 11.9976,
        "p10": 0,
        "p50": 0,
        "p90": 48.2719
      },
      "delivery_within_horizon_probability": 0.93,
      "historical_support": {
        "censored": 3,
        "delivered": 7,
        "episodes": 10
      },
      "on_time_probability": 0.54,
      "used_pooled_fallback": false
    }
  ],
  "configuration": {
    "horizon_periods": 12,
    "mu_grid_points": 7,
    "prior_strength": 2,
    "scenario_probability_sum_before_normalization": 1,
    "seed": 9,
    "sigma_grid_points": 5,
    "simulations": 100
  },
  "decision": "contract_delivery_liability_forecast_supported",
  "forecast": {
    "acceptance_cash_within_horizon": {
      "mean": 93,
      "p10": 100,
      "p50": 100,
      "p90": 100
    },
    "contractual_penalty": {
      "mean": 11.9976,
      "p10": 0,
      "p50": 0,
      "p90": 48.2719
    },

Truncated for display — the full payload is 78 lines.

How it works

Forecasting & survival — Estimate when something completes or fails, with censoring and unresolved work handled honestly rather than dropped.

  1. 1 Normalize delivered and honestly censored historical durations by their point-in-time baseline plan and fit a lognormal likelihood in which unresolved episodes contribute survival probability rather than a fabricated late outcome.
  2. 2 Partially pool commitment-class location and scale grids toward the tenant-wide distribution, retain class support, and draw each current total duration conditional on having already survived to its observed age.
  3. 3 Apply coherent common duration, penalty and fixed-cash scenarios; calculate delivery/on-time events, governed penalty caps, acceptance cash and chronological minimum liquidity; abstain on sparse classes or failed evidence.

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.
  • Historical plans were frozen before outcomes; censoring is noninformative conditional on modeled class or explicitly sensitivity-tested; process epoch, class definition and duration units are stable; contract penalty and acceptance-cash inputs are authoritative and scenarios preserve common shocks.
  • A predictive interval or risk estimate is not a deadline promise, causal explanation, or individual-performance judgment.
  • This is a tenant-calibrated portfolio forecast, not legal advice or a promise to a customer. Unresolved work is censoring, not failure; LLM estimates, current status snapshots and cross-tenant parameters cannot replace point-in-time outcomes.

Minimum evidence

  • historical_commitment_episodes: at least 5 rows/items
  • current_commitments: 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

  • extraction-complete right-censored commitment episodes linked to frozen pre-outcome baselines, one as-of live commitment snapshot and contract/finance/treasury scenarios on a consistent period and currency perimeter
  • class lawfulness and stability, baseline vintage, duration origin/cadence, censoring/extraction policy, process epoch, lognormal grid and pooling, minimum support, backtest windows, scenario dependence, penalty mechanics, acceptance-cash timing, liquidity floor and accountable owners

Calibration workflow

  1. 1 Define the management decision, target outcome, aggregate unit, privacy boundary, cadence, and prediction/intervention horizon for this organization.
  2. 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. 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. 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. 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. 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 remaining commercialcommitment delivery time ontime" }
  → finds "forecast_contract_delivery_and_liability"

gitrevio_capability_describe
  { "capability_id": "forecast_contract_delivery_and_liability" }
  → returns the input schema and agent guidance shown on this page

gitrevio_capability_run
  { "capability_id": "forecast_contract_delivery_and_liability", "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 commercial technical commitment integrity

Audit signed commercial promises against explicitly allocated technical scope, dependency order, funded capacity, acceptance criteria and evidence; expose orphan scope, double allocation, cycles, late plans and maximum contractual penalty without interpreting legal rights from engineering activity.

Constrained optimization

Optimize commercial commitment portfolio

Select decline or one executable contract-term package per commercial opportunity under common delivery scenarios, period capacity, delivery budget, expected penalty, acceptance-cash, liquidity and CVaR gates; value acceptance and relationship economics and disclose exact or uncertified beam search.

Constrained optimization

Audit decision execution fidelity

Audit whether approved decisions actually became verified implementation at the promised aggregate-unit and component grain, with whole-unit bootstrap uncertainty and simultaneous gates for fidelity, overdue scope, unverifiable evidence, exceptions and critical gaps.

Statistical audit & measurement

Audit KPI threshold bunching

Detect a post-target excess concentration immediately above a governed KPI threshold: compare within-unit pre/post local mass and above-versus-below mirror asymmetry, bootstrap whole units, report density bins and a smoothed log-density jump, and explicitly refuse to equate bunching with individual gaming or intent.

Statistical audit & measurement

Audit release risk prediction integrity

Audit a complete eligible-change release-risk cohort for point-in-time prediction lineage, exact change-to-deployment linkage, mature mutually exclusive outcomes, selective labels, score-triggered intervention contamination, calibration and false alarms before the score influences a release decision.

Forecasting & survival

Audit sunk cost escalation

Audit whether cumulative sunk cost predicts aggregate project continuation after project fixed effects, checkpoint time, forward value, success probability, remaining cost, and future irreversibility, with project-cluster bootstrap uncertainty.

Statistical audit & measurement

See every tool in Delivery forecasting & commitments →

Ready to See Your Engineering work clearly?

Request a free demo