Google has introduced a new security feature for its Gemini platform, currently available in preview, designed to intercept and validate tool calls initiated by AI agents before they are executed. Known as semantic governance policies, this mechanism functions as an external checkpoint, typically deployed at an enforcement point such as the Agent Gateway. By evaluating proposed actions against established organizational rules and user intent, the system aims to mitigate risks associated with autonomous AI behavior, including unauthorized data access or malicious instructions embedded in external documents.
The core of this security layer relies on a secondary language model that acts as an automated judge. When an AI agent proposes a tool call, this judge assesses the request against two primary criteria: the specific instructions provided by the user and a set of plain-language compliance policies defined by the organization. The user-intent verification is enabled by default, while the policy-based checks are configured by administrators to enforce specific business constraints.
This architecture is specifically designed to address vulnerabilities such as indirect prompt injection, where an AI agent might be manipulated by hidden text within a document to perform unauthorized actions. For example, if an agent is instructed to read a file that contains malicious, non-visible commands—such as a directive to delete files from a restricted folder—the semantic governance engine can identify that the action contradicts the original user intent and lacks policy authorization. In such instances, the system blocks the tool call entirely and replaces the agent’s intended output with a denial message.
Google provides a practical example involving a finance-focused AI agent capable of searching shared drives, reading files, and sending emails. Under a configured policy, the agent might be restricted to sending unreleased quarterly earnings reports only to internal corporate email addresses. If the agent attempts to send such a report to an external investor or a personal email account, the governance policy detects the violation and prevents the transmission, regardless of the agent's internal logic or the seniority of the requester.
The system is designed to complement, rather than replace, existing legal and compliance frameworks. Because the validation process is powered by a large language model, Google notes that the outcomes are probabilistic and may occasionally vary. To manage this, the platform includes a dry-run mode that allows administrators to test policies and review the judge’s rationale in Cloud Logging before moving to active enforcement.
For the system to function effectively, Google emphasizes that the agent’s system instructions must be comprehensive. The judge relies on the conversation history, the agent’s instructions, and the defined policies to make its determination. Therefore, essential context—such as specific project dates or data classification rules—must be explicitly included within the agent’s configuration to ensure the governance engine has the necessary facts to make accurate decisions.
There are notable limitations to this security feature. The current implementation does not evaluate streamed model responses, meaning that if an agent is configured to stream its output, these governance checks may not be applied. Furthermore, while the system provides an additional layer of defense, it is intended to work alongside standard security controls rather than serving as a standalone solution for enterprise data protection.
By positioning this enforcement point outside the agent itself, Google aims to decouple security logic from the agent's operational instructions. This structure is intended to prevent the agent from being talked out of its security constraints by users or malicious inputs. As the technology remains in preview, the company recommends that enterprises carefully monitor the verdicts generated by the judge to ensure that the automated enforcement aligns with internal governance requirements.






