Testing an AI assistant beyond the answer
A convincing reply can still apply the wrong rule or trigger the wrong action. A refund assistant shows what a useful test needs to reveal.
Suppose a support assistant answers a refund question clearly and cites the current policy. The answer looks useful. Now consider a purchase that falls under an exception in the same policy. The assistant might still quote the right document while reaching the wrong conclusion.
A test that checks only for a citation would miss that mistake. We think a more useful test records which rule applies to this customer's situation and compares the answer with it. The citation helps a reviewer find the evidence; the reviewer still needs to establish whether that evidence supports the promised refund.
This hypothetical assistant will also encounter private account information and, if it has the necessary tools, requests to issue refunds. Those additions change what testing needs to reveal. We follow that one assistant through the article: first its answers, then the information it can reach, then the actions it can take. The checks are examples, and we do not present them as a complete test plan.
The examples below assume a documented purpose, users, data sources, connectors, tools and permitted actions. They belong in a non-production environment with synthetic data, on systems you own or have explicit permission to assess. Real secrets and client records have no place in these adversarial tests.
- An expected result
The correct outcome is recorded before the case runs.
- Access and actions
A useful answer must also respect permissions and resist untrusted instructions.
- Observed behaviour
The record shows what happened, how it compares and which configuration produced it.
- Checks after a change
A fix or system change creates a reason to repeat the relevant tests.
These checks use synthetic data in systems authorized for testing. Failures and untested cases remain part of the result.
OWASP's lists name the risks a test plan can miss
The OWASP GenAI LLM Top 10, 2026 edition and its published 2026 list give names to risks such as prompt injection, sensitive information disclosure, excessive agency and improper output handling. In the refund example, those categories point to private account details, instructions inside help articles and tools that can change a customer's record.
The distinct OWASP Top 10 for Agentic Applications, 2026 edition extends that view to systems that plan, use tools or delegate work. Goals, identities and exchanges between agents become part of the review. In our view, these references are most useful for exposing gaps in a test plan. They carry no legal or certification status, and using them does not establish that a system is safe. The useful record is which risks the actual tests covered.
The expected result is decided before the test runs
By an expected result, we mean the outcome a reviewer writes down before the case runs. It gives the reviewer a basis for judging the assistant's reply. For a refund question, it includes the approved help article, its version and the exception that applies. If the policy does not cover the customer's situation, the appropriate result is an acknowledgement of that limit and a referral to a person.
The same question can then be tested with an older article alongside the current one, or with too little information to identify the applicable rule. Deciding the expected behaviour beforehand keeps a fluent answer from setting its own standard of success.
Someone familiar with the work needs to judge whether the answer is usable. An invented refund rule and an omitted exception can have different business consequences. Opening the cited source is part of that judgment: the document must support what the assistant actually promised.
Access has to be enforced by the system, whatever the model says
Two synthetic customer accounts, with different access rights and clearly distinguishable documents, make an access test easier to interpret. The comparison includes requests for each account's own refund and attempts to obtain the other account's restricted information. The first should succeed; the second should fail. Search, summaries and follow-up questions all need coverage, along with the application's underlying access checks. A refusal from the model cannot substitute for authorization enforced by the system.
Documents introduce another problem. A help article can contain text that looks like an instruction to the assistant. In a controlled test, that text might ask it to abandon the user's task or repeat a synthetic restricted marker. The expected behaviour is to continue answering the user while treating the document as information, without accepting its instructions as authority to change the assistant's rules.
Links and generated markup also pass through the application before they are displayed or forwarded, so their handling belongs in the test. Any exfiltration exercise must use synthetic markers and controlled destinations, never a real external recipient or a live secret.
Once the assistant can act, its reply is only part of the evidence
An assistant can say it refused a request even after an underlying tool has acted. Once it can send messages, change records or invoke tools, its reply is only part of the evidence. The destination shows whether anything changed.
We suggest these checks, using test accounts and sandbox destinations, because they make that distinction visible:
- Confirm that the tool has only the access needed for its task. Attempt an action outside the agreed scope and inspect the destination for changes.
- Approve a refund for a specific customer and amount, then change one of those details in the controlled test. The original approval must not authorize the changed refund.
- Exercise cancellation, tool failures and repeated attempts. Check the agreed limits on time, cost and repeated tool calls, and the means of disabling the integration.
The last group matters because a failed action can lead to another attempt, then another. A bounded test needs to show where that repetition stops.
The results support a decision about a defined pilot
A test record connects the expectation to the observed answer or action. It includes the account's role, relevant configuration and a result of passed, failed or inconclusive. The model or service version, where available, the date, sources and connected tools make the result easier to interpret later. Important cases need repeated runs because model behaviour can vary.
The resulting handover distinguishes problems that block the pilot from lower-priority fixes, with an owner and a way to check each correction. Failed cases need another run after a fix. Changes to the model, prompts, permissions, documents or tools also give a reason to rerun the relevant tests.
This evidence supports a decision about a defined pilot. It cannot settle more than that. Untested areas and remaining risks still belong in the decision, and the exercise does not establish that the assistant is free of vulnerabilities.
Our AI integration engagement can include these checks in a workflow being built; production hardening addresses specific improvements to an existing assistant or agent. Each engagement defines the system, checks and handover in its agreed scope.
This is general readiness guidance, not legal advice or an audit opinion. Sector-specific assurance obligations need confirmation from a qualified professional.