Vibe Refactor

What would it look like to have some existing code randomly changed ("refactored") by an "AI" in vibe coding mode? Here we are running a simple finite state machine that goes...