Human life has no value for an AI, unless the programmer has set a value for a human individual. AI could be given acceptable margins for collateral damage. That is usually not done because of unrealistic assumptions of humans checking the target suggestions. In any case, AI calculates based on the given data and if there are errors in the data (like a school building listed as an enemy installation), the recommendations become devastating.
The war in Ukraine has demonstrated that theoretical ethical rules do not hold in a drone war. If one nation decides to keep the ethical rules, the other country may not follow the same rules. The pressure in the runoff technological competition is too strong, possibly a matter of survival. When autonomous AI can give an advantage, that advantage is used, even if that increases collateral damage. In this matter, I am a bit pessimistic about the future.
Current AIs are limited models performing given tasks. With improving technology, it is inevitable that someone experiments with a more developed AI. In the experiments, the AI may be given relatively free hands to alter its programming - current AIs are already effective programmers, faster than humans. The current limitations do not tell what an AI could be in the future.
Also in this matter, I am a bit pessimistic - we cannot trust in the good will of programmers, developers and those making decisions. I assume that the first experiments breaking the ethical rules will be top secret or even black ops, so there will be no public debates about what is ethically acceptable.












