If it passes building and pest and I think it's all looking good and I can imagine myself living there, what else am I looking for?

I'm very afraid to end up living somewhere only to be told a year in oh turns out we installed this stuff wrong, and the building is unsafe as a result and you and your complex friends will now pay for this and the government will tell us we did the wrong thing and we may have to cover 0.01% of the cost however good luck we now no longer exist also here's a 50k bill each pay or sell up.

I am expecting costs to appear at times however a scenario like the above is making me anxious as ever.