This seems to be a core of the problem with trying to leave things to autonomous agents .. The response to Amazons agents deleting prod was to implement review stages
https://blog.barrack.ai/amazon-ai-agents-deleting-production...