24.9 Recovering by cause, not symptom
- Approved by
- Panaversity ·
In everyday life. Water drips from a ceiling. A bucket under the drip keeps the floor dry tonight. It deals with the symptom, the part of the problem you can see. The cause is a cracked roof tile, and until someone replaces it, the bucket fills again with every rain. After the repair, a careful owner looks at that spot on the ceiling after each rain. In this concept, the bucket is a retry or a patch, the tile is the cause, and the look after each rain is a new case in the golden set.
What you will learn. How to choose the fix that removes a failure's cause, and how to keep the failure fixed. You practice it in Lab 24, Task 6.
- What is a recovery for the cause?
- What is one cause and one fix for each name?
- How do you make the change?
- What happens to a failure found in live work?
- What does a fix for the cause cost?
Why it matters. A fix for the symptom makes one answer look right. The same cause then gives the next wrong answer, on a case nobody has looked at yet.
At work. Monday, April 12, 2027, a little after 8:40. The builder has a name and a place for Ana's failed answer: hallucination, in model output. The cause is the line that Friday's change cut (24.4). Two fixes are possible. The first adds a line to the prompt: "For a $12,000.00 invoice, say the controller approves before payment." The flagged case would pass, and every other rule with a condition would still be at risk. The second puts the cut line back. The builder puts the line back.
What is a recovery for the cause?
A recovery for the cause changes the reason an answer was wrong, not only the answer. A symptom is the wrong answer you saw. A cause is the reason it was wrong, found by naming the failure (24.7) and finding where it began (24.8). A recovery is what you change so the worker is right again. The exam guide asks for "a recovery that addresses the cause rather than the symptom".1
A fix for the symptom leaves the reason in place. The common ones:
- Send the same request again until it passes.
- Add a rule to the prompt for the one case that failed.
- Correct the answer by hand.
- Loosen the check that caught it.
What is one cause and one fix for each name?
The table below gives one common cause for each name, and the fix the official pages give for it. Each name has more than one possible cause.
| Name | A common cause | A fix for that cause |
|---|---|---|
| Hallucination | The worker made a claim with no source in front of it | For long documents, ask for word-for-word quotes first. Ask for a citation for each claim, and tell it to retract a claim it cannot quote. Allow "I don't know"2 |
| Refusal (the model declines) | Read the category. With reasoning_extraction, the prompt asked the model to show its reasoning | Change the prompt. For other categories, another model can usually answer. Never send the request again unchanged (21.3)3 |
| Under-acting | The instruction asked for a suggestion: "can you suggest some changes" gets suggestions, not changes | Write the action as a plain instruction. Do not write it in capitals or strong words: wording such as "CRITICAL: You MUST" made some models apply a rule too widely4 |
| Context loss | The code trimmed the rule or the fact out of the request, or the context grew long | For trimming, fix the code that builds the request (24.8). For a long context, use the moves in 12.5, which Chapter 26 builds on |
| Format drift | The prompt asked for a format, and nothing enforced it | Structured outputs, which Chapter 25 teaches. Not a prefilled start, where your code writes the first words of the model's reply: Claude 4.6 and later models do not support it5 |
| Inconsistent output | The output was free to vary, and one run could not show it | Several trials for each case (24.6), so you can see it, and a schema that narrows the output |
These fixes lower the rate of a failure. They do not end it. The page on hallucinations says its own methods "don't eliminate them entirely".2 That is why the case stays in the suite after the fix.
How do you make the change?
Change one thing, then run the whole suite again and read it case by case. The pass rate alone can hide a case you broke (24.6).
A real cause often explains more than one symptom. In the prep course's debugging task, one of the four defects has no fix of its own. It goes away when the defect before it is fixed.6 If you need a separate patch for every wrong answer, you have probably not found the cause yet.
What happens to a failure found in live work?
It goes back to Ana as a case. The suite knows only its 40 cases, and the 7:10 run meets invoices and questions that are in none of them. When Ana or a check finds a live answer wrong, the builder drafts a case from the recorded run. Ana writes the answer she expects, and the case counts once she has checked it (24.2). In Lab 24 you practice this once, with one of the six recorded traces. The set then has 41 cases, and Ana moves the threshold from 39 of 40 to 40 of 41. That is still every case but the one it names. Anthropic's public evals course gives the same rule: each failure found in live traffic becomes a case.7
The recovery is done when the new case passes and the others still pass. From then on, her judgment on that one live answer reaches every later answer like it.
What does a fix for the cause cost?
Time. Reading a trace and finding the cause is slower than a retry. Each new case costs Ana a label and costs the suite a little more on every run. At 7:10 nobody is there to wait. So it is fair to contain a failure first, which means to stop it from going further. A result that fails its check goes to a person, marked needs_review, and is not posted as finished, as in 23.16's loop. That protects this morning's report. It is not a recovery, and the cause is still there tomorrow at 7:10.
The operating rule: fix the cause the trace shows, change one thing, run the whole suite, and add every live failure to the golden set with Ana's label.
Do this now. Think of one wrong answer your coding agent gave you this week. Copy this line, and describe the failure at its end:
List two fixes that would only hide this failure, and one that removes its cause. Say what in the run supports that cause. The failure:
Then write the one-line case you would add so the failure cannot come back unseen.
Check yourself
Question 1 / 8
0 answered
The builder could add "For a $12,000.00 invoice, say the controller approves before payment." Why is that a fix for the symptom?
Sources
- Owner
- Panaversity