Guarantee reference

Guarantee reference

Every CLI answer includes a guarantee object, the guarantee card. This page is the canonical reference for what each field means and what it does — and does not — promise. In the SDK the card is answer.guarantee, a frozen Guarantee dataclass.

Schema

A card as the hosted service serves it, for a Set answer:

{
  "type": "coverage",
  "method": "APS",
  "alpha": 0.10,
  "calibration_profile": "support-routing-v3",
  "calibration_n": 1204,
  "coverage_ci": [0.886, 0.914],
  "profile_version": 3,
  "last_audited": "2026-09-18T10:02:14.301Z",
  "stats_version": "cci-sdk/0.1.1+hosted.1"
}

Only the fields that apply to a given guarantee type are present.

FieldGuarantee attributeMeaning
typetypeWhich statement is being made (below).
methodmethodThe procedure that produced it.
alphaalphaMiscoverage or violation level.
deltadeltaFailure probability over the calibration draw (risk_high_probability, per-request fdr, cost_budget).
targettargetRisk or FDR bound (risk, risk_high_probability, fdr).
target_centstarget_centsCost bound (cost_budget).
realized_upper_boundrealized_upper_boundWhen present, the bound the calibration achieved at the selected threshold. For cost_budget, an upper confidence bound on the share of requests over budget.
statementstatementThe guarantee in words, as the engine phrased it for this answer. A heuristic card’s statement starts with No guarantee: and gives the reason.
calibration_profilecalibration_profileThe profile that backs it.
calibration_ncalibration_nLabelled examples behind the threshold (for a Mondrian answer, in this group).
coverage_cicoverage_ciInterval for realized coverage given that calibration set (a tuple in the SDK).
groupextra["group"]The Mondrian group whose threshold was used, when it was group-conditional.
profile_versionextra["profile_version"]The profile version that served the answer.
last_auditedlast_auditedTime of the last audit of that version; absent when that version has not been audited.
stats_versionstats_versionThe statistics engine: cci-sdk/0.1.1+hosted.1 on the hosted service, cli-local/0.1 in local mode.
any other keyextraPreserved in a dict.

Two helpers read the card: guarantee.is_heuristic (also on every answer as answer.is_heuristic) and guarantee.describe(), which returns a one-line plain-language statement: the card’s own statement when it has one, otherwise a sentence built from its fields.

card = result.answers["department"].guarantee
print(card.describe())
# Contains the correct answer at least 90% of the time on profile 'support-routing-v3' (n=1204).

Methods by primitive

PrimitiveCard typemethod
SetcoverageLAC, APS (default) or RAPS
Intervalcoverageordinal-aps (default) or CQR
BeliefcalibrationIVAP; CVAP answers are heuristic
Gate, guarantee="risk"riskCRC
Gate, guarantee="risk_high_probability"risk_high_probabilityRCPS
Gate, guarantee="fdr"fdrLTT-selective per request; conformal-selection-BH for a local-mode batch
Claimcoverageconformal-factuality
Judgerisk_high_probabilitytrust-or-escalate
Route, guarantee="cost_budget"cost_budgetcalibrated-cascade
Route, guarantee="accuracy"riskconformal-cascade
Drift monitorsanytimee-process

Guarantee types, precisely

Every guarantee below is marginal or group-conditional over data exchangeable with the named calibration profile. None of them is a statement about any one specific decision in isolation — see Exchangeability.

coverage

“The returned set or interval contains the correct answer at least 1−α1-\alpha of the time, averaged over exchangeable data.” Produced by Set and Interval. The upper bound is 1−α+1n+11-\alpha+\frac{1}{n+1} when scores have no ties.

Claim also produces a coverage card, with method conformal-factuality: with probability at least 1−α1-\alpha, every retained claim is supported. The statement is about the whole retained set of one answer, averaged over exchangeable question and answer pairs.

calibration

Produced by Belief with method IVAP, and no alpha. It states Venn-Abers validity: of the pair [p0,p1][p_0, p_1], the probability computed under the true label is calibrated on data exchangeable with the profile. It is not a coverage statement and not a 1−α1-\alpha interval for one item’s “true probability” (see Venn-Abers calibration). IVAP has this finite-sample property. CVAP averages several IVAP folds, which is usually sharper in practice but has no finite-sample validity guarantee, so CVAP answers are labelled heuristic with method CVAP.

risk

“The expected value of a stated loss is at most target.” Produced by Gate in "risk" mode (0/1 loss: a decision that is auto-approved and wrong) and by Route in "accuracy" mode (loss 1 when the served answer is wrong; target equals alpha). This is a statement about an expectation over the calibration draw and the test point, not a high-probability bound.

risk_high_probability

“With probability at least 1−δ1-\delta over the draw of the calibration set, the risk of the deployed threshold is at most target.” Strictly stronger than risk, and the form most audit and compliance processes want. Produced by Gate in "risk_high_probability" mode and by Judge, whose card states human agreement on non-escalated verdicts with target equal to alpha and delta 0.10.

fdr

“Among the decisions the gate auto-approves, the fraction that are wrong is at most target.” A statement about the population of approved decisions, not about any one of them. Produced by Gate in "fdr" mode, in two forms:

  • One decision per request (method LTT-selective, with delta, 0.10 when you do not set it): with confidence 1−δ1-\delta over the calibration draw, the error rate among approved decisions is at most target (a selective Learn-then-Test bound). describe() prints the “With … confidence” form. This is the form evaluate serves.
  • A batch decided together (local mode’s gate_batch, method conformal-selection-BH, or e-BH in the offline engine, no delta): the expected fraction of approved items that are wrong is at most target.

anytime

“This monitor’s false-alarm rate is controlled at δ\delta no matter when, or how often, it is checked.” A property of drift monitors, never of a per-call query; a monitor’s Alert carries its e_value and false_alarm_rate.

cost_budget

“With confidence 1−δ1-\delta over the calibration draw, P(cost per request≤target_cents)≥1−αP(\text{cost per request} \le \text{target\_cents}) \ge 1-\alpha.” Produced by Route. The escalation threshold is chosen by fixed-sequence testing with exact binomial tests over a 101-point grid of thresholds, so the δ\delta (0.10) covers the whole search. Up to an α\alpha fraction of requests can exceed the budget, and the cost of a trailing human_queue stage counts toward it. realized_upper_bound is the upper confidence bound on the share of calibration requests over budget at the chosen threshold; the card’s statement names the threshold.

heuristic

Reserved for any value CLI returns that does not carry one of the above guarantees — for example, an answer served against a profile with too few calibration examples, a profile that is still calibrating, or a strict profile that saw a different backend. A heuristic answer is always labelled as such, and its statement says why. The SDK also treats as heuristic any answer whose card is missing or has a type it does not recognize, so nothing is ever mistaken for a proven statement. See Errors and retries for how to refuse heuristic answers outright.

Reading calibration_n and coverage_ci

calibration_n is the number of labelled examples backing the current threshold. coverage_ci is the interval for realized coverage implied by that sample size (see Calibration profiles: sizing). Read it as “how far the actual coverage of this particular calibration could plausibly sit from the target, given how much data it was calibrated on”, not as an estimate that the guarantee itself might be wrong: the guarantee is the average over calibration draws, and coverage_ci describes how realized coverage varies from one calibration draw to another at this nn.

Tracing a card back

calibration_profile and profile_version identify the exact calibration that produced an answer, and last_audited says whether that version has been audited. Together with the response’s request_id, they let you open the request’s trace in the dashboard, the profile’s history (GET /v1/calibration-profiles/{name}/events), and its audits (GET /v1/calibration-profiles/{name}/audits).