Reference:RAWA/Prisoner in Riven

Q: Why was the prisoner sitting in the prison in the first place? Why didn't he just disappear as soon as he was locked up?

A: The "prisoner" is a rebel maintenance man, working on the door. He hears you operating the gallows machinery, and pretends to be asleep, then sneaks through the passage while you're watching the cell open.