potentialpaper

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 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. DPIAgent improves bug-reproduction test generation by separating code exploration and test writing with a structured handoff and phase-specific tools.

Abstract. 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.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
3 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:47 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Summary

The submission studies reproduction test generation, where an agent must produce a test that fails on buggy code and passes after the corresponding fix. The paper proposes DPIAgent, which decomposes the task into defect exploration and test generation, enforces a structured handoff protocol between the phases, and isolates phase-specific tools to reduce goal drift. On SWT-Bench Verified, the paper reports consistent gains over SWE-Agent across GPT-5-Mini, GPT-5, and Claude-Opus-4.5, with further improvement from an e-Otter++-style test selection step. The review record is borderline, with agreement that the system is practically useful and empirically solid, but substantial unresolved concerns about novelty, attribution of gains, causal interpretation, and generality.

Strengths

The paper targets a concrete problem in agentic software engineering. Reproduction test generation is a real and well-defined SWE task, and the evaluation uses an externally defined benchmark and harness rather than an ad hoc setting (Reviewer 16ji).

The proposed workflow is coherent and maps cleanly onto the structure of the task. Dividing exploration from test writing, requiring an explicit handoff protocol, and restricting tools by phase are simple design choices that make the system understandable and likely reusable in related software-engineering agent settings (Reviewer ptTX, Reviewer edYV).

The empirical evaluation provides useful evidence that the scaffold improves performance over a relevant SWE-Agent baseline. Reviewers noted consistent gains across multiple backbones, ablations connected to the main design claims, and behavioral analysis showing more explore-first trajectories under DPIAgent. The paired SWE-Agent comparison is especially valuable because it helps attribute some gains to the structural intervention rather than to an entirely different agent system (Reviewer 16ji, Reviewer edYV).

Weaknesses

The technical novelty remains limited relative to the strength of the claimed contribution. The main ingredients, including task decomposition, structured handoff summaries, phase-specific tool access, and candidate selection, are recognizable agent-design and software-engineering patterns. This makes the contribution read more as an effective system recipe than as a clear algorithmic or conceptual advance (Reviewer 16ji, Reviewer ptTX, Reviewer edYV).

The attribution of gains is not yet clean enough. DPIAgent changes the workflow structure, the tool interface, and the exploration infrastructure, including graph-based repository exploration tools. Reviewers raised concerns that the reported improvements may partly reflect stronger navigation or retrieval tools rather than the Divide, Protocol, and Isolate principles themselves. More controlled comparisons are needed to separate the value of the phase structure from the value of the tool changes (Reviewer ptTX, Reviewer edYV).

The mechanism claims are stronger than the evidence currently supports. The paper argues that unconstrained agents suffer from objective drift and that explore-first behavior improves reproduction quality, but the trace categories do not by themselves establish causality. One review also noted that underuse trajectories can have higher success than explore-first trajectories within some conditions, suggesting possible task-difficulty confounding rather than a direct causal effect of exploration order (Reviewer 16ji, Reviewer ptTX).

The empirical scope limits generality. The evaluation is centered on SWT-Bench Verified, and the paper’s broader claim that DPI is a general design principle for compound-objective agent tasks is not strongly tested across other languages, project types, benchmarks, or non-test-generation settings. In addition, the main comparison table mixes leaderboard results from different backbones, so claims about state-of-the-art performance need to be qualified unless same-backbone comparisons are provided (Reviewer 16ji, Reviewer edYV).

Final Remarks Overall, this is a borderline paper, and the rebuttal should be decisive. The main question is whether the gains come from the DPI structure itself or from confounded changes such as graph-based exploration tools, structured prompting, or the test-selection stage.

The most useful rebuttal would provide controlled evidence separating these effects, clarify the mixed-backbone comparisons, and explain whether explore-first behavior causally improves success rather than merely correlating with easier instances. A convincing response on these points could justify bumping the paper to acceptance.

Final justification

The authors addressed the attribution concern by providing controlled ablations showing that DPI with only standard SWE-Agent tools retains most of the gain, and that applying DPI to TraeAgent without tool changes yields consistent improvements. They also provided a first-edit diagnostic quality analysis with per-instance paired comparisons, substantiating that DPI works by completing bug diagnosis before test writing and explaining why gains shrink on stronger models. Regarding novelty, the rebuttal repositions DPI as an executable phase-boundary control mechanism, supported by component ablations of Divide, Protocol, and Isolate. While the rebuttal clarified attribution and mechanism, the generality evidence beyond SWT-Bench Verified remains case-study level.

Two reviewers (16ji, edYV) are positive after the rebuttal: 16ji raised their score to 4 stating that all previous questions were fully resolved, and edYV maintained their positive rating. Reviewer ptTX did not follow up; their two explicit questions, on drift evidence and tool attribution, are directly answered by the new analyses. Given a final distribution of 4/4/3, I recommend weak acceptance.

Area Chair YzHj · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Summary

The submission studies reproduction test generation, where an agent must produce a test that fails on buggy code and passes after the corresponding fix. The paper proposes DPIAgent, which decomposes the task into defect exploration and test generation, enforces a structured handoff protocol between the phases, and isolates phase-specific tools to reduce goal drift. On SWT-Bench Verified, the paper reports consistent gains over SWE-Agent across GPT-5-Mini, GPT-5, and Claude-Opus-4.5, with further improvement from an e-Otter++-style test selection step. The review record is borderline, with agreement that the system is practically useful and empirically solid, but substantial unresolved concerns about novelty, attribution of gains, causal interpretation, and generality.

Strengths

The paper targets a concrete problem in agentic software engineering. Reproduction test generation is a real and well-defined SWE task, and the evaluation uses an externally defined benchmark and harness rather than an ad hoc setting (Reviewer 16ji).

The proposed workflow is coherent and maps cleanly onto the structure of the task. Dividing exploration from test writing, requiring an explicit handoff protocol, and restricting tools by phase are simple design choices that make the system understandable and likely reusable in related software-engineering agent settings (Reviewer ptTX, Reviewer edYV).

The empirical evaluation provides useful evidence that the scaffold improves performance over a relevant SWE-Agent baseline. Reviewers noted consistent gains across multiple backbones, ablations connected to the main design claims, and behavioral analysis showing more explore-first trajectories under DPIAgent. The paired SWE-Agent comparison is especially valuable because it helps attribute some gains to the structural intervention rather than to an entirely different agent system (Reviewer 16ji, Reviewer edYV).

Weaknesses

The technical novelty remains limited relative to the strength of the claimed contribution. The main ingredients, including task decomposition, structured handoff summaries, phase-specific tool access, and candidate selection, are recognizable agent-design and software-engineering patterns. This makes the contribution read more as an effective system recipe than as a clear algorithmic or conceptual advance (Reviewer 16ji, Reviewer ptTX, Reviewer edYV).

The attribution of gains is not yet clean enough. DPIAgent changes the workflow structure, the tool interface, and the exploration infrastructure, including graph-based repository exploration tools. Reviewers raised concerns that the reported improvements may partly reflect stronger navigation or retrieval tools rather than the Divide, Protocol, and Isolate principles themselves. More controlled comparisons are needed to separate the value of the phase structure from the value of the tool changes (Reviewer ptTX, Reviewer edYV).

The mechanism claims are stronger than the evidence currently supports. The paper argues that unconstrained agents suffer from objective drift and that explore-first behavior improves reproduction quality, but the trace categories do not by themselves establish causality. One review also noted that underuse trajectories can have higher success than explore-first trajectories within some conditions, suggesting possible task-difficulty confounding rather than a direct causal effect of exploration order (Reviewer 16ji, Reviewer ptTX).

The empirical scope limits generality. The evaluation is centered on SWT-Bench Verified, and the paper’s broader claim that DPI is a general design principle for compound-objective agent tasks is not strongly tested across other languages, project types, benchmarks, or non-test-generation settings. In addition, the main comparison table mixes leaderboard results from different backbones, so claims about state-of-the-art performance need to be qualified unless same-backbone comparisons are provided (Reviewer 16ji, Reviewer edYV).

Final Remarks Overall, this is a borderline paper, and the rebuttal should be decisive. The main question is whether the gains come from the DPI structure itself or from confounded changes such as graph-based exploration tools, structured prompting, or the test-selection stage.

The most useful rebuttal would provide controlled evidence separating these effects, clarify the mixed-backbone comparisons, and explain whether explore-first behavior causally improves success rather than merely correlating with easier instances. A convincing response on these points could justify bumping the paper to acceptance.

