It’s true; until I thought this all through out loud, I thought that I may be able to store my histories using a well-known pattern and then deal with AI in a problem-specific way.
Now I think a true solution will be more problem-specific in terms of how I structure both the past and future data. I accept that it’s not really a GQ any more, or indeed a question anyone can answer without analysing the source.