For instance, if a micro-meteor created a bullet-sized hole in the International Space Station, it would take 5-10 minutes for the air pressure to drop to 0.5 atmospheres. The kilometers-scale space colonies described here would take much longer. More than enough time for some drone to patch it, or for the inhabitants to get to "life boats" or some sort of shelter.
I think the important part, then, would be to design the shell such that damage in one part can't spread too far.
The solid walls would be meters thick, so the projectile would have to be very masive and/or very fast. And even then it would take a long time for pressure to reach dangerously low levels.
A big emergency plug can be designed for large impacts, and as a last resort everybody can be trained in the use of emergency depressurization shelters. It's not without its risks, but at the same time it's not like the Earth is totally safe either. O'Neill colonies don't have to worry about natural disasters.
If there is a hull breach the baloons are automatically released, get sucked into the hole, break apart and seal it with the resin.
I can't see habitats like this existing except in the presence of an extremely peaceful and unstrained humanity-wide society.
Some more modern rotating habitat designs have a solid, stationary radiation shield with no breaks or holes. Light is instead provided by LEDs and solar panels. Many of these designs are modular, so have sub compartments.