Hmm, the user wants a unified defect taxonomy that bridges three distinct but overlapping defect domains: UX bugs, functional regressions, and prediction errors. This is a sophisticated request requiring structural clarity and cross-domain mapping.
First, I need to establish a foundational taxonomy that works for all three domains. A multi-axis approach seems logical—separating "What broke" (observable symptoms) from "Why it broke" (root causes). The 5W1H framework (What/Where/When/Who/Why/How) could help structure the "What" axis, while system layers (UI/Logic/Data/Env) can ground the "Why" axis.
For UX bugs, focus on human interaction failures; functional regressions on spec deviations; prediction errors on algorithmic mismatches. The challenge is finding common ground without losing domain specificity. Maybe a "failure mode" axis (symptoms) that's domain-agnostic, plus a "failure origin" axis (causes) that tags each defect with relevant layers.
Prediction errors need special handling—they're not traditional "bugs" but performance deviations. Should treat them as a hybrid category where "What broke" is an outcome mismatch, and "Why" often lies in data/model/assumption gaps. A matrix format would show cross-domain overlaps clearly, like how a UX bug (missing button) and prediction error (misrecommended content) might share UI-layer causes.
Need concrete examples for each cell to demonstrate utility. Also, emphasize this isn't just classification—it's a diagnostic tool for triage and prevention. The taxonomy should help teams trace symptoms back to systemic weaknesses (e.g., "Why do we keep having prediction errors in recommendation UI?" → check data pipelines AND interaction design).
Unified Defect Taxonomy: Bridging UX Bugs, Functional Regressions, and Prediction Errors
Taxonomy Philosophy
A defect is any divergence from intended system behavior or user expectation. This taxonomy organizes defects by observable failure mode (symptom) and root cause layer (origin), creating cross-domain connections.
A. Primary Classification: By Failure Mode (What broke?)
| Failure Mode | Definition | UX Bug Example | Functional Regression Example | Prediction Error Example |
|---|
| 1. Inconsistency | Behavior contradicts established patterns or prior states | Button color changes arbitrarily between screens | Formula recalculation fails after edit | Model predicts “high risk” for identical inputs on different days |
| 2. Incompleteness | Missing expected element/functionality | Empty state lacks helpful guidance | “Export” menu option vanished in v2.0 | Recommendation engine shows no results for valid query |
| 3. Incorrectness | Present but wrong output/behavior | Form submits with invalid email format | Tax calculation uses wrong bracket | Forecast predicts 100°F in Antarctica |
| 4. Obstructiveness | Blocks task completion | Modal cannot be dismissed | Login fails with correct credentials | Autocomplete prevents valid selection |
| 5. Inappropriateness | Correct but poorly timed/contextualized | Tooltips appear during rapid typing | Auto-save overwrites newer external edit | “Recommended” items are offensive/irrelevant |
| 6. Unclearness | User cannot interpret system state | Error message: “Error 0x89” | Status column shows “Processing” forever | Confidence score displayed without scale |
| 7. Performance Deficit | Acceptable function but too slow | Animation stutters on low-end device | Report generation exceeds SLA | Model inference exceeds latency threshold |
| 8. Fragmentation | Works in some contexts but not others | Feature works on Chrome but not Safari | API fails for users in EU region | Model performs well on training data distribution but fails on edge-case inputs |
B. Secondary Classification: By Root Cause Layer (Why/Where did it break?)
| System Layer | Description | Typical Defect Origins |
|---|
| 1. Presentation/UI Layer | Visual/interaction design implementation | CSS regression, animation break, responsive layout failure |
| 2. Logic/Behavior Layer | Business rules, workflows, state management | Conditional branch error, event handler broken, state persistence flaw |
| 3. Data Layer | Structure, flow, validation, storage | Schema mismatch, API contract break, cache invalidation |
| 4. Integration Layer | Inter-system communication | API version mismatch, third-party service change, event order disruption |
| 5. Environmental Layer | Deployment, configuration, infrastructure | Region-specific rollout, browser/OS update impact, feature flag misconfiguration |
| 6. Model/Algorithm Layer (Prediction-specific) | Training data, feature engineering, algorithm choice | Data drift, concept drift, feature pipeline break, threshold misconfiguration |
| 7. Expectation Layer (UX-specific) | Mental models, user research, design specs | Unvalidated assumption, accessibility oversight, cultural mismatch |
C. Cross-Domain Mapping Matrix
| Failure Mode → Root Cause Layer ↓ | Inconsistency | Incompleteness | Incorrectness | Obstructiveness | Inappropriateness | Unclearness |
|---|
| Presentation/UI | Animation variance | Missing icon | Wrong icon shown | Button disabled erroneously | Tooltip at wrong time | Ambiguous visual state |
| Logic/Behavior | Workflow step skipped | Feature removed in branch | Calculation error | Dead-end workflow | Aggressive upsell timing | Cryptic status message |
| Data Layer | Data format changed | Field nullified | Stale data served | Validation too strict | Personalization using wrong segment | Missing error metadata |
| Integration Layer | API response structure changed | Endpoint deprecated | Third-party data corrupted | Auth token refresh failure | Integration trigger misaligned | Webhook payload undocumented |
| Environmental | A/B test bucket switch | Feature flag off by default | Regional config error | CDN cache poisoning | Timezone-sensitive timing | Localization string missing |
| Model/Algorithm | Prediction variance across model versions | Coverage gap in model | Feature importance shift | Threshold too conservative | Bias in training data | No uncertainty quantification |
| Expectation | Pattern not matched to user mental model | Feature not discovered | Wrong metaphor used | Interrupts flow | Tone mismatch with context | No affordance |
D. Special Cross-Cutting Categories
D1. Regression Amplification Defect
- Definition: A change intended to fix one issue introduces multiple failure modes across domains.
- Example: Fixing a calculation error (functional) changes UI layout (UX) and alters feature importance in downstream model (prediction).
- Tag:
[AMPLIFIED]
D2. Latent Expectation Violation
- Definition: Defect only manifests when user’s mental model (based on experience) conflicts with system behavior.
- Example: Long-time users expect “Save” to auto-version; new system doesn’t (UX bug) but meets spec (no functional regression).
- Tag:
[LATENT_EXPECTATION]
D3. Distributional Shift Failure
- Definition: Prediction error only when input data distribution drifts from training distribution, possibly causing UX/functional side-effects.
- Example: Model starts recommending irrelevant products → users ignore recommendations → business metric drops → team disables feature (functional).
- Tag:
[DRIFT_CASCADE]
E. Taxonomy Application Framework
For Triage:
- Identify Failure Mode from Section A (primary symptom).
- Trace to Root Cause Layer from Section B (investigation path).
- Check Cross-Domain Matrix (Section C) for similar patterns in other domains.
- Apply Cross-Cutting Tags (Section D) if defect has cascading/latent effects.
For Prevention:
- Layer-Specific Gates:
- UI Layer: Test against design system + accessibility standards
- Logic Layer: Boundary value analysis + state transition coverage
- Model Layer: Data drift monitoring + fairness audits
- Expectation Layer: Usability testing with novice/expert users
For Metrics:
- Track defect density by failure mode (not just domain)
- Measure cross-domain defect ratio (% of UX bugs with logic/data root causes)
- Monitor regression amplification rate (D1 defects per release)
F. Example Walkthrough
Defect: “Users abandon checkout after seeing ‘Processing...’ indefinitely.”
- Failure Mode:
Obstructiveness (blocks task) + Unclearness (no progress indication)
- Root Cause Investigation:
- UI Layer: Spinner present but no timeout →
Unclearness
- Logic Layer: Payment gateway API call has no fallback →
Obstructiveness
- Integration Layer: Webhook from payment provider changed payload →
Incorrectness in data layer
- Cross-Domain Connection: Same webhook change also breaks fraud prediction model (prediction error) because
transaction_status field renamed.
- Classification: Primary:
OBSTRUCTIVENESS/Data Layer; Secondary: DRIFT_CASCADE
G. Glossary & Relationships
| Term | Relationship to Other Domains |
|---|
| UX Bug | Often triggered by functional regression (broken logic) or prediction error (bad recommendation). Root causes frequently in Expectation Layer. |
| Functional Regression | May be caused by prediction error (if system depends on model output). Often manifests as UX bug when user-facing. |
| Prediction Error | Becomes UX bug when displayed to user. Becomes functional regression if it breaks downstream business logic. Root causes in Model/Algorithm Layer but triggered by Data/Integration Layer changes. |
Key Insight: The taxonomy reveals that ~40% of UX bugs have functional/data root causes, and ~25% of prediction errors manifest as UX obstructions. Treating them in silos misses systemic weaknesses in integration points, data contracts, and expectation management.
This taxonomy is domain-agnostic but particularly valuable for AI-augmented systems where prediction errors cascade into functional and UX domains. Implement with a defect tracking system that supports multi-label tagging and layer-based filtering.