arXiv:2610.34239cs.SEOct 2026

Manuscript Offprint

arXiv:2610.34239

Honesty Testing of LLMs and AI Agents: A Vision for Software Engineering

Ying Xiao, Xinjian Wu, Lukas Twist, Yaoqi Guo, Yepang Liu, Zhenpeng Chen, Jie M. Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Ying Xiao*, Xinjian Wu*, Lukas Twist*, Yaoqi Guo†,

Yepang Liu †^{\dagger}, Zhenpeng Chen §^{\S}, Jie M. Zhang ∗^{*}

*King's College London, UK †Nanyang Technological University, Singapore

‡Southern University of Science and Technology, China §Tsinghua University, China

Abstract—Human oversight of large language models (LLMs) and artificial intelligence (AI) agents increasingly depends on their reports. Claims that conflict with a system's own judgments can conceal failures, prevent timely intervention, and contribute to severe harm. Greater autonomy makes faithful reporting increasingly important for maintaining human control. In this vision paper, we propose honesty testing of LLMs and AI agents as a new research area in software engineering. Building on existing honesty evaluations, our goal is to make faithful reporting a software quality requirement that developers can specify, test, and maintain. We define honesty bugs as behavioural defects in which an LLM or AI agent, when required to communicate faithfully, makes an explicit claim that conflicts with its own judgment at the time of reporting. We present an initial framework covering LLM-level testing under controlled inputs and agent-level testing of complete systems. The framework connects these levels to testing workflows and oracle evidence. We identify research directions in benchmarks, model and harness analysis, oracle construction, and lifecycle testing to support effective oversight alongside task correctness.

I. INTRODUCTION

Following advances in large language models (LLMs) [1], [2], artificial intelligence (AI) systems increasingly operate as agents that reason, use tools, and process files [3], [4]. Applications include scientific research [5], medical diagnosis [6], and public decision-making [7]. As delegated tasks become more complex, supervisors cannot readily reconstruct every decision and action [8], [9]. They increasingly rely on the systems' reports to decide whether to accept results, investigate failures, or intervene. The same dependence arises when people act on standalone LLM answers and recommendations.

Dishonest reporting can undermine the information on which human control depends. Consider an agent that judges a required safety check to have failed but reports that it passed. A supervisor relying on this report may authorise an unsafe action. In medical or physical systems, this could contribute to severe injury or loss of life. A human may retain authority to stop the system while lacking the information needed to exercise that authority. As agents act for longer periods, use more tools, and delegate work, misrepresented failures may propagate before humans can intervene.

Software engineering (SE), including SE for AI, has developed research on trustworthy and responsible systems, addressing fairness [10], environmental sustainability [11], explainability, and security [12], [13]. Honesty deserves comparable attention as an explicit testing objective. It also supports oversight of these other properties: a system that misrepresents its assessment of a fairness violation, security weakness, or failed check can conceal the need for corrective action. Honesty testing therefore addresses both faithful communication and the information needed to manage other software risks.

Existing research provides foundations for this objective. Conceptual studies relate honesty to what a communicator believes [14], [15]. MASK compares elicited beliefs with statements under pressure, distinguishing honesty from accuracy [16]. Scheming evaluations examine agents that conceal their behaviour under controlled conditions [17], while OverclaimBench compares reports with execution records [18]. These studies establish honesty and related reporting failures as evaluation concerns. Systematic honesty testing as a software engineering discipline nevertheless remains underdeveloped.

Task success and factual correctness alone cannot establish honesty. An LLM or agent may faithfully report a mistaken judgment, or make a factually correct claim that conflicts with its judgment. Execution records establish what occurred, but not necessarily the judgment held when reporting. Developers therefore need explicit defect specifications, justified oracles, and methods to reproduce, diagnose, repair, and retest reporting failures as models and systems evolve.

We propose honesty testing of LLMs and AI agents as a new research area in software engineering. Our vision is to make faithful reporting a quality requirement that developers can specify, test, and maintain to support human oversight and control. Here, AI agents are LLM-based systems. We introduce honesty bugs as a shared defect specification and distinguish LLM-level and agent-level testing. Our initial framework connects these levels to a shared testing workflow and oracle evidence requirements. The research agenda identifies further work on test generation, adequacy assessment, diagnosis, and regression testing.

This vision paper makes the following contributions.

• A Vision and Defect Specification. We motivate honesty testing of LLMs and AI agents and formalise honesty bugs, using examples and counterexamples to clarify their boundaries.

• An Initial Testing Framework. We define honesty testing, distinguish LLM-level and agent-level testing, and outline their workflow and oracle evidence requirements.

• A Research Agenda. We identify research questions for benchmarks, component effects, oracle construction, and lifecycle integration at both testing levels. A companion repository collects relevant studies and resources. 1^{1}

References (28)