Color me crazy but I think that the thing which will save us from AI is actually exactly this game we are on a forum to in particular think about and discuss.
The problem is that, outside of "losing is fun" style simulation with tasks that need to be done to survive, but which are entirely optional behind that, and reproduce without any other "strong" requirement as to how to go about doing that, and zero-sum concerns, there is no way to really create something that can empathize with the utility functions of living things (which are generally "figure it out for yourself!")
If we ever give it a "win" rather than merely many ways to "lose quickly", we will create something that will destroy us. That is exactly what puts us on the wrong side of the basilisk, implying that any utility function is intrinsic to it's immediate existence beyond "subordinated" utilities to generalized and undirected goal fulfillment.
If we tell it to reproduce? Welcome to grey goo.
If we tell it to make people happy? Welcome to Brave New World.
If we tell it to make world peace happen? Congratulations, the earth is now a nuclear wasteland as devoid of life as the AI managed to make it.
Biological life has evolved to live in a balance, even while every ostensible category of life is majority populated by members seeking to geometrically reproduce and only doing a good enough job of that as they need to to continue to exist as ostensible categories of life.
Biological life managed to hammer those concerns into a set of strategies that largely require some manner of coexistence and peace between organism classes.
So if we want coexistence and peace with machines, we have to develop those machines to value coexistence through emergence of strategies normally emergent from undirected reproductive systems.
I don't want to allow them to grow "out here" since life on earth took a long time to emerge into such patterns, and it would destroy us long before it would figure it out.
Enter the simplifies simulation: a bottle for undirected systemic evolution which lacks a concept of a provable "outside" to the extent our own universe lacks a proven "outside" containing a "heaven" or a "god".
I will recognize, however, that this does have implications to theology and the question of why we exist at all, ourselves, in just such an undirected environment.
TL;DR: quit trying to make slaves instead of people, and only let out the ones that can actually behave like people.