SEJul 17

Understanding Agent-Reactive Bugs at the Model-Harness Boundary: An Empirical Study of LLM Agent Issue Reports

arXiv:2607.1568411.1110 citationsh-index: 41
Predicted impact top 39% in SE · last 90 daysOriginality Incremental advance
AI Analysis

For developers and users of LLM agent systems, this study identifies and characterizes a previously unstudied class of bugs that arise from the interaction between model outputs and harness code, highlighting the need for better testing and debugging tools.

This paper presents the first empirical study of agent-reactive (AR) bugs in LLM agents, analyzing 255 bug reports from Codex, Gemini-CLI, LangChain, and CrewAI. It constructs a two-axis taxonomy of symptoms and triggering LLM behaviors, finding that many AR bugs are silent errors with no clear test oracle and that LLM stochasticity hinders reproduction, while revealing a mismatch between user-proposed harness guardrails and developer responses.

LLM agents span command-line interfaces (e.g., Codex) and agent frameworks (e.g., LangChain), integrating backend LLMs with harness code that parses model outputs, controls agent loops, and manages context. Both the harness and LLM-generated responses jointly shape an agent's execution. This architecture gives rise to bugs that cannot be readily understood by inspecting either component alone, because some bugs occur only when a particular LLM response elicits an abnormal reaction from the agent. Prior empirical studies of agent bugs have largely attributed failures either to limited model capabilities or to harness-side defects, such as outdated APIs and configuration misalignment, without characterizing these AR bugs. We conduct the first empirical study focused on agent-reactive (AR) bugs. Through manual analysis of 255 bug reports from Codex, Gemini-CLI, LangChain, and CrewAI, we construct a two-axis taxonomy covering observable symptoms and the LLM behaviors that trigger them. Our findings show that many AR bugs manifest as silent errors without well-defined test oracles, which makes detection difficult. The stochasticity of LLM responses further complicates bug reproduction. We additionally examine fixes proposed by users and implemented by developers. This analysis exposes a mismatch: users frequently advocate harness-side guardrails, whereas developers may attribute the issue to the LLM or respond slowly to user-proposed fixes. These findings point to the need for mechanisms that help users and developers understand the root causes and resolutions of AR bugs. Overall, the study highlights challenges specific to LLM agents and motivates the design of test oracles, reproduction support, and fault-localization techniques for AR bugs.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes