Văn bản này: A legal theory for autonomous artificial agents