fn profile_record( id: &'static str, root: &AppRoot, agent: &AgentId, profile: &ProfileName, ) -> Check