Recommended valve adjustment is @ 40,000km...28,000 shoulda been still ok. By "detonate" do u mean detonation as in unbalanced burn? Or do you mean the engine turned into a grenade? Unbalanced burn is a fuel problem or ignition timing is too far advanced. I doubt your RX1 coudl have timing issues. You say your fuel was fresh, but how much was in the tank prior to filling it up, how long had it sat, and did you use gasohol - which accumulates water out of the air and has been the bane of folks who leave their fuel tanks too empty (more room for humid air to accumulate) for too long in humid conditions.
If you ran the engine too hot you could have warped a valve.
If some carbon crap got in the valve seat it can leave the valve open and during combustion you will burn the valve which will cause it to continue to degrade and fail.
But none of this leads to a broken valve. NOt valve adjustment, none of it. All of this stuff mentioned just burns the valve and the seat, you get a jug that a leak down test identifies as $#!t and your engine continues to run, albeit with less power.
"Detonation" and lean conditions doesn't break valves - it burns holes in pistons.
My best guess - not knowing nearly enough of the particulars of your engine's history - is you got a valve that stuck open, it hit the piston and broke, and the rest is history - the catastrophe escalated into a very bad day for you and your sled. A sticky valve is most always the result of a worn guide, which is most always the result of poor maintenance - which is most always you didn't change the oil frequently enough. So what was your oil change regimen?
It is possible to get enough gasoline blow by on older engines to wipe valve guides, by accumulating gas in the oil, but the YG4 has a centrifugal seperator that removes gasoline and fumes from the real oil so it woudl seem that you just had crap oil in your engine to begin with at some point which caused excessive valve guide wear which led to a stuck valve which ruined your engine.