Cybersecurity briefing

/

When an AI Agent Wants to Issue a Refund

Google's semantic governance preview checks AI agent tool calls before they run. Rules like refund limits still belong in the system of record.

/

AUTHOR

Jeff Dyer

/

SHARE THIS ARTICLE

Overview

An AI agent can make a sound recommendation and still be the wrong system to authorize a refund. On November 20, Google announced a preview of semantic governance policies that evaluate proposed agent tool calls before they run. The preview raises a practical design question for any business giving AI the authority to act: which decisions call for interpreting a request, and which can be settled by checking a record?

The difference between “look into it” and “pay it”

Imagine a support team asks its agent to look into a complaint about a duplicate charge. The agent retrieves the case and finds two similar entries. It can summarize the evidence and recommend a refund. Whether it should issue one depends on facts outside the conversation: Did both charges settle? Was one reversed already? Does this customer qualify under the applicable policy? An agent that sees two ledger entries has enough information to ask a useful question. It may have too little to move money.

Permissions still set the outer boundary. If the agent can only read transactions, it cannot issue a refund through that credential. The design gets harder when the business wants the same workflow to handle refunds under defined conditions. A credential that opens the refund tool does not, by itself, ensure each refund is authorized. And the application can verify that a transaction is refundable without knowing whether the user asked the agent to refund it in the first place. Both checks matter.

What a language model can judge

Google's preview puts a review step in Agent Gateway. As the response comes back from the model, the gateway intercepts the proposed tool call and sends it for evaluation. A second language model considers the conversation and applicable rules. If it denies the call, the gateway removes it from the response before the agent can run it. That gives teams a place to catch an agent that interpreted “check my refund status” as permission to issue a new refund.

The check depends on which traffic the gateway sees and on how well the system describes its tools. Google's technical documentation says streamed model responses are outside the preview's coverage. Its policy guidance also cautions that the judge can make mistakes. Teams can use dry run to compare the model's decisions with human expectations before those decisions start blocking work.

The transaction still needs its own rules

For a condition with a reliable input and a clear answer, use a rule that gives the same result for the same facts. An application should check the refundable balance against the current ledger and reject a duplicate refund even if the proposed action sounded reasonable when the model reviewed it. A second employee could have refunded the charge in the meantime. The service that writes the transaction is in the best position to check the latest state and prevent the same request from being applied twice.

A gateway at the tool boundary can apply other straightforward rules earlier. Dtwo.ai is a security software company that helps teams control what AI agents do when they use connected tools. Its gateway sits between an agent and tools routed through it, where rules can evaluate details such as the tool name and supplied inputs before allowing or denying a call. In a supported workflow, that is a place to enforce an explicit limit on a submitted amount. An authoritative balance check belongs with the transaction service, and tools outside that gateway need their own controls.

The useful distinction is where the evidence lives. A model can interpret what the user meant. An inline gateway can enforce a condition on a request it sees. The application can verify that the operation still satisfies its business rules when it commits the change. For disputed or exceptional refunds, the team can keep approval with a person and let the agent prepare a recommendation. The same division applies when an agent proposes a records release or a change to a supplier's payment details.

Test the outcome in the system of record

Start with one operation where a mistake would create work to undo. In a test environment, use synthetic transactions and compare three cases: a request for information that should leave the account unchanged, an explicit refund that meets every condition, and a validly formatted request for a transaction that has already been refunded. Then send the same approved test request twice. Review which layer decided each case, and check the ledger for the expected result. A favorable gateway log alone cannot tell you whether money moved once, twice, or at all.

Decide what happens if the policy check times out. For a consequential write, a reasonable default is to hold the change and send it for review, while allowing safe read-only work to continue where the workflow supports it. Track how often a legitimate action gets held and how long it takes to resolve; otherwise, the team will learn about the cost of its rules from the support queue.

The goal is to let the agent do useful work without asking it to settle questions that another system can answer with better evidence. Before giving an agent a new write permission, ask the business owner to name the few conditions that must always hold and show where each is enforced. The answer should survive a retry, an outage, and a perfectly plausible mistake.

Contact us to schedule a demo.

info@integralty.com | (855) 514-5855 | integralty.com