Introduce `primary-id` and `secondary-ids` to rules metadata, updates convert to use the identifiers from the rules (!192)