Final justification

The authors addressed the attribution concern by providing controlled ablations showing that DPI with only standard SWE-Agent tools retains most of the gain, and that applying DPI to TraeAgent without tool changes yields consistent improvements. They also provided a first-edit diagnostic quality analysis with per-instance paired comparisons, substantiating that DPI works by completing bug diagnosis before test writing and explaining why gains shrink on stronger models. Regarding novelty, the rebuttal repositions DPI as an executable phase-boundary control mechanism, supported by component ablations of Divide, Protocol, and Isolate. While the rebuttal clarified attribution and mechanism, the generality evidence beyond SWT-Bench Verified remains case-study level.

Two reviewers (16ji, edYV) are positive after the rebuttal: 16ji raised their score to 4 stating that all previous questions were fully resolved, and edYV maintained their positive rating. Reviewer ptTX did not follow up; their two explicit questions, on drift evidence and tool attribution, are directly answered by the new analyses. Given a final distribution of 4/4/3, I recommend weak acceptance.

3 comments
Authors · CommentOpenReview ↗

Response to Area Chair (Part III)

5. Cross-language and Cross-task Generalization

Generality beyond SWT-Bench Verified.

Due to time constraints, we currently provide case-study-level evidence for DPI's generality.

  • Cross-language generalization (Reproduction test generation). We apply DPIAgent to tasks from SWE-Bench-Pro across three languages, with no framework modification.
Language Repository Task Phase 1 Handoff Final Artifact Verification
Go Teleport Test generation Completed Go regression test F2P
JavaScript NodeBB Test generation Completed Mocha test F2P
TypeScript Tutanota Test generation Completed ospec test F2P

We present one detailed Go case below.

Go test generation case (gravitational/teleport, 43 steps). Bug: Kubernetes service does not initialize the streaming upload directory, causing TTY exec to fail.

Phase 1 (22 steps): The agent traced the call chain from lib/service/kubernetes.go through forwarder.go (newStreamer) into filesessions/fileuploader.go (CheckAndSetDefaults), and cross-referenced the SSH/app service initialization paths to confirm that the Kubernetes service lacks the initUploaderService call. It then reviewed test patterns in forwarder_test.go and service_test.go to plan the test structure.

Phase 1 handoff:

Bug location: forwarder.go newStreamer ...
Root cause: session uploader not initialized, streaming dir missing ...
Expected vs actual: dir should exist at startup; actually absent ...
Reproduction: call initKubernetesService, then newStreamer fails
Test plan: assert streaming dir absent (buggy) / present (fixed)

Phase 2 (11 steps): The agent first attempted an integration-level test in lib/service/ but encountered environment constraints. It then pivoted to a targeted unit test in newstreamer_test.go, asserting that newStreamer errors when the streaming directory is absent and succeeds when it exists.

  • Cross-task generalization (bug fixing). DPI adapts to bug fixing with minimal changes: switching the Phase 2 objective from ready_to_write_test to ready_to_bug_fix, swapping test-writing tools to code-editing tools, and adjusting a few Protocol fields. Phase 1 and the handoff mechanism remain identical.
Language Repository Phase 1 Handoff Final Artifact Verification
Go Teleport Completed Code patch Build/tests pass; matches fix semantics
JavaScript NodeBB Completed Code patch Build/tests pass; matches fix semantics
TypeScript Tutanota Completed Code patch Build/tests pass; matches fix semantics

Go bug fixing case (gravitational/teleport, 24 steps). The agent reused the same Phase 1 exploration pattern to trace the call chain, confirming that SSH and app services call initUploaderService but Kubernetes does not.

Phase 1 handoff (13 steps):

Bug location: lib/service/kubernetes.go, initKubernetesService ...
Root cause: Kubernetes service missing session uploader init ...
Expected vs actual: uploader should be initialized at startup; actually missing ...
Reproduction: deploy teleport-kube-agent, run kubectl exec ...
Reference code: initUploaderService in service.go creates directories ...
Fix plan: call process.initUploaderService after creating accessPoint ...

Phase 2 (11 steps): The agent inserted the initUploaderService call in kubernetes.go with appropriate guards to avoid duplicate initialization. The final patch is an 8-line insertion matching the semantics of the golden fix.

Authors · CommentOpenReview ↗

Response to Area Chair (Part II)

3. Technical Novelty

Technical novelty limited.

Our motivation is to decompose compound-objective tasks into finer-grained stages with explicit boundaries, so that the agent focuses exclusively on the current stage's objective and produces higher-quality outputs at each stage. As our diagnostic quality analysis shows, this decomposition directly improves pre-feedback test design quality, which is the primary bottleneck for weaker models. For test generation, DPI ensures the agent completes bug diagnosis before writing tests, resulting in higher first-edit Ready rates and consequently more F2P successes.

We acknowledge that task decomposition, structured handoff, and tool subsetting have precedents individually. The novelty of DPI is not "task decomposition" itself, but making decomposition an executable phase-boundary control mechanism. Concretely, this mechanism provides three benefits that prior approaches lack:

  • Unlike prompt-only decomposition, DPI enforces phase transitions through a structured handoff protocol, ensuring Phase 1 produces an explicit diagnostic state before Phase 2 begins.
  • Unlike multi-agent architectures (AEGIS) that lose context at agent boundaries, DPI preserves full conversation history within a single agent.
  • Unlike fixed pipelines (Issue2Test, Otter) that lack agent loops inside stages, DPI retains full agent autonomy within each phase while hard-switching the tool set upon transition.

Our ablation results further confirm that this design is not merely a recipe — each component (Divide, Protocol, Isolate) contributes distinctly and complementarily:

Configuration S ΔC Cov.
Full DPI 74.28 65.51 75.97
Tool Ablation DPI w/o Search Tool (RPG) 72.97 62.26 71.18
DPI Ablation DPI w/o Divide (single phase) 67.66 54.59 64.28
DPI w/o Protocol (without summary) 70.90 63.71 72.88
DPI w/o Isolate (all tools available) 72.70 59.40 67.80
  • Removing the Search Tool (RPG) causes a moderate drop, confirming that the exploration tool contributes but is secondary to the DPI framework components. Divide has the largest impact (-6.62 S, -10.92 ΔC), measuring the full phase-structure bundle. Isolate primarily affects test quality (-6.11 ΔC, -8.17 Cov.), consistent with tool gating reducing cross-phase interference. Protocol mainly affects successful reproduction (-3.38 S), providing an explicit state-transfer artifact across phases.

4. Empirical Scope and Generality

Empirical scope and controlled comparison.

We address this concern from four perspectives.

(1) Same-backbone comparison. Since e-Otter++ is not open-sourced and the original backbone APIs are no longer available, we select Echo, which has publicly available code, and run it on the same backbone for a head-to-head comparison.

Model Method S ΔC Cov.
GPT-5-Mini Echo 51.70 46.20 52.60
DPIAgent 74.28 65.51 75.97

(2) Cross-platform generalization. DPI improves performance on both SWE-Agent and TraeAgent without any tool modification (see Section 1 above).

(3) Test-as-Oracle downstream utility. We evaluate whether DPI-generated tests transfer as behavioral oracles for classifying candidate bug-fix patches. We sample 6 patches from the SWE-Bench Verified leaderboard, run each method's test suite on all tasks, and compute accuracy against golden-test verdicts.

Method Acc.
Aider 61.7
Terminus 67.3
TraeAgent 75.4
OpenHands 76.0
SWE-Agent 76.3
DPIAgent 79.6

(4) Selection vs Structure. Our main results (Table 1, Page 6) do not rely on test selection — DPIAgent's reported gains come entirely from the DPI framework. To further verify that DPI's structural gain persists when both methods have access to selection, we add selection on top of SWE-Agent for a controlled comparison. Due to time constraints, we have completed evaluation on the first 200 instances. DPIAgent without selection already outperforms SWE-Agent + Selection, confirming that DPI's gain is not reducible to test selection. Adding selection on top of DPIAgent further improves to 80.40.

Configuration S TDD
SWE-Agent 58.29 53.11
SWE-Agent + Selection 73.20 60.90
DPIAgent 76.50 65.07
DPIAgent + Selection 80.40 67.95
Authors · CommentOpenReview ↗

Response to Area Chair (Part I)

We sincerely thank the Area Chair for the detailed meta review. Below we address the key concerns.

