Project: Bug hunt
Six faults, planted one at a time. For each, predict the cheapest layer that will catch it, then plant it, run the layers in order, and record which one actually caught it and how long that took. Revert before the next.
Then do the part that matters most: find a fault that nothing catches, and write the test that would.
Tasks
Boundary. Add
<exec_depend>ros_gz_sim</exec_depend>tosrc/threevn_bringup/package.xml.Version drift. Change
VERSIONwithout touching any package.A pose at the edge. In
config/so101_follower.yaml, change the third value of thereadypose,elbow_flex, from0.8to1.68: inside its 1.69 rad limit, by half a degree. A pose that close to a limit is one a real arm may never arrive at; find out what notices.Impossible motor. In the same file, raise
limit_derate.effortfrom0.68to1.2, so the derived effort limit exceeds what the servo can deliver.Unenforced limits. Set
enforce_command_limits: falseinsrc/threevn_bringup/config/so101_controllers.yaml.Silent matcher. Replace the pattern in
FORBIDDENintest_package_dependencies.pywithr'(?!)'.For each, run
make testfirst, thenmake test-rosonly if needed, thenmake test-simonly if needed. Revert withgit checkoutafter each.Now find a seventh fault that passes every layer. Write the test that catches it, and show it failing on the fault and passing without it.
Done when
- A table with six rows — fault, predicted layer, actual layer, time to red — every cell filled in.
- At least one prediction was wrong, and you can say why.
- A seventh fault, uncaught before, now caught by a test you wrote.
git statusis clean apart from your new test.
Where to look for an uncaught fault
Look for documented promises with no test behind them — a sentence in docs/ that says something "must" or "never" happens. Then look for the test. Sometimes it is not there.