Who should be held responsible when an AI agent misbehaves…