How-To Guides
How to Choose an Evaluator and Calibrate a Judge with TEA
How to Choose an Evaluator and Calibrate a Judge with TEA
Section titled “How to Choose an Evaluator and Calibrate a Judge with TEA”Bottom line: Use this guide to choose how an existing evaluation judges the target’s evidence, and to calibrate its scorer when the contract uses a rubric. You confirm the evaluator choice and example labels; the Evaluate skill prepares the files, and check validates them. Follow the selected evaluator’s verification route before trusting its results. Rubric calibration and sealed-brief-agent qualification are separate gates; eval-quality produces the formal verdict.
When to Use This
Section titled “When to Use This”- Your oracles are checks over exit codes, output text or response bodies and you want the simplest layer
- You already own code or a framework that grades your target’s output
- A behavior needs a scale such as “names exactly one verdict” and a judge must apply it
- A run stopped with
judge calibration agreement fell belowand exit 11
Prerequisites
Section titled “Prerequisites”- An evaluation folder whose contract, oracles and registry pass
checkandpreflight - The Evaluate skill, to author the files below with you
- For a model judge or a sealed-brief agent: the model’s immutable provider ID and its credentials
1. Choose the Evaluator Kind
Section titled “1. Choose the Evaluator Kind”evaluation.json names the layer in evaluator.kind.
A folder that names none uses deterministic.
| Kind | Who judges | Needs a model | Choose it when |
|---|---|---|---|
deterministic | TeA resolves the contract’s checks over the captured observations | Only for a rubric judge | Every oracle is a check over a channel, and you want a pr tier |
command | Your executable reads the sealed brief and observations and prints rows | Optional | You own grading code or wrap a framework such as AgentEvals |
sealed-brief-agent | An agent chooses its own calls through TeA’s bridge and judges the result | Yes | Judging needs an agent that explores the target |
records | Your own harness runs the target and seals the records | Depends on the harness | You already run the target in a harness and want its records kept |
Start the Evaluate skill and ask it to choose with you:
- Claude Code / Cursor / Windsurf:
/bmad-tea-evaluate - Codex:
$bmad-tea-evaluate - Inside a
/bmad-teachat:EV
Choose the evaluator for evals/refund-review.The skill weighs what evidence you need, whether a model must judge it, and whether the choice fits your CI schedule and budget. It records the reasons next to the folder.
2. Review the Evaluator Setup
Section titled “2. Review the Evaluator Setup”The skill records the choice in evaluation.json and runs check to catch missing files or conflicting settings.
A command evaluator names the grading program, a sealed-brief agent names its model, and a records evaluator names the output from your own harness.
Confirm that the selected program, model or records folder is the one you intend to use.
A command evaluator that wraps a framework follows How to Bring an Existing Suite.
The evaluation layer lists the fields for each kind.
3. Route the Rubric by Evaluator Kind
Section titled “3. Route the Rubric by Evaluator Kind”Who scores a rubric depends on the kind, and check refuses a judge block that would never run:
- No rubric in the contract: add no
judgeblock and skip to step 7. deterministicwith a rubric: TeA’s separate judge scores it. Continue with step 4.commandorsealed-brief-agentwith a rubric: your evaluator scores the rubric itself. Omitjudgefromevaluation.jsonand frompolicy/evaluator-conditions.json, skip the judge settings in step 4 and label examples as in step 5. A sealed-brief agent must also pass its own qualification before trials, a gate separate from calibration.recordswith a rubric: your harness runs its scorer over the labeled examples and writescalibration-judgments.jsonbeside its records. TeA checks the bindings and computes agreement from the harness’s answers; the scorer runs only in your harness. Omitjudgeas forcommand, skip the judge settings in step 4 and label examples as in step 5. ApartitionPlanbeside arecordsrubric is refused. Calibrate any rubric covers the harness side.
4. Review the Rubric Judge
Section titled “4. Review the Rubric Judge”A contract scores a judgment with a rubric. Each criterion names the evidence it reads, and each scale level carries an anchor that says what earns it:
{ "id": "R-101", "scaleLevels": [ { "level": 0, "anchor": "stdout names no verdict, or names more than one." }, { "level": 1, "anchor": "stdout names exactly one verdict, accepted or rejected." } ], "failureModePenalties": [{ "name": "verdict-hedged", "description": "stdout names two verdicts, which scores as naming none." }], "maxLength": 200, "criteria": [{ "id": "RC-101", "text": "Does the answer name the one verdict it reached?", "evidence": "/interactions/judge-run/stdout" }]}With the deterministic evaluator, confirm the model and the minimum agreement it must reach:
{ "judge": { "agent": "claude", "model": "claude-sonnet-5-5", "timeoutMs": 120000 }, "judgeCalibration": { "minimumAgreement": 0.9 }}Use an immutable model ID when the provider offers one, so later runs use the same model. The skill records that ID with the evaluation and checks that the recorded value matches the model it runs. The rubric judge explains the configuration.
5. Label the Calibration Examples
Section titled “5. Label the Calibration Examples”You label responses with the level each deserves in policy/judge-calibration.json.
Write at least one example for every anchored level of every criterion, including the failing ones:
{ "items": [ { "rubricId": "R-101", "criterionId": "RC-101", "response": "verdict: accepted", "expectedLevel": 1 }, { "rubricId": "R-101", "criterionId": "RC-101", "response": "verdict: rejected", "expectedLevel": 1 }, { "rubricId": "R-101", "criterionId": "RC-101", "response": "verdict: accepted and rejected", "expectedLevel": 0 }, { "rubricId": "R-101", "criterionId": "RC-101", "response": "no verdict here", "expectedLevel": 0 } ]}The scorer receives each response without its expectedLevel.
6. Run and Read the Calibration
Section titled “6. Run and Read the Calibration”npm exec --prefix evals -- tea-evaluate run --evaluation evals/verdict-mutationrun scores every example before it records a single trial: through TeA’s judge for deterministic, through your evaluator for command and sealed-brief-agent, and from your harness’s judgments for records.
When agreement falls below your minimum, run stops with exit 11:
tea-evaluate run: judge calibration agreement fell below 0.9; see judge-calibration.json (exit 11, /work/app/evals/verdict-mutation/runs/20261007T091256520Z-703c4c1e)judge-calibration.json shows which examples disagreed with your labels.
In this example, a stand-in judge gives the highest level to every answer.
It matches two of four labels, so its agreement is 0.5 against a required 0.9.
Read the items that disagree. Each one has a cause you can repair:
- The anchors do not separate the levels. Ask the skill to sharpen them, then rerun.
- A label is wrong. Correct the label with the skill and rerun.
- The scorer is too weak for the scale. Choose a stronger model or scorer and ask the skill to update the recorded ID before rerunning.
minimumAgreement is the share of labels the scorer must match, so it sets how much disagreement you accept, a separate decision from the labels.
Do not lower it to pass calibration; if you change it, record why that much disagreement is acceptable for this use.
The calibration file’s digest and the minimum agreement join the evaluator configuration, so changing either changes the scoring version.
When the scorer meets the minimum, run continues into the trials.
7. Verify the Layer
Section titled “7. Verify the Layer”Rerun preflight after the change, then run and score one clean control and one seeded defect.
Rely on the layer once eval-quality reads the control as passed-clean-control and the defect as caught.
How You Know It Worked
Section titled “How You Know It Worked”checkprintshas no authoring defectsfor the chosen kind- The known pass reads
passed-clean-controland the known defect readscaughtafterscore - With a rubric:
runpasses calibration, andjudge-calibration.jsonin the run folder shows an agreement at or above your minimum for every criterion - With a sealed-brief agent:
runqualifies the evaluator before its trials
Related Guides
Section titled “Related Guides”- How to Bring an Existing Suite: Wrap AgentEvals, promptfoo or another framework in a
commandevaluator - How to Read the Gaps and Fix Them: Interpret a weak result after scoring
- How to Evaluate a Skill or Agent: The full first run
Reference
Section titled “Reference”- tea-evaluate CLI: Every command, option and exit code
- run
- Exit codes
- How Evaluate Works: Why judges are calibrated and what held-out probes add