Companies are racing to deploy AI agents in everything from customer service to software engineering, but there’s no reliable way to stop them misbehaving. Amazon Web Services (AWS) is now unveiling a tool that turns developers’ plain-English rules into mathematically verifiable policies that agents can’t break.
Unlike traditional software whose behavior is determined by hand-written, deterministic code, agents are powered by large language models (LLMs), which are probabilistic. Their output can vary from run to run, making it tricky to guarantee they will behave predictably. And while developers have built deterministic scaffolding around the models to keep agents on the straight and narrow, it remains far from fool-proof.
To mitigate this, companies typically severely constrain agents’ actions or require a human to approve critical steps. This adds friction that can limit their usefulness and introduce “allow fatigue” in human overseers, says Cami Novelli-Killeen, director of product management for neurosymbolic AI at AWS.
“Formal methods” offer a promising alternative. These techniques define mathematically what software should do and prove it complies. The challenge is that writing these rules has traditionally required expert mathematicians, says Novelli-Killeen. AWS’s new tool, called Greenlight, sidesteps this by using LLMs to automatically convert rules stated in natural language into formally verified policies that constrain an agent’s behavior at runtime. It can even suggest policies based on an agent’s role, and recommend updates as deployed agents encounter new situations.
“This experience is all about helping a person who is the subject matter expert in this particular job, and translating their tribal knowledge, translating their common sense, translating what they know to be right and wrong about that job into very precise policies that an agent can follow deterministically,” says Novelli-Killeen.
How AWS Greenlight prevents rogue agents
Agents’ creativity makes listing every bad behavior they should avoid effectively impossible. So Greenlight runs agents in Strands Box, a software sandbox AWS released in October, which intercepts every action that affects the outside world—such as calling an API or writing a file—and approves or denies it.
Those decisions are determined by a set of policies written in Dogwood, a new language AWS launched in August to write rules for agents. It relies on a branch of formal methods called first-order temporal logic that is particularly useful for governing agents as it can handle concepts of how things change over time. “If you say, ‘I want this personal agent to have my credit card details, but I don’t want it to spend more than $1,000 a month,’ that was something that was very difficult to express in previous policy languages,” says Marc Brooker, VP and distinguished engineer at AWS. “It has to remember how much it’s spent so far and…it has to know…
Read full article: AWS Greenlight Uses Formal Logic to Constrain AI Agents
The post “AWS Greenlight Uses Formal Logic to Constrain AI Agents” by Edd Gent was published on 12/01/2026 by spectrum.ieee.org




































Leave a Reply