Civil Comittment

Not sympathizing with these assholes, but one has to check the constitutionality of what this means.
A guy commits some crimes, serves a "court ordered" 15 year sentence. In reality, just a week before he's getting ready to walk out of prison, a board decides he is just too dangerous to be allowed out into the general public. Same board decides to commit him indefinitely to a mental institution. They guy got Gyped, plain and simple. The governing body lied to him when they sentenced him. What they should have told him is that he was being sentenced to the 15 years, then told him he would also be subjected to a civil commitment panel at the end of his sentence and could potentially be institutionalized for the rest of his natural life on earth.
Am I not seeing this thing the right way?
Here is Washington State's take on this:
http://www.doc.wa.gov/community/sexoffe ... itment.asp
A guy commits some crimes, serves a "court ordered" 15 year sentence. In reality, just a week before he's getting ready to walk out of prison, a board decides he is just too dangerous to be allowed out into the general public. Same board decides to commit him indefinitely to a mental institution. They guy got Gyped, plain and simple. The governing body lied to him when they sentenced him. What they should have told him is that he was being sentenced to the 15 years, then told him he would also be subjected to a civil commitment panel at the end of his sentence and could potentially be institutionalized for the rest of his natural life on earth.
Am I not seeing this thing the right way?
Here is Washington State's take on this:
http://www.doc.wa.gov/community/sexoffe ... itment.asp