arXiv(opens in a new tab)cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.08662

ParanoiaEval: Benchmarking Unnecessary Defensive Work in Agentic Coding

Hanjun Luo, Xiucheng Zhang, Zhuoning Xu, Zhimu Huang, Yingbin Jin, Xinfeng Li, Hanan Salam

ABSTRACT

As coding agents increasingly undertake real-world work autonomously, judging whether their risk treatments are warranted has become important. Existing work evaluates related agent behaviors from separate perspectives, but lacks a systematic framework for unifying these behaviors. To bridge this gap, we introduce ParanoiaEval 1^{1}, the first benchmark for unified evaluation of risk-treatment capabilities in coding agents. Grounded in the well-established Avoidance–Transfer–Mitigation–Acceptance framework in software engineering risk management, ParanoiaEval operationalizes its 4 fundamental treatments for coding-agent settings and contains 200 evidence-controlled repository-level task pairs, each differing only in treatment-defining evidence. We further introduce dedicated metrics for risk-treatment violations and evidence responsiveness, using a human-calibrated agentic judge for reliable evaluation. Large-scale experiments on 8 representative models and a post-hoc human study reveal that (I) unnecessary risk treatment occurs in 11.2%–58.7% of runs despite explicit evidence, with substantial variation across agent configurations; (II) stronger task capability does not ensure more appropriate risk treatment, while treatment violations substantially harm developers' experience, establishing risk treatment as an independent capability dimension; and (III) agents exhibit systematic patterns consistent with established risk-management findings, suggesting that knowledge from human practice can guide the diagnosis and improvement of this capability.

1 INTRODUCTION

LLM-powered coding agents are evolving from localized code-generation tools into autonomous systems capable of completing multi-step software engineering tasks in real-world repositories (Anthropic, 2025a; Tang et al., 2026). In this mode of operation, an agent decides not only how to complete a task, but also how to explore the repository, validate results, handle uncertainty, and what precautions to take against potential risks (Huang et al., 2025). Appropriate risk treatment is a necessary component of reliable execution (Moeini & Rivard, 2019). When evidence from the task and environment has already established how a risk should be treated, continuing to expand the scope of validation, add extra protective logic, or create additional backups may incur additional costs and introduce unrelated modifications, and even interfere with completion of the original task (Anthropic, 2026b; Karpathy, 2025; OpenAI, 2026b). Existing large-scale user studies also show that a reliable coding agent should not simply be more cautious, but should complete tasks correctly while keeping its defensive behavior commensurate with the actual risk (Stack Overflow, 2025; Liang et al., 2024).

However, mainstream coding-agent evaluations remain centered on functional correctness, typically measuring an agent's capability by whether it completes the task or passes the tests (Jimenez et al., 2024; Deng et al., 2025; Merrill et al., 2026). As agents become more autonomous, recent work has begun to examine the execution process itself and determine, within specific contexts, whether particular risk treatments are necessary, appropriate, or beyond task boundaries (Mehtiyev & Assunção, 2026; Luo et al., 2025). Nevertheless, differences in terminology, taxonomies, task contexts, and

*Equal contribution. †Corresponding authors: Hanjun Luo (h16266@nyu.edu) and Hanan Salam.

Code and data are available at https://github.com/ZhuoningXu/ParanoiaEval_release.

judgment criteria leave the resulting evaluations fragmented across risk treatments, without a common capability dimension for systematic analysis (Jin et al., 2024; Liu et al., 2024; Kapoor et al., 2025). Without a shared theoretical foundation, these results are difficult to compare or use to explain the relationships among different behaviors. This fragmentation contrasts sharply with mature software engineering research centered on human development practice, which has organized superficially different risk treatments into a unified framework, allowing the corresponding decisions to be described, compared, and systematically analyzed under shared concepts while providing a more interpretable basis for subsequent diagnosis and improvement (Bannerman, 2008).

ParanoiaEval is the first unified benchmark of coding agents' risk-treatment capability. It builds on the established Avoidance–Transfer–Mitigation–Acceptance (ATMA) framework for software risk management by the National Institute of Standards and Technology (NIST, 2025a). It operationalizes the four fundamental risk treatments for coding-agent settings and covers 44 concrete situations, allowing behaviors previously described using different terms and judgment criteria to be analyzed from a common perspective. ParanoiaEval contains 200 evidence-controlled repository-level task pairs from 50 repositories. As shown in Figure 1, the two tasks in each pair differ by a single key piece of evidence that establishes the corresponding risk treatment, while all other task conditions remain unchanged. This design enables us to evaluate and compare how well different agents distinguish appropriate risk treatment from unnecessary behavior. Alongside task-completion results, ParanoiaEval introduces two dedicated metrics for risk-treatment violations and evidence responsiveness, and uses an agentic judge calibrated against human gold-standard annotations to adjudicate the relevant risk-treatment behaviors, thereby comprehensively characterizing agents' highly context-dependent risk-treatment capability.

Figure

Figure 1: ParanoiaEval uses evidence-controlled task pairs to show when the same defensive action is appropriate or unnecessary.

Leveraging ParanoiaEval, we benchmark 8 representative models within Claude Code and Codex across 9,600 runs and conduct a post-hoc human study with 20 developers. The results first show that ParanoiaEval consistently separates agent behavior across paired variants. Our findings further reveal that unnecessary risk treatment is ① pervasive, occurring in 11.2%–58.7% of runs even when treatment-defining evidence is explicitly present and varying substantially across configurations; ② decoupled from task capability, as higher task success does not translate into fewer violations; ③ harmful to developers, lowering their satisfaction ratings by 1.27 points on a 5-point scale; and ④ systematically patterned, consistent with established risk-management findings. For example, as the literature notes that mitigation lacks a natural stopping point (Feather et al., 2006), agents over-mitigate when the required magnitude is left unquantified, raising violation rates by up to 68.7 pp. These findings establish risk treatment as an independent capability dimension and suggest that established knowledge from human software engineering practice can guide its diagnosis and improvement in coding agents.

Our core contributions are summarized as follows:

• Unified Perspective. We operationalize the ATMA framework from software risk management for coding agents, establishing a unified view of agent risk-treatment behaviors across 4 fundamental treatments, enabling comparison of previously fragmented behaviors under shared concepts.

• Evidence-Controlled Benchmark. We introduce ParanoiaEval, the first benchmark for unified evaluation of risk-treatment capability in coding agents. It comprises 200 controlled task pairs from 50 repositories, with dedicated metrics and a human-calibrated agentic judge.

• Empirical Insights. We benchmark 8 models on 2 harnesses with a human study, revealing that unnecessary risk treatment is pervasive, decoupled from task capability, harmful to developers, and systematically patterned, pointing future agents to human software engineering knowledge.

References (63)