Trust the judge
Sooner or later someone senior asks the real question: why should a model be allowed to block our pipeline?
This section exists to answer it with mechanics and a number, not reassurance.
Reproducibility
Section titled “Reproducibility”The sharpest form of the objection is “nondeterminism has no place in CI”. Four things address it:
- Temperature 0.
- Pinned models. A named
docevals.provideranddocevals.modelin a committed config, never a floating alias. A model that changes under you is a verdict that changes under you. See Pin the model in a gate. - Structured verdicts. The judge returns JSON against a fixed schema, not prose someone parses.
- Content-addressed caching. The same page and the same assertion return the same verdict without another call.
Same inputs, same answer.
The ensemble
Section titled “The ensemble”Each ai eval runs N times independently (judge.ensembleRuns, default 3). Each run is a
separate request with no shared context, so they cannot reinforce one another. That is three
independent opinions, not one opinion repeated.
Consensus aggregates them. Two rules are deliberate and worth stating:
- A
partialverdict counts as a fail. Partial credit on a binary contract is a fail. - An errored run counts against consensus. A timeout or a provider error is not a free pass.
Both asymmetries point the same way. Errors and ambiguity can push an eval toward human review, and can never produce a silent pass. That is the safety property a skeptic is probing for.
Confidence zones
Section titled “Confidence zones”Consensus plus mean confidence decides the zone:
| Zone | Condition | Outcome |
|---|---|---|
| auto-pass | passing consensus, mean confidence ≥ judge.zones.autoPass (default 0.8) | pass |
| auto-fail | failing consensus, mean confidence ≥ judge.zones.autoFail (default 0.8) | fail |
| human review | anything between | needs-review |
This is the reframe that makes the design make sense: the judge is not being asked to be right every time. It is being asked to know when it is unsure.
Seen that way, the human-review zone stops looking like an admission of failure. It starts looking like what makes a binary verdict acceptable at all. Handling that queue is Human review.
Tightening the thresholds sends more to people; loosening sends more to automation. Do not tune them by feel. Calibrate tells you what the trade actually costs.
Binary verdicts, non-binary quality
Section titled “Binary verdicts, non-binary quality”Every eval is pass or fail. The nuance lives in the suite pass rate, where a regression suite
targets 1.0 and a capability suite targets about 0.7 instead. That makes “70% of our tutorials
explain why before how” expressible, without any eval returning a mushy score. Every failing eval
still exits 1, so a capability suite runs outside the merge gate. See
Regression vs capability.
When the judge looks wrong
Section titled “When the judge looks wrong”Nearly always, the assertion is. Before adjusting zones, ensemble size, or models, re-read the assertion against the two-reviewer test in Write good assertions. An eval that keeps landing in review is telling you it is ambiguous.
calibrate enforces this: below the agreement threshold it exits 1, and the correct response is to
refine the assertions, not the grader.
Self-preference
Section titled “Self-preference”A model grading its own output favors it. So manni docevals checks each ai eval before it is judged.
Is the judge’s model among the machines the page records for what that eval grades? The
model compared is the one that judges this eval, after its own provider: and model: and any
--model flag, not the run’s default.
There are two ways the judge can be grading its own work. The first is content: it wrote what
the eval reads. Which record answers that depends on the eval’s
target:
target | Machines compared against |
|---|---|
body (the default) | the generated-by of every provenance entry |
frontmatter | the generated-by of every meta-provenance entry that names fields |
raw | both |
{source: file, path} | none; a companion file carries its own record if it is a page |
The check covers the whole body, because target has no form that names lines. The second is
criterion. A meta-provenance entry for the judge’s model lists this eval’s id under evals,
so the judge proposed the assertion it is grading. When both hold, content is reported.
Each case warns on stderr, once per page and eval:
manni: docs/limits.md: provenance names claude-fable-5 for the body this eval grades, and it is also the judge. Self-judging favors the author; give "limits-stated" a model: of its own.manni: docs/limits.md: meta-provenance names claude-fable-5 for the fields this eval grades, and it is also the judge. Self-judging favors the author; give "description-matches" a model: of its own.manni: docs/limits.md: meta-provenance says claude-fable-5 proposed "limits-stated", and it is also the judge. Self-judging favors the author; give "limits-stated" a model: of its own.A raw eval whose match is only in meta-provenance gets the second sentence. The same sentence
is a warning-level problem in every report format, and the result carries
selfPreference: {axis: "content" | "criterion", model}.
Judge a page as its readers
Section titled “Judge a page as its readers”An assertion that says “a reader” leaves the judge to imagine who that is. A page’s personas:
already says who. One option hands that to the judge, one eval at a time:
evals: - id: fix-and-rerun assertion: A reader can fix a failing field and confirm the check passes locally. grader: ai options: readers: personasThe option works in three places, with one meaning:
| Where | What it opts in |
|---|---|
| An eval on a page or in its manifest | That eval, on that page |
A docevals.evals entry | That eval, on every page that runs it through a suite or a use: |
A use: reference | That page’s use of the library eval. Its options merge over the library’s, key by key. |
Where it runs, and where it falls back
Section titled “Where it runs, and where it falls back”The judge reads the page as its personas only when all four of these hold:
- The run judges.
--deterministic-onlyreads no record. - The eval is
grader: aiand carriesoptions: { readers: personas }. - At least one id in the page’s
personas:names atype: personarecord in a declared collection. Ids match ignoring case. - The page is not itself a record.
Anywhere else, the run is the one it was before the option existed. The prompt, the cache key, the
output and the exit code are unchanged. Nothing warns about a page that names no persona, an id no
record defines, or a repository with no records. manni strategy check reports a dangling id.
A readers value other than personas is an error where persona records exist, and the run exits
1. Where none exist, the option does nothing, as any option on an ai eval does. A misspelled
key, such as reader:, is ignored everywhere.
What the judge reads
Section titled “What the judge reads”The judge reads each persona’s descriptive frontmatter fields, rendered into a # Readers section
of its prompt. The record’s body is never read, and every other field is left out.
| Field | Rendered as |
|---|---|
title, else the id | The reader’s heading |
description | The paragraph under the heading |
name, role, team-context | Name:, Role: and Team context: lines |
proficiency, prerequisites, goals, pains, content-types | A labelled list each |
A string renders as one line and a list of strings as a list. Any other value is left out. These
are the field names this repository’s persona schema uses. A schema with other names gives the
judge only title and description.
The prompt tells the judge the assertion holds only when it holds for every reader. A page naming three personas still gets one verdict per eval, and that eval costs what it did before.
Read the tag
Section titled “Read the tag”A judged result read as personas says so. Pretty adds the ids after the zone, and JSON adds a
personas list to the result:
FAIL fix-and-rerun [auto-fail] (read as theo) docs/src/content/docs/meta/fix/index.meta.yaml:16No tag means the judge read no persona. After opting an eval in, look for the tag. If it is missing, the page names no record, or the run did not judge.
Keep the fields short. A page naming four personas adds all their fields to each opted-in eval’s prompt. A prompt too long for a small local model errors the eval.
A library eval opts in every page that runs it. Run manni docevals list --eval <id> first, to see
which pages re-judge once you opt it in.
What runs where
Section titled “What runs where”--deterministic-onlyskips the judge entirely. No provider, no cost, and the right default for forks and pre-commit hooks.--ai-onlyruns only judged evals.--runs <n>overrides the ensemble size for a run.--no-cacheforces fresh judging.
The pages here
Section titled “The pages here”| Page | Answers |
|---|---|
| Calibrate | “Is the judge actually agreeing with us?”, with a number |
| Human review | “Who clears the queue, and does it persist?” |
| Choose a provider | “Can we run this without sending pages to a vendor?” |