Pre-patch runtime diagnosis packets for bug-fixing agents
Bug-fixing agents need an executable proof trail before they edit code. A buildable workflow is a wrapper around an existing agent that parses the issue into expected behaviors, generates a targeted bug reproduction test for each behavior, runs each failing test under a debugger, and attaches a diagnosis packet to the agent prompt. The packet should include suspected fault locations, failure symptoms, propagation paths, observed runtime values, and expected patch impact.
SWE-Doctor is the concrete reference point. It reports 75.7% average resolution on SWE-bench Verified and 59.4% on SWE-bench Pro, with an 8.0 to 8.9 percentage-point gain on SWE-bench Pro over baseline agents. Its preliminary study also shows why a plain “generate a failing test and ask the agent to fix it” path can underperform: direct use of advanced BRT generators resolved fewer issues than the original mini-SWE-agent in a 100-issue SWE-bench Verified study.
A team can test this without changing its whole development process. Run the wrapper on a recent set of closed bugs, compare patch acceptance, reviewer rework, and regression failures against the current agent path, and inspect whether the diagnosis packet points reviewers to the same files and runtime facts they used manually.