DEV Community

Damien Gallagher
Damien Gallagher

Posted on

AWS Greenlight Preview: Agent Rules Enforced Outside the Agent

TL;DR

  • What: AWS Greenlight turns your written agent rules into deterministic policies, checks them with automated reasoning, and enforces them outside the agent.
  • Who for: teams putting agents on tools that can move money or change records.
  • Status: preview. Regions: not stated.
  • Price: pricing not stated. The docs say you pay for the resources you use, such as the gateway and logs.
  • Watch: free-text rules (SQL, shell commands) generally cannot be enforced.
  • My view: the right idea, with rules that read a bit like Cedar, but read every report before you approve.

Contents


What changed

On 1 December 2026, AWS announced Greenlight in preview as part of the launch post for more ambitious agents. Going by that post, it is an automated reasoning service that keeps agents inside set bounds. You give it your policies and procedures. It converts them into deterministic rules. Once you approve them, they are enforced outside the agent.

The example in the post is a customer service agent that may issue refunds, but only with required checks and a cap on the amount.

The point of "outside the agent" matters. A system prompt is a request. The Greenlight FAQ says as much: a prompt is not deterministic enforcement. If the model gets it wrong, a rule in the prompt is just text. A rule in the enforcement layer still blocks the call.

I have not used it. Everything below comes from the launch post, the product page, the FAQ and the getting-started guide.


How it works

Going by the product page and the getting-started guide, the flow is:

  1. Install it into your coding agent. The FAQ says Greenlight is a power in Kiro or a plugin in Claude Code or Codex.
  2. Pick sources. Greenlight suggests documents, such as procedures, security standards, AWS Context graphs and past tool calls. You choose which it may use.
  3. Draft rules. An LLM drafts the rules. Automated reasoning then checks the combinations.
  4. Review conflicts. It flags conflicting policies and access paths that could reach unapproved resources. It shows the scenarios and recorded tool calls it would block before you accept anything.
  5. Approve. The guide says approving does not turn anything on.
  6. Enforce. Policies go to an Amazon Bedrock AgentCore Gateway or a Strands Box. Calls that break a rule are blocked before they run.
  7. Iterate. New agent traces produce proposed rule updates for you to compare and approve.

New agents start deny-by-default, per the product page. No tools or network destinations unless you approved them.

Two details I liked in the guide. On a gateway you can start in log-only mode, which records what would be denied without blocking. Then you promote to enforce. And you can type "roll back" to undo the last change. A Strands Box has no log-only mode.

Rules are written in Dogwood. The guide's example uses forbid clauses and unless conditions, which look like Cedar to me; the guide does not call it Cedar-like. Conditions can be temporal. For example, an identity check must have returned a given result earlier in the same session.


Facts at a glance

Item What the pages say
Status Preview, subject to change
Enforcement points AgentCore Gateway, Strands Box
Default posture Deny-by-default for new agents
Rule language Dogwood (forbid/unless clauses)
Install Kiro power, or Claude Code or Codex plugin
Needs AWS account with preview access, a supported Region, an agent or tool schema
Regions Not stated (examples use us-east-1 and us-west-2)
Pricing Not stated as a Greenlight price. You pay for gateway, CloudWatch Logs, any S3 bucket
Preview access process Not stated (the FAQ only says you need an account with preview access)

On cost, the guide also says CloudWatch charges for each dashboard after the first three in an account. That is as of 1 December 2026, and it is the only cost detail I found.

Without a deployment target, the FAQ says Greenlight can still create and check policies against your tool schema and export them. In that mode it does not read live traffic or change your account. That is a sensible way to try it.


Limits the docs admit

