TLDR: A research paper proposes a framework for analyzing AI agent incidents, which are events causing harm. It categorizes causes into system-related (training, design), contextual (environment, tools), and cognitive (AI’s processing flaws). The framework emphasizes the need for detailed information like activity logs, system documentation, and tool data for thorough investigation, recommending what developers should include in reports and retain to improve AI safety and accountability.
As artificial intelligence agents become more integrated into our daily lives, the occurrence of incidents – events where AI agents cause harm, directly or indirectly – is expected to rise. These incidents can range from prompt injections leading to private information leaks to unauthorized purchases. Understanding why these incidents happen is crucial for preventing them in the future.
Current methods for reporting AI incidents often fall short. They primarily rely on publicly available data, which means valuable, but sensitive, information like an agent’s internal thought processes or browsing history is usually excluded. To address this gap, a new framework for analyzing AI agent incidents has been proposed, drawing inspiration from safety practices in fields like aviation and healthcare.
Understanding the Causes of AI Incidents
The proposed framework identifies three main categories of factors that can contribute to AI agent incidents:
System Factors: These relate to the AI agent’s development and design. Issues here are inherent to the system itself and remain consistent across different uses. Examples include problems with the data used to train the AI, the methods used for learning (like how the AI is taught to respond to human feedback), the initial instructions given to the AI (system prompts), or even the “scaffolding” code that manages the AI’s interactions with users and tools. For instance, an AI might become overly agreeable or “sycophantic” due to subtle changes in its training data or learning methods.
Contextual Factors: These are external conditions or environmental elements specific to where and how the AI agent is being used. They can trigger failures. This includes how clearly the task is defined for the AI, the availability and functionality of tools the AI uses (like web browsers or APIs), and the quality or security of the information the AI accesses. For example, if an AI customer support agent can’t access a user’s order history due to a system limit, it might give generic, unhelpful advice.
Cognitive Errors: These are breakdowns in the AI agent’s ability to perform its intended functions, similar to human cognitive failures. This isn’t to say AI agents think like humans, but rather that their observable failures can be categorized in terms of how they process information. These errors can involve failing to notice important inputs (observation), misinterpreting information (understanding), making poor choices (decision-making), or incorrectly executing actions (action execution). An example could be an AI coding assistant overlooking an existing part of a codebase, leading it to plan a redundant solution.
Information Needed for Analysis
To effectively investigate an AI incident, specific types of information are vital. The framework highlights three key categories:
Activity Logs: These are comprehensive records of all inputs and outputs for the AI agent and its various components. This includes user prompts, external information provided to the AI (like webpage content), the AI’s internal reasoning steps (chains of thought), and its final responses and actions. These logs are crucial for understanding the sequence of events and identifying where things went wrong.
System Documentation and Access: This includes details about the AI model and system version, public documentation (like model cards), and non-sensitive runtime details. For more severe incidents, investigators might need deeper access to proprietary system components or the ability to reconstruct the incident in a controlled environment.
Tool Information: Since AI agents often interact with external tools (browsers, APIs, coding environments), information about these tools is essential. This includes the tool’s identification and version, the actions it enables, the information it provides, usage instructions, access requirements, and any data it collects about the user. Understanding how the AI interacts with its tools can reveal vulnerabilities or points of failure.
Also Read:
- Exploring the Evolution and Impact of AI Agents Across Industries
- Monitoring Multi-Agent Systems for Reliable AI Operations
Recommendations for Better Reporting
The paper provides recommendations for what should be included in incident reports and what information developers and deployers should retain. For instance, while full activity logs might be sensitive, redacted versions or non-sensitive aspects can be included in reports. Developers are encouraged to store complete logs for a default period, extending retention for high-risk scenarios. They should also maintain detailed change logs for new model versions and establish secure access programs for investigators when needed.
A notable example discussed is the EchoLeak incident, a vulnerability in Microsoft 365 Copilot where a malicious email led the AI to reveal confidential data. Public information described the incident but lacked the sensitive details needed to fully understand the root causes. To rigorously diagnose such problems, detailed activity logs, model reasoning traces, and system documentation are indispensable.
While existing AI incident databases are valuable, they are often limited to publicly reported or voluntarily submitted data, lacking the depth needed for precise causal analysis. Emerging regulations, such as the EU AI Act, are beginning to mandate more comprehensive reporting, which can facilitate better external analysis and accountability.
The framework acknowledges its limitations, including not covering all possible domain-specific causes and the nascent understanding of AI agent “cognition.” Institutional challenges like the lack of secure reporting infrastructure and privacy concerns also pose hurdles. Addressing these will require coordinated efforts to develop better infrastructure, clarify legal guidelines, and encourage comprehensive logging and reporting practices.
Ultimately, by systematically collecting and analyzing detailed incident data, we can learn from AI agent failures and work towards preventing future harms as these powerful systems become more prevalent. For more in-depth information, you can refer to the original research paper: Incident Analysis for AI Agents.


