A team of computer scientists is teaching artificial intelligence agents how to interact with the world in a way that makes sense.