Replaced or Just Historical? How to Stop Old Decisions From Running Your Agents
Replaced or Just Historical? How to Stop Old Decisions From Running Your Agents Somewhere in your project there is a note that is no longer true. Maybe it says you are waiting on approval for something that got approved three days ago. Maybe it describes a migration plan you abandoned, a vendor you dropped, a pricing rule you reversed in a call nobody wrote down. The note still sits there in the repo, in the shared doc, in whatever file your coding agent reads first. And because it is written
Replaced or Just Historical? How to Stop Old Decisions From Running Your Agents
Somewhere in your project there is a note that is no longer true.
Maybe it says you are waiting on approval for something that got approved three days ago. Maybe it describes a migration plan you abandoned, a vendor you dropped, a pricing rule you reversed in a call nobody wrote down. The note still sits there in the repo, in the shared doc, in whatever file your coding agent reads first. And because it is written down, cleanly, in the place where true things live, everyone treats it as current. The agent treats it as current. The reviewer skims it and treats it as current too.
This is not a hypothetical. In one case that made the rounds in r/ClaudeCode, a superseded migration note stayed in the shared context after the plan had changed. A downstream consumer got built against the old note. It broke in production, not because anyone was careless, but because two separate readers, one human and one agent, both trusted a file that had quietly stopped being true.
Another operator described the slower version of the same bug. A summary said "waiting on approval for X." Approval came. The summary, written a few minutes before the approval landed, never got updated, and the next several handoffs copied that one line forward for days. Nothing exploded. Work just kept routing around a door that was already open.
If you run agents across sessions, or hand work between people who each bring their own AI tools, you have some version of this. The question people actually ask, and it came up almost word for word in r/ClaudeAI, is this one:
"How do you decide when something should be marked as replaced vs just kept as historical context? That feels like the part that gets messy really fast."
It does get messy. But it gets messy in predictable places, and there is a workable rule set. Here is what I have seen hold up.
The core distinction most teams never write down
A note needs replacing when something downstream still acts on it. That is the whole test.
If a decision feeds a build, a config, a price, a customer promise, or another agent's next step, it is load-bearing. When it changes, the old version is not history. It is a trap. Mark it replaced, point it at what replaced it, and do it in the same change where the new decision lands.
History is different. History is the record of what you tried and why you stopped. A rejected approach, an experiment that went nowhere, a design you argued about for a week and dropped. Nobody should act on those today, and that is exactly why they are valuable to keep. Six months from now, when someone suggests the rejected approach again, and someone always does, the historical note is what stops the team from paying for the same lesson twice. One developer put it well: keep a rejected idea file with the reason and the date, and have the agent read it before planning, because without the reason it just retries the same idea.
So the rule is not about age. Old notes are not automatically stale, and new notes are not automatically true. The rule is about whether anything still executes against the note. Load-bearing and changed means replaced. Background and finished means historical. When you cannot tell which one it is, treat it as load-bearing. That mistake is cheap. The other one is the production incident.
Why agents make this worse than it used to be
People have kept stale docs forever. What changed is the reader.
A human who has been on a project for a year carries a rough sense of which docs to trust. They remember the argument in the standup. They know the migration got paused even if the doc never said so. An agent has none of that. As one commenter put it, agents treat docs as the word of God. Whatever is in the file is the world. There is no raised eyebrow, no "wait, didn't we drop that?"
Handoffs make it worse again. When work passes from one session to the next through a summary, the summary becomes the source of truth for the next reader, and summaries copy lines forward without rechecking them. The "waiting on approval" line survived precisely because each handoff trusted the previous one. Nobody lied. Nobody even made a decision. The staleness just compounded quietly, the way interest does.
And there is a subtler drift. A few operators have noticed that what fades first is not the facts but the reason behind the original ask. The agent keeps executing the plan while slowly optimizing for what is convenient for the agent, more steps, more tooling, more cost, because the note preserved the what and lost the why. A decision record that only stores the outcome is already half stale on the day you write it.
The mechanics that actually work
None of this needs a platform. It needs habits, applied the same way every time.
Mark superseded at the top, not the bottom. When a note is replaced, the first line of the old note should say so, in plain words: SUPERSEDED, followed by the date and a link to the replacement. Not a footnote. Not a comment at the end. Agents read top-down and so do tired humans. If the warning is on line 40, it may as well not exist.
Make the replacement link two-way. The old note points to the new one, and the new note names what it replaces. Then check that the two agree. That sounds fussy until you have followed a "see the new plan" link to a document that describes a third plan entirely. Link agreement is a five-second check that catches a surprising amount of drift.
Declare what the note depends on. One of the smarter patterns I have seen: a note lists the files or decisions it depends on, right in the note. When one of those files changes in a pull request, the note gets flagged for review in that same pull request. Review is triggered by change, not by a calendar reminder nobody honors. Staleness stops being something you catch by squinting and becomes something the workflow surfaces while the context is still fresh.
Write the why, in the words of whoever decided. "We are not doing the Postgres migration" is a decision. "We are not doing the Postgres migration because the one consumer who needed it got retired in September" is a decision an agent can actually use. It can tell the difference between a new situation that reopens the question and the same situation wearing a new hat. Short decision logs beat full chat transcripts here. One founder described their format as just the goal, what was tried, what got ruled out, and why they landed where they landed. That fits on half a page and survives handoffs that a 200-message thread does not.
Keep state and history in separate places. Mixing "what is true now" with "what happened" in one running document is how both get corrupted. The state file should be short, current, and ruthless: if a line stops being true, it leaves. The history file can be as long as it wants. Several people running DIY second-brain setups have landed on exactly this split, with new context updating the state rather than piling onto old notes, and disagreements between the two getting flagged instead of silently resolved.
What about just deleting the old note?
Tempting. Also usually wrong.
Delete the old migration note and you have solved the stale-read problem, sure. You have also deleted the only record of why the new plan exists. The next agent, or the next hire, sees a plan with no visible alternatives and reasonably wonders whether the obvious alternative was ever considered. Then they try it. Deletion trades a visible trap for an invisible one.
The exception is pure status noise. "Waiting on approval," "build is running," "will update tomorrow." Those lines have no historical value at all once they expire, and keeping them marked as history just adds clutter that real history drowns in. Expire them without ceremony. Save your ceremony for decisions.
Where shared memory tools fit, honestly
Everything above works with plain files in a repo, and for a single tool on a single machine it is probably enough. The seams show up when the same project runs through several tools. A decision recorded in one tool's memory never reaches the other tool, and then you get two agents working from two different versions of the truth, each internally consistent. People hit this constantly: the note lives in CLAUDE.md, the other agent reads a different file, and the rejected idea comes back like it was never rejected.
That is the gap shared memory layers aim at. Vilix AI is one of them: you connect tools like Claude, Codex, and Cursor to one account, exchanges get saved as you work, and retrieval is recency-aware, so when you correct something in one place, the newest version is what the next tool sees. Its conflict rule is deliberately simple, last write wins, which matches how most of us actually settle these things out loud. It costs $10 a month for Starter and $20 for Pro if you go that route, with a free plan if you just want to test the shape of it.
Worth being clear about what a tool like that does not do. It does not decide for you whether a note is replaced or historical. It does not write the why. Recency-aware retrieval helps when the correction was actually saved; if the approval happened in a hallway and nobody told any tool, no memory system on earth will save you. The discipline is the product. The tooling just decides whether the discipline survives a tool switch.
Plenty of people solve this with less. A decisions folder in the repo, one file per decision, a naming convention, and the superseded-at-the-top rule will carry a small team a long way. A shared doc works until it doesn't, and you will know the moment: it is the moment a second tool or a second person starts acting on a different copy.
A five-minute audit you can run today
Open the file or doc your agent reads first. Read only the first screen. Count the claims that are still true. In most projects I have seen described, and in a few of my own, that count is uncomfortably low, and the false ones are not exotic. They are approvals that landed, plans that changed, people who left.
For each false claim, ask the one question from the top of this article: does anything still act on this? If yes, mark it replaced and link the replacement before you do anything else. If no, move it to history with its reason attached. If it is expired status noise, delete it and feel good about it.
Then add the dependency line to the notes that matter most, the three or four decisions your whole project leans on. Those are the ones that deserve a review trigger. The rest can wait for the next audit.
Stale context rarely announces itself. It just sits there, well formatted, in the trusted file, waiting for a reader who believes everything they read. Your agents are exactly that reader. The fix is not more documentation. It is documentation that knows how to retire.