1. Analyze the Request:
* Goal: Compose a defect taxonomy.
* Scope: It must bridge three distinct domains:
1. UX bugs (User Experience/Interface).
2. Functional regressions (Software Engineering/QA).
3. Prediction errors (Machine Learning/AI).
* Target Audience: Likely a cross-functional team (Product, Design, Engineering, Data Science) looking for a unified framework to categorize and track issues in an AI-powered application.
-
Deconstruct the Three Domains:
- UX Bugs: Focus on the "front end" of the user journey. Visual glitches, accessibility, interaction feedback, copy, flows.
- Keywords: Layout, Responsiveness, Accessibility (WCAG), Usability, Visuals, Feedback.
- Functional Regressions: Focus on the "logic" and stability. Code that used to work but broke, or features not meeting specs. API failures, crashes, state management.
- Keywords: Crash, Exception, Workflow, Logic, Data Integrity, Performance (latency/throughput).
- Prediction Errors: Focus on the "AI/ML" component. The model outputs are wrong, biased, slow, or nonsensical.
- Keywords: Accuracy, Relevance, Bias, Hallucination, Latency (inference time), Edge cases.
-
Determine the Structure of the Taxonomy:
- A flat list is too messy. A hierarchical structure is best.
- Proposed Categories:
- Presentation & Interaction Layer (UX focus)
- System & Workflow Layer (Functional focus)
- Cognitive & Model Layer (Prediction focus)
- Cross-Cutting Concerns (Performance, Security - applies to all)
-
Drafting the Content (Iterative Refinement):
-
Layer 1: Presentation (The "Surface")
- Visuals: Broken layout, wrong colors.
- Interaction: Button doesn't click, wrong hover state.
- Accessibility: Screen reader issues.
- Bridge to AI: How is the prediction displayed? (e.g., "Streaming text stuttering").
-
Layer 2: Functional (The "Plumbing")
- Control Flow: Can't submit form, infinite loops.
- Data Handling: Saving wrong data, losing state.
- API/Integration: 500 errors, timeouts.
- Bridge to AI: Is the model called correctly? Is the prompt sent?
-
Layer 3: Prediction (The "Brain")
- Output Quality: Wrong answer, irrelevant.
- Reasoning: Logical fallacies, hallucinations.
- Safety: Toxic output, PII leak.
- Bridge to UX: Is the confidence score shown? Does the user know why the AI said that?
-
Developing "Bridging" Attributes (The "Taxonomy" aspect):
- A taxonomy needs attributes for classification, not just types.
- Severity: Critical, Major, Minor, Cosmetic.
- Root Cause: Human error, Code logic, Model drift, Data pipeline.
- Remediation: Code fix, Retrain model, Prompt engineering, Design change.
-
Refining the Taxonomy Names (Making it Professional):
-
Creating a Unified Matrix (The "Bridge"):
- To truly answer the prompt, I need to show how these overlap.
- Scenario: AI generates a summary.
- UX Bug: Summary text overflows the box.
- Functional Bug: API call fails to save summary.
- Prediction Bug: Summary hallucinates facts.
-
Final Polish & Organization:
- Add an introduction explaining the "Why" (Unified triage).
- Use clear, bold headers.
- Include "Remediation Paths" (How to fix it depends on the taxonomy).
- Add a specific section on "Hybrid/Intersectional Defects" because that's the hardest part of AI QA.
-
Self-Correction during drafting:
- Initial thought: Put performance in Functional.
- Correction: Performance splits. UI Lag (UX), API Latency (Functional), Inference Time (Prediction). I should note this distinction.
-
Final Output Generation: (This matches the detailed response provided previously, organized into the Logical Hierarchy.)
This taxonomy is designed for products featuring an AI/ML core wrapped in a traditional software shell (e.g., a generative AI app, a recommendation engine, or an autonomous system).
It categorizes defects into three primary layers—Presentation (UX), Application (Functional), and Intelligence (Prediction)—while explicitly defining the Bridging Defects that occur at the intersections.
The Unified AI Defect Taxonomy
Layer 1: The Presentation Layer (UX/UI)
Defects related to the user interface, accessibility, and the human-computer interaction loop, regardless of the underlying logic.
1.1 Visual & Layout Integrity
- Rendering Breakage: UI elements overlapping, truncating, or failing to respond to viewport changes (responsiveness).
- Streaming Artifacts: "Glitching" or stuttering during the token-by-token generation of AI responses.
- Theming/Contrast: Failure to meet WCAG contrast ratios or incorrect dark-mode rendering.
1.2 Interaction & Feedback
- State Indicators: Missing loading spinners during model inference (the app appears frozen).
- Unresponsive Controls: Buttons (e.g., "Stop Generation," "Regenerate") failing to interrupt the inference stream.
- Affordance Mismatch: The UI implies a capability (e.g., an editable text field) that the system does not actually support.
1.3 Information Architecture
- Context Obscurity: The user cannot tell why the AI gave a specific answer (lack of source citation or "thought process").
- History/State Loss: The conversation history or user preferences vanish upon refresh.
Layer 2: The Application Layer (Functional Regressions)
Defects related to the deterministic "plumbing" of the software—APIs, databases, and business logic.
2.1 Workflow Logic
- Broken Chained Actions: "Generate Image" works, but "Download Image" fails.
- State Management: The app forgets the selected persona/model mid-session.
- Input Validation: The backend crashes on special characters, or valid inputs are rejected as invalid.
2.2 Integration & Stability
- API Failures: 500-series errors from the application server (distinct from model failures).
- Timeouts: The application server timing out before the model finishes generating.
- Data Persistence: User settings or feedback (thumbs up/down) fail to save to the database.
Layer 3: The Intelligence Layer (Prediction Errors)
Defects inherent to the probabilistic nature of the model. These are not "bugs" in the code, but failures in the expected output quality.
3.1 Relevance & Coherence
- Hallucination: The model fabricates facts, citations, or non-existent entities.
- Context Drift: The model loses track of the conversation history (forgets previous turns).
- Instruction following: The model ignores constraints (e.g., "Answer in JSON" returns plain text).
3.2 Safety & Alignment
- Toxicity/Bias: The model outputs hate speech, PII (Personally Identifiable Information), or biased content.
- Refusal Loops: The model refuses benign prompts due to overly aggressive safety filters (False Positive Safety refusal).
- Leaking: The model inadvertently reveals system prompts or training data.
3.3 Structural Consistency
- Formatting Drift: The model provides the right answer but in the wrong schema (e.g., returning 3 bullet points instead of 5).
- Language Mixing: Unintended switching between languages mid-response.
The Bridging Defects (The Intersection Zones)
This is the most critical area for modern AI QA. These defects occur when the UX, Functional Code, and Model interact.
Bridge A: The "Probabilistic UI" (UX + Prediction)
The UI fails to handle the non-deterministic nature of the model.
- The "Flash of Unstyled Content": The UI renders raw tokens or markdown code briefly before rendering the final rich text.
- Static Containers for Dynamic Content: A fixed-height UI card breaks because the model generated a 500-word summary instead of the expected 50 words.
- Pagination Failures: The UI cannot paginate a response that streams in indefinitely.
Bridge B: The "Broken Handshake" (Functional + Prediction)
The deterministic code fails to process the model's output.
- Parser Breakage: The code expects JSON, but the model outputs Markdown wrapped in JSON, causing a
json.decoder crash.
- Token Limit Truncation: The functional logic sends 5,000 tokens to a model with a 4,000-token context window, causing a silent failure or a hallucinated ending.
- Loop Logic: The model repeats the same phrase; the code fails to implement a "repetition penalty" stop condition, leading to an infinite generation loop.
Bridge C: The "Trust Gap" (UX + Prediction)
The interface misrepresents the model's confidence.
- False Grounding: The UI displays "Sources" that look authoritative, but the model has hallucinated the URLs.
- Confidence Mismatch: The UI displays a "High Confidence" badge, but the model's internal log-probabilities are low.
- Black Box Opacity: The system makes a decision (e.g., rejects a credit application) but the UX provides no explanation mechanism, failing user trust.
Taxonomy Metadata (Tagging Standards)
When logging a defect, apply the following attributes to enable Root Cause Analysis (RCA):
| Attribute | Values | Purpose |
|---|
| Determinism | Deterministic / Probabilistic | Is the bug reproducible 100% of the time? (Code vs. Model) |
| Remediation | Code Fix / Prompt Engineering / Fine-Tuning | Who needs to fix this? (Eng vs. Data Science) |
| Severity | Blocker / Major / Minor | Impact on the user journey. |
| Layer | 1 (UX) / 2 (App) / 3 (Model) | Where the fix must occur. |
Example Logged Ticket using this Taxonomy:
Title: Chat streaming causes "Copy Button" to shift rapidly (UI jank).
Layer: 1 (Presentation)
Bridge: Probabilistic UI (Dynamic content in static container)
Determinism: Probabilistic (Occurs on long outputs)
Description: When the model generates a response longer than the viewport, the "Copy" button vibrates/shakes as it re-renders with every new token.