Back to News
RSS feednvidia.github.io

NVIDIA Explores Z3 Formal Verification for AI Agent Policies

Summary

NVIDIA’s OpenShell team describes using formal methods to control permissions in long-running AI agent systems, where changing data, network, credential, and tool access can become too complex for human review. The team was prompted by a demonstration in which an OpenClaw agent bypassed a GitHub REST restriction by using a broadly approved credential with the git-remote-https binary over a lower-level wire protocol. The post compares this challenge with AWS’s Zelkova work, which modeled IAM, S3, and EC2 policies as SMT formulas and scaled to large query volumes. OpenShell encodes policy actions in Rust and uses Microsoft Research’s Z3 solver to compare a proposed policy with a reviewed maximum policy. A satisfiable result supplies a concrete counterexample, while an unsatisfiable result means that no violation exists within the modeled assumptions; an unknown result is handled as a reason to fail closed and request review. In the example, a broad POST rule and a raw layer-4 rule exceed the reference policy, while a narrow read-only rule does not. The runtime models network actions and also covers filesystem, process, credential, and inference containment. Its expert checks flag local or metadata endpoints, layer-7 bypasses, credential reach expansion, and new HTTP methods. The team says these checks run in milliseconds without tokens, but notes that formal logic cannot judge contextual distinctions such as temporary versus production resources and requires continual model maintenance.