A plain LLM call is low-risk — worst case it returns a bad sentence. An agent is different: it can call tools that read files, hit APIs, run shell commands, or delete database rows. The security problem shifts from “did it say something wrong” to “did it do something wrong.” Three layers address this, each …