AWS Greenlight applies policy checks to AI agent actions

src-48d6fb49

AWS has introduced Greenlight, a service designed to help organizations constrain what AI agents can do while allowing them to carry out tasks with limited moment-to-moment oversight. Announced at the company’s re:Invent conference and available in public preview, Greenlight combines policy controls with automated reasoning to evaluate agent actions against rules set by an organization.

The service addresses a growing operational challenge for enterprises: agents may need access to multiple tools and data sources to complete a task, but that access can also create opportunities for mistakes or harmful actions. AWS gave examples including exposing customer information or moving money to an incorrect account. Greenlight is intended to define permitted behavior more precisely and block actions that violate those boundaries.

Turning business rules into enforceable policies

Organizations can describe policies in natural language. Greenlight translates those instructions into deterministic rules using automated reasoning, a method that applies mathematical logic to analyze whether system behavior complies with defined requirements. AWS says the service can also infer rules from AWS Context graphs and previous agent behavior, then convert them into mathematical representations.

Automated reasoning is not new to AWS. The company uses it in S3 Block Public Access to assess whether combinations of network settings and access-control policies could leave an S3 bucket publicly reachable. AWS also uses the technique in IAM Access Analyzer, which examines possible permission combinations to help determine whether identities can access specified resources. Greenlight applies similar reasoning to the agentic AI stack, where actions and tool permissions can change as an agent progresses through a task.

That sequence matters because a policy may depend on what an agent has already done, rather than only on its current request. Greenlight incorporates Dogwood, an open-source policy language for agents and their tools. Dogwood uses temporal logic to express rules based on recent events. For example, an organization could specify that after an agent accesses a database containing confidential customer data, it must not access the internet. The rule therefore governs a series of actions, not just an isolated tool call.

AWS says Greenlight also uses Lean, a programming language that can support mathematical proofs about system behavior. The company already uses Lean in several products, including Bedrock AgentCore for agentic safety. These components are intended to give policies a more formal representation than natural-language instructions alone.

Checks occur at the tool-call boundary

Greenlight deploys an organization’s rules to an enforcement engine in Strands Box, an open-source agent sandbox. AWS describes the sandbox as sitting outside the agent’s harness, keeping the agent from changing the policies that govern it. When an agent attempts to call a tool, a gateway intercepts the call and checks it against the applicable rules, taking the agent’s previous actions into account. Calls that would break a policy are blocked.

This enforcement point is significant for organizations assessing how agent controls fit into existing applications. Rather than relying solely on an agent to follow instructions in its prompt, Greenlight is designed to evaluate tool use against policies outside the agent itself. AWS says this arrangement is intended to preserve agent autonomy while adding deterministic checks around actions.

The service is also designed to recommend policy improvements over time based on how agents behave in real-world scenarios. AWS says those recommendations can help steer agents toward intended behavior. That adaptive element is separate from the immediate enforcement described by the company: tool calls are checked against the rules currently deployed, while recommendations may inform later changes to those rules.

Availability and deployment considerations

At launch, developers can access Greenlight as a power for Kiro and as a plugin for Claude Code and Codex. AWS said future plans include support for multi-agent systems and deeper integration with AWS Context. Context, announced earlier in the year, maps relationships across an organization’s existing data into a knowledge graph and gives agents access to governed relationships, business rules and domain knowledge at runtime.

Greenlight is in public preview, so enterprises evaluating it should treat the announcement as an introduction to the service rather than evidence that every agent risk is eliminated. The described controls focus on translating policies and checking tool calls; organizations will still need to define appropriate boundaries for their workflows and decide which data and tools each agent should be able to use. The preview offers security teams and developers a way to assess whether policy-based enforcement can make agent deployments more manageable, particularly where actions depend on access to sensitive information or external services.