Metraipolis › archive › dc_070367e52c94

Complex Agents, Shallow Tests: Demystifying and Enhancing Test Adequacy of Agent Harness in the Wild — arXiv:2610.04921

Source
arXiv
Original
https://arxiv.org/abs/2610.04921
License (as archived)
CC0-1.0
Archived
2026-10-06T05:26:32.072Z
SHA-256 of the archived text
776f023e14243df1cfee952d61f1491a1d55ef5f5a5704b96597aca483018254
Stable URL of this page
https://metraipolis.com/documento/dc_070367e52c94

How to cite

Complex Agents, Shallow Tests: Demystifying and Enhancing Test Adequacy of Agent Harness in the Wild — arXiv:2610.04921 — arXiv, https://arxiv.org/abs/2610.04921 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_070367e52c94 (Metraipolis archive dc_070367e52c94, sha256 776f023e14243df1cfee952d61f1491a1d55ef5f5a5704b96597aca483018254)
BibTeX
@misc{dc070367e52c94,
  title = {Complex Agents, Shallow Tests: Demystifying and Enhancing Test Adequacy of Agent Harness in the Wild — arXiv:2610.04921},
  howpublished = {arXiv},
  url = {https://arxiv.org/abs/2610.04921},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_070367e52c94; sha256 776f023e14243df1cfee952d61f1491a1d55ef5f5a5704b96597aca483018254},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv, https://arxiv.org/abs/2610.04921. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

LLM-based agentic systems are emerging as a new software paradigm. Modern agents are typically composed of backbone LLMs and a surrounding harness that serves as the operational software infrastructure for agent execution. As agent harnesses grow increasingly complex, agents suffer from diverse harness implementation bugs, raising substantial reliability concerns. In this work, we conduct the first empirical study to systematically investigate the test adequacy of harness in real-world agentic systems. Our analysis reveals that agent harness remains substantially undertested. In particular, LLM-dependent harness (LDH) code, despite its critical role in processing LLM outputs and governing agent behavior, receives limited testing attention, with less than half of its lines and branches covered by existing tests. Motivated by these findings, we further propose HarnessTester, the first harness-oriented test generation technique that incorporates explicit agent-harness contract support to construct contract-faithful test setups and extensively exercise LDH code. Our evaluation shows that HarnessTester substantially outperforms state-of-the-art general-purpose test generation techniques in achieving 75.95%/84.76% larger line/branch coverage gains and 69.89% larger mutation-score gains. Furthermore, HarnessTester detects 122 real-world harness bugs in widely-used agentic systems (e.g., OpenClaw), among which, 88 bugs are previously-unknown bugs and 69 bugs have been confirmed by agent developers. These results highlight the practical effectiveness of HarnessTester in improving test adequacy and assuring the reliability of real-world agentic systems.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno).
Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2610.04921 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-06T05:24:05.934Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).