When a robot defies his programming, is he broken? Or is he something else?

A short story of 5,000 words.