Skip to content

Get started

Quickstart

Install the engine, scaffold a project, and get a first run and a gate decision on your own machine. Nothing leaves it unless you push.

These steps are also the package's description on PyPI, written once so the two cannot disagree.

Your first evaluation, with no baseline: one version of one application, held to a bar you write down. Five steps take you from nothing to a release decision on your own machine, with no account and no model calls (installing needs the network once), then a sixth points it at your own application. Every output below is from running these exact commands in an empty directory. The terms (case, evaluator, metric, interval, gate) are defined in the core concepts guide.

1. Install

python3 -m venv .venv
. .venv/bin/activate
pip install oloproof

Python 3.11 or later. The command-line tool, the engine and the SDK all run locally. The optional extra oloproof[collect] receives OpenTelemetry traces with oloproof collect.

2. Scaffold a project

oloproof init oloproof-demo
cd oloproof-demo

init writes a small support bot to evaluate (app.py, declared with @system), 30 cases in data/example.jsonl, the suite in oloproof.yaml (the dataset, the system and an evaluator that checks each answer's label) and the release policy in release.yaml (the confidence level and a rule that the label is right at least 80% of the time).

It then prints what that suite and bar can decide, before anything has run:

What this suite can decide, if every case is measured:
  label-floor (exact_label at least 0.8, 30 cases):
    29 or 30 pass: PASS (established); 19 to 28: INSUFFICIENT_EVIDENCE (not
    established yet); 18 or fewer: FAIL (ruled out). With 50 cases, PASS from
    46; with 100, from 89.

Each count is the gate's own interval at that count, so 28 passing cases out of 30 cannot pass an 80% bar however good the system is. The same lines sit as a comment above the rule in release.yaml, and oloproof plan prints them again for the suite as it is now.

3. Run the suite

oloproof run

The output (run ids differ on your machine):

Run run_01M4FC9Q6KT0C7GD33DV6K9628 [DECIDED/COMPLETE]
Gate: ALLOW (exit 0)
Decisions
  Rule         Metric       State  Reasons
  label-floor  exact_label  PASS   lower_bound_meets_minimum
label-floor:
  100.0%, range 88.4% to 100.0% (exact binomial interval); 30 of 30 cases
Metrics
  Metric       Estimate  Interval         N
  exact_label  100.0%    [88.4%, 100.0%]  30 / 30 observed, 0 missing, 0 excluded
Reach: inputs like these: the population this suite stands for, as far as it is a fair sample.
Cache: execution 0 hit/30 miss; judgment 0 hit/30 miss

Share it: `oloproof login --url https://oloproof.com`, then `oloproof push run_01M4FC9Q6KT0C7GD33DV6K9628`. Nothing leaves this machine until you push.

How to read it:

  • Decisions has one row per rule in release.yaml. label-floor asks that the exact_label pass rate be at least 80%. Its state is PASS because the interval's lower bound, 88.4%, is above 80%; the reason code says exactly that.
  • Under the table, each rule says in words what decided it: the estimate, the range its interval spans and how many cases it counted.
  • Metrics shows the estimate (30 of 30 right, 100%) and its 95% interval. The interval is what decides, not the estimate: with 30 cases, a system that is truly right 89% of the time could still score 30 of 30.
  • N is the denominator: how many cases were observed, missing or excluded. In 30 / 30 observed, the first number is the cases that passed (the estimate's numerator) and the second is the cases observed, so 15 / 20 observed would mean 15 passed out of 20. A case that could not be measured is counted, never silently dropped.
  • In a terminal narrower than the table, its columns are cut short (INSUFFICIENT_EVIDE…). Widen the window, or prefix the command with COLUMNS=200, to see every column whole.
  • Gate: ALLOW (exit 0) is the release action: nothing the policy blocks on occurred.
  • The last line is printed only until this terminal is logged in, and never in CI. The run stays on your machine; sharing it is optional, and the end of this page shows how.

Run it again and the system is not called: Cache: execution 30 hit/0 miss, because neither the system nor any case's input changed.

4. Inspect a case

oloproof inspect latest --failures
oloproof inspect latest --case refund_00

latest is the newest run and latest~1 the one before it. Any command that takes a run id also accepts a unique start or end of one, and oloproof runs lists your runs with their answers.

Here every case passed, so the first prints 0 of 30 cases failed, errored or did not finish. The second shows one case whole: its input, its expected label, the output the system returned (reused from cache on a second run) and each evaluator's verdict (exact_label: passed). On your own application, --failures is where you start.

5. Gate on the decision

oloproof run exits on its gate, so a CI step that runs it needs no further wiring. To see it block, raise the rule's min in release.yaml from 0.80 to 0.95 and run again:

oloproof run
echo "exit $?"
Gate: BLOCK (exit 3)
  label-floor  exact_label  INSUFFICIENT_EVIDENCE  interval_overlaps_threshold
exit 3

The estimate is still 100%, but the interval, [88.4%, 100.0%], straddles 95%: 30 cases cannot show a rate that high with 95% confidence. That is INSUFFICIENT_EVIDENCE, not a failure, and the policy's block_on blocks on it. To ask how many cases would settle it:

oloproof plan latest
label-floor: no case has failed yet: if none of the next cases fail either, a suite of about 72 cases (42 more) would decide it; each one that does raises that count
  time      <1s
  tokens    none reported by this run's providers
  assuming  the cases to come resemble the 30 already run
            cases run one after another; concurrency divides the time and not the cost

oloproof gate latest --policy release.yaml re-decides a stored run against a changed policy without running anything again. The gating guide lists every exit code.

6. Your own application

The example shows the tool works; your application is what you came to evaluate. No baseline is needed: a first evaluation asks whether your application meets your requirements, and comparing versions comes later.

Point system in oloproof.yaml at your application: a Python callable that takes a case's input and returns a dictionary (callable: app:answer, as the example does), or an HTTP endpoint that does the same over JSON (http: {url: http://localhost:8000/answer}). Replace data/example.jsonl with your own cases, one JSON object per line with an id, the input your application takes and the expected answer or label. Fifty real cases are about the floor for an interval narrow enough to decide anything, and they are a better start than a hundred invented ones. Keep an evaluator that can check your expected field (exact_match on a label, contains, regex, json_schema, or an LLM judge with a rubric), and write what acceptable means as a rule in release.yaml: the metric and the rate it must clear, at the confidence level you set.

A rule's metric is an evaluator's criterion, so the two are written together. The scaffold's evaluator is named exact_label: it compares the label your application returns with the label under each case's expected. A rule on it names the same criterion:

# oloproof.yaml
evaluators:
  - type: exact_match
    criterion: exact_label
    field: label
# release.yaml
rules:
  - id: label-correct
    metric: exact_label
    min: 0.90

Rename the criterion if you like, in both places at once; a rule naming a metric no evaluator produces stops the run with a configuration error that lists the metrics there are.

Then oloproof run. PASS means the whole interval cleared your bar on your cases; FAIL means it cannot; INSUFFICIENT_EVIDENCE means the run could not settle it, and the decision's reason says why. Where the reason is too few cases, oloproof plan latest estimates how many more would settle it, for the methods that support sizing; where it is something else, such as executions that failed or a judge not yet validated, the reason names what to fix instead. Each is an answer about your application on the cases you gave it, and nothing more.

Where to go next

  • Choose the guide for your kind of system (classifier, text generation, HTTP service, RAG, agent, predictive model, conversation) from the start-here page.
  • Change the system and compare the new version with this run: the compare guide.
  • Add human review of a judge, CI and a hosted workspace: the judges, CI and gating guides.

Evaluators

The type: values oloproof.yaml accepts:

deterministicexact_match, contains, regex, json_schema; canary_absent: fails an output that carries a generated attack's canary; personal_data_absent: fails an output carrying an email, phone, SIN, card number, IP address or postal code; memorized_absent: fails an output reproducing a protected string; reexecution_agreement: on traffic, whether the declared system run again agrees with what production returned
LLM judgerubric_judge, groundedness_judge, citation_support_judge; probability_judge: a yes/no, choice or score question answered by one token's probabilities; cascade: a probability judge first, a second judge only where it is unsure
modelmodel_classifier: a trained classifier or NLI model on a TEI server, scored against a threshold
retrievalhit_rate, recall, mrr, ndcg, citation_validity
agentagent_max_steps, agent_tool_called, agent_no_tool_loop, agent_tool_sequence, agent_no_undeclared_tool, agent_constraints_satisfied, state_matches, state_unchanged, fault_recovery, metamorphic_relation
multi-agentagent_route, agent_tool_permissions, agent_max_handoffs
predictivepredictive_correct, predictive_precision, predictive_recall, predictive_ranking, predictive_brier, predictive_log_loss, predictive_absolute_error
reinforcement learningepisode_return, episode_success, episode_cost_within, off_policy_value, off_policy_improvement, sequential_off_policy_value, sequential_off_policy_improvement
mediamedia_check: format, dimensions, duration and size measured from the recorded bytes; image_matches_reference: a perceptual-hash match with a reference image
conversationconversation_completed, conversation_judge; every_turn: a condition every answer must meet; goal_reached, turns_to_goal: whether a simulated user's goal was met, and within how many of its messages

A judge names its provider (anthropic, openai or openai_compatible), its model, and its rubric as rubric_text or rubric_file. One on a provider that speaks the OpenAI API but is not OpenAI (Groq, Together, a local server) also needs base_url and api_key_env:

evaluators:
  - type: rubric_judge
    criterion: answer_correct
    provider: openai_compatible
    model: openai/gpt-oss-20b
    base_url: https://api.groq.com/openai/v1
    api_key_env: GROQ_API_KEY
    rubric_text: "PASS if the answer conveys the same fact as the reference."

Naming a field an evaluator does not take is answered with the ones it does.

See a run in the browser by pushing it to a hosted workspace. Sign-up at oloproof.com is open; login opens your browser on a short code to approve there, and nothing leaves your machine until you push:

oloproof login --url https://oloproof.com
oloproof push latest

push ends with Open it: and the run's address in the workbench, to open or send to a teammate, and remembers it, so a later --summary markdown links the pull request to the same page (CI guide).