Գրեք սա: A legal theory for autonomous artificial agents