Divergent (Divergent, #1) by Veronica Roth
He eventually ties his fate to the Erudite enemies.
There just may have been some facepalming as well.
For example, failing to improve the world's environmental problems.