Sub topic 13
Keeping the evaluation current
An evaluation set is accurate on the day you build it. After that, the feature changes, users change, and the policies behind the answers change. If the set stays frozen, a passing score means less each month, and eventually it means almost nothing. This chapter covers how to keep the evaluation useful after launch.
This chapter assumes you have read the earlier chapters on evaluation datasets, graders, release gates, and offline versus online evaluation. You should be comfortable reading short Python and JSON snippets.
Why an evaluation goes stale
A stale evaluation rarely fails loudly. It keeps reporting a pass rate, and the number stops reflecting what users experience. Five causes account for most of this.
| Cause | What changes | Symptom |
|---|---|---|
| Feature change | Prompt, model version, retrieval source, or tools | Cases test behavior the feature no longer has, or miss new behavior |
| Source change | Policies, product catalog, pricing, documentation | Expected answers become wrong. The evaluation punishes correct new answers |
| User drift | Questions, phrasing, languages, and volume by topic | Production failures appear in areas the set barely covers |
| Saturation | The feature scores near 100% on the set | The set can no longer show improvement or catch small regressions |
| Overfitting | The team tunes prompts against the same cases | The score rises while real quality does not |
The last two are easy to miss. A saturated set looks like good news. A set the team has tuned against for months also looks like good news. In both cases the score has stopped carrying information.
The maintenance loop
Maintenance is a regular cycle with named steps. Production monitoring finds failures. You turn them into cases, review the whole set on a schedule, and re-check the graders. The release gate then runs against the updated set.
Add cases from real failures
The best source of new cases is production. When a user reports a bad answer, or monitoring flags one, ask whether the current set would have caught it. If not, add a case.
A promoted case should record where it came from, so you can later tell authored cases from real ones:
{"id": "refund-031", "category": "refund_policy", "type": "edge_case", "input": "My order shipped to a P.O. box and was lost. Do I get my money back?", "must_include": ["lost"], "must_not_include": ["guaranteed refund"], "severity_if_failed": "critical", "source": "production", "added": "2026-10-15", "last_reviewed": "2026-10-15"}Follow these rules when promoting:
- Remove personal data before storing the input. Replace names, emails, and order numbers with realistic placeholders.
- Write the expected checks from the requirement, not from the model's answer. If you copy the failing output into the case, you are testing for whatever the model already says.
- Assign a severity using the same scale as the original failure mode list. Do not invent a new scale for production cases.
- Put the case in a category. A failure that does not fit any category suggests a missing failure mode or quality dimension, and you should update the requirements.
Keep some cases out of day-to-day tuning. A small held-out portion, for example 20% of cases, should be run only at release time. If the team never looks at those cases, they stay honest. When a held-out case is finally used to debug a failure, move it into the tuning set and add a fresh held-out case to replace it.
Review the set on a schedule
New cases are only half the work. Old cases also need review, because some of them become wrong.
Run a review at a fixed interval, such as quarterly, and also after any change to the feature's model, retrieval source, or the policy it explains. For each case, check three things:
- Is the expected behavior still correct? If the refund window changed from 30 to 45 days, every case that mentions 30 days is now wrong. A wrong case produces false failures, and teams learn to ignore failures.
- Is the case still relevant? If the feature no longer supports a topic, retire the case rather than delete it. Move it to an archive file with the reason and the date.
- Is the case still informative? A case that every version has passed for a year adds little. Keep a few as regression guards. Replace the rest with harder variants.
You can automate the mechanical parts of the review. The script below reports duplicate IDs, thin categories, stale cases, and the share of cases that came from production.
import json
from collections import Counter
from datetime import date
def load_cases(path):
with open(path, encoding="utf-8") as f:
return [json.loads(line) for line in f if line.strip()]
def health_report(cases, today, max_age_days=180, min_per_category=10):
id_counts = Counter(c["id"] for c in cases)
category_counts = Counter(c["category"] for c in cases)
stale = sorted(
c["id"]
for c in cases
if (today - date.fromisoformat(c["last_reviewed"])).days > max_age_days
)
production = sum(1 for c in cases if c.get("source") == "production")
return {
"total": len(cases),
"duplicate_ids": sorted(i for i, n in id_counts.items() if n > 1),
"thin_categories": sorted(
cat for cat, n in category_counts.items() if n < min_per_category
),
"stale_cases": stale,
"production_share": round(production / len(cases), 2) if cases else 0.0,
}
if __name__ == "__main__":
cases = [
{"id": "refund-014", "category": "refund_policy", "last_reviewed": "2026-03-01", "source": "authored"},
{"id": "refund-031", "category": "refund_policy", "last_reviewed": "2026-10-15", "source": "production"},
{"id": "ship-002", "category": "shipping", "last_reviewed": "2026-09-01", "source": "authored"},
]
report = health_report(cases, today=date(2026, 11, 27), min_per_category=2)
print(json.dumps(report, indent=2))With the sample cases, the report shows shipping as a thin category, refund-014 as stale, and a production share of 0.33. The thresholds are policy choices. Set them to match how fast your feature and its sources change.
The script cannot tell you whether a case is still correct. A person who knows the current policy has to read it. Assign that review to a named owner, so it does not become everyone's job and nobody's.
Version the dataset, the graders, and the results
A score only means something when you know what produced it. Record three things with every evaluation run:
- the dataset version, for example a git tag or a content hash
- the grader version, including the judge prompt and judge model if you use a model-based judge
- the feature version, meaning the prompt, model, and retrieval configuration
If you change the dataset and the feature in the same release, a drop in pass rate has two possible explanations. To separate them, re-run the previous feature version on the new dataset. That gives you a baseline on the new set, and you compare the new feature against it.
Never compare pass rates across dataset versions directly. A pass rate of 91% on version 3 and 88% on version 4 may reflect harder cases, not a worse feature.
When a threshold from the acceptance criteria no longer fits the new set, change it deliberately and write down why. Do not let a threshold drift quietly until the gate passes.
Recalibrate the graders
Graders drift too. A code-based grader that checks for the phrase "30 days" breaks when the policy changes. A model-based judge can change behavior when its underlying model is updated or replaced.
Keep a small calibration set: cases with human-assigned labels that the judge must agree with. After any change to the judge model, judge prompt, or rubric, re-run it. If agreement with the human labels drops below the level you accepted at launch, fix the judge before using it to gate a release.
Also sample a few graded production outputs each cycle and have a person grade them. Compare the person's grade with the automated grade. A rising disagreement rate means the grader no longer matches what people care about, even if the calibration set still agrees.
Handle saturation and overfitting
Watch for these signs:
- The pass rate has stayed above 98% for several releases.
- Pass rate on the tuning set keeps rising, while the held-out set and online metrics stay flat.
- Users report failures in topics where the set shows no failures.
When you see them, add harder cases. Good sources are production failures, adversarial variants of existing cases, and cases written by someone who did not tune the feature. Also check that online signals, such as complaint rate or escalation to a human, agree with the offline score. If offline quality rises while online quality does not, the set is no longer representative.
A practical cadence
| When | Action | Owner |
|---|---|---|
| Every failure report | Triage, and promote to a case if the set would have missed it | Feature engineer |
| Every release | Run the gate on the current dataset and grader versions. Record all versions with the results | Release owner |
| Every model, prompt, or source change | Review affected cases. Re-run the baseline on the new set | Feature engineer |
| Quarterly | Full set review, health report, retire or replace cases, refresh held-out cases | Evaluation owner |
| Every judge change | Re-run the calibration set and a sample of human grading | Evaluation owner |
The exact intervals depend on how quickly your feature changes. A feature that explains a policy that changes monthly needs a faster cycle than one that summarizes stable documents.
Common mistakes
- Treating the set as finished. The set has no end state. It is part of the product and needs an owner.
- Deleting old failures. Retire cases that no longer apply. Keep cases for failures that were fixed, since they guard against the same failure returning.
- Letting production cases dominate. Production failures are valuable but biased toward what already went wrong. Keep authored edge and adversarial cases so rare, severe failures stay covered.
- Changing everything at once. Update the dataset, the grader, and the feature in separate steps when you can, or keep baselines so you can tell which change moved the score.
Exercise
Your refund policy changes from a 30-day return window to a 45-day window. Name three maintenance actions you should take on the evaluation, and explain why you should re-run the previous feature version before comparing scores.
Show answer
First, review every case that refers to the old window, and update or retire those whose expected behavior is now wrong, recording the reason in the review log. Second, update any code-based grader that checks for "30 days", and re-run the judge calibration set if a judge reads the policy text. Third, bump the dataset version and record it, along with the grader and feature versions, with each result. You re-run the previous feature version on the new dataset to get a baseline, because the dataset and policy both changed. Without that baseline, a change in pass rate could come from the new cases or the new policy rather than from any change in the feature's quality, and you cannot compare it with scores from the old dataset version.
Exercise
Over three releases, the pass rate on your tuning set rose from 88% to 99%. The held-out set stayed near 87%, and the complaint rate did not change. What is the likely problem, and what do you do?
Show answer
The team has probably overfit the feature to the tuning cases, and the tuning set is saturated. The held-out set and the complaint rate are the more trustworthy signals, and both show no improvement. Add harder cases from production failures and adversarial variants, preferably written by someone who did not tune the feature. Refresh the held-out cases, and use the held-out result, not the tuning score, as the input to the release gate.