Agent verification is the activity of gaining assurances that purposeful artificial constructs act in accordance with their specifications. While primitive forms of inorganic agents have been used in manufacturing for centuries, the study of artificial agents did not begin until the mid 20th century. Foundational work on such agents was closely bound with the emergence of artificial intelligence as an academic discipline. Early agents deployed for industrial control systems and in computing were often controlled by quite simple logic, not involving artificial intelligence as such. When deployed as part of a multi-agent system, even simple agents could require special agent-oriented testing methods, as their collective behaviour was challenging to verify with traditional testing techniques. Difficulties in providing assurances that agents will not behave in dangerous ways became more prevalent after the introduction of LLM agents, especially after the rapid acceleration of their deployment in 2025.
The verification of agent behaviour can be conducted by formal or informal methods. Informal verification requires less mathematical skill, but when agents are part of systems where errors have significant risks - such as danger to human life, environmental damage, or major financial loss - formal verification is preferred. Both regulators and system designers favor formal verification because it provides a high degree of mathematical certainty. However, it is not always possible to formally test all aspects of an agent-based system's behaviour, especially where newer LLM-based agents are concerned, due in part to their high degree of autonomy. Accordingly, agent verification for low-impact deployments might be carried out only with informal methods, while for high-impact deployments, it may be performed with a mix of formal and informal techniques.
Terminology
In academia, the term agent verification is often defined to mean activity concerned with gaining assurance that the agent behaves in accordance with its specification - whether by processes such as testing or simulation. 'Verification' is typically contrasted with 'validation', the latter meaning activity concerned with checking that the specification itself meets user or real-world needs. Such definitions are not universally adhered to, however - for example, in some workplaces and documents, the words 'verification' and 'validation' can be used synonymously. Efforts to gain confidence in agents have intensified sharply since 2025 due to the rapid rollout of LLM agents; different terms are sometimes used in the commercial sector. Here the term 'agent verification' can be used in the same sense as it is in academia, but sometimes the same activity can be covered by more ambiguous and wider-ranging terms such as 'agent governance', 'agent observability', or 'AI agent policing'.
History
Classical agents
The theoretical underpinnings for artificial (inorganic) agents emerged in the mid 20th century with the establishment of cybernetics and artificial intelligence. Oliver Selfridge's 1958 'Pandemonium - A Paradigm for Learning' paper was an important early theoretical contribution in establishing agent-oriented architecture. Practical implementations of agents for real-world applications began to become widespread in the 1990s, after the introduction of the belief-desire-intention software model (BDI) and agent-oriented programming. Pure digital agents were deployed in computer infrastructure for purposes such as monitoring, while agents connected to real-world sensors and actuators were increasingly used in industrial control systems.
While the concept of artificial agents was interwoven with early AI studies right from the start, early agents lacked general-purpose reasoning capabilities, often only having simple if-then logic. Even a device as simple as a thermostat, which has a sensor and a means of acting, can be considered a proto-agent in this sense. Verifying the behaviours of a simple single-agent system is not generally especially difficult, but it can be a different matter when several simple agents coexist in the same system. Craig Reynolds's work on boids showed that relatively complex, 'intelligent' behaviour can emerge from a number of such simple agents working together in a multi-agent system. By the 1990s, even the behaviour of a single-agent system could sometimes be quite complex; in accordance with the BDI model, agents could have beliefs that might evolve over time. Agents were increasingly introduced that were controlled by quite large decision tree models, which had new vulnerabilities to adversarial attack. It was becoming increasingly apparent that traditional software verification methods had limitations for testing such agents, or even for the more primitive type of agents when they were deployed as part of a MAS.
It was the use of agents for industrial control systems, sometimes associated with robotics, that lent urgency to the practice of agent verification. Informal testing might be acceptable for digital agents used, say, to monitor whether each of an organisation's computers are properly licensed. But with an increasing potential for faulty agents to result in a failure that might cause a large fire to break out at a chemical manufacturing plant, a botched medical operation, or even a crashed aircraft, the need to develop reliable means of verifying behaviour of such agents was considered urgent. The Foundation for Intelligent Physical Agents was established in 1996. From the late 90s, a growing number of industry and university-based scientists began working on the problem, with researchers publishing papers on the verification of both single and multi-agent systems. Much of this work showed how formal verification techniques like model checking could be used to gain a high level of assurance that agent-based systems would conform with their specification. A 2018 systematic review covering 231 studies found that model checking was the most common technique for agent verification, with theorem proving the second most commonly used formal verification method. In the first two decades of the 21st century, agents run by AI became more common, with Siri and Alexa being well-known examples. But such agents still lacked general reasoning capabilities and did not pose new pressing problems for agent verification.
General-purpose reasoning agents
The advent of large language models created huge potential for further use of artificial agents, as agents based on them could have general-purpose cognitive abilities. Agents run by LLMs (and occasionally non-LLM foundation models) have similar vulnerability to adversarial attack as those run by decision tree models. The wider scope of actions for LLM agents has created new challenges for their verification, over and above those present for classical agents. For instance, an LLM agent can be given a high-level goal and then autonomously decide on a sequence of actions, which might include interacting with external systems or even other agents. This autonomy makes it difficult to predict all possible behaviours in advance, and traditional verification methods may not scale to the vast space of possible actions.
Verification methods
Formal verification methods, such as model checking and theorem proving, provide mathematical guarantees that an agent satisfies its specification. Model checking involves exhaustively exploring the state space of the agent's behaviour to check for violations of desired properties. Theorem proving uses logical reasoning to prove that the agent's design implies the specification. These methods are powerful but can be computationally expensive and may not be feasible for very complex or learning-based agents.
Informal verification methods include testing, simulation, and runtime monitoring. Testing involves executing the agent on a set of inputs and checking the outputs against expected results. Simulation runs the agent in a controlled environment to observe its behaviour. Runtime monitoring observes the agent's actions during actual deployment and raises alerts if it deviates from expected patterns. These methods are more scalable but provide less assurance.
For LLM-based agents, new verification techniques are being developed, such as adversarial testing (deliberately crafting inputs to try to make the agent misbehave), red-teaming (having human or AI teams try to break the agent), and formal specification of the agent's goals and constraints. However, these are still evolving, and the field is actively researching how to provide robust assurances.
Challenges and future directions
The rapid deployment of LLM agents in 2025 has intensified the need for effective agent verification. Key challenges include the high autonomy of these agents, their ability to learn and adapt, and the difficulty of specifying their intended behaviour in a formal language. Additionally, agents that interact with other agents in a multi-agent system can exhibit emergent behaviours that are hard to predict.
Future directions include developing more scalable formal methods, integrating verification into the agent development lifecycle, and creating standards and regulations for agent verification. As agents become more capable and widespread, ensuring their safe and correct behaviour will remain a critical area of research and practice.