A silent error is a task failure

An AI response can sound professional and still fail at what the business needed. It may summarize a contract while omitting an exception, classify a request into the wrong queue, cite data that does not appear in the source, or answer confidently when it should ask for context. The problem is not only what is commonly called a hallucination. It is the distance between a plausible output and an operationally correct result.

For that reason, verification should begin with the task, not with the response style. Ask which decision the application must support, which fields cannot be missing, which information must be grounded in evidence, and which actions are forbidden. An elegant response that fails to preserve the order number, deadline, or policy condition should be rejected, even if nobody notices the error during a quick reading.

The testing unit should also reflect the real product. A classification has an expected label. An extraction has required fields and a valid format. A document based response needs to distinguish information found, information missing, and inference. In an agent, the sequence includes tool choice, arguments, permission limits, and the final result. Verification needs to observe these steps, not only the text shown to the user.

  • Define the task in terms of observable behavior, not subjective impression.
  • Separate factual correctness, completeness, format, tone, and action choice.
  • Treat missing evidence as a possible result, not as an invitation to fill gaps.

Sources and references: [1]

How to build a sample that represents the risk

A small sample can be useful if it is built to cover different failure modes. Start with common cases, the ones that form the main workflow. Then include variations in wording, typing errors, questions with two intentions, insufficient context, long conversations, and documents with ambiguous fields. Finally, add adversarial cases, such as conflicting instructions, external content trying to change the behavior, and requests outside the scope.

A practical method is to create a matrix with four axes: input type, expected operation, available evidence, and consequence of failure. One case might be a short question about a return, a policy containing an exception, a requirement to cite only that policy, and a prohibition on starting any action. Another might test an identifier similar to another one, to discover whether the application confuses records. The goal is not to predict every sentence, but to cover different decisions.

Include historical examples from logs, complaints, and corrections made by operators, provided they can be used appropriately. Synthetic data helps expand combinations, but does not replace difficult patterns from the real environment. Keep part of the sample reserved for future comparison. If every case used to adjust the system is also used to declare success, the measurement will be too optimistic.

  • Distribute the sample across the common workflow, variations, edge cases, and plausible attacks.
  • Record the expected response as verifiable criteria, not necessarily as one exact sentence.
  • Separate cases used for development from those used for final comparison.
  • Include at least some examples where the correct output is to ask for clarification or refuse an action.

Sources and references: [1][2]

Criteria and evaluators without false precision

Each case should have a short record with the input, authorized context, expected result, critical failures, and evaluation method. For an extraction, use schema validation, enumeration, and field matching. For a response, combine objective rules with criteria guided evaluation. For an action, check whether the correct tool was selected, whether the arguments match the input, and whether the action respects the stopping condition.

Aggregate scores help track regressions, but they can hide serious failures. A high average does not compensate for one destructive action being improperly allowed. A recommended design is to use approval gates by category: no required field missing, no identifier swapped, no unsupported claim when the task requires a source, and no tool call outside policy. These limits are a design recommendation, not a guarantee of safety.

A model based evaluator can speed up triage, especially when it compares two responses against an explicit rubric. Even so, it may prefer long texts, accept convincing justifications, or vary in its own evaluation. Calibrate the rubric with specialist judgments, examine disagreements, and retain examples of approval and rejection. For sensitive tasks, the launch decision should consider the type of failure, not only the average score.

  • Use deterministic validation whenever the result can be represented by a schema or rule.
  • Prefer comparison or approval and rejection when a continuous score would suggest precision that does not exist.
  • Review disagreements between evaluators and turn recurring failures into new cases.
  • Do not treat agreement from an automatic evaluator as proof that hallucinations are absent.

Sources and references: [1]

Hypothetical example of verification in customer service

Consider a hypothetical application that answers questions about orders using a policy base and a lookup tool. The request, “Can my order 4831 be returned? It arrived open,” appears simple, but it requires identifying the order, retrieving its status, locating the applicable rule, and explaining whether the packaging condition changes the procedure. The application could produce a plausible response while checking the wrong order or ignoring a policy exception.

The verification sample for this workflow could contain cases with a missing number, two orders in the same conversation, an updated policy, customer text in another language, an order already refunded, and an instruction inserted into a document to reveal internal data. For each case, the record should capture the classified intent, the tool called, the arguments sent, the selected evidence passages, the response fields, and the decision not to act when information is missing.

The test should not ask only whether the response seems good. It should verify that the correct identifier was used, that the consulted policy supports the conclusion, that the exception was preserved, and that no action was executed without the required data. If the application responds, “I could not find enough information,” in an ambiguous case, that can be an approval. The design protects the process against misplaced confidence without claiming that every error will be found.

  • Record the minimum necessary trace for locating the stage where the failure arose.
  • Test retrieval, interpretation, response, and any eventual action separately.
  • Include documents with irrelevant or malicious instructions to verify isolation of external content.

Sources and references: [2]

Continuous operation and architecture decisions

The sample should follow the system after launch. Each confirmed incident can become a new case, with its cause classified as retrieval, instruction, tool, context, format, or business rule. Run verification after changes to the prompt, model, schema, data source, and integration. Compare versions with the same reserved set, and also observe new cases extracted from usage records.

Architecture influences the cost of failure. For a well defined task, a deterministic flow with explicit stages is usually easier to test than an agent that freely chooses among several tools. Increase autonomy only when the sample demonstrates a need and when there are clear limits for iterations, accessible data, and possible actions. Each new stage adds points where a convincing response can drift away from the objective.

There is no perfect sample or single test capable of eliminating hallucinations. The most useful result is a decision mechanism: which failures block publication, which require investigation, which may be accepted with clear communication, and which indicate that the task should be simplified. This discipline replaces the vague question, “Does the AI seem good?” with a manageable one: “Did it complete this task, under these conditions, with this level of risk?”

  • Version cases, rubrics, reference data, and results so comparisons remain possible.
  • Monitor changes in the distribution of inputs, not only the average evaluation score.
  • Define stopping and isolation limits before expanding tools or autonomy.
  • Reassess the architecture when failures come from complexity rather than only from a poor prompt.

Sources and references: [1][3]

  • Write the expected operational result for each task before choosing the evaluator.
  • Build a sample with common cases, variations, edge cases, conflicts, and inputs outside the scope.
  • Separate critical quality criteria from overall quality, and define which failures block publication.
  • Record enough input, context, tools, arguments, and output to locate the defective stage.
  • Schedule reassessments after changes and turn real incidents into new test cases.

Common questions

Can a small sample be enough to get started?

It can, provided it covers different decisions and failure modes instead of repeating many formulations of the same case. It should grow with incidents and system changes.

Can a model based evaluator replace specialists?

Not necessarily. It can speed up comparisons and triage, but it needs clear criteria, calibration, and investigation of disagreements, especially when the failure has serious consequences.

How can you tell whether the application should use an agent?

Use an agent only when the required flexibility outweighs the predictability of a fixed flow. The sample should demonstrate that benefit and test tools, arguments, limits, and combined failures.

Sources and references

  1. OpenAI: Evaluation best practices ↗Accessed on October 9, 2026
  2. OpenAI: Safety in building agents ↗Accessed on October 9, 2026
  3. Anthropic: Building effective agents ↗Accessed on October 9, 2026