This release is a pre-release and may not be stable for production use.
Know if your AI system is good enough: evaluation, intervals and decisions for AI systems.
pip install oloproof==0.1.0a5 Copy PIP instructions
Oloproof tells you whether your AI system is good enough, before it ships and once it is doing real work. It measures what the system does, puts an interval behind every decision, and decides: PASS, FAIL, INSUFFICIENT_EVIDENCE or MANUAL_REVIEW.
It works in three layers. What happened: every case, score, latency and cost, traced to the run, the judge and the data that produced it. How sure you can be: an interval with the right denominator wherever one is admitted, and judges checked against people before they are allowed to count. What happens next: pass, fail, or not enough evidence yet, with how many more cases would settle it and which part broke.
There are two ways in. Evaluate a system: hold one system to what you require of it, with no baseline needed. Compare a change: compare a change with what is live, on the same cases, and know whether the difference is real. Both run locally with no account, from the terminal or in CI, and a hosted workspace shows the same records in the browser once you push them. Once the system is live, people review a sample a hosted workspace draws from real traffic, in the browser, while the content stays on your side. The engine, CLI and SDK are free, Apache-2.0 licensed.
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.
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.
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).
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 Metrics Metric Estimate Interval N exact_label 100.0% [88.4%, 100.0%] 30 / 30 observed, 0 missing, 0 excluded Cache: execution 0 hit/30 miss; judgment 0 hit/30 miss How to read it:
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.
oloproof inspect RUN_ID --failures oloproof inspect RUN_ID --case refund_00 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.
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 RUN_ID --run label-floor: about 42 more cases would decide it, if the observed rate holds (72 in total) oloproof gate RUN_ID --policy release.yaml re-decides a stored run against a changed policy without running anything again. The gating guide lists every exit code.
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 RUN_ID --run 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.
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 prints a short code to approve there, and nothing leaves your machine until you push:
oloproof login --url https://oloproof.com oloproof push RUN_ID Engine Rules The evidence chain is:
scenarios -> execution -> artifacts -> evaluators -> judgments -> statistical inference -> diagnostics/interventions -> decisions -> evidence/provenance -> LLM explanation/hypothesis/next experiment Decision states are exactly PASS, FAIL, INSUFFICIENT_EVIDENCE and MANUAL_REVIEW. Execution states such as RUN_ERROR and CANCELLED are not decision states. Release actions are separate: ALLOW, WARN or BLOCK.
For minimum-threshold interval rules, PASS requires the lower bound to meet the threshold and FAIL requires the upper bound to be below it. Otherwise the result is INSUFFICIENT_EVIDENCE. Unsupported declared structures fail closed.
Not built yet: the rest of the statistical roadmap: conformal risk control, hierarchical dependence, causal intervention analysis, IRT and a method for score and preference labels.
Oloproof is licensed in two parts. The engine, CLI, SDK and runner, which are this package, and everything else a developer installs are under the Apache License 2.0 (LICENSE). The hosted control plane and workbench are not part of this package and are under the Elastic License 2.0. NOTICE says which covers what.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.




