pub(crate) async fn references( services: &Services, affected: BTreeSet<u64>, ) -> Result<References>