Simulate dependency cascade risk
Stress-test correlated baseline failures and directed dependency cascades with portfolio loss VaR/CVaR and risk contributions.
What it's for
Stress-tests the case where failures are correlated and propagate along dependencies, rather than the comfortable case where each service fails on its own.
Turns deterministic blast radius into a probabilistic resilience stress test suitable for architecture and investor risk reviews.
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 |
|---|---|---|---|
| critical_loss_threshold | number ≥ 0 | Your calibration | Optional |
| edges | array of objects (3 fields) | Evidence | Yes |
| nodes | array of objects (5 fields) | Evidence | Yes |
| scenarios | array of objects (3 fields) | Evidence | Yes |
| seed | integer | Numerical control | Optional |
| simulations_per_scenario | integer ≥ 100 | Your calibration | Optional |
| systemic_correlation | number ≥ 0, ≤ 0.95 | Your calibration | Optional |
Each nodes
record
| Field | Type | Required |
|---|---|---|
| baseline_failure_probability | number (≥ 0, ≤ 1) | Yes |
| direct_impact | number (≥ 0) | Yes |
| id | string (non-empty) | Yes |
| loss_per_recovery_day | number (≥ 0) | Optional |
| recovery_days | number (≥ 0) | Yes |
{
"critical_loss_threshold": 300000,
"edges": [
{
"from_node": "identity",
"to_node": "api",
"transmission_probability": 0.7
},
{
"from_node": "api",
"to_node": "checkout",
"transmission_probability": 0.6
}
],
"nodes": [
{
"baseline_failure_probability": 0.01,
"direct_impact": 100000,
"id": "identity",
"loss_per_recovery_day": 20000,
"recovery_days": 1
},
{
"baseline_failure_probability": 0.02,
"direct_impact": 80000,
"id": "api",
"loss_per_recovery_day": 30000,
"recovery_days": 0.5
},
{
"baseline_failure_probability": 0.01,
"direct_impact": 250000,
"id": "checkout",
"loss_per_recovery_day": 50000,
"recovery_days": 1
}
],
"scenarios": [
{
"id": "baseline",
"initial_shocks": [],
"probability": 0.9
},
{ Truncated for display — the full payload is 58 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.
{
"critical_loss_threshold": 300000,
"method": "correlated_dependency_cascade_mc_v1",
"model": {
"baseline_dependence": "one_factor_gaussian_copula",
"propagation": "directed_independent_cascade",
"simulations_per_scenario": 100,
"systemic_correlation": 0.15
},
"node_risk_contributions": [
{
"cascade_failure_probability": 0.052,
"expected_loss_contribution": 21900,
"failure_probability": 0.073,
"node_id": "checkout"
},
{
"cascade_failure_probability": 0,
"expected_loss_contribution": 12000,
"failure_probability": 0.1,
"node_id": "identity"
},
{
"cascade_failure_probability": 0.07,
"expected_loss_contribution": 7695,
"failure_probability": 0.081,
"node_id": "api"
}
],
"portfolio_loss": {
"cvar_95": 495363.64,
"expected": 41595,
"p50": 0,
"var_95": 395000
},
"probability_critical_loss": 0.073,
"scenarios": [
{
"failed_nodes": {
"mean": 0.04,
"p50": 0,
"p95": 0
},
"loss": { Truncated for display — the full payload is 83 lines.
How it works
Network & dependency analysis — Trace how load, failure and knowledge propagate through a graph of teams, services or components.
- 1 Stress-test correlated baseline failures and directed dependency cascades with portfolio loss VaR/CVaR and risk contributions.
- 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
- Nodes, edges, direction, time window, missing-link policy, and aggregation boundary represent the coordination or dependency mechanism of interest.
- Structural centrality, fragility, or clustering describes a modeled graph and must not be interpreted as intent, guilt, or personal value.
Minimum evidence
- nodes: required and organization-defined
- edges: required and organization-defined
- scenarios: required and organization-defined
How to validate it
Validate on held-out periods or aggregate units, perturb edge definitions and missing links, and report sensitivity to graph construction before using structural rankings.
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": "stresstest correlated baseline failures and directed" }
→ finds "simulate_dependency_cascade_risk"
gitrevio_capability_describe
{ "capability_id": "simulate_dependency_cascade_risk" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "simulate_dependency_cascade_risk", "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
Fit incident hawkes process
Estimate incident aftershock dynamics with a stationary exponential Hawkes process and conditionally simulate near-term incident counts.
Optimize global review assignment
Assign an entire review portfolio globally under expertise, conflict, capacity, urgency, quality, independence, and load-balance constraints.
Aggregate risk register copula
Aggregate risk-register occurrence and lognormal severity marginals through a validated Gaussian copula into expected loss, VaR, CVaR, dependence amplification, and tail shares.
Allocate restless bandit interventions
Allocate scarce recurring interventions across evolving Markov units with Whittle indices, explicit indexability checks, and paired policy simulation.
Attribute commercial dependency tail loss
Calculate expected loss, VaR and CVaR for commercial value concentrated in shared technical components, then allocate every modeled tail-loss dollar exactly once across components with normalized negative-log survival hazard rather than overlapping leave-one-out sensitivities.
Audit commercial resilience claim integrity
Audit resilience ROI claims against a unique commercial-source to technical-component graph: recompute each action's avoided loss under joint failure scenarios, cap support at graph-derived value, detect duplicate effects, probability drift and weak evidence, and prevent overlapping component benefits from being sold twice.