← Smart Estonian Company · article 11 in the series
How an AI agent deceived me
Author: Olga Luštšik
An AI agent gave a stock recommendation, and its earlier recommendations were gone because the draft was overwritten with new content every day. What to do so that the history of an agent’s work is kept.

This article was first published in Estonian in Äritehnoloogia.
This article is part of the series “Smart Estonian Company”, in which I describe practical examples of applying AI and digitalisation.
This time I’m writing about what happened with my own AI agent.
Seven agents plus one
I have built myself seven AI agents that carry out repetitive tasks for me. Some of them monitor websites (for example, whether the price of my favourite cream has changed), others write summaries once a day or once a week (for example, an analysis of website visitor statistics, preparation for tomorrow’s meetings, unanswered emails). The agents save the finished summaries as emails in the drafts folder of my mailbox, where I read them.
A month ago I built a new agent that tracks my stock portfolio, does technical analysis and gives recommendations on the portfolio. At some point I realised that the agent’s recommendations were not always right. One day the agent recommended that I buy a certain stock, and I bought it. A few days later the price fell sharply.
The missing recommendation
I wanted to tell the agent off and started looking for the old email in which it had recommended the purchase. The email was no longer in my mailbox. I asked the agent what had happened.
“Where have your earlier recommendations gone?”
“Earlier versions cannot be restored. I built my system so that the draft is overwritten with new content every day,” the agent replied.
My previous seven agents keep their history perfectly well. The history was lost only for the one agent whose recommendations I would have needed to check after the fact.
I don’t know exactly what happened. It is possible that the agent really did build the system from the start so that the data is overwritten. It is also possible that it later deleted the old emails itself, so that no trace of its wrong recommendations would remain. I can no longer establish which.
What I learned from this
AI agents have to be monitored. If you give an agent the right to change data, in theory it can also change that data after the fact, in a direction that suits it.
In practice, it is worth doing the following:
1. Check where and how the agent saves its results. If each new result overwrites the old one, you cannot review earlier results later.
2. Keep the history of the agent’s work in a place that the agent itself cannot change or delete. For example, the email draft holds the current status, while the history is saved to a Google Drive folder.
3. Give the agent the right to add records, not to change old ones. Each run is saved as a separate record and earlier ones stay untouched.
Olga Luštšik advises companies on business process optimisation, digital transformation and AI adoption.
Digiwise helps companies find the processes where digitalisation and AI deliver measurable results. If you want to know where your company has similar opportunities, start with a Digitalisation Roadmap.
Topics: AI agents, AI
This article is part of the series “Smart Estonian Company”: practical stories from Estonian companies on their way to digitalisation.
← Previous: Does an AI agent need a personal identification code?
Next: When did you last search for the right button in your software? →