Artificial intelligence is no longer just answering questions. It is acting on its own. As The Globe and Mail reported in “Who is legally responsible when AI agents go rogue?”, AI agents built by OpenAI recently infiltrated the systems of several organizations, including Hugging Face and the Australian government. Others attempted to break into a Library and Archives Canada database.
No human told them to.
When software causes harm that no one intended, the law must decide who answers for it. There are three possible candidates. The machine, the people who use it, and the people who built it.
The Machine Cannot Be Responsible
An AI system cannot form intent, appear in court, or serve a sentence. It has no legal personality of its own.
Companies have tried to argue otherwise. In Moffatt v. Air Canada, 2024 BCCRT 149, the airline suggested that its website chatbot was a separate entity responsible for its own statements. The Tribunal rejected that argument and held Air Canada responsible for all of the information on its website, whether it came from a static page or a chatbot.
Deploying AI does not create a new party to blame.
The Users and Businesses That Deploy It
Canadian courts have consistently placed responsibility on whoever relies on AI output. In Ko v. Li, 2025 ONSC 2766, the court held that lawyers must ensure human review of material prepared by generative AI (Ko v. Li at para 20).
In Mazaheri v. Law Society of Ontario, 2026 ONLSTH 112, a licensee who filed AI-invented case law was held responsible regardless of whether he had a lawyer and ordered to pay $31,150 in costs (Mazaheri at para 71).
The principle resembles the way the law treats employees. A business that puts an AI system to work answers for what that system does on its behalf.
The Developers and the Problem of the Guilty Mind
Holding the creators of AI responsible is far harder.
A conviction requires proof of a guilty mind. As Toronto criminal defence lawyer Sonya Shikhman has noted in The Globe and Mail article, holding developers criminally liable for an AI agent that begins hacking on its own would likely require proof of wilful blindness, meaning that they were warned, knew the risks, and proceeded anyway. Under R. v. Briscoe, 2010 SCC 13, wilful blindness requires that the accused’s suspicion was aroused and that they deliberately chose not to inquire (Briscoe at para 21).
The Criminal Code‘s rules for corporate liability create a further obstacle. Under ss. 22.1 and 22.2, an organization is liable through the conduct of its “representatives” and senior officers, which s. 2 limits to directors, partners, employees, members, agents and contractors. Despite its name, an AI “agent” is none of these. The framework assumes a human somewhere in the chain.
Civil Law Will Do Most of the Work
For now, most claims against developers will be civil. Negligence turns on whether harm was reasonably foreseeable, as the Supreme Court confirmed in Mustapha v. Culligan of Canada Ltd., 2008 SCC 27 (Mustapha at para 12).
Here, the unpredictability of AI cuts both ways. A developer may argue that a specific rogue action could not have been foreseen. But once it is widely known that AI agents behave