How exactly does user_id work and what is the difference between the top level user_id and the ones in identities?

Billing is based primarily on “monthly active users”, plus additional charges for some special features. Rules don’t cost anything extra as far as I know.