AWS unveils Greenlight, turning plain-English rules into verified agent policies

Amazon Web Services is unveiling Greenlight, a tool meant to keep AI agents inside rules their developers set. Agents run on large language models, which are probabilistic, so their output can vary from run to run and good behavior is hard to guarantee. Developers wrap deterministic scaffolding around the models, but IEEE Spectrum describes that as far from foolproof. Companies typically either severely constrain what agents can do or make a human approve critical steps. That adds friction and what Cami Novelli-Killeen, director of product management for neurosymbolic AI at AWS, calls "allow fatigue" in the people doing the approving.
Formal methods, which define mathematically what software should do and prove that it complies, are the promising alternative. The catch is that writing such rules has traditionally taken expert mathematicians. Greenlight uses LLMs to convert rules stated in natural language into formally verified policies that constrain an agent at runtime. It can also suggest policies based on an agent's role and recommend updates as deployed agents meet new situations.
The pieces fit together like this. 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. The sandbox denies by default, and the user then "pokes holes in the box" by writing policies for what the agent may do. Those policies are written in Dogwood, a language AWS launched in August for writing agent rules. Dogwood relies on first-order temporal logic, which can handle how things change over time. Marc Brooker, vice president and distinguished engineer at AWS, gives an example: a personal agent that holds your credit card details but must not spend more than $1,000 a month. That is hard to express in older policy languages, he says, because the agent has to remember what it has spent so far and know what a month is.
What is new is that this authoring is automated. Greenlight is a plug-in for AI coding assistants such as Claude Code, Codex and Kiro. While building an agent, the user prompts the assistant to propose policies. The tool reads the agent's documentation and logs to infer its job, proposes policies in natural language and writes formal Dogwood versions in the background. Users can add their own natural-language rules and inspect the Dogwood if they wish. The target experience, per Novelli-Killeen, is one that "feels like you have a mathematician sitting next to you helping you figure out the specifications for your agent."
The tool then converts the Dogwood rules into Lean, a programming language for writing machine-checkable mathematical proofs. Proprietary automated reasoning engines check how the rules interact with each other and with the agent's tools, looking for unintended loopholes. Once approved, the policies are compiled to SQL and every action the agent attempts is checked against them. Brooker says this typically adds just tens of milliseconds to a tool call. Because the rules have a formal mathematical foundation, each decision can come with an auditable proof of why it was made. A replay feature lets users run earlier agent sessions against new policies to see how they would perform.
Brooker says what made this possible is LLMs' growing ability to translate natural language into formal languages, a problem computer science has struggled with for decades. In his words, it has gone "over the last five years from almost intractable to very, very tractable."
André Platzer, a professor at Karlsruhe Institute of Technology in Germany who applies formal methods to autonomous systems, points to the limits. There will always be a danger of translation errors, he says. Paraphrasing computer scientist Alan Perlis, he notes there is "no formal way to go from the informal to the formal," and you are "never really sure" the English was rendered correctly in logic. Nor does Greenlight solve an old problem in formal methods: they can prove an action does not violate the user's specification, not that the specification captures the desired behavior. Platzer separates "Did I build the right thing" from "Did I build the thing right" and says you need to answer both. Even so, he thinks Greenlight could be of real practical benefit because few people understand formal logic, and making formal methods accessible to non-experts could be "super impactful" even if results are not airtight.
Novelli-Killeen concedes the tool is not a "one and done" solution and must be part of continuous improvement. She says the aim is to add moments of determinism while keeping the agent's creativity and flexibility.
Jason Andersen, vice president and principal analyst for apps, agents and automation at Moor Insights & Strategy, was briefed on Greenlight ahead of launch. He says the most popular governance approach today uses multiple LLMs to vet an agent's output, which is expensive and still one probabilistic model assessing another. Greenlight, he says, is "a different approach to correctness that is arguably better," since it pairs two different evaluation methods rather than two of the same. He expects it to be especially valuable for agents running critical business processes with low tolerance for errors, particularly in finance and medicine.
Key facts
- Greenlight uses LLMs to turn natural-language rules into formally verified policies that constrain an AI agent's actions at runtime.
- Agents run in AWS's Strands Box sandbox (released in October), which denies by default and checks every outward-facing action against policies written in Dogwood, a language AWS launched in August.
- Policies pass through Lean and proprietary automated reasoning engines to catch loopholes, then compile to SQL; per Brooker, checks typically add tens of milliseconds per tool call, and each decision can come with an auditable proof.
- Greenlight is a plug-in for coding assistants including Claude Code, Codex and Kiro, and includes a replay feature to test past agent sessions against new policies.
- Karlsruhe professor André Platzer warns translation errors from English to logic will always be a danger, and that formal proofs cannot show the specification itself is right.
Why it matters
Agents are probabilistic, and today's guardrails either choke their usefulness or lean on human approvals that breed "allow fatigue." Greenlight tries a third route: let a domain expert state rules in plain language and have the system turn them into policies enforced deterministically at runtime. Analyst Jason Andersen contrasts it with the common approach of using several LLMs to vet an agent's output, which is expensive and still one probabilistic model judging another. AWS's Marc Brooker credits LLMs' improved ability to translate natural language into formal languages for making this practical.
Who it affects
Developers building agents who work with coding assistants such as Claude Code, Codex and Kiro, since Greenlight is a plug-in for those. It also targets subject-matter experts who know what is right and wrong in a job but are not mathematicians. Andersen expects the biggest value for agents running critical business processes with low tolerance for errors, especially in finance and medicine.
How to use it
While building an agent in a supported coding assistant, prompt the assistant to propose policies. Greenlight reads the agent's documentation and logs, drafts rules in natural language and writes the Dogwood versions in the background. You can add your own rules in plain English, inspect the Dogwood, and use the replay feature to run earlier agent sessions against new policies. The agent runs in Strands Box, which blocks everything by default until policies allow it. The article gives no price, licensing terms or availability date.
How solid is it
The account is IEEE Spectrum's report by freelance writer Edd Gent, built on AWS staff, one academic and one analyst who was briefed ahead of launch. The AWS speakers describe their own product, and the analyst's praise is hedged as "arguably better." The article gives no measured rate of translation errors, no named customers or deployments, and does not say which LLM does the translation. The tens-of-milliseconds latency is Brooker's typical figure, not a benchmark or a maximum.
Risks and caveats
Platzer says there will always be a danger of translation errors from natural language to formal rules. Formal methods can show that an action does not violate the specification, not that the specification captures the desired behavior, so a badly stated rule can still be enforced perfectly. Novelli-Killeen herself says Greenlight is not a "one and done" solution and needs continuous improvement. Platzer still sees real practical benefit because few people understand formal logic, even if results are not airtight.
“You’re never really sure whether the informal natural English language was rendered correctly in logic”
— André Platzer, professor at Karlsruhe Institute of Technology