There is a principle in ethics that forces us to carefully think about the consequences of an action and consider whether its moral value is determined solely by its outcome. The trolley dilemma is a classic experiment developed by philosopher Philippa Foot in 1967 and adapted by Judith Jarvis Thomson in 1985.
https://strongbytes.ai/the-trolley-dilemma-in-ai/
https://strongbytes.ai/the-trolley-dilemma-in-ai/