What went wrong?
Everyone knows that debugging is twice as hard as writing a program in the first place. So you’re as clever as you can be when you write it how will you ever debug it?
— Brian W. Kernighan and P.J. Pluger, Elements of Programming Style 2d ed. 1978
It is not in the nature of a powerful new technology that seems to speed work along to keep changes in a system small. The legal profession has seen this in the growing number of court cases that have involved AI prepared pleadings and briefs that were not just wrong, but wrong in ways damaging to the lawyers who used them and the interests their clients. We are driving very powerful cars with very weak brakes. See my recent post on LLM model fails.

Train wrecks should be expected. Repairs will be needed. Causes will be found. Whether those causes are reproducible is uncertain. This paper discusses five approaches to failure analysis that range from rules of thumb to formal methods, the considerations that go into a choice of approach and the joker card introduced by probabilistic AI systems.

But there is another class of problems that are only complicated, not complex. They may be difficult to decompose into fixable elements but they can be solved with effort using root cause analysis (RCA), which is the subject of this post.

If it is a reproducible failure the engineering team fixed a symptom and missed the cause, and a better investigation would have found it. (Otherwise, the e-commerce checkout system as a whole will adapt around the fix until the conditions for failure next recur.) RCA is built for the reproducible failure. It brings structure to the investigation and helps to move from visible problems toward underlying causes. American Society for Quality: Root Cause Analysis.
Even when the first reading holds, a failure may have several contributing causes. Finding a plausible explanation does not prove it, and implementing a fix does not guarantee that a problem will never return. The second part is about recognizing the second kind of failure, where the tools rest on assumptions the system does not meet.
The five root cause analysis tools below serve different purposes. The 5 Whys and fishbone diagram help explore causes. Fault tree analysis examines failure pathways. Pareto analysis helps prioritize investigation. Failure mode and effects analysis primarily supports prevention.
Establish the facts first
Facts are stubborn things; and whatever may be our wishes, our inclinations, or the dictates of our passions, they cannot alter the state of facts and evidence …
— John Adams, 1770, quoted in William Gordon The History of the Rise, Progress, and Establishment, of the Independence of the United States of America, Vol. 1, p. 221 Project Gutenburg EPUB ed. 2025
Start with a clear problem statement. What failed, when, under what conditions, and with what impact? Checkout errors increased from 0.2% to 8% after Friday’s release is more useful than the website is unreliable.
Contain both immediate harm and the potential reputation by preserving relevant evidence. Record the event timeline, recent changes, logs, interviews, and operating conditions. Involve people who perform the work, including those who understand how it differs from the written procedure.2
Distinguish among established facts, hypotheses, and unanswered questions. For each proposed cause, ask what evidence supports it and what finding would contradict it in using each tool.
1. The 5 Whys: Explore a Causal Chain

The 5 Whys repeatedly asks why a problem occurred, using each answer to guide the next question. Five is a starting point: an investigation may require fewer or more questions, and the technique can be combined with brainstorming or a fishbone diagram. ASQ: Five Whys and Five Hows.
When to Use It
Use it to explore a relatively clear causal chain or investigate one branch of a larger problem. It is easy to learn, but effective use requires process knowledge and evidence. If several answers are credible, develop separate branches rather than forcing one story.
Avoid stopping at “human error.” Ask what information, tools, workload, design, or controls shaped the action. Likewise, do not assume that every investigation must end with a missing policy or checklist.
The Method in Action
A software company misses a client launch deadline. An initial questioning sequence asks:
- Why was the deadline missed?
Deployment failed during the release window
- Why did deployment fail?
A database operation was incompatible with the client’s installed database version.
3.Why was the incompatibility missed? Release testing did not include that version.
- Why was it excluded?
The test plan used an incomplete record of the client’s environment.
- Why was the record incomplete?
The sales-to-engineering handoff did not require confirmation of database versions.
A post-mortem team checks deployment logs, reproduces the incompatibility, and reviews the test plan and handoff records. It also investigates why the release-readiness review failed to expose the missing information.
Action and verification: If those links are supported, the team adds a verified environment record to the handoff and a compatibility check requirement for release approval. The person responsible for the delivery from sales to engineering is responsible for the verified record. Over the next three client launches, the team checks record completeness and compatibility-test results before reviewing effectiveness. However, a completed checklist alone does not demonstrate that deployments will be more reliable.

