When going through the caves, i attacked an outpost on flight using a Mni. Smartbomb Launcher and some Fire Traps. After Dealing with the faster robots and shooting the Sentry a few times, the Sentry walked over one (or maybe two but i don't think so?) Fire Traps that i think i may have placed there, and was disabled. I went and used an Imp. Datajack(+Mak. Macking Suite) to rewire it, and succeeded. However, it had a "stay" order instead of the regular "follow", and began moving towards the outpost (maybe to the spot it was originally on? I don't know, i stopped it before it got far).
I don't know if it's relevant, but on the Factory map of the same floor, i rewired another Sentry(using about the same equipment) that was already disabled. Afterwards i gave it a "stay" order, and it was eventually destroyed before i left the map to the caves.
I happened to make a copy of the save file (see attached) from before attacking the outpost (i wanted to test later if terrain scanners were related to low fps drops), but i haven't yet tried reproducing the bug to see if it would happen again.
If there was only one, the Fire Trap was probably located right above where Cogmind is in the attached screenshot. If there were two, the second one was probably right below the first, where Cogmind is.