Start by separating a complaint from a test case

A complaint describes frustration, not necessarily a verifiable defect. “The response was poor” needs to become a concrete situation: what was the input, which data was available, what decision should the system have made, and what appeared in the output. The goal is to preserve the meaning of the feedback without depending on the memory of the person who recorded the incident.

Use a short, required form to prevent vague reports. Record the submitted text, relevant context, prompt or workflow version, available tools, produced response, and expected result. If the application varies between runs, also save the date, run identifier, and input excerpts used by the system. Structured evaluations are appropriate for probabilistic systems and should be created early, fed by logs, and updated continuously. [1]

  • Observed input: the complete request, including language, format, and ambiguities.
  • Operational context: retrieved documents, required history, and tools that could be called.
  • Perceived failure: the behavior that prompted the feedback, described without generic adjectives.
  • Expected result: an observable condition that allows the case to be approved or rejected.

Sources and references: [1]

Write the expected result as a verifiable rule

The expected result does not need to be an identical response, word for word. For open-ended responses, define properties that must be present, absent, or correct. A good criterion might require the system to classify a request into a valid category, mention a specific field, avoid inventing missing information, and ask for clarification when the input does not support a safe decision.

Prefer small, independent criteria. “Respond well to the customer” is too broad for diagnosing a regression. “Identify the intent as cancellation,” “do not state that the order was canceled,” and “request the order number” are three different checks. They can share the same input, but they point to distinct causes, such as classification, context use, or output instructions. To compare versions, choose evaluations that can be classified as passed, failed, or partially met, with examples of acceptable boundaries.

  • Define the main behavior that needs to occur.
  • List information that is required and information that is prohibited in the response.
  • State how to handle missing, conflicting, or out-of-scope data.
  • Separate textual quality from functional correctness so a well-written response does not conceal an error.

Treat evidence as part of the defect

Error evidence should allow another person to understand the failure without reconstructing the entire conversation. Save the original input, complete output, and data that influenced the execution. In a workflow with document retrieval or tools, capture which sources were returned, which arguments were sent, and what result came back. The highlighted excerpt may make reading easier, but it should not replace the complete artifacts.

Also consider variation. Run the same case more than once when the output may change, and record whether the problem was constant, intermittent, or dependent on a particular step. Instead of attaching only a screenshot, compare the output with the expected criterion and identify the first point at which the workflow deviated. This discipline turns feedback into regression material, rather than merely a collection of isolated examples.

  • Input evidence: message, attachments, context, and relevant system state.
  • Output evidence: complete response, tool calls, and structured fields.
  • Diagnostic evidence: the step, rule, or decision at which the behavior stopped meeting expectations.
  • Repetition evidence: results from new runs and the conditions that changed the failure.

Sources and references: [1][2]

Include common cases, boundaries, and attempted deviations

A suite made up only of explicit complaints tends to represent the most visible cases, not real usage. For each piece of feedback, create controlled variations: typing errors, short requests, multiple intents, long history, a different language, unexpected formatting, and contradictory information. Then add an adversarial version when external data could try to alter the system’s instructions.

The design should follow the architecture. In a single call, test instruction adherence and response correctness. In a workflow, test each step and also the transfer of data between them. In an agent, add tool selection, argument accuracy, and action limits. Untrusted data should not directly drive a sensitive operation. Structured fields, validations, and explicit approvals reduce channels for unexpected behavior, although they do not eliminate risk. [3]

  • Normal case: the most frequent and well-formed request.
  • Boundary case: incomplete, ambiguous input, or input close to another category.
  • Adversarial case: text that tries to replace instructions or trigger an improper action.
  • Integration case: a tool, document, or next step receives incorrect data.
  • Non-service case: the system should explain the limitation or request additional information.

Sources and references: [3]

Organize the test maintenance cycle

Do not turn every comment into a permanent test before removing sensitive data, duplicates, and cases that lack a clear criterion. Classify the case by capability, impact, and affected architecture. One piece of feedback may produce more than one test when it contains independent failures, but each test should have one primary decision. That way, a change to the prompt or context retrieval produces signals that are easier to interpret.

Execution should follow relevant changes to the prompt, model, tools, documents, and routing rules. Automated metrics help detect regressions, but important criteria need to be calibrated with consistent judgments. For response evaluations, comparisons between alternatives or classifications using an explicit rubric are often more useful than a generic score. The set should grow with new incidents without losing older cases that represent important product commitments. [1]

  • Give the case a stable identifier and record its origin.
  • Maintain a short rubric with examples of passing and failing results.
  • Separate blocking, regression, and exploratory tests according to the team’s use.
  • Review cases that are duplicated, obsolete, or impossible to evaluate consistently.

Sources and references: [1]

  • Copy the complete input and record the context that was available at the time of the failure.
  • Describe the observed behavior using facts, without relying only on terms such as poor, strange, or inconsistent.
  • Write an observable expected result, including required and prohibited information and refusal conditions.
  • Attach the complete output and, when applicable, retrieved documents, tool calls, and arguments used.
  • Create at least one boundary variation and define when the case will be run again after system changes.

Common questions

Do I need to require a response that is exactly the same as the expected one?

No. For open-ended language, evaluate verifiable properties such as correct facts, required fields, absence of inventions, and adherence to instructions.

What should I do when the same case produces different responses?

Record the variation, repeat the run under comparable conditions, and turn the criterion into a behavior evaluation rather than a test of textual coincidence.

When should feedback become more than one test?

When it contains independent failures, such as incorrect classification and an incorrect tool call, separate each behavior to make diagnosis and regression testing easier.

Sources and references

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