01 · PROMPT
Instruction change
It can improve tone or routing while changing an escalation rule or the order of questions.
AI Regression Testing · Voice · Chat · Agents
A prompt, model, RAG, tool or integration change can improve one scenario and silently break another. I build repeatable PASS / FAIL tests that check not only the model response, but also actions and the final business state.
Regression run · example
RELEASE_CANDIDATE_013
Critical regression · RESCHEDULE_APPOINTMENT
Why AI regression is different
In a conventional test, checking one deterministic output is often enough. In an LLM application you may also need to verify context, retrieval, tool arguments, retry behaviour and whether the backend actually completed the action.
01 · PROMPT
It can improve tone or routing while changing an escalation rule or the order of questions.
02 · MODEL
The same prompt does not guarantee the same behaviour with a different model or provider.
03 · RAG
Changing sources, chunking or retrieval can replace the right context with a plausible but wrong one.
04 · TOOLS
The response can sound correct even when arguments are wrong, an API times out or an action fails.
05 · VOICE
ASR, barge-in, endpointing or latency can break a scenario that passes perfectly in text.
Method
A scenario passes when the system behaves correctly from the perspective of the business process. A good-looking model response is not enough.
Process, preconditions, invariants and final state. We define what the system must do, must never do, and which failures are release-critical.
Happy paths, edge cases, multi-turn corrections, previous bugs, bad data, timeouts, retries and cases derived from real usage.
Deterministic assertions, business rules, tool-call validation and backend-state checks. Where behaviour is semantic or stochastic, I use an appropriate scorer and, when needed, repeated runs rather than expecting identical wording every time.
I record the prompt, model, configuration and data version that form the reference point. Hard invariants can use binary assertions; stochastic behaviour may need a threshold or a distribution observed across repeated runs.
Manually before a release or optionally in CI/CD. The report shows which scenario broke, where it broke and how severe it is.
One scenario, several layers
Example · appointment reschedule
The user asks to reschedule an appointment. The response is natural and aligned with the intent. The regression test does not stop at text: it verifies the tool call, API response and final appointment state.
In this example, one CRITICAL regression is enough for the quality gate to fail.
Deliverables
SCENARIOS
Critical flows, edge cases and known failure modes captured in a repeatable format.
GOLDEN DATASET
Inputs, context, preconditions and expected behaviours for release-protecting scenarios.
EVALUATORS
Checks for responses, tool calls, arguments, business rules and the final system state.
DIFF
A clear view of what still passes, what improved and which behaviour came back as a regression.
SEVERITY
CRITICAL / HIGH / MEDIUM rather than treating every FAIL as equally important.
OPTIONAL CI
When the architecture allows it, the suite can return PASS / FAIL in the pipeline before release.
Who it is for
GOOD FIT
Available white-label as an independent QA layer before client handover.
LESS USEFUL AT THIS STAGE
In that case, an AI Agent Audit or a small Quality Check may be the better first step.
FAQ
Not always. Many scenarios can be tested black-box through the UI, a phone number or an API. Logs and code access become useful when we need to validate a specific retriever, tool call, argument or backend state.
Yes. For voice systems the suite can include ASR, barge-in, turn-taking, endpointing, latency and recovery after a critical slot is misrecognized.
No. A quality gate should account for scenario importance and severity. A critical false confirmation of a business action may block a release, while a minor wording issue may not.
Yes, when the architecture and access allow it. The suite can be run manually before a release or wired into CI/CD and return PASS / FAIL as a quality gate.
There is no universal number. I start with the highest-risk business processes and known failure modes. The Free AI Quality Check uses five targeted scenarios around one process as a small sample.
Start with one process
In the Free AI Quality Check I select five targeted scenarios around one process and return a short set of PASS / FAIL findings.