· AI dev tools

AWS Greenlight service uses automated reasoning to prove AI agent policies

The $500 cap on refunds was verified by AWS Greenlight, yet a separate rule concerning lookups initially failed, illustrating the nuanced capabilities of the new automated reasoning service.


This service, which is currently in preview, enables organizations to establish rules governing what their AI agents are permitted to execute, checking every tool invocation against these approved policies and blocking any that violate them, thereby assisting companies in delegating more intricate tasks to agents.

AWS introduced AWS Greenlight, an automated reasoning service designed to draft policies for an agent's tool calls, formally verify them, and enforce the approved rules externally from the agent itself. It is accessible as a power for Kiro and as a plugin for Claude Code and Codex, deploying verified policies to either Amazon Bedrock AgentCore Gateway or Strands Box. For developers, a significant advantage is that a directive, such as "deny any refund over $500," no longer needs to reside within a system prompt that the model could potentially disregard.

This process begins when a prompt like "govern my agent" initiates a review cycle: Greenlight drafts policies by examining procedures, regulations, and recorded usage traces, which can include unstated rules, subsequently searching for any gaps, conflicts, or risky combinations of access. Nothing is put into action until a human provides approval for the policy set. Enforcement occurs either on the gateway or within the box, ensuring the agent remains functional even if the Greenlight service experiences an outage. A gateway can operate initially in a log-only mode, whereas a Strands Box lacks such a mode.

Greenlight authors these policies using Dogwood, an open-source language that builds upon Cedar by incorporating temporal conditions related to prior calls within the same session. AWS explains that an LLM generates the initial rules, and then automated reasoning—a technique similar to that used in IAM Access Analyzer—translates this set into formal logic, allowing a solver to examine every conceivable sequence of calls within a session to detect any rule breaches. Before activation, Greenlight is capable of validating policies against the tool schema, replaying recorded interactions, and running property checks that yield results of Verified, Not verified, or Inconclusive.

However, the official limitations clarify that the analyzer treats all tool inputs as any value corresponding to their data type, does not access IAM or a company directory, and presumes any well-typed tool return is possible; consequently, a trace only indicates that the policies would not prevent a sequence, not that such a sequence will not occur. Furthermore, checks may time out, resulting in an Inconclusive status. On an AgentCore gateway, monetary amounts are rounded to four decimal places, and temporal policies generally look back only 24 hours within a session.

In a preliminary assessment, Fabio Douek tested AWS's refund sample in his own account, confirming the $500 ceiling but finding that the initial rule for lookups was not verified; this was because the first draft only scrutinized the lookup's response, meaning a request falling just outside the 24-hour window was still counted. After a fourth policy was introduced requiring the request itself to be within the window, the checks passed. When he inquired if the set prevented a second refund for the same order, the service indicated that "never more than $500" did not equate to "never refund an order twice." Douek noted that the majority of his effort was spent on the preview setup rather than on Greenlight itself.

André Platzer, a professor at Karlsruhe Institute of Technology, echoed a similar sentiment in IEEE Spectrum, stating, "There is no formal way to go from the informal to the formal, so you're never really sure whether the informal natural English language was rendered correctly in logic."

Separately, platform engineer Aditya Aggarwal commented on X, questioning whether AWS Greenlight, which asserts it checks every tool call and enforces policy outside the harness on AgentCore Gateway or Strands Box, actually monitors the bash command or the API call derived from it, given that an agent utilizing a shell could reach the same action in numerous ways.

Automated reasoning, which is built upon a major mathematical breakthrough—the formalization of what constitutes a proof for a mathematical statement—allows software to autonomously find proofs or verify the validity of one. Tristan explained that this means, instead of relying solely on testing, which involves supplying specific inputs and anticipating outcomes, automated reasoning permits specifying the desired property using mathematical language, enabling a proof that the code adheres to that property. AWS has utilized this capability within its own services for years, notably in Zelkova, which converts IAM access policies into logic formulas and validates them using solvers, seeing its solver call volume surge from roughly a thousand calls daily to one billion within five years. In 2025, AWS incorporated this technique into Bedrock Guardrails via Automated Reasoning checks, which verify model outputs against a corporation's established rules.

Tristan emphasized that the focus is on proving the rules, not the agent itself, describing the agent as a "black box" whose exact operations are unknown. Nevertheless, he noted that policies controlling its conduct exist outside the agent, and Greenlight is designed to prove the properties of those policies. A team managing thousands of policies could thus ascertain whether its agent could ever access a transactional tool, receiving an answer guaranteed to hold "for every possible action that the agent might take, so for any history," even if the agent were actively attempting to circumvent the established rules.

The policies are constructed using Dogwood, the open-source policy language AWS released in August, which enhances Cedar by allowing rules to account for preceding actions by the agent. Greenlight translates these into mathematical logic and presents them to automated provers. While AgentCore Policy can already flag rules as either excessively permissive or overly restrictive, Greenlight advances this by proving that specific business properties, such as the passenger rule, are maintained, and by generating policies directly from an agent's operational traces. Furthermore, Greenlight avoids employing a second model—an LLM-as-a-judge method common in guardrail tools, including Kiro's "Approve for me" feature—to determine if an action is permitted. Tristan stated, "What we do is we provide deterministic control that lives outside of the agent, so that it's properly out of the reach of the agent."

For production environments, Tristan advises implementing layered controls, beginning with AWS's open-source Strands Box sandbox during the development phase, followed by AgentCore Runtime to isolate tenants and assign an identity to the agent, further wrapped by a VPC, and limiting tool access exclusively through AgentCore Gateway. He describes this as "a stack of trust in depth."

Regarding performance, Tristan acknowledged that examining every action introduces some latency, which he stated is "not negligible," though this delay is minor when compared to the time the agent spends on its internal reasoning. He believes the true challenge lies in the process of creating the policy set. The most difficult aspect of building Greenlight, according to Tristan, was not the formal methods themselves, but rather anticipating the needs of customers six to twelve months down the line; once AWS understood the necessary questions, the mathematical aspects became "the fun part."

Automated reasoning is fundamentally about establishing mathematical proof, allowing software to verify statements automatically. Tristan explained that this contrasts with traditional testing, which is limited to predefined inputs and expected outputs; automated reasoning allows for the precise mathematical specification of a desired property, which can then be proven to be satisfied by the code. AWS has used this internally for years, for instance, in Zelkova, where it checks IAM access policies against logic formulas using solvers, a process that scaled from about a thousand solver calls per day to a billion over five years. In 2025, AWS integrated this approach into Bedrock Guardrails with Automated Reasoning checks to validate model outputs against company guidelines.

Regarding other tooling, teams who craft policies manually can utilize the Dogwood CLI or broader engines like Open Policy Agent. In contrast, NVIDIA NeMo Guardrails adopts a programmable, largely model-in-the-loop methodology rather than relying on a solver across every sequence of calls.

Why it matters

This tooling directly addresses a major hurdle for working developers: gaining enterprise trust in autonomous AI agents. By providing mathematical proof of policy adherence, Greenlight offers a deterministic control layer outside the agent itself. This advance moves beyond simple testing to offer verifiable safety for complex agent deployments.

Earlier coverage

Related coverage

Also worth reading

  1. next.js 16.6.0-canary.4 released, adding Go syntax highlighting and Node.js 24 unit tests
  2. TypeScript 7.1-rc released for developers to download on npm
  3. next.js 16.6.0-canary.2 released, adds file uploads, updates docs, and more
  4. next.js 16.6.0-canary.1 released with 405 for forbidden Route Handler methods
  5. Angular 21.2.27 released, fixes component template capture during compile