Text this: A Legal Theory for Autonomous Artificial Agents /