Optimize receivables intervention policy

Choose at most one evidence-backed action for each lawful aggregate receivable segment, propagate open/disputed payment and default mass period by period on coherent market/cash scenarios, and maximize expected collected-cash net value minus CVaR shortfall subject to intervention budget, capacity, relationship loss, liquidity and collection-probability gates, using exact enumeration or disclosed deterministic beam search.

What it's for

Allocates scarce collections capacity where it improves cash after cost, customer-relationship impact and downside—without turning Gitrevio into a person-level credit engine.

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
actions array of objects (10 fields) Evidence Yes
beam_width integer ≥ 1, ≤ 5000 Numerical control Optional
horizon_periods integer ≥ 1, ≤ 60 Your calibration Yes
intervention_budget number ≥ 0 Your calibration Yes
intervention_capacity_units number ≥ 0 Your calibration Yes
max_detail_rows integer ≥ 1, ≤ 500 Numerical control Optional
maximum_cvar_shortfall any Your calibration Optional
maximum_exact_policies integer ≥ 1, ≤ 1000000 Your calibration Optional
maximum_liquidity_breach_probability number ≥ 0, ≤ 1 Your calibration Optional
minimum_cash_buffer number Your calibration Optional
minimum_target_probability number ≥ 0, ≤ 1 Your calibration Optional
receivable_segments array of objects (8 fields) ≥ 2 items Evidence Yes
risk_aversion number ≥ 0 Your calibration Optional
scenarios array of objects (8 fields) ≥ 2 items Evidence Yes
starting_unrestricted_cash number ≥ 0 Your calibration Yes
tail_probability number > 0, ≤ 0.5 Your calibration Optional
target_collected_cash number ≥ 0 Your calibration Optional
terminal_net_value_floor number Your calibration Optional

Each actions record

