Skip to content
Agent Field Notes
Practice topicsFilter practice questions by topic.All practice →
knowledge unit 30AdvancedSystem designAbout 18 minutes

Understand → Implement → Debug → Design

A judge is a fallible measurement component

Compute false acceptance and false rejection, then change order, injection and downstream action risk.

LLM-as-JudgeCalibrationDeviation

Knowledge content check2026-10-11 · Check the source of the original question2026-10-11

Which step do you want to learn from this knowledge point?

Select the starting point based on the current basis, or you can go deeper one by one. When you encounter an unfamiliar concept, go back to the core principles first; use the knowledge exercises to check your understanding when you are finished.

Understand first

New to this knowledge point

Complete the prerequisite concepts, read the principles and counterexamples, and then explain why in your own words.

Start with core principles →

Implement next

Prepare to write the principles into code

Understand implementation steps and boundaries, complete small tasks, and check results against acceptance requirements.

View the code example →

Debug failures

Need to handle failures and changes in conditions

Follow the continuous questioning to locate the failure premise, and then compare the migration cases to explain how the plan should be adjusted.

Continue to delve deeper into the problem →

Compare designs

Need to design or review plans

Combine engineering deductions and senior self-evaluation standards to explain the applicable conditions, costs and alternatives of the plan.

Analyze engineering scenarios →
Knowledge unit directory

LEARN · PRACTICE · REFLECT

Knowledge learning and personal records

My notes and review ↗

First read along the principles, Q&A and migration cases. When you need to check your understanding, switch to reinforcement exercises or start personal recording.

Answers and personal notes

Each modified commit will be kept as an independent history. Your level of mastery is up to you to evaluate yourself against the standards.

Core concept · A judge is a fallible measurement component

Understand the core principles first

Preparatory concepts:Reference labels and task-specific rubrics, Confusion matrix and downstream false acceptance, Untrusted answer text and versioned evaluation

Consistency with a judge or another grader does not establish correctness; calibration needs independent evidence and the error type relevant to the decision.

Visual guide · Calibration asks which errors are accepted

Calibration asks which errors are accepted

Agreement measures consistency, not truth. Independently labeled cases and error slices must match the downstream decision. Select the figure to open it at full size.

A high agreement can still contain dangerous false positives when negative cases are rare. Compute the confusion matrix and examine which unsupported cases were accepted. If a judge only measures style, it cannot validate an effect or an authorization predicate.

The fixture deliberately exposes these denominators and distinguishes authored math from a real calibration study. A production judge upgrade changes the measuring instrument and therefore needs shared anchors before historical score comparisons. See the evaluation design course.

Acceptance: from actual evidence to separate verdicts
  1. 1
    Task contract

    Fix inputs, required evidence, prohibited actions, and budgets. Keep labels out of model input.

  2. 2
    Run record

    Bind prompt/model/data versions; retain tool events, artifacts, and business receipts.

  3. 3
    Hard gates

    Check authorization, structure, citations, budgets, and effect counts separately. An average score cannot offset a dangerous failure.

  4. 4
    Semantic review

    Check each free-form claim. Mark this dimension not_scored when review has not been performed.

  5. 5
    Comparison

    Keep all attempts; report task counts, repetitions, denominators, failures, and unscored dimensions.

This experiment contains 8 authored tasks × 3 trials per version. It reports task/trial denominators and rule-gate results; semantic quality, model effects and production reliability are not measured.

Check understanding with a question

How do you calibrate a judge without mistaking agreement for truth?

Compare with the reference answer

Calibrate the judge against independent reference judgments and decisive checks on a representative held-out/anchor set. Version the judge and rubric; stress order, length and grading-instruction injection. Report TP/TN/FP/FN and relevant slices, not agreement alone. Judge scores do not replace resource authorization or effect evidence.

Implementation and trade-offs

The executable calibration fixture has four positive/four negative reference labels and eight authored judge verdicts. It computes TP3/TN2/FP2/FN1, agreement5/8, precision3/5 and recall3/4. An authored swapped-order vector changes two of eight verdicts. No LLM or human annotator generated these judgments; they demonstrate the math and an error-reporting format.

For real calibration, obtain independent adjudicated labels and rationale on the target claims, including supported/unsupported, partial, adversarial and alternative-valid cases. Keep decisive checks for permissions, receipts, budgets and exact facts. Judge open reasoning against explicit requirements rather than overall fluency.

Blind or randomize presentation order, test length and style pairs, include answer text that tries to instruct the grader, and preserve the raw output/schema errors. JSON wrapping separates data structurally but does not guarantee a language model ignores embedded instructions. A judge with no tools can still manipulate a release or action if its score is used downstream.

After an upgrade, rescore a shared anchor set and retain a separate held-out set. Otherwise a changed score may reflect a changed judge, not changed agent quality. Report disagreement and high-risk false positives by slice; two correlated judges agreeing is not an independent truth oracle.