1. Attribution of Gains: DPI Structure vs Tool Changes

Attribution of gains.

We provide three lines of controlled evidence demonstrating that the gains come from the DPI framework itself, not from tool differences.

(1) Tool-only ablation.

  • Adding Search Code(RPG) to monolithic SWE-Agent improves S (+7.54) but TDD drops by 3.89, showing that better exploration tools alone do not yield higher-quality tests.
  • Injecting the six-field structured summary or the ready_to_write_test transition tool into SWE-Agent without DPI's phase structure also fails to improve performance.
Configuration S TDD
Baseline SWE-Agent 60.12 54.29
Tool Contribution + Search Code (RPG) 67.66 50.40
+ structured summary(one-shot-prompt) 54.96 42.44
+ ready_to_write_test(tool call) 61.20 48.68
DPI Contribution SWE-Agent + DPI 72.97 56.41

(2) Framework-only ablation.

  • SWE-Agent + DPI using only standard tools achieves +12.85 S and +2.12 TDD over the baseline, confirming that the DPI framework alone drives the majority of the improvement.

(3) Cross-platform validation.

  • Applying DPI on top of TraeAgent without adding specialized graph-based exploration tools yields +6.61 S and +10.69 TDD. This rules out that gains are specific to SWE-Agent's tool interface.
Configuration S TDD
TraeAgent 60.74 47.23
TraeAgent + DPI 67.35 57.92

2. Causal Evidence for Phase Structure

Causality and task-difficulty confounding.

DPI's goal is to decompose compound-objective tasks into focused subtasks with explicit phase boundaries; explore-first is simply the expected manifestation of phase compliance. We agree that the trace categories in Table 3 are behavioral descriptions, not causal explanations, so we design a diagnostic quality metric for per-instance paired analysis.

  • Target Alignment (Tgt, 0/1/2): whether the test targets the correct code location, via 4 sub-checks (relevance, coverage, invocation validity, precision);
  • Specification Completeness (Spec, 0/1/2): whether the test design is complete, via 5 sub-checks (trigger condition, critical input, call path, oracle, discriminativeness).

A test edit is Ready when Tgt=2 and Spec=2. We instantiate the judge with GPT-5.6-Terra, run it three times independently and apply outcome-aware correction (override to Ready if F2P is achieved without post-first-edit modification). All numbers below are absolute case counts.

Config Target # Spec # Ready # F2P in Ready # Total F2P #
Naive 5-Mini 319.7±0.6 269.7±1.2 269.7±1.2 243.7±1.5 273.7±1.5
DPI 5-Mini 370.0±1.7 332.7±4.2 332.7±4.2 311.0±2.0 331.0±2.0
Δ 5-Mini 50.7±1.2 63.0±3.5 63.0±3.5 67.3±1.5 57.7±1.2
Naive GPT-5 369.3±1.5 310.0±4.0 310.0±4.0 284.7±3.5 316.7±2.5
DPI GPT-5 405.0±1.7 377.7±1.5 377.7±1.5 352.7±0.6 355.7±0.6
Δ GPT-5 35.3±1.2 67.7±4.7 67.7±4.7 68.0±3.6 38.7±2.9
Naive Opus 365.0±0.0 294.7±0.6 294.7±0.6 269.7±1.5 332.7±0.6
DPI Opus 392.3±0.6 365.0±2.6 365.0±2.6 338.3±1.2 344.3±1.2
Δ Opus 27.3±0.6 70.3±2.1 70.3±2.1 68.7±0.6 11.7±1.5
  • DPI primarily improves pre-feedback test design quality, and this improvement is most critical for weaker models. DPI lifts Ready count consistently across all three backbones. Since Ready cases convert to F2P at over 90% across all configurations, increasing Ready directly expands the solved set.

To understand why the Total F2P gain shrinks for stronger models, we break down the Not-Ready cases:

Config Not Ready # F2P in Not Ready #
Naive 5-Mini 163.3±1.2 30.0±0.0
DPI 5-Mini 100.3±4.2 20.3±0.6
Naive GPT-5 123.0±4.0 32.0±1.0
DPI GPT-5 55.3±1.5 3.0±0.0
Naive Opus 138.3±0.6 63.0±1.7
DPI Opus 68.0±2.6 5.7±0.6
  • Weaker models rarely recover from a Not-Ready first edit: Naive 5-Mini solves only 30/163 Not-Ready cases, so improving Ready directly expands the solved set. In contrast, Naive Opus solves 63/138 through self-correction, so DPI's new Ready cases overlap with cases already solvable.

Per-instance paired analysis. On GPT-5-Mini, we take the 140 cases where w/o 2P fails, categorize by first-edit diagnostic quality, and measure DPI rescue rate. Since comparison is on identical instances, task difficulty is controlled.

w/o 2P Pre-feedback State Meaning N DPI Rescued Rescue%
Target < 2 Wrong or incomplete localization 46 14 30.4
Target = 2, Spec < 2 Correct localization but incomplete specification 51 30 58.8
Ready Complete before external feedback 43 24 55.8
  • DPI's rescue concentrates on the spec-incomplete category. The middle row has the highest rescue rate at 58.8%, confirming that DPI's phase boundary bridges the gap between understanding and test writing.
Reviewer edYVOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes DPIAgent, an agent framework for reproduction test generation. The method decomposes the task into two phases: defect exploration and test generation. It enforces a structured handoff summary between the phases and isolates the available tools in each phase so that the agent first understands the bug before writing tests. The paper evaluates DPIAgent on SWT-Bench Verified across three backbone models and reports consistent improvements over SWE-Agent and other baselines. It also studies test selection, localization accuracy, ablations of the two-phase design, and tool-efficiency behavior.

Strengths and weaknesses

Strengths The proposed DPI design is simple and well aligned with the task structure. Dividing exploration from generation, requiring an explicit handoff protocol, and isolating tools by phase are intuitive choices. The method is easy to understand and could plausibly be reused in other agentic software engineering settings. The experimental results are strong. On SWT-Bench Verified, DPIAgent improves over SWE-Agent across GPT-5-Mini, GPT-5, and Claude-Opus-4.5. The gains are especially large for weaker backbones, suggesting that structured workflow design can compensate for limited model capability. The additional test-selection stage further improves success rates. The ablation studies are useful and directly connected to the paper’s claims. Removing the protocol or collapsing the two-phase design lowers performance, and the behavioral analysis shows that DPIAgent substantially increases explore-first trajectories while reducing exploration underuse and interleaved exploration/editing. This makes the mechanism of improvement more convincing than a pure end-to-end score comparison. Weaknesses While the DPI protocol is a useful and clearly articulated contribution, its novelty is mostly in how existing agent-control ideas are organized for reproduction test generation. Task decomposition, structured handoff summaries, phase-specific tool access, and candidate selection have appeared in related agent and software-engineering systems. The paper would benefit from a sharper discussion of what is unique about DPI compared with prior multi-stage workflows and pipeline-style test generation methods. The attribution of gains is somewhat confounded by the use of specialized exploration tools. DPIAgent does not only impose Divide/Protocol/Isolate; it also uses graph-based repository exploration tools. Although the paper includes a tool ablation, the improvement may come from both better workflow structure and better retrieval/exploration infrastructure. The paper should more clearly separate these two sources of gain. The evaluation is limited to SWT-Bench Verified, which mainly covers Python repositories. The paper argues that DPI is a general principle, but the evidence for generality across languages, project types, or non-test-generation coding tasks is limited.

Questions

Could the authors clarify what is unique about DPI compared with prior multi-stage agent workflows and pipeline-style reproduction test generation methods? In particular, which part of Divide, Protocol, and Isolate is essential beyond standard task decomposition with a structured intermediate summary? Could the authors better separate the gains from the DPI protocol and the gains from the graph-based exploration tools? Although the paper includes a tool ablation, DPIAgent changes both the workflow structure and the exploration infrastructure. A controlled comparison using the same graph-based tools without strict phase/tool isolation, or using DPI with only standard SWE-Agent tools, would help identify how much of the improvement is due to DPI itself. How does DPIAgent behave when the Phase 1 exploration summary is wrong or incomplete? Since Phase 2 removes exploration tools, it is important to understand whether the agent can recover from an incorrect handoff, or whether early diagnostic errors are propagated into test generation. Can the authors provide more evidence or discussion about generality beyond SWT-Bench Verified? Even a small experiment on another language, another reproduction-test benchmark, or a qualitative analysis of non-Python cases would help support the claim that DPI is a general agentic design principle.

