AWS Greenlight Turns Plain-English Rules Into Provable Guardrails for AI Agents
The hardest problem in AI agent safety may not be the mathematics. It may be the translation.
That is the wager behind Greenlight, a new AWS tool that converts a developer’s plain-English rules into mathematically verifiable policies that constrain AI agents at runtime. Instead of asking security teams to write formal specifications by hand, Greenlight uses a large language model to draft them, then checks the result with automated reasoning. The pitch is less “trust the model” than “let the model do the paperwork, and let the proof engine do the trusting.”
The agent reliability problem
LLM-powered agents are probabilistic by construction. Ask one to book a flight or refactor a repository and the exact sequence of steps will shift from run to run, which makes predictable behavior difficult to guarantee. The usual mitigations sit at two extremes. Either you severely constrain what the agent can do, which limits its usefulness, or you route every consequential action through a human, which does not scale.
The second option has a failure mode of its own. Cami Novelli-Killeen, AWS director of product management for neurosymbolic AI, calls it “allow fatigue”: reviewers facing a steady stream of approval prompts start waving actions through, and the human check quietly stops checking. Anyone who has watched a team click “accept” on a wall of permission dialogs will recognize the pattern. The industry has spent the past two years building agents that can act; the harder question is how to let them act without a supervisor glued to the screen.
Meet Greenlight
Greenlight is a plug-in for AI coding assistants, including Claude Code, Codex, and Kiro. It reads an agent’s documentation and logs to infer what job the agent is meant to do, proposes policies in natural language, and writes the formal versions in the background. As deployed agents encounter new situations, it can recommend policy updates rather than waiting for someone to notice a gap.
The framing matters. Novelli-Killeen describes the goal as translating a subject-matter expert’s “tribal knowledge… common sense… what they know to be right and wrong about that job into very precise policies that an agent can follow deterministically.” The intended experience, she says, is one that “feels like you have a mathematician sitting next to you helping you figure out the specifications for your agent.”
That is a meaningful shift in who gets to write safety rules. Formal methods have historically required specialists, and the bottleneck was rarely the logic itself. It was getting a domain expert’s judgment out of their head and into a specification precise enough to check.
Inside the stack
Greenlight sits on two pieces AWS shipped earlier. Agents run inside Strands Box, a software sandbox released in October 2025 that intercepts every action affecting the outside world, whether that is calling an API or writing a file, and approves or denies it. Decisions are governed by policies written in Dogwood, a language AWS launched in August 2025 that is based on first-order temporal logic, which is designed to reason about how things change over time.
The sandbox denies by default. Users “poke holes in the box” by writing policies for the actions they want to permit, and Greenlight automates that hole-poking. Deny-by-default is the right posture for agent infrastructure, and it echoes work elsewhere on containment: Shepherd: The Meta-Agent That Uses Version Control and Sandboxing to Keep AI Agents in Check takes a similar view that the environment around an agent deserves as much engineering attention as the agent itself.
What could go wrong
The obvious objection is the translator. If an LLM turns “don’t let the agent email customer data externally” into a Dogwood policy, and that policy is subtly wrong, the proof engine will faithfully verify the wrong thing. Formal verification guarantees that the implementation matches the specification. It says nothing about whether the specification matches what the expert meant.
André Platzer, a professor at the Karlsruhe Institute of Technology, notes that there will always be a danger of translation errors. That is the correct worry, and it does not disappear because the pipeline is automated. It gets sharper: a hand-written policy is reviewed by the person who wrote it, while a generated policy invites rubber-stamping, the same allow fatigue in a new costume.
The mitigation is procedural rather than mathematical. Greenlight’s plain-English proposals are the right interface for review, because a domain expert can read a natural-language rule and object to it, even if they cannot read Lean. The proof then covers the gap between that rule and the runtime decision. The human signs off on intent; the machine checks fidelity. Teams that skip the first step and approve generated policies unread will get exactly the assurance they paid for.
From rules to proofs
The verification pipeline is where Greenlight gets interesting. Rules are converted from Dogwood into Lean, a programming language built for machine-checkable proofs. Proprietary “automated reasoning engines” then check rule interactions and the agent’s available tools for unintended loopholes, the gap that appears when two individually sensible policies combine into an unsafe permission.
Approved policies are compiled to SQL, and every attempted action is checked against them at runtime. According to Marc Brooker, AWS vice president and distinguished engineer, this typically adds tens of milliseconds to a tool call. Each decision can also carry an auditable proof of why it was made, which turns a log line from “the agent was blocked” into “the agent was blocked, and here is the derivation.”
That auditability is the part enterprises tend to undervalue until an incident review. A proof attached to a decision is evidence; a stack trace is not. It also moves enforcement out of the prompt. Most guardrails in production today live at the prompt level: instructions, examples, maybe a classifier on the output. They are advisory. An agent that ignores them has not violated a constraint; it has merely disobeyed a suggestion. A runtime check backed by a proof is a hard stop, and a denied tool call is a checkable artifact rather than a missed instruction.
The latency and expressiveness trade-off
Tens of milliseconds per tool call is not free, but for most agent workloads it is noise next to the seconds an LLM inference already takes. The more consequential change is expressiveness.
Brooker’s example is a personal agent holding credit card details. “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 said. “It has to remember how much it’s spent so far and… it has to know what a month is.”
That is a temporal problem: state that accumulates, boundaries that reset on a calendar, conditions that depend on history rather than a single request. First-order temporal logic handles it natively. Simpler rule engines handle it with custom counters and cron jobs, which is exactly where policy code tends to rot.
Brooker is also blunt about why this is feasible now. Natural-language-to-formal-language translation, he said, “is one of those problems that’s gone over the last five years from almost intractable to very, very tractable.” The same jump in capability that made agents useful is what makes specifying them tractable.
Greenlight treats the specification as the deliverable, and it puts an LLM where the translation bottleneck used to be. Whether that earns trust will depend less on the reasoning engines than on the discipline of the humans reading the drafts they produce.