Consequences.
If there is a time where she suddenly thought of buying a new better light for her ride, that could only mean she has someone learned a new experience that made her wanting to buy it -- such as recommendation from her friend, being slammed into a drain hole because too dark to be lit for her old light, and so on. It is impossible for her to suddenly think of that without a "connected reasoning".
Just like you do not know that a dung-beetle can explode into 100-meter fiery radius radius exposed to mixture of C4H2O4, quadratic-acid, and C5H8, housane -- and with that now you do, you must avoid that -- oh, don't bother looking it up, I made it up.
I think I left out one of the answer, my apology. I shall now answer you -- We have the ability to bypass the idea of consequences. Well, "hassle" is one thing, there is also "laziness", and other reasons that counteract against the reason of buying a new light, as well as the consequences of not buying a new light. We can completely stop thinking about it, too, since emotional intelligence... is not stable for us humans. Oh, but for A.I, I am not sure. It depends on how efficient you want it be.
After all, our emotional intelligence is governed by chemicals, they are balanced, and can go wrong. Our intelligence and memory is powered by emotion, that is why we can even make wrong logic guesses, forgetting, etc -- Emotion Intelligence is the hardware of our brain.
There isn't any algorithm form needed for second part. What I've explained is already the definition of algorithm. A.I, machines, humans, anything that moves, can only perform one thing -- "action".
"Ignore but remember" is a two-step action. Ignore simply pushes whatever you're doing off your primary goals, and mark it down somewhere beneath a little further of your checklist to be completed later. Ignore may trigger a third-hidden-step, as you can recall what you've ignored, which makes you reconsider your actions.