,

12 min read

What Counts as a Bug in an AI Product? A Practical Framework

A product team examines abstract AI output tiles passing through an illuminated inspection frame, with a cracked tile separated from ambiguous and acceptable results.

A customer shares a bad AI output and asks you to fix the bug. Support files a ticket. Engineering cannot reproduce it consistently. The product manager sees a quality problem, while the customer sees a broken promise. Without a shared definition, each person can be reasonable and the company can still make the wrong decision.

You need a definition that works at the support desk, in product prioritization, during model evaluation, and in customer communication. It must separate behavior that is unequivocally broken from output that is merely weak, subjective, or outside the product’s intended capability. Those cases deserve different owners, evidence, remedies, and promises.

Start with the product contract, not the bad output

Traditional software gives teams a relatively clean test: compare actual behavior with specified behavior. A calculation is correct or incorrect. A button completes its defined action or it does not. The generated output of an AI system is harder to judge because it can be useful without being ideal, and its quality may vary across dimensions such as tone, length, and fit for the recipient. That makes the boundary between defective and disappointing less binary than it is in deterministic software.

The mistake is to conclude that bug no longer means anything. An AI product still contains contracts. Some are hard requirements enforced by code, permissions, policies, schemas, or workflow rules. Others are quality expectations that need rubrics and evaluation data. The first task in triage is to determine which kind of contract, if any, was violated.

A useful operational definition is this: an AI product bug is a material violation of an explicit product contract. An in-scope output that falls below a defined quality bar is a quality failure. A preference mismatch is neither of those unless the product explicitly promised to honor that preference.

Report classQuestion to askTypical examplePrimary response
Deterministic defectDid the surrounding software violate a testable requirement?The product used the wrong account, failed to save an approved result, or sent a draft when the user selected preview.Fix the mechanism and add a regression test.
Invariant or policy breachDid the system cross a boundary that must hold for every applicable request?The workflow ignored an access restriction or performed an action outside the user’s authorization.Contain the exposure, investigate the control failure, and enforce the boundary outside generation where possible.
AI quality failureWas the task in scope, but the output below the documented acceptance bar?A summary omitted a critical point, or a draft was unsuitable for its intended recipient.Classify the error, add representative cases to the evaluation set, and improve the category.
Preference mismatchWas the output acceptable but different from the user’s stylistic choice?The user prefers a shorter greeting or a different punctuation style.Consider a setting, learned preference, or clearer expectation instead of a global prompt rule.
Capability gapDid the user ask the product to do something it does not reliably support?The workflow was designed to draft from supplied context, but the user expected it to discover missing facts.Clarify the boundary or make an explicit product investment decision.

The output alone may not reveal the right class. A fabricated statement could be a model-quality failure, but it could also be the downstream symptom of a retrieval defect that supplied the wrong document. An irrelevant response might reflect weak generation, an incorrect routing rule, or missing user context. Keep the initial classification provisional until you inspect the system trace.

This distinction is not semantic housekeeping. Calling every poor output a bug encourages one-off patches and impossible promises. Calling every problem subjective gives the team permission to ignore failures that damage the product’s core job. A classification is useful only when it determines what happens next.

Define good and good enough before complaints arrive

You cannot triage quality against an unwritten standard. If the product requirement says only generate a good email, support and engineering will debate taste whenever a customer complains. Replace that vague expectation with a quality contract for a specific user, task, and context.

Quality is usually a vector, not a single score. An email can be factually grounded but too long. It can be concise but wrong for the recipient. It can sound polished while omitting the requested action. Defining quality across multiple dimensions such as tone, length, and recipient fit lets you see what actually failed instead of hiding the failure inside an average.

  1. Name the task and eligible context. State who is using the capability, what they are trying to accomplish, and what information the system may rely on.
  2. Separate must-have invariants from quality dimensions. A must-have requirement should produce a clear pass or fail. A quality dimension can use graded labels with concrete examples.
  3. Write observable anchors. Describe what unacceptable, acceptable, and strong output look like. Avoid labels such as helpful or professional unless reviewers can apply them consistently.
  4. Define the acceptance decision. Specify which failures block a release, which are tolerable in a human-reviewed draft, and which require the product to decline or ask for more context.
  5. Preserve valuable variability. State where the system may adapt its wording, structure, or reasoning rather than forcing every successful output into one template.

