Security & privacy

AWS Greenlight uses formal methods to verify AI agent safety

AWS launched Greenlight, a service that uses automated reasoning to mathematically prove AI agent policies hold, addressing enterprise trust gaps in agent deployment.

A glass shield with math symbols protecting a robot arm from errors.
Illustration generated for this article

Amazon Web Services has introduced AWS Greenlight, a new service designed to verify the safety of AI agents through automated reasoning. Announced at the re:Invent conference in Las Vegas on Tuesday, the tool aims to solve the confidence gap that keeps many enterprise agent pilots from reaching production by mathematically proving that safety policies are strictly enforced.

What happened

The launch addresses a critical bottleneck in enterprise AI adoption: the difficulty of trusting autonomous agents with sensitive tasks. Jean-Baptiste Tristan, a senior principal applied scientist at AWS, noted that moving an agent from pilot to deployment takes a long time and has a high failure rate because teams struggle to ensure safety. While sandboxes provide some isolation, they are insufficient for guaranteeing that an agent will not perform unauthorized actions under all possible conditions.

Greenlight is currently available in preview as a power for Kiro and as a plugin for Claude Code and Codex. Major enterprises including Salesforce, ServiceNow, Delta Air Lines, and Accenture are already exploring the service. The tool helps developers define policies governing an agent’s tool calls and, crucially, provides mathematical proof that these policies cannot be violated, regardless of the agent’s internal decision-making process.

How it works

Greenlight operates by analyzing agent traces from evaluation runs or production incidents, as well as documentation or developer conversations. It identifies potential safety properties, such as ensuring every passenger holds a confirmed ticket before canceling an old one. Once a developer approves a suggested policy, the system generates the necessary rules in Dogwood, an open-source policy language that extends Cedar. It then translates these rules into mathematical logic and uses automated provers to verify that the property holds for every possible action the agent might take.

This approach differs significantly from common guardrail techniques that use a second large language model to judge actions. Instead of relying on probabilistic checks, Greenlight provides deterministic control outside the agent’s black box. If a violation is detected during testing, such as an agent canceling a ticket without issuing a replacement, the system blocks the action and proposes updated rules. After deployment, it continues to monitor behavior and suggest new policies, creating a continuous loop of verification and improvement.

Key details

  • Greenlight uses automated reasoning to mathematically prove that agent policies hold under all possible conditions.
  • The service is in preview for Kiro and as a plugin for Claude Code and Codex.
  • Policies are written in Dogwood, an open-source language extending Cedar with context-aware rules.
  • It analyzes agent traces, documentation, or developer inputs to suggest and verify safety properties.
  • Early adopters include Salesforce, ServiceNow, Delta Air Lines, and Accenture.
  • The system provides deterministic control outside the agent, avoiding reliance on LLM-as-a-judge approaches.

Why it matters

For software engineers and technical leads, this shift from probabilistic testing to formal verification represents a fundamental change in how AI systems are secured. Traditional testing covers only a subset of inputs, leaving edge cases unverified. Automated reasoning allows teams to specify desired properties in mathematical terms and prove that the code satisfies them universally. This reduces the risk of catastrophic failures in high-stakes environments like airline reservations or financial transactions, where an agent being "confidently wrong" can have severe consequences.

The trade-off involves some added latency for checking every action, though AWS describes this as small compared to the agent’s own reasoning time. The greater challenge lies in defining the right policy set. By automating the discovery and verification of these policies, Greenlight reduces the manual burden on developers. It enables a "stack of trust in depth," combining sandboxing, tenant isolation, and verified policy enforcement to create a robust security posture for autonomous agents.

What you can do

  • Evaluate current agent pilots for high-risk tool calls that require deterministic safety guarantees.
  • Experiment with the Greenlight preview in Kiro, Claude Code, or Codex to test policy verification workflows.
  • Review the Dogwood policy language documentation to understand how to extend Cedar with context-aware rules.
  • Analyze existing agent traces to identify recurring safety issues that could be formalized as provable properties.
  • Implement a layered security approach using Strands Box for development, AgentCore Runtime for isolation, and Greenlight for policy verification.
  • Engage with early adopter case studies from companies like Delta Air Lines to understand practical implementation patterns.
  • #aws
  • #ai agents
  • #formal methods
  • #ai safety
  • #automated reasoning

Tools from the Bytechap store

Keep reading

All stories