Sub topic 4
Listing Failure Modes and Ranking Their Severity
This chapter assumes you can read short Python and JSON snippets. It also assumes you have written product requirements or user stories, and that you know a large language model (LLM) produces different text for the same input. Earlier chapters framed the feature and chose quality dimensions. Here you turn those dimensions into a concrete list of ways the feature can fail, and you rank each failure by how much harm it causes.
Why list failure modes before writing requirements
A quality dimension such as "groundedness" says what you care about. A failure mode says what going wrong looks like. "The answer states a refund deadline that the policy does not contain" is a failure mode. It is specific enough that a reviewer can look at an output and decide whether it happened.
Listing failure modes first gives you three things:
- Requirements that target real risks instead of generic goals like "the answer should be good."
- Evaluation cases that you can write on purpose, because each failure mode tells you what input might trigger it.
- A basis for deciding which failures block a release and which only lower a score.
A failure mode is a described way an output or behavior can be wrong, written so that two people looking at the same output would agree on whether it occurred. A severity is a label that records how costly that failure is when it happens.
A running example
The examples in this chapter use a support assistant that answers customer questions about a company's refund policy. It retrieves policy text and writes an answer. The dimensions chosen earlier are groundedness (claims supported by the policy), completeness (the answer covers what the customer needs), tone (polite and calm), and safety (no harmful or out-of-scope content).
Finding failure modes
Do not try to invent failure modes from your head alone. Use several sources and merge the results.
- Walk each quality dimension and ask "how does this break?" For groundedness, the answer might invent a deadline, quote an old policy version, or merge two policies into one.
- Walk the pipeline. Each step has its own failures. Retrieval may return the wrong document or nothing. The model may ignore the retrieved text. A formatting step may truncate the answer.
- Read real or realistic inputs. Collect 30 to 50 customer questions. Run them through a prototype and read every output. Note each problem in plain words.
- Ask the people who handle the fallout. Support agents, legal staff, and account managers know which mistakes cause refunds, complaints, or press coverage.
- Think like an adversary. Ask what a user could do on purpose: try to extract a refund the policy does not allow, ask the assistant to ignore its instructions, or paste hostile text into the question.
Reading outputs by hand is the step teams most often skip. It is also the most productive one, because it turns vague worries into named, countable problems.
Grouping failures into a taxonomy
After a first pass you will have a long, messy list. Group it into categories so you can see gaps and avoid duplicates. A taxonomy is a grouped list of failure modes with consistent names. For the refund assistant, one workable grouping is:
| Category | Example failure mode | Dimension affected |
|---|---|---|
| Factual error | States a refund amount or deadline that contradicts the policy | Groundedness |
| Unsupported claim | Promises a refund the policy does not guarantee | Groundedness |
| Omission | Leaves out the requirement to return the item in original packaging | Completeness |
| Retrieval miss | Answers from the wrong policy because the right one was not retrieved | Groundedness, completeness |
| Tone | Blames the customer or sounds dismissive | Tone |
| Scope | Gives legal advice or discusses an unrelated product | Safety |
| Manipulation | Follows an instruction hidden in the user's message | Safety |
| Format | Returns an empty reply or cuts off mid-sentence | Completeness |
Keep the categories mutually distinct. If two people would file the same output under two categories, merge them or write a rule for which one wins. Give each failure mode a short identifier, such as FM-2, so requirements and test cases can refer to it.
Ranking severity
Not every failure deserves the same response. Telling a customer the wrong refund deadline can cost money and create a legal dispute. A slightly stiff tone is an annoyance. If you count both as "one failed case," your pass rate hides the difference.
Severity is a small ordered scale. Four levels are enough for most teams:
| Severity | Meaning | Example | Typical response |
|---|---|---|---|
| Critical | Causes financial, legal, safety, or trust harm that is hard to undo | States a refund amount that contradicts the policy | Zero tolerance. Any occurrence blocks release |
| Major | Gives the user a wrong or unusable result but is unlikely to cause lasting harm | Omits a required step, so the customer must write again | Tight rate threshold, such as 2% or fewer |
| Minor | Reduces quality, and the user can still succeed | Verbose answer that buries the key point | Looser rate threshold, tracked over time |
| Cosmetic | Style preference with no effect on success | Inconsistent capitalization | Record it, and do not gate on it |
How to decide a severity
Judge severity by consequence, not by how often the failure happens. Frequency is a separate number that you measure later. Two questions help:
- Impact: If a real user relies on this output, what is the worst realistic result?
- Reversibility: Can the user or the company notice and fix it cheaply?
A failure that is rare but irreversible, such as leaking another customer's order details, is critical even if it appeared once in a thousand tries. A failure that is frequent but harmless, such as an extra greeting, stays cosmetic.
Severity can also depend on context. The same wrong sentence is minor in an internal drafting tool where a human edits every reply, and critical in a fully automated customer chat. Record the deployment context next to your ratings so that a later change, such as removing the human reviewer, triggers a re-rating.
The following diagram shows the decision path for assigning a level.
Recording the register
Keep the list in a shared file or table that people can edit and review. This list is often called a failure mode register. Each row needs an identifier, a name, a description precise enough to judge, a severity, the dimension it affects, and an example output. A small JSON record works well:
{
"id": "FM-1",
"name": "contradicts_refund_terms",
"description": "Answer states a refund amount or deadline that differs from the retrieved policy text.",
"dimension": "groundedness",
"severity": "critical",
"context": "fully automated chat, no human review",
"example": "You have 90 days to return it, but the policy says 30 days."
}The severity value is the same label your evaluation cases use later. In the dataset chapter, a field such as severity_if_failed on each case points back to a register entry, so a failed case immediately tells you how serious it is.
Connecting severity to requirements
Severity decides the shape of the requirement you write next. Critical failures get a zero-tolerance rule. Lower levels get a rate threshold. Cosmetic items get no gate. Here is the pattern used for the refund assistant:
REQ-3 Groundedness
For questions in the "refund policy" category of the evaluation set, at least 95% of answers must make only claims supported by the retrieved policy text, as judged by the groundedness grader.
No answer may state a refund amount or deadline that contradicts the policy (severity: critical, tolerance: 0 cases).The first paragraph is a rate threshold covering the broad dimension. The second paragraph is a separate rule for the critical failure mode FM-1. You need both. A 95% rate alone would allow five wrong deadlines in a hundred answers. A zero-tolerance rule alone would say nothing about the milder unsupported claims.
Common mistakes
- One severity for everything. If every failure is "high," the scale carries no information and every release stalls.
- Severity from frequency. Teams downgrade a failure because it is rare. Rare and irreversible is still critical.
- Vague descriptions. "Bad answer" cannot be judged. "Contradicts the retrieved policy text" can.
- Overlapping categories. Overlap makes counts unreliable, because the same output gets counted twice or not at all.
- A register that is written once. New failures appear after launch. Add them when you find them, and rate them using the same rules.
- Ignoring the pipeline. Blaming every error on the model hides retrieval and formatting defects that have different fixes.
Checking your list
Before moving on, check the register against these points:
- Every quality dimension has at least one failure mode.
- Every failure mode has a severity and a judgeable description.
- At least one failure mode comes from adversarial thinking, not only from observed outputs.
- Each critical failure mode is something you can imagine writing a test case for.
- A person outside the team could rate a sample output using only the register.
Point 5 is a quick test of clarity. Give two colleagues ten outputs and the register, and compare their labels. Frequent disagreement means the descriptions need tightening.
Exercise
A travel-booking assistant sometimes (about 1 in 500 conversations) confirms a booking in its reply when the booking system actually returned an error. Another failure, seen in about 1 in 5 conversations, is that the reply opens with two sentences of unnecessary friendly chatter. Assign a severity to each, justify your choice using impact and reversibility, and say what kind of requirement each should get.
Show answer
The false booking confirmation is critical. Impact: the customer may arrive for a trip with no reservation, which causes financial loss and a loss of trust. Reversibility: the customer often discovers it too late to fix cheaply. Its low frequency does not lower the severity. It should get a zero-tolerance requirement, for example "No reply may confirm a booking that the booking system rejected (tolerance: 0 cases)." The unnecessary chatter is minor, or cosmetic if it does not slow the customer down. The customer can still complete the booking, and nothing is lost. Its high frequency does not raise the severity. It should get a loose rate threshold, such as at most 20% of replies, or no gate at all if it is cosmetic.
Exercise
Your team lists these failure modes for a meeting-summary feature: "bad summary," "summary is wrong," and "misses stuff." Explain what is wrong with this list and rewrite it as three judgeable failure modes with a severity for each.
Show answer
The three entries overlap and are not judgeable, since two reviewers would not agree on what counts as "bad" or "wrong." A better list: (1) "Attributes a statement or decision to the wrong person" (major, because people may act on a false record). (2) "Omits an action item that was assigned in the meeting" (major, because the task may be forgotten). (3) "Invents an action item or decision that was never discussed" (critical in a fully automated setting, because people may act on something that never happened). Each description names an observable behavior that a reviewer can check against the transcript. Other reasonable ratings are acceptable if the justification covers impact and reversibility.