Anfonwch hwn fel neges destun: A legal theory for autonomous artificial agents