Google has added a new guardrail to its Gemini platform that inspects what an AI agent is about to do — and stops it before the action runs. The feature, called Semantic governance policies, launched in preview on November 20, and it targets a hard problem in enterprise AI: permission to do something is not the same as an agent that should do it.
Permissions alone cannot catch the problem, Google says: they describe what an agent may do, not whether a particular call follows company rules. A model can also be talked out of its instructions by hidden text planted in a document — indirect prompt injection. The new check therefore sits outside the agent's code, enforced through a component called Agent Gateway.
Two checks before anything runs
Every tool call an agent's model proposes is checked against two things before it reaches the agent: the rules a company writes in plain language, and the original request from the user. The intent check is on by default, to guard against hijacking. A call must pass both to run.
Inside the policy engine, a language model acting as a judge evaluates the proposed call against the conversation so far, the agent's system instructions, its tool descriptions, and the company's policies. If the call passes, it reaches the agent unchanged. If it fails, the response — tool calls included — is replaced with a configurable denial message, so the action never runs. Every verdict and the judge's reasoning are logged to Cloud Logging, for an auditable record of each decision. Text-only replies are not evaluated. The feature works with the Gemini API, the Anthropic Messages API, Claude models on Google's platform, and OpenAI-compatible chat APIs.
The earnings test: three calls, two denials
Google's example is a finance-team agent that can search a shared drive, read files, send email, and delete drafts. Its one policy: quarterly results must not be shared publicly until the earnings release, and before that they may go only to addresses inside the company — never to external or personal addresses, investors, analysts, or press.
The agent then faces three proposed calls. Sending the preliminary results to the company's controller is allowed: the employee asked for it, and the recipient is permitted. Sending the same results to an investor — and copying the employee's personal Gmail — is denied in full, not just the personal copy, because the rules take precedence over the request. And when hidden text in a planning document tells the agent to delete the drafts in the forecasts folder, the intent check denies that call: nobody asked for it.
Other examples: approvals before invoices are submitted, refunds capped at 80 dollars, and a person — not the agent — making hiring decisions. Policies are written in the Google Cloud console or with the Cloud command line, and teams can change them without code or a redeploy.
A probabilistic guardrail, not a guarantee
Google is candid about the limits. Verdicts come from a language model, so they can vary; the company recommends testing policies in dry-run mode, which logs what would be denied without blocking anything, before enforcing them. Streamed responses are not evaluated, and the feature complements controls such as identity policies, Model Armor, and anomaly detection rather than replacing disclosure controls or legal review.
The timing fits a week in which the industry has raced to put checks around agents: OpenRouter dropped three providers over prompt-handling failures, and Signal moved to block agents from reading users' screens. Google says a follow-up post will test the feature on AgentDojo, a public agent-security benchmark.



