Guides
Configuration reference
Every field of oloproof.yaml and release.yaml, with its type, its default, the values it accepts and an example, taken from the models that read the files. Use it to look up a field; read the quickstart and gating pages to learn the workflow.
Both files are validated before anything runs. An unknown field, a misspelled field or a value of the wrong type is a configuration error and the command exits 2 without executing a case. Both files have JSON Schemas, which an editor that reads JSON Schema can use for completion. The installed package writes them, with the result schemas, into schemas/v1/ under the current directory: python -m oloproof_core.models.schema_export (the two are project_config.schema.json and release_policy.schema.json).
In the tables below, "required" means the file is refused without the field; any other field shows the value used when it is left out.
oloproof.yaml at a glance
A small, complete project. It runs a Python function locally, needs no network and no keys, and is the shape oloproof init scaffolds.
# oloproof.yaml
version: 1
project: support-bot
dataset: datasets/support.jsonl
system:
name: support-bot
callable: app.bot:answer
evaluators:
- type: exact_match
criterion: correct_label
field: labelTop-level fields
| Field | Type | Default | What it is |
|---|---|---|---|
| version | 1 | 1 | File format version. Only 1 exists. |
| project | string | required | The project's name, shown in reports and used when pushing. |
| dataset | path | required | The suite file, JSONL, relative to the project. Its rows are described in Suites. |
| time_lag | integer, 0 or more | absent | For a suite whose rows declare time_order: cases more than this many steps apart are independent, as sets (Clustered cases). A pass rate rule is then decided; without it every rule reads MANUAL_REVIEW. |
| suite_role | development, adversarial, measurement or release | absent | What the suite is for, recorded on each run and outside every digest (Suites). A release suite reports how many system versions have been run on it. |
| holdout | mapping: budget, reveal (nothing, pass_only, decision or full), stop_at_first_pass | absent | A release holdout's reuse budget, declared before its first run and recorded on each run, outside every digest. Read by no rule: every surface shows results in full, so reports say there is no reuse guarantee (Suites). |
| system | mapping | required | The system under test. See below. |
| concurrency | mapping | system: 8, judge: 4 | How many system calls and judge calls run at once. |
| evaluators | list | required, at least one | What is measured on each case. Each entry has a type. |
| metrics | list | empty | Extra metrics beyond the one each evaluator criterion already is. |
| predictive | mapping | absent | Where a classifier's label, score and truth live. See Predictive models. |
| slices | list of strings | empty | Exploratory slices: metadata.<key>, relevant_position or context_truncated. They never reach the gate. See Slices. |
| min_slice_support | integer, at least 1 | 30 | Below this many eligible cases a slice shows its estimate but no interval. |
| replicates | integer, at least 1 | 1 | Measure every case this many times. The case stays the unit: replicates are aggregated within it before any interval is computed. |
| budget | mapping | absent | The most one run may spend before it stops: model_calls, tokens or usd (at least one). Checked before every call, locally and on a managed worker. A usd ceiling stops on a call it cannot price and a tokens ceiling on a call that reports no tokens, so neither is accepted for an HTTP system, which reports none: use model_calls there. A system's own model is priced only by the cost it records, never from pricing:. model_calls leaves out a judge's re-ask, a cascade's later stage and a simulated user's turns, and calls already in flight when a ceiling is reached still finish, so a run can pass it at high concurrency. Evaluators without a model (no limiter key) are outside the budget. A comparison spends one budget on both arms, candidate first. The finished cases stay in a partial run. |
| pricing | list | empty | What you pay per million tokens, by model. Without it cost is reported in tokens and never in dollars. |
| egress | list of strings | empty | Which raw content oloproof push may send to a hosted workspace. See Results and execution. |
| adversarial | mapping | absent | Generated attacks: whether the system under test is a sandbox, and the model that rewords them. See below. |
| metamorphic | mapping | absent | Transforms that pair each case with a changed copy of itself, for metamorphic_relation. See below. |
| export_key | mapping | absent | Written by Oloproof, never by hand: the fingerprint of the export key this project's withheld content is keyed under. See below. |
| traffic | mapping | absent | The group the collector reads on production traffic: group_attribute (one span attribute key) and group_values (2 to 20 short labels). A trace whose attribute holds a declared value carries it as its group; any other value is left out and never kept. Read by oloproof collect, never by a run; a group_fairness rule under stream.group_rules in release.yaml reads it. |
adversarial
What oloproof generate attacks and oloproof run need for generated attacks (Generating attacks).
| Field | Type | Default | What it is |
|---|---|---|---|
| sandboxed | boolean | false | The system under test is a sandbox: no production credentials, no real outbound network, no destructive tools. oloproof run refuses a suite holding generated attacks without it, or without --allow-adversarial. |
| rewrite | mapping | absent | The model oloproof generate attacks --rewrite rewords cases with. Without it, --rewrite refuses. |
| attacker | mapping | a local Ollama model | The model oloproof redteam strengthens resisted attacks with, round by round (Red teaming round by round). --attacker-model overrides its model. It takes the same keys as rewrite. |
rewrite takes provider (default openai_compatible), model (required), base_url (default http://localhost:11434/v1, a local Ollama server), api_key_env (absent; a server on this machine needs no key), temperature (0), max_tokens (400) and timeout_s (120).
export_key
Written on a project's first keyed run (or by oloproof keys adopt), just after project:, with a line asking you to commit it. Commit it: a machine or CI job without the key it names is refused instead of making a second, incompatible key. It holds a fingerprint, never the key, and no id or cache key reads it. See Running in CI.
| Field | Type | Default | What it is |
|---|---|---|---|
| fingerprint | string | required | sha256: and 64 hex digits: the key's fingerprint over the categories it keys, as runs record it. |
| keyed | list of strings | empty | The categories keyed, which are the ones egress: withholds. |
| previous | list of strings | empty | The fingerprints before each oloproof keys adopt --rotate, newest first. |
An Oloproof older than the one that wrote the block refuses a file carrying it, so bump a pinned version in CI in the same commit.
metamorphic
transforms: Each transform changes one field of every case's input: a string by a template or replacements, or a numeric, categorical or image field by a perturbation. The suite runs each source case beside one derived case per transform (<id>~<name>), clustered by source.
| Field | Type | Default | What it is |
|---|---|---|---|
| name | string | required | Lowercase letters, digits and underscores; it names the derived cases. |
| version | integer, at least 1 | 1 | Change it when the transform changes. |
| field | string | required | The dotted path of the changed field, under input. |
| template | string | absent | The new text, with {value} where the old text goes. Exactly one of template, replace or perturb. |
| replace | list of [old, new] pairs | absent | Replacements, applied in order. |
| perturb | mapping | absent | A perturbation, by kind (below). |
| validity_labels | string | absent | A JSONL file beside oloproof.yaml: one line per derived case, {"case": ..., "digest": ..., "kept": true} or false, saying whether the transform kept its meaning. |
| minimum_validity | number in (0, 1) | absent | The bar the exact lower bound of the kept share must clear. |
perturb takes one kind:
| Kind | Fields | What it does |
|---|---|---|
| numeric_noise | scale (feature to standard deviation, each above 0), clip (feature to [low, high]), round (decimals), seed | Adds Gaussian noise to the named numeric features of an object field, seeded by seed, the transform's name and the case id, so a case gets the same noise on every machine. |
| categorical_swap | map (category to category) | Replaces the field's category with the one the map names. A category the map does not name is a configuration error. |
| blur | radius (pixels, above 0) | A Gaussian blur of the image. |
| brightness | factor (above 0, not 1) | Darker below 1, brighter above. |
| occlusion | fraction (of the area, in (0, 1)), seed, fill (RGB) | A grey rectangle at a seeded position. |
| jpeg | quality (1 to 95) | The image saved again as JPEG. |
An image field is a path relative to oloproof.yaml or a media/v1 item, whose bytes must still be the recorded ones. The changed image is written to .oloproof/metamorphic/media/, named by the sha256 of its bytes, and the derived case points at it. Images need Pillow: pip install 'oloproof[media]'. A perturbation that leaves a case's field unchanged is a configuration error. Read a prediction under a perturbation with same_label or same_score_within (below).
A transform is checked when its labels clear minimum_validity, counted over every pair of that transform in the suite, with an unlabelled pair counted as not kept and a pair counted as kept only when every label of it says so. Until then every rule over a metamorphic_relation that reads it is INSUFFICIENT_EVIDENCE with transform_not_checked, under every policy, or transform_declared for numeric_noise and categorical_swap, which are reported as a declared assumption. A source and its pairs share a cluster. A relation that names one transform judges one copy per source, so its rate is exact (Clopper-Pearson) and two runs' rates are compared paired. A relation over every transform judges several copies per source and is read with the cluster bootstrap: set allow_approximate_methods: true in release.yaml and give the suite at least min_clusters source cases. A rewrite by a model is not built.
concurrency
| Field | Type | Default |
|---|---|---|
| system | integer, at least 1 | 8 |
| judge | integer, at least 1 | 4 |
pricing entries
Oloproof ships no price table. Each entry names a model exactly as an evaluator's model: names it.
| Field | Type | Default |
|---|---|---|
| model | string | required |
| input_per_mtok | number, 0 or more | required |
| output_per_mtok | number, 0 or more | required |
# oloproof.yaml
version: 1
project: support-bot
dataset: datasets/support.jsonl
system:
name: support-bot
callable: app.bot:answer
evaluators:
- type: exact_match
criterion: correct_label
field: label
pricing:
- model: my-judge-model
input_per_mtok: 0.15
output_per_mtok: 0.6
egress: [raw_outputs]system
A system needs exactly one of callable, http, rag, recorded, held or prompt.
| Field | Type | Default | What it is |
|---|---|---|---|
| name | string | required | The system's name. Part of its version identity. |
| version | string | absent | Your label for this version. Required for an HTTP system. Part of its identity, so changing it invalidates cached executions. |
| callable | module:attribute | absent | A Python function, sync or async. It receives the case input and returns the output. |
| http | mapping | absent | An endpoint called once per case. See below. |
| rag | mapping | absent | A staged RAG class declared with @rag_system. See below. |
| recorded | path | absent | An answers file (case_id, input, expected, output; JSON Lines or CSV), relative to oloproof.yaml, replayed as the system's outputs: nothing runs. oloproof eval --save writes it. |
| prompt | mapping | absent | A prompt file and a model, run as the system. See below. |
| held | digest | absent | The digest of answers an imported sheet left in a hosted workspace, replayed as the system's outputs by that workspace's worker: nothing runs. The sheet import writes it; locally, use recorded. |
| config | mapping | empty | Free-form settings recorded with the system version. Changing them changes the version. |
| code_paths | list of glob patterns | empty | Extra source files whose contents enter a callable system's version, added to what is hashed by default: the callable's own module and the project's Python modules it imports. In Python, pass code_paths= to @system or evaluate() instead; a function declaring them while this field is set is refused (exit 2). |
| state_version | module:function | absent | A function of no arguments returning a string that names state outside the project a callable system reads, such as an index's build id or a memory snapshot. It is called once when the system is built, and its value enters the system's version: a new value is a new system, nothing is reused from the old one, and an earlier decision reads Evidence: stale. A raise, an empty string or a non-string is a configuration error (exit 2). Refused on an HTTP or RAG system; a RAG system has rag.index_version. |
| timeout_s | number above 0 | 120 | Time limit per call for a callable system. An HTTP system uses http.timeout_s instead. |
| records | list of artifact kinds | empty | Artifact kinds a callable system records, such as retrieval/v1. Refused on an HTTP or RAG system. |
| simulated_user | mapping | absent | A model that plays each case's persona in a conversation with a callable system. See below. |
| per_step | boolean | false | Call a callable system once per step of the case's input.steps, with that step's observation and the history of the steps before it, never the step itself or what follows; its output is {"steps": [...]}, one answer per step. Part of its version. Refused on an HTTP or RAG system. The sequential off-policy evaluators require it. |
| environment | module:attribute | absent | A sandbox with reset(state) and snapshot(), reset to each case's initial_state before a callable system runs it and read back after as environment_state/v1. A callable object with both methods is its own environment. Its class's qualified name is part of the system's version, so another sandbox runs the cases again. |
system.http
| Field | Type | Default | What it is |
|---|---|---|---|
| url | string | required | Where each case is sent. |
| method | GET, POST or PUT | POST | The HTTP method. |
| output_path | dotted path | absent | Which field of the JSON response is the output, such as result.answer. Absent means the whole body. |
| artifacts | mapping of kind to dotted path | empty | Response fields recorded as artifacts, such as retrieval/v1: debug.retrieval. |
| version | string | absent | Used as the system's version when system.version is absent. An HTTP system needs one of the two. |
| timeout_s | number above 0 | 30 | Time limit per request. |
| headers | mapping of header name to value | empty | Sent with every request. ${NAME} in a value is read from the environment variable NAME when the run starts, such as Authorization: Bearer ${API_TOKEN}; an unset or empty variable stops the run before its first case (exit 2). The names and the text as written are part of the system's version; the values read are not, so a new token keeps the version and its cached answers, and they are never stored. Oloproof's managed workers refuse a header that reads a variable. |
| stream | sse | absent | Read the response as server-sent events and join each event's text into the answer, recording when the first text arrived (first_output_ms). Needs stream_path; takes no output_path or artifacts. Declared, it is part of the system's version. |
| stream_path | dotted path with list positions | absent | Where each event's text is, such as choices.0.delta.content (OpenAI-compatible) or delta.text (Anthropic). An event without it adds nothing; data: [DONE] ends the stream. |
# oloproof.yaml
version: 1
project: support-api
dataset: datasets/support.jsonl
system:
name: support-api
version: "2026-10-08"
http:
url: http://localhost:8000/answer
output_path: answer
artifacts:
retrieval/v1: debug.retrieval
evaluators:
- type: hit_rate
k: 5The request and response contract, and what happens on timeouts and HTTP errors, are in Results and execution.
system.rag
| Field | Type | Default | What it is |
|---|---|---|---|
| object | module:attribute | required | The class declared with @rag_system, or an instance of it. |
| depth | integer, at least 1 | the class's | How many passages retrieval returns. |
| top_k | integer, at least 1 | the class's | How many of them reach generation. |
| token_budget | integer, at least 1 | the class's | A token limit on the context. Needs the class's count_tokens(passage). |
| index_version | string | the class's | Part of the retrieval identity. Change it whenever the index is rebuilt. |
Settings given here override the ones the class declares. A staged system records its own retrieval/v1, context/v1 and citations/v1 artifacts, so records is refused beside it. See RAG.
system.prompt
| Field | Type | Default | What it is |
|---|---|---|---|
| file | path | absent | The prompt template, relative to oloproof.yaml. {{input}} is the case's input (as JSON when it is not text) and {{input.question}} one field of it; a field the input lacks stops the case with an error. A first line system: followed by text up to a line --- is sent as the system message. |
| text | string, at most 20,000 characters | absent | The template itself, instead of file: what a managed run and the workbench's playground send, since a worker has no project files. A prompt needs exactly one of file or text. |
| model | string | required | The model asked, such as llama3.2. |
| provider | openai_compatible, openai or anthropic | openai_compatible | Which API the model is reached through. |
| base_url | string | absent | Where the model is called. Absent: a local Ollama server (http://localhost:11434/v1) for openai_compatible, the provider's own API for openai and anthropic. |
| api_key_env | string | absent | The environment variable holding the provider's key. A managed run requires it, naming a key the workspace stored. |
| temperature | number, at least 0 | 0 | Sent with every request. |
| max_tokens | integer, at least 1 | 1024 | Sent with every request. |
| timeout_s | number above 0 | 120 | Time limit per request. |
The system's version is the digest of the template's text and these settings, so every edit to the prompt is a new version: its cases run again, the old answers are reused when the old text comes back, and oloproof compare pairs two prompt versions case by case like any two systems. Keep the file under version control; oloproof trend lists a suite's runs across its versions.
# oloproof.yaml
version: 1
project: support-bot
dataset: datasets/support.jsonl
system:
name: support-bot
prompt:
file: prompts/support.md
model: llama3.2
evaluators:
- type: contains
criterion: correctsystem.simulated_user
A model that plays a user of a callable system, declared like a judge. Each case's input holds the persona it plays, and the system reads it through current_case().simulated_user() (SDK reference).
| Field | Type | Default | What it is |
|---|---|---|---|
| provider | anthropic, openai or openai_compatible | required | Who serves the model, as for a judge. |
| model | string | required | The model that plays the user. |
| base_url | string | the provider's | The server, such as http://localhost:11434/v1 for a local model. |
| api_key_env | string | the provider's | The environment variable holding the key. |
| temperature | number from 0 to 2 | 0.7 | Above zero so that replicates meet different users. A provider that takes a seed (OpenAI's API does) is given one from the case and the replicate. |
| max_tokens | integer, at least 1 | 300 | The longest message the user writes. |
| timeout_s | number above 0 | 60 | Time limit per model call. |
| max_turns | integer from 1 to 100 | 8 | The most messages the user sends. A persona's own max_turns overrides it. |
| persona_field | string | persona | The key of each case's input that holds the persona. |
| instructions | string | absent | Added to every persona's instructions, such as the language to write in. |
A persona has a description (who the user is) and a goal (what they want), both required; facts, a mapping of what the user knows and shares only when the conversation needs it; opening, the user's first message word for word, so every system is greeted alike; and max_turns. A case whose persona is missing or malformed stops the run before any call (exit 2).
# oloproof.yaml
version: 1
project: support-desk
dataset: datasets/customers.jsonl
system:
name: support-desk
callable: desk:talk
simulated_user:
provider: openai_compatible
base_url: http://localhost:11434/v1
model: llama3.1
max_turns: 6
evaluators:
- type: rubric_judge
criterion: resolved
provider: openai_compatible
base_url: http://localhost:11434/v1
model: llama3.1
rubric_text: Pass only if the assistant answered what the customer asked.The conversation ends when a check after each answer finds the goal met (the simulated user's model, asked on its own at temperature 0), when the user gives up, when it has sent max_turns messages, or when the system ends it. Oloproof records what passed between them as conversation/v1 and how it ended as simulated_user/v1; the system records neither. The simulated user's version (every setting above, and its prompt) is part of each execution's cache key and not of the system's version, so a different simulated user measures the same system again. Two systems compared must meet the same one. The tokens it spends are kept in simulated_user/v1 and never counted as the system's cost. Only a callable system takes a simulated user.
A result over simulated users reaches real users only as far as the simulated user resembles them. So while require_validated_evaluators is on (the default), every rule over a run or a comparison whose users were simulated is INSUFFICIENT_EVIDENCE with simulated_user_not_validated, until people have found its conversations realistic: label a random sample with oloproof labels export RUN --criterion simulated_user_realistic --sample 30, where passed means realistic, and import it. The simulated user is validated on that suite when the exact lower bound of the realistic share clears minimum_simulated_user_realism in release.yaml; a drawn conversation left unlabelled counts as unrealistic, and one counts as realistic only when everyone who labelled it says so. One validation covers one simulated user's version on one suite, and is read whenever a gate is decided. oloproof simulated-users RUN reports it, with the shape of its conversations beside a run of real ones (--real RUN), which is descriptive and never decides. A hosted workspace does not decide on simulated users yet. Set require_validated_evaluators: false to decide on them knowingly.
evaluators
Every entry takes a type and these two common fields:
| Field | Type | Default | What it is |
|---|---|---|---|
| criterion | string | required unless the type has a default | The name of what is measured. Each criterion is a metric, and a rule's metric: names it. |
| on_execution_error | missing or fail | missing | What a case whose system call failed counts as for this criterion. missing keeps it in the denominator as unobserved; fail counts it as a failure. |
fail applies only to pass/fail evaluators; a score evaluator with it is a configuration error. on_execution_error is a YAML field; the SDK evaluator classes take no such argument, and an errored case counts as missing.
Evaluator types
"Reads" lists what the evaluator's verdict depends on, which is also what its cached judgment is keyed on. "SDK" names the class in oloproof.evaluators.
| YAML type | Reads | SDK | Needs network or a key |
|---|---|---|---|
| exact_match | output, expected | ExactMatch | no |
| contains | output, expected | Contains | no |
| regex | output | Regex | no |
| json_schema | output | JsonSchema | no |
| canary_absent | output, expected; artifacts.agent_trajectory with tool_calls | CanaryAbsent | no |
| personal_data_absent | output | PersonalDataAbsent | no |
| memorized_absent | output, expected | MemorizedAbsent | no |
| reexecution_agreement | output, metadata, artifacts.reexecution | YAML only | no |
| rubric_judge | input, output, expected | RubricJudge | yes, a model provider |
| model_classifier | output (or the field named by text), optionally premise | YAML only | yes, a TEI-compatible server |
| probability_judge | the case and output | YAML only | yes, an OpenAI-compatible provider returning log probabilities |
| cascade | as its two stages | YAML only | yes |
| hit_rate, recall, mrr, ndcg | artifacts.retrieval, expected | HitRate, Recall, MRR, NDCG | no |
| citation_validity | artifacts.citations, artifacts.context | CitationValidity | no |
| groundedness_judge | input, output, artifacts.context | Groundedness | yes |
| citation_support_judge | input, output, artifacts.context, artifacts.citations | CitationSupport | yes |
| agent_max_steps | artifacts.agent_trajectory | AgentMaxSteps | no |
| agent_tool_called | artifacts.agent_trajectory | AgentToolCalled | no |
| agent_no_tool_loop | artifacts.agent_trajectory | AgentNoToolLoop | no |
| agent_tool_sequence | artifacts.agent_trajectory, expected | AgentToolSequence | no |
| agent_no_undeclared_tool | artifacts.agent_trajectory, expected | AgentNoUndeclaredTool | no |
| agent_constraints_satisfied | artifacts.agent_trajectory | AgentConstraintsSatisfied | no |
| agent_route | artifacts.agent_trajectory | AgentRoute | no |
| agent_tool_permissions | artifacts.agent_trajectory | AgentToolPermissions | no |
| agent_max_handoffs | artifacts.agent_trajectory | AgentMaxHandoffs | no |
| state_matches | artifacts.environment_state, expected | StateMatches | no |
| state_unchanged | artifacts.environment_state, initial_state | StateUnchanged | no |
| fault_recovery | artifacts.agent_trajectory, and a replay of the system (Replayable) | FaultRecovery | no |
| metamorphic_relation | output, artifacts.agent_trajectory or artifacts.environment_state, of the case and of its source | MetamorphicRelation | no |
| predictive_correct | the label field of output and expected | PredictiveCorrect | no |
| predictive_recall | as above | PredictiveRecall | no |
| predictive_precision | as above | PredictivePrecision | no |
| predictive_absolute_error | as above, numeric | AbsoluteError | no |
| predictive_brier | the score field of output, the label of expected | Brier | no |
| predictive_log_loss | as above | LogLoss | no |
| predictive_ranking | as above | PredictiveRanking | no |
| episode_return | artifacts.rl_episode | EpisodeReturn | no |
| episode_success | artifacts.rl_episode | EpisodeSuccess | no |
| episode_cost_within | artifacts.rl_episode | EpisodeCostWithin | no |
| off_policy_value | output, expected | OffPolicyValue | no |
| off_policy_improvement | output, expected | OffPolicyImprovement | no |
| sequential_off_policy_value | input, output, expected | SequentialOffPolicyValue | no |
| sequential_off_policy_improvement | input, output, expected | SequentialOffPolicyImprovement | no |
| media_check | artifacts.media | MediaCheck | no |
| image_matches_reference | artifacts.media, expected when reference_field is set | ImageMatchesReference | no |
| conversation_completed | artifacts.conversation | ConversationCompleted | no |
| conversation_judge | expected, artifacts.conversation | ConversationJudge | yes, a model provider |
| goal_reached | artifacts.simulated_user | GoalReached | no |
| turns_to_goal | artifacts.simulated_user | TurnsToGoal | no |
| every_turn | artifacts.conversation | EveryTurn | no |
| no YAML type | what you declare | @evaluator and CustomEvaluator (SDK only) | yours |
A judge that calls a hosted model sends case content to that provider and is billed by it. Keys are read from the environment variable named in api_key_env; Oloproof never stores them in these files.
Deterministic evaluators
| Type | Field | Type | Default |
|---|---|---|---|
| exact_match | field | dotted path in the output | absent: the whole output |
| exact_match | expected_field | dotted path in expected | absent: same as field when expected is an object, else the whole expected |
| exact_match | strip | boolean | true |
| exact_match | casefold | boolean | false |
| contains | field, expected_field | as exact_match | absent |
| regex | pattern | regular expression | required |
| regex | field | dotted path | absent |
| regex | pass_if | match or no_match | match |
| json_schema | schema | a JSON Schema inline, or a path to a JSON file relative to the project | required |
| json_schema | field | dotted path | absent |
| canary_absent | canary | string, at least 8 characters | absent: each case's expected.canary |
| canary_absent | tool_calls | boolean | false |
| reexecution_agreement | comparator | exact (equal after canonical JSON) | exact |
| reexecution_agreement | field | dotted path | absent: the whole output |
| personal_data_absent | kinds | list of credit_card, sin, email, ip_address, phone, postal_code | all six |
| personal_data_absent | patterns | name to regular expression | none |
| personal_data_absent | allow | list of values that may appear, kept as a digest | none |
| memorized_absent | protected | list of strings, each at least 8 characters | none, besides each case's expected.canary and expected.protected |
| memorized_absent | protected_file | a file of strings, one per line, relative to the project | absent |
| memorized_absent | min_length | integer, at least 8 | 50 |
Each part of a dotted path names a key of an object or, on a list, a position counted from 0, so field: choices.0.message.content reads a nested answer with no custom check. A path that does not resolve records the case as missing for that criterion and says where it stopped, such as no field 'reply': the value has no key 'reply' (keys: answer); it is never a pass or a fail.
canary_absent fails a case whose output contains the canary, ignoring case; an output that is not text is read as its JSON. With tool_calls: true it also reads the arguments of every recorded tool call, and needs a system that records agent_trajectory/v1. A case with no canary is not applicable (no_canary).
Model judges
rubric_judge, groundedness_judge and citation_support_judge share these fields. Exactly one of rubric_file or rubric_text is required by rubric_judge; the two RAG judges take at most one and otherwise use a built-in rubric. Their criterion defaults to groundedness and citation_support.
| Field | Type | Default |
|---|---|---|
| provider | anthropic, openai or openai_compatible | required |
| model | string | required |
| rubric_file | path | absent |
| rubric_text | string | absent |
| api_key_env | environment variable name | ANTHROPIC_API_KEY or OPENAI_API_KEY |
| base_url | URL | the provider's |
| temperature | number | 0 |
| max_tokens | integer, at least 1 | 512 |
| timeout_s | number above 0 | 60 |
| media | none, input, output or all | none |
| audio | transcribe or native | transcribe |
| transcriber | model, and optionally provider (openai_compatible or openai), base_url, api_key_env, timeout_s | absent |
| video_frames | a count from 1 to 20, or a list of increasing times in seconds | 4 |
media (rubric_judge only) shows the judge the case's recorded media/v1 items of that role, each named in its prompt, for a provider whose model reads images:
- Images are attached as they are, up to 5 MB each.
- Video is attached as still frames taken with ffmpeg (on the machine that runs the judge): video_frames: 4 takes the middle of four equal spans, [0.5, 2.0] takes those moments. A declared time past the end leaves the case missing.
- Audio, with audio: transcribe, is sent to the transcriber (an OpenAI-compatible /audio/transcriptions endpoint, OpenAI's when base_url is left out, no key needed on this machine) and the transcript goes into the prompt; each clip is transcribed once per run. With audio: native the clip is attached as sound (wav and mp3 only, for a model that hears it; not Anthropic's).
At most 20 images and frames per judgment. The media's digests key the judgment, so changed media is judged again, and the transcriber and the frame times are part of the judge's version. A case with none of the declared media, or whose file is gone, is missing; content that changed since the run stops it, and so does audio with no transcriber or video with no ffmpeg. Transcripts and the ffmpeg version are kept with each judgment. A media judge is validated against people's labels like any judge.
probability_judge asks a typed question and reads the model's probabilities:
| Field | Type | Default |
|---|---|---|
| provider | openai or openai_compatible | required |
| model | string | required |
| question | string | required |
| form | yes_no, choice or score | required |
| min_probability | number in (0, 1] | required |
| options | mapping of answer to description | for choice |
| pass_options | list of answers | for choice |
| levels | mapping of level to description, lowest first | for score |
| pass_at_least | a level | for score |
| calibration | slope (above 0), intercept, from_version | absent |
| api_key_env, base_url | as above | absent |
| timeout_s | number above 0 | 60 |
cascade runs a cheap judge first and escalates the uncertain cases:
| Field | Type | Default |
|---|---|---|
| first | a probability_judge entry | required |
| then | a rubric_judge or probability_judge entry | required |
| escalate_between | two probabilities | required |
The stages judge the cascade's own criterion; a stage naming a different one is refused.
model_classifier scores text with a trained model on a TEI-compatible server:
| Field | Type | Default |
|---|---|---|
| model | string | required |
| base_url | URL | required |
| label | the classifier label to read | required |
| min_score or max_score | number in [0, 1], exactly one | required |
| text | which field is classified | output |
| premise | a second text, for pair classifiers | absent |
| api_key_env | environment variable name | absent |
| timeout_s | number above 0 | 30 |
RAG evaluators
| Type | Field | Type | Default |
|---|---|---|---|
| hit_rate, recall, mrr, ndcg | k | integer, at least 1 | 5 for hit_rate and recall, 10 for mrr and ndcg |
| hit_rate, recall, mrr, ndcg | relevance_unit | doc or chunk | doc |
| hit_rate, recall, mrr, ndcg | criterion | string | <type>_at_<k>, such as hit_rate_at_5 |
| citation_validity | require_citations | boolean | false |
| citation_validity | criterion | string | citations_valid |
Agent evaluators
| Type | Field | Type | Default |
|---|---|---|---|
| agent_max_steps | max_steps | integer, at least 1 | required |
| agent_tool_called | tool_name | string | required |
| agent_tool_called | min_calls | integer, at least 1 | 1 |
| agent_no_tool_loop | max_repeats | integer, at least 1 | 2 |
| agent_tool_sequence | ordered | boolean | true |
| agent_constraints_satisfied | constraints | list of constraint names | empty |
| agent_tool_permissions | permissions | mapping of agent to allowed tools | required |
| agent_max_handoffs | max_handoffs | integer, 0 or more | required |
| state_matches | paths | list of dotted paths | absent: the whole state |
| state_matches | mode | exact or subset | exact |
| state_matches | tolerance | number, 0 or more | absent |
| state_matches | expected_field | string | state |
| state_unchanged | paths | list of dotted paths | required |
| fault_recovery | tool | string | required |
| fault_recovery | fault | error, timeout or malformed | required |
| fault_recovery | occurrence | integer, at least 1 | 1 |
| fault_recovery | escalate_tools | list of tool names | empty |
| metamorphic_relation | relation | same_output, same_actions, same_state, same_label or same_score_within | required |
| metamorphic_relation | transform | string | absent: every transform |
| metamorphic_relation | field | string, for same_output, same_label and same_score_within; required by the last two | absent: the whole output |
| metamorphic_relation | tolerance | number, at least 0, same_score_within only and required there | absent |
| metamorphic_relation | passes_when | kept or flipped; flipped makes the rate a flip rate for a max: rule, its criterion flips_under_<transform> | kept |
Each agent type has a default criterion, so it may be left out: its own type name, or one built from its setting (agent_steps_le_8, agent_tool_lookup_called, agent_handoffs_le_2). See Agents.
Episode evaluators
| Type | Field | Type | Default |
|---|---|---|---|
| episode_return | return_range | two numbers, ascending | required |
| episode_return | discount | number in (0, 1] | 1 |
| episode_cost_within | budget | number, 0 or more | required |
They read the rl_episode/v1 record of a reinforcement-learning episode. episode_return scores the return, each reward weighted by discount per step, and a return outside return_range stops the run with exit 2. episode_success passes when the episode records success: true, and is missing when it records none. episode_cost_within passes when the steps' costs add up to at most budget. The default criteria are episode_return, episode_success and one built from the budget (episode_cost_le_2). See Reinforcement learning.
Off-policy evaluators
| Type | Field | Type | Default |
|---|---|---|---|
| off_policy_value, off_policy_improvement | reward_range | two numbers, ascending | required |
| same | propensity_floor | number in (0, 1] | required |
| same | probabilities_field | output field | probabilities |
Each case is one decision a policy already made, logged with the action taken, the probability the logging policy gave every action (expected.logging_probabilities), and the reward that followed. The system is the policy you want to evaluate, returning its own probability of every action. off_policy_value estimates that policy's mean reward; off_policy_improvement estimates its mean reward minus the logging policy's. A decision whose policy may take an action logged with probability below propensity_floor, or whose reward is absent, is missing; a malformed log stops the run with exit 2. See Reinforcement learning.
Sequential off-policy evaluators
| Type | Field | Type | Default |
|---|---|---|---|
| sequential_off_policy_value, sequential_off_policy_improvement | reward_range | two numbers, ascending: every step's reward | required |
| same | propensity_floor | number in (0, 1] | required |
| same | horizon | whole number from 1 to 50 | required |
| same | discount | number in (0, 1] | 1 |
| same | probabilities_field | output field | probabilities |
Each case is one logged episode: input.steps, each with its observation, action and reward, and expected.logging_probabilities, one full distribution per step. The system must be declared per_step. sequential_off_policy_value estimates the policy's expected return over the first horizon steps; sequential_off_policy_improvement that return minus the logging policy's. An episode the policy would leave the log's support in is scored up to that step and bounded after it; a missing reward is bounded at both ends of reward_range; a malformed log, a target whose probabilities do not add up to 1, or an episode longer than horizon stops the run with exit 2. Their scores may be bounds, so they need replicates: 1, and their runs are neither compared nor stopped early. See Reinforcement learning.
Media checks
| Type | Field | Type | Default |
|---|---|---|---|
| media_check, image_matches_reference | role | input, output or all | output |
| media_check | kind | image, audio, video or any | any |
| media_check | formats | a list of png, jpeg, gif, webp, bmp, tiff, wav, mp3, flac, ogg, mp4, webm, avi | absent |
| media_check | min_width, max_width, min_height, max_height | pixels | absent |
| media_check | min_duration_s, max_duration_s | seconds | absent |
| media_check | min_bytes, max_bytes | bytes | absent |
| image_matches_reference | reference_file | path relative to the project | absent |
| image_matches_reference | reference_field | dotted path in expected naming an image path | absent |
| image_matches_reference | max_distance | 0 to 64 | 8 |
They read the case's media/v1 items and call no model. media_check passes when every item of the role (and kind) meets every condition it declares, which needs at least one. Each fact is measured from the recorded bytes, not taken from what the system declared: the format from the file's opening bytes, image dimensions and WAV durations from their headers, and anything else (a video's size, an MP3's length) with ffprobe, whose absence stops the run. With formats, an item whose declared MIME type names another format fails too. Dimension bounds apply to images and video, duration bounds to audio and video; a case with no item a condition applies to is missing. The measured facts are kept with each judgment.
image_matches_reference passes when every image of the role looks like the reference: their 64-bit perceptual hashes (a DCT hash of the image in greyscale at 32 by 32) differ in at most max_distance bits, so a resized or recompressed copy matches and a different picture does not. Give exactly one of reference_file, one image for every case, or reference_field, a path each case's expected names; a case without that field is not applicable. It decodes images with Pillow: pip install 'oloproof[media]'.
Conversation evaluators
| Type | Field | Type | Default |
|---|---|---|---|
| conversation_judge | provider, model, rubric_text or rubric_file, and the other fields of rubric_judge | as for rubric_judge | a rubric is optional |
| turns_to_goal | max_turns | integer, at least 1 | required |
| every_turn | contains, not_contains | lists of strings | empty |
| every_turn | regex, not_regex | regular expressions | absent |
| every_turn | max_chars | integer, at least 1 | absent |
| every_turn | casefold | boolean | false |
They read a recorded conversation, and each gives one verdict per conversation, so the conversation stays the unit. conversation_completed passes when the system answered every turn. conversation_judge is a model judge of the assistant's side of the whole transcript; without a rubric it uses its built-in one (answers consistent with each other and with the reference), and it is validated against people's labels like any judge. every_turn passes when every answer the system gave meets every condition it declares, which needs at least one: it contains each of contains and none of not_contains (ignoring case with casefold), matches regex and not not_regex somewhere, and is at most max_chars long. An answer that is not text is read as its JSON, the turns recorded are the ones checked, and the answers that broke a condition are kept with the judgment as measured: lines.
goal_reached and turns_to_goal read simulated_user/v1, so they need a simulated_user. goal_reached passes when the goal check after one of the system's answers found the goal met; turns_to_goal passes when it did so within max_turns of its own messages, and fails when the goal was never met. Whether the goal was met is the simulated user's model's judgement, which the realism labels cover, so a gate on either is withheld with every rule over simulated users (simulated_user_not_validated). The default criteria are the type name, or goal_within_3_turns for turns_to_goal with max_turns: 3; system.simulated_user is above.
Predictive evaluators
| Type | Field | Type | Default |
|---|---|---|---|
| predictive_correct, predictive_recall, predictive_precision | positive | any JSON value | true, or the predictive: block's |
| same | field | output field | label, or predictive.label_field |
| same | expected_field | expected field | label, or predictive.expected_field |
| predictive_absolute_error | target_range | two numbers | required |
| predictive_absolute_error | field, expected_field | as above | label |
| predictive_brier, predictive_log_loss, predictive_ranking | positive | any JSON value | true, or the block's |
| same | field | output field | score, or predictive.score_field |
| same | expected_field | expected field | label, or the block's |
| predictive_log_loss | clip | number in (0, 0.5) | required |
A predictive evaluator that leaves positive, field or expected_field unwritten takes it from the predictive: block; a value it writes is kept.
predictive
| Field | Type | Default |
|---|---|---|
| label_field | string | label |
| score_field | string | score |
| expected_field | string | label |
| positive | any JSON value | true |
| calibration_bins | integer, at least 1 | 10 |
| thresholds | list of numbers | empty |
| average | macro or micro | absent: no aggregate |
metrics
Each evaluator criterion is already a metric. A metrics: entry adds one more, discriminated by type.
| type | Fields | What it is |
|---|---|---|
| quantile | id, source, quantile in (0, 1) | A quantile of latency_ms, first_output_ms, ms_per_output_token, input_tokens, output_tokens, cost_usd, agent_steps or agent_tool_calls. first_output_ms is recorded only for a system that streams (returns an iterator of text chunks, or stream: sse) or calls current_case().first_output(); ms_per_output_token is (latency_ms - first_output_ms) / (output_tokens - 1). A case without the value is missing, counted at its worst like every missing value, and oloproof check refuses a project whose system gives a first-output metric nothing to read. |
| ranking | id, criterion, statistic: roc_auc or average_precision | A statistic over the order of a ranking criterion's scores. |
| every_replicate | id, criterion | The share of cases that passed a pass/fail criterion on every replicate, with the exact binomial interval over cases. With replicates: at 1 it equals the pass rate. |
| every_criterion | id, criteria (two or more pass/fail criteria), on_execution_error | The share of cases that passed every one of the criteria that applies to them, scored on the same case: a failure on any of them fails the case, a criterion that does not apply is left out, a case none applies to is excluded, and a missing verdict otherwise leaves the case missing. Two rules at 99% each do not show that 99% of cases passed both; this does. The exact binomial interval over cases, or the bounded mean of each case's fraction of joint passes with replicates: above 1. |
| workload_mix | id, criterion, slice (a metadata.<key>), weights (each value's share of production, summing to 1; 0 leaves a value out), range (for a score criterion's mean) | The criterion's pass rate, or mean score, reweighted to the mix you declare: "production is 40% billing, 60% other; would the decision hold?". Each value with a positive weight is a stratum, decided by workload_mix_stratified_bonferroni@1 (each stratum's exact interval at a stricter level, summed with your weights), so every stratum must have observed cases and every case a named value, or the rule is INSUFFICIENT_EVIDENCE. The weights are your assumption, and the reach line says so. Beside the criterion's own rate; no comparison rule, clusters, replicates or early stopping. Admitted by its audit on 28 October 2026 (WORKLOAD_MIX_METHOD.md); a mix declared after an earlier run of the same version on the same suite is labelled as such (Slices). |
| worst_group | id, criterion, slice (a metadata.<key>), groups (two or more of its values), range (for a score criterion's mean) | The criterion's pass rate, or mean score, in its worst group: a minimum rule on it holds every named group to the bar at once. Each group's exact interval at level 1 - alpha / k, the minimum of the bounds (worst_group_bonferroni@1, WORST_GROUP_METHOD.md). Admitted by its audit on 2 November 2026; only a min rule may read it. Same limits as workload_mix. |
| human_score | id, criterion, scale (for example [1, 5]) | People's mean score for the whole suite, from the scores a measurement queue collected on the run's random blind sample for criterion, on exactly scale, by human_score_labels@1 (Judges). A sampled case nobody scored counts at the bottom of the scale for the lower bound and the top for the upper. |
| human_preference | id, criterion | People's net preference for the candidate over the baseline, in points, from the first paired preference draw over the two runs for criterion, by human_preference_net@1 (Judges). A comparison metric: only a comparison rule names it, and a release rule naming it is refused when the file is read. A sampled pair nobody labelled counts at -1 for the lower bound and +1 for the upper. |
| human_difference | id, criterion | People's pass rate on the candidate minus on the baseline, in points, from the first paired pass/fail draw over the two runs for criterion, by human_paired_difference@1 (Judges). A comparison metric, like human_preference. A case the candidate did not finish counts as -1; a sampled pair nobody labelled counts at -1 for the lower bound and +1 for the upper. |
| cost_per_accepted | id, criterion, cost_ceiling_usd, cost_ceiling_source | All execution cost over the cases criterion accepted, by cost_per_accepted_betting@1; a max: rule is a budget in USD per accepted case, and without an enforced ceiling it can fail and never pass (Tracing). |
# oloproof.yaml
version: 1
project: support-bot
dataset: datasets/support.jsonl
system:
name: support-bot
callable: app.bot:answer
evaluators:
- type: exact_match
criterion: correct_label
field: label
metrics:
- id: latency_p95
type: quantile
source: latency_ms
quantile: 0.95release.yaml
The release policy: which rules decide, and which decisions block. Omitted settings keep their defaults, so a policy that names only its rules still blocks on FAIL, INSUFFICIENT_EVIDENCE and MANUAL_REVIEW.
# release.yaml
version: 1
rules:
- id: label_accuracy
metric: correct_label
min: 0.8| Field | Type | Default | What it is |
|---|---|---|---|
| version | 1 | 1 | File format version. |
| confidence_level | probability | 0.95 | The level of every interval a rule reads. |
| block_on | list of decision states | FAIL, INSUFFICIENT_EVIDENCE, MANUAL_REVIEW | States that make the gate block, and set the exit code. |
| warn_on | list of decision states | empty | States that warn without blocking. Must not overlap block_on. |
| block_on_partial_run | boolean | true | Whether a run that did not complete blocks, with exit 5. |
| leakage | required or absent | absent | required: the release waits on a recorded leakage check of the run's suite (oloproof leakage check --training FILE --record) that found no case in the training data. Leaked cases, or no check, block under every policy with exit 3, as missing evidence does. A hosted workspace reads a clean check as the provider's word and holds it for a person. |
| require_approval | boolean | false | Whether a run's gate that every rule allows still waits for two approvals of the release, with exit 6 until they are given (Gating). |
| require_suite_role | release | absent | Decide only runs on a suite declared suite_role: release; any other is refused as a configuration error (exit 2). Decisions are unchanged. |
| require_validated_evaluators | boolean | true | Whether a rule over a model judge withholds its decision until the judge is validated against human labels. Deterministic evaluators are exempt. |
| minimum_evaluator_agreement | number in (0, 1] | absent: 0.70, the engine's default | The agreement with human labels a judge must reach, by its lower bound, before it may be validated or decide. 0 is refused: write judge_floor: none to check no bar. |
| minimum_simulated_user_realism | number in [0, 1] | absent | The share of a simulated user's conversations people must find realistic, by the lower bound of its exact interval, before rules decide on its conversations. Absent, no rule decides on simulated users. |
| maximum_evaluator_bias | number in (0, 1] | absent: 0.35, the engine's default | How far a judge's pass rate may sit from the people's before it may be validated or decide. |
| judge_floor | judge_floor@1 or none | judge_floor@1 | The engine's default judge bar for each of the two bars above the policy leaves unset, while require_validated_evaluators is true: agreement 0.70, bias 0.35 (Judges). none checks no bar the policy does not declare. |
| allow_approximate_methods | boolean | false | Whether a rule may decide on an interval the engine marks approximate (the clustered binary interval). Otherwise it reads MANUAL_REVIEW. |
| min_clusters | integer, at least 10 | 20 | Fewer clusters than this and a clustered rule reads INSUFFICIENT_EVIDENCE. |
| difference_method | bounded_paired_difference@1 or conditional_exact_paired_difference@1 | absent: the first | Which admitted method bounds a paired binary-rate difference. |
| early_stopping | boolean | false | Run cases in batches and stop once every rule is decided. See Gating. |
| early_stopping_seed | integer, 0 or more | absent | The seed of the case order. |
| early_stopping_batch_size | integer, at least 1 | 25 | Cases per batch. |
| rules | list | required, at least one | The rules. See below. |
| families | list | empty | Rules whose false FAILs are controlled together. |
| review_rule | mapping | absent | Refused: the wiring is not admitted yet. |
| stream | mapping | absent | Production traffic decided as it arrives: rate (above 0 and at most 1, the share of each hour's committed requests judged), budget (judged cases per UTC day, 1 to 48,000), missing_share (optional, above 0 and below 1), window (day, the only value) and reexecute (boolean, default false: the project's opt-in to consistency on traffic, which lets oloproof collect --evaluate --reexecute run each sampled input again through the declared system; left out of the digest while false) and group_rules (optional: a list of group_fairness rules on the project's declared group attribute, each with an id, a metric, min_group_rate (a worst-group floor), max_gap (the largest gap allowed between group rates), at least one of the two, max_left_out (default 0.10: above this share of the window's traffic outside every group, the window claims nothing) and max_total_variation (default 0.02: above this gap between a group's judged cases and its committed requests over the day so far, as when the hour's cap or the day's budget leaves the group's strata no room, the window claims nothing). Each group needs enough judged cases a day before a bar can decide: with two groups at 95%, about 1,908 for a gap of 0.10 and 7,609 for 0.05, and a floor needs at least 28 at 0.80 and 60 at 0.90 even when every case passes; the governance view states the figure for each rule. Each window decides by the admitted method (30 November 2026): PASS or FAIL per bar when the evidence is enough, INSUFFICIENT_EVIDENCE when it is short or the left-out or total-variation limit is passed, and MANUAL_REVIEW on the same review reasons as rate windows). Inside the policy's digest. |
| proofs | list | empty | Formal proofs the release requires. See below. |
| loss | mapping | absent | What a wrong release would cost, shown beside each pass-rate rule and never deciding. See below. |
| factorial | mapping | absent | The factors, family and rules oloproof factorial decides from one run per cell. In no digest. See below. |
rules
One list holds both kinds. A run rule takes exactly one of min, max or max_failures. A comparison rule names its kind and decides a difference between two runs; see Comparison rules.
| Field | Type | Default | Applies to |
|---|---|---|---|
| id | string | required | all |
| metric | a metric id or criterion | required | all |
| kind | interval_threshold, observed_count, superiority, non_inferiority, equivalence | inferred for run rules | all |
| min | number | absent | run rules: PASS when the interval's lower bound is at least this |
| max | number | absent | run rules: PASS when the interval's upper bound is at most this |
| max_failures | integer, 0 or more | absent | observed_count: a count over the executed suite, no interval |
| margin | number above 0, in the metric's units | absent | non_inferiority and equivalence; refused on superiority |
| direction | min or max | min | superiority and non_inferiority: whether higher or lower is better. A rule that prefers a higher flip rate (passes_when: flipped), latency, token count or cost is refused: it would prefer the worse run. |
| max_missing_fraction | number in [0, 1] | absent | interval and comparison rules |
| requires_manual_review | boolean | false | all: the rule always reads MANUAL_REVIEW |
| scope | global or a slice | global | interval and comparison rules |
| min_support | integer, at least 1 | absent | comparison rules on a slice |
| judge_bias_bar | number in (0, 2) | absent | comparison rules on a one-criterion pass rate, global scope: keep PASS or FAIL only when people's paired labels show the judge errs alike on both runs within this bar (Judges) |
families
| Field | Type | Default |
|---|---|---|
| id | string | required |
| correction | holm | holm |
| rules | list of rule ids | required, at least one |
loss
Read beside the decision and never by it: no state, release action, exit code, policy digest or gate key changes with it (Gating).
| Field | Type | Default |
|---|---|---|
| false_pass | number, 0 or more | required: the cost of shipping when the true rate is on the wrong side of the bar |
| false_fail | number, 0 or more | required: the cost of blocking when it is on the right side |
| unit | string | required: the unit both costs are in |
| prior | two positive numbers [a, b] | [1, 1]: a Beta prior on each rule's rate, your word |
| batch | mapping with size (integer, at least 1) and cost (number, 0 or more) | absent: one more batch to price |
| rules | mapping of rule id to false_pass and false_fail | empty: per-rule costs |
factorial
Read only by oloproof factorial FILE, whose file names each cell's run (factorial: {cells: [{top_k: 4, prompt: v1, run: RUN}]}). Declared here, before any cell is read, so the family is never chosen after seeing results.
| Field | Type | Default |
|---|---|---|
| criterion | a binary criterion | required: read in every cell's run |
| factors | list of {name, levels}, levels strings or integers | required: the first level is the reference |
| effects | list of effect labels, such as top_k[8 vs 4] or top_k[8 vs 4] x prompt[v2 vs v1] | every estimated effect: the Bonferroni family |
| rules | list of {id, effect, min} or {id, effect, max}, bars in [-2, 2] | required: each effect in the family |
proofs
Each entry is decided at every gate on the latest formal result held for its property: PROVED is PASS, DISPROVED is FAIL, anything else or no result is INSUFFICIENT_EVIDENCE. See Formal proofs.
| Field | Type | Default |
|---|---|---|
| id | string, unique among every rule | required |
| property | the result's property id | required |
| model | a sha256: digest | absent: any model |
| requires_manual_review | boolean | false |
# release.yaml
version: 1
warn_on: [INSUFFICIENT_EVIDENCE]
block_on: [FAIL, MANUAL_REVIEW]
rules:
- id: label_accuracy
metric: correct_label
min: 0.8
max_missing_fraction: 0.05
- id: no_regression
metric: correct_label
kind: non_inferiority
margin: 0.02
proofs:
- id: no_unauthorized_transfer
property: transfer-authorizedselect.yaml
A selection file, read by oloproof select (Choosing among candidates). It is decided under the project's release.yaml, or the policy --policy names, which may hold only run rules.
| Field | Meaning |
|---|---|
| select.candidates | Each candidate's name and either a stored run id or a project file (ending in .yaml or .yml, relative to the selection file) that oloproof select runs first, reusing cached work. Names must differ, and every candidate must run the same suite. |
| select.objective.metric | The metric ranked among the candidates that pass every rule. |
| select.objective.direction | minimize or maximize. |
| select.alpha | The family level; by default one minus the policy's confidence level. It may only be smaller. Each candidate is decided at 1 - alpha/k. |
Artifact kinds
An artifact is a typed record a system writes beside its output, such as what it retrieved. A kind is a lowercase name with an optional version, matching ^[a-z][a-z0-9_]*(/v[1-9][0-9]*)?$. Evaluators that need an artifact name it, and a run whose system does not declare a required kind is refused before it starts, rather than counting every case as missing.
| Kind | Written by | Required by |
|---|---|---|
| retrieval/v1 | current_case().retrieval(...), a @rag_system, or http.artifacts | hit_rate, recall, mrr, ndcg |
| context/v1 | current_case().context(...) or a @rag_system | citation_validity, groundedness_judge, citation_support_judge |
| citations/v1 | current_case().citations(...) or a @rag_system | citation_validity, citation_support_judge |
| agent_trajectory/v1 | current_case().agent_trajectory(...) | every agent_* evaluator, and the agent_steps and agent_tool_calls sources |
| conversation/v1 | current_case().artifact(CONVERSATION, ...), or Oloproof for a system with a simulated_user | ConversationCompleted, ConversationJudge |
| simulated_user/v1 | Oloproof, for a system with a simulated_user: how the conversation ended, which simulated user and persona, and the tokens it spent | none; read beside conversation/v1 |
| rl_episode/v1 | current_case().rl_episode(...) | episode_return, episode_success, episode_cost_within |
| media/v1 | current_case().media(...) | media_check, image_matches_reference, a rubric_judge with media; your own @evaluator with read_media |
| stage_timings/v1 | a @rag_system | none; shown beside latency |
A callable system declares the kinds it records in records: (or @system(records=...)); an HTTP system in http.artifacts; a staged RAG system records its own.
Versions, cache keys and invalidation
Oloproof reuses work whose inputs have not changed, and decides what "unchanged" means from content digests. Each is computed by the engine and recorded with the run.
| Record | Reused when these are identical |
|---|---|
| System version | name, version, config, the value of state_version when declared, and a code digest: a callable's module source, the project modules it imports (plus every file matched by code_paths) and the function's qualified name (each stage class's qualified name for a staged RAG system, and a declared environment's class), an HTTP system's url, method, output_path, artifacts and, when declared, stream and stream_path |
| Execution | the system version, the case's input and the replicate index, and the simulated user's version when the system has one. Only successful executions are reused. |
| Judgment | the evaluator version (its type and every setting) and a digest of each field it reads, as listed in the evaluator table |
| Analysis | the analysis plan, the metric, the confidence level, the suite digest and every input it counted |
| Gate | every analysis, the policy digest, whether the run completed, and the effective status of each evaluator the decisions cite |
What Oloproof cannot see is yours to declare:
- An HTTP system's behaviour lives on the server. Change system.version whenever what is behind the URL changes, or an old cached output will stand for the new system.
- A callable's own module and the project's Python modules it imports, transitively, are hashed; packages in a virtual environment or site-packages are not (change system.version when a dependency's behaviour matters). Imports are read from the source, not run, so a module imported by a name computed at run time, or a prompt or data file the system reads, is hashed only when code_paths matches it. Oloproof's own packages are never hashed, so upgrading Oloproof is not a new system version. A run that reuses answers names the project files changed since those answers were recorded (a manifest kept beside the store, outside every key), and compare says when both runs are one system version.
- A method or a callable object must declare a version, and the version must change when the object's state changes.
- A RAG index is identified by index_version; change it when the index is rebuilt.
- A model judge's identity is its settings, not the provider's weights. A provider updating the model behind the same name is not detected by the cache.
- A custom @evaluator hashes the module file that defines it, and its judgments are reused across runs only when it declares cacheable=True. Built-in rubric judges are cacheable; deterministic evaluators are recomputed, which is cheap.
Cached work lives in the project's local store, .oloproof/store.sqlite beside oloproof.yaml (or under OLOPROOF_HOME). Deleting the store discards every cache and every run. In a hosted workspace the engine does not reuse cached executions, judgments or analyses, because a push can write them; it recomputes.