Artificial intelligence will radically disrupt the world of work, but the right policy choices can make it a force for a more compassionate social contract.