TL;DR
This paper introduces Oracle-SWE, a framework designed to quantify the maximum potential impact of five critical information signals—such as reproduction tests and edit locations—on software engineering (SWE) agents. By isolating and injecting perfect "oracle" data into a base agent, the authors reveal that high-quality reproduction tests are the single most vital factor for agent success. This provides a clear, data-driven roadmap for prioritizing future research and engineering efforts in autonomous coding systems.
What Problem Does This Paper Address?
Language model (LM) agents are increasingly deployed to solve complex, repository-level software engineering tasks, such as fixing real-world bugs reported in GitHub issues. To accomplish this, modern agent workflows typically try to gather five primary types of contextual information: reproduction tests, regression tests, edit locations, execution contexts, and API usage.
However, until now, it has been unclear which of these components serves as the primary bottleneck for agent performance. If an agent could perfectly locate a bug, or perfectly reproduce it, how much would its overall success rate improve? By establishing the theoretical upper-bound contribution of each information signal, this paper helps researchers determine whether they should focus their efforts on building better code localization tools, better test generation sub-agents, or better API retrievers.
Methods
The authors developed Oracle-SWE, a rule-based, deterministic pipeline to extract perfect "ground-truth" versions of the five key information signals directly from existing SWE benchmarks:
- Edit Location: The exact file paths, class/function names, and line ranges modified in the ground-truth patch.
- Execution Context: The error stack traces and surrounding code snippets produced when executing reproduction tests on the buggy codebase.
- API Usage: The exact internal and external function calls introduced or modified in the correct patch, along with their definitions.
- Reproduction Test: The specific test commands and full source code of the tests that fail before the fix but pass afterward.
- Regression Test: The commands and lists of existing tests that must remain passing to ensure no functionality is broken.
To measure the impact of these signals, the authors conducted an Oracle Ablation Study using a minimal, tool-equipped base agent (SWE-agent). They appended the perfect oracle signals directly to the agent's initial prompt to observe the standalone and cumulative performance gains.
To validate these insights in a realistic setting where ground truths are missing, they designed a Two-Stage Validation Study (Figure 3). Here, a stronger model acts as a specialized sub-agent to extract a signal, which is then handed off to a weaker model tasked with fixing the issue.
Datasets
The framework was evaluated using three prominent repository-level benchmarks:
- SWE-bench-Verified: A human-filtered subset of the original SWE-bench, ensuring that the problem descriptions are clear and the text is understable.
- SWE-bench-Live: A benchmark featuring recent, real-world GitHub issues to minimize the risk of data contamination in newer LMs.
- SWE-bench-Pro: A highly challenging benchmark released in 2025 that includes both Python and Golang subsets to evaluate cross-language generalization.
Key Insights and Ideas
- Reproduction Tests are King: Across every single benchmark and model, providing a perfect reproduction test yielded the largest standalone performance boost. This indicates that natural language issue descriptions are often too ambiguous for agents; explicit, high-quality failure signals are far more effective at guiding correct code modifications.
- The Power of Combinations: While individual factors like Edit Location or API Usage provide modest gains on their own, they exhibit massive synergy when paired with test signals. When all five oracle factors are provided together, agent success rates skyrocket to $\ge 97\%$, proving that these five dimensions comprehensively cover what an agent needs to solve SWE tasks.
- Internal vs. External APIs: An analysis of API usage revealed that 82% of the required APIs were internal to the repository, while only 18% came from third-party libraries. This highlights that repository-level code search and understanding are far more critical than external documentation retrieval.
- Explicit vs. Implicit Failures: Native error stack traces (Execution Context) are incredibly powerful because they pinpoint explicit failures (e.g.,
IndexError). However, they are only available in about 25% of cases. For the remaining 75%, errors are implicit logic bugs where execution traces act more like localization aids rather than direct debugging hints.
Key Results
- Standalone Performance Boosts: On the SWE-bench-Live dataset using GPT-5, providing a perfect Reproduction Test caused the agent's success rate to jump from a baseline of 40% to 75%. Conversely, a perfect Regression Test only moved the needle slightly to 42%.
- Signal Hierarchy: The study established a highly consistent importance ranking across modern benchmarks (Live and Pro): $$\text{Reproduction Test} > \text{Execution Context} \sim \text{API Usage} > \text{Edit Location} > \text{Regression Test}$$
- Validation Success: In the two-stage validation setup, agent-generated reproduction tests successfully resolved multiple complex instances that neither the strong nor weak model could solve standalone, outperforming the single-agent baseline.
Limitations and Future Work
- Subjective Categorization: The authors acknowledge that grouping agent capabilities into these specific five factors is synthesized from prior literature and is not necessarily an exhaustive or definitive decomposition of software engineering.
- Oracle Feasibility: The oracle study assumes that real-world sub-agents will eventually be capable of extracting signals that perfectly match the ground-truth quality and evaluation criteria provided in this study.
- Future Directions: The results strongly suggest that future SWE agent research should prioritize developing specialized sub-agents optimized for high-fidelity reproduction test generation and precise internal repository API localization.
Summary updated