AWS on Tuesday launched AWS Greenlight, a new service that uses automated reasoning to prove what AI agents can and can’t do.
With many agent pilots stuck because enterprises can’t fully trust them, this new service is meant to give these companies the reassurance that their agents are safe.
Greenlight, which AWS announced at its re:Invent conference in Las Vegas, is in preview as a power for Kiro and as a plugin for Claude Code and Codex.

It helps developers write the policies that govern an agent’s tool calls, but the most important part is that it then mathematically proves that those policies actually hold.
AWS says Salesforce, ServiceNow, Delta Air Lines, and Accenture are among the companies looking to use it.

Why agents stall
Jean-Baptiste Tristan, a senior principal applied scientist at AWS, tells The New Stack that “it takes a very long time to take an agent from pilot to deployment, but also there is a fairly high failure rate for this.”
“The problem is that it’s difficult to get enough confidence that it’s safe to deploy an agent,” he says.
Teams want to know what an agent can access and under what conditions it’s allowed to complete a transaction. Sandboxes help there, but Tristan calls them only “one piece of the puzzle, an important one.”

How Greenlight works
In Tristan’s demo, an airline’s AI agent tries to move a group reservation to a different flight. It fails to issue a new ticket for one of the two passengers, but then cancels that passenger’s old ticket anyway. The agent followed a rule that says to cancel the old ticket once a new one is issued, but it simply missed that this was a group booking.
“If we don’t actually have policies that are deterministic that control the agent, it can be confidently wrong about what it’s doing, and we end up in a state that we don’t want,” he says.
Greenlight starts with the agent’s traces, either from evaluation runs or, if a customer has already run into a problem, from production. It can also work from documentation or a conversation with the developer.
Tristan says the idea is to help customers “figure out what is it that they could or should prove about their system.”
In the demo, Greenlight suggests that every passenger must always hold a confirmed ticket. Once the developer approves that, it generates a new set of policies, proves that the property holds under them, and deploys the agent with one click. The next time around, the policies block the cancellation.
After deployment, Greenlight keeps watching the agent’s behavior and proposes new rules for the team to approve, AWS says.
Automated reasoning, briefly
Automated reasoning builds on one of the big achievements in mathematics, Tristan says, which was formalizing what it means to prove a mathematical statement. That means software can find proofs automatically or check that a proof is valid.
“Instead of having to rely just on testing for a piece of code, where testing means you have some set of inputs and the expected output, with automated reasoning you can actually specify using the language of mathematics what property you want,” he says. “Then you can prove that the code satisfies that property.”
AWS has relied on this inside its own services for years, including in Zelkova, which translates IAM access policies into logic formulas and checks them with solvers. It went from about a thousand solver calls a day to a billion within five years.
In 2025, AWS brought the technique to generative AI with Automated Reasoning checks in Bedrock Guardrails, which verify model outputs against a company’s rules.
Proving the rules, not the agent
“The agent is a black box. We don’t know exactly what it does,” Tristan says. “However, there are all of these policies that are enforced outside of the agent and that control its behavior.”
Greenlight proves properties of those policies instead. A team with thousands of policies can ask whether its agent will ever be able to reach a tool that makes transactions, and get an answer that holds “for every possible action that the agent might take, so for any history,” Tristan says. That includes an agent that’s actively trying to get around the rules.
The policies are written in Dogwood, the open source policy language AWS released in August, which extends Cedar with rules that can take into account what an agent has already done. Greenlight translates them into mathematical logic and hands them to automated provers.
AgentCore Policy can already flag rules that are too permissive or too restrictive, but Greenlight goes further, proving that business properties like the passenger rule hold and writing the policies from an agent’s traces.
Greenlight also doesn’t ask a second model whether an action is allowed, an LLM-as-a-judge approach that’s common in guardrail tools (including, for what it’s worth, Kiro’s own “Approve for me” feature).
“What we do is we provide deterministic control that lives outside of the agent, so that it’s properly out of the reach of the agent,” Tristan says.
For production, he recommends layering those controls, starting with AWS’s open source Strands Box sandbox during development, then AgentCore Runtime to isolate tenants and give the agent an identity, a VPC around that, and tool access only through AgentCore Gateway. Tristan calls it “a stack of trust in depth.”
The trade-offs
Checking every action adds some latency, which Tristan says is “not negligible” but small compared to the time an agent spends on its own reasoning.
“I think the trade-off is in creating the policy set,” he says.
The hardest part of building Greenlight, Tristan says, wasn’t the formal methods but figuring out what customers would need six to 12 months from now. Once AWS knew which questions to ask, the math was “the fun part.”
The post AWS Greenlight proves what your AI agents can’t do appeared first on The New Stack.
