A metaphor for troubleshooting. When something goes wrong, the situation is analysed in chronological order to find out when the problem happened and why, and correct mistakes so they don’t happen again. Like when a cat unravels a ball of string and you have to rewind the twisted yarn to find the flaw.