Caravan contracts seem horribly buggy to me. Besides the issue where a sudden attack gets auto-resolved as a loss, it seems that (in certain cases that seem completely random) attacks upon caravans you’re protecting can result (after the completion of the contract) in the same caravan, it’s home settlement and the settlement’s noble overlords all becoming hostile towards you, as though you were the one that attacked the caravan (when, in fact, you saved it from ruin and got it safely to the destination, at the expense of masses of damage and injuries which don’t have time to heal/repair before you have to fight all these inappropriately hostile forces).
+1