Locking In Good Behaviour

A commitment device is an arrangement you make in advance that restricts your future choices, binding you to a course of action you intend to follow but might not when the moment arrives. The logic is simple: you know that your future self will face temptations and biases that your present, forward-thinking self wants to protect against.
The concept has ancient roots. In Homer's Odyssey, Ulysses ordered his crew to tie him to the mast so he could hear the Sirens' song without being able to act on it. He used a commitment device precisely because he knew he couldn't trust his future self to make the right decision in the heat of the moment.