Build reverse stress scenarios
Solve the minimum standardized bounded combination of adverse driver shocks needed to breach a governed operating or financial threshold, with driver contributions, binding bounds, and single-driver break points.
What it's for
Lets boards and investors ask what smallest combination of demand, cost, delivery, reliability, or financing shocks would break a critical requirement—before ordinary forecasts show distress.
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 |
|---|---|---|---|
| base_outcome | number | Your calibration | Yes |
| drivers | array of objects (4 fields) | Evidence | Yes |
| failure_threshold | number | Your calibration | Yes |
| max_detail_rows | integer ≥ 1, ≤ 500 | Numerical control | Optional |
| maximum_plausible_standardized_distance | number ≥ 0, ≤ 100 | Your calibration | Optional |
Each drivers
record
| Field | Type | Required |
|---|---|---|
| adverse_outcome_change_per_unit | number (> 0) | Yes |
| id | string (non-empty) | Yes |
| maximum_adverse_shock | number (≥ 0) | Yes |
| shock_scale | number (> 0) | Yes |
{
"base_outcome": 100,
"drivers": [
{
"adverse_outcome_change_per_unit": 2,
"id": "demand-loss",
"maximum_adverse_shock": 15,
"shock_scale": 5
},
{
"adverse_outcome_change_per_unit": 1,
"id": "cost-inflation",
"maximum_adverse_shock": 20,
"shock_scale": 8
},
{
"adverse_outcome_change_per_unit": 3,
"id": "delivery-delay",
"maximum_adverse_shock": 6,
"shock_scale": 2
}
],
"failure_threshold": 70,
"maximum_plausible_standardized_distance": 3
} 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": [
"Adverse effects are locally linear and additive within stated bounds, with scale defining standardized shock distance.",
"The minimum-distance scenario is an optimization result, not a probability forecast or prediction that drivers will move together.",
"Owners must separately test nonlinearities, feedback, dependence, omitted drivers, and multiple failure modes."
],
"decision": "failure_within_governed_plausibility_envelope",
"driver_diagnostics": [
{
"adverse_shock": 7.5,
"bound_binding": false,
"driver_id": "demand-loss",
"maximum_adverse_shock": 15,
"outcome_loss_contribution": 15,
"share_of_required_loss": 0.5,
"shock_in_scale_units": 1.5,
"single_driver_shock_to_failure": 15
},
{
"adverse_shock": 9.6,
"bound_binding": false,
"driver_id": "cost-inflation",
"maximum_adverse_shock": 20,
"outcome_loss_contribution": 9.6,
"share_of_required_loss": 0.32,
"shock_in_scale_units": 1.2,
"single_driver_shock_to_failure": null
},
{
"adverse_shock": 1.8,
"bound_binding": false,
"driver_id": "delivery-delay",
"maximum_adverse_shock": 6,
"outcome_loss_contribution": 5.4,
"share_of_required_loss": 0.18,
"shock_in_scale_units": 0.9,
"single_driver_shock_to_failure": null
}
],
"method": "bounded_l2_reverse_stress_v1",
"summary": {
"achieved_outcome_loss": 30,
"base_outcome": 100,
"binding_driver_count": 0, Truncated for display — the full payload is 52 lines.
How it works
Decision analysis — Turn uncertainty, cost and risk appetite into a defensible choice, with the reasoning left inspectable.
- 1 Freeze the base outcome, failure threshold, locally adverse driver sensitivities, maximum shocks, scale units, and plausibility distance before optimization.
- 2 Check whether maximum bounded shocks can reach failure, then solve the convex weighted-L2 reverse-stress problem by capped KKT water filling and verify the stressed outcome hits the threshold.
- 3 Expose the minimum joint shock, driver loss contributions, binding limits and single-driver breakpoints, labeling distance as geometry rather than probability.
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
- Actions, outcomes, utilities, evidence boundaries, uncertainty representation, and accountable ownership match the actual decision.
- Local adverse effects are additive and linear within each bound, scale units are meaningful, and the driver set covers material nonlinear, feedback, common-shock, and omitted-variable mechanisms separately.
- The result structures a governed choice; it does not replace accountable judgment or authorize action outside the declared decision boundary.
- The minimum-distance scenario is neither a forecast nor a probability; unreachable means only that the encoded bounded linear envelope cannot reach failure.
Minimum evidence
- base_outcome: required and organization-defined
- failure_threshold: required and organization-defined
- drivers: required and organization-defined
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
- locally validated adverse driver sensitivities, maximum shock bounds, and standardizing scale units
- failure definition, operating point, driver set, sensitivity model, bounds, scales, plausibility distance, and nonlinear follow-up policy
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": "solve the minimum standardized bounded combination" }
→ finds "build_reverse_stress_scenarios"
gitrevio_capability_describe
{ "capability_id": "build_reverse_stress_scenarios" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "build_reverse_stress_scenarios", "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 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 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 ROI denominator integrity
Reconcile each claimed ROI investment denominator with evidenced cost entries, required categories, inclusion fractions, and shared evidence identity, then recompute ROI before a business case reaches prioritization.
Calculate capital efficiency frontier
Construct a monotone concave capital-to-realized-value envelope, estimate each initiative or portfolio company's relative capital efficiency and value gap, and expose diminishing frontier returns without arbitrary weights.
Calculate engineering unit economics
Calculate uncertainty-aware engineering cost and net incremental contribution per adopted business outcome across aligned scenarios, including quality/run cost and downside-margin probability.
Estimate liquidity at risk
Estimate liquidity-at-risk, tail funding need, committed-facility exhaustion probability, and residual unfunded shortfall from aligned operating paths.