A prompt regression test set is a short collection of examples you reuse when an important instruction changes. Its purpose is modest: help you notice when a revision fixes one problem and introduces another. You can keep the examples in an ordinary document. You do not need an evaluation platform, a large dataset, or a new subscription to begin.
Start with a task you already repeat. For example, you might turn meeting notes into an action list. A useful test asks whether the instruction preserves owners and deadlines, handles missing information honestly, and avoids inventing commitments. “This version sounds better” is too broad to answer those questions.
This guide concerns testing the reusable instruction itself. The code-review prompt guide shows how to ask for evidence when the output you need is a review of software.
Write the behavior contract first
Before collecting examples, describe what a successful answer must contain. Keep the contract small enough that another person could apply it without asking you what you meant.
For a meeting-action prompt, the contract might be:
- Include only actions supported by the supplied notes.
- Preserve an explicitly named owner and deadline.
- Mark absent owners and dates as unspecified.
- Keep decisions separate from actions still awaiting agreement.
- Return a short table that a person can check against the notes.
Those are observable requirements. “Be insightful” is a preference that needs further explanation before it becomes a useful check. Decide which requirements are essential and which are matters of style. A beautifully formatted answer that invents an owner should fail the essential check.
Choose a small, varied collection
Begin with perhaps six to ten fictional or safely generalized examples. That number is a practical starting suggestion, not a statistically justified sample size. You are building a useful editing aid, not estimating performance across every future input.
Include an ordinary case, a short case, a messy case, and a case with missing information. Add one example based on a failure you have already observed, after removing private material. For the meeting task, that might be a note saying “ask Alex whether Friday works.” The expected answer must preserve the uncertainty rather than turn Friday into a confirmed deadline.
Include a case that should produce little or no output. Notes containing discussion but no agreed actions should not become an impressive table of invented work. Empty and insufficient inputs often reveal assumptions that easy examples leave hidden.
Record expected evidence, not a perfect paragraph
You rarely need one ideal answer that every output must match word for word. Write the facts that must appear and the mistakes that must not appear.
For a fictional note reading “Mina will send the draft Tuesday; launch timing remains open,” record two checks: the draft action belongs to Mina with Tuesday preserved, and launch timing remains unresolved. Different wording can satisfy the same requirements.
Use exact matching only for requirements that really are exact, such as an output field name consumed by another tool. A human can check factual support and scope. Keep the original input beside the criteria so the reader can inspect the evidence directly. A score without that connection becomes difficult to audit later.
Freeze the examples before comparing revisions
Save the current instruction as version A and your proposed revision as version B. Keep the test inputs and scoring rules the same while you compare them. Otherwise, you may mistake a change in the test for an improvement in the instruction.
Record the AI tool or model used, the date, and any settings you can actually observe. If a setting is unavailable, write that it is unknown. Start fresh conversations when earlier messages could influence the answer, and give both versions equivalent context.
Model outputs can vary. A single favorable answer is a useful observation, but it does not establish that one instruction consistently performs better. Repeat important or ambiguous cases when you have an authorized way to do so. Do not start paid API runs merely because a test template suggests repetition.
Compare failures before preferences
Review each output against the contract. A simple record can use “met,” “not met,” and “unclear” for each essential requirement. Preserve the reason for an unclear result rather than forcing it into a pass or fail.
Suppose version B produces cleaner tables but assigns owners in two cases where the notes name none. That revision needs attention even if its total style score looks stronger. Keep essential failures visible as individual findings. A combined average can hide exactly the defect you care about.
If possible, compare answers without looking at the version label first. This can help you judge the output rather than defend the wording you just wrote. When reviewers disagree, clarify the criterion before treating either judgment as authoritative.
Keep a few examples out of the editing loop
It is easy to polish an instruction until it handles the examples you keep looking at. Reserve a few separate examples for a final check. They should follow the same task contract while using different details.
This small separation does not make the collection representative of real traffic. It does give you a chance to notice whether the revision relies on familiar wording. If the final check fails, keep the failure and explain what it reveals. Do not quietly replace the difficult example to make the revision look successful.
Save the decision with the instruction
Write a brief prompt revision note: what changed, why, which examples you checked, what you observed, and what remains uncertain. “Reduced invented deadlines in these examples” is more defensible than “fixed hallucinations.”
Keep the stable instruction separate from changing test inputs, as described in the prompt library organization guide. Remove sensitive inputs before saving or sharing examples. A reusable method is valuable without retaining a customer's meeting transcript.
The habit is straightforward: define the task, keep a few revealing cases, compare revisions under equivalent conditions, and preserve the decision. Your collection can grow when a real failure teaches you something new. Its value comes from the questions it helps you ask, rather than its size.
For background on defining task-specific checks, Anthropic's evaluation guidance discusses success criteria and grading methods. The workflow above is a manual editorial approach; it does not require running that provider's tools.
