Mutate Golden Cases Before You Trust the Eval
Description and use
Add negative control cases to prompt evals to catch silent regressions and improve model reliability.
Problem
Prompt evaluations that only test happy‑path golden cases miss silent regressions, leading to undetected model drift and costly endpoint changes.
Outcome
The harness detects silent regressions by ensuring mutated golden cases fail, improving model stability and reducing costly endpoint swaps.
Workflow
- 1. Create a YAML case file with
expectandmutatesections. - 2. Implement a deterministic grader that checks tool name, required arguments, and forbidden substrings.
- 3. Write a runner that calls the live endpoint and generates a synthetic mutated completion.
- 4. Grade the live completion against
expectand the mutated completion againstmutate. - 5. If the mutated completion passes, flag a harness bug and fail the CI job.
- 6. Integrate the runner into the CI pipeline so every commit triggers the evaluation.
Evidence
Store a negative control beside each happy-path fixture, then refuse the suite when that control still passes.
The grader should stay boring, because string search, key presence, and enum equality do not flake with temperature.
- Record date: 2026-09-16T21:00:35.771Z