In summary
- AWS has launched AWS Greenlight, an automated reasoning service in preview that enforces rules on AI agents to stop them deviating from defined behaviour.
- Organisations define rules in natural language, which Greenlight turns into deterministic constraints enforced outside the agent's reasoning loop via Strands Box.
- Greenlight learns over time, proposing updated rules for teams to approve and allowing agents to operate more autonomously as the rule set matures.
Amazon Web Services has announced AWS Greenlight, an automated reasoning service designed to enforce rules on AI agents and prevent them from deviating from defined behaviour, even in complex or high-stakes tasks.
The service is currently in preview. AWS said organisations can define the rules their agents must follow in natural language and Greenlight translates those into deterministic constraints that are applied every time an agent acts.
Unlike conventional testing, which only checks scenarios a developer thinks to cover, automated reasoning uses mathematical logic to prove a rule holds across all possible paths an agent could take. AWS said this means organisations do not need to anticipate every edge case - they can instead verify behaviour across large, complex systems with mathematical certainty.
A key design decision in Greenlight is that the enforcement engine sits outside the agent's reasoning loop entirely. AWS said if rules were placed inside the loop, an agent could circumvent or ignore them while optimising for task completion.
Instead, rules are deployed to Strands Box - an open-source agent sandbox - where they intercept and block any agent action that breaks them before it executes.
Greenlight also learns over time. As agents encounter new situations, the service analyses their behaviour and proposes updated rules for teams to review and approve. AWS said this reduces escalations and allows agents to operate more autonomously as the rule set matures.
Rules can be drafted from a company's existing business data, procedures, security standards and runbooks, or inferred from AWS Context graphs and prior agent behaviour, the company said, adding that rules can be generated in hours or minutes.
For developers, Greenlight is available as a capability within Kiro and as a plugin for Claude Code and Codex. A "govern my agent" prompt triggers rule suggestions.
techpartner.news travelled to AWS re:Invent 2026 as a guest of AWS.




