Guides
Comparing a candidate to a baseline
One of the two ways in, beside holding one system to its requirement: you changed something, and you want to know whether it helped. A comparison pairs two runs case by case and reports the difference with an interval, so a two-point move is never mistaken for a win.
Two runs, paired
oloproof run
oloproof run
oloproof compare latest latest~1Both runs must score the same cases, because the comparison is paired: each case's candidate result is set against its own baseline result, not against the baseline's average. Pairing is what makes a small difference detectable at all: it removes the variance between cases and leaves the variance from the change.
A comparison of two runs over the scaffolded example prints:
Comparison sha256:1c8429df... of run_01M3B2BCNV3GHD3Z8HKDQCV3XK against run_01M3B2BDH8FSN1MMG3MJ92Q0G2 · 30 paired cases
exact_label: +0.0 points [-16.5, +16.5] · 30 paired · 0 missing · 0 excludedThose two runs are the same system twice, so the true difference is zero and the estimate says so. Read the interval instead: over thirty cases, this suite cannot detect a change smaller than about sixteen points in either direction. That number is a property of the suite, not of the change, and it is knowable before you make any change at all.
Under the differences, each pass rate lists the cases that changed: how many the candidate fixed (it passes where the baseline failed) and how many it broke (the reverse), with the ids of the first ten in each direction and a count of the rest. They are the cases to open first. The list is reported only: the cases are picked by their outcome, so they are not a slice, no interval is drawn over them and no rule reads them. Whether the change is real is the paired difference's question, answered by its interval and its rules.
Gating on a comparison
A release policy can decide a comparison as well as a run. The rule most teams want is non-inferiority: not "did it get better" but "is it no worse than the baseline by more than a margin I can live with".
rules:
- id: no-regression
kind: non_inferiority
metric: exact_label
margin: 0.05oloproof compare latest latest~1 --policy release.yamlAgainst the same two identical runs:
exact_label: +0.0 points [-16.5, +16.5] · 30 paired · 0 missing · 0 excluded
Decisions
no-regression exact_label non-inferiority, margin 5.0 points INSUFFICIENT_EVIDENCE interval_overlaps_margin
a suite of about 107 paired cases (77 more) would decide it, if the next pairs go like these; at that size it is settled about half the time
Gate: BLOCK (exit 3)A policy passed with --policy has to declare at least one comparison rule (kind: non-inferiority, equivalence or superiority). One that holds only run rules, such as a release.yaml copied into a CI step, is refused with exit 2 rather than printing the differences and exiting 0 as if it had decided them. Without --policy, the project's own release.yaml is read for its confidence level, and the report says when no rule applied.
To pass the comparison on as one offline file, oloproof report CANDIDATE --baseline BASELINE --policy compare.yaml --html comparison.html decides it the same way, stores nothing, and draws each rule's interval against its margin, with no case content unless you add --include-content. With --paper DIR it writes the same comparison as a figure, two tables and a methods paragraph (figure.svg, table.md, table.tex, methods.md), each number the decided comparison's and the paragraph assembled from recorded facts.
Read that carefully: it is the whole argument. The two systems are identical. The estimate is exactly zero. And the gate blocks, because thirty cases cannot establish that the candidate is within five points of the baseline: the interval reaches to sixteen points worse.
A tool that compared the estimate to the margin would have passed this. It would have passed it for a candidate that was genuinely ten points worse, too, because thirty cases cannot tell those two situations apart.
exit 3 is INSUFFICIENT_EVIDENCE, not failure. The change is not rejected; the evidence has not decided. Gating CI lists the codes.
Equivalence, when you need both directions
Non-inferiority asks whether the candidate is no worse. Equivalence asks whether it is neither worse nor better by more than the margin, which is what you want when replacing a model with a cheaper one and the claim is that nothing changed.
- id: same-quality
kind: equivalence
metric: exact_label
margin: 0.05What decides the interval's width
Three things, and only one of them is the change you made.
- How many cases are paired. Cases missing from either side cannot pair, and the comparison reports them separately rather than dropping them.
- How much the cases disagree with each other. A suite whose cases all behave alike gives a tighter interval than one with a few wild outliers.
- The confidence level, which the policy sets and defaults to 0.95.
A comparison that cannot decide usually needs more paired cases. The margin is how much worse you can accept, and is set before the run, not moved after it to reach a decision.
Slices
A suite that declares slices gets a difference for every slice and every metric. They are exploratory, so oloproof compare counts them in one line rather than printing them before the decision:
45 exploratory slice differences not shown; add --slices to list them--slices prints them all. A slice that a rule decides on is not exploratory and is always shown, and oloproof inspect and oloproof export keep every slice either way.
Did the new version keep what the old one could do?
A change that teaches a system something new can make it forget something old: a memory update, a rebuilt retrieval index, a new prompt or a fine-tune. Asking whether the new version kept what the old one could do is a comparison against the old version, on cases you chose before either run.
Tag each case with the capability it tests, or with the release that first needed it, in its metadata, keep the suite pinned, and give the capabilities you must not lose a rule each:
version: 1
rules:
- {id: overall, metric: ok, kind: non_inferiority, margin: 0.05}
- {id: keeps-refunds, metric: ok, kind: non_inferiority, margin: 0.05, scope: slice/metadata.capability=refunds, min_support: 30}
- {id: keeps-escalation, metric: ok, kind: non_inferiority, margin: 0.05, scope: slice/metadata.capability=escalation, min_support: 30}
families:
- {id: retention, correction: holm, rules: [keeps-refunds, keeps-escalation]}with slices: [metadata.capability] in oloproof.yaml. Slices explains the family and its correction.
Do not build the slice from the old version's results, such as "the cases the old version passed". Some of those passes were luck, so any second run, even of the same system, does worse on them and the new version looks as if it forgot. Oloproof refuses a comparison rule on a slice defined by a run's outcome for this reason; tags written into the cases before the runs are the way to ask.
A change outside your project's files, such as a rebuilt index or a memory store, is a new system only if something in the system's version says so. Declare a function that names that state:
system:
name: support-bot
callable: app:answer
state_version: app:index_build # returns, say, the index's build idIts value enters the system's version, so a new value is a new system: nothing is reused from the old one, and an earlier decision reads Evidence: stale against it. The function is called once when the system is built, so keep it fast and free of side effects.
One suite across many versions
Keep one suite pinned and run it on every version you ship, and the runs line up into a history on the same cases. List them, oldest first:
oloproof trend --criterion okEach row is a run on exactly the project's suite: its date, its id, its system version, the estimate and interval it stored, and whether its judge was validated when it was decided. Runs on other versions of the suite are counted and left out, because they are not the same cases. Between two rows, a change of evaluator is said in words: a new rubric or judge model can move a rate with no change in the system. --suite takes a suite digest or a run whose suite to use.
The report decides nothing. It draws no line through the rates and never calls them improving: the same cases mean the traffic did not get easier, and whether a later version is better is a comparison, which it ends by naming (oloproof compare on the first and latest runs).
Asking a judge which answer is better
A comparison measures each run against the suite. Sometimes the question is simply which of two answers is better, and a pairwise judge asks exactly that. Declare one in a file of its own:
criterion: helpfulness
provider: openai
model: gpt-4o-2024-08-06
rubric_text: Prefer the answer that is more correct and more complete.Then compare two runs over the same suite:
oloproof prefer latest latest~1 --judge pairwise.yamlEvery pair is asked twice, with the candidate's answer shown first and then second. A case counts for the candidate only when the judge prefers its answer both times, so a judge that simply favours whichever answer comes first produces no winner. How often its verdict followed the slot is printed as its position bias. The net preference carries an interval, except over a suite that declares group_id or time_order, whose cases are not independent: there the estimates are printed with no interval. Nothing is gated on it yet. Asking again costs nothing: every verdict is cached.
Where to go next
- Comparison rules is the reference for superiority, non-inferiority and equivalence, direction, missing pairs and the interval method.
- Clustered cases covers suites whose cases are not independent.
- Slices covers gating one part of the suite inside a Holm family.
- Gating CI covers the release policy and the exit codes.
- Core concepts covers why a denominator that shrinks is how a failing system reports a rising score.