Key Principle
```dot digraph principle { "Found immediate cause" [shape=ellipse]; "Can trace one level up?" [shape=diamond]; "Trace backwards" [shape=box]; "Is this the source?" [shape=diamond]; "Fix at source" [shape=box]; "Add validation at each layer" [shape=box]; "Bug impossible" [shape=doublecircle]; "NEVER fix just the symptom" [shape=octagon, style=filled, fillcolor=red, fontcolor=white]; "Found immediate cause" -> "Can trace one level up?"; "Can trace one level up?" -> "Trace backwards" [label="yes"]; "Can trace one level up?" -> "NEVER fix just the symptom" [label="no"]; "Trace backwards" -> "Is this the source?"; "Is this the source?" -> "Trace backwards" [label="no - keeps going"]; "Is this the source?" -> "Fix at source" [label="yes"]; "Fix at source" -> "Add validation at each layer"; "Add validation at each layer" -> "Bug impossible"; } ``` **NEVER fix just where the error appears.** Trace back to find the original trigger.