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.
| Field | Guarantee attribute | Meaning |
|---|---|---|
type | type | Which statement is being made (below). |
method | method | The procedure that produced it. |
alpha | alpha | Miscoverage or violation level. |
delta | delta | Failure probability over the calibration draw (risk_high_probability, per-request fdr, cost_budget). |
target | target | Risk or FDR bound (risk, risk_high_probability, fdr). |
target_cents | target_cents | Cost bound (cost_budget). |
realized_upper_bound | realized_upper_bound | When present, the bound the calibration achieved at the selected threshold. For cost_budget, an upper confidence bound on the share of requests over budget. |
statement | statement | The 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_profile | calibration_profile | The profile that backs it. |
calibration_n | calibration_n | Labelled examples behind the threshold (for a Mondrian answer, in this group). |
coverage_ci | coverage_ci | Interval for realized coverage given that calibration set (a tuple in the SDK). |
group | extra["group"] | The Mondrian group whose threshold was used, when it was group-conditional. |
profile_version | extra["profile_version"] | The profile version that served the answer. |
last_audited | last_audited | Time of the last audit of that version; absent when that version has not been audited. |
stats_version | stats_version | The statistics engine: cci-sdk/0.1.1+hosted.1 on the hosted service, cli-local/0.1 in local mode. |
| any other key | extra | Preserved 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
| Primitive | Card type | method |
|---|---|---|
Set | coverage | LAC, APS (default) or RAPS |
Interval | coverage | ordinal-aps (default) or CQR |
Belief | calibration | IVAP; CVAP answers are heuristic |
Gate, guarantee="risk" | risk | CRC |
Gate, guarantee="risk_high_probability" | risk_high_probability | RCPS |
Gate, guarantee="fdr" | fdr | LTT-selective per request; conformal-selection-BH for a local-mode batch |
Claim | coverage | conformal-factuality |
Judge | risk_high_probability | trust-or-escalate |
Route, guarantee="cost_budget" | cost_budget | calibrated-cascade |
Route, guarantee="accuracy" | risk | conformal-cascade |
| Drift monitors | anytime | e-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
of the time, averaged over exchangeable data.” Produced by Set
and Interval. The upper bound is when scores
have no ties.
Claim also produces a coverage card, with method
conformal-factuality: with probability at least , 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 , the probability
computed under the true label is calibrated on data exchangeable with the
profile. It is not a coverage statement and not a 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 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, withdelta, 0.10 when you do not set it): with confidence over the calibration draw, the error rate among approved decisions is at mosttarget(a selective Learn-then-Test bound).describe()prints the “With … confidence” form. This is the formevaluateserves. - A batch decided together (local mode’s
gate_batch, methodconformal-selection-BH, ore-BHin the offline engine, nodelta): the expected fraction of approved items that are wrong is at mosttarget.
anytime
“This monitor’s false-alarm rate is controlled at 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 over the calibration draw,
.”
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 (0.10) covers the whole search. Up to an 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 .
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).