Search papers, labs, and topics across Lattice.
This paper introduces DPIAgent, a novel framework for reproduction test generation that separates the process into distinct phases: defect exploration and test generation, addressing the challenges of compound objectives and goal drift in existing agentic methods. By implementing a structured approach that includes a handoff protocol and tailored action spaces, DPIAgent significantly improves the success rate of generating effective reproduction tests. The results show that DPIAgent achieves an 86.17% success rate on GPT-5, outperforming seven baselines and demonstrating the complementary benefits of architectural structure and model capability.
Achieving an 86.17% success rate in reproduction test generation, DPIAgent reveals that structured task separation can dramatically enhance performance in automated software engineering.
Reproduction test generation, producing a failing-then-passing test that captures a reported bug, is a critical step in automated software engineering. Existing agentic methods treat this as a monolithic loop, despite the task inherently comprising two subtasks of distinct nature: diagnosing the root cause and writing a fail-to-pass test. Without explicit separation, the agent faces a compound objective with underspecified intermediate goals, leading to goal drift. We propose DPIAgent, a structured agentic framework built on three principles, Divide, Protocol, Isolate (DPI), that mitigates compound-objective ambiguity and goal drift: it Divides the task into single-objective phases of defect exploration and test generation; enforces a handoff Protocol that records the diagnosis and test plan, preventing context loss; and Isolates each phase's action space by tailoring the toolset to its task, preventing irrelevant tools from misleading execution. On SWT-Bench Verified, DPIAgent outperforms seven baselines across three backbone LLMs. With DPI alone it reaches 81.76% success rate on GPT-5, the highest reported among open-source methods, gaining up to 11.88 points over the strongest baseline on GPT-5-Mini; adding test selection further raises it to 86.17%. Our analysis shows that architectural structure and backbone capability are complementary axes rather than substitutes, demonstrating DPI's generalizability across model classes.