My honest thought is swarming drones may be just one of the frightening ways the few will control the many. It amazes me that people are so excited about advancing human control technology. Why would anyone want the their offspring to be terrorized into submission, or have their very thoughts not only read but manipulated (different tech, similar goal). Sounds like a sad world to be born into. Children of the future will wonder, who designed these machines and why would they do it? I realize I'm off on a tangent. I'm sure there are better uses for swarming technology.
"Once robots become more common in our societies, the imminent legislation will be put in place (think about the ongoing legislation regarding self-driving cars). Saving agent’s states in transparent way for perception, mapping, planning and object detection will be mandatory in order to have the complete audit of potential misbehaving and unexpected behavior of the agent."
One thing they are overlooking is private block chains can be created so that the ledger is hidden so they can conduct nefarious misdeeds without accountability and now, they can communicate with each-other so they can co-ordinate their acts and the victims wont even know what hit them. The reality is, AI is not the threat. It's who controls it. Look at what drones have already done to entire countries. Now imagine micro-sized swarm drones and the different ways they can kill. None of them are fun. Sorry to be DYSTOPIAN but these are my honest thoughts.
Your post has reminded me of a sort of cyberpunk anime that I've watched. To make it short people started depending on an AI to make judgements, to decide the punishment for crimes, to decide whether a person is violent and the probability of that person breaking the law. It allowed people to act with no conscience because if they had to kill someone it wouldn't be their choice, it would be the AI telling them what to do. You can guess what happened in the end.
If we think about the way that people see the world, on one hand we don't want to be slaves, but there's that subconscious need of not having to decide, if only someone else made the hard choices for us and made sure our life is comfy and free of worries.
If true AI is ever created, eventually people will push it to take over. We will keep giving it more and more freedom and power until it goes too far.