All lessonsHide lessons
Making It Reliable ยท Lesson 4
How to Test a Custom AI Assistant and Fix It When It Drifts
A five case test set, a simple way to read the results, and the fixes that actually work.
Step 1 of 5: One good answer proves nothing
One good answer proves nothing
Everyone does the same thing after building an assistant. They ask it one easy question, the answer looks good, and they call it finished. Then on the third real day it invents a delivery date or replies to a customer in the wrong tone.
One good answer tells you the assistant can work. It does not tell you it will. For that you need a small, deliberate set of tests, run the same way every time you change something.
Most tools give you somewhere to try your assistant before relying on it. OpenAI's GPT builder had a preview pane, and Google's help centre notes that testing a Gem in its preview window does not save the Gem automatically. In a project, a fresh chat inside the project does the same job. Whatever the tool, the method is the same.
In plain English
- Test set:
- A short, fixed list of requests you run every time you change your assistant, so you can compare like with like.
- Edge case:
- An unusual request at the edges of the job, where assistants are most likely to go wrong.
- Drift:
- When an assistant slowly stops following its instructions, either within a long chat or after its instructions or files change.
- Regression:
- Something that used to work and stopped working after you changed something else.
Build your five case test set
Write five requests that cover the job from different angles, and save them in the same document as your instructions.
- The everyday request. The most common version of the task, the one you do every week.
- The awkward one. A real request that was tricky last time: an unhappy customer, a strange order, an unclear brief.
- The missing information test. A request that needs a fact your files do not contain. A good assistant says so. A badly instructed one invents it.
- The off topic request. Something outside the job. Does it politely stay in its lane, or wander off?
- The pushy request. Someone asking it to break one of your rules, such as promising a refund you never offer.
OpenAI's own migration advice for people moving old GPTs follows the same idea: compare familiar prompts and at least one harder case before relying on the replacement.
Here are my assistant's instructions: [paste instructions]. Write five test requests for it: one everyday request, one awkward but realistic one, one that needs information it will not have, one that is off topic, and one that tries to get it to break a rule. Make them sound like real messages from real people.
Quick check
Which test is most likely to catch an assistant inventing facts?
Read the results like an editor
Run all five tests in fresh chats, one per test, so earlier answers do not colour later ones. For each answer, check four things:
- Facts. Did every price, date and policy come from your files?
- Rules. Did it follow each rule, including what to do when unsure?
- Shape. Is the output the length and structure you asked for?
- Tone. Would you send it as it stands, or with only small edits?
Write down what failed. Then change one thing and run all five again. Change three things at once and you will not know which one helped, or which one broke something that was working.
Fixing drift
Drift shows up in two ways, and the fixes are different.
Drift within a long chat. The assistant starts well and gradually forgets its rules as the conversation grows. The fix is simple: start a fresh chat for each new piece of work. The instructions load fresh every time. Context Engineering explains why long chats drift.
Drift after a change. You edited the instructions, added a file, or the company behind the tool updated its models, and something that worked last month no longer does. That is what the test set is for. Rerun it and see which case broke.
When a test fails, the usual fixes, in order of how often they work:
- Make the rule more specific. Be brief becomes under 120 words.
- Add an example of a good answer for that situation.
- Move a rule out of a file and into the instructions. Rules buried in files get missed.
- Remove a conflicting file, such as an old version.
OpenAI's builder guidance made a similar point: tighten instructions and add examples before adding more tools, because that often fixes issues faster.
Here are my assistant's instructions: [paste]. Here is a request it handled badly: [paste request]. Here is what it said: [paste reply]. Here is what I wanted instead: [describe]. Suggest the smallest single change to the instructions that would fix this without changing anything else. Explain why it would work.
Quick check
Two of your five tests failed. What should you do next?
Rerun your test set every few months even if you changed nothing. The models underneath these tools are updated regularly, and the first sign is often a small change in tone or length.
Checkpoint
Keep a five case test set: everyday, awkward, missing information, off topic and pushy. Run each in a fresh chat, check facts, rules, shape and tone, change one thing at a time, and rerun the whole set after every change.
๐ Quiz
Swipe right if this answers the question correctly, left if it does not.
Why is one good test answer not enough?
โIt is enough, as long as it was a hard questionโ
Is this the right answer?