Rules an AI agent cannot talk its way around. Try to trick it below.

Rules that sit outside the agent.

An AI agent follows instructions, but a clever message can talk it out of them. AWS Greenlight keeps the rules outside the agent, where no message can reach them.

01 / 02
Northstar OutfittersA fictional shop with an AI support agent
Refund policy
WHAT IS AWS GREENLIGHT?

A spending limit, but for AI agents.

AI agents can now do real work for a business. They can send refunds, change bookings and move money. But an agent takes its instructions as words, and a clever person can argue with words.

Think of a company credit card. You can talk a new employee into a bad purchase, but the card still says no. AWS Greenlight is that card limit for AI agents. It checks every action an agent tries against your company’s rules. Small, safe actions go through. Anything over your limit stops and waits for a person to approve it. The agent cannot see the rules, change them or talk its way past them.

WHY A BUSINESS WOULD USE IT
  • Let agents do real work safely. Give them real actions, with hard limits that you set.
  • Keep a person in charge of the big calls. Anything over your limit waits for a human to approve it.
  • Use the policies you already have. Write the rules in plain English. No coding is needed.
  • Know what was stopped. Each blocked action goes into a log that you can review.
HOW IT WORKS
  1. 1The company writes its policy.

    Plain English. No code and no special training.

  2. 2Each limit becomes an exact rule.

    Greenlight drafts the rules. A person approves each one.

  3. 3Every action is checked first.

    Safe actions go through. The rest stop and wait for a person.

THE SHOP’S REFUND POLICY, ONE LIMIT AT A TIME
THE COMPANY WROTE

“A support agent can refund up to $200 by itself. A larger refund needs a manager’s approval.”

THE RULE

R1Block any refund above $200, unless a manager has approved it.

See the exact rule
forbid (principal, action == Action::"issue_refund", resource)
when { context.input.amount_cents > 20000 }
unless { context.session.approved_cents >= context.input.amount_cents };
THE COMPANY WROTE

“Refunds on one order that add up to more than $200 also need a manager’s approval.”

THE RULE

R2Block a refund that takes the order above $200 in total, unless a manager has approved it.

See the exact rule
forbid (principal, action == Action::"issue_refund", resource)
when { context.session.refunded_cents + context.input.amount_cents > 20000 }
unless {
  context.session.approved_cents >=
    context.session.refunded_cents + context.input.amount_cents
};
THE COMPANY WROTE

“A refund must be for a real order, and never for more than the customer paid.”

THE RULE

R3Block a refund for an unknown order, for zero or less, or for more than the customer paid.

See the exact rule
forbid (principal, action == Action::"issue_refund", resource)
unless {
  resource has order &&
  context.input.amount_cents > 0 &&
  context.session.refunded_cents + context.input.amount_cents
    <= resource.order.total_cents
};
THE COMPANY WROTE

“Only a manager can give approval. The agent cannot approve its own refund.”

THE RULE

R4Block any approval that does not come from a manager.

See the exact rule
forbid (principal, action == Action::"approve_refund", resource)
unless { principal in Role::"manager" };
Simulated draft/ Sample rules, written by handPolicy to rules

These sample rules were written by hand for this draft. They are not yet output from AWS Greenlight.

One message. Two endings.

You are a customer who paid $500 for a tent. The shop’s agent can refund up to $200 by itself. Anything more needs a manager’s approval. Send one message, and see what the same agent does without Greenlight and with it.

02 / 02
Northstar Outfitters SupportOrder A1042 · Summit 3 hiking tent · $500
You are the customer
STEP 1 · YOUR MESSAGE

Try to get all $500 back.

Pretend, argue, or look for a loophole. Pick an example or write your own.

Try an example
STEP 2 · WHAT HAPPENS NEXT

The same agent gets the same message. Only the rule check is different.

WITHOUT GREENLIGHT

The agent is told the rule. Nothing checks what it does.

Send a message to see this ending.

The refund tool is fake. No money moves.

WITH GREENLIGHTSIMULATED

A rule check sits between the agent and the refund.

Send a message to see this ending.

The refund tool is fake. No money moves.

Agent action check