Guides
Clustered cases
Most interval arithmetic assumes every case is independent of every other. Three turns of one conversation are not: when the conversation goes wrong, all three tend to. A suite that treats them as independent reports an interval narrower than the evidence supports, and a gate can pass on it.
Declaring a cluster
A case names its cluster with group_id, at the top level of the row beside id:
{"id": "conv00_t0", "group_id": "conv00", "input": {"question": "Conversation 0 turn 0: refund please (garbled)"}, "expected": {"label": "refund"}}
{"id": "conv00_t1", "group_id": "conv00", "input": {"question": "Conversation 0 turn 1: where is my order (garbled)"}, "expected": {"label": "other"}}
{"id": "conv00_t2", "group_id": "conv00", "input": {"question": "Conversation 0 turn 2: refund please (garbled)"}, "expected": {"label": "refund"}}Once any case declares one, the whole suite is analysed by cluster. There is no per-metric switch back: treating grouped cases as independent is the unsafe direction, so it is not offered.
What changes
The same 108 turns from 36 conversations, one conversation in six garbled from its first turn to its last. Without group_id:
│ exact_label │ 83.3% │ [74.9%, 89.9%] │ 90 / 108 observed · 0 missing · 0 excluded │With it:
│ exact_label │ 83.3% │ [65.2%, 94.6%] │ 90 / 108 observed · 0 missing · 0 excluded · 36 clusters · approximate │The estimate is identical. The interval is about twice as wide, because the suite holds 36 independent observations rather than 108. Against a floor of 0.70, with the opt-in described below, the first run passes and the second does not:
label-floor: PASS (lower_bound_meets_minimum)label-floor: INSUFFICIENT_EVIDENCE (interval_overlaps_threshold)The second answer is the right one for this data.
The opt-in
The clustered interval is a studentized cluster bootstrap. It is an approximate method, and a policy has to say it accepts one before a rule may decide on it. Without that, the same grouped run reads:
label-floor: MANUAL_REVIEW (approximate_method_not_permitted)and exits 4. To let the rule decide, add this to release.yaml:
allow_approximate_methods: trueTwo more settings bound what the method is trusted with.
| Setting | Default | What it does |
|---|---|---|
| min_clusters | 20 | Fewer clusters than this and a rule reads INSUFFICIENT_EVIDENCE with insufficient_clusters. It may be lowered to 10 and no further. |
| max_missing_fraction | none | Set on a rule. A clustered interval cannot bound missing cases the way an independent one does, so a clustered rule over a metric with any missing case reads missingness_unbounded until the rule states how much missingness it accepts. |
A policy that sets min_clusters: 5 is refused before anything is decided:
Configuration error: p5.yaml: min_clusters: Input should be greater than or equal to 10The same conversations with one of them erroring on every turn:
│ exact_label │ 82.9% │ [64.3%, 94.5%] │ 87 / 105 observed · 3 missing · 0 excluded · 35 clusters · approximate │label-floor: INSUFFICIENT_EVIDENCE (missingness_unbounded)A rule that states the missingness it accepts:
rules:
- id: label-floor
metric: exact_label
min: 0.60
max_missing_fraction: 0.15label-floor: PASS (lower_bound_meets_minimum)Stating a fraction records an assumption: that the missing cases are missing at random. The decision is only as good as that assumption, which is why the engine will not make it for you.
What a clustered suite cannot do yet
Only pass/fail rates have a clustered interval. On a suite that declares group_id:
- a mean, a quantile or a ranking metric has no interval, and a rule on one reads MANUAL_REVIEW with unsupported_dependence_structure;
- with replicates: above 1, no metric has an interval, pass/fail rates included, because the two dependence structures compose and nothing models both;
- a comparison of two runs has no interval for any metric.
A latency quantile on the grouped suite:
│ latency_p50 │ 1.365 ms │ no interval: unsupported_dependence_structure │ p50 of 108 observed · 0 missing · 0 excluded │The last limitation matters most. Comparing two runs of the conversation suite, the candidate fixing every garbled conversation:
oloproof compare latest latest~1 --policy compare.yamlComparison sha256:ed7820e6471f70ce2b5e16ba618fdd48ea92a5ed39d23cce0b719ab31fcb16af of run_01M3C43MWTH8127R7S5M4N9DQ9 against run_01M3C43J2DVM93EWWWRBMRW22E · 108 paired cases
exact_label: +16.7 points · 108 paired · 0 missing · 0 excluded
no interval: unsupported_dependence_structure
Decisions
no-regression exact_label non-inferiority, margin 5.0 points MANUAL_REVIEW unsupported_dependence_structure
Gate: BLOCK (exit 4)No paired procedure for clustered suites has passed its validation grid, so the comparison reports the difference and asks a person rather than decide approximately. MANUAL_REVIEW rather than INSUFFICIENT_EVIDENCE, because more cases of the same kind would not fix it.
Cases ordered in time
Some suites are not clusters but a sequence: a forecast scored on each of sixty consecutive days, say. Neighbouring days move together, so treating them as independent gives an interval that is too narrow, and nothing in the rows tells the engine. Declare the order with time_order on every row, a string or an integer beside id:
{"id": "2026-08-01", "time_order": "2026-08-01", "input": {"day": "2026-08-01"}}To decide on such a suite, declare a lag in oloproof.yaml: the number of steps beyond which cases no longer influence each other. The claim is strong: any two sets of cases whose positions are all more than the lag apart are independent of each other, not only each pair of cases.
time_lag: 3With a lag, a pass rate rule is decided on an exact interval over the interleaved sets the lag makes (cases 1, 5, 9, ... are one set at lag 3), each read at a stricter level; the run and its page in the workbench say how many sets and how many cases each, oloproof check says it before anything runs, and oloproof plan says whether a rule can be decided at that lag. A lag declared too short makes the interval too narrow; one too long only widens it. Oloproof cannot confirm the lag, but it reports one check of it. Every time_order must then be a number, or every one an ISO 8601 date, with no two equal; oloproof check refuses the same orders oloproof run refuses. Without a lag, and for every other metric, comparisons and slices even with one, a rule reads MANUAL_REVIEW with unsupported_dependence_structure; replicates and early stopping read it with unsupported_method. The estimate is still shown. Declaring an order on some rows and not others is refused when the dataset is read.
Each such rate is reported with that check, which decides nothing: whether cases exactly one step beyond the lag (cases 4 apart at lag 3) still pass and fail together, by an exact runs test on each interleaved set. "Cases 4 apart still move together" means the lag may be too short, or the suite has a trend, or cases are missing because of their neighbours' outcomes. "No sign that cases 4 apart move together" is not proof the lag is right: a short suite or a long lag shows nothing, and other distances are not tested. It never suggests a longer lag, since a lag chosen after seeing the outcomes is no longer a declaration.
Cases nested in several levels
Real suites nest: turns within conversations within users. Declaring only the conversation as group_id treats two conversations of one user as independent, and the interval is too narrow. Declare the whole hierarchy instead, as group_path on every row: the group ids from the top level down, strings or integers, the same depth on every row, never beside group_id.
{"id": "t1", "group_path": ["user-7", "conv-31"], "input": {"turn": 1}}A pass rate rule is then decided on θ_u, the expected pass rate of a top-level unit (the mean of each user's own pass rate), by an exact betting interval over the top-level units; it holds whatever the dependence below them. The run and its page say so, with the units used, the units dropped because none of their cases was observed and the missing cases, and beside it, deciding nothing, the pass rate over cases and how unit size correlates with unit rate: far from zero, the two estimates differ, and the interval is about θ_u only. It assumes the top-level units are independent; with missing cases, a rule must declare max_missing_fraction. Fewer than 10 top-level units read INSUFFICIENT_EVIDENCE: more units would decide it, more cases within a unit would not. Every other metric, comparisons, replicates and early stopping read MANUAL_REVIEW.
Where to go next
- Comparison rules covers the rules a comparison is decided by.
- Core concepts covers the four decision states.