When a failure occurs, classify it, check for repetition, and produce a durable artifact that prevents recurrence.