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 wreck in paris

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.

The Joker

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.


Note
The remainder of this post is co-authored with Claude Opus 5.5, reviewed and edited by me. If if this make it automatically AI slop by your standards, skip to the end for primary sources.
ALT_TEXT

Note
It’s Friday afternoon, and a critical bug crashes your e-commerce checkout. Your engineering team restores service before the weekend rush. Two weeks later, the same failure returns.1

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.

Note
Every one of these tools depends on judgment calls: where to stop asking why, which categories to draw, how to rate a risk, where the system boundary lies. Those calls can be bent, deliberately or not, toward blaming the person closest to the failure or away from the decisions that set it up. Leveson calls the second tendency “root cause seduction,” a cause found low in the organization can be fixed “without implicating management.”

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

ALT_TEXT

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:

  1. Why was the deadline missed?

Deployment failed during the release window

  1. 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.

  1. Why was it excluded?

The test plan used an incomplete record of the client’s environment.

  1. 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.

ALT_TEXT

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.

ALT_TEXT

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

Note
A SaaS company’s quarterly customer churn rate rises from 4.0% to 4.6%: an increase of 0.6 percentage points, or 15% relative to the earlier rate.

The team maps four possible contributors:

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.

Fault tree

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

Note
An online retailer loses service despite having a primary and standby environment.

For this simplified example:

Service unavailable = shared critical dependency unavailable OR (primary unavailable AND standby unable to serve traffic).

Evidence identifies an incident pathway:

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:

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

Note

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.

ALT_TEXT

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

Note
An electronics manufacturer categorizes 10,000 support tickets
Reported issueTicketsShareCumulative share
Smart plug disconnects from Wi-Fi6,50065%65%
Password-reset email does not arrive1,50015%80%
Device will not turn on1,00010%90%
Other issues1,00010%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:

  1. The supported cause or control weakness the action addresses.
  2. An owner and target date for implementation.
  3. An acceptance test showing the change works under defined conditions.
  4. An outcome measure and review period showing whether recurrence or impact declines.
  5. 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

Note
Challenger wreckage
Richard Feynman’s takedown of NASA’s decision making to the Challenger disaster and Edward Tufte’s scathing criticism of the cognitive style of PowerPoint™ used pre-launch to justify launch separately discuss the defects in NASA’s processes. Not discussed there is that NASA had actually done a FMEA that correctly identified the O-rings as a “Criticality 1” catastrophic risk prior to the launch, but the operational warnings generated by the analysis were mismanaged.

Each of the five tools assumes that the system can be taken apart.

When those assumptions hold, the system is complicated and hard to analyze, but analyzable. But that is not all systems.

A complicated system

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:

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 questionUseful 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

Note
Sources accessed October 19, 2026. The scenarios, proposed interventions, and suggested verification periods are illustrative applications; the linked sources do not document them.

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.

richardcareaga@protonmail.com

  1. 1All business scenarios and numerical ratings below are hypothetical examples, not documented case studies or industry benchmarks.
  2. 2There is more than a grain of truth in the notion that the real operating manual of a system is recorded in sticky notes on monitors and cubicle walls.