I agree that Escort job stress appears to be wrongly indented. However, on mental breakdown, the captured effect is removed from a slave. "func add_effect(effect, remove = false):" It's confusing because the author reused code in a weird way, but add_effect() is used to add and remove effects.
I have updated the wiki for traits, occupations, and specializations. Though, I didn't bother labeling them as bugs, there are a large number of differences between stated effects and actual effects.