Diagnosis loop for bugs and failing behavior. Use when asked to debug or fix failing or slow behavior.