Field Type Required
capacity_units_per_account number (≥ 0) Yes
cost_per_account number (≥ 0) Yes
default_probability_delta number (≥ -1, ≤ 1) Yes
dispute_probability_delta number (≥ -1, ≤ 1) Yes
eligible_states array of string (≥ 1 item) Yes
evidence_verified boolean Yes
fixed_cost number (≥ 0) Yes
id string (non-empty) Yes
payment_probability_delta number (≥ -1, ≤ 1) Yes
relationship_value_loss_per_account number (≥ 0) Yes
Example input
{
  "actions": [
    {
      "capacity_units_per_account": 0.1,
      "cost_per_account": 0.1,
      "default_probability_delta": 0,
      "dispute_probability_delta": 0,
      "eligible_states": [
        "open"
      ],
      "evidence_verified": true,
      "fixed_cost": 1,
      "id": "aggregate-reminder",
      "payment_probability_delta": 0.2,
      "relationship_value_loss_per_account": 0
    },
    {
      "capacity_units_per_account": 0.2,
      "cost_per_account": 0.2,
      "default_probability_delta": -0.05,
      "dispute_probability_delta": 0,
      "eligible_states": [
        "disputed"
      ],
      "evidence_verified": true,
      "fixed_cost": 1,
      "id": "aggregate-resolution",
      "payment_probability_delta": 0.3,
      "relationship_value_loss_per_account": 0.1
    }
  ],
  "horizon_periods": 3,
  "intervention_budget": 10,
  "intervention_capacity_units": 10,
  "receivable_segments": [
    {
      "account_count": 10,
      "base_default_probability": 0.05,
      "base_dispute_probability": 0.05,
      "base_payment_probability": 0.2,
      "evidence_verified": true,
      "face_amount": 100,
      "id": "open-segment",
      "state": "open"

Truncated for display — the full payload is 88 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.

Example output
{
  "decision": "receivables_intervention_policy_supported",
  "failed_gates": [],
  "guardrails": [
    "Policies operate only on lawful aggregate receivable segments, never named customers or inferred personal creditworthiness.",
    "Action effects require prospective validation; coercive, discriminatory or legally unavailable interventions are outside the action set.",
    "Exactness is finite-model exactness; beam search withholds global optimality and every policy requires finance/legal approval."
  ],
  "method": "aggregate_receivables_markov_multiple_choice_cvar_policy_search",
  "scenario_diagnostics": [
    {
      "collected_cash": 112.5394,
      "minimum_unrestricted_cash": 96,
      "probability": 0.7,
      "scenario_id": "base",
      "terminal_net_value": 108.0394
    },
    {
      "collected_cash": 96.6465,
      "minimum_unrestricted_cash": 96,
      "probability": 0.3,
      "scenario_id": "tight",
      "terminal_net_value": 92.1465
    }
  ],
  "selected_actions": [
    {
      "action_id": "aggregate-resolution",
      "segment_id": "disputed-segment",
      "state": "disputed"
    },
    {
      "action_id": "aggregate-reminder",
      "segment_id": "open-segment",
      "state": "open"
    }
  ],
  "solver": {
    "evaluated_policy_count": 4,
    "global_optimality_certificate": true,
    "method": "exact_enumeration",
    "policy_space_size": 4
  },
  "summary": {

Truncated for display — the full payload is 58 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. 1 Freeze aggregate receivable segments, base Markov transitions, executable state-eligible actions with prospectively validated transition effects and complete cost/capacity/relationship impact, plus common scenarios and finance risk gates.
  2. 2 Enumerate one passive-or-action choice per segment inside the exact boundary; otherwise build a deterministic beam and explicitly withhold global optimality.
  3. 3 Advance the entire portfolio chronologically by period in every scenario, applying fixed cash flow once per period, collecting full paid cash and governed default recovery, then calculate liquidity breach, collection target, net value and weighted CVaR before comparing with the all-passive policy.

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.
  • Segments are aggregate and lawful; transition probabilities and action deltas are stable and prospectively identified; the same action remains executable over the horizon; scenarios preserve dependence; costs, capacity, relationship loss, recovery and cash flows are complete and commensurable.
  • The recommendation is optimal only for its stated objective, feasible set, evidence, and solver guarantee; it is not a universal management optimum.
  • The result is an aggregate planning reference, never named-customer pressure, personal creditworthiness, legal advice or automated adverse action. Unverified actions are not selected; beam search has no global certificate.

Minimum evidence

  • receivable_segments: at least 2 rows/items
  • actions: required and organization-defined
  • scenarios: at least 2 rows/items
  • starting_unrestricted_cash: required and organization-defined
  • horizon_periods: required and organization-defined
  • intervention_budget: required and organization-defined
  • intervention_capacity_units: 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

  • governed aggregate segment snapshot joined to the same calibrated collection model and a prospective intervention-effect registry, excluding named-person or protected-trait data
  • segmentation lawfulness, base transition calibration, causal action-effect validity and durability, intervention executability/non-coercion, cost/capacity/relationship-loss perimeter, recovery, common scenarios, cash/liquidity, collection target, CVaR appetite, solver boundary and approval authority

Calibration workflow

  1. 1 Define the management decision, target outcome, aggregate unit, privacy boundary, cadence, and prediction/intervention horizon for this organization.
  2. 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. 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. 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. 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. 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": "choose at most one evidencebacked action" }
  → finds "optimize_receivables_intervention_policy"

gitrevio_capability_describe
  { "capability_id": "optimize_receivables_intervention_policy" }
  → returns the input schema and agent guidance shown on this page

gitrevio_capability_run
  { "capability_id": "optimize_receivables_intervention_policy", "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 order to cash bridge integrity

Reconcile the operational finance chain period by period: remaining performance obligation equals opening RPO plus bookings minus scope reductions and recognized revenue; signed net contract position equals opening position plus net billings minus revenue; accounts receivable equals opening AR plus net billings minus cash and write-offs; then enforce continuity, evidence and impossible-balance gates.

Statistical audit & measurement

Forecast receivables collection and liquidity

Forecast cash collection, disputes, defaults and minimum liquidity from right-censored receivable histories: fit empirical-Bayes categorical transition probabilities by lawful aggregate risk class, state and age; retain censored exposure; simulate every current aggregate receivable under shared market/cash scenarios; and abstain on unsupported states, unverified evidence or inadequate liquidity probability.

Forecasting & survival

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.

Constrained optimization

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.

Statistical audit & measurement

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.

Statistical audit & measurement

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.

Statistical audit & measurement

See every tool in Finance & unit economics →

Ready to See Your Engineering work clearly?

Request a free demo