DPIAgent: Divide, Protocol, Isolate for Agentic Reproduction Test Generation
Hao Liu, Steven Liu, Xin Zhang, Jane Luo, Yu Kang, Jie Wu, Fangkai Yang, Yangyu Huang, Pengfei Gao, Scarlett Li, Yan Lu
NeurIPS page · Open on the map
Category: LLM Agents, Evals & Benchmarks › Verifier-Backed Evaluation of Agentic Reasoning · Type: new method · Keywords: reproduction test generation, agentic frameworks, automated software engineering, automated bug detection, test selection
Areas: Code & Coding Agents › Code Verification › Software engineering benchmarks; AI Agents › Agent Benchmarking › Software agent benchmarks; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Coding Agent Benchmarks
Summary
DPIAgent is a structured agentic framework that divides reproduction test generation into defect exploration and test creation phases, uses a handoff protocol to preserve context, and isolates tool usage per phase, achieving high success rates on automated software engineering tasks.
Explained to a 5-year-old
A robot helps find bugs in computer programs. It first looks for why the program is broken. Then it makes a test that shows the bug and later passes. The robot keeps the steps separate so it doesn't get confused. This makes the robot better at fixing problems.
Explained to a 5-year-old, longer
When a computer program has a bug, people need a test that fails because of the bug and then passes. Doing this is hard because you have to both find out why it’s broken and write a test. The paper gives a robot helper that splits the job into two parts. First, the robot looks for the cause of the bug. Then it writes a test that fails because of the bug. The robot writes down what it found so it doesn’t forget. It also uses different tools for each part so it doesn’t get distracted. By keeping the steps separate, the robot avoids getting confused. This makes the robot more likely to succeed at fixing the bug. The robot works well on many different computer languages and systems. It beats other robot helpers in tests. The new method helps developers find bugs faster. It can be used in many software projects. Overall, it makes software testing easier and more reliable.
For a technical reader
The paper addresses the challenge of generating reproduction tests that capture reported bugs by separating defect diagnosis from test creation. It introduces a structured agentic framework that divides the workflow into distinct phases, each with its own objectives and tool sets. A handoff protocol records the diagnosis and test plan, preserving context across phases and preventing goal drift. Evaluation on the SWT-Bench Verified benchmark shows the approach achieves up to 86% success rates, surpassing seven baseline methods across multiple LLMs. The results demonstrate that architectural design and model capability are complementary, highlighting the generalizability of the framework.
Problem
Automated software engineering requires generating tests that first fail due to a bug and then pass, which involves both diagnosing the root cause and writing a fail-to-pass test. Existing monolithic agentic approaches combine these subtasks, leading to ambiguous goals and reduced performance.
Method
The approach divides the task into single-objective phases of defect exploration and test generation, enforces a handoff protocol that records the diagnosis and test plan, and isolates each phase's action space by tailoring the toolset to its specific task.
Results
The approach achieves an 81.76% success rate on GPT-5 and up to 11.88 points improvement over baselines on GPT-5-Mini; with test selection it reaches 86.17% success, outperforming seven baseline methods across three backbone LLMs.
Contributions
The paper proposes a structured agentic framework that splits reproduction test generation into distinct phases, uses a handoff protocol to preserve context, and isolates tool usage per phase, resulting in higher success rates across multiple large language models.
Practical relevance
It enables more reliable automated bug reproduction and test generation, improving software quality and reducing debugging effort.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction