How do I get the autonomy needed for this path and what happens at the end? I usually trigger it unintentionally and everytime I do the robot kills me, any idea on how to stay alive or a guide of that path?
You mean the robotic rebellion scenario?
You can talk your robot pal into switching sides if he/she/it has sufficient empathy (failure means death), if not you need to agree to help the rebellion.
As stsword mentioned, you need high humanity personally, very high autonomy for the robots, and a high empathy but a bit under 20. That should be enough to persuade the robots to call off their revolt.