JohnnyCode.ai Blog

The Correction That Survived

A memory file is not a ratchet.

Published

Illustration for The Correction That Survived

If you read Slop Is an Operations Problem and added a memory file, you have not built a ratchet. You have built a diary.

I left Layer 04 as a paragraph on purpose, and that was the wrong kind of short. The audit was about the whole pipeline. The stealable sentence was “put it in memory.” That is the sentence that will get implemented. It is also the one that fails in the morning.

A diary records that you were right once. A ratchet makes the miss expensive to repeat. Those are not the same object. They both live in markdown, which is how they get confused.

Here is the implementation I expect, because it is the one I would have done in 2024. Open the assistant. Paste the rule into memory. Close the tab. Feel finished. Monday, a different window, a different path, the same miss. Then a conclusion that “memory doesn’t work.” Memory worked. It recorded the lesson in a place the Monday path did not read.

The claim

Persistent memory is not Layer 04.

Layer 04 is three rules. What gets promoted. How many doors it lives on. How it gets reversed when it is wrong.

A note in a drawer is spoken teaching that happens to be written down. Compact the window, take a path that never reads the file, start a session that does not load that drawer, and you are back to manners. The model will apologize again. It is good at that.

I already showed you an artifact that survived. A comment format, April, still firing in August, on every path that posts a comment. I am not walking that file again. The file is not the point. The promotion is the point.

Twice is the gate

Most people promote on the first miss. That is how you get dogma.

The first time a model gets something wrong, you do not have a pattern. You have a Tuesday. Fix the artifact. Ship the comment, the function, the query. Do not write law about a one-off. Encoding a one-off is how a preference becomes a hallway that every future session has to walk.

The second time is different. The second time, the miss has a shape. Same wrong format. Same wrong drawer. Same assumption about a framework default. Now you have evidence that the apology did not take. Now you write it down as law: one line for recall, a Why so a future session can apply it to a case you did not enumerate, a How to apply that names every path that could violate it, and provenance back to the session that taught it.

Twice is the gate. Not because two is magic. Because once is a mood and twice is a system starting to tell on itself.

I have a workflow miss annotated recurring because it burned me twice. It has not burned me a third time. I am not going to name it here. The scar is the annotation. The proof is the absence. If you want a sharper receipt, the name is sitting in a memory file, not in a blog post, and that is the correct drawer.

One door is a diary

Writing the law once still fails, and this is the part the memory-file implementation will miss.

A rule that lives in one file is a retrieval problem. The session has to find it. The path has to read it. The compacted window has to keep it. Any one of those failing returns you to model defaults, which is to say, to the miss.

That is why a law has to live on the paths that could break it, not only in the drawer that describes it. The template so the blank shape is already right. The skill so the path that writes cannot “forget.” The prompt so the model is instructed in the same shape, not a nearby paraphrase. The command so a human invocation and an agent invocation hit the same rule. Memory so a session that never opens the skill still gets the fact.

I named those five doors in Slop as a receipt. I am naming the failure they exist to prevent. One door is a diary with a good filename. Five doors is what makes a miss unshippable on a path you are not watching.

You do not need five because I have five. You need more than one, on the actual paths. Two doors that can fire without each other is a ratchet. One well-written memory file is a hope.

The test is rude and short. Open a new session. Do not mention the rule. Take a path that should have been covered. If the miss ships, the diary is doing what diaries do. They remember. They do not intercept.

The reverse is part of the mechanism

Prune Your Agent was the delete key. This is the promote key. They are one mechanism. If you only promote, you will encode a bad correction and make it permanent. If you only prune, you will keep the drawer clean and forget the useful scar by morning.

Law that is wrong is worse than amnesia. Amnesia returns you to model defaults. Wrong law returns you to a confident mistake, on every path, with provenance, which makes it harder to see. A ratchet that cannot reverse is dogma with a file extension.

The reverse is not a vibe pass. Findings in my corpus carry verdicts: verified, proven, refuted. A refutation sits next to the original conclusion. You do not get to delete the history because it is embarrassing. You mark it, and the next session is allowed to know that this law died.

Taste still decides what gets promoted. Accountability still has my name on it. The agent can draft the memory file. Whether it deserves to be law stays human. Nothing unverified ships, including a new standing rule.

The honest version

This does not make me smarter than other engineers. Same weights. Forty-one years of coding does not make the model remember. The apparatus remembers.

It also does not require a museum. If you copy a layout of dozens of workspaces and thousands of lines of workflow in order to get this, you will spend a month building something that is not the point. The point is one miss that has already happened twice, written as law, nailed into more than one door.

I still generate slop. Regularly. The pipeline makes it unshippable. The ratchet makes the same slop cheaper to catch the second time. That is the whole dividend. Not zero defects. A falling cost of the ones you have already paid for.

The gap that people keep attributing to “he is just better with the tools” is this dividend compounding. Their Tuesday includes re-teaching Monday. Mine does not. The models did not diverge. The mornings did.

Promote one

Do not build an apparatus this week.

Pick a miss that has already happened twice. Not once. Once is a Tuesday. Write it the way a law is written: one line, a Why, a How to apply that names every path, the session that taught it. Put it on two doors that can violate it without asking each other. Memory may be one of those doors. It must not be the only one.

Then open a new session tomorrow and see whether the miss comes back.

If it does, you still have a diary. Fix the doors before you write the next rule.

If the miss stays dead, you have started a ratchet. Prune it when it goes stale. Promote the next scar when it earns the promotion.

A memory file is not a ratchet. Make one correction survive.

First published August 29, 2026 on 42 Insights.

← All posts