Detecting defects through automation (Jidoka)