Diagnose a bug: build the feedback loop first

The scientific method for a defect. Six phases, three loops, and an exit criterion for each phase.