Just to answer one of your questions. A gas engine and compression. I get what you are asking, the cylinder pulls a vacuum, does that lower the compression ratio. Probably in theory yes but in the real world not by much.
I remember several years ago I read a story where they rebuilt an engine to exact factory specs. In this case I think it was a 440 Magnum. I can’t remember what the compression ratio was, say 10.5 to 1. The actual compression ratio was less than that. As I recall the engine made close to or right at the actual horsepower that was advertised on the dyno.