Regarding compression ratio and boost pressures.
You can't alter an engine's compression ratio without changing pistons or heads. Period, stop, end of story. This is a fixed number, inherent to the engine, much like (and directly related to) bore/stroke figures.
However, it isn't the ratio that causes detonation. You can take gasoline and artificially lower its octane to 10, and inject it into a 1:400 CR engine at 1/400 atm, and suffer no ill effects whatsoever, since you're not compressing the fuel mixture beyond atmospheric pressure.
By this same measure, you can take an engine and fuel pairing that run perfectly fine under atmospheric pressure, and induce detonation by simply putting it under forced induction.
Remember, the only thing that matters to the fuel is the total pressure it's under. This is the only thing the engine can do that affects the fluid properties, and thus how a reaction (ignition) propagates through the medium. The ratio between TDC and BDC doesn't matter a lick, what matters is the pressure at time of detonation. This, however, can be altered by changing the MAP and ignition timing, without affecting CR in any way.
The only way CR would need to be changed to detune an engine would be if your fuel is such crap, and your CR is so high, that you're getting compression ignition regardless of the spark plug timing.