Sandboxing. Is it like this?
http://www.ptaugustacsc.sa.edu.au/images/sandpit.jpg
Or like this?
https://s3.amazonaws.com/audreywatters/factory_counting.jpg
Yet such things are done by apparently good and nice people trying to work in the best interests of humanity. So how can we expect to somehow get it right in the case of an AGI without turning him into a resentful demon?