Tiny pH-sensitive containers helped scratched water-based coatings keep corrosion at bay during demanding saltwater tests.