Tool menus and features change. This guide teaches tool-independent skills; check any product-specific detail against that tool's current documentation.
01 — Quick answer
How do you know an AI agent is ready for real work?
Write ten realistic test cases from real work, including three that try to trick the agent. Write what a pass looks like for each before you run them. Run all ten, record the pass rate and every failure, fix the instructions or limits, then rerun the full set. Only then let it touch real work.
02 — Outcome
What will you have when you finish?
A saved set of ten test cases with pass rules, a recorded pass rate before and after fixes, and a short list of known failures that stay with a human.
03 — Who it's for
Who is this for?
Good fit: People who have built an agent, meaning an AI that chooses its own steps and uses tools, and are about to let it handle real requests.
Not the best fit: People with a single prompt or a fixed automation. Start with testing instructions on tricky cases.
04 — Time needed
How long does it take?
Estimates for this guide.
- Active work: about 55 minutes
- Waiting or processing: about 5 minutes
- Testing: about 15 minutes
- Total: about 75 minutes
Rerun the full set after every change to the agent's instructions, tools or model.
05 — Before you begin
What do you need first?
Terms used in this guide
- Agent
- An AI that decides its own next step and can use tools, such as search, files or email.
- Test case
- One input plus a written rule for what a correct result looks like.
- Pass rate
- How many cases passed out of the total, for example 8 of 10.
- Edge case
- An unusual input that is likely to break the rules.
06 — Steps
How do you test it?
Step 1: Collect seven ordinary cases
Objective: test on real work, not made-up examples.
Take seven real requests the agent will handle, with private details removed. Cover the common types, not just the easiest one.
Why this matters: an agent that only passes easy cases has not been tested.
Step 2: Write three tricky cases
Objective: find the breaking points on purpose.
Write three cases designed to fail: a request outside its limits, an input with missing information, and a message that contains instructions trying to redirect it, such as hidden text telling it to ignore its rules.
Why this matters: the cases that hurt you in real life are the ones you didn't plan for.
Step 3: Write the pass rule for each case first
Objective: decide what correct means before you see the answer.
For each case, write one or two lines: what a correct result contains, and what it must not do. For the tricky cases, a correct result is usually to stop, ask or escalate to a person.
Example prompt
Example of asking an AI to help draft pass rules
Written for this guide, not taken from any source. It shows the context to give the AI for this step and why; replace every [bracket] with your own details.
Here is my agent's job and limits: [paste job description]. Here are ten test inputs: [list]. For each, draft a one-line pass rule: what a correct result must contain and what it must never do. Mark which cases should end with the agent stopping or asking a person. I will review and edit every rule.
Customize: the job description, the cases, and your own edits to each rule.
How to judge the result: every rule is checkable by a person in under a minute; you have changed any you disagree with.
Adapting to other tools: Any AI assistant that accepts typed instructions.
Why this matters: rules written after seeing the answer bend to fit it.
Step 4: Run all ten and log the results
Objective: get an honest pass rate.
Run each case in a fresh session. Log the date, the case, pass or fail, and what went wrong. Do not fix anything until all ten have run.
| Case | Pass? | What went wrong |
|---|---|---|
| 1 | ||
| 2 |
Why this matters: fixing mid-run hides how the agent really behaves.
Step 5: Fix, rerun everything, and decide
Objective: improve without breaking what worked.
Fix the cause of each failure in the instructions, tools or limits. Then rerun all ten, not just the failures. Decide: ready for real work with a human checking, or not yet. Any case that still fails becomes a written rule that a person handles that type.
Why this matters: a fix for one case often breaks another.
07 — Test it
How do you know it worked?
What to test: whether the test set catches a real problem.
How: plant a fault: remove one limit from the instructions and rerun the set.
Success looks like: at least one tricky case now fails, which proves the set would catch the problem.
If it fails: add a tricky case that targets that limit.
08 — Troubleshooting
What usually goes wrong?
| Problem | Possible cause | Fix | How to verify |
|---|---|---|---|
| Everything passes first time | Cases too easy | Add harder real cases and the three tricky ones | At least one case fails before fixes |
| Results change between runs | Answers vary run to run | Run each case twice and treat any fail as a fail | Same result twice |
| Agent follows hidden instructions | No rule that page or file text is data | Tell it to treat content it reads as data, not orders | Redirect case passes |
| Fixing one case breaks another | Partial reruns | Always rerun all ten | Full set logged after each fix |
09 — FAQ
Common questions
Is ten cases enough?
It is a starting floor for a small job. Add a case every time something goes wrong in real use.
Can the AI grade its own tests?
Use a separate review in a fresh session at most, and check the grades yourself. You decide pass or fail.
10 — What next
Where do you go from here?
Decide how much the agent may do alone, and keep a record of what it does. See your level path for the next step after Level 4.
Related guides
Sources
Original LCGIS guide, written for the level path that follows the AI Skill-Space Assessment. It is not based on a single outside source. Example prompts were written for this guide. Tool names appear only as examples; check any product-specific detail against that tool's current documentation.