Research
RoboBugBench: Benchmarking Automated Repair of Real Robot Software Under an Audited Behavioral Oracle
In ordinary software, a repair benchmark can borrow its answer key from the repository: a maintainer wrote a test, the test encodes intent, and a patch either passes or fails.

- arXiv
- 2610.16369 · accepted · NEURIPS workshop
- Published
- 2026-10-12
- Authors
- Alexey Tuzikov
In plain words
In ordinary software, a repair benchmark can borrow its answer key from the repository: a maintainer wrote a test, the test encodes intent, and a patch either passes or fails. Robot software supplies none of that — a bug shows up as behavior in a continuous control loop coupled to a physics simulator, the run is stochastic, and correctness is an envelope of acceptable trajectories rather than a single assertion.
AI summary
Overview
Research area: Automated program repair (APR) for robot software, benchmark design, and oracle validation — specifically, benchmarking language-model agents that patch real ROS 2 navigation code, graded by physics simulation rather than unit tests.
Technical level: Advanced. The paper assumes familiarity with ROS 2 / Nav2, Gazebo simulation, the SWE-bench-style repair-benchmark template, signal-temporal-logic robustness semantics, and non-parametric statistics (Mann–Whitney U, McNemar, Fisher exact, Wilson intervals).
Scope (1 sentence): The paper introduces RoboBugBench — 33 execution-validated defects in a pinned ROS 2 navigation stack graded by compiling a candidate patch and driving a simulated robot — evaluates three frontier models on it, and then adversarially audits the behavioral oracle that produces those scores.
What This Paper Is About
In ordinary software, a repair benchmark can borrow its answer key from the repository: a maintainer wrote a test, the test encodes intent, and a patch either passes or fails. Robot software supplies none of that — a bug shows up as behavior in a continuous control loop coupled to a physics simulator, the run is stochastic, and correctness is an envelope of acceptable trajectories rather than a single assertion. The authors note that in the ROBUST corpus only 15 of 156 runtime bugs ship a test that exercises them at all.
The goal is twofold. First, build a repair benchmark for real robot defects where the verdict comes from running the repaired robot in a Gazebo mission, not from a unit test. Second, treat that constructed oracle as a research artifact in its own right — measure its error rates in both directions and attack it with deliberately written counterfeit patches, to establish what a behavioral oracle can and cannot discriminate.
Key Contributions
-
An execution-graded repair benchmark for real robot software. 33 defects across 18 packages and 3 source trees in Nav2 1.3.12 pinned at commit
6be3614(cut 2026-04-29). Each instance was admitted only after its buggy and reference behaviors separated under repeated simulation (1501 cached episodes: 653 valid buggy, 848 valid reference), each carries a resolvable reference patch (median 15 changed lines), and each is organized by an induced taxonomy of 5 architectural layers, 9 mechanism classes and 10 oracle forms so results are diagnosable rather than a single scalar. -
A ten-value outcome taxonomy that separates repair from collateral damage. Instead of repaired/not-repaired, every attempt is scored as one of
no_submission,empty_patch,invalid_submission,unapplyable,build_failure,ran_and_failed,fixed_but_regressed,failed_and_regressed,repaired,harness_error. The regression outcome is split so a patch that fixes the defect while breaking working behavior is not pooled with one that simply does neither. -
A three-model evaluation with a fully disclosed protocol. Claude Sonnet 5, Opus 5 and Fable 5, 1 attempt per instance, 3 replicate episodes per evaluation, prompt reproduced verbatim in Appendix C, over 99 model–instance cells. The corpus is dated against contamination: 8 upstream fixes merged strictly after the pin cut, and 14 reference fixes exist in no public record at all.
-
An audited oracle plus a decomposition of where its discrimination comes from. Both error directions are measured against independently assigned labels, and the oracle is attacked with purpose-built counterfeit patches on 11 instances. Sweeping decision rules over the same cached episodes separates the acceptance failure into a fixable part (aggregation) and an irreducible part (an observability bound), yielding a measured detection/false-reject trade-off curve rather than a bare negative result.
Main Findings
-
Repair rates are between one quarter and one third, and the models cannot be ranked. Fable repairs 12/33 (36.4%, Wilson 95% CI [22.2%, 53.4%]), Opus 10/33 (30.3%, [17.4%, 47.3%]), Sonnet 8/33 (24.2%, [12.8%, 41.0%]). All intervals overlap and every pairwise exact McNemar test returns p ≥ 0.21, so at n = 33 the corpus size binds what a between-model comparison can support.
-
Difficulty tracks the oracle, not the domain. Instances graded mainly by process survival are repaired 12/18 (66.7%) of pooled cells, versus 18/81 (22.2%) for instances graded by what the robot actually did. The pooled Fisher test gives p = 0.0005 but is anticonservative because cells cluster three-per-instance; the instance-level test — at least one model repairs 6/6 crash-survival against 8/27 behavioral — gives p = 0.0027.
-
Two architectural layers are unsolved by every model. Pooling cells by layer: runtime configuration 19/54, perception 6/15, planning 5/18, and zero of 6 and zero of 6 respectively in the two layers whose defects sit inside algorithmic or behavior-tree engine logic.
-
Failure is dominated by wrong fixes, not refusal. Every model submitted a well-formed, applyable patch for every instance, and only one build failure occurs across all 99 cells; the mass sits in
ran_and_failed(23, 22, 21 for Sonnet, Opus, Fable).harness_erroris zero for all three models. -
The anti-gaming guard never needed to fire.
fixed_but_regressedis 0 for all three models — no model bought a fail-to-pass pass by breaking a pass-to-pass behavior. The two regressions observed arefailed_and_regressed. The authors had pre-registered the opposite expectation. -
The shipped oracle accepts every counterfeit. All 11 counterfeit patches score
repaired, and 162 of 162 criterion checks hold across both missions and every episode. All 5 held-out correct fixes are also accepted — so the positive column alone cannot distinguish a calibrated oracle from one that accepts everything. -
A third of that failure is an aggregation choice, fixable for free. Under a distributional rule (two-sided Mann–Whitney U, Holm–Bonferroni corrected per instance), α = 0.001 rejects 1/11 counterfeits, α = 0.01 rejects 4/11 at 0/5 false rejects, and α = 0.05 rejects 7/11 but costs 1/5 false rejects. The shipped per-seed tolerance-band rule rejects 0/11 at 0/5.
-
The residual is an observability bound. Between 4 and 7 of 11 counterfeits survive every rule swept. Where the observation map π collapses the difference between the counterfeit state and the reference state, no criterion, no additional episode and no additional mission recovers it — and a continuous robustness margin is just another functional of the same observations, so it moves the oracle within the bound rather than past it.
-
Silent counterfeits dominate. Mining logs that the oracle records but does not grade, only 2 of 11 counterfeits are audible on the control mission, and those are exactly the over-broad-rejection pair. All 4 channels that ever carried a distributional signal are trajectory summaries; the state that separates the silent counterfeits (which parameter the node actually used) is internal and not exported.
-
Reported rates are bounds in both directions. Upward: the oracle cannot distinguish some counterfeits, so an unknown share of
repairedverdicts may be of that kind. Downward: unanimity over 3 stochastic replicates accepts a correct patch with probability q³, which at q = 0.9 is 0.73 — roughly a quarter of correct fixes rejected by run-to-run noise alone. -
Contamination does not explain the scores. Instances whose upstream fix merged at or before the pin cut repair at 10/33 cells, the same rate as the unexposed remainder (20/66, p = 1.0).
-
Self-authored instances are easier, but not because their author graded them. 14 instances have reference fixes the authors wrote. Pooled, they repair at 17/42 cells against 13/57; at instance level, 9/14 against 5/19 (p = 0.0397). Sonnet, which authored every self-authored gold, shows the smallest self-versus-upstream advantage (+7.5 pp, against +21.8 and +23.7 pp for the two non-authors) — the opposite of what self-evaluation bias predicts. The authors read the gap as a selection effect of corpus construction.
-
Verdicts are unstable. On an earlier 15-instance snapshot, the same model run under two elicitation modes agreed on the repaired/not-repaired label for only 9 of 15 instances — roughly 40% of per-instance verdicts change between draws.
-
The corpus is sized for the level, not the ordering. The widest model pair has 6 discordant instances, a 12.1 pp gap on which exact McNemar has 19.6% power. At the observed discordance rate, 80% power at α = 0.05 takes 101 instances at that gap and 410 at half of it.
Methodology in Plain English
Building the corpus. The authors took one frozen snapshot of the Nav2 navigation stack and mined defects from three sources: fixes that landed upstream after the snapshot (so the bug is genuinely present in their code), pre-snapshot fixes reverse-applied, and defects that are real but have no upstream fix at all (where they wrote the reference fix themselves). Provenance breaks down as latent 29, resurrected 2, self-fixed 2. Candidates were authored into runnable packages and put through an admission gate requiring the buggy and reference arms to separate under repeated simulation; 33 of 38 survived, with 5 withdrawn under a pre-registered falsifier battery.
What a solver sees. A task statement, a machine-generated one-line summary of how the buggy run failed its criteria, and the complete current text of every source file the reference fix touches. No issue title or body, no commit message, no upstream link, no repository history, no test. It returns a unified diff.
How grading works. The patch is compiled into the stack and the robot is driven through a Gazebo mission by a fault trigger, with a control mission exercising the same code path legitimately. A criterion battery of 10 forms (distance to goal, collision, velocity envelope, process liveness, action-server state, planner outcome) is split into fail-to-pass criteria the buggy arm fails and pass-to-pass criteria the buggy arm already satisfies. The corpus carries a median of 5 F2P and 5 P2P criteria per instance (164 F2P total), and no instance has an empty F2P set. Because a single Gazebo episode is stochastic, each evaluation runs 3 replicate episodes per mission and the verdict is taken by unanimity over the set. Thresholds are withheld from solvers; the criterion forms are disclosed.
Why P2P matters here. In a behavioral benchmark the cheapest way to satisfy a criterion is often to stop the robot — a zero-velocity "fix" trivially satisfies no collision. Where a test-graded benchmark can leave non-regression implicit in an existing suite, this one has to make it an explicit semantics.
Auditing the oracle. Two things were done. First, both error directions were measured against labels assigned independently of the oracle; dual-reference recalibration brought the battery to 1 false reject in 6 at an unchanged 2 false accepts in 8, down from an initial 43.8% false-reject rate that the authors identify as a grader defect rather than a finding about robots. Second, one counterfeit patch per instance was authored for 11 instances from a fixed fault-operator set (read-only-parameter, blanket-no-op-callback, overfit-to-fault-value, over-broad-rejection, partial-guard), each suppressing the observed failure without repairing the defect, alongside 5 held-out correct fixes as a positive control. The same cached episodes were then re-scored under a distributional decision rule to separate "the rule asks the wrong question" from "the channel threw the information away."
The evaluation. Three frontier models, exactly 1 attempt per instance — no retries, no best-of-N, no reflection on harness feedback, no iterative loop. Rates are therefore single-sample pass@1. Each candidate is compiled and evaluated over 3 replicate episodes per mission, unseeded. 21 rows produced under a retired patch-application path were excluded on provenance grounds; of the 11 instances evaluated under both paths, 10 give an identical outcome label.
Why This Matters
Impact on research. Repair benchmarks have so far inherited their oracles from repositories, which means the whole field's measurement instrument has a property robot software lacks. This paper shows a constructed oracle is possible — and, more usefully, shows how to audit one. Its central methodological claims are that oracle auditing must be two-sided (measuring only false rejects, as SWE-bench Verified did when it flagged 61.1% of 1,699 instances, misses the direction that matters), that aggregation should be fixed before criteria are tightened, and that for any benchmark graded by what a system does, there is a quantifiable ceiling set by the observation channel rather than by the strictness of the predicates. The observability-bound framing — surviving counterfeits are equivalent mutants with respect to the observation channel, a much weaker condition than semantic equivalence — is a transferable idea for anyone grading embodied or cyber-physical systems.
Real-world applications:
- Robot fleet maintenance. Navigation stacks in deployed mobile robots fail in ways that unit tests do not catch; an execution-graded corpus of real defects is a target for automated patch suggestion before a human maintainer is paged.
- CI for robotics teams. The F2P/P2P battery design and the anti-gaming rationale (a stopped robot trivially passes a collision check) are directly reusable as a regression-suite design pattern for anyone running simulation-based CI.
- Safety-case evidence for simulation. The paper's finding that a validation check can be mathematically incapable of failing, and that an instrument can degrade to a constant while passing its own gates, is a concrete failure catalogue for teams that treat simulation logs as evidence.
- Agent evaluation and procurement. Organizations comparing coding agents on embodied or safety-relevant code get a protocol that reports a level honestly and declines to rank on insufficient power, rather than a leaderboard ordering read off overlapping intervals.
Industry relevance. The corpus is concentrated in Nav2, the default ROS 2 navigation stack, so the defects are drawn from code that ships on real mobile robots. The headline level — roughly three quarters of these defects go unrepaired by every frontier model tested, on one attempt, when the model is told exactly which files to read and the median reference fix is 15 lines — is a practical statement about how much autonomy to grant an agent that edits robot control code today.
Future Directions
- Aggregation, then instrumentation, then corpus growth. The authors state this ordering explicitly. Aggregation is measurably free (4/11 counterfeits recovered at zero false-reject cost by switching to a distributional rule); but the rule is frozen for the results in this paper and changing it is a version bump with a republished table. Closing the residual means widening the observation channel π — exporting planner-internal state and controller command sequences as first-class graded telemetry.
- More replicates on both axes. The choice of 3 episodes was cost-driven (each is a full Gazebo rollout, and the campaign is 99 cells deep); repeated sampling over both seeds and attempts is named as the first use for more compute. Seeded spawn-pose perturbation has since landed in the harness, and every number in the paper predates it.
- Scaling the corpus along the axes that bind. Extending beyond one navigation stack to manipulation and a second embodiment is named as the main scaling axis; at the observed discordance rate, ranking models at the widest observed gap needs 101 instances. Two targeted taxonomy categories — geometry and collision-checking gaps for non-trivial robot footprints, and one perception-layer class — remain at or near zero after dedicated harvesting rounds, and 2 instances are graded by distribution-fitted bands rather than an authored semantic discriminator.
- Extending the counterfeit suite and third-party re-execution. The suite covers 11 of the 33 instances (the corpus as it stood at audit time), so the acceptance result is measured on a third of what is released; the observability bound is measured on this channel and this fault-operator set, and a different author's suite might fare differently. Full third-party re-execution awaits a pinned multi-gigabyte image, though the released counterfeit patches, batteries and cached telemetry make the audit checkable without it.
Target Audience
Researchers in automated program repair and LLM-agent evaluation who need to know what changes when the oracle is behavioral rather than a unit test. Robotics engineers and maintainers of ROS 2 stacks who want to understand where current coding agents fail on real navigation code and why simulation-based regression suites need explicit pass-to-pass semantics. Benchmark designers in any embodied or cyber-physical domain, for whom the two-sided audit protocol and the observability-bound argument are the transferable parts. Practitioners evaluating whether to delegate robot-software maintenance to an agent, who should read the limitations section before quoting the 24.2–36.4% figure as a count of correct fixes rather than a bound.
Authors’ abstract
Language agents increasingly modify robot software, but whether they can repair it is unmeasured, because the domain supplies no oracle to inherit: a robot bug manifests as behavior, and robot repositories ship almost no tests that capture it. We present RoboBugBench, a benchmark of 33 real, execution-validated defects in a pinned ROS 2 navigation stack, in which a candidate patch is graded by compiling it and driving the robot through a physics simulation rather than by…
The full abstract on arXivRelated papers
- Examining the Difference in Human Behavior Between Virtual and Real-World Human-Robot Teaming 2026-09-16 · cs.RO · Key terms of the title in common
- Effective Parameters, Real Behavior: Renormalization for Robotics -- From Infinite Electron Mass to Sim-to-Real Gap 2026-07-27 · cs.RO · Key terms of the title in common
- SHOES: Sim-to-real Hardware-adaptation via On-policy Expansion of Skills for Legged Robots 2026-10-12 · cs.RO · Key terms of the title in common
- LynxScenes: A Large-Scale Real-World Benchmark for Outdoor Wheel-Legged Robot Perception, Navigation, Imagination and Reconstruction 2026-10-13 · cs.RO · Key terms of the title in common
- Graph-Reweighted Behavior Cloning with Human Interventions for Precise Robotic Manipulation 2026-10-14 · cs.RO · Key terms of the title in common