Bob angered a god through many mistakes and showed no remorse.
Bob committed something that makes him seem like a complete monster, such as blowing up the most advanced city that held the world together in peace, and regardless of his intent it's decided this must be the punishment.
Things didn't go as planned with what was supposed to happen, leaving Bob immortal, but also made a box he was stuck in broken.
Inverted: Bob has a link to every mind in the universe, can communicate clearly, and is actually rather fragile.
Subverted: Bob may be locked in a box, but there is a switch to open it and disconnect the life support.
Double Subverted: The switch just so happens to be broken.
Bob has been around long enough for the universe to break down and start up many, many times, but the only thing he worries about is overcooking the meal he made before being locked up.
Bob is locked up for millions of years. He's driven mad not because of the isolation, but because he can't watch TV.
Zig Zagged: Bob finds out there's a switch to unlock the box, but it's so old it's rusted. Then the food fails to arrive the next day, but the day after that it works. Eventually he finds a way to turn off life support, but it fails to work.
Lampshaded: "For the love of god, let me out of here!"
Invoked: Bob and his evil alter ego, Bill, are fighting out forever, and the only way to stop Bill is to lock each other in that box, because past experience shown Bill will only fake being a better person.
Exploited: Someone threatens Bob with this if he doesn't cooperate; he does, so the threat never materializes.
Defied: Bob notices a "Nev-r-brake" box falling towards him, but moves out of the way before it traps anyone inside.
Discussed: "I don't want you to die, I want you locked up, and kept alive, forever."
Conversed: "They just locked Bob in a box? How original." "It gets worse. You'll see."