You are absolutely right that when you repeat your past mistakes, it is a failure because repeating the mistakes made in the past is tantamount to foolishness. Like you gave an example of a case study, I also agree with your example and we should learn from our past mistakes instead of repeating them.