Congratulations in advance, @lanzjoseg
It seems to me that this excerpt contains the key to the topic developed!
"However, AI can also be programmed so that this behavior is ignored but we fall into a loop that happens if artificial intelligence simply does not follow the rules and becomes totally autonomous in its decisions."
Since I started evaluating your post, I asked myself the question:
Will the man be able to use AI counterproductively?
Machine learning is a pattern that is encouraged by human intelligence, but at the time that man is able to ignore its limits and program information to the machine, which is not in line with the interests of humanity, that's when The problem will come.
Ethics characterizes the wise and prudent man, hopefully the ambition of power and control over the rest never leaves aside the virtue that represents ethics for the development of new technologies hand in hand with the preservation of the world order.
I hope this message could contribute to the forum!
@nachomolina