The National Book Award-winning author’s new “cozy science fiction” novel takes place in the far future and pivots on the personhood of AI.