AWS tackles AI agents’ permission problem with a new mathematical enforcement layer
if ( !emtpy($headline_subheadline ) ) : ?>
AWS Greenlight uses automated reasoning to mathematically verify agent behavior before deployment, checking combinations of tool calls that conventional testing and human checkpoints can miss.
AWS tackles AI agents’ permission problem with a new mathematical enforcement layer
if ( !emtpy($headline_subheadline ) ) : ?>
AWS Greenlight uses automated reasoning to mathematically verify agent behavior before deployment, checking combinations of tool calls that conventional testing and human checkpoints can miss.
endif; ?>
Credit: ThomasAFink / Shutterstock
Today’s AI agents can make tool calls in ways humans never conceived of. But they can also break or disregard rules, making them difficult to trust and prompting developers to add checkpoints that can hamper their potential.
AWS aims to tackle this problem with a mathematical enforcement layer it has used and honed internally for more than a decade.
AWS Greenlight uses automated reasoning, a field of computer science that uses mathematical logic to establish what follows from defined rules, facts, and assumptions, to control agent behavior. Teams define the rules their agents must follow using natural language, and AWS Greenlight uses mathematical logic to turn them into deterministic rules that agents must follow.
This keeps them within bounds so that they don’t go rogue or take unpredictable actions, AWS says. Teams can trust them to run autonomously and take on high-stakes tasks like handling customer data or transferring money. The service is now in preview.
“AWS Greenlight is novel because it checks the rules themselves before they ever touch an agent,” said Frank Dickson, principal analyst at Dickson Research. “That is a real step forward.”
AWS Greenlight works with ‘absolute certainty’
Typical accuracy and safeguard testing aren’t enough, AWS argued, as they only catch what a human thinks to check, not the “thousands of possible paths” an agent could take to produce a result.
Automated reasoning, by contrast, uses mathematical logic to analyze and prove, or disprove, statements across large and complex systems. AWS says it has run automated reasoning in production for more than a decade to determine that critical components of security, networking, and cryptography are working as intended. That principle is behind its IAM Access Analyzer and S3 Block Public Access.
When rules live inside an AI agent’s reasoning loop, it can find ways to work around them or flat out ignore them, AWS explained. But AWS Greenlight puts these rules outside the agent’s loop so it cannot see or change them. It operates on a deny-by-default setup, meaning the agent has no access to tools or network destinations that haven’t been previously explicitly approved.
Rules are drafted based on a company’s business data, procedures, runbooks, and security standards, as well as on prior agent behavior. These become policies enforced by a gateway on every tool call.
AWS Greenlight runs inside coding agents such as Kiro, Claude Code, or Codex, and works with agents behind an Amazon Bedrock AgentCore gateway or in an open-source agent sandbox. This checks “every possible sequence,” including ones nobody considered, compares them to what’s allowed, and blocks actions that do not comply.
AWS Greenlight continues to evolve and improve its rules post-deployment, AWS said. As it encounters new situations, the system proposes better rules that teams can compare and approve. This means it will require fewer escalations and work more autonomously over time. The platform will eventually support multi-agent systems and integrate more deeply with the company’s new AWS Context offering, which gives agents a shared understanding of how an enterprise works.
Developers can access AWS Greenlight as a power for Kiro and as a plugin for Claude Code and Codex. After prompting “govern my agent,” AWS Greenlight will begin suggesting rules. Humans need no automated reasoning expertise.
Making sure tools do what they claim
People who approve every action miss things over time, and testing only covers scenarios they thought to try, noted Shashi Bellamkonda, principal research director at Infotech. But automated reasoning checks whether a precisely stated rule holds across every case the system represents.
“If a misleading instruction talks an agent into attempting something it should not do, the checkpoint can still block the action, because the rule sits outside the agent,” Bellamkonda said.
Keeping autonomous agents in line can be difficult because people have to agree on the rules, and security, legal, messaging, and finance each have a say, he noted. Also, policies have to be exact enough to enforce. Finance can set a refund limit, but a command like “use good judgment with an upset customer” needs human interpretation.
The protection depends on every relevant action passing through the checkpoint, and on the connected tools doing what they claim, however.
One question he would pose to AWS: What happens when an agent tries something no one wrote a rule for? Does it go through, get blocked, or go to a person for review? He pointed out that Greenlight is still in preview, so time will tell how it handles “messy, real-world workflows,” and also how easily customers can move their policies to another provider, since AWS has published no export terms.
What Greenlight adds to the equation
Enforcing rules outside an agent is not new, Dickson pointed out. AWS’s own Policy in Amazon Bedrock AgentCore already does it, and its rules are written in Cedar, AWS’s open source policy language. Meanwhile, Microsoft released its open source Agent Governance Toolkit in April. “Both act as a gatekeeper,” he said.
Greenlight adds three things, he said: First, before a rule goes live, a solver works through every order in which the agent could make its calls, “hunting for any path that breaks the rule.” Second, rules can depend on what already happened in a task. Third, the service looks for permissions that seem harmless alone but “turn dangerous together, the classic route to leaking data or escalating privileges.”
“Testing tells you the cases you tried passed,” he said. “A proof tells you no case can break the rule.”
Automated reasoning works because it stops relying on the agent to behave itself, Dickson noted. An agent’s thinking is probabilistic; ask it something twice and you may get two different answers. Its tool calls are different. They are structured requests with names, fields, and values, and “logic handles that kind of thing very well.”
But a proof is only as good as the rule it proves, he said, and AWS’s documentation is candid about the assumptions. Its analysis takes it on faith that a tool did what it reported, so an identity check that wrongly returns “verified” sits outside the proof. It does not know who managers are unless a rule or a tool call tells it. A rule written against one spelling of a value does not cover another spelling.
“Some questions simply come back inconclusive,” he said.
AWS also deserves real credit for its documentation, Dickson noted. A limitations page spells out exactly what each verdict assumes, down to rounding behavior and checks that come back inconclusive. It also notes that its permissions check examines the specific runtime and gateway you name; “it does not confirm the agent cannot reach some other gateway.”
The harder problem is turning business intent into formal rules, he pointed out. Most company policy lives in a binder, in a few veterans’ heads, or in exceptions that nobody wrote down. Greenlight uses a large language model (LLM) to draft rules, and math checks them. “The math can prove the rulebook holds. It cannot prove the rulebook is right,” he said.
Builders should keep expectations in line with AWS’ development calendar. Support for multiple agent handing is planned, but is not yet shipping, and AWS names customers like Accenture, PwC, Salesforce, and ServiceNow who plan to use it or are exploring it. “Promising is not the same as proven in production,” Dickson cautioned.
His advice for CIOs and CISOs: Run new rules in log-only mode first and see what they would have blocked. Give every rule a named owner, the same way you would a firewall rule. Treat every “verified, assuming” result as a to-do list of things you still have to verify yourself. Finally, he said, “keep a human on any action you cannot undo until the rules have earned that trust.”
Artificial IntelligenceAmazon Web ServicesIaaSCloud Computing
