mozgi Prompt catalog →
← All news Research

OpenShell has implemented formal methods for controlling AI agent policies

September 15, 2026
OpenShell has implemented formal methods for controlling AI agent policies

The team of OpenShell has published a report on the use of formal methods for verifying changes in AI agent policies. The developers applied the SMT solver Z3 to ensure that the agents' actions remain within the given security constraints.

The main problem that the project solves is the scalability of permission checking. As the number of agents grows, manual auditing of policies becomes ineffective, leading to access errors. The use of Z3 allows for automatic proof of the correctness of rule updates, eliminating the possibility of an agent exceeding its permitted areas of responsibility.

During the work, the engineers encountered the need to formalize the states of the agents. The system converts policy logic into mathematical constraints that the solver checks for consistency. If the proposed change violates the given invariants, the system blocks the update until corrections are made, reducing the risk of unauthorized access to critical data.

The technology is focused on complex systems where agents have broad powers. The implementation of formal verification allows for the automation of the compliance process, reducing the time spent on security checks from several hours to seconds. Details of the implementation and architectural solutions are available in the project's technical blog.

The application of mathematical proof methods in AI agent management is becoming a new standard for corporate environments. This allows for shifting the responsibility for policy compliance from human control to algorithmic verification, ensuring predictable system behavior in dynamic conditions.

mozgi.io — AI tools and prompts
Copied