Diagnosis loop for hard bugs and performance regressions — build a tight red/green feedback loop before hypothesizing, then reproduce, minimize, rank hypotheses, instrument, fix with a regression test, and clean up. Use when the user says "diagnose"/"debug this", or reports something broken, throwing, failing, or slow, especially when the cause isn't obvious from reading the code.