The phrase good enough carries most of the product judgment. Its meaning depends on consequence, user oversight, and recoverability. A rough suggestion presented for editing can tolerate imperfections that would be unacceptable in an action executed without review. The underlying capability may be identical, but the product contract is not.

Consider an assistant that drafts customer replies. Its hard requirements might include using the selected customer record and leaving the message unsent until approval. Its quality dimensions might include faithfulness to the supplied conversation, coverage of the customer’s question, clarity, tone, and length. Greeting style may remain a preference. Inventing a refund commitment that is absent from the context would be unacceptable. Those distinctions tell the team what to enforce, evaluate, configure, and communicate.

Do not define one universal quality bar for an entire AI feature. Break it down by task and operating mode. Drafting, summarizing, recommending, and taking action create different risks. So do internal use, customer-facing use, and unattended execution. A broad average can improve while the workflow that matters most gets worse.

Turn individual reports into error categories

An isolated complaint is evidence, not yet a remedy. The tempting response is to add a prompt instruction that prevents the exact output from appearing again. Repeating that move for every complaint creates conflicting rules, optimizes for remembered cases, and makes the system brittle. AI quality improves when you collect related failures, analyze their pattern, and reduce the category’s error rate.

Begin by making reports diagnosable. A screenshot of a bad answer is rarely enough. Your intake record should preserve the evidence needed to reconstruct the product state:

  • The user’s intended task and the impact of the failure.
  • The input, relevant conversation state, and context supplied to the model.
  • The retrieved information or tool results available during the run.
  • The system configuration, instructions, model configuration, and feature state that governed the output.
  • The generated output and any downstream action the product took.
  • The expected behavior, tied to a named invariant or quality dimension.
  • Whether the failure appears consistently or intermittently under the same relevant conditions.

Collect that evidence within your normal privacy and retention controls. Copying sensitive customer inputs into an informal bug document can create a second problem while investigating the first.

Next, distinguish the observable failure from the suspected cause. Too long is an observed failure. Weak prompt is a hypothesis. Incorrect claim is an observed failure. Model hallucination is an incomplete diagnosis because the wrong claim may have originated in retrieval, context assembly, tool output, instructions, generation, or post-processing. Label the symptom first; assign a cause only after inspecting the pipeline.

  1. Check the deterministic path. Confirm that the correct user state, context, permissions, tools, and product settings reached the generation step.
  2. Map the report to the quality contract. Identify the invariant or dimension that failed. If no requirement covers it, decide whether the contract is incomplete or the report is a preference.
  3. Give the failure an observable category. A useful pattern is task, quality dimension, and failure mode, such as customer reply, recipient fit, assumes an unsupported policy.
  4. Find related examples and contrasting successes. A category needs enough variation to show the pattern rather than memorizing one input.
  5. Add representative cases to an evaluation set. Include normal cases, difficult cases, and cases that already work so an improvement does not silently damage existing behavior.
  6. Test a causal hypothesis. The right intervention may be better context, clearer instructions, improved retrieval, a tool change, a deterministic validator, a user-interface correction, or a different product boundary.
  7. Compare the candidate against the existing system by category and relevant user or task slice. Check both the intended gain and regressions elsewhere.
  8. Release with monitoring that uses the same category definitions. Otherwise the evaluation process and production feedback will describe quality in incompatible languages.

Keep some evaluation cases out of the immediate tuning loop. If every case is visible while you change the system, you can produce an impressive result on familiar examples without improving unfamiliar ones. The goal is not to make the reported screenshot disappear. It is to improve the product’s behavior across the class of situations that screenshot represents.

A category can also reveal that the most effective fix is not a model change. If users repeatedly ask for output that requires missing account context, the product may need a context-collection step. If reviewers disagree because the interface never states the intended audience, the interface may need to capture that choice. Error analysis should be allowed to change the workflow, not merely the prompt.

Prioritize by consequence and error rate, not ticket count

The loudest ticket is not necessarily the most important quality problem. Ticket volume is shaped by feature usage, customer willingness to report, support habits, and how visible the failure is. It does not tell you the failure rate among eligible attempts, and it can underrepresent errors that users do not notice.

Evaluate priority using several separate signals:

  • Consequence: What happens if the user trusts the output? Consider damaged decisions, unwanted external actions, lost work, or broken trust.
  • Exposure: How much relevant usage passes through this workflow, and which users or tasks are affected?
  • Frequency: How often does the category fail among comparable attempts, measured on production evidence or a representative evaluation set?
  • Detectability: Can the user recognize the error before acting, or does the output look plausible?
  • Recoverability: Can the user edit or reverse the result, or does the workflow create a difficult-to-undo consequence?
  • Control strength: Can the requirement be guaranteed with deterministic logic, or can the system only reduce the probability of failure?

