Contractual communities in the self-organising city