Estimate competing delivery risks
Estimate age-conditional probabilities of delivery, cancellation, escalation, or remaining active with Aalen-Johansen competing risks and bootstrap intervals.
What it's for
Evolves a single completion ETA into a live project outcome forecast that treats cancellation or escalation as real competing events rather than missing data.
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 |
|---|---|---|---|
| bootstrap_draws | integer ≥ 200, ≤ 20000 | Numerical control | Optional |
| confidence_level | number ≥ 0.8, ≤ 0.999 | Your calibration | Optional |
| current_age_days | number ≥ 0 | Your calibration | Yes |
| event_types | array of string ≥ 2 items | Evidence | Yes |
| historical_cases | array of objects (3 fields) | Evidence | Yes |
| horizons_after_age_days | array of number ≥ 1 item | Evidence | Yes |
| seed | integer | Numerical control | Optional |
Each historical_cases
record
| Field | Type | Required |
|---|---|---|
| duration_days | number (> 0) | Yes |
| event_type | string (non-empty) | Yes |
| id | string (non-empty) | Yes |
{
"bootstrap_draws": 200,
"current_age_days": 6,
"event_types": [
"delivered",
"cancelled"
],
"historical_cases": [
{
"duration_days": 5,
"event_type": "cancelled",
"id": "project-0"
},
{
"duration_days": 5,
"event_type": "cancelled",
"id": "project-1"
},
{
"duration_days": 5,
"event_type": "cancelled",
"id": "project-2"
},
{
"duration_days": 5,
"event_type": "cancelled",
"id": "project-3"
},
{
"duration_days": 5,
"event_type": "cancelled",
"id": "project-4"
},
{
"duration_days": 5,
"event_type": "cancelled",
"id": "project-5"
},
{
"duration_days": 5,
"event_type": "cancelled",
"id": "project-6"
},
{ Truncated for display — the full payload is 214 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.
{
"assumptions": [
"Historical cases are representative and censoring is independent conditional on the chosen cohort.",
"Event types are mutually exclusive first outcomes; cancellation is not treated as ordinary right censoring.",
"Age conditioning uses projects still event-free at the supplied age and does not assume independent competing causes.",
"This nonparametric forecast needs stratification or a covariate model when project mix changes materially."
],
"bootstrap": {
"confidence_level": 0.95,
"draws": 200
},
"conditional_active_project_forecast": [
{
"days_from_now": 9,
"outcomes": [
{
"interval": {
"high": 0.8919,
"low": 0.5516
},
"outcome": "delivered",
"probability": 0.75
},
{
"interval": {
"high": 0,
"low": 0
},
"outcome": "cancelled",
"probability": 0
},
{
"interval": {
"high": 0.4484,
"low": 0.1081
},
"outcome": "still_active",
"probability": 0.25
}
]
}
],
"current_age_days": 6,
"method": "aalen_johansen_competing_delivery_risks_v1", Truncated for display — the full payload is 51 lines.
How it works
Statistical audit & measurement — Check whether a number is fit to decide on: coverage, timing, reconciliation, and the gaps a dashboard hides.
- 1 Estimate age-conditional probabilities of delivery, cancellation, escalation, or remaining active with Aalen-Johansen competing risks and bootstrap intervals.
- 2 Evaluate the method-specific diagnostics and gates returned by the function, then abstain unless the declared decision clears them under locally governed thresholds.
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
- Metric definitions, weights, aggregate grain, sampling, missingness, dependence, and comparison windows correspond to the management claim being audited.
- Association, instability, or measurement quality is not a causal effect and must not be converted directly into an individual employment decision.
Minimum evidence
- historical_cases: required and organization-defined
- event_types: at least 2 rows/items
- current_age_days: required and organization-defined
- horizons_after_age_days: at least 1 rows/items
How to validate it
Validate on future periods or held-out aggregate units, compare with a simple baseline, and require stability across plausible metric definitions and decision thresholds.
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
- metric/outcome definitions, entity grain, observation window, costs, thresholds, priors, and constraints represented by the function inputs
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": "estimate ageconditional probabilities of delivery cancellation" }
→ finds "estimate_competing_delivery_risks"
gitrevio_capability_describe
{ "capability_id": "estimate_competing_delivery_risks" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "estimate_competing_delivery_risks", "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.
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.
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.
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.
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.
Calculate break even delivery date
Find the latest economically supported delivery period across coherent value, remaining-cost, recurring-contribution, operating-cost, value-decay, cost-growth and delay-cost scenarios; enforce expected NPV, positive-NPV probability and CVaR gates while keeping the economic deadline distinct from a completion forecast.