I doubt an autopilot would have regained control in a flat spin without an ejection to drastically change the dynamics of the aircraft. I also made the point later that a sufficiently capable AI that could would essentially be able to replace the pilot, rending them moot.
Look, the OP clarified that he meant he wanted an autopilot that tries to lawn dart the plane in an incident of ejection, the purpose of which was to save sensitive technology from the enemy. I still maintain that is silly and if we funded such a program it would be a waste of money.