Limitations

Yes, in Appendix D

Final justification

My recommendation remains positive. In my original review, I found DPIAgent to be a clear and useful protocol for reproduction test generation, with strong results on SWT-Bench Verified and ablations that directly support the main claims.

The rebuttal addresses my main concern about attribution by adding controlled ablations separating DPI’s framework contribution from specialized exploration tools. The D/P/I component analysis also clarifies the role of each part of the protocol, and the discussion of incomplete handoffs helps explain how the system can recover when Phase 1 is imperfect.

One limitation remains: the generality evidence beyond SWT-Bench Verified is still mostly case-study level. However, this does not outweigh the clear empirical gains and the strengthened evidence for the DPI protocol itself. I therefore maintain my positive score.

Formatting concerns

No

6 comments
Authors · CommentOpenReview ↗

Response to Reviewer edYV (Part III)

Generality

W3 & Q4: Generality beyond SWT-Bench Verified

Due to time constraints, we currently provide case-study-level evidence for DPI's generality from three perspectives.

(1) Cross-language generalization (Reproduction test generation). We apply DPIAgent to tasks from SWE-Bench-Pro[1] across three languages, with no framework modification.

Language Repository Task Phase 1 Handoff Final Artifact Verification
Go Teleport Test generation Completed Go regression test F2P
JavaScript NodeBB Test generation Completed Mocha test F2P
TypeScript Tutanota Test generation Completed ospec test F2P

Due to space constraints, we present one detailed Go case below.

Go test generation case (gravitational/teleport, 43 steps). Bug: Kubernetes service does not initialize the streaming upload directory, causing TTY exec to fail.

Phase 1 (22 steps): The agent traced the call chain from lib/service/kubernetes.go through forwarder.go (newStreamer) into filesessions/fileuploader.go (CheckAndSetDefaults), and cross-referenced the SSH/app service initialization paths to confirm that the Kubernetes service lacks the initUploaderService call. It then reviewed test patterns in forwarder_test.go and service_test.go to plan the test structure.

Phase 1 handoff:

Bug location: forwarder.go newStreamer ...
Root cause: session uploader not initialized, streaming dir missing ...
Expected vs actual: dir should exist at startup; actually absent ...
Reproduction: call initKubernetesService, then newStreamer fails
Test plan: assert streaming dir absent (buggy) / present (fixed)

Phase 2 (11 steps): The agent first attempted an integration-level test in lib/service/ but encountered environment constraints. It then pivoted to a targeted unit test in newstreamer_test.go, asserting that newStreamer errors when the streaming directory is absent and succeeds when it exists.

(2) Cross-task generalization (bug fixing). DPI adapts to bug fixing with minimal changes: switching the Phase 2 objective from ready_to_write_test to ready_to_bug_fix, swapping test-writing tools to code-editing tools, and adjusting a few Protocol fields. Phase 1 and the handoff mechanism remain identical.

Language Repository Phase 1 Handoff Final Artifact Verification
Go Teleport Completed Code patch Build/tests pass; matches fix semantics
JavaScript NodeBB Completed Code patch Build/tests pass; matches fix semantics
TypeScript Tutanota Completed Code patch Build/tests pass; matches fix semantics

Go bug fixing case (gravitational/teleport, 24 steps). The agent reused the same Phase 1 exploration pattern to trace the call chain, confirming that SSH and app services call initUploaderService but Kubernetes does not.

Phase 1 handoff (13 steps):

Bug location: lib/service/kubernetes.go, initKubernetesService ...
Root cause: Kubernetes service missing session uploader init ...
Expected vs actual: uploader should be initialized at startup; actually missing ...
Reproduction: deploy teleport-kube-agent, run kubectl exec ...
Reference code: initUploaderService in service.go creates directories ...
Fix plan: call process.initUploaderService after creating accessPoint ...

Phase 2 (11 steps): The agent inserted the initUploaderService call in kubernetes.go with appropriate guards to avoid duplicate initialization. The final patch is an 8-line insertion matching the semantics of the golden fix.

(3) Cross-task downstream utility: patch verification. We evaluate whether DPI-generated tests transfer as behavioral oracles for classifying candidate bug-fix patches. We sample 6 patches from the SWE-Bench Verified leaderboard, run each method's test suite on all tasks, and compute accuracy against golden-test verdicts.

Method Acc.
Aider 61.7
Terminus 67.3
TraeAgent 75.4
OpenHands 76.0
SWE-Agent 76.3
DPIAgent 79.6

DPIAgent achieves the highest oracle accuracy, confirming that DPI-generated tests are more discriminative as verification oracles for downstream patch correctness.

Ref:

[1] SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks? arXiv 2509.16941, Scale AI

Authors · CommentOpenReview ↗

Response to Reviewer edYV (Part II)

Diagnostic Quality and Recovery

Q3: Phase 1 summary wrong or incomplete

Using the diagnostic analysis above, we quantify how often Phase 1 summaries are incomplete. A case is Not-Ready when Tgt<2 or Spec<2:

Config Not Ready # F2P in Not Ready #
Naive 5-Mini 163.3±1.2 30.0±0.0
DPI 5-Mini 100.3±4.2 20.3±0.6
Naive GPT-5 123.0±4.0 32.0±1.0
DPI GPT-5 55.3±1.5 3.0±0.0
Naive Opus 138.3±0.6 63.0±1.7
DPI Opus 68.0±2.6 5.7±0.6
  • Not-Ready cases are the minority. Under DPI, only 100 out of 433 first edits are Not-Ready for GPT-5-Mini, and even fewer for GPT-5 and Opus.
  • An incomplete handoff is not fatal. DPI only removes specialized search tools (e.g., graph-based repository search) in Phase 2 while preserving standard local inspection capabilities (bash, editing), preventing unconstrained exploration from interfering with focused test writing. DPI's core benefit is making more cases Ready before Phase 2, reducing reliance on this constrained recovery path.

We analyzed the 20 Not-Ready cases that still achieved F2P under DPI GPT-5-Mini:

Recovery Path Count
Local file viewing / bash inspection 18
Test execution feedback 2

The majority recover by using basic bash tools to view relevant source files and supplement the incomplete diagnosis before revising the test.

Novelty

W1: Novelty compared with prior multi-stage workflows

Our motivation is to decompose compound-objective tasks into finer-grained stages with explicit boundaries, so that the agent focuses exclusively on the current stage's objective and produces higher-quality outputs at each stage. As our diagnostic quality analysis shows, this decomposition directly improves pre-feedback test design quality, which is the primary bottleneck for weaker models. For test generation, DPI ensures the agent completes bug diagnosis before writing tests, resulting in higher first-edit Ready rates and consequently more F2P successes.

We acknowledge that task decomposition, structured handoff, and tool subsetting have precedents individually. The novelty of DPI is not "task decomposition" itself, but making decomposition an executable phase-boundary control mechanism. Concretely, this mechanism provides three benefits that prior approaches lack:

  • Unlike prompt-only decomposition, DPI enforces phase transitions through a structured handoff protocol, ensuring Phase 1 produces an explicit diagnostic state before Phase 2 begins.
  • Unlike multi-agent architectures (AEGIS) that lose context at agent boundaries, DPI preserves full conversation history within a single agent.
  • Unlike fixed pipelines (Issue2Test, Otter) that lack agent loops inside stages, DPI retains full agent autonomy within each phase while hard-switching the tool set upon transition.
Authors · CommentOpenReview ↗

Response to Reviewer edYV (Part I)

Thank you for your constructive review. We provide our responses below.

Attribution of Gains: Framework vs Tools

W2: Attribution of gains (framework vs tools)

We conduct controlled ablations to separate the contributions of tools and framework:

  • The gains primarily come from DPI's framework design, not from tool differences. Adding Search Code (RPG) improves S substantially (+7.54), but does not account for DPI's full gain and does not improve TDD under this configuration (−3.89). In contrast, SWE-Agent + DPI with only standard tools achieves +12.85 S and +2.12 TDD, confirming that the framework itself is the primary source of improvement.
Configuration S TDD
Baseline SWE-Agent 60.12 54.29
Tool Contribution + Search Code (RPG) 67.66 50.40
+ structured summary(one-shot-prompt) 54.96 42.44
+ ready_to_write_test(tool call) 61.20 48.68
DPI Contribution SWE-Agent + DPI 72.97 56.41

