An embarrassing bug: incorrect use of logical or.
Also default to locked for fold, passive and aggressive.