AWS re:Invent 2026|Don't Put Your Safety Rules Inside the Agent: How AWS Greenlight Enforces Them From Outside

AWS re:Invent 2026|Don't Put Your Safety Rules Inside the Agent: How AWS Greenlight Enforces Them From Outside

One-line takeaway: A rule written into an agent's prompt is a suggestion it can route around, and approving every step by hand doesn't scale; AWS Greenlight instead moves the rules into an external engine the agent cannot see or change, and checks every action against deterministic, mathematically proven bounds.

Series: agentic-ai (7 articles)

  1. …
  2. 7
    AWS re:Invent 2026|Don't Put Your Safety Rules Inside the Agent: How AWS Greenlight Enforces Them From Outside This article
  1. The claim
Here is a position you can argue against. Governing an autonomous agent by writing compliance rules into its prompt or reasoning loop is the wrong layer, because an agent that optimizes for finishing a task can treat a soft instruction as negotiable. The tempting alternative, a human clicking approve on each action, is safe but kills the productivity that made you want an agent in the first place. The workable design sits in a third place: encode the rules outside the agent's harness, make them deterministic, and let an enforcement engine block the offending action before it happens. AWS packaged exactly that as Greenlight, announced at re:Invent 2026 and currently in preview [1].
  1. Why in-agent rules are soft
Think about what an agent actually is. It plans steps, calls tools, and keeps moving toward a goal. If the rule lives inside that same loop, the agent can find its way around it or simply ignore it while it optimizes for completion, as the Greenlight announcement describes the problem [1]. A prompt that says "never issue a refund above fifty dollars" is interpreted language, not a hard boundary; under enough unusual context, a capable model can rationalize a path that the wording did not cleanly forbid. Tests have the same flavor. They catch the cases someone thought to write, not the thousands of paths an agent might take to reach a result [1].
  1. Human approval does not scale
Most organizations today put a person in the loop and check each step. That is defensible for a pilot, and the announcement is blunt about why it fails in production: it does not scale and it erodes the benefit of using agents [1]. The pain is sharpest on high-stakes work, moving money, booking flights, handling customer data, where a single agent can take hundreds of actions in a single job. You either staff a large approval queue and wait, or you let some steps through unreviewed. Neither is a governance model; both are a trade-off you keep losing.
  1. The Greenlight design
The architecture flips the location of trust. You define rules in natural language, and Greenlight uses automated reasoning to turn them into deterministic rules that get followed every time [1]. The decisive engineering choice is where those rules run. They are deployed to an enforcement engine outside the agent's harness, built on the open-source Strands Box sandbox, where the agent cannot see or modify them; every action is checked against the rules, and any action that breaks one is blocked [1]. The agent still has its planner, memory, and tools inside the harness. It simply cannot reach the enforcement logic.
![Agent harness on the left proposing actions; an external enforcement engine on the right checks each action against rules the agent cannot see or alter, then allows or blocks it.]( https://aka.doubaocdn.com/s/WLM2Cy7ghf )
Figure by the author (illustrative). The internal versus external split follows the Greenlight design and its use of Strands Box [1].
This is not a new bet for AWS. It has run automated reasoning in production for more than a decade, the same logic behind IAM Access Analyzer and S3 Block Public Access, which reasons about millions of policy and network combinations to decide whether a bucket is reachable through any path [1]. A separate Amazon Science retrospective puts the group's launch in 2016 and says its production services now process billions of queries daily [4]. Greenlight points that established machinery at agent behavior.
  1. Rules that keep up
Static rules go stale, so the service learns after deployment. As the agent handles new situations, Greenlight studies its behavior and proposes refined rules for a human to compare and approve; the announcement frames the trajectory directly, the more it observes and writes rules, the fewer escalations it needs and the more autonomously the agent can operate [1]. It can draft rules from business data, procedures, security standards, and runbooks, and infer unwritten nuances from AWS Context graphs and past behavior. It is exposed as a capability in Kiro and as a plugin for Claude Code and Codex, triggered by prompting "govern my agent" [1]. Multi-agent support and deeper Context integration are listed as future work rather than shipped features.
  1. Three ways to govern an agent
Approach
Where the rule lives
Strength
Weakness
In-prompt guidance
Inside the agent's reasoning
Easy to write, flexible
Soft; can be rationalized around
Human per-action approval
Outside, but manual
High judgment, real oversight
Does not scale, blocks throughput
External deterministic engine
Outside, automated and proven
Holds every time, auditable
Rules must be correct; compute cost
  1. The honest limits
Greenlight is a preview, and AWS has not announced pricing, regions, or a general-availability date, so treat any production plan as provisional [1]. A proof is only as sound as the rules and the natural-language translation behind them; if a rule is wrong, the engine will enforce the wrong thing with full confidence, and it can hard-block legitimate work. Third-party coverage points to a concrete gap, the generated checks cannot resolve every ambiguity and raw HTTP requests can escape them, according to Unite.AI's reporting [3]. That is a vendor-independent caveat worth designing around, keep an explicit manual override and route any path the engine cannot classify to a person rather than defaulting to allow.
  1. Security boundary
Give each agent its own identity through IAM for agents, built on existing roles and policies, so access is scoped and every action is attributable [1]. Keep audit records focused on which rule fired and why a decision was allowed or blocked, without echoing request payloads, credentials, or customer data; the LoanLogics example shows the value is an auditable record of why each step passed, not a dump of the file contents [1]. Make sure escalation messages reference the rule identifier, never the data that triggered it, and retain decision logs under a defined schedule rather than indefinitely.

Next steps

  1. Take one high-stakes agent and list the rules you currently rely on a prompt to enforce; those are the first candidates to move outside.
  1. Draft the rules in plain language and check for conflicts or gaps before enabling any blocking, the same verification Greenlight performs.
  1. Keep a manual override for paths the engine cannot classify, and never default unclassified raw HTTP actions to allow.
  1. Pair the external engine with a per-agent IAM identity so every blocked or allowed decision is traceable without logging sensitive payloads.
Topics: re:Invent-2026, ai-agents, agent-governance, automated-reasoning, agentcore
Personal opinion disclaimer: this reflects my reading of the Greenlight announcement and supporting material. The service is a preview without announced pricing or a GA date, the strongest claims are vendor-reported, and the raw-HTTP limitation comes from third-party reporting rather than AWS; verify the current documentation and pilot the enforcement path against your own agents before treating the model as settled.

References

  1. Amazon Staff. (2026). AWS Greenlight lets organizations trust AI agents with their most complex work. About Amazon, December 1, 2026 (vendor primary source).  https://www.aboutamazon.com/news/aws/aws-greenlight-automated-reasoning-ai-agents 
  1. Amazon Staff. (2026). 2026 AWS re:Invent News Briefing: AI innovations, AWS news and launches. About Amazon.  https://www.aboutamazon.com/news/aws/aws-re-invent-2026-ai-news-updates 
  1. Unite.AI. (2026). AWS Previews Greenlight to Verify and Enforce AI Agent Policies (third-party reporting).  https://www.unite.ai/aws-previews-greenlight-to-verify-and-enforce-ai-agent-policies/ 
  1. Amazon Science. (2026). A decade of mathematical certainty: reflections on the Automated Reasoning Group.  https://www.amazon.science/blog/a-decade-of-mathematical-certainty-reflections-on-the-automated-reasoning-group 
  1. DEV Community. (2026). AWS re:Invent 2026 CEO Keynote: Ergo, Greenlight, and the DuckDB Bet (third-party analysis).  https://dev.to/pmamidala/aws-reinvent-2026-ceo-keynote-ergo-greenlight-and-the-duckdb-bet-plus-what-readers-actually-2kam 

Series: agentic-ai (7 articles)

  1. …
  2. 7
    AWS re:Invent 2026|Don't Put Your Safety Rules Inside the Agent: How AWS Greenlight Enforces Them From Outside This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article