Furthermore, we apply DPI on top of TraeAgent without adding specialized graph-based exploration tools:

Configuration S TDD
TraeAgent 60.74 47.23
TraeAgent + DPI 67.35 57.92
  • DPI brings +6.61 S and +10.69 TDD with no tool changes, demonstrating that DPI generalizes to different agent platforms and further confirming that the framework is the source of improvement.

D/P/I Component Ablation

Q1: Which part of D/P/I is essential

We would like to clarify the individual contribution of each component. Building on the w/o Protocol and w/o Two-Phase results in Table 4, we conduct an additional Isolate ablation to complete the picture:

Configuration S ΔC Cov.
Full DPI 74.28 65.51 75.97
DPI w/o Isolate (all tools available) 72.70 59.40 67.80
DPI w/o Protocol (without summary) 70.90 63.71 72.88
DPI w/o Divide (single phase) 67.66 54.59 64.28
  • The three components are complementary, each affecting different quality dimensions. Divide has the largest impact ; since removing it also eliminates the phase boundary that Protocol and Isolate depend on, this measures the full phase-structure bundle. Isolate primarily affects test quality, consistent with tool gating reducing cross-phase interference. Protocol mainly affects successful reproduction (-3.38 S), providing an explicit state-transfer artifact across phases.

Empirical Evidence for DPI's Mechanism

To further understand how DPI improves performance, we construct an LLM-as-Judge analysis agent to evaluate the diagnostic quality of each trajectory's first substantive test edit on two dimensions:

  • Target Alignment (Tgt, 0/1/2): whether the test targets the correct code location, via 4 sub-checks (relevance, coverage, invocation validity, precision);
  • Specification Completeness (Spec, 0/1/2): whether the test design is complete, via 5 sub-checks (trigger condition, critical input, call path, oracle, discriminativeness).

A test edit is Ready when Tgt=2 and Spec=2. We instantiate the judge with GPT-5.6-Terra, run it three times independently and apply outcome-aware correction (override to Ready if F2P is achieved without post-first-edit modification). All numbers below are absolute case counts.

Config Target # Spec # Ready # F2P in Ready # Total F2P #
Naive 5-Mini 319.7±0.6 269.7±1.2 269.7±1.2 243.7±1.5 273.7±1.5
DPI 5-Mini 370.0±1.7 332.7±4.2 332.7±4.2 311.0±2.0 331.0±2.0
Δ 5-Mini 50.7±1.2 63.0±3.5 63.0±3.5 67.3±1.5 57.7±1.2
Naive GPT-5 369.3±1.5 310.0±4.0 310.0±4.0 284.7±3.5 316.7±2.5
DPI GPT-5 405.0±1.7 377.7±1.5 377.7±1.5 352.7±0.6 355.7±0.6
Δ GPT-5 35.3±1.2 67.7±4.7 67.7±4.7 68.0±3.6 38.7±2.9
Naive Opus 365.0±0.0 294.7±0.6 294.7±0.6 269.7±1.5 332.7±0.6
DPI Opus 392.3±0.6 365.0±2.6 365.0±2.6 338.3±1.2 344.3±1.2
Δ Opus 27.3±0.6 70.3±2.1 70.3±2.1 68.7±0.6 11.7±1.5
  • DPI primarily improves pre-feedback test design quality, and this improvement is most critical for weaker models. DPI lifts Ready count consistently across all three backbones. Since Ready cases convert to F2P at over 90% across all configurations, increasing Ready directly expands the solved set.
Reviewer ptTXOpenReview ↗
Rating
3/6
Confidence
3/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes an agent workflow for Large Language Models (LLMs) concerning test case generation. To generate tests that fail on the original code version, but pass on the fixed code, the authors introduce DPIAgent, which splits the tasks into three subtasks of defect exploration, protocol generation and test generation. Experiments show that applying the method on top of SWE-Agent improves the success rate for generating tests and reduces the number of agent steps. Furthermore, the method is evaluated against competing methods across multiple configurations.

Strengths and weaknesses

The motivation for decomposing the task into defect exploration and test generation is intuitive, but it would be stronger if the paper provided direct evidence that unconstrained agents actually suffer from stage confusion or objective drift in this setting. For example, qualitative agent traces or an ablation against a less structured agent would help substantiate this claim.

A strength of the approach is that it is practically implementable and does not require overly complex machinery: it mainly relies on an agent with tool use, structured file interactions, and a staged workflow built on existing agent-based frameworks such as SWE-Agent. The experimental evaluation is also solid, as it compares multiple popular models and several competing approaches.

However, the overall novelty of the approach is limited, as it offers only a few new insights and does not substantially advance the understanding of agents or automated test generation. In addition, although the underlying method is not difficult to grasp conceptually, the presentation makes it harder to follow than necessary. Figure 2 is particularly convoluted: the ordering of the steps is unclear, “Protocol” appears to be a separate phase, and the bottom bar suggests a five-step workflow. I recommend simplifying this figure and expanding the textual explanation to describe the workflow, the role of each component, and the phase transitions more clearly. The paper would also benefit from more implementation detail, especially regarding the exact tool interfaces available in each phase, how these differ from the SWE-Agent baseline, and whether those tool differences contribute to the reported gains. Finally, minor errors such as the awkward sentence in line 199 (“All results of are averaged over 3 runs”) and the typo in line 632 (“Limitatoins”) give the impression that the manuscript is not yet fully polished

Questions

Q1 What empirical evidence supports the claim that unconstrained agents “lose track” of the current stage or objective? Section 6 reports “Underuse” and “Interleaved” trace categories, but it is not clear that these operationalize stage confusion or objective drift; for example, interleaving exploration and editing does not necessarily imply that the agent has “lost track” of its objective.

Q2 Does SWE-Agent have access to the same tools as DPIAgent in the comparison? If not, could you specify which tools differ, especially the graph-based exploration tools and ready_to_write_test transition mechanism, and provide an ablation showing whether these tool-interface changes, rather than the proposed phase decomposition itself, account for the improved scores?

Limitations

Limitations are discussed, however in the appendix instead of the main part of the paper.

Formatting concerns

None

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Response to Reviewer ptTX

Thank you for your constructive review. We provide our responses below to address your questions.

Empirical Evidence for DPI's Mechanism

Q1: Empirical evidence for objective drift

Following the LLM-as-Judge paradigm, we construct an independent analysis agent to evaluate each trajectory. For each instance, the agent identifies the first substantive test edit and scores it on two dimensions:

  • Target Alignment (Tgt, 0/1/2): whether the test targets the correct code location, via 4 sub-checks (relevance, coverage, invocation validity, precision);
  • Specification Completeness (Spec, 0/1/2): whether the test design is complete, via 5 sub-checks (trigger condition, critical input, call path, oracle, discriminativeness).

A test edit is Ready when Tgt=2 and Spec=2. We instantiate the judge with GPT-5.6-Terra, run it three times independently and apply outcome-aware correction (override to Ready if F2P is achieved without post-first-edit modification). All numbers below are absolute case counts.

Config Target # Spec # Ready # F2P in Ready # Total F2P #
Naive 5-Mini 319.7±0.6 269.7±1.2 269.7±1.2 243.7±1.5 273.7±1.5
DPI 5-Mini 370.0±1.7 332.7±4.2 332.7±4.2 311.0±2.0 331.0±2.0
Δ 5-Mini 50.7±1.2 63.0±3.5 63.0±3.5 67.3±1.5 57.7±1.2
Naive GPT-5 369.3±1.5 310.0±4.0 310.0±4.0 284.7±3.5 316.7±2.5
DPI GPT-5 405.0±1.7 377.7±1.5 377.7±1.5 352.7±0.6 355.7±0.6
Δ GPT-5 35.3±1.2 67.7±4.7 67.7±4.7 68.0±3.6 38.7±2.9
Naive Opus 365.0±0.0 294.7±0.6 294.7±0.6 269.7±1.5 332.7±0.6
DPI Opus 392.3±0.6 365.0±2.6 365.0±2.6 338.3±1.2 344.3±1.2
Δ Opus 27.3±0.6 70.3±2.1 70.3±2.1 68.7±0.6 11.7±1.5
  • DPI primarily improves pre-feedback test design quality, and this improvement is most critical for weaker models. DPI lifts Ready count consistently across all three backbones. Since Ready cases convert to F2P at over 90% across all configurations, increasing Ready directly expands the solved set.

