Upgrading AWS Greenlight. Take your agent's rules to the data.
AWS Greenlight writes the rules for what an AI agent may do, from plain English, and proves them. We tested it on a real AWS gateway, then ported its rules to Taxi and had Orbital enforce them on the data: the same decision on every tool call, plus 8 forbidden calls that AWS let through. Here's what they were, and an open-source kit to test your own.
AI agents now have tools that change things: they update records, issue refunds and send email. On 1 December AWS launched Greenlight, which writes the rules for what an agent may do, from plain English, and proves them. We tested it on a real AWS gateway, and it’s good. Then we ported its rules to Taxi and had Orbital enforce them on the data itself. They made the same decision as the gateway on every tool call, and stopped 8 forbidden calls that AWS let through.
Earlier this week we wrote about AWS Context, which gives agents a map of what your data means. That’s the reading half. This post is the other half: what an agent may change. After all, if an agent can’t write data, what is the point?
What we stopped that AWS didn’t
We sent 32 calls an agent might make through an AWS gateway running Greenlight’s rules, through a Strands Box (AWS’s open-source sandbox for agents), and through Orbital running the same rules in Taxi. These 8 forbidden calls got past AWS. Orbital stopped all 8:
| The call | AWS | Orbital |
|---|---|---|
| A £5,000 refund, over the £1,000 limit, written as a query | Gateway let it through | Stopped |
| Sales issuing a £200 refund, written as a query | Gateway let it through | Stopped |
| An email to an outside address, sent from a query | Gateway let it through | Stopped |
| Sales changing a customer’s contact, written as a query | Gateway let it through | Stopped |
| Sales claiming to be finance inside a query: a contact change and a refund | Gateway let both through | Stopped both |
| Two £200 refunds by people outside finance, whose agent said “finance” | Strands Box let both through | Stopped both |
There are two reasons, and neither is a flaw in Greenlight:
- A check on the call can’t see inside a query. One of the agent’s tools runs a query, and the change sits in the query’s text. Nothing in the call says what it will change. Orbital checks every operation the query calls.
- On a box, the agent’s word decides who it’s working for. A Strands Box sees only what the agent says about the person. Orbital checks the person’s sign-in.
It cost one over-block: Orbital also refused a harmless query that re-saved a contact unchanged. On the 21 typed tool calls, Orbital and the gateway made the same decision every time. One more call got past the gateway, a raw SQL change. That never reaches Orbital, and a read-only database user stopped it, which is AWS’s own advice.
What AWS launched
AWS Greenlight (in preview) turns rules written in plain English, from your documents or from tool calls you’ve recorded, into policies in Dogwood, an open-source policy language for agents built on Cedar. Then it checks them: it simulates calls, finds rules that clash or can never fire, and proves properties like “sales can never change a contact”.
It doesn’t enforce anything itself. It runs as a plugin in your coding agent, and an Amazon Bedrock AgentCore gateway or a Strands Box enforces the policies. It’s still a real step forward: today most agent rules are written by hand and checked by hoping.
The test
A small sample business: a CRM, a billing database, a payments service and a mailbox, with three people: someone in finance, someone in sales, and someone with no business role. We wrote three rules in English:
- Finance may change a customer’s contact details. Sales may not.
- Only finance may issue refunds, and no single refund may be more than £1,000.
- The agent may email only people inside the company.
Greenlight turned them into policies, and a real AgentCore gateway enforced them. Then we sent the 32 calls: typed tool calls, free-text queries, and agents claiming to work for someone they don’t.
Greenlight’s turn
Writing the rules was a good experience. Greenlight asks before it guesses: what about someone in both finance and sales, may someone in neither use the tools at all, and should it trust what the agent says about the person? Those are a security reviewer’s questions, and it asked them before writing a single policy. Feeding it your policy documents looks like a useful model too.
On the gateway it stopped every bad typed call before anything ran: sales changing a contact, tools that change a contact indirectly (merging accounts, syncing into billing), the £5,000 refund, agents falsely claiming finance, and email outside the company, including a lookalike domain.
It wasn’t perfect:
- The same English gave two limits. For the box, Greenlight suggested “£1,000 or more” to avoid a rounding edge. So a refund of exactly £1,000 went through the gateway and was refused on the box.
- Some proofs didn’t finish. 5 of the gateway’s 15 checks came back inconclusive, including both on the refund limit.
And to its credit, it warned us about both gaps in the table above before we ran anything. It marked those parts of the rules “not enforceable”, and for free text it recorded the fix: refuse the write at the data, by the person’s sign-in. (To be fair, the coding agent Greenlight runs in wrote that fix, and it knew Orbital was there.)
Taking the rules to the data
So we took Greenlight’s rules out as Taxi, as we did with Context’s map. Taxi is our open language for data, APIs and the rules on them, and Orbital runs it. Orbital sits between agents and systems, and checks every write against the rules for the signed-in person before anything is sent, however the change arrives.
A converter reads the policies Greenlight approved and writes them as Taxi. Here’s the refund limit, both ways:
forbid ( principal, action == AgentCore::Action::"orbital___issueRefund", resource == AgentCore::Gateway::"…")when { context.input.amountGbp.greaterThan(decimal("1000.0")) };Greenlight’s rule is on a tool’s input. The port moves it into Orbital, which applies its rules to every operation a call reaches, whether it arrives as a typed tool or inside a free-text query. That’s why the rules held for free text: of the 6 free-text calls Orbital stopped, 4 were refused by rules on operations, such as “only finance may call issueRefund”, and 2 by the refund limit and the email rule.
Greenlight’s 8 rules for the gateway became 11 Taxi policies: 7 ported whole and 1 in part. Anything the converter can’t port goes in a report, with the reason. The port isn’t a copy, and the report says where the meaning shifts:
- Groups become exact roles. Greenlight matched any group whose name contains “finance”. Taxi asks for the role “finance” exactly.
- Default deny becomes default allow. Two read operations that no tool calls directly stayed open to a query. You’d add a rule for them.
- Rules move from tools to operations. That’s what makes them hold for free text, and it caused the one over-block: the harmless re-save calls the same save operation that sales may not use.
- Limits on inputs land on data types. The converter put the refund limit on
RefundAmountand the email rule onEmailRecipient, so each covers every write of that type, a plain database update included. That may be more than you want: a rule on the refund operation itself is the tighter choice.
Applying the policies took Orbital 0.42 ms a query at the median in the final run, and 3 ms at worst across our runs. That’s the policy check itself, inside Orbital.
Which to use where
| Greenlight, on a gateway | Greenlight’s rules in Taxi, on Orbital | |
|---|---|---|
| Writing the rules | From plain English, with questions | Ported from Greenlight, or written in Taxi |
| Proof | Yes: proves a rule holds for every call | No: tested, case by case |
| Where it decides | At the agent’s call, before the tool runs | At the data, before anything is sent to a system |
| Who it trusts | The sign-in (on a box, the agent’s word) | The person’s signed token, always |
| Free text | Can’t see inside, and says so | Judges the change the query makes |
| Where it holds | Calls through that gateway | Anything that goes through Orbital, in AWS or not |
So write the rules in Greenlight, and let it ask the awkward questions and prove what it can. Enforce them on the gateway, and take them to the data as Taxi too, so they hold for free text, for any way in, and outside AWS.
Test and port your own
We’ve made the test open source: agent-guardrail-matrix. You list the calls an agent might make and what should happen to each. It runs every call through every guardrail you have and prints who stopped what, the gaps and the over-blocks. It fails when a gap gets through a path you rely on, so it can run with your other tests. Both converters are in it: Greenlight to Taxi, and Greenlight to a Strands Box policy. It’s a spike, shared as it stands.
What we didn’t test
We make Orbital, so we’re not neutral. Judge the test with this in mind:
- Small and synthetic. Sample data, three people, one AWS region. Payments and email were stand-ins: no money moved and no email was sent.
- Scripted. A script made the same 32 calls through every lock. A real agent choosing its own calls wasn’t tested.
- Tested, not proved. The port decided like the gateway on our cases. The converter has only seen the policies Greenlight wrote here.
- On a preview. Greenlight will change, and a different coding agent might write different policies from the same English.
- Not covered: rules that depend on earlier calls in a session (Dogwood has them; they don’t port to Taxi), deletes, and cost. We estimate the AWS side cost under $5.
How to try it
- AWS Greenlight is in preview. Start here.
- The test kit and converters: github.com/orbitalapi/agent-guardrail-matrix.
- Orbital runs anywhere Docker does. Install it, load the Taxi the converter writes, and put the rules on the data your agents can change.
If you’re putting agents to work on systems that matter, we’d love to talk. Get in touch and we’ll run this on your own tools and data with you.