This prevents a common prioritization error: spending a release on a visible style complaint while a less visible factual failure remains in a high-consequence workflow. Preferences still matter, especially when they repeatedly disrupt adoption, but they should not automatically outrank contract breaches or material quality failures.

Your response should match the class of problem. Contain an invariant breach or dangerous action path first. Repair a deterministic defect and protect it with a regression test. For a quality category, establish a baseline, make the change, evaluate the category, and inspect regressions. For a preference mismatch, decide whether configuration or personalization creates more value than a global behavior change. For a capability gap, either change the product promise or fund the capability deliberately.

The promise to the customer must match the available control. Do not promise that a generative system will never produce a similar weak answer again when the intervention can only reduce its likelihood. A more honest commitment is that the team identified the error category, added it to evaluation, changed the system, and will judge the change against representative cases. Reserve resolved for a hard requirement that is now enforced or a quality category that has met its defined acceptance policy.

Non-deterministic does not mean uncontrollable. It changes the form of control. Instead of relying only on exact assertions, you use explicit invariants, representative evals, category-level error rates, guardrails, workflow design, and production monitoring. The aim is dependable performance within an intended operating range, not identical output on every run.

Give the whole company one definition and one workflow

A taxonomy will fail if it belongs only to the AI team. Support needs to know what evidence to capture. Product needs to define the contract and acceptance bar. Engineering needs to separate orchestration defects from model-quality failures. Sales and customer success need language that sets expectations without dismissing weak output or promising perfect generation. Leadership needs to fund quality as a continuing product capability rather than a queue of isolated repairs.

You can adopt the following working definition: an AI product bug is a material violation of an explicit product contract. An in-scope output below the accepted bar is an AI quality failure, managed as an error category through analysis and evals. An acceptable output that conflicts with personal style is a preference mismatch. An unsupported request is a capability gap. Every report matters, but not every report receives the same remedy.

Turn that definition into an operating workflow with clear ownership:

  • Product owns the task definition, quality dimensions, invariants, supported boundary, and acceptance policy.
  • Engineering and AI specialists own traceability, root-cause analysis, evaluation infrastructure, interventions, and regression checks.
  • Support captures the task, evidence, impact, and expected behavior without promising a remedy before classification.
  • Design and research clarify user expectations, review experiences, and preference controls where human judgment is part of the workflow.
  • Sales and customer success describe what the product supports, where review is required, and how quality concerns are handled.
  • Leadership reviews category-level quality and risk, not merely the number of closed tickets.

Maintain a quality ledger that connects customer reports to the product contract and evaluation system. Each active category should identify the affected task, observable failure, impact, suspected mechanisms, representative cases, baseline behavior, proposed intervention, regression risks, decision owner, and current disposition. That creates continuity between discovery, triage, development, release, and customer communication.

Support also needs language that acknowledges the failure without pretending an immediate prompt edit is a fix. A useful response states what missed the product’s quality bar, confirms that the example has been attached to the relevant error category, and avoids guaranteeing that similar output is impossible. Once the team has evaluation evidence, the follow-up can explain whether the category improved, the product boundary changed, or no change was justified.

Key takeaways

  • Call something a bug when it materially violates an explicit product contract; do not use the word as a synonym for every disappointing output.
  • Define quality by user, task, context, dimension, and operating mode before you set an acceptance bar.
  • Diagnose the full system. A bad generated answer can be the symptom of retrieval, context, tool, workflow, or interface failure.
  • Improve categories of errors with representative evals instead of adding a prompt rule for every complaint.
  • Prioritize using consequence, exposure, frequency, detectability, recoverability, and available controls rather than ticket volume alone.
  • Promise what you can control: hard guarantees for enforceable invariants and measured improvement for probabilistic quality.

Take a set of recent AI-related tickets and classify each one using this framework. Any ticket that cannot be mapped to a contract, quality dimension, preference, or capability boundary exposes missing product work. Start with the highest-consequence workflow, write its quality contract, and build its first error categories from real reports. That gives support a credible answer today and gives the product team a system for making tomorrow’s answer better.

References


Want this applied to your product org?

A free 45-minute consultation: AI product strategy, GTM, transformation and PM hiring — practical next steps, no pitch.