The caddisfly has an amazing ability to build armor for itself by using a self-produced underwater glue to hold together pebbles: https://www.youtube.com/watch?v=Z3BHrzDHoYo.
How could this behavior and the ability to produce the glue have evolved? The survival advantage of the current level of the caddisfly's ability is clear, but how were the incremental stages advantageous? How could it have developed its armor-building ability without a strong enough glue? And how could it have developed a stronger glue without the armor-building ability that would make it useful?
My guess would be that before it was building a full shell like it does now, it started just by holding a pebble or two to itself. Then perhaps the bodily fluid that is now used as glue gradually increased in stickiness and helped the organism keep hold of the rocks or keep them together. It seems, however, like any modest amount of increase in stickiness that could occur due to mutations wouldn't have been enough to keep the rocks together.