Why institutions keep failing the people they were built to protect - and the containment architecture that could fix it.