Abstract
Automated Program Repair (APR) aims to reduce the manual effort of bug fixing by automatically generating code patches. However, a significant "trust gap" exists between research advancements and practitioner adoption. This study bridges this gap by surveying 103 software practitioners to define developer expectations and evaluating five state-of-the-art APR tools under realistic constraints. Our findings indicate that developers demand high speed, low interaction, and strong evidence of correctness—criteria that current tools largely fail to meet, particularly regarding patch ranking and execution time.
Introduction
Automated Program Repair (APR) leverages semantic analysis and search techniques to fix software bugs without human intervention. While researchers have made significant strides in the scalability and variety of these tools, real-world adoption remains low. Developers are often hesitant to trust machine-generated patches due to the risk of "overfitting"—where a patch passes the provided test cases but fails to address the underlying logic or introduces regressions. To make APR a viable tool in professional DevOps pipelines, it is crucial to understand and meet practitioner expectations for trust and usability.
Methodology
The researchers employed a two-pronged approach to investigate the trust gap:
- Practitioner Survey: A detailed 35-question survey was conducted with 103 professional software practitioners, including software developers, architects, and QA engineers. The survey explored six key categories: usage of APR, availability of inputs (e.g., test cases, assertions), impact on trust, explanations for generated patches, usage of side-products, and participant background.
- Empirical Evaluation: Based on survey insights, the authors evaluated five prominent APR tools—GenProg, Angelix, Prophet, Fix2Fit, and CPR—against the ManyBugs benchmark. This benchmark consists of real-world defects in C programs. For this study, the authors focused on 60 defects across six major open-source projects: LibTIFF, lighttpd, PHP, GMP, Gzip, and Python. Crucially, the tools were tested under "realistic" constraints: a strict 1-hour timeout and a requirement that the correct patch appear within the top 10 suggestions.
Practitioner Survey Insights
The survey revealed several critical requirements for APR tools to be considered "trustworthy" and useful in a professional setting.
The Need for Speed and Low Interaction
Developers are not looking for a high-interaction "pair programmer" experience. Most respondents (71 out of 103) prefer a low-interaction model where they provide the initial bug report or test case, and the tool independently generates a fix. Furthermore, speed is a major dealbreaker; 63% of developers are unwilling to wait more than an hour for a fix, and many prefer results within 30 minutes. This stands in stark contrast to many academic studies that allow tools to run for 12 to 24 hours.
The Review Threshold
Developer patience for reviewing code is limited. As illustrated in Figure 1, 72% of practitioners are willing to review no more than 5 patches, and interest drops off significantly as the number of candidates increases. This highlights the critical importance of patch ranking algorithms.
Evidence-Based Trust
To trust a patch, developers require data-driven evidence rather than just a "pass" status from a test suite. Specifically, they value code coverage (showing which parts of the code the tests exercised) and the input space ratio (how much of the possible input range was successfully tested). Figure 2 shows the Likert scale responses for various factors that increase trust, demonstrating a strong preference for additional artifacts and transparency.
Empirical Tool Evaluation
When subjected to the realistic constraints of a 1-hour timeout and a top-10 ranking requirement, state-of-the-art tools struggled to meet developer needs:
- Performance Gap: Most tools failed to deliver correct patches within the time limit. For example, Fix2Fit could only generate plausible patches for 14 out of 60 defects.
- The Ranking Bottleneck: Even when a tool successfully identified a correct patch, it often failed to rank it highly enough for a developer to see it. In one instance, Fix2Fit found a correct patch but ranked it below the top 10.
- Success with Constraints: The tool CPR, which uses logical constraints as input, was the most successful at pinpointing correct patches when provided with the exact fix location, suggesting that the search space representation is more critical than the search algorithm itself.
Discussion and Conclusion
The study concludes that for APR to move from the laboratory to the office, it must become faster, provide better evidence of correctness, and significantly improve patch ranking. The "trust gap" is not just about finding a fix, but about finding the right fix quickly and proving its validity to the developer. Future research should prioritize integrating APR directly into CI/CD pipelines and developing more sophisticated ranking algorithms that align with human intuition and professional standards.
Summary updated