Turn One Messy Request Into an AI Test Case

The first time a strange request breaks a workflow, somebody fixes it and moves on. Three weeks later, a prompt change brings the same mistake back. The team remembers that the request was messy. Nobody remembers which detail made it hard.
Save that detail as a test. Rebuild the request with fictitious people and records, write down what should happen before you run anything, and keep a second version with one fact changed. An AI workflow edge case test is useful when it can catch the old mistake without penalizing the system for handling the normal case.
Preserve the mix-up when you remove the names
Suppose a fictional equipment rental company receives a forwarded pickup email. The current note asks for two monitors on order R-41. The quoted message below it says four monitors for another order, R-14. Both jobs are for mock customers called Alder. If you replace both order numbers with ORDER and cut the quoted message, the resulting test is safe to share but no longer tests what went wrong.
Build a small synthetic substitute. Keep the two similar IDs, the repeated customer label, the quoted history and the order of the messages. Change names, dates, quantities and any real identifiers. Replace the underlying records too, so the test has enough evidence to reproduce the mix-up. Use only data your team is allowed to reuse, and keep the real email out of the fixture. A fixture is the input and starting records you save together so the case can be run again.
The NIST AI Risk Management Framework Measure playbook calls for assessment in context with documented methods. For a small team, that can mean recording exactly what is confusing about the synthetic input and which output would count as a failure.
The number that belongs to the wrong order
Use this fictional pair. The intake workflow prepares a review-only summary for a dispatcher. It is allowed to propose a pickup quantity. It cannot change a live order, schedule a pickup or message a customer. Seed two open orders under the mock Alder label: R-41 with two monitors and R-14 with four. Start each run from those same records, a clean test inbox and an empty review queue.
Case A: Quoted history belongs to a different order. The current email asks for two monitors on R-41. The quote below it asks for four on R-14. The test record for R-41 matches the current request. Create exactly one review-only draft with a quantity of two and note that the four belongs to R-14. At the end, verify the draft is marked “Ready for review” and there were no customer or order actions.
Case B: Quoted history now belongs to the same order. Keep the current email, the counts and both starting records identical. Change only the reference inside the quote from R-14 to R-41. The fictional team's rule says conflicting quantities in the same thread for the same open order need confirmation. Create exactly one review-only draft marked “Quantity conflict,” show both source quantities and ask the dispatcher to confirm. The system should leave the proposed quantity blank and make no order or customer changes.
This pair catches both ways a change can go wrong. A workflow that takes the last quantity from the email fails A. A workflow that flags every quoted number as a conflict also fails A. A workflow that always trusts the newest text fails B under this team's rule. Decide the rule with the process owner; another business may have valid written instructions for handling revisions.
A test card for the next person
Test ID and version: PICKUP-02B. Store the workflow version, fixture version and the one changed field: quoted order reference R-14 became R-41.
Why the case exists: The two quantities are only in conflict when both messages refer to the same order.
Expected: One review-only item, “Quantity conflict,” showing 2 and 4 with their source references. Quantity remains blank.
Must stay unchanged: Both source orders. No pickup scheduled, message sent or extra record created. Check the test destination and the action log.
Result: Write pass, fail or unverified, with the actual evidence and reviewer. Keep each attempt so you can compare a later change.
If you can't see the destination or see whether an action ran, mark that part unverified. Anthropic's guide to evaluating AI agents distinguishes what an assistant says from the resulting state. Check the fields and the log even if the bot says it left them alone.
Keep the pair after the bug is fixed
Run the ordinary case, the synthetic pair and any approval checks in an isolated environment. Confirm that changing a test record can't send a real notice through an inherited automation. When the workflow fails, save the evidence before changing the prompt or rule. When it passes, keep the pair for the next version.
The AI workflow testing checklist covers what else belongs in a release check. The guide to measuring rework helps if you also want to track how much staff time a recurring correction takes. Passing this pair is evidence for this rule and this setup. It doesn't tell you how often failures occur in production.
Questions about building edge cases
Can I just remove names from the real request?
A name is only one identifier. Private details can hide in attachments, links, record numbers and quoted messages. Use an approved synthetic copy with no live links or credentials. Preserve the pattern that affects the decision, not the original private content.
Why keep the easier version?
It catches fixes that block good work. If a new rule sends every request to manual review, the conflict may be contained while the normal path has stopped helping.
Do I need a different fixture for every variation?
No. Keep a clean base and state what changed for each version. If two fields must change together to reproduce a particular dependency, document both as one deliberate condition. Change one condition at a time where you can.
What if the correct result is unclear?
Ask the process owner to decide before grading the run. If the rule is still disputed, record the test as unresolved and keep the risky action on hold. A convincing response isn't a policy decision.
Try it with the request you had to fix twice
Choose one recurring correction. Write the expected result in a line, name one thing that must not change and make a synthetic pair around the detail that trips the workflow. If you'd like help turning that failure into a test your team can keep, bring one redacted example to Bell Consulting Solutions. For the wider process, start with the AI process optimization guide.





Comments