Lets not confuse detonation with pre-ignition, which are two different animals. Detonation occurs when there is NORMAL ignition , a kernel of the fuel air mixture starts to burn. As the burn increases ,in size the acceleration of the burn also increases. If the heat in the combustion chamber is too high due to load and other things ,the leading edge of the burn ball splinters into fingers of burning air fuel mixture. These fingers are burning at an accelerated speed over the burn ball. There are pockets of unburned fuel air mixture between the fingers of highly accelerated finger fuel air ratio burn. This compresses the unburned fuel air mixture to a point of EXPLOSION. This is not a burn ,but is the same as a stick of dynamite, the explosion exceeding the speed of sound . There are now two flame fronts , the expanding burning ball with fingers, and the explosion flame front which when they meet cause a supersonic clash heard as a metallic sound or pinging referred to as detonation. As this is a shock wave and has but a small heat factor , an engine can survive many thousands of miles ,enduring minor detonation. Pre -ignition is self explanatory, something in the combustion is hot enough to ignite the air /fuel mixture ,
a sparkplug ,having too hot of a heat range for the fuel air mixture "the leaner the mixture the hotter the combustion chamber temperature" becomes a glow plug giving up its purpose to provide ignition at a predetermined point , other things that can cause pre- ignition are, glowing bits of carbon, and a read hot exhaust valve. A proper fuel/ air ratio, determined by the carb jetting, does Not ensure against the most destructive cause of piston failure , which is a too lean air/ fuel mixture. The engine can hole a piston in just a few seconds, from running great, too disaster, it is swift and unforgiving. The temperature of the fuel burn ,goes from happy to sudden death, the burn becomes highly oxygenized, and turns into a blow torch, easily melting the piston instantly. When inspecting for the cause of piston failure, if the piston shows signs of cracks, broken rings and ring lands, or caved in piston crowns, the failure was due to extreme detonation . If the piston shows signs of melted metal, it was run on too lean of a fuel mixture, usually caused by foreign matter in the fuel system, (DIRT) , momentarily plugging the main jet, just long enough to ruin your day.