I got into a habit of writing down things that required continued work next day, at the end of my workday. Initially I started doing this because it would take too long to get back into the depth needed to be productive especially after a long weekend or context switching for a day or two due to something time critical. The most effective form of "state dump" being specifically what is the next thing I need to immediately work on given next opportunity.
Overtime I realized, this "checkpoint" allowed me naturally to evaluate how much time and energy I spent on something and be specific about the next thing that would move me towards the outcome I wanted. This focus would:
1/ put my mind at ease, because I know what's important was written down and I don't need to spend mental energy keeping the state alive in my mind.
2/ It would direct my thinking towards what is important to do next time around rather than thinking of interesting but nuanced thing that are actually low value in grand scheme of things.
3/ Often, narrowing down what's the next thing I need to do meant I had a solution next morning and would often experience high productivity in first few hours of the day.
ymmv.