Who is liable when your AI agent acts?

A signed receipt makes the answer provable. Before the agent acts.