2. Fishbone Diagram: Organize Possible Causes
A fishbone, or Ishikawa diagram, organizes possible causes around a defined problem. Developed by Kaoru Ishikawa, it is especially useful for structuring group brainstorming. The diagram helps broaden investigation but its branches do not establish causation. ASQ: Fishbone Diagram.

Common manufacturing categories include people, machines, methods, materials, measurement, and environment. Adapt the categories to the problem. A service business might use process, technology, staffing, customer experience, and pricing.
When to Use It
Use a fishbone when several functions or interacting conditions may contribute to a problem. Include people with direct knowledge of the work, and distinguish observations from interpretations. A neutral facilitator can help maintain an inquiry-focused discussion; the diagram itself does not prevent blame.
The Method in Action
The team maps four possible contributors:
- Support: Slower response times may have affected customer satisfaction.
- Onboarding: A changed email sequence may have confused new users.
- Technology: Longer mobile page-load times may have reduced usability.
- Pricing: A recent price increase may have affected renewal decisions.
These hypotheses suggest different tests. The post-mortem team compares churn among affected and unaffected customer groups, examines cancellation reasons, checks when performance changed, and reviews support histories. It separates new-customer churn from legacy-customer renewals because those populations experienced different changes.
Action and verification: The company implements actions supported by the findings, including a review of pricing if evidence implicates it. The team tracks churn by customer group over the next two renewal cycles, accounting for changes in customer mix and seasonality. It avoids treating every brainstormed cause as equally established.
3. Fault Tree Analysis: Examine Failure Pathways
Fault tree analysis (FTA) starts with an undesired top event and works downward through events that could produce it using formalized logical operators. AND gates represent combinations required together; OR gates represent alternatives that can produce the output event. FTA can support both design-stage prevention and investigation after a failure. NASA: Fault Tree Handbook with Aerospace Applications, ch. 4.

