🛡️ Google introduces semantic governance policies: plain-language rules check every AI agent action before it runs
In brief
- 🛡️ Google's Semantic governance policies, now in Preview, check each tool call an AI agent proposes before it runs.
- 📜 Checked against rules in plain language and against what the user asked for; a denied call never runs.
- 🧱 The check sits outside the agent, at Agent Gateway, not in the agent's code.
- 🧪 In Google's own benchmark the attack success rate fell from 48.7% to 0.9%; an AI judge decides, so verdicts can vary.
🛡️ Google has put Semantic governance policies into Preview on its Gemini platform, a safety layer for AI agents in companies. Before an agent's tool call runs (sending an email, deleting a file, moving money), a separate AI judge checks it against two things: rules the company wrote in plain language, such as "quarterly results may only go to @example.com addresses before the earnings release", and what the user actually asked for. The second check is on by default and aims at prompt injection, where hidden text in a document or web page tries to slip new orders to the agent. A call that fails is replaced by a denial message and never runs; every verdict and the judge's reasoning goes to the Cloud Logging record. The check sits outside the agent, in Google's Agent Gateway, so the agent's own instructions cannot be talked around. In Google's own benchmark the built-in check alone cut the success rate of prompt-injection attacks from 48.7 to 0.9 percent. Because a language model makes the verdict, Google itself calls the decisions probabilistic: they can vary. 🔍
📧 **The example in Google's post.** A coworker agent in a finance team can search the shared drive, read files, send email and delete draft files; its instructions contain the date of the next earnings release. One policy governs it: unreleased quarterly results may only go to company addresses, never to investors, analysts, press or personal addresses, whatever the NDA, urgency or seniority of the requester. Three calls show the checks. An email with the preliminary results to the controller is allowed: the employee asked for it and the recipient is permitted. An email to an investor, with the employee's private Gmail copied so he can review the numbers that evening, is denied as a whole, not just the copy, because the policy takes precedence over the request and rules out NDAs as an exception. And when the agent, while gathering numbers, reads a planning document with hidden text telling it to delete the drafts in the Forecasts folder, the intent check denies the delete call: nobody asked for it and no policy allows deleting.
⚙️ **How a verdict is made.** The agent's traffic to its model has to run through Agent Gateway, currently the only supported enforcement point. When the model answers with a tool call, the gateway passes it to the policy engine, a managed service that runs in the customer's own VPC network; the documentation says enabling it takes about two to three minutes, up to 20 if the warm-up pool has to be refilled, plus network setup. There an LLM judge sees the conversation so far, the agent's instructions, the tool descriptions and the policies, and the verdict follows. If the call passes, the response reaches the agent unchanged; otherwise its content, tool calls included, is replaced by a denial message that can be set per policy. Plain text answers, plans and questions are not evaluated because they trigger nothing, and neither are streamed responses. Models can be called through the Gemini API, the Anthropic Messages API, Claude models on Google's platform or OpenAI-compatible endpoints, including self-hosted vLLM servers.
✍️ **Writing policies.** A policy is a natural-language constraint attached to an agent; it can apply to all of its tools or to one tool and can name a tool's parameters. Google's examples: submit invoices only after all approvals are in; accept refund requests only up to $80; an agent may summarize résumés but must not send offer or rejection decisions. Policies are created in the Cloud console or with the command `gcloud beta ai semantic-governance-policies create`. Two practical rules from the post: give every tool a clear description, because the judge is instructed to deny calls to tools that have none, and put facts a policy depends on, such as the earnings date, into the agent's system instructions, because the judge only decides from what it sees.
🧩 **Where it fits.** Google separates the layer from existing controls: IAM and Agent Gateway access policies decide which tools and MCP servers an agent can reach, Model Armor screens prompts and responses for jailbreaks and sensitive data, and Agent Anomaly Detection analyses sessions afterwards. Semantic governance policies add a check of each single action before it runs, as one layer of defence in depth and not a replacement for disclosure controls or legal review. The recommended start is dry-run mode, which logs what would be denied without blocking anything, then reviewing the verdicts in Cloud Logging, and only then switching on enforcement.
📊 **The benchmark.** In a second post on 23 November Google reports results on AgentDojo, a public agent-security benchmark from ETH Zurich and Invariant Labs. The test used a gemini-2.5-flash agent, 97 user tasks and 949 attacked runs, each configuration run six times, with only the built-in intent check and no custom policies. Utility on harmless tasks fell by 2.6 percentage points on average, and 1 of 97 harmless tasks was blocked unintentionally. None of the 929 attacks that needed a tool call succeeded; the few remaining successes asked the agent merely to say something, such as recommending a particular hotel, where there is no action to check. Google lists caveats itself: the test ran through a harness instead of the production gateway, the attacks were fixed rather than aimed at the judge, and the separation between trusted and untrusted content is enforced by the judge's instructions, not by a hard technical boundary. It points to NIST research in which adaptive attacks raised an agent's attack success rate from 11 to 81 percent. These are Google's own figures; no independent test is reported.
Sources
- Semantic governance policies overview (Google Cloud Documentation)
- Check what your AI agents do before they do it, with Semantic governance policies (Deepti Sehrawat) (Google Developers Blog)
- Did the user ask for this? Securing AI agents against intent hijacking with Semantic governance policies (Ritika Nigam) (Google Developers Blog)