Sub topic 15
Pinning and Re-validating the Judge Over Time
A judge score is only comparable across weeks if the judge stays the same. This chapter covers why it changes, how to pin it, and how to check it again after any change. It assumes you have read the earlier chapters on rubrics, structured output, and validating a judge against human labels. You should be able to read Python and understand proportions and averages.
Why the judge changes under you
A judge is a model plus a prompt plus settings. If any of those three moves, the scores move, even when the system you are grading has not changed. This is judge drift: a change in the judge's behavior over time that you did not intend and may not notice.
Common causes:
- Model alias updates. Many providers offer an alias such as
latestor a family name that points to a newer snapshot after a release. Your code is unchanged, but the model behind it is different. - Model retirement. A provider deprecates a snapshot and you are forced to move to a successor.
- Silent serving changes. Providers can change infrastructure, safety filters, or system-level behavior. Some do this without a new version name. You can only detect this by measurement.
- Prompt edits. Someone fixes a typo in the rubric or adds an example. This changes the judge, even if the edit looks harmless.
- Settings changes. A new default temperature, a different maximum output length, or a changed output format all affect verdicts.
- Parser changes. If the parser starts accepting a new format, rejected verdicts may turn into scores.
The risk is that a trend on your dashboard may be a judge change and not a quality change. A pass rate that rises from 78% to 84% after a model upgrade could mean your product improved, or only that the new judge is more lenient.
Pin everything that defines the judge
Pinning means fixing each input so the judge is reproducible. Treat the judge as a versioned artifact, like a library dependency.
| Component | What to pin | Why |
|---|---|---|
| Model | A dated snapshot identifier, never an alias | Aliases move without notice |
| Prompt | The full rubric and template text, stored in version control | Small wording changes shift scores |
| Settings | Temperature, top-p, max tokens, seed if supported | Variance and truncation depend on them |
| Output schema | The JSON shape and the parser version | Parsing rules decide which verdicts count |
| Anchor set | The human-labeled examples used for validation | Needed to re-check agreement later |
Pinning is not a guarantee. Providers retire snapshots, and some settings, such as a seed, give only best-effort determinism. Pinning delays the problem and makes it visible. It does not remove it.
Record a judge fingerprint with every score
Store enough metadata with each verdict that you can later tell which judge produced it. A simple way is to hash the prompt and settings into one fingerprint.
import hashlib
import json
JUDGE_CONFIG = {
"model": "example-judge-2026-03-01", # a dated snapshot, not an alias
"temperature": 0,
"max_tokens": 200,
"rubric_version": "faithfulness-v3",
"parser_version": "1.2",
}
def judge_fingerprint(config, prompt_template):
payload = json.dumps(
{"config": config, "prompt": prompt_template}, sort_keys=True
)
return hashlib.sha256(payload.encode("utf-8")).hexdigest()[:12]
def record_verdict(store, example_id, verdict, config, prompt_template):
store.append(
{
"example_id": example_id,
"score": verdict["score"],
"judge": judge_fingerprint(config, prompt_template),
}
)
store = []
template = "Score the answer from 1 to 5 for faithfulness to the context."
record_verdict(store, "ex-001", {"score": 4}, JUDGE_CONFIG, template)
print(store)With the fingerprint stored, you can refuse to plot two runs on the same trend line if their fingerprints differ. You can also filter old scores by judge version when you investigate a jump.
Re-validate after every change
Re-validation means repeating the agreement check from the earlier chapter on human labels, using the same fixed anchor set. The anchor set is a collection of examples that humans have already labeled. You run the new judge on it and compare.
Run re-validation:
- Whenever any pinned component changes, including a forced model migration.
- On a schedule, such as monthly, even when nothing is known to have changed. This catches silent serving changes.
- Before you trust a result that crosses a judge change, such as a before and after comparison.
Compare the new judge to both the humans and the old judge. These are separate questions. Agreement with humans tells you whether the new judge is still good. Agreement with the old judge tells you whether old scores can be compared with new ones.
from collections import Counter
def cohens_kappa(a, b):
n = len(a)
observed = sum(x == y for x, y in zip(a, b)) / n
ca, cb = Counter(a), Counter(b)
expected = sum(ca[k] * cb[k] for k in ca) / (n * n)
return (observed - expected) / (1 - expected)
def revalidate(human, old_judge, new_judge, min_kappa=0.6, max_shift=0.05):
kappa_human = cohens_kappa(human, new_judge)
kappa_old = cohens_kappa(old_judge, new_judge)
old_rate = sum(v == "pass" for v in old_judge) / len(old_judge)
new_rate = sum(v == "pass" for v in new_judge) / len(new_judge)
shift = new_rate - old_rate
return {
"kappa_vs_human": round(kappa_human, 3),
"kappa_vs_old_judge": round(kappa_old, 3),
"pass_rate_shift": round(shift, 3),
"ok": kappa_human >= min_kappa and abs(shift) <= max_shift,
}
human = ["pass", "pass", "fail", "pass", "fail", "fail", "pass", "fail", "pass", "pass"]
old_j = ["pass", "pass", "fail", "pass", "fail", "pass", "pass", "fail", "pass", "pass"]
new_j = ["pass", "pass", "pass", "pass", "fail", "pass", "pass", "pass", "pass", "pass"]
print(revalidate(human, old_j, new_j))The thresholds here (min_kappa=0.6, max_shift=0.05) are illustrations. Choose yours from the cost of a wrong decision in your own setting, and write them down before you run the check. Picking them after you see the numbers invites rationalizing.
In the example, the new judge passes more items, so its pass rate shifts upward, and its agreement with humans falls. That combination suggests a more lenient judge, which is a common drift pattern.
Account for noise in the check
A small anchor set gives noisy agreement numbers. Before you decide a new judge is worse, apply the earlier chapter on confidence intervals. A drop in kappa from 0.72 to 0.66 on 40 examples may be within noise. A drop to 0.45 probably is not. If the result is ambiguous, add more anchor examples before you decide. Do not retest repeatedly on the same set until a result looks good.
Keep old and new scores comparable
When you must change the judge, you have three options, and each has a cost.
- Re-score history. Run the new judge over past outputs you saved. This gives a consistent trend line but costs compute and requires that you stored the original outputs and inputs.
- Overlap period. Run old and new judges side by side for a few evaluation cycles. You can estimate the offset between them and report both.
- Break the series. Mark the change on the trend line and start a new baseline. This is cheap and honest, but you lose continuity.
Never splice scores from two judges into one unlabeled line. The most common mistake in this area is a gradual quality "improvement" that is actually a judge upgrade.
Maintain the anchor set
The anchor set is part of the safeguard, so it needs care of its own.
- Keep it frozen. Add new examples in versioned batches. Do not edit labels without recording why.
- Keep it representative. If your product starts handling new kinds of inputs, the anchor set should include them. A judge validated on last year's traffic may fail on this year's.
- Keep it hidden from prompt tuning. If you use anchor examples as few-shot examples in the judge prompt, the judge is being tested on its own training material. Hold out a separate validation portion.
- Include hard cases. Borderline answers show drift first, because a stricter or more lenient judge disagrees with humans mostly at the margin.
Common mistakes
- Using an alias such as
latestfor the judge model. - Changing the prompt and the model in the same release, so you cannot tell which caused a score change.
- Re-validating only on agreement rate, without checking the pass-rate shift. A judge can agree with humans on most items and still move the headline number.
- Treating a forced migration as routine. Retirement notices are the highest-risk moment, because you have a deadline and are tempted to skip validation.
- Not saving model outputs, which makes re-scoring history impossible.
Exercises
Exercise
Your dashboard shows the faithfulness pass rate rising from 78% to 84% the week after the provider announced a new default model. The judge configuration uses the alias latest. List two checks you would run before reporting this as a product improvement.
Show answer
First, find out whether the model behind the alias changed, using the stored judge fingerprint or provider release notes. Second, run the current judge on the frozen anchor set and compare its agreement with human labels and its pass rate against the earlier values. If the pass rate on the anchor set also rose while agreement with humans fell, the gain is likely a more lenient judge and not a better product. Then pin a dated snapshot and re-score the older outputs for a fair comparison.
Exercise
A team replaces the judge model and edits the rubric wording in the same release. Kappa against humans drops from 0.71 to 0.58 on 50 anchor examples. Why is this hard to act on, and what should the team do?
Show answer
Two components changed at once, so the drop could come from the model, the rubric, or both. With only 50 examples, the drop may also be partly noise, so a confidence interval is needed. The team should revert one change, re-validate, then apply the other change and re-validate again. If the result is still unclear, they should add anchor examples to narrow the interval.