AWS put Greenlight into public preview at re:Invent yesterday, and its job is to turn a company's written rules into policies an agent cannot break. You describe the rule in plain English. Greenlight writes it in Dogwood, the policy language AWS released in August that extends Cedar with first-order temporal logic, converts that into Lean, and runs automated reasoning engines over how the policies interact with each other and with the agent's tools. Approved policies compile to SQL. Every action the agent attempts is checked against them, and the check adds tens of milliseconds to a tool call, says Marc Brooker, a vice president and distinguished engineer at AWS.
The enforcement sits outside the model, in Strands Box, the open-source sandbox AWS shipped in October. It is deny by default, it intercepts every call that touches the outside world, and it blocks what the policy set does not allow. That is the whole story of agent safety this year in one product: the control layer moved out of the prompt.
Here is the thesis, stated plainly. A rule written inside the model's reasoning loop is advice, and a competent agent can reason around advice. A rule that matters has to live where the model cannot edit it, argue with it, or forget it. Earlier notes covered the gates and the specs. "Ginux: The 11-Day Agent-Built Kernel and Its Five Review Gates" covered who signs off. "The Spec Is the Attack Surface: Lessons from Signal in Lean" covered what a specification has to say. Neither answered where the rule physically lives. That is the question this one answers, and Greenlight is the occasion rather than the subject.
THE THREE LAYERS WHERE A RULE CAN LIVE
Here is the framework, which I call the Rule Placement Test. Every rule your agent follows sits in one of three layers, and only one of them survives contact with an agent that is actually trying to finish the task. Placement decides survival: a prompt rule is a rule your agent can argue with.
Layer 1 is the prompt. The rule is a sentence in a system prompt or an instruction file. The model can weigh it, restate it, quietly deprioritize it when a more urgent instruction arrives, or lose it when the context gets compacted. It is advice with a good reputation.
Layer 2 is the sandbox. The rule becomes a decision that runs outside the model. Strands Box is deny by default, so the call is blocked before it happens. The model cannot negotiate with a check it never sees, and it cannot route around a box it is running inside.
Layer 3 is the proof. Lean verification asks whether the policy set contradicts itself, and whether two rules that each look correct combine into a gap. It checks consistency, not intent. This is the layer almost nobody had, and it is why Greenlight is worth your attention.
The decision rule is short. If breaking the rule costs money or data, it cannot live in Layer 1. If the rule depends on what happened earlier in the session, Layer 2 alone is not enough, because the sandbox enforces the rules it was handed, and the proof is what tells you those rules do not contradict each other. That last sentence is my read, not AWS's claim.
WHAT AWS QUIETLY ASSUMES
Greenlight returns a verdict, and one of the possible verdicts is "Verified." AWS's own limitations page explains what that word covers, and three of the assumptions matter to anyone shipping an agent that moves money.
The analyzer assumes each session starts with no history under these policies. It does not consider calls recorded before you deployed them, under an earlier version, or outside the platform. Your per-customer cumulative spend cap therefore verifies cleanly while a session that inherits prior spend can carry a customer past it.
On an AgentCore gateway, the amount in the call being decided is rounded to four decimal places before it is compared. AWS states the consequence itself: a limit written as more than 500.0 allows 500.00004. If your rule is about sub-cent pricing, or per-token costs where the fourth decimal is the difference between profit and loss, the verification is describing a number your ledger never sees. Strands Box reads amounts as 64-bit floats and does not round, so the same policy behaves differently depending on where you enforced it.
A Strands Box saves its call history in batches, about once a second. If the box crashes or is stopped, it loses the latest calls and decides the next ones without them, so a rule that depends on earlier calls, such as a count or a rolling total, can let one through. Your audit rule has a hole precisely where you most want an audit. Some questions come back Inconclusive under a time limit, and every verdict inherits the schema built from your tool descriptions.
None of this is a scandal. It is a limitations page that most buyers will never open, and it is the most useful page AWS published this week.
THE HONEST LIMIT: ENGLISH IS NOT LOGIC
The chain runs from English to Dogwood to Lean to SQL. The proof covers the middle. It does not cover the first step, and no tool will.
André Platzer, a professor at Karlsruhe Institute of Technology who applies formal methods to autonomous systems, told IEEE Spectrum there is "no formal way to go from the informal to the formal." His follow-up is the sentence to keep: "You're never really sure whether the informal natural English language was rendered correctly in logic."
So your compliance officer writes "never issue refunds over $500 without approval." Dogwood hears one specific formal sentence. Did "over" include exactly 500.00? Does approval mean any teammate, or a manager? Is a partial refund a refund? Three questions, one line of English, and Greenlight will happily prove a policy that answers all three differently than the person who wrote it meant.
Platzer draws the older distinction the same way: there is a difference between "Did I build the right thing" and "Did I build the thing right." You need both, and the tool only sells you the second. That makes reviewing the generated Dogwood a human job with a budget attached, and it is the line item almost every rollout skips.
THE TWO GATES PATTERN: OYSTRO AND THE MANDATE
The same architecture is landing everywhere else this week, and the version worth copying is Oystro's. It is a CLI that puts two human gates around AI-written code: the first approves a plan and freezes the tests, with Ed25519 receipts for batch sign-off, and the second reviews a verification summary before release. Guards block commits that touch files outside the approved plan, weaken locked assertions, or claim work from a command that never ran. Replit's own test of a fleet points the same way, where one agent hit 4 times faster on 13 pieces of slow code and a swarm of 32 hit 19 times. The setup page did that, not the model.
The evaluation side is just as shaky. A paper posted on November 30, "Implementation Matters in Monitorability Evaluations" finds that choices nobody reports change which actors appear most monitorable. Trust receipts over dashboards.
WHAT TO DO TODAY
- Audit every rule your agent follows from its system prompt, then sort them into three piles: costs money, touches data, cosmetic.
- Isolate the first two piles out of the prompt and into an interception layer. Strands Box is open source, so start there.
- Map your session assumptions. Does any rule depend on history that a sandbox restart would erase? Greenlight assumes empty sessions, and your rules may not survive that.
- Gate every irreversible boundary with a human decision and a receipt. Ed25519 on the batch sign-off is the pattern to copy.
- Red-team each rule. Name the failure: what breaks if the English and the logic disagree? If you cannot name it, a reviewer has to read the generated policy by hand.
THE UNCOMFORTABLE QUESTION
You have a rules layer inside the prompt right now that you call a policy. If your agent decided to ignore all of it tomorrow, how long before anyone noticed, and what would it cost before they did?
Get More Articles Like This
Getting your AI agent setup right is just the start. I'm documenting every mistake, fix, and lesson learned as I build PhantomByte.
Subscribe to receive updates when we publish new content. No spam, just real lessons from the trenches.
Build Real AI Infrastructure
PhantomByte teaches you to build real AI infrastructure yourself: local AI stacks, autonomous agents, multi-agent orchestration, web scraping, and custom tools. Step-by-step PDF tutorials you download, follow, and deploy. No subscriptions. No fluff. Just skills that ship.