Did you catch that article about loose wires in electrical panels? I was reading how they cause most intermittent light issues. It said the constant on and off comes from the connection breaking and making contact. That arcing can actually start a fire if it gets bad enough. Your story is a perfect example of why we should not ignore those little flickers. Fixing it fast like you did is the smart move.