"To prevent cities being turned into panopticons, we should make sharing data with people trying to build them mandatory"
The reason why panopticons work is because the prisoners don't know what the guards can see. And due to this asymmetric power relation, it is very hard to revolt. There are two solutions: either prevent the information gathering, or make the information publicly available. The former solution is not possible if you don't know what information is being gathered, so we are left with the second solution (to start with).