One has expectations built up by accumulated kammic energy. However, such kammic energies can automatically bring arammana only if one has samyojana intact. As the number of samyojana goes down, the likelihood of kammic energies automatically bringing sensory inputs (arammana) will diminish.
___
This is a really important point. It gives me a lot of insight. Sadhu! Sadhu! Sadhu!
Let me summarize what I’ve understood.
The process of recalling memories is separate from kamma vinnana.
This is true for both arahants and puthujjanas.
However, kamma bija, which are formed by our expectations about the world, can automatically generate vipaka vinnana.
This process stops when the related samyojana are eliminated.
Therefore, the pollution/purification of the mind and the process of namagotta gaining energy and returning as dhammā are separate mechanisms.
Arahants perform this using kiriya citta.