But you are right. I look to provide utility in areas where the net effect seems most likely to be positive. When I can't evaluate that entirely I just assume neutral or no effect, it sort of just dissipates over time, like a wave collapse function, assuming entropy, or some manner of mental equality among peers.
Or because you didn't work on guidance systems, you could wonder if that was the reason the near miss which causes a lot of civilian deaths happened.
Or you could note that the use of military power is not really constrained by technical limitations and never has been, but the effect most certainly is, and start voting and advocating politically which would be more effective at stopping wars in every way.
But then you would have some much more direct responsibility for how the various conflicts turned out.
I don't have the energy for that. These situations are so complicated and they never seem to get resolved. As soon as peace comes someone sees that as opportunity to manipulate (or is the perception of that what causes it to happen?)
I'd rather just stare at math and code, seriously, even if it doesn't talk back like a person. At least it's not crazy.
I'll say. You could throw it in and go work as a coal-miner, but then you'd have to worry about the coal you mined being used to smelt steel that goes on to be manufactured as bomb casings. And so on. Certainly you shouldn't work on anything that offends you conscience, but the mere fact that something can be repurposed for warfare doesn't create moral responsibility.
This isn't to say that worrying about war or your personal purpose is misplaced GH Hardy opined that ballistics was 'repulsive' both because of the moral purpose and the triviality of the mathematics involved, and there are more musings on the ethics of that sub-branch of math here: http://www.augustana.ualberta.ca/~hackw/mp480/exhibit/ballis...
But as long as you're knowingly working on some sort of combat system, it's folly to beat yourself up over the limitations of foreseeability and the vague possibility that something you craft might turn out to have military utility which you din't intend at the time you conceived it. Instead, look for ways to provide utility in other areas.