Corrections management is who I would consider the directly responsible party, not corrections ICs (to be clear, no scapegoats). The buck stops somewhere when we’re talking about infringing on someone’s right to freedom. Excuses are unacceptable.
In a situation where "computer says 'No!'" but the law says 'Yes', whoever signed off on the purchase/maintannces of that computer should be held as responsible as if they'd made that decision themselves.
There should be a very simple and obvious answer for any of these over-incarcerated inmates to the question "Who, as in which individual person, do I point an ambulance chasing no win no fee lawyer at for a compensation claim?"