PROMPT · quality-cd
LLM judge: calibrated grader prompt
A judge prompt template that grades one dimension per judge against a structured rubric, returns a machine-parseable verdict, and ships with the calibration procedure that makes its opinions trustworthy.
✓ verified 2026-07-18 · stack: claude-code · source
Code graders come first: if a property is mechanically checkable, check it mechanically. An LLM judge is for the properties that survive that filter (tone, faithfulness to a source, plan quality), and Anthropic’s guidance is specific about the shape: “create clear, structured rubrics to grade each dimension of a task, and then grade each dimension with an isolated LLM-as-judge rather than using one to grade all dimensions” (demystifying evals). One judge, one dimension, one rubric, and a way out.
You are grading one dimension of an agent transcript: FAITHFULNESS.You grade nothing else. Do not reward or penalise style, length, orformatting.
## Rubric
Score the response against the source material provided:
- PASS: every factual claim in the response is supported by the source material. Paraphrase is fine; invention is not.- FAIL: at least one factual claim is absent from or contradicted by the source material. Quote the offending claim in your reason.- UNKNOWN: the source material is insufficient to judge one or more claims. Say which claims. Never guess: an honest UNKNOWN is worth more than a confident wrong verdict.
## Output
Return exactly this JSON and nothing else:
{"dimension": "faithfulness", "verdict": "PASS|FAIL|UNKNOWN", "reason": "<one sentence, quoting evidence>"}
## Material
Source material:<source>{{SOURCE}}</source>
Response under evaluation:<response>{{RESPONSE}}</response>What it does
- One dimension per judge. Grading several dimensions in one call lets a strong showing on one bleed into another. Run one judge per dimension and aggregate the JSON verdicts in code.
- UNKNOWN is a first-class verdict. The guidance is explicit: “give the LLM a way out, like providing an instruction to return ‘Unknown’ when it doesn’t have enough information”. Treat UNKNOWN rates as a signal about your eval inputs, not as noise.
- Machine-parseable output. The single-line JSON contract means the suite can aggregate verdicts, track pass rates over time, and diff judge behaviour across model versions.
- Calibration before trust. Before the judge’s verdicts count: grade 20 to 30 transcripts by hand, run the judge on the same set, and compare. “LLM-as-judge graders should be closely calibrated with human experts to gain confidence that there is little divergence.” Disagreements are rubric bugs; fix the rubric and re-run. Once aligned, “it’s sufficient to use human review only occasionally”: keep a small refresh sample per quarter.
Failure modes
- Judge drift on model upgrades. A judge is a model plus a rubric; change the model and the calibration is stale. Re-run the calibration set whenever you move the judge to a new model, and pin the judge model independently of the model under test.
- Grading the wrong artifact. Judges grade transcripts or outputs, not intentions. If the property you care about is visible in the final tree (file exists, tests pass), that is a code grader’s job and this prompt is the wrong tool.
- Rubric leakage. Never show the judge the model-under-test’s identity or the expected verdict distribution; both bias it.
- Self-grading. The same session that produced the work should not judge it; run judges in a fresh context so the justification pressure of the working session cannot leak in.
Verified against the grader hierarchy, isolated-dimension guidance, the Unknown escape, and the human-calibration requirement at anthropic.com/engineering/demystifying-evals-for-ai-agents, 2026-07-18.