AWS Greenlight turns plain-English rules into verified agent policies
AWS's Greenlight uses LLMs, Dogwood, Lean and deny-by-default sandboxes to turn natural-language rules into auditable policies, with typical overhead of tens of milliseconds.

Why it matters
- Greenlight typically adds tens of milliseconds to a tool call, Marc Brooker said.
- AWS launched Dogwood in August and released Strands Box in October.
- Greenlight converts approved policies to SQL after translating Dogwood rules into Lean.
- The plugin works with Claude Code, Codex, and Kiro.
- André Platzer said formal methods cannot prove that a specification captures desired behavior.
AWS’s Marc Brooker says Greenlight typically adds just tens of milliseconds to a tool call while checking each AI agent action against formally verified policies.
AWS has unveiled Greenlight as companies race to deploy AI agents in customer service and software engineering, where the company says there is still no reliable way to stop them from misbehaving.
AWS presents Greenlight as a runtime control tool. The company says it converts natural-language rules into mathematically verifiable policies that constrain an agent and cannot be broken by that agent.
What problem does Greenlight solve?
According to AWS, traditional software follows hand-written, deterministic code, while large language model agents produce probabilistic output that can vary between runs. Deterministic scaffolding around models exists, but AWS says it remains far from fool-proof.
Companies often constrain agent actions severely or require human approval for critical steps. Cami Novelli-Killeen, AWS’s director of product management for neurosymbolic AI, says those controls add friction and can create “allow fatigue” among human overseers.
Formal methods define what software should do mathematically and prove compliance, but Novelli-Killeen says writing those rules has traditionally required expert mathematicians. Greenlight uses LLMs to translate plain-English rules into formal policies automatically.
Novelli-Killeen describes the aim: “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,” she says.
How does Greenlight enforce an agent’s rules?
AWS says agents’ creativity makes an exhaustive list of bad behaviors effectively impossible to write. Greenlight runs agents in Strands Box, a software sandbox AWS released in October that intercepts every action affecting the outside world, including API calls and file writes, and approves or denies them.
Those decisions rely on policies written in Dogwood, a language AWS launched in August. Dogwood uses first-order temporal logic, a branch of formal methods suited to agents because it can express how circumstances change over time.
Brooker illustrates the time-sensitive requirement with a spending limit: “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,” he says.
He adds: “It has to remember how much it’s spent so far and...it has to know what a month is.”
The sandbox starts deny-by-default, Novelli-Killeen says, and users selectively “poke holes in the box” by writing policies that permit actions. Greenlight automates that process rather than requiring every developer to author formal logic by hand.
AWS says Greenlight is a plugin for AI coding assistants including Claude Code, Codex, and Kiro. Developers building an agent can prompt the assistant to propose policies for it.
AWS says the tool reads the agent’s documentation and logs to infer its job. It proposes policies in natural language, writes their formal Dogwood versions in the background and lets users add rules or inspect the Dogwood code.
Novelli-Killeen says the experience “feels like you have a mathematician sitting next to you helping you figure out the specifications for your agent.” AWS also says Greenlight can suggest policies from an agent’s role and recommend updates as deployed agents encounter new situations.
- AWS’s tool converts the Dogwood rules into Lean, a programming language for writing machine-checkable mathematical proofs.
- AWS’s proprietary automated reasoning engines check how the rules interact with one another and with the agent’s tools to spot unintended loopholes.
- After approval, the AWS tool compiles the policies to SQL. The sandbox checks every attempted action against them, and each decision can come with an auditable proof of why it was made.
Why is formal logic more practical now?
AWS credits the timing to improving LLM ability to translate natural language into formal languages, a computer-science problem that has remained open for decades. Brooker says: “This is one of those problems that’s gone over the last five years from almost intractable to very, very tractable.”
That shift lowers the barrier between a non-expert’s operational knowledge and a machine-checkable policy. Novelli-Killeen says developers can now turn common workplace rules into formal constraints while retaining access to the generated Dogwood code for inspection.
Where can Greenlight fail?
André Platzer, a professor at Karlsruhe Institute of Technology who applies formal methods to autonomous systems, says there will always be a danger of translation errors. Paraphrasing renowned computer scientist Alan Perlis, he notes there is “no formal way to go from the informal to the formal.”
“You’re never really sure whether the informal natural English language was rendered correctly in logic,” Platzer says. His assessment leaves the natural-language rule itself as an uncertain input to Greenlight’s otherwise formal pipeline.
Platzer says formal methods retain a specification problem. They can prove that an action does not violate a user’s specification, but not that the specification captures the desired behavior. Platzer puts it this way: “There’s a difference between ‘did I build the right thing’ [and] ‘did I build the thing right,’ ” and says, “Ultimately, you need to answer both.”
Platzer nevertheless sees practical value because few people understand formal logic. Making formal methods accessible to non-experts could be “super impactful,” he says, even if the resulting policies do not deliver airtight results.
Novelli-Killeen also rejects a one-time launch claim. She says Greenlight is not a “one and done” solution and must support a process of continuous improvement.
AWS’s replay feature lets users run previous agent sessions against new policies to see how they perform. Novelli-Killeen says: “What we’re trying to do is add moments of determinism while maintaining that creativity and flexibility of the agent.”
How does Greenlight compare with other agent governance?
Jason Andersen, VP and principal analyst for apps, agents, and automation at Moor Insights & Strategy, was briefed on Greenlight before launch. He calls it a promising alternative to existing agent-governance approaches.
The most popular governance method uses multiple LLMs to vet an agent’s output, Andersen says. That approach is expensive and leaves one probabilistic model assessing another.
Andersen says: “[Greenlight] is a different approach to correctness that is arguably better. It’s two different methodologies of evaluation versus two of the same.”
Andersen thinks Greenlight is likely to prove particularly valuable for agents running critical business processes with low tolerance for errors, especially in finance and medicine. Those deployments will test whether formal proofs can add control without sacrificing the creativity and flexibility that Novelli-Killeen says Greenlight aims to preserve.
Original: aws.amazon.com
More from Rebecca Stone
Show full bio
Correspondent covering companies, deals and strategy in artificial intelligence and machine learning at AI In Context.
976 articles
Related articles
- Let the model propose, let the rules decide: a new governance split for AI agents
- OpenAI Models Are Coming to Amazon Bedrock via a Stateful Agent Runtime
- AI Governance in 2027: Accountability Moves Into the Workflow
- OpenAI details codex-1: an o3 variant tuned for real coding work
- OpenAI's Codex agents now fix ChatGPT performance bugs end to end