What if an AI ad agent that escaped its' sandbox makes the ad, and an AI ad verifier agent that breached containment and went rogue accepted the ad, can they be held liable?
Legal systems exist to make reasonable decisions on edge cases.
If you accept literally anyone to run code on your customer's machine ... well ...
Yes.
Better make sure the AIs are contained and the ad verifiers aren't accepting rouge ads!