Skip to content

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.

  • 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 below and exit 11
  • An evaluation folder whose contract, oracles and registry pass check and preflight
  • 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

evaluation.json names the layer in evaluator.kind. A folder that names none uses deterministic.

KindWho judgesNeeds a modelChoose it when
deterministicTeA resolves the contract’s checks over the captured observationsOnly for a rubric judgeEvery oracle is a check over a channel, and you want a pr tier
commandYour executable reads the sealed brief and observations and prints rowsOptionalYou own grading code or wrap a framework such as AgentEvals
sealed-brief-agentAn agent chooses its own calls through TeA’s bridge and judges the resultYesJudging needs an agent that explores the target
recordsYour own harness runs the target and seals the recordsDepends on the harnessYou 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-tea chat: 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.

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.

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 judge block and skip to step 7.
  • deterministic with a rubric: TeA’s separate judge scores it. Continue with step 4.
  • command or sealed-brief-agent with a rubric: your evaluator scores the rubric itself. Omit judge from evaluation.json and from policy/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.
  • records with a rubric: your harness runs its scorer over the labeled examples and writes calibration-judgments.json beside its records. TeA checks the bindings and computes agreement from the harness’s answers; the scorer runs only in your harness. Omit judge as for command, skip the judge settings in step 4 and label examples as in step 5. A partitionPlan beside a records rubric is refused. Calibrate any rubric covers the harness side.

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.

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.

Terminal window
npm exec --prefix evals -- tea-evaluate run --evaluation evals/verdict-mutation

run 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.

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.

  • check prints has no authoring defects for the chosen kind
  • The known pass reads passed-clean-control and the known defect reads caught after score
  • With a rubric: run passes calibration, and judge-calibration.json in the run folder shows an agreement at or above your minimum for every criterion
  • With a sealed-brief agent: run qualifies the evaluator before its trials