Your /memory folder works until the second writer shows up

December 2, 2026

The first sign is a file you did not create.

You run git status in the memory directory and there it is, decisions.md.orig, sitting next to decisions.md. The main file has angle brackets nobody typed. The agent loaded it anyway, because reading what is there is the only thing it knows how to do. It was two versions of the same decision, stitched together with conflict markers.

You wrote that file. So did a teammate, the same afternoon, from a laptop in another timezone. The folder had no opinion about which of you was right.

Folders do not have opinions.

Nothing is wrong with markdown. Nothing is wrong with git. What changed is the writer count. A memory directory is a real fix at single-player scale, and the second person with a second machine is the boundary it was never built to cross.

That boundary is the subject here.

Why the directory works at first

You built it for an honest reason. The agent kept relearning things the team already knew, so you gave it a folder of markdown, loaded at the start of every session, appended to whenever something worth remembering happened.

It works. Grep works. The files sit in the repo next to the code they describe, diff like everything else, and survive harness switches because every harness can read a file. Plain text is the most portable format we have.

The part that matters is quieter. At single-player scale you are the only author and the only reader. Every write to memory is serialized through one head, yours, which means consistency is free. Nothing conflicts because nothing is concurrent.

That is why it worked for months. It was boring, which is the highest praise available for infrastructure.

What the folder cannot fix

A directory gives you storage and retrieval. What it does not give you is a write path, the machinery that decides which record is canonical when two people write at once, what happens to a conflicting write, and who may change what.

Others have hit this wall. Oracle's developers published a comparison of file systems and databases for agent memory and drew the line at the same place. Flat files stop scaling once consistency across writers becomes the job. Practitioner writeups make the same point from the other side, their titles calling markdown a sticky note rather than agent memory. Read them closely and the complaint is consistent. The format is fine. Everything around the write is manual.

The first thing to break is write discipline. Once more than one person writes to the directory, nobody owns which file is canonical. Two edits to the same record on the same day produce something a folder has no mechanism to resolve, because a folder has no mechanisms at all.

It has files.

The second writer

Picture the version of this where nobody did anything wrong. A new engineer joins, gets the agent set up in her first week, and does exactly what you did. She has the agent write down what it learned. The record she updates is one you wrote last quarter, and her correction is right. Yours is now wrong, and also still there.

Which one is canonical? The folder will not say. The agent will read both and do its best, which means it will average two confidently written records of one decision, or take whichever sits higher in the file.

So the team re-litigates a decision it already closed, in a meeting that exists only because a folder could not arbitrate. The tax compounds. Every unresolved pair of records teaches people the memory directory is unreliable, which makes them write to it less, which makes it less reliable.

Nobody wants to fix the records by hand. That job has a way of finding the person who cared enough to build the directory in the first place, and staying with them.

Sync conflicts, and why they multiply

Maybe you saw this coming and put the directory in git from day one. Good instinct. It buys you something real: history, blame, the ability to roll back a bad write.

Then the conflict markers start.

Git merges code well because code has line-level semantics and tests that catch a bad merge. Prose written for a model has no merge semantics at all. A conflict marker inside a sentence is just more sentence, and the model will happily read the merged wreckage as though it were knowledge. The .orig files and the angle brackets are the folder telling you, in the only language it has, that it has no write path. Just a version-control system doing its best with content it cannot parse.

And it multiplies, because memory gets written constantly. Code is written by some of the people some of the time. Memory is written by every session of every agent of every person, which puts the concurrent-write surface close to everything, all the time.

A second failure hides under the first, and it explains most corrupted-memory reports. Per-task transient state, the scratch context of one session, got committed next to durable team decisions, and then synced everywhere. When people say their shared memory corrupted, they usually mean they synced the wrong thing. The fix is separating what is durable and shared from what is per-session and private, and a folder can only express that separation by convention, which is to say by hoping.

What a store does that a folder cannot

A shared store makes the write path explicit instead of inherited from whoever remembers the convention. It owns canonicity, one record per decision with the rest as history. It handles concurrency instead of emailing it to you as a merge conflict. And it keeps per-session state out of the durable layer by construction, so the scratch of one session can never overwrite the decisions of the team.

Cloudflare's engineering team has written about agent memory in exactly these terms, durable state with a real write path rather than a static file. The framing survives contact with the failure modes above.

The write path is also where approval lives. A store can hold a write as a proposal and let a person accept or reject it before it lands, which turns the second writer from an incident into a normal, boring event, the kind infrastructure is supposed to produce.

A folder is a place things are. A store is a place things happen, with rules about how.

When to retire the directory

Retiring the directory is a boundary, not a failure, and it deserves a decision made on purpose rather than a bad afternoon.

The strongest counterargument first. Plenty of teams fix this with conventions, a naming scheme, an owner per file, a rule that memory changes go through review like code. At small writer counts that works, and some teams run it for years. But you are rebuilding a database out of code review, the discipline tax lands on whoever volunteered for it, and a rule written in prose is not binding the way a mechanism is. It is a suggestion with a commit hook.

The retirement question is a cost question. When the hours spent manually reconciling writes across people exceed the cost of running a store with a real write path, the directory is past its boundary. You can hear the answer in a few signals. Conflict markers appearing weekly. Decisions getting re-litigated that the memory was supposed to have closed. People quietly writing less because they do not trust it. One person spending their week as the memory librarian.

If you are seeing those, you are already paying for a store. You are just paying in the worst currency available.

What this changes for you

Two moves, and you can make the first one today regardless of what you run. Split the durable from the transient now. Team decisions live in one place, and per-session scratch lives somewhere it is never synced. That alone kills most of the corrupted-memory reports.

The second move is putting the durable layer behind a write path with conflict handling, and an approval step for writes that change what the team has decided. This is the boundary we built Synthweave against, one store that people and agents both read and write, where an agent's edit to an existing record is held as a proposal until a person accepts it. The automatic gate covers edits to existing records; creation is ungated, and it depends on autoAccept being off. Stated plainly, because you would find it anyway.

The directory did its job. It carried the memory from one writer to the moment the team showed up.

Somewhere in your repo there is still a decisions.md.orig. Resolving it by hand buys you another quiet week, and the quiet weeks are real. But the second writer is still out there, with the same afternoon free, and the folder is still a folder.

← All writing