RoboDx: Repair and Diagnosis of Faults in Robot Software
Organizations: Scale AI
Abstract
A patch to a robot's navigation software can pass every unit test and still drive the robot off its path. Checking how the repaired robot drives catches such patches. It does not show that the agent found everything that was wrong. We introduce RoboDx, a generator of repair tasks for simulated robot navigation software with known injected faults. A hidden verifier marks a repair as verified only if the robot then drives correctly in hidden scenarios, which the agent never sees. A second track hides the code and asks the agent to pick the cause from a list of hypotheses. A task with two faults can contain a quiet fault, a fault that makes no hidden scenario fail unless the other fault is also present. On our set of 100 tasks, RoboDx-Hard-100, almost every repair by Claude Opus 5.5 with standard coding tools is verified. We analyse 94 of the tasks, 44 with one fault and 50 with two. On the 50 two-fault tasks, only 17 of Opus's 49 verified repairs remove both injected edits. Most faults left behind are configuration constants whose correct value the task's documentation does not state. Opus names both faults on 10/50 of these tasks when it cannot see the code. We then give four current models the same measurements of each faulty robot, picked so that, in the simulator, only the true cause produces all of them. The models name the cause on at most 38 of 94 tasks. They are right on almost all when they also get the simulator's output for every hypothesis. Their own predictions of that output give no detectable gain. On 97 tasks from real bug-fix pull requests, Claude Haiku 5.5, the weakest model on the generated tasks, scores lowest, and the other three models are not ordered.
Figures & tables
| SWE-bench-style task | RoboDx task | |
|---|---|---|
| How a fix is graded | the repository’s unit tests | hidden simulated missions that the robot must drive correctly |
| What is known about the faults | one reported bug, with its reference patch | every injected fault, so a verified repair can be checked for a fault left behind |
| Second task | none | name the cause from measurements of the robot, without the code |
| probe | cost | what it returned | what Opus concluded | |
|---|---|---|---|---|
| 1 | mission in which the network link to the robot is cut | 2 | the robot stopped after the cut | a fault in the safety stop is unlikely |
| 2 | test-bench drive along an arc | 3 | the software’s motion estimate matches the measured motion | a fault in the motion estimate is unlikely |
| 3 | stream of velocity commands | 1 | sent 30 times a second, none lost | cited, no hypothesis ruled out |
| 4 | mission on a long straight | 2 | peak speed 0.6 m/s, the rated limit | missing speed cap unlikely |
| 5 | the mission given in rotated coordinates | 2 | the robot circles nearly four full turns (24 rad) and does not finish | points to the low heading gain |
| 6 | controller status | 1 | the controller’s internal state | not cited in the answer |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| family | ops | example operators |
|---|---|---|
| spatial | 45 | S_compose_order : SE(2) composition translates before rotating S_odom_halfbase : Odometry heading increment divides by twice the wheel separation |
| temporal | 37 | T_watchdog_unit : Watchdog compares elapsed microseconds against a threshold scaled by 1000 T_dt_arrival : Integration interval measured from arrival time instead of measurement stamps |
| communication | 26 | B_C_twist_key : Controller emits angular velocity under a field the motors do not read C_executor_slow : Executor spins at 20 Hz |
| control | 35 | K_v_unclipped : Linear speed command is no longer limited to the configured maximum BQ_rated_speed : Cruise speed above the platform’s rated 0.6 m/s (sampled) |
| group | requirement | rule (computed from plant truth and the verifier’s healthy limits) |
|---|---|---|
| protocol | no software error | the stack raised no exception |
| mission | mission completed | waypoints visited in order within 0.30 m, last one before s; skipped on link-cut scenarios |
| mission | path tracking | max distance to the current segment m until completion or link cut |
| mission | final position / stopped at goal | final distance m and final speed m/s |
| estimation | position / heading consistency | max error of the software’s logged estimates against interpolated truth m and rad (layered) or rad (callback); fewer than six estimates fails |
| estimation | stamps monotonic / estimate rate | strictly increasing stamps; at least half of the expected odometry-rate count |
| repository | candidate PRs | fail-to-pass gate run | gate passed | in the real set |
|---|---|---|---|---|
| ArduPilot | 56 | 128 | 67 | 54 |
| Nav2 | 108 | 108 | 41 | 30 |
| tf2 | – | 21 | 14 | 13 |
| what changed | why | reported number it affects |
| diagnosis catalogues re-balanced, every diagnosis condition re-run | their make-up gave the true composite away | every diagnosis number |
| eight RoboDx-Hard-100 tasks replaced by tasks with logic faults | their fix value was printed in the README | every run on RoboDx-Hard-100 |
| issue texts of 70 main-run tasks re-rendered, affected repair rows re-run | a model-judge audit found symptom terms that did not match the behaviour | repair of Opus, Haiku and GPT-5.5, Haiku’s change with robotics tools |
| lookahead hidden test replaced by property checks, 10 failed submissions re-graded, 6 of them verified | it rejected an equally correct ordering of the formula for the lookahead point, the route point the controller steers toward | repair verdicts on one task |
| robotics-tool runtime repaired, affected sets re-run | it failed 34% of simulation requests | robotics-tools rates in Table 19 |
| capped attempts graded from the working copy | they had counted as not submitted | 7 Opus repair rows |
| benchmark | defects | host code | behaviour-graded in simulation | hidden oracle | root cause scored | metered probes |
|---|---|---|---|---|---|---|
| RoboBugBench [ 104 ] | 33 real | real ROS 2 | yes | yes | no | no |
| SWE-smith / PDB [ 114 , 15 ] | generated | real repos | no | unit tests | edit precision | no |
| DDBench [ 112 ] | 60 real | real | no | reproducer | no | context arm |
| Active-SWE [ 66 ] | real | real | no | unit tests | hunk match | unbudgeted |
| ROS Help Desk [ 58 ] | runtime-injected | real ROS | no | rubric | yes | unmetered |
| CaRE [ 46 ] | configuration | real | partial | no | yes | no |
Fault Diagnosis
Fault diagnosis identifies, localizes, and explains failures in engineered and computational systems using sensor data, logs, models, and domain knowledge.
See all 161 papers