From whippings to forced labor, how the prison system’s understanding of “permissible punishment” has evolved.