To understand why the Total F2P gain shrinks for stronger models, we break down the Not-Ready cases:

Config Not Ready # F2P in Not Ready #
Naive 5-Mini 163.3±1.2 30.0±0.0
DPI 5-Mini 100.3±4.2 20.3±0.6
Naive GPT-5 123.0±4.0 32.0±1.0
DPI GPT-5 55.3±1.5 3.0±0.0
Naive Opus 138.3±0.6 63.0±1.7
DPI Opus 68.0±2.6 5.7±0.6
  • Weaker models rarely recover from a Not-Ready first edit: Naive 5-Mini solves only 30/163 Not-Ready cases, so improving Ready directly expands the solved set. In contrast, Naive Opus solves 63/138 through self-correction, so DPI's new Ready cases overlap with cases already solvable. Our causal analysis in Q5 further shows that DPI's rescue concentrates on cases where the agent localizes correctly but has incomplete specification.

Causal evidence: phase structure improves diagnostic quality. To further isolate the causal effect of phase structure, we take the 140 cases that w/o 2P fails on (GPT-5-Mini) and categorize them by the first-edit diagnostic quality under w/o 2P (evaluated by GPT-5.6-Terra), then measure how many Full DPI rescues in each category. Since the comparison is on identical instances, task difficulty is controlled.

w/o 2P Pre-feedback State Meaning N DPI Rescued Rescue%
Target < 2 Initial test block has wrong or incomplete localization 46 14 30.4
Target = 2, Spec < 2 Initial test block localizes the bug but has incomplete specification 51 30 58.8
Ready Initial test block is complete before external feedback 43 24 55.8

DPI's rescue concentrates on the spec-incomplete category. The middle row has the highest rescue rate at 58.8%, confirming that DPI's phase boundary bridges the gap between understanding and test writing. Cases with inadequate targeting show a lower but non-trivial rescue rate of 30.4%.

Attribution of Gains: Framework vs Tools

W3: Implementation details and tool differences

Thank you for raising this point. Compared to SWE-Agent, DPI's main tool-level difference is phase-specific tool gating: Phase 1 adds Search Code for graph-based exploration but removes editing tools; Phase 2 removes graph-based exploration tools and restores editing. The table below summarizes the detailed availability. For controlled ablations on whether these tool differences contribute to the reported gains, please see Q2.

Setting Explore View Edit Execution Phase Transition
SWE-Agent baseline Standard Explore Standard View Standard Edit bash —
DPI Phase 1 Standard Explore, Search Code Standard View — bash ready_to_write_test
DPI Phase 2 Standard Explore Standard View Standard Edit bash —

Q2: Tool differences and ablation

To answer whether these tool differences contribute to the reported gains, we note that the tool-level differences between SWE-Agent and DPI include:

  • the addition of Search Code in Phase 1
  • the ready_to_write_test transition mechanism
  • phase-specific tool isolation

We conduct controlled ablations to disentangle each contribution:

Configuration S TDD
Baseline SWE-Agent 60.12 54.29
Tool Contribution + Search Code (RPG) 67.66 50.40
+ structured summary(one-shot-prompt) 54.96 42.44
+ ready_to_write_test(tool call) 61.20 48.68
DPI Contribution SWE-Agent + DPI 72.97 56.41
  • Adding Search Code alone improves S but TDD drops by 3.89, showing that better exploration tools alone do not yield higher-quality tests.
  • The ready_to_write_test control provides only the transition tool and its description to a monolithic agent without DPI's phase structure or workflow instructions, testing whether the tool itself produces gains; the marginal improvement (+1.08 S) confirms it does not.
  • In contrast, SWE-Agent + DPI with only standard tools achieves +12.85 S and +2.12 TDD, confirming that the gains primarily come from the DPI framework itself, not from tool differences.

Building on the w/o Divide and w/o Protocol ablations already reported in Table 4, we additionally ablate Isolate (phase-specific tool gating) to complete the picture. Divide causes the largest overall drop (-6.62 S, -10.92 ΔC), measuring the full phase-structure bundle. Isolate primarily affects test quality (-6.11 ΔC, -8.17 Cov.), consistent with tool gating reducing cross-phase interference. Protocol mainly affects successful reproduction (-3.38 S), providing an explicit state-transfer artifact across phases.

Configuration S ΔC Cov.
Full DPI 74.28 65.51 75.97
DPI w/o Isolate (all tools available) 72.70 59.40 67.80
DPI w/o Protocol (without summary) 70.90 63.71 72.88
DPI w/o Divide (single phase) 67.66 54.59 64.28

Furthermore, we apply DPI on top of TraeAgent[1] without adding specialized graph-based exploration tools, and observe +6.61 S and +10.69 TDD (GPT-5-Mini). This both demonstrates that DPI generalizes to different agent platforms and further confirms that the framework, not tool differences, is the source of improvement.

Configuration S TDD
TraeAgent 60.74 47.23
TraeAgent + DPI 67.35 57.92

Novelty

W1: Limited novelty

Our motivation is to decompose compound-objective tasks into finer-grained stages with explicit boundaries, so that the agent focuses exclusively on the current stage's objective and produces higher-quality outputs at each stage. As our mechanistic analysis in Q1 shows, this decomposition directly improves pre-feedback test design quality, which is the primary bottleneck for weaker models. For test generation, DPI ensures the agent completes bug diagnosis before writing tests, resulting in higher first-edit Ready rates and consequently more F2P successes.

We acknowledge that task decomposition, structured handoff, and tool subsetting have precedents individually. The novelty of DPI is not "task decomposition" itself, but making decomposition an executable phase-boundary control mechanism. Concretely, this mechanism provides three benefits that prior approaches lack:

  • Unlike prompt-only decomposition, DPI enforces phase transitions through a structured handoff protocol, ensuring Phase 1 produces an explicit diagnostic state before Phase 2 begins.
  • Unlike multi-agent architectures (AEGIS) that lose context at agent boundaries, DPI preserves full conversation history within a single agent.
  • Unlike fixed pipelines (Issue2Test, Otter) that lack agent loops inside stages, DPI retains full agent autonomy within each phase while hard-switching the tool set upon transition.

Regarding generality beyond a single task, due to time constraints we currently provide case studies (Go, JavaScript, TypeScript for both test generation and bug fixing) rather than full-scale evaluations. Details are in Reviewer edYV's response (Generality, subsections 1-3).

Presentation

W2: Figure 2 and presentation

We appreciate the detailed feedback on presentation clarity. We agree that Figure 2 can be simplified. In the final revision, we plan to: (1) reorder the diagram to follow the temporal flow of Phase 1 → Protocol → Phase 2 linearly, (2) visually distinguish Protocol as a transition mechanism rather than a standalone phase, and (3) replace the bottom bar with a clearer two-phase annotation. We will also expand the textual explanation of the workflow, the role of each component, and the phase transitions as suggested.

W4: Minor typos and polish

Thank you for catching these. We will fix the noted errors and thoroughly polish the manuscript in the revision.

Ref:

[1] Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling, Technical Report, ByteDance

Authors · CommentOpenReview ↗

Official Comment by Authors

Dear Reviewer ptTX,

We appreciate your initial feedback and have addressed your comments in our previous response. If you have any remaining concerns or need further clarification, we welcome your additional input. Thank you for your continued consideration.

Sincerely Yours,

The Authors

Area Chair YzHj · CommentOpenReview ↗

Follow-up on Author Rebuttal

Dear Reviewer ptTX,

Thank you for your review. As the discussion period closes in approximately one day, please take a moment to read the authors' response and indicate whether it addresses your concerns.

In particular, the authors have provided the tool ablation and the empirical evidence on objective drift that you requested in Q1 and Q2. A brief confirmation either way, including if your rating stands, will directly inform the meta-review.

Best regards,
AC

Reviewer 16jiOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper targets reproduction test generation (produce a test that fails on buggy code and passes after the fix). It argues that existing agentic approaches treat this as a monolithic loop, mixing root-cause exploration with test writing, which induces goal drift. The authors propose DPIAgent built on three principles — Divide (two sequential single-objective phases: defect exploration, then test generation), Protocol (a mandatory structured handoff summary: bug location, root cause, expected-vs-actual, reproduction strategy, reference tests, test plan — written via a ready_to_write_test tool before transition), and Isolate (phase-specific toolsets so wrong-phase tools cannot distract the agent). Exploration uses graph-based code-navigation tools over a pre-built repository graph (RPG-encoder). On top of DPI they add an e-Otter++-style test-selection step (surrogate patches rank diversified candidates). On SWT-Bench Verified across GPT-5-Mini, GPT-5, and Claude-Opus-4.5, DPIAgent beats seven baselines: 81.76% success with DPI alone on GPT-5, 86.17% with test selection; the isolated DPI add-on to SWE-Agent yields +14.2/+9.2/+2.1 points and ~29% fewer steps, with the largest gains on the weakest backbone. Ablations and behavioral analysis show DPI channels 85–88% of trajectories into an "explore-first" pattern.

