Were the rules binary (e.g. "don't do X") or did you make yourself a point system?
I had a target number of calories per day, plus guidelines for the sort of things I ought to eat to feel full enough and get enough nutrition at low calorie levels, and an understanding that if I broke the target number, it was better to do it by a little rather than a lot.
I was pretty successful (dropped down to approximately 7% body fat according to an electrical impedance scale,) but I learned that it was important not to break the targets at all, because it was practically impossible to break them by just a little. If I did, it was hard to not simply give up on diet control for the day.
The "what-the-hell" effect, when you break a rule and then go on a rule-breaking rampage, like binge eating after a single dietary transgression, is a very common failure mode. It was recently mentioned in the Overcoming Bias blog comments on the Which biases matter most? Let’s prioritise the worst! post. I have not been able to find an explicit discussion of this issue here, though there are quite a few comments on binge-<something>.
From the Psyblog entry quoting this paper:
Although everyone was given the same slice of pizza; when it was served up, for some participants it was made to look larger by comparison.
This made some people think they'd eaten more than they really had; although in reality they'd all eaten exactly the same amount. It's a clever manipulation and it means we can just see the effect of thinking you've eaten too much rather than actually having eaten too much.
When the cookies were weighed it turned out that those who were on a diet and thought they'd blown their limit ate more of the cookies than those who weren't on a diet. In fact over 50% more! [Emphasis mine]
Other examples include sliding back into one's old drinking/smoking/surfing habit. For example, that's how I stopped using Pomodoro.
My (title) question is, what's the mechanism of this cognitive failure and whether it can be reduced to a combination of existing biases/fallacies? If the latter is true, can addressing one of the components counteract the what-the-hell effect? If so, how would one go about testing it?
For completeness, the top hit from Google scholar to the "what-the-hell effect" query is chapter 5 of Striving and Feeling: Interactions Among Goals, Affect, and Self-regulation, by Martin and Tesser.
EDIT: personal anecdotes are encouraged, they may help construct a more complete picture.