If your AI goes rogue, better have a good lawyer