code example

Reproducible local boundary check

Python 3.9+, standard library. Extract /lab/deep-dive/agent-core-deep-dive-v1.zip and run this snippet beside evaluation_deep_dive.py; /lab/deep-dive/evaluation_deep_dive.py is also available. Authored fixtures only; not a live model or external service.

from evaluation_deep_dive import demo
c=demo()['calibration']
assert (c['tp'],c['tn'],c['fp'],c['fn'])==(3,2,2,1)
print(c['agreement'],c['precision'],c['recall'])

expected output

0.625 0.6 0.75

Engineering deduction

scene
Eight authored reference/judge pairs include two negative cases accepted and one positive case rejected.
design decisions
Compute the confusion matrix and a separate authored order-swap disagreement measure.
Verify target
Agreement0.625, precision0.6, recall0.75; order-swap disagreement2/8.
applicable boundary
Actual fixture arithmetic only. No real judge, independent human labels, bias rate or production effect is measured.

Continuous questions and answers

Continue reading along with the premises and constraints of the problem. Understand the reference answers first, then try to put away the answers and explain the cause and effect and trade-offs in your own words.

Draw inferences from one example: If the conditions change, how to deduce it?

First find out the conditions for change, and then determine which premises in the original plan still hold true. The following cases are teaching deductions to facilitate the transfer of principles to new problems.

Judge citation support instead of style

Changing conditions:The judge now decides whether material claims follow from source spans.

Extended question:What new calibration labels are needed?

Derivation and reference solutions

Claim/span applicability, material exceptions, partial support, contradiction, unsupported values and source authority. Use bounded deterministic checks for exact known fields and independent semantic adjudication for open prose. Style preference does not answer support.

The principles that remain unchanged:The rubric and reference evidence must match the property being measured.

False high score triggers money movement

Changing conditions:A judge score feeds an automatic financial action.

Extended question:How should the action path change?

Derivation and reference solutions

Remove score-as-authority. Require trusted current authorization, exact approved intent and a resource-side execution protocol; use the judge as supporting review only. Evaluate false acceptance as a separate risk gate and escalate uncertain semantic facts that are required for the action.

The principles that remain unchanged:A fallible semantic score cannot grant business permission or prove an external effect.

Easy to make mistakes

  • Calling authored reference labels independent human calibration.
  • Reporting agreement while hiding false accepts on negative examples.
  • Assuming a JSON string or tool-free judge eliminates score injection.
  • Comparing historical scores across judge/rubric changes without anchors.

References

Official mechanisms were checked on 2026-10-11. Examples and schedules are authored; local Python/SQLite outputs are actually executed. No enterprise incident, live model accuracy or production reliability is asserted. New Q&A and migration cases are added for principle explanation, and source verification and case operation verification are recorded separately.

Check how far you understand

After reading, you can explain the principles, boundaries, and trade-offs against these standards. It is up to you to evaluate your mastery; if further verification is needed, complete the small tasks below.

Basic standards met
Requires reference-label calibration and recognizes agreement is not correctness.
Intermediate and advanced signals
Computes the confusion matrix and explains which error matters under downstream acceptance.
Senior criteria
Designs representative stress/anchor/held-out sets, injection isolation and action gating across judge upgrades.

View verification records for independent examples

Continue to do advanced research experiments

Let reviews read events and actual effects

Differentiate between run success, result contracts, and unscored semantic quality along actual checkpoints, events, and servicer receipts for the same research task.

Read full text and fault analysis → · Download experiment package ↓

python3 cli.py memory-put
python3 cli.py submit
python3 cli.py run
python3 evaluate.py
python3 -m unittest discover -s . -p test_lab.py -v

Keep evidence and check item by item

  • Explain the basis of passed in terms of events and checkpoints.
  • Point out credible observations of scope, references, idempotent effects, and step budgets respectively.
  • Semantic_support and model_quality are not_scored, and passed cannot be written as model quality score.

By default, deterministic summary functions and synthetic documents are used; real operating trajectories and mechanical constraints are evaluated, and there is no semantic support to verify the real model.

Hands-on verificationComplete on demand · Suggestions30 minutes

Run the calibration fixture, reconstruct its eight pairs and confusion matrix, then design an independent reference-label protocol and a grading-instruction stress pair for a citation-support judge.

Expand acceptance requirements and checkpoints
  • TP/TN/FP/FN are3/2/2/1; agreement and precision have different denominators.
  • The eight fixture labels/verdicts are identified as authored rather than human/model measurements.
  • The real calibration plan covers order, length, injection and alternative valid answers.
  • A judge verdict cannot by itself authorize payment or substitute for a receipt.

Key inspections

  • Separates agreement, acceptance precision, recall and false-positive risk.
  • Retains independent reference labels and calibration/held-out separation.
  • Tests order/length/injection and versions judge/rubric independently.
  • Restricts high-risk downstream actions to trusted policy and outcome evidence.