Failure-Case Regression Suites
In this article
- Turn an agent failure seen in production into a small regression fixture with the captured account, the input, the expected tool choice and a forbidden side effect.
- Keep the original failure evidence beside the expected fixed behaviour, and show the case failing on the old agent and passing on the fixed one.
- Decide for each failure whether it becomes a stable regression case, a broader set of capability tasks, or is not yet assertable.
- Give each case an owner, and update or retire it when the product requirement changes.
- Terms defined here: agent regression fixture.
Overview
Your agent passes every test you have, and then a real customer hits a case none of them tried. You fix the bug. How do you make sure it never comes back quietly, months later, after someone swaps the model or edits a prompt?
The made-up home-internet provider Brightline gives the example: its support assistant refunded an order the customer may not have meant. You will learn to turn such a failure into a small test that reproduces it, to decide which failures deserve one and which cannot be tested yet, and to keep these tests honest as the product changes.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- The failure that got through
- From story to fixture
- Small enough to reproduce
- Where cases come from
- Which failures become cases
- Owners and retirement
- The rule at work
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions