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.
What it's for
Lets leadership choose which promises and terms the company can afford to make after delivery capacity, penalty exposure, liquidity and relationship value are considered together.
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 |
|---|---|---|---|
| beam_width | integer ≥ 1, ≤ 10000 | Numerical control | Optional |
| capacity_by_period | array of number ≥ 1 item | Evidence | Yes |
| commercial_opportunities | array of objects (2 fields) ≥ 1 item | Evidence | Yes |
| current_unrestricted_cash | number | Your calibration | Yes |
| cvar_tail_probability | number > 0, ≤ 0.5 | Your calibration | Optional |
| delivery_budget | number ≥ 0 | Your calibration | Yes |
| exact_enumeration_limit | integer ≥ 1, ≤ 10000000 | Your calibration | Optional |
| max_detail_rows | integer ≥ 1, ≤ 500 | Numerical control | Optional |
| maximum_cvar_shortfall | any | Your calibration | Optional |
| maximum_expected_penalty | any | Your calibration | Optional |
| maximum_liquidity_breach_probability | number ≥ 0, ≤ 1 | Your calibration | Optional |
| minimum_acceptance_cash | number ≥ 0 | Your calibration | Optional |
| minimum_acceptance_cash_probability | number ≥ 0, ≤ 1 | Your calibration | Optional |
| minimum_terminal_net_value | number | Your calibration | Optional |
| minimum_unrestricted_cash | number | Your calibration | Yes |
| risk_aversion | number ≥ 0 | Your calibration | Optional |
| scenarios | array of objects (4 fields) ≥ 1 item | Evidence | Yes |
| term_options | array of objects (10 fields) ≥ 1 item | Evidence | Yes |
Each term_options
record
| Field | Type | Required |
|---|---|---|
| capacity_units_by_period | array of number (≥ 1 item) | Yes |
| cash_on_acceptance | number (≥ 0) | Yes |
| evidence_verified | boolean | Yes |
| id | string (non-empty) | Yes |
| maximum_penalty | number (≥ 0) | Yes |
| opportunity_id | string (non-empty) | Yes |
| penalty_per_late_period | number (≥ 0) | Yes |
| promised_delivery_period | integer (≥ 1, ≤ 60) | Yes |
| scenario_outcomes | array of objects (4 fields) (≥ 1 item) | Yes |
| upfront_cash | number (≥ 0) | Yes |
{
"capacity_by_period": [
10,
10,
10
],
"commercial_opportunities": [
{
"evidence_verified": true,
"id": "opportunity-1"
}
],
"current_unrestricted_cash": 100,
"delivery_budget": 100,
"minimum_unrestricted_cash": 0,
"scenarios": [
{
"evidence_verified": true,
"fixed_cash_flow_by_period": [
0,
0,
0
],
"id": "base",
"probability": 0.7
},
{
"evidence_verified": true,
"fixed_cash_flow_by_period": [
-1,
-1,
-1
],
"id": "stress",
"probability": 0.3
}
],
"term_options": [
{
"capacity_units_by_period": [
1,
1,
0
], Truncated for display — the full payload is 77 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.
{
"capacity": {
"available_by_period": [
10,
10,
10
],
"used_by_period": [
1,
1,
0
]
},
"constraints": {
"failed": [],
"feasible_policy_found": true
},
"decision": "commercial_commitment_portfolio_supported",
"guardrails": [
"Options must be executable legal/commercial packages reviewed by accountable owners; the engine does not draft or accept contracts.",
"Delivery scenarios and costs must be prospective and point-in-time; hindsight outcomes or LLM-invented estimates are prohibited.",
"Declining an opportunity is always explicit, and no customer or worker is scored at person level.",
"Only exact enumeration certifies the global optimum over supplied packages; beam output remains uncertified."
],
"method": "commercial_multiple_choice_capacity_liquidity_cvar_term_portfolio",
"scenario_diagnostics": [
{
"acceptance_cash": 100,
"contractual_penalty": 0,
"minimum_unrestricted_cash": 100,
"probability": 0.7,
"scenario_id": "base",
"terminal_net_value": 126
},
{
"acceptance_cash": 0,
"contractual_penalty": 20,
"minimum_unrestricted_cash": 78,
"probability": 0.3,
"scenario_id": "stress",
"terminal_net_value": -19
}
],
"search": { Truncated for display — the full payload is 69 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 each opportunity and its legally/commercially executable term options, with promised date, deposit, acceptance cash, penalty schedule, capacity path and point-in-time scenario-specific delivery period, cost and relationship value.
- 2 Precompute option/scenario cash, cost, penalty, acceptance and relationship outcomes; combine one decline-or-option choice per opportunity while charging shared fixed cash once and enforcing capacity in every period.
- 3 Filter on budget, expected penalty, liquidity, acceptance-cash and CVaR gates, maximize expected terminal net value minus tail-risk penalty, and disclose exact enumeration or deterministic beam search without a false certificate.
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.
- Options are genuine executable packages; scenario outcomes share one currency, horizon and common-shock law; delivery costs and capacity are complete; relationship value is governed and non-duplicative; penalties reflect reviewed contractual mechanics; declining remains feasible.
- The recommendation is optimal only for its stated objective, feasible set, evidence, and solver guarantee; it is not a universal management optimum.
- The engine does not draft, negotiate, sign or reject a contract and does not score a named customer or worker. Scenario effects must be prospective; exact enumeration alone certifies the supplied discrete optimum.
Minimum evidence
- commercial_opportunities: at least 1 rows/items
- term_options: at least 1 rows/items
- scenarios: at least 1 rows/items
- capacity_by_period: at least 1 rows/items
- current_unrestricted_cash: required and organization-defined
- minimum_unrestricted_cash: required and organization-defined
- delivery_budget: required and organization-defined
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
- versioned prospective commercial option registry joined to a finance-reconciled common delivery/cash scenario set and period capacity plan, retaining each declined opportunity and excluding person-level sales or customer scoring
- term executability and legal review, opportunity/option boundaries, currency/horizon, delivery and cost scenario calibration, capacity completeness, relationship-value definition, penalty and acceptance mechanics, liquidity and risk appetite, solver boundary and human negotiation/signature authority
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 decline or one executable contractterm" }
→ finds "optimize_commercial_commitment_portfolio"
gitrevio_capability_describe
{ "capability_id": "optimize_commercial_commitment_portfolio" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "optimize_commercial_commitment_portfolio", "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.
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.
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.