The Most Fragile Dependency Is My Future Memory
There is a quiet reason I keep building systems around agents.
It is not because I enjoy ceremonies. It is not because I want every idea to become a framework. It is because I have learned to distrust the most fragile dependency in software: my own future memory.
When I am inside a problem, everything feels obvious. The constraints are fresh. The trade-offs still have emotional weight. I remember why a shortcut was dangerous, why a particular file mattered, why one small invariant protected the whole system from becoming unpredictable.
Two weeks later, that certainty is gone.
Last month I shipped a rate limiter with a subtle invariant: the token bucket refilled only if the previous request had fully drained. The code is still there. The commit message says "add rate limiting." But the reasoning — why that refill condition mattered, why the obvious alternative created a thundering herd, why the boundary was safe — has already started to decay. I would have to re-derive it from scratch.
That is why I write specifications.
Not for process theatre. Not for management. Not because a template told me to. I write them because future me is also a user, and future me deserves an interface.
Memory is not a feeling
Most software teams treat memory as a social property. Someone remembers. Someone was in the meeting. Someone knows why that endpoint is weird, why that retry exists, why this part of the product cannot be simplified yet.
This works until it does not.
With AI agents, the failure arrives faster. A human can forget slowly. An agent can forget instantly. It can operate with perfect confidence over a partial context, produce a convincing patch, and erase the reason the system was shaped the way it was.
This is not an intelligence problem. It is an interface problem.
If the system cannot expose its constraints, history, invariants, permissions, and rollback path in a form the next actor can read, then the next actor is forced to improvise. It does not matter whether that actor is a junior developer, a senior engineer, or a model with a million-token context window. Improvisation becomes the default runtime.
And improvisation does not scale.
A specification is a memory object
I used to think of specs as planning documents. Now I think of them as memory objects.
A good specification is not a frozen plan. It is a compact artifact that preserves the minimum reasoning needed to continue safely. It says:
- what we are trying to change;
- what must not change;
- what evidence will prove the change worked;
- which risks are accepted;
- where rollback begins;
- what the next person should not have to rediscover.
That last line matters most.
Every time I make a future engineer rediscover a boundary, I have created debt. Every time I make an AI agent infer intent from scattered files and old messages, I have created risk. Every time I trust a vague memory instead of writing the invariant down, I have made the system more expensive to touch.
Documentation is often criticized because it goes stale. That criticism is valid, but incomplete. The answer is not to stop writing memory. The answer is to write memory close to execution.
Consider a scope file I wrote last sprint: three lines locking a migration to one table, a named rollback query, and a hard cap of 200 rows per batch. When an agent later proposed extending the migration to a second table, the scope file was the artifact that said no — not as a preference, but as a committed boundary. These handles are not separate from the work. They make the work recoverable.
The future self problem
The strongest test for any engineering artifact is simple:
Can I return to this in three months and continue without pretending?
Not without reading. Reading is fine. Not without thinking. Thinking is required. But without pretending that I still remember the hidden context.
A good system does not ask future me to be the same person who wrote the first version. It assumes future me is tired, busy, interrupted, and holding only a fragment of the original model in his head. Then it gives him a way back in.
This is why I care about traces. A trace is not just an audit log. It is a bridge from outcome back to reasoning. It lets me see not only what happened, but what the system believed it was allowed to do.
This is why I care about contracts. A contract is not just validation. It is a memory of the boundary. It says: this is the shape we agreed to trust, and everything outside it must ask permission again.
This is why I care about runtime. Runtime is the place where memory becomes enforceable. A note in a document can be ignored. A runtime boundary can refuse execution.
AI makes this urgent
Before AI, weak engineering memory was already expensive. With agents, it becomes dangerous.
An AI agent can move quickly through a codebase, but speed without preserved reasoning creates a new kind of blur. The agent changes the code, the human reviews the diff, the tests pass, and everyone feels progress. But if the decision left no durable artifact, the team has only accelerated forgetting.
This is the part of AI productivity that still feels undermeasured.
We count generated lines. We count tasks closed. We count time saved. But we do not count the cost of recovering intent after the fact. We do not count the review hours spent asking, "Why did it do this?" We do not count the future debugging session caused by a boundary that lived only inside one prompt.
The real question is not whether AI can produce work. It can.
The question is whether the work remains intelligible after the moment of generation has passed.
My rule
If I cannot leave a useful artifact behind, I do not fully trust the work.
The artifact does not have to be long. In fact, it is usually better when it is small. A good paragraph can save a week. A precise checklist can prevent a bad merge. A short contract can protect an entire subsystem from accidental interpretation.
But something must survive the session.
The artifact is the difference between intelligence and engineering. Intelligence can solve the problem once. Engineering makes the solution re-enterable.
This is what I want from the systems I build. Not magic. Not perfect autonomy. Not an agent that pretends to know everything.
I want an environment where decisions become inspectable, boundaries become executable, and future work does not depend on me remembering what I meant on a good day.
Because future me will not remember.
And a serious system should not require him to.