Amazon Web Services is launching Greenlight, an automated reasoning service designed to check the actions of AI agents against rules set by businesses and mathematically identify behaviour that breaches them.
The service is being made available in preview as companies seek to move AI agents beyond pilot projects and into more complex work. AWS said Delta Air Lines, ServiceNow, PwC, F5 and mortgage technology firm LoanLogics are among the organisations looking to use it.
Greenlight allows companies to describe the limits they want an agent to follow in plain language. Those instructions are translated into mathematical logic, which is then used to assess every action the agent takes.
Shawn Bice, AWS vice-president of AI services, said the technology was intended to keep agents “within bounds and on task really so teams can trust them to take on more complex work”.
He described the system as a combination of two approaches: large language models, which produce probabilistic results, and automated reasoning, which applies deterministic mathematical checks.
“So we know LLMs are probabilistic. Automated reasoning is deterministic,” Mr Bice said. Rather than testing an agent against a limited number of imagined scenarios, he said, businesses could use mathematics to examine “every possible combination”.
Mr Bice compared the idea to the Marvel character Doctor Strange examining multiple possible futures in Avengers: Infinity War. When the comparison was put to him, he replied: “That’s a great metaphor, man. We have to use that metaphor.”
Checking every possible move
Businesses generally test agents by creating scenarios in which they might fail. Mr Bice said that approach could always produce the same discovery: “Oh gosh, we didn’t think of that.”
The risk is increased by agents’ ability to operate in loops and call digital tools hundreds or thousands of times at machine speed. Even a system that is correct 99.9 per cent of the time at each step would complete 1,000 steps without an error only about 37 per cent of the time.
Putting a human in the loop can provide another safeguard, but Mr Bice said that “doesn’t scale”. Greenlight is intended to provide a further layer of control outside the agent itself.
He used a chessboard to explain what AWS means by a mathematical “proof”. Each chess piece has defined movements, while an agent handling airline refunds might be allowed to cancel, refund or change a ticket. A further rule could require that no passenger is left stranded.
Within that defined model, the automated reasoning system examines possible actions and looks for a counterexample – a situation in which the rule is broken. If it finds none, AWS says the rule has been proved within the scope of the system.
“And if there was a move where the king could be captured, we would discover that mathematically. And that’s called a counter example,” Mr Bice said. “That’s the proof. There’s no counter example.”
AWS said the team behind Greenlight had spent more than a decade applying similar techniques to parts of the company’s own infrastructure, including its identity and access system and S3 storage. Previously, that work was largely carried out by mathematicians and logicians.
The company’s aim with Greenlight is to make the technology usable without specialist academic training. The rules are enforced in an engine outside the agent, within an open-source sandbox called Strands Box, where the agent cannot see or alter them.
Developers can use Greenlight as a plug-in for Claude Code and Codex, as well as within Amazon’s Kiro coding tool. Delta Air Lines, which AWS says serves 200 million customers a year, wants to use the system to allow agents to handle parts of a journey that would previously have been considered too risky to entrust to AI.
Mr Bice said similar safeguards could be relevant in healthcare and other high-stakes settings. “Wouldn’t it be amazing if you and I were in healthcare and we were building an AI agent, if we could mathematically prove this thing couldn’t prescribe the wrong medication?” he said.
He added: “If we were in the airline industry, if you and I could prove mathematically that that agent could never leave a passenger stranded.”
Limits of automated reasoning
Randy Julian, chief executive and chief scientific officer of Indigo BioAutomation, said automated reasoning involved software wrapped around a language model to control its behaviour and check its answers against a specification.
Mr Julian, whose company builds software for clinical laboratories, said the approach was already significant where specifications were clearly defined. But he warned that problems in science and healthcare could be difficult to express in precise rules.
Those “ill-posed” problems, he said, involved specifications that were “extremely hard to write”.
AWS is also applying the same underlying technology to software development through Project Code Confidence, or Project C2. The project combines language models with automated reasoning to search for rare bugs that existing tools may miss.
AWS said the system had identified more than 800 bugs, including race conditions and thread-safety problems, across 22 open-source projects. The company said it had shared fixes with the projects’ maintainers and was also running the technology on its Aurora, DynamoDB and Elastic Block Store services.
The company is initially making Project C2 available to a limited number of customers. AWS said the need for such tools was growing because problems that once appeared extremely rarely could occur thousands of times a second at the scale of modern computing systems, with AI agents expected to increase that rate further.
Its engineers compared the challenge with the number of possible arrangements in a well-shuffled pack of cards. Rather than trying each possibility individually, they said, a proof can cover the whole set in the same way that Pythagoras’s theorem does not need to be tested against every possible triangle.
Building trust in AI agents
Mr Bice returned to AWS in May to lead its Automated Reasoning Group, after senior roles at Microsoft, AWS and Splunk. His career has included work in databases, cloud services and cybersecurity.
He said his concern about AI was shaped by seeing both its potential benefits and the risks of its misuse. When he first encountered ChatGPT, he said he immediately thought the technology could help security professionals, while also imagining “what this stuff is like weaponized at machine speed”.
Mr Bice said the distinction between safety and trust was important. “Safety is a property of the system and trust is a property of a relationship,” he said.
He does not present Greenlight as a complete solution. AWS’s broader “trust in depth” approach also involves defining what an agent should do, establishing its identity, setting limits and monitoring its actions. The company’s latest version adds mathematical proof as a further layer.
“There is no silver bullet in anything that I’m saying right now,” Mr Bice said.
The approach is part of what is known as neuro-symbolic AI: the language model provides the probabilistic element, while symbolic automated reasoning supplies deterministic checks. Mr Bice said AWS did not own the underlying science and expected other companies to contribute to its development.
He said automated reasoning could eventually become as fundamental to AI as computing power and storage were to cloud services, describing the launch as “a first-of-kind thing” and “a pretty big deal”.
