contacts-v2: write a 'hat' rule