I have spent a lot of the last two years writing agent guardrails as sentences in a system prompt, and I have never believed one. A model that can be talked around is not a control.
AWS shipped something better shaped on December 1. AWS Greenlight, in preview, turns written procedures into policies for an agent’s tool calls, checks them with automated reasoning before anyone turns them on, and enforces them outside the agent, in the AgentCore gateway or in Strands Box. The architecture is right. What I want from it is the list of things it says it could not prove.
🚦 The Rule Left the Prompt
AWS states the premise plainly: if the rules live inside the agent’s reasoning loop, the agent can find its way around them or ignore them while it optimizes for finishing the task. So Greenlight deploys them to an engine the agent cannot see or change, and every tool call is checked before it runs.
Greenlight only writes and checks. The gateway or the box enforces, so your agent keeps working if the service is down. The thing you trust in production is the policy engine, not the service that helped you write to it.
Setup is deny by default: no tools, no network destinations you have not approved.
Marvin Theimer, an AWS vice president and distinguished engineer, told GeekWire that a lot of agents are “sitting in purgatory” because security chiefs will not approve software that could do serious damage. His line about competing guardrails is the one I keep: “It runs 99 out of 100 times, but as I get to scale, that’s not good enough. I need 100 percent.”
The preview runs as a Kiro power and a plugin for Claude Code and Codex, in seven Regions. AWS lists no price for it and no general availability date.
🧮 What “Verified” Actually Says
The policies are written in Dogwood, an open source language AWS released in August under Apache 2.0. Dogwood extends Cedar with temporal conditions, which is the reason it exists: Cedar answers a question about one request in isolation, and could never say “deny this refund unless an approval call happened first.”
A Dogwood policy can look backward over events:
permit ( principal, action == AgentCore::Action::"SellShares", resource )
when temporal {
formerly within 1h AgentCore::Action::"ApproveSale"::response{
input.stock: context.input.stock,
input.shares: context.input.shares,
output.approved: true
}
};
The formerly within 1h clause is what makes “approve before you sell” expressible. The math is temporal logic, and the important part is what the checker does with it: a solver searches every possible sequence of calls in a session for one that breaks the rule, not just the sequences in your test suite. That is a different claim than a passing test.
Greenlight runs up to five checks before you turn anything on: schema validation, simulation against recorded calls, whole-policy analysis, property checks, and generated test cases.
Each check returns one of six results, and only one is a clean pass:
Verifiedmeans the property holds for every sequence the policies allow.Verified, assumingmeans it holds as long as a call that returned did what it was supposed to. Greenlight cannot see what that call returned, and the answer names the call.Verified, not replayedmeans the policies allow a way, but a replay could not confirm it.Holds only for these spellingsmeans the rule covers an exact string or alikepattern, and the same value written another way is not covered. AWS does not report this as verified.Not verifiedcomes with a trace, a sequence that ends in the call the rule forbids.Inconclusivemeans the analyzer could not settle it inside its time limit. That is neither a pass nor a failure.
Anyone who deploys this and greps for “verified” will ship a rule they did not read.
🎯 Where the Proof Stops
The limitations page is the most useful document AWS published this week, and I mean that as a compliment.
The analyzer treats every input as any value of its type. amount is any number, even if your agent only ever sends amounts under 100. It does not read your directory, so it cannot know a user is a manager unless a policy or a tool call says so. It does not know what a tool returns: a trace can show verify_identity returning verified: true for a user that tool would never verify. A trace proves your policies do not stop a sequence, not that the sequence will happen. Both directions matter, and they point opposite ways.
Decimals have a sharper edge. On an AgentCore gateway, amounts are rounded to four decimal places before comparison, so a limit written as more than 500.0 allows 500.00004. AWS advises writing the limit as 500.0 or more, or using a whole-number field in cents like amount_cents. In the other direction, a number in exponent form such as 1e-6 in an earlier call makes the check fail closed. Very large limits cannot be checked exactly, so they are not reported as verified: from 92,233.7204 on a Strands Box, and from 274,877,906,944 for a tool response on a gateway.
A Strands Box saves its call history about once a second. If it crashes or is stopped, it loses the latest calls and decides later calls without them, so a policy that limits how many times a tool runs can let one through. Greenlight lists that in the assumptions, which is decent, if you are reading assumptions on a Friday afternoon.
Then the limit no tool can fix. The documentation’s refund example denies a refund over $500 until a manager approves. Two refunds of $300 to the same customer can both pass, because the rule applies to each refund separately. That is not a hole in the solver. The solver did exactly what it was told. Matt Garman put the boundary better, in an interview with SiliconANGLE: “It doesn’t necessarily ensure that you get the right answer, but it ensures that you follow the guardrails.”
There are hard caps too: 40 policies in simulation, 200 in the property checks, and 10,000 characters per policy.
🔧 The Afternoon You Turn Enforcement On
The operational part is the switch, and the docs are unusually candid about it.
Log only and enforce are two modes. The policy engine’s mode is one setting for the whole engine, so the afternoon you decide to enforce, you enforce everything that engine carries.
Greenlight’s policies are named pb_. If your gateway also has a model target, it adds a pbmc_ policy that allows those calls, so inference keeps working when the engine starts denying. During an update it adds temporary pbtmp_ policies and removes them when it finishes.
The one that will page you: if your gateway passes requests through to an HTTP endpoint, such as an AgentCore Runtime, Greenlight leaves those to you. Once the engine enforces, the gateway denies them unless one of your own policies allows them. Greenlight warns you first. Read the warning.
A rollback undoes the last policy change and the mode. It does not remove the CloudWatch dashboard, the results bucket, or the Network Access Analyzer queries.
The permissions check reads only the execution roles of the Runtime and gateway you name, not resource-based policies, permission boundaries, organization SCPs and RCPs, or resources in other accounts. The network check covers TCP and UDP over IPv4 only, and warns rather than passes if your Runtime uses public network mode.
🧭 How I’d Actually Use It
Pick one real procedure with a real owner in the room. Not the whole policy set, one procedure.
Ask that owner for three ways the agent could get it wrong, and start with the split refund, because it is the cheapest way to find out whether the rule says what the business means. Then check where each lands: verified, not enforceable, or not in the proposal at all. Those three buckets are the deliverable.
Tie the sign-off to a version. Greenlight numbers each approved policy set and can put an earlier one back, so you can record which version a named person approved.
Keep the switch with security, not the developer who approved the draft. Theimer described security chiefs as the people who sign.
If you also run Microsoft’s Agent Governance Toolkit or Google’s CEL verification, decide now which one is your system of record. Each vendor governs in its own language: Dogwood and Cedar on AWS, CEL on Google, the Microsoft toolkit on Azure. Adopting each as it ships gives you four control planes for one audit question.
🧠 Final Thoughts
Greenlight is the first agent guardrail I have seen that is honest about the difference between a rule and its proof. Enforcing outside the harness is the right architecture, and formal verification is the right tool for the part of the problem that is actually formal. Everything else is the boundary: inputs that count as any value of their type, tools that return whatever the type allows, decimals that round at four places, and business rules that quietly mean something other than what they say.
So do not buy the badge. Buy the list. The assumptions and the not-verified traces are where the engineering is, and they are the only part of this that will still be true when the rules change next quarter.
Thanks for reading.