Strengths and weaknesses

Strengths

  • Clean causal isolation of the contribution. Fig. 1 / Table 4 add DPI on top of the same SWE-Agent scaffold, so the gains are attributable to the structural intervention rather than to a different base agent. This is the right experiment and it is convincing; the "complementary axes" finding (gains shrink as backbone strengthens: +14.2 → +9.2 → +2.1) is reported honestly.
  • Good behavioral evidence. Categorizing trajectories into explore-first / underuse / interleaved (Table 3) and showing edit-tool onset over steps (Fig. 4) substantiates the mechanism narrative at the behavioral level, not just the outcome.
  • Clarity (good). The three principles map cleanly onto concrete architecture (Fig. 2); metrics (S, Cov., ΔC, TDD) are standard and well-chosen — TDD in particular guards against "coverage without reproduction."
  • Sound, externally-defined problem and good evaluation hygiene. Reproduction test generation is a real, well-defined SWE task; multiple backbones, three-run averaging, and the official SWT-Bench Docker harness are solid practice.

Weaknesses

  • The paper establishes THAT the workflow helps but not WHY/WHEN, and leaves its own most interesting result unexplained. The headline secondary finding — structural intervention compensates for model scale, with gains shrinking monotonically as capability grows (+14.2 → +9.2 → +2.1) — is named ("complementary axes") but never modeled. The natural scientific question — what does external structure substitute for (e.g., planning/working memory a weaker model cannot hold internally), and when does it become redundant? — is testable with the authors' own setup but untouched. Relatedly: (i) the active ingredient is not isolated — ablations remove "Protocol" and "two-phase" as bundles but never separate whether the gain comes from separation-of-concerns, the specific 6-field schema, the extra structured thinking space, or tool-isolation reducing the error surface (a cheap control: give a monolithic agent the same 6-field summary as a one-shot prompt); (ii) Table 3's explore-first↔F2P is correlation, not causation — and is contradicted by the table itself. The causal claim ("Explore-first … achieves the highest F2P across both backbones … fragmented exploration directly hurts reproduction quality") is undercut by the paper's own numbers: within the Full condition, the Underuse pattern (minimal exploration) attains a higher F2P than Explore-first on both backbones (84.8 vs 76.3 on GPT-5-Mini; 82.5 vs 79.6 on Opus-4.5). This is the signature of task-difficulty confounding — easy bugs are solved with little exploration — so the per-category F2P numbers cannot establish that explore-first causes success; only a per-instance paired comparison (same bug, DPI vs monolithic) can. Without these, the contribution is a demonstration that a recipe works, not an advance in understanding.
  • The method is a generic agent-scaffold recipe assembled from standard patterns plus two borrowed external systems. Divide (localize-then-write), Protocol (structured handoff), and Isolate (phase-specific tool subsetting) are standard agent-design heuristics (cf. AEGIS's two-agent Searcher/Reproducer; localization-before-generation in Issue2Test/Otter; known tool-distraction mitigation), with no new algorithm. The two components that drive the SOTA number are borrowed wholesale: graph exploration from RPG-encoder (Luo 2026b) and test selection from e-Otter++ (Ahmed 2026). The claimed mechanism (compound-objective goal drift) is described as a general agent failure mode, yet DPI is validated on a single task.
  • The main table mixes backbones and sources. Top rows (LIBRO/AssertFlip on GPT-4o, Otter/Otter++ on Claude-3.7, e-Otter++/Echo on Gemini-2.5-Pro) are leaderboard numbers on different models, while DPIAgent runs on GPT-5/Opus-4.5. So the strongest comparators (Echo 66.3%, e-Otter++ 62.1%) are never run head-to-head on the authors' backbones; "highest among open-source methods" should be qualified.
  • Gains are marginal on the strongest model (+2.07 S on Opus-4.5; several Cov./S rows barely edge SWE-Agent), bounding practical significance as frontier models improve.
  • No anonymized code/artifact link found. For an empirical systems paper, please confirm the reproducibility avenue.
Questions
  1. Mechanism — what does structure substitute for (my main score driver)? Can you investigate the capability–structure tradeoff your own results reveal — e.g., measure whether stronger models spontaneously explore-first without DPI, and correlate each model's gain with its unprompted explore-first rate (or a planning-horizon proxy)? A predictive account of when DPI helps would substantially raise my assessment. Criteria: a mechanistic explanation that goes beyond restating "complementary axes" would move me toward accept.
  2. Active ingredient: Give a monolithic (single-loop) agent the same 6-field summary as a one-shot prompt — how much of the gain survives without the phase split? And vary the summary schema (free-form vs the 6 fields). This isolates whether the effect is "phase structure" or simply "more structured thinking."
  3. Matched-backbone strong baselines: Run e-Otter++ / Echo on GPT-5 / Opus-4.5 (or DPIAgent on Gemini-2.5-Pro) so "highest among open-source methods" rests on same-backbone numbers rather than leaderboard rows from other models.
  4. Selection vs structure: Add e-Otter++ selection on top of a strong baseline (e.g., SWE-Agent + selection) to show DPI's structural gain persists after both get selection.
  5. Causation in Table 3: Can you show, per-instance, that forcing explore-first on runs that would otherwise interleave actually converts failures to successes — rather than only shifting aggregate behavior?
Limitations

Partially. The "complementary axes" discussion honestly acknowledges shrinking gains on strong models, but the paper does not (i) explain or model why structure compensates for scale and when it becomes redundant, (ii) isolate the active ingredient of the effect, (iii) discuss dependence on the external repository graph as a limitation, or (iv) flag the mixed-backbone nature of the main comparison.

Final justification

The authors have satisfactorily addressed all of my questions and concerns.

Formatting concerns

No

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Response to Reviewer 16ji

Below, we address your specific concerns.

Empirical Evidence for DPI's Mechanism

W1 & Q1: What does structure substitute for, and when does it become redundant?

DPI primarily improves pre-feedback test design quality, and this improvement is most critical for weaker models. Following the LLM-as-Judge paradigm [1], we construct an analysis agent to evaluate each trajectory on two dimensions:

  • Target Alignment (Tgt, 0/1/2): whether the test targets the correct code location, via 4 sub-checks (relevance, coverage, invocation validity, precision);
  • Specification Completeness (Spec, 0/1/2): whether the test design is complete, via 5 sub-checks (trigger condition, critical input, call path, oracle, discriminativeness).

A test edit is Ready when Tgt=2 and Spec=2. We instantiate the judge with GPT-5.6-Terra, run it three times independently and apply outcome-aware correction (override to Ready if F2P is achieved without post-first-edit modification). All numbers below are absolute case counts.

Config Target # Spec # Ready # F2P in Ready # Total F2P #
Naive 5-Mini 319.7±0.6 269.7±1.2 269.7±1.2 243.7±1.5 273.7±1.5
DPI 5-Mini 370.0±1.7 332.7±4.2 332.7±4.2 311.0±2.0 331.0±2.0
Δ 5-Mini 50.7±1.2 63.0±3.5 63.0±3.5 67.3±1.5 57.7±1.2
Naive GPT-5 369.3±1.5 310.0±4.0 310.0±4.0 284.7±3.5 316.7±2.5
DPI GPT-5 405.0±1.7 377.7±1.5 377.7±1.5 352.7±0.6 355.7±0.6
Δ GPT-5 35.3±1.2 67.7±4.7 67.7±4.7 68.0±3.6 38.7±2.9
Naive Opus 365.0±0.0 294.7±0.6 294.7±0.6 269.7±1.5 332.7±0.6
DPI Opus 392.3±0.6 365.0±2.6 365.0±2.6 338.3±1.2 344.3±1.2
Δ Opus 27.3±0.6 70.3±2.1 70.3±2.1 68.7±0.6 11.7±1.5
  • DPI primarily improves pre-feedback test design quality, and this improvement is most critical for weaker models. DPI lifts Ready count consistently across all three backbones. Since Ready cases convert to F2P at over 90% across all configurations, increasing Ready directly expands the solved set.

To understand why the Total F2P gain shrinks for stronger models, we break down the Not-Ready cases:

Config Not Ready # F2P in Not Ready #
Naive 5-Mini 163.3±1.2 30.0±0.0
DPI 5-Mini 100.3±4.2 20.3±0.6
Naive GPT-5 123.0±4.0 32.0±1.0
DPI GPT-5 55.3±1.5 3.0±0.0
Naive Opus 138.3±0.6 63.0±1.7
DPI Opus 68.0±2.6 5.7±0.6
  • Weaker models rarely recover from a Not-Ready first edit: Naive 5-Mini solves only 30/163 Not-Ready cases, so improving Ready directly expands the solved set. In contrast, Naive Opus solves 63/138 through self-correction, so DPI's new Ready cases overlap with cases already solvable. Our causal analysis in Q5 further shows that DPI's rescue concentrates on cases where the agent localizes correctly but has incomplete specification.

W4: About Marginal gains on strongest model

As shown above, stronger models self-correct from Not-Ready first edits (Opus: 63/138), so DPI's new Ready cases overlap with cases already solvable. That said, DPI's Ready increase on Opus is the largest across all three backbones, confirming that phase structure consistently improves first-edit quality regardless of model strength.

Causal Evidence: Phase Structure Matters

W1(ii) & Q5: Causation in Table 3

DPI's goal is to decompose compound-objective tasks into focused subtasks with explicit phase boundaries; explore-first is simply the expected manifestation of phase compliance. We agree that the trace categories in Table 3 are behavioral descriptions, not causal explanations, so we design a diagnostic quality metric for per-instance paired analysis.

On GPT-5-Mini, we select the 140 cases where w/o 2P fails, then use GPT-5.6-Terra to evaluate the first-edit diagnostic quality under w/o 2P and measure how many Full DPI rescues. Since the comparison is on identical instances, task difficulty is controlled.

w/o 2P Pre-feedback State Meaning N DPI Rescued Rescue%
Target < 2 Initial test block has wrong or incomplete localization 46 14 30.4
Target = 2, Spec < 2 Initial test block localizes the bug but has incomplete specification 51 30 58.8
Ready Initial test block is complete before external feedback 43 24 55.8
  • DPI's rescue concentrates on the spec-incomplete category. The middle row has the highest rescue rate at 58.8%, confirming that DPI's phase boundary bridges the gap between understanding and test writing. Cases with inadequate targeting show a lower but non-trivial rescue rate of 30.4%.

Isolating DPI's Active Ingredient

W1(i) & Q2: Isolating the active ingredient of DPI's gain

Following your suggestions, we conduct controlled experiments on SWT-Bench Verified (GPT-5-Mini) to isolate each active ingredient.

(1) Injecting the 6-field schema into a monolithic agent does not reproduce the gain.

  • + Search Code (RPG): improves S but TDD drops by 3.89, showing better tools alone do not yield higher-quality tests.
  • + structured summary (one-shot prompt): we add the same six-field schema to SWE-Agent as a one-shot prompt. The schema alone does not improve performance.
  • + ready_to_write_test (tool call): we further add ready_to_write_test as a tool-call control, which yields only marginal improvement (61.20 S, +1.08) with TDD dropping.
  • + DPI (standard tools only): reaches 72.97 S (+12.85) and 56.41 TDD (+2.12).

These results confirm that no single component reproduces the gain; only the full DPI framework does.

Configuration S TDD
Baseline SWE-Agent 60.12 54.29
Tool Contribution + Search Code (RPG) 67.66 50.40
+ structured summary(one-shot-prompt) 54.96 42.44
+ ready_to_write_test(tool call) 61.20 48.68
DPI Contribution SWE-Agent + DPI 72.97 56.41

(2) The six-field schema is not the sole source of the gain.

  • DPI w/o structured summary (free-form): replacing the 6-field schema with a free-form summary yields 73.90 S, only 0.38 below Full DPI, confirming that the gain comes from phase structure, not the specific schema format.
Configuration S ΔC Cov.
Full DPI (structured summary) 74.28 65.51 75.97
DPI w/o structured summary 73.90 62.38 72.47

(3) DPI component ablation. Removing the two-phase split causes the largest drop, confirming that phase structure is the primary driver. Protocol and Isolate each contribute on complementary axes: Protocol improves S (+3.38), while Isolate primarily improves test quality (ΔC +6.11, Cov. +8.17).

Configuration S ΔC Cov.
Full DPI 74.28 65.51 75.97
Tool Ablation DPI w/o Search Tool (RPG) 72.97 62.26 71.18
DPI Ablation DPI w/o Divide (single phase) 67.66 54.59 64.28
DPI w/o Protocol (without summary) 70.90 63.71 72.88
DPI w/o Isolate (all tools available) 72.70 59.40 67.80

About the Novelty

W2: Novelty

Our motivation is to decompose compound-objective tasks into finer-grained stages with explicit boundaries, so that the agent focuses exclusively on the current stage's objective and produces higher-quality outputs at each stage. As our mechanistic analysis in W1 shows, this decomposition directly improves pre-feedback test design quality, which is the primary bottleneck for weaker models. For test generation, DPI ensures the agent completes bug diagnosis before writing tests, resulting in higher first-edit Ready rates and consequently more F2P successes.

We acknowledge that task decomposition, structured handoff, and tool subsetting have precedents individually. The novelty of DPI is not "task decomposition" itself, but making decomposition an executable phase-boundary control mechanism. Concretely, this mechanism provides three benefits that prior approaches lack:

  • Unlike prompt-only decomposition, DPI enforces phase transitions through a structured handoff protocol, ensuring Phase 1 produces an explicit diagnostic state before Phase 2 begins.
  • Unlike multi-agent architectures (AEGIS) that lose context at agent boundaries, DPI preserves full conversation history within a single agent.
  • Unlike fixed pipelines (Issue2Test, Otter) that lack agent loops inside stages, DPI retains full agent autonomy within each phase while hard-switching the tool set upon transition.

Regarding generality beyond a single task, due to time constraints we currently provide case studies (Go, JavaScript, TypeScript for both test generation and bug fixing) rather than full-scale evaluations. Details are in Reviewer edYV's response (Generality, subsections 1-3).

Same-backbone Comparison

W3 & Q3: Mixed backbone comparisons

Since e-Otter++ is not open-sourced and the original backbone APIs are no longer available, we select Echo, which has publicly available code, and run it on the same backbone for a head-to-head comparison.

Model Method S ΔC Cov.
GPT-5-Mini Echo 51.70 46.20 52.60
DPIAgent 74.28 65.51 75.97

Selection Experiment

Q4: Selection Result

We add the selection on top of SWE-Agent to isolate DPI's structural gain. Due to time constraints, we have currently completed evaluation on the first 200 instances and report preliminary results below.

Configuration S TDD
SWE-Agent 58.29 53.11
SWE-Agent + Selection 73.20 60.90
DPIAgent 76.50 65.07
DPIAgent + Selection 80.40 67.95
  • DPIAgent without selection already outperforms SWE-Agent + Selection (76.50 vs 73.20), confirming that DPI's gain is not reducible to test selection. Moreover, the two mechanisms are complementary, as DPIAgent + Selection further improves to 80.40.

Reproducibility

W5: Reproducibility

We are currently undergoing an internal review process for open-sourcing. We will release the full codebase and trajectories upon acceptance.

Ref:

[1] Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories, ASE 2025

Authors · CommentOpenReview ↗

Official Comment by Authors

Dear Reviewer 16ji,

We appreciate your initial feedback and have addressed your comments in our previous response. If you have any remaining concerns or need further clarification, we welcome your additional input. Thank you for your continued consideration.

Sincerely Yours,

The Authors

Reviewer 16ji · CommentOpenReview ↗

I sincerely appreciate your detailed and thoughtful response. Your explanations have fully resolved all of my previous questions and uncertainties, and they have greatly improved my understanding of the work. After considering your response, I will revise my score to 4.

Authors · CommentOpenReview ↗

Official Comment by Authors

Dear Reviewer 16ji,

We appreciate your recognition of our paper and the increase in scores! We promise to update the above explanation in the revised version. All the best!

Sincerely Yours,

The Authors

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…