I trust a preview more when it lists what it cannot do. The getting-started guide does, and these are the ones I would read twice.

  • Free text. Rules about SQL queries or shell commands generally cannot be enforced. The report suggests structural fixes instead, such as read-only database users.
  • Agent-supplied values. A receipt number the agent provides cannot be verified as genuine. You choose whether to trust it.
  • Rounding. Numeric limits are rounded to 4 decimal places, so an amount slightly over a cap can pass. You pick whether to keep the cap as written or deny at the boundary.
  • Raw HTTP. Raw HTTP requests, such as to an AgentCore Runtime endpoint, are not handled automatically. Once the engine enforces, they are denied unless you add your own allow policy.
  • Misreading. The guide tells you to read the report carefully because the tool can misread your intent.

Analysis results also come in categories, from Verified to Inconclusive. Treat "Verified, assuming" differently from "Verified".


How it relates to AgentCore Policy, Guardrails and IAM

I could not find a page that states these relationships directly, so this is my reading of the pages.

AgentCore Policy and Cedar. The AWS security blog on Cedar says AgentCore Policy enforces Cedar at the Gateway, blocks tool access by default, and can translate natural language into Cedar with schema validation and Cedar Analysis. That overlaps a lot with Greenlight. The difference I can see: Greenlight starts from your documents and agent traces, proposes rules, and keeps proposing updates as traces arrive. Policy, as described there, starts from what you or an administrator write. Greenlight deploys to a Gateway, so I read it as a layer that produces and maintains policy, not a rival engine. The pages do not say that outright.

Bedrock Guardrails Automated Reasoning checks. The Guardrails docs describe checks that validate model responses and prompts against rules from a source document. They run in detect mode only and return findings. Greenlight governs tool calls and blocks them. Different target, different action. Neither page links the two.

IAM for agents. The IAM announcement (preview, 1 December 2026) gives each agent its own SPIFFE-compliant identity on top of IAM roles. The launch post says rules need to apply to the right agent and introduces IAM for agents separately. It does not state the link, so I am inferring it. The IAM page itself does not mention Greenlight.


What this means for you

Who should care now. Anyone with an agent that can spend, refund, delete or email on a customer's behalf. If your agent only reads, you can wait.

Who should wait. If you need a stated price, a Region list or an SLA before approval, I did not find any of that in the pages. Preview means subject to change.

What gets simpler. Turning a policy document into reviewable rules. Finding conflicts you would otherwise meet in an incident. A log-only phase before anything blocks.

What gets more complex. One more tool in the chain: the install is not trivial. The guide asks for a C compiler and Rust to build the Dogwood CLI, and two IAM policies (read and enforce). It says to avoid administrator roles. Good advice anyway.

Cost. Only what is stated: you pay for the resources involved. No Greenlight charge is published that I could find.

Config. The docs show a conversational flow, not a config file. Based on the docs, not tested by me, you open your project and tell your coding agent "govern my agent". It walks through Agent, Sources, Clarifications, Decisions, Approval and Enforcement. I will not invent a policy sample. Link the guide to your team instead.

Combining it.

  • Use IAM for agents for who the agent is.
  • Use Greenlight or AgentCore Policy for what tool calls it may make.
  • Use Guardrails for what the model says, where those checks fit.

Three layers, three questions. None replaces the others.

Best practices I would follow, going by the docs.

  • Start in log-only mode and read what would have been denied.
  • Keep a human approval on every rule set.
  • Move rules out of prose and into structure, such as read-only database users, where free text cannot be enforced.
  • Run the optional permissions and network checks on gateways. The permissions check reads your roles with IAM Access Analyzer. The network check uses Network Access Analyzer.

Versus Cedar written by hand. If you already have a small, stable tool set and a team happy to write Cedar, hand-written Policy may be enough. Greenlight earns its place when rules live in long documents and change often. My view: the conflict analysis is the most useful part. Writing the rule is the easy bit.

Open question. Will the pricing keep the log-only trial cheap enough that teams actually run it for weeks before enforcing? I would like to see that stated before I recommend it to a client team.


Related posts


Sources

Drafted with AI assistance. I review and edit every post.

Top comments (0)