Skip to content

Concepts — why this refuses things

The tooling is small. The discipline is the product. Each rule below is enforced in code, and each exists because its absence produced a wrong answer that nobody noticed.


Three inputs, or the number means nothing

Every run records three things:

input field drop it and…
system under test build.ref you cannot tell a code change from an eval change
system system_id (the system's id) you cannot tell a change to what was evaluated from a code change
data dataset_id you cannot compare anything to anything

evh validate fails on a run missing any of them. EVAL_BUILD_REF sets the first when the project is not the system under test, or is not a git repository — a version, an image digest, a pinned dependency ref, whatever actually identifies the thing being measured.

Pin it. An eval against a moving target measures the target's movement, and you will lose a day attributing that to your change.


dataset_id is a contract, not a label

A metric compared across two different dataset_ids is not a comparison. It is a coincidence.

evh run-compare refuses outright when the two runs disagree. Not a warning — a refusal, because a warning above a number that looks authoritative gets scrolled past. The one comparison across datasets is evh pair-test … --b-dataset between two versions of one dataset, and it checks that they pair (same item ids, same reference text for each, one metric) and says it is a cross-version comparison.

This is also why sources/ is immutable and why a dataset records a sha256 per item. If an input changes under a frozen dataset, every number already reported against it is describing bytes that no longer exist. evh dataset-materialize re-verifies every hash and fails loudly rather than quietly measuring something else.

What a dataset holds can be shown without its text, which its licence may not let you publish: evh dataset-profile --dataset-id my_corpus_v1, where it is materialized, writes data/profiles/my_corpus_v1.json (how many items and how long, the gold's labels or shape, each item's link to its source when one is recorded). Commit it, and the dataset's catalog page shows "what's inside"; evh dataset-items prints it.

When data genuinely changes, that is a new version — my_corpus_v2 — never an edit in place. The new version names the one it came from (--from my_corpus_v1) and records the items it adds, removes and changes, so "what changed between v1 and v2?" has an answer that is not a diff someone has to remember to run.


Fields describe an item; they do not identify it

What you know about an item (the product area of a ticket, the show an episode came from, its length) belongs with the item, typed and checked, not in a spreadsheet beside the dataset that drifts from it. So a project declares its fields in a field set and the dataset carries the values. But a field is a description, not the bytes that were measured: correct a title and every run measured on that item is still a measurement of the same item. The fingerprint therefore hashes the items' bytes and ignores their fields, and the dataset records a separate hash of its fields, so a change to them is visible without invalidating anything.

A field is also what makes "better on long episodes, worse on short ones" testable. Breaking a comparison into groups is several comparisons at once, though, so the per-group tests are corrected together: a group is held to a stricter threshold than it would be alone.

Measure the arm's own noise before believing any delta

evh run --system ... --dataset ... --repeat 3
Arm spread over 3 repeats (max - min on identical input):
  overlap_f1   spread=0.043888   treat deltas below 0.043888 as noise

Noise can be wider than the deltas under discussion, and only an arm measured against itself shows it: run --repeat 3 before trusting a delta.

run-compare takes --noise and marks anything at or below it as noise. Omit it and the tool nags, because a delta judged against nothing is not evidence.

--noise 0 is a real answer — it means the arm is deterministic — and is treated differently from omitting the flag.


Gold is not silver, and a label is not a reference

A label says what is right for one item, and who said it: a person, a model (a run's outputs) or a rule (what happened afterwards, mapped by rules you commit). Labels come in sets, never edited, and follow an item by its bytes into any dataset that holds it. When more than one answer is right, a label accepts each, and two labels agree when they accept the same answers. A reference is labels you promote, on purpose, with a reason, at the tier you choose then:

tier means
gold the yardstick a decision rests on: usually a person's labels you would sign.
silver consistent, not a claim that any arm is right: good for ranking arms against each other, often a strong model's labels.

No rule ties the tier to the source: a person's labelling can be poor, and is then simply never promoted. The reference records its source beside its tier, and every view names both: a tier pill for a reference, a source chip for a label set. Arms can be scored against a label set without promoting it, so evaluating new data never makes a reference.

Silver is a legitimate starting point: it lets you rank arms against each other today. It is not a claim about correctness, and a number scored against it must say so.

Every run records reference_tier. The manifest beside the references carries the caveat in full, and a reference promoted from a model's labels names the run they came from. The failure this prevents is quiet: silver numbers get quoted in a decision six months later as though they were ground truth, and the model that authored them is the one being evaluated. That is why the leaderboard marks the arm that wrote the reference it is scored against, and why a goal page never makes it the leader: its row measures agreement with itself.


Re-measuring a frozen eval

A run's outputs are the expensive, frozen record; its scores are arithmetic over them. So an eval can be measured again, without regenerating anything, when a better instrument arrives. There are three kinds:

kind what changes cost how
new reference what an output is scored against, e.g. gold adjudicated by a person $0 evh rescore --reference-id …
new code scorer the metric, written as code $0 evh rescore with the new scorer
judge scorer the metric, delivered by a validated model billed evh judge-score (ADR-0001, RUNBOOK §12)

Two rules hold for all three. The originals are never overwritten: a re-measurement is written as a score of its own under the run it re-read (data/runs/<run_id>/scores/<scorer>@<reference>/), read under a label (rescored <scorer>, judged/<scorer>) which the goals and rounds then read the arm from, and evh leaderboard --label reads it. evh score-preview shows what a scoring change would move before anything is written. And an eval's primary measurement changes only by a recorded decision, with the old one kept beside it. In this repository AG News and DBpedia keep the dataset's own gold as primary, because anyone can repeat it, and report the adjudicated gold beside it.


Cost and speed are part of quality

A run records latency_ms, tokens_in, tokens_out and cost_usd per item, and totals for the ones you are billed for. The harness times every call itself, so an adapter that reports nothing still records its speed. "Model B scores higher" and "model B scores higher and costs 4× per item" are different findings, and only one of them is a decision.

A call's cost is the provider's bill when its response carries one (OpenRouter, and a LiteLLM proxy that passes usage.cost through), and otherwise the system's prices × tokens. Prices live in the arm's system, not in code, so a run records the prices it was costed at. A figure computed from today's price list is not comparable to one from last quarter without saying so. An adapter that measures the cost itself names its source in the result's meta["cost_source"] (a gateway key's spend, say), and the run says so where it reports its spend. Which provider records which: RUNBOOK §4.


A baseline is a decision

evh run-promote refuses three things:

  • a run from a dirty tree — its build.ref does not describe what ran
  • a run whose build is unknown — a different and worse problem, so it takes its own flag
  • a reason under three words — because "why is this the baseline?" must have an answer in six months

A baseline is a goal's line on a dataset: data/baselines/<goal>/<dataset>/<n>.json, or data/baselines/_dataset/<dataset>/<n>.json for a dataset's own, a run with no goal. A version is written once and never edited; a promotion is the next version, and evh baseline-rollback restores an earlier one as a new version, with its own evidence. The current one is the highest, and the versions keep what the baseline was, and when. A baseline carries what its number means (the reference tier it was scored against, the adapter, the run's fingerprint), so a baseline scored against silver cannot pass for one scored against gold.


A comparison is named before the results are read

A paired test answers one question, and its p-value means that only if the question was asked before the answer was seen. Pick the best of eighty arms after reading the table and the same test is a search: some pair will look different. So the harness corrects what it chose itself (pair-test --round tests the round's leader corrected for the arms in play), and leaves the uncorrected test to the comparison that was named in advance. The hypothesis: block in an arm's system records the naming. It sits beside the change it predicts (against which system, on which measure, in which direction, and why), and a run copies it into its record together with whether the commit that last changed it came before the run. pair-test then says "named in advance: yes (committed 1a2b3c4d before the run)", no, or not determinable (outside git, or on a dirty tree, where the system on disk may not be the committed one), and whether the result agrees with the stated direction. A hypothesis does not change what was measured, so it is not in the fingerprint. It is a record, not a proof: it shows the prediction was committed before the run, not what its author had already read when they wrote it.


A goal says what the evaluation is for

A number answers a question only if someone wrote the question down. A goal names who uses the output, the decision it informs, the measure that decides it and which way is better, and the datasets it rests on; a run names its goal (evh run --goal), and records it. It is optional until a project sets a date from which every run must name one (required_from). The catalog's goal page says first what the goal is for, then its answer (the latest round's conclusion, the promoted baseline and why, or "no decision yet"), then how it got there, round by round. Every field of a goal file and its allowed values: RUNBOOK §4c.


A round records a decision, not just a result

Evals go round on round, and the reasons an arm was dropped are the first thing lost. An optional round (ADR-0004) records what it set out to learn, what changed, which arms it carried in and which it dropped and why, and what it concluded. evh round-evidence suggests the next decision from the evidence, as a command; it never makes one. A closed round refuses new runs, so its evidence cannot grow after its conclusion. A later run of one of its arms' systems is named "since then" and not read into the round.

A round also records the scorer it is judged by. Scoring may change between rounds (a rule the evaluation got wrong, found by looking): the change is a step of its own, re-scoring the round's arms at $0 or adopted by the next round, recorded with why (RFC-022).


A model is set up once, where it runs

A model that reasons by default, cuts its answers at a reply cap, or answers in a format the system does not read is measured as broken when it is only unset. So a model is set up once, before any eval uses it, in a record of its own (data/models/<id>.yaml): what it is, the settings that hold whatever the task, each with why, and its deployments, each place and build it runs. evh model-onboard probes each deployment and writes what it found; evh arm-smoke runs an arm on a few items before its full run. A model is vetted when an arm that names it passed its smoke on the task's own items. What a deployment always raises, a hosted gateway's unpinned build for one, is accepted on that deployment with why, never hidden (RUNBOOK §16, RFC-020).


A fingerprint says what was measured, not where evh ran

The same deployment run from two laptops is the same measurement; the same laptop calling two builds is not. So a run's fingerprint is four parts, each hashed: the instrument (the harness and the adapter's code), the data, the deployment (the weights, the server, where the system ran) and the settings (the parameters that change its behaviour). The machine evh ran on is the runner, recorded beside the hash and outside it. evh run-compare names the part that moved (RFC-021).


Production is evaluated; the governed datasets decide

Gold and silver are what you govern: the datasets and references a decision rests on. What a system did in production, once deployed, is what you evaluate against them: the most realistic test data there is, and the least trustworthy label. A capture keeps the records as they were, hashed; a dataset is frozen from a selection of them; production's own decisions become an arm, scored like any; what happened afterwards (an issue closed as fixed) becomes a rule label set, and you or a model label the rest. None of that is a reference until you promote it (RUNBOOK §15, §15b).

From production back to the governed datasets is a choice, item by item: the rows where production was wrong, or saw something the governed dataset never had, are picked, and the next version of the governed dataset is made from its items and the picks you choose, with where each came from. The deploy sheet says what production must match to run what you promoted, and a capture says whether it did. Production goes on after a capture: the next capture continues from it, and a fresh capture of the same records gives their newer outcomes, for a new label set; a frozen dataset never moves.


An agent works when asked; a person owns the decision

An agent with a shell runs the same commands you do and reads them with --json; one without a shell, or a team's, reads them through evh mcp (INTEGRATION). Either way each answer comes from the command itself, so the agent's numbers are yours, refusals included.

What an agent may do (the rule written into the AGENTS.md evh init gives every project): run arms, make labels and references, and promote a baseline, when its operator asked for that task, and only under a spending cap (EVAL_MAX_COST_USD). A promotion's reason says who asked and why, so the record shows whose decision it was. Closing a round fixes its evidence, and anything past the cap spends what was not agreed: those stay the operator's, and the agent hands over the exact command. evh mcp's tools read; only study-ask and study-tell, a local server's agent sampler for a study, write (the study, and a trial it runs). (What a call does write is computed answers in the project's ignored .cache/: the paired tests' p values and family-test's results.) Every record also says who acted (RFC-027): a person, or an agent and the person it acted for (EVH_ACTOR=agent:NAME, EVH_FOR=person:NAME, or --by). It is a recorded claim, not an identity, and the harness records rather than asks for consent: a decision (promoting, closing a round, unsealing) only needs a named actor, never an unknown one.

A shared server answers anyone who can reach it, so --public holds back what a project may not redistribute (an item's text), and the rates bound what a script can cost the machine.


Two arms cannot agree to full precision

evh validate fails when two different systems report byte-identical scores and per-item results on the same dataset. Independent arms do not agree to seventeen significant figures; when they do, one of them is not its own measurement — a copied number, a mis-wired arm, a cached result. Two arms that are both perfect on a binary metric agree on every score too, so their outputs decide: different outputs are two measurements, not a copy.


Why so many refusals

A tool that always produces a number teaches people to trust numbers. The refusals are the part that makes the numbers worth trusting — they are the difference between a measurement and a plausible-looking figure.

If a refusal is wrong for your situation, override it explicitly and say why in the reason field. That override is then recorded, which is the point.