The stockade is something we desperately need. Some people need to learn how other people see them. Driving 50mph in a living area, stockade. Making a lot of noise at 6 in the morning, believe it or not, stockade. Being a racist cunt, straight to the stockade.
This was one of the really interesting plot elements in World War Z, where towards the end of the war where they couldn't really afford to be wasting resources on prisons, they brought back corporal and public punishment. They'd put people in stockades to let the entire community know they were caught doing something like stealing their neighbor's firewood, or publicly lashing executives who were war-profiteering, and only imprisoning the absolute worst offenders who were incapable of integrating back into society.
For a silly zombie novel, it honestly has a phenomenal amount of prettt interesting social commentary, and is absolutely worth a listen to the unabridged audiobook.
I genuinely, honestly, 100% believe you should be able to option for physical punishment when being reprimanded for minor things. Pepper spray to the face, electric shock, mild caning, etc. Anything that would have little to no harm, even in the short term, but hurts like a bitch. I don't think you should be able to sentence someone to pain, but that the person being sentenced should be able to choose pain instead.