Non-human entities such as states and corporations have ruled our world for 300 years. Artificial agency has made us richer, safer and healthier – but what of AI?