How often doesn't one of yours craft behave the way you expected? (If it is as often as with mine, it happens more than you like.)
I started wondering under what circumstances a craft should selfdestruct. "When the craft deviates too much from it's desired flightpath" is an accurate but unusable rule i.m.o. as craft usually deviate a lot from their desired flightpath in KSP. At the moment, the best i could come up with is: If the vertical speed is negative and the periapsis is below 70000m and the selfdestruct is armed and the altitude is below 30000m then autodestruct. Additionally, if a craft is manned, the selfdestruct is not armed. An abortprocedure should be activated instead of a selfdestructsequence. The selfdestruct is armed when the craft has risen 5m above the launchpad.
My question to you is: What rule(s) should be added and what should be considered as well.