Optimisation and mis-specification as an epistemic failure mode