A fault tree is a model built on system knowledge and assumptions. It supports qualitative analysis and, with suitable data, probability calculations. It does not independently prove an incident’s cause. Shared dependencies and common-cause failures must be considered when modeling redundancy.
When to Use It
Use FTA when the relationships among failures matter, especially in systems with backups, protective barriers, or hazardous outcomes. Define the system boundary and operating conditions, and have knowledgeable reviewers challenge the tree’s completeness.
The Method in Action
For this simplified example:
Service unavailable = shared critical dependency unavailable OR (primary unavailable AND standby unable to serve traffic).
Evidence identifies an incident pathway:
- Server room cooling equipment failed, making the primary environment unavailable.
- The failover process used an obsolete network address, preventing the standby from taking over.
Engineers confirm these events through facility records, service logs, configuration history, and a controlled reproduction. The standby defect was a latent weakness: it existed before the cooling failure exposed it. Other pathways remain possible and require review.
Action and verification: The responsible engineer coordinates cooling repairs, configuration corrections, and failover testing. The team verifies that the standby serves representative traffic within its recovery objective and reviews shared dependencies separately. A successful failover test demonstrates that tested capability under specified conditions; it does not establish immunity to future outages.
4. Failure and effects analysis to anticipate failure
Failure mode and effects analysis (FMEA) examines how a product, process, or service could fail, the effects and causes of failure, and controls for managing risk. It is most useful when started early and updated as knowledge changes, including during ongoing operations. ASQ: FMEA.
A traditional approach assigns ratings, commonly from 1 to 10, for:
- Severity: How serious the effect would be.
- Occurrence: How likely the cause or failure is under the selected rating criteria.
- Detection: How effective existing controls are at detecting the relevant cause or failure before the effect reaches the customer or next operation. Higher ratings generally indicate poorer detection.
A risk priority number is severity × occurrence × detection.
RPN alone can hide important differences between risks. For example, 10 × 2 × 2 and 2 × 10 × 2 both equal 40, despite different severity. The automotive AIAG–VDA handbook introduced Action Priority in place of RPN. Follow the framework applicable to your work, and review severe consequences explicitly. AIAG: FMEA Handbook Changes.
When to use it
Use FMEA when designing or changing a process, product, or service, and revisit it after incidents reveal weaknesses. Record failure modes, effects, causes, current controls, planned actions, owners, and reassessment results.
The method in action
A bank assesses its proposed mobile check-deposit service:
- Initiating action: A customer submits the same check again.
- Failure mode: Processing accepts a duplicate deposit without timely interception.
- Possible effect: Incorrect credit, financial exposure, and customer disputes.
- Control gap: Duplicate detection relies on a delayed manual review.
- Illustrative ratings: Severity 9, occurrence 5, detection 8; RPN = 360.
Those ratings require justification against each bank’s own criteria. The number 360 is not a universal launch-stop threshold.
An exact-image hash could detect repeated uploads of the same image file, but a new photograph of the same check would ordinarily produce different image data. The team therefore proposes server-side duplicate-item checks using check identifiers and deposit history, supported by image analysis, exception handling, and controls for relevant deposit channels. This proposed design would need validation against the bank’s systems and risk assessment. Federal guidance discusses duplicate file/item recognition and interception within broader remote-deposit controls. FDIC: Risk Management of Remote Deposit Capture (FIL-4-2009, revised June 2026).
Action and verification: The team tests repeated images, fresh photographs of previously submitted checks, simultaneous submissions, and legitimate checks that look similar. The team measures missed duplicates and false positives, evaluates remaining exposure, and reassesses ratings after validation. It does not assume that adding a detection feature merits a score of 1 or eliminates the risk.
5. Pareto analysis highlights where to check first
A Pareto chart orders categories from largest to smallest by a selected measure, such as frequency, cost, or time. It helps focus attention on the largest contributors. The familiar 80/20 principle is a heuristic; the actual distribution must come from data. ASQ: Pareto Chart.

When to Use It
Use Pareto analysis when many issues compete for attention. Choose a consistent time period, reliable categories, and a measure relevant to the decision. Frequency alone can overlook rare failures with serious consequences.
The Method in Action
| Reported issue | Tickets | Share | Cumulative share |
| Smart plug disconnects from Wi-Fi | 6,500 | 65% | 65% |
| Password-reset email does not arrive | 1,500 | 15% | 80% |
| Device will not turn on | 1,000 | 10% | 90% |
| Other issues | 1,000 | 10% | 100% |
The first two categories account for 80% of recorded tickets. That makes them strong investigation candidates. It does not establish that they represent 20% of underlying causes or that fixing them will remove every associated ticket.
Wi-Fi complaints could involve firmware, routers, setup instructions, or hardware. Missing emails could involve delivery systems, spam filtering, account information, or request handling. Further analysis is needed.
Action and verification: The product-quality lead assigns investigations into the largest categories while reviewing severe issues separately. After verified improvements, the team tracks tickets per active device, repeat contacts, and support workload for eight weeks. Staffing decisions use those results and service requirements rather than an assumed 80% reduction.
Turn findings into verified improvement
An investigation is ready for action when its conclusions can be traced to evidence. For each corrective action, record:
- The supported cause or control weakness the action addresses.
- An owner and target date for implementation.
- An acceptance test showing the change works under defined conditions.
- An outcome measure and review period showing whether recurrence or impact declines.
- Remaining uncertainty and follow-up, including updates to related processes or risk analyses.
For example: “The release manager will introduce database compatibility testing before the next client launch. Acceptance requires passing tests against the confirmed client version. Effectiveness will be reviewed after three launches, including any incompatibilities caught before release or found afterward.”
These are suggested working practices for the examples, not universal review periods or prescribed industry thresholds.
When RCA tools fail

Each of the five tools assumes that the system can be taken apart.
- The 5 Whys assumes a chain of events.
- A fishbone assumes that causes can be sorted into separate categories.
- A fault tree assumes fixed logic connecting component failures to the top event.
- FMEA assumes that failure modes can be listed part by part or step by step.
- Pareto analysis assumes that the categories stay put long enough to count.
When those assumptions hold, the system is complicated and hard to analyze, but analyzable. But that is not all systems.

Complex adaptive systems
Some systems are complex instead. Richard Cook’s short paper How Complex Systems Fail explains why that matters. Complex systems carry a changing mixture of latent failures, and they run in degraded mode, kept going by redundancy and by people who work around the flaws. An overt failure requires several of these conditions to line up at once. Each contributor is necessary and none is sufficient on its own, so Cook calls attributing an accident to a single root cause “fundamentally wrong”: it reflects a social need to locate blame more than a technical account of failure. Hindsight then makes the chain look obvious.
The examples above contain traces of this. The standby environment’s obsolete network address was a latent failure. Nobody broke anything, and the configuration drifted while the system looked healthy. The churn example involves customers responding to price, support, onboarding, and performance at once, which is why the team had to separate customer groups before any explanation made sense. And a checkout failure that returns two weeks after it was fixed may be a system adapting around a repair rather than a cause that was missed.
Signs that you may be in this territory:
- No single change explains the failure.
- The same conditions produced success last week.
- Every component passes its own tests.
- Fixes work for a while, then stop working.
- The most convincing explanation is that someone made a mistake.
None of this makes the five tools useless. They still organize evidence and test specific causal links. What changes is the question. “What broke?” gives way to “What allowed normal conditions to combine into a failure, and why didn’t our controls notice?”
Choose the Tool for the Question
| Your immediate question | Useful starting tool |
| Why did this step fail? | 5 Whys |
| What possible causes should we investigate? | Fishbone diagram |
| What failures or combinations could produce this outcome? | Fault Tree Analysis |
| How could this design or process fail, and what controls need improvement? | FMEA |
| Which categories account for the largest measured burden? | Pareto analysis |
| Why does this keep failing when every part checks out? | CAST or another systems-based review |
A team might begin with Pareto analysis, map hypotheses with a fishbone diagram, explore a branch with the 5 Whys, and use an FTA where failure combinations matter. The resulting lessons can inform an updated FMEA.
The practical goal is to build an explanation supported by evidence, make changes that address it, and check whether those changes work.
Sources and further reading
- ASQ — Root Cause Analysis RCA’s role in broader problem solving
- Questioning procedure and use with other toolsASQ — Five Whys and Five Hows
- Organizing potential causes and adapting categoriesASQ — Fishbone Diagram
ANDandORgates (ch. 4, pp. 34–35), qualitative and quantitative analysis, and common-cause failures NASA — Fault Tree Handbook with Aerospace Applications, Version 1.1, August 2002- A short introduction to top-down fault analysis and its use in design. NASA — Mechanical Fault Tree Analysis
- Failure analysis, prioritization, and continuing updates ASQ — Failure Mode and Effects Analysis
- Action Priority replacing RPN in the AIAG–VDA approach AIAG — New AIAG & VDA FMEA Handbook and Trainings Available, June 13, 2019
- Duplicate presentment as a fraud and process risk, and duplicate file/item recognition and interception, particularly pages 5 and 7–8 of the attachment FDIC — Risk Management of Remote Deposit Capture, FIL-4-2009, January 14, 2009, revised June 2, 2026
- Prioritizing categories by frequency, cost, or time ASQ — Pareto Chart
- Latent failures, degraded operation, multiple contributors, and hindsight bias Richard I. Cook — How Complex Systems Fail, Revision D, April 21, 2000
- Analytic reduction versus systems theory (ch. 3), the STAMP model (ch. 4, p. 92), STPA (ch. 8), and CAST (ch. 11). The full text is free to read from MIT Press Nancy G. Leveson — Engineering a Safer World: Systems Thinking Applied to Safety, MIT Press, 2011
THIS is what I do
I’m a senior lawyer with Big Law, ALJ and in-house experience at large financial institutions who is also AI- and data science savvy. In my spare time away from exercising my law stack on a variety of models, on my own dime and for hire, I’m available for consultation. Ping me at richardcareaga@protonmail.com or connect through LinkedIn.