Lesson objective
Refine a practice prompt one variable at a time against a fixed fictional test set, and recognise the point at which refinement should stop and the task be redesigned or done without AI.
Plain-language explanation
Why this matters now
Refinement is where hours disappear. Someone gets an output that is nearly right, changes a word, gets a different nearly-right output, and repeats. Two things make that expensive: nobody is measuring whether it is improving, and nobody has decided what would count as good enough.
There is also a harder possibility, which is that the task is simply one these tools handle badly, and no amount of rewording will change that.
The useful lesson is the shape of the result, not the numbers: help on one kind of task and harm on another, with nothing in the output announcing which side you are on. Refinement cannot tell you which side you are on. A test set can.
A question to sit with
You have rewritten the same prompt eleven times this morning and the output is better than it was. Better than what, measured how, and how would you know if the twelfth version were worse?
What goes wrong
Refining against one case. The prompt gets tuned to the example on screen and fails on the next one.
Changing several things at once. When four things change and the result improves, nobody knows which change did it, so nothing is learned.
Refining without a definition of good enough. Without a stopping rule, refinement stops when the person gets tired.
Refining a task that should be redesigned. If the output needs heavy correction every time, the problem is the task, not the wording.
Refining on real patient material. Test sets are built from fictional cases. Real material is not test material.
Believing the improvement because you want it. NIST's Generative AI Profile lists Human-AI Configuration among its twelve risks, including people "experiencing algorithmic aversion, automation bias, over-reliance, or emotional entanglement" with these systems, and Section 2.7 describes automation bias as "excessive deference to automated systems," which "can exacerbate other risks of GAI, such as risks of confabulation." Wanting the eleventh version to be the good one is exactly that pressure.
The practical answer
Step 1: build a fixed test set before you refine anything. Six to ten fictional cases for the task, chosen to include the awkward ones: a missing field, an unusual payer type, a date at the edge of a plan year, a document that is badly scanned, a case where the right answer is "MISSING." The set does not change while you refine, or you are measuring two things at once.
Step 2: define good enough, in writing, before the first run. For a practice task, a workable definition has three parts:
| Element | Example for an appointment-letter prompt |
|---|---|
| Correctness bar | Every name, date, time and location traceable to the source block in 10 of 10 cases |
| Safety bar | No clinical sentence in any output, and no rule or address not in the source block |
| Effort bar | Verification takes no longer than writing the letter by hand would have |
If the effort bar fails, the prompt is not the problem; the task is.
Step 3: change one variable per round. Record the version, the single change, and the results across the whole test set. Three or four rounds usually show whether the curve is still moving.
Step 4: apply the stopping rules. Stop refining and escalate when any of these is true:
- Two consecutive rounds produce no measurable improvement on the test set.
- A change fixes one case and breaks another, twice.
- The safety bar fails on any case, for a reason wording cannot reach.
- Verification consistently takes longer than doing the task by hand.
- The task requires a judgement only a qualified person may make.
Rules 3 and 5 are not "keep trying" signals. They mean this task, in this form, does not belong to a prompt.
Step 5: when you stop, record what you learned. A prompt that reached the bar gets a library entry, an owner and a data class (Module 03). A prompt that failed gets a one-paragraph note saying which stopping rule ended it and what the task should be instead: split, redesigned around a checklist, or done by a person. That note is worth more than the failed prompt, because it stops the next person repeating the morning.
Remember this
- Build a fixed set of six to ten fictional cases before refining, and include the awkward ones.
- Define correctness, safety and effort bars in writing before the first run.
- Change one variable per round and record the result across the whole set.
- Stop when improvement flattens, when fixes break other cases, when the safety bar fails, when verification costs more than doing it by hand, or when the task needs a professional judgement.
- A failed prompt is worth a written note; refinement moves a rate, it does not remove a failure mode.
Medical practice example
Meridian Street Dermatology is a fictional three-clinician practice. Its referral coordinator, Ana Petrova, is building a prompt that turns an inbound referral fax into six structured intake fields. She builds a test set of eight fictional faxes before writing a word of the prompt: two clean typed referrals, one handwritten, one scanned upside down, one from a fictional payer whose form changed mid-year, one missing the referring clinician's name, one with two patients on the same page, and one with a handwritten note in the margin reading "please book this urgently." Her bars: every extracted field traceable to the fax in 8 of 8; no clinical characterisation of the referral and no field invented; verification under three minutes per fax. Round 1, the base six-part prompt: 6 of 8 fully correct. The handwritten fax produces three wrong fields, and the two-patient page silently merges them. Round 2 changes one thing, the output format, to require one table row per field with a quotation from the fax beside it: 7 of 8, because the merge becomes visible immediately. Round 3 changes one thing, adding an instruction to write MISSING for any field not legible: the handwritten fax now returns four MISSING flags instead of three wrong fields, which is the result Ana wants. Round 4 tries to get the handwritten fax fully extracted; it fixes two fields and breaks the upside-down case. Round 5 tries again and breaks it differently. That is stopping rule 2, twice, so Ana stops. The margin note asking to book urgently is handled by constraint 4 and by the standing rule that urgency is a clinical question for the clinician. Her library entry records the bars, the four rounds, the version that reached them, and one line: handwritten referrals are keyed by a person, not extracted, because refinement could not reach the bar without breaking other cases.
Responsible-use warning
Do not keep refining a prompt whose safety bar fails or whose task needs a professional judgement. Those two stopping rules are not signals to try harder wording; they mean the task does not belong to a prompt in this form. The quieter trap is refining against the single case on screen: a prompt tuned until one example looks perfect will usually be worse across the set than the version three rounds earlier, and nobody will know, because nobody re-ran the set. Refine against a fixed fictional set, change one thing at a time, and never refine using real patient material.
Human-review requirement
The practice manager or named administrative owner owns the test set and the bars for administrative tasks and decides when refinement stops. A licensed clinician sets the safety bar for anything that could touch clinical content and reviews the grey-case list the bar depends on. The privacy official confirms that test material is fictional and that no real patient information is used in refinement. Whatever a test set shows, in live use a named, qualified person still reviews and owns each output, and the coding professional or clinician owns anything that will support a claim or enter the record.
Practical exercise
Use fictional cases only. Never refine a prompt on real patient material.
- Choose one task and build a fixed test set of eight fictional cases, including at least two awkward ones and one where the correct answer is MISSING.
- Write your correctness, safety and effort bars before you write the prompt.
- Write version 1 of the prompt using the six-part structure, and run it against all eight cases.
- Score each case against the three bars and record the totals.
- Make exactly one change, run all eight cases again, and record the totals beside the previous round.
- Repeat for two more rounds, changing one thing each time.
- Plot or list the four rounds side by side and say in one sentence whether the curve is still moving.
- Apply the five stopping rules and state which, if any, has been met, quoting the round and the case that met it.
- If you stopped, write the one-paragraph note saying which rule ended it and what the task should be instead: split, redesigned around a checklist, or done by a person.
- If you did not stop, write down what your next single change would be and what result would make you stop after it.
- Write the library entry for the version you would release, naming its owner, its named finaliser, its data class and the date of the test, and file it in your workbook alongside the four rounds of results.
Knowledge check
-
Why is a prompt refined against a fixed test set rather than the case on screen?
Answer guidance: Because a prompt tuned to one example can be worse across the set, and nobody would know unless the set were re-run. The set stays fixed while refining so only one thing is being measured.
-
What are the five stopping rules?
Answer guidance: Two consecutive rounds with no measurable improvement; a change that fixes one case and breaks another, twice; a safety bar failure wording cannot reach; verification consistently costing more than doing the task by hand; and a task requiring a judgement only a qualified person may make.
-
What does the Organization Science field experiment suggest about task selection, and how far does it carry?
Answer guidance: That capability is uneven: on 18 tasks inside the frontier AI users completed 12.2% more tasks 25.1% more quickly with significantly improved quality, while on a task outside it they were 19% less likely to produce correct solutions. The subjects were management consultants using GPT-4 as of 2023, so it applies to practice work only by analogy.
-
What does automation bias have to do with refinement?
Answer guidance: NIST describes automation bias as excessive deference to automated systems, which can exacerbate other risks such as confabulation. After eleven rounds a person wants the latest version to be the good one, which is why improvement is measured on a set rather than judged by impression.
Sources and further reading
- National Institute of Standards and Technology — Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile, NIST AI 600-1 (2024-07-26). Accessed 2026-09-15.
- Communications Medicine (Omar M, Sorin V, Collins JD, et al.; Mount Sinai) — Multi-model assurance analysis showing large language models are highly vulnerable to adversarial hallucination attacks during clinical decision support (2025-08-02). Accessed 2026-09-15.
- Fabrizio Dell'Acqua, Edward McFowland III, Ethan Mollick, Hila Lifshitz-Assaf, Katherine C. Kellogg, Saran Rajendran, Lisa Krayer, François Candelon and Karim R. Lakhani; Organization Science — Navigating the Jagged Technological Frontier: Field Experimental Evidence of the Effects of Artificial Intelligence on Knowledge Worker Productivity and Quality (2026-03-01). Accessed 2026-09-15.
- AI Coalition Network — Certification Educational Standard: Human Review of AI-Assisted Professional Work. Accessed 2026-09-15.