I was pretty dismayed that Gwynne Shotwell's actions were so blatantly egregious. I'd expect something like that (or probably worse) from Musk, but my view of Shotwell was that she was always "the adult in the room" at SpaceX. So a bit sad to see that she didn't even realize the illegality of her actions (as other comments mentioned, all her actions were clearly put in writing).
Keep in mind she answers to Musk, you can't assume she had the leeway in this instance, especially since he likely got a bee in his bonnet about it and took an uncompromising position.
She also answers to the laws of the society she lives in, which supersede and contractual obligations (or, rather, nullify them).
I've read a book or two that interview/discuss-what the elderly and what regrets they've had about their life: one of the common ones is that they didn't live their life with as much as integrity as they'd like to.