Optimize finops commitment portfolio distributionally robust
Select a complete FinOps commitment portfolio that minimizes worst-case expected cost when scenario probabilities may move within a governed total-variation ambiguity radius.
What it's for
Chooses cloud commitments that remain economical when the demand forecast's probabilities are wrong within a tested range, with the robustness premium visible.
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 |
|---|---|---|---|
| max_detail_rows | integer ≥ 1, ≤ 500 | Numerical control | Optional |
| maximum_upfront_commitment | any | Your calibration | Optional |
| maximum_worst_case_cost | any | Your calibration | Optional |
| portfolios | array of objects (3 fields) | Evidence | Yes |
| scenario_probabilities | array of number ≥ 2 items | Evidence | Yes |
| total_variation_radius | number ≥ 0, ≤ 1 | Your calibration | Optional |
Each portfolios
record
| Field | Type | Required |
|---|---|---|
| id | string (non-empty) | Yes |
| scenario_costs | array of number (≥ 2 items) | Yes |
| upfront_commitment | number (≥ 0) | Yes |
{
"maximum_upfront_commitment": 250,
"portfolios": [
{
"id": "flexible",
"scenario_costs": [
180,
220,
300
],
"upfront_commitment": 50
},
{
"id": "balanced",
"scenario_costs": [
150,
180,
260
],
"upfront_commitment": 150
},
{
"id": "committed",
"scenario_costs": [
120,
160,
400
],
"upfront_commitment": 300
}
],
"scenario_probabilities": [
0.2,
0.6,
0.2
],
"total_variation_radius": 0.1
} 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": [
"Each row is a complete feasible commitment portfolio over the same cost unit, horizon, demand scenarios, contract eligibility, migration assumptions, and operational constraints.",
"The total-variation radius is a governed probability-ambiguity budget validated against forecast error; it moves probability only among represented scenarios.",
"Distributional robustness cannot protect against omitted demand regimes, provider failure, unusable commitments, contract changes, or cost categories absent from every scenario."
],
"configuration": {
"maximum_upfront_commitment": 250,
"maximum_worst_case_cost": null,
"scenario_count": 3,
"total_variation_radius": 0.1
},
"decision": "distributionally_robust_finops_portfolio_supported",
"method": "finops_total_variation_distributionally_robust_selection_v1",
"portfolio_diagnostics": [
{
"ambiguity_cost_premium": 11,
"feasible": true,
"largest_probability_shifts": [
{
"nominal_probability": 0.2,
"probability_change": 0.1,
"scenario_index": 2,
"worst_case_probability": 0.3
},
{
"nominal_probability": 0.2,
"probability_change": -0.1,
"scenario_index": 0,
"worst_case_probability": 0.1
}
],
"nominal_expected_cost": 190,
"portfolio_id": "balanced",
"truncated_probability_shift_count": 0,
"upfront_commitment": 150,
"worst_case_expected_cost": 201
},
{
"ambiguity_cost_premium": 12,
"feasible": true,
"largest_probability_shifts": [
{
"nominal_probability": 0.2, Truncated for display — the full payload is 96 lines.
How it works
Constrained optimization — Pick the best feasible option under real limits — budget, headcount, dependencies, capacity — rather than ranking a list and hoping it fits.
- 1 Freeze complete feasible commitment portfolios, aligned total-cost scenarios, nominal probabilities, contract/technical constraints, and an out-of-time calibrated probability-ambiguity radius.
- 2 For each portfolio reallocate probability mass from low- to high-cost represented scenarios within the exact total-variation budget to calculate worst-case expected cost.
- 3 Enforce upfront and worst-cost constraints, compare robust and nominal choices, disclose the ambiguity premium and adversarial weights, and stress omitted demand regimes separately.
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
- Objectives use commensurable locally governed value units, constraints reflect real feasibility, and uncertainty covers plausible adverse inputs.
- Every row is a complete feasible comparable portfolio and the scenario set contains all material demand, migration, provider, workload-eligibility, and contract states.
- The recommendation is optimal only for its stated objective, feasible set, evidence, and solver guarantee; it is not a universal management optimum.
- Total-variation robustness only changes weights among supplied scenarios; it offers no protection against an omitted regime or infeasible/legally unusable commitment.
Minimum evidence
- portfolios: required and organization-defined
- scenario_probabilities: at least 2 rows/items
How to validate it
Backtest the chosen action against simple feasible baselines on held-out scenarios, sweep costs/constraints/risk tolerance, and require constraint feasibility under adverse inputs.
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
- complete feasible commitment portfolios by aligned total-cost demand scenario plus nominal scenario probabilities
- portfolio completeness, contract feasibility, cost perimeter, scenario envelope, nominal probabilities, out-of-time probability-error radius, upfront capacity, worst-cost tolerance, horizon, and currency
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": "select a complete finops commitment portfolio" }
→ finds "optimize_finops_commitment_portfolio_distributionally_robust"
gitrevio_capability_describe
{ "capability_id": "optimize_finops_commitment_portfolio_distributionally_robust" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "optimize_finops_commitment_portfolio_distributionally_robust", "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
Decompose product margin change
Decompose product operating-profit and margin change across volume, price, variable unit cost, and fixed cost using an order-invariant exact Shapley bridge.
Forecast cloud cost commitment exposure
Forecast cloud commitment waste, uncovered on-demand cost, savings distribution, probability of negative savings, and CVaR loss over aligned demand paths.
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.