Guide · AI agents · as of 3 December 2026

AWS Greenlight checks AI agent rules outside the prompt. What it does, and five checks.

On 1 December AWS put a new service called Greenlight into preview. It takes a company’s written policies, turns them into rules for an AI agent, and checks every tool call the agent makes against those rules before the call runs. The check happens outside the agent, so a wrong decision by the model does not get past it. Most AI agents today carry their rules in the prompt. AWS’s own FAQ says a system prompt guides the model but is not deterministic enforcement. We read AWS’s announcement and its user guide, then counted how many of the rules our own coding agents follow are actually enforced by a program. Below is what Greenlight does and what our count showed, followed by five checks for any business running an agent.

How we build AI agents for businesses in Dubai

What AWS announced

Rules drafted by AI, checked by maths.

Greenlight reads the sources you choose, such as written procedures or the agent’s past tool calls, and drafts policies for you to review. It starts each agent with no tools and no network destinations until you approve them. It then uses automated reasoning, the same kind of logic AWS uses to check access in IAM, to search for any sequence of calls that would break a rule, including combinations of access that reach something you did not approve. AWS’s worked example is a refund procedure: any refund over USD 500 needs a manager’s approval. Greenlight writes a policy that denies the larger refund until the approval call has happened, replays last week’s calls to show which refunds it would have stopped, and then checks that no sequence of calls lets one through. Each result says whether the rule was verified, and lists the assumptions it relied on. A result can also come back inconclusive.

AWS: what is Greenlight (user guide)

Where it runs, and what is not known

A preview, with limits.

Greenlight runs inside an AI coding tool such as Claude Code. The policies are written in Dogwood, an open source policy language, and enforced by Amazon Bedrock AgentCore Gateway or a Strands Box. Without one of those, it can only draft policies and export them. AWS says the agent keeps working if the Greenlight service is down, because enforcement happens at the gateway. The preview is offered in seven AWS regions, none of them in the Middle East, so a UAE business cannot keep this service in AWS’s UAE region today. We found no published price: the pricing address returned a not-found page on 3 December. AWS’s own blog calls it one part of making agents trustworthy, and it is a preview under the AWS Service Terms, so it can change.

AWS: Greenlight preview announcement, 1 December 2026

What our own count found

111 lines say never. A program checks five things.

Our main codebase gives its AI coding agents a rules file plus seven topic files. On 3 December we counted 111 lines in them that say never or banned. A program checks five things before a commit is accepted: no commit straight to the main branch, no sweep that stages a large batch of files, no environment file with secrets, no build file, and no migration number that another branch already took. A wider test suite runs on every pull request before it can merge. At the moment the agent calls a tool, our setup has one hook, and it is about cost: it blocks the fifth identical call within 30 minutes. There are no deny rules in our agent permission settings. Everything else in those 111 lines depends on the agent reading and following it. We already learned what that means. On 27 November our nightly test agent had been told in its prompt to stay on our site, and in a control run it opened two outside sites. An allow-list now refuses them. We have not used Greenlight, and none of our agents run behind the gateway it needs.

Our test agent that left our site, and the allow-list

Five checks for any business running an AI agent

Run these this month.

  • 1. List every rule your agent follows and where it lives. Test: in one sheet, mark each rule as prompt, tool permission, gateway or code. The count of rules marked prompt is your number to bring down.
  • 2. Take rules about money and deleting out of the prompt. Test: for each tool that pays or deletes data, ask whether the agent could still call it with the prompt rule removed. If yes, the rule needs a check outside the model, in the tool itself or in a gateway in front of it.
  • 3. Start from deny. Test: list the tools and web addresses your agent can reach today, then try one that is not on the list. If the call works, the agent is running allow-by-default.
  • 4. Test each rule both ways. Test: write two short sessions, one that follows the rule and one that breaks it, and confirm the first is allowed and the second is blocked. A rule that blocks nothing has not been tested.
  • 5. Keep a record of every tool call. Test: pull last week’s calls for one agent and replay them against any new rule before you switch it on, to see what it would have stopped. Without the record there is nothing to replay.

Questions

Questions about agent guardrails.

  • What is AWS Greenlight?

    A service AWS put into preview on 1 December 2026. It drafts rules for an AI agent from your policies and the agent’s past calls, checks them with automated reasoning, and has them enforced on every tool call by an AgentCore Gateway or a Strands Box.

  • Can I put AI agent rules in the system prompt?

    You can, but the prompt only guides the model. AWS’s FAQ says it is not deterministic enforcement. A rule about money, sending or deleting needs a check outside the model as well.

  • What are AI agent guardrails?

    Checks that limit what an agent can do, whatever the model decides. Examples are a tool that refuses a payment above a limit, a gateway that blocks web addresses not on a list, and a code check that stops a commit to the main branch.

  • What is an example of an AI agent guardrail?

    AWS’s example: a refund over USD 500 is denied until a manager-approval call has happened in the same session. Ours: a commit hook that refuses a commit made straight to the main branch.

  • Does AWS Greenlight work with Claude Code?

    AWS says the preview installs as a plugin in Claude Code or Codex, or as a power in Kiro. It writes and checks the rules there; enforcement happens in an AgentCore Gateway or a Strands Box.

  • Is AWS Greenlight available in the UAE?

    Not in an AWS region in the Middle East. The preview lists three US regions, three in Europe and Sydney, as of 1 December 2026.

  • How much does AWS Greenlight cost?

    AWS had not published a price when we checked on 3 December 2026. The preview needs an AWS account with preview access.

  • What is an AI agent rules file?

    A text file the agent reads before it works, such as CLAUDE.md or AGENTS.md, with instructions and limits. It is useful guidance, but it is still a prompt: the agent can misread it or ignore it.

Sources

read 3 December 2026

Check it at the source.

  1. AWS: Greenlight (Preview) (1 December 2026, what it does, where it runs, regions)
  2. AWS News Blog: AWS builds for more ambitious agents (re:Invent, the refund example and IAM for agents)
  3. AWS Greenlight FAQs (why the system prompt is not enforcement, where policies are enforced)
  4. AWS Greenlight user guide (the five checks, Dogwood, Verified and Inconclusive results)
  5. BRev Digital: an AI agent kill switch (stopping an agent from outside it)
  6. BRev Digital: AI agents that can pay (spending limits that sit outside the model)

A question?

Want your agent’s rules checked?

Tell us what your agent can do and which tools it can call. We will list its rules with you, mark which ones a program enforces and which live only in the prompt, and say plainly what to move first.

Talk to usWhatsApp +971 50 728 5494hello@brevdigital.com