> This is a perfect example of the disconnect between "hackers" and the real world.
You're reading way too much into this. The OP's story is completely unrelated to "hacker" culture or the faux-libertarian belief system that is fashionable in SF/SV.
The OP's story is a perfect example of what happens when people who believe they're smarter than everyone else play games with people who don't play games. Nothing more. Nothing less.
The OP wrote that he was told by a police officer that his presence was no longer needed and he was explicitly asked to leave the scene. Instead he stayed and as the situation deteriorated just about every one of his actions had the effect of making his situation worse.
The common characteristic of each of the OP's actions? They were driven by the underlying belief that he was smarter than the people he was dealing with. With just a little effort he could convince the police officers to see things his way. And why not? Many "smart" people have never encountered a tricky situation they weren't able to wiggle out of using logic and reason.
The OP simply learned that you can be too smart for your own good. But let's be clear... as bad as the police state is don't pretend that there aren't other groups that would have responded even more harshly to the OP's attempts to prove his intellectual superiority.
Lesson? Please, understand that you're probably not that smart. Get yourself into avoidable situations that you have to try to talk your way out of at your own peril.