AWS releases the Greenlight tool to constrain agent behavior with formal logic
AWS Bets Formal Logic Can Keep AI Agents in Line
AWS released the Greenlight tool, which uses an LLM to automatically convert developers' natural-language rules into formally verified policies that constrain agent behavior at runtime. Agents run in the Strands Box sandbox released by AWS in October, which by default denies actions that affect the outside world; permission is decided by rules written in first-order temporal logic in Dogwood, the policy language launched in August. After policies undergo machine-checkable proofs in Lean, they are compiled to SQL, adding roughly a few tens of milliseconds to each tool call. The tool is a plugin for coding assistants such as Claude Code, Codex, and Kiro; it can read agent documentation and logs to propose policies, and provides a replay feature to test new policies. André Platzer, a professor at the Karlsruhe Institute of Technology, noted that translation from natural language to logic may be erroneous, and that formal methods can only prove that actions do not violate the specification, not that the specification itself is correct; analyst Jason Andersen believes that compared with the mainstream practice of using multiple LLMs to review outputs, this deterministic approach has advantages, and is especially suited to scenarios with high fault-tolerance requirements such as finance and healthcare.