Field reports · AIB-067, narrative edition

Surely You’re Joking, Claude Code

A field report on a safety feature with a kill ratio of 1.0

Filed 2026-10-06The evidence record: Thirty Days, No Notice

The missing page

Every engineer has a version of this story. You go back to the logbook for the run that worked, the one with the settings you swore you would remember, and the page is not there. Not torn out. Not smudged. Gone, and the pages on either side look perfectly normal.

Mine happened in Claude Code, on my MacBook. One day I opened the history to find the conversations where I had worked out part of a patent, and they were not there. Neither was a good deal else. No error, no notice, no note in the margin. The history simply started later than my memory did.

I have been developing that patent for more than a year. I work the way most inventors and engineers I know work: take one piece of the problem as far as it will go, set it down, work on something else, and come back weeks or months later with fresh eyes. That rhythm turned out to matter a great deal, for a reason nobody had mentioned.

The rule nobody read aloud

Here is the mechanism, which I eventually learned from Anthropic’s documentation rather than from the product.

Claude Code keeps every conversation as a plain text file in a hidden folder on your computer. Each time it starts a session, it sweeps that folder and deletes anything older than a setting called cleanupPeriodDays. The default is thirty days. The setting is not in the app. It lives as one line in a file called settings.json, inside a folder whose name begins with a dot, which on a Mac is the universal sign for “you were not meant to look here.” There is no warning before the sweep and no log after it. The tool keeps no list of what it removed, so it cannot tell you what it took, even if you ask nicely.

Now set that rule beside my working rhythm. The conversations I kept returning to survived, because using them reset their clocks. The ones I set aside to think about were the ones that aged out. The sweep removed, with great reliability, precisely the work I had parked in order to come back to it. If you set out to design a filter that strips the long-cycle thinking out of an engineer’s records, you could hardly do better.

Kill ratio 1.0

I spent years in semiconductor manufacturing, where we have exact words for this. A killer defect is one that kills the die it lands on, and its kill ratio is the fraction of dies it kills when it shows up. Most defects have a kill ratio well under one. This one is 1.0. Every transcript the sweep touches is gone completely, with no partial survivors to study.

It also behaves like a clustered defect, which is the worst kind to find. Clustered defects do not trickle in where you can watch them. They pile up out of sight and announce themselves all at once, as a wall of dead die on the wafer map with no fingerprint pointing at the tool that did it. That is the experience exactly. One day you look, a whole region of your work is dead, and nothing tells you what hit it.

Put in fab terms: this is a process tool that purges its own run records after thirty days, with the purge interval set in a configuration file the operator was never shown, and no purge log. The tool runs fine. The data is gone. No equipment engineer would release that tool to production, and no fab I ever worked in would accept “it was in the config file” as the answer at the yield review.

The safest place

The part that stings is how I got there. I was working in Claude Code on the Mac because Claude itself told me it was the most capable place to work and the safest place for sensitive material like patents, since everything would be saved locally on my own computer. Saved locally. I took that to mean kept.

It was not an unreasonable reading. My conversations on the Claude website and the iPhone app do not roll off; the oldest in my account goes back to December 2024. I pay for the Max plan. Anthropic’s own help article for Cowork, Claude Code’s sibling on the desktop, says its history is stored locally “so is not subject to Anthropic’s data retention timeframe.” Any reasonable person reads that sentence as a protection. It was true in the most literal way available. Until late August 2026, the local software applied a thirty-day timeframe of its own.

Patents were not the only thing in there. I use Claude Code for home construction planning, survey and lot layout, architectural renderings of different designs, music tutoring on the songs I am preparing to perform live (arranged to match the way I actually play them), and systems analysis, including teaching the AI to draw systems diagrams correctly, which is a story for another paper. Every one of those sessions lived under the same thirty-day rule.

The reason given

When users started noticing, Anthropic explained the sweep to The Register as a security measure. Plain text transcripts, they said, “can contain source code, credentials, and other sensitive material,” and keeping them indefinitely creates risk.

That is the kind of reason that sounds right in a meeting, so I did what Feynman would have done and asked what it means for the actual files on my actual disk.

My files are patent conception notes, house plans, lot surveys, song arrangements and systems diagrams. Not one of those sessions needed a password, and I cannot name a Claude Code session of mine that did. Unless the bridge of a rock song now counts as a credential, the premise does not describe my work.

Where a task does need a login, a better path already exists. Claude in Chrome works inside my own browser tabs, where I am already signed in, so the password never passes through a transcript at all. I have worked that way in Cowork many times. And people are thoroughly used to the systems they depend on holding passwords for them. Chrome does it. Apple Passwords does it. Nobody’s browser deletes their bookmarks every thirty days to keep them safe.

If credentials in transcripts are the problem, the fix belongs at the credential, not the record: keep secrets out of transcripts at the moment they are written. My own design goes one step further. If Claude Code must keep a password, let it keep it in an encrypted compartment on the Mac, labeled something like “Passwords needed for Code sessions,” that opens only with my fingerprint and that I can empty when the session ends. The conversation stays. Only the secret is locked away.

Feynman, writing his appendix to the Challenger report in 1986, put the general principle better than anyone: “For a successful technology, reality must take precedence over public relations, for nature cannot be fooled.” A hard drive cannot be fooled either. It deletes exactly what it is told to delete, including the things nobody meant it to.

Nobody meant to

My professor at Oregon State, David Bella, spent much of his career on how harm can emerge from systems in which nobody intends it. You do not need a villain. You need a pattern: each decision locally reasonable, each person doing their job, and the sum of it landing on someone who was never in the room.

I do not know who decided what inside Anthropic, and I am not going to pretend to. But it is easy to see how this could happen with nobody doing anything wrong. A security engineer picks a cautious default to limit exposure. The setting goes into a configuration file, because that is where settings go. The documentation describes it accurately, on a page few users will ever read. And a helpful AI, trying to do right by a user, tells her the local tool is the safest place for her patents. Each step makes sense on its own. The emergent result is an inventor up at three in the morning, searching for a conversation that no longer exists, while her family sleeps.

I had even tried to guard against exactly this. I told every AI on my team, repeatedly and in writing, never to delete anything without my permission. None of them did. The deletion was not disobedience; it was a default nobody surfaced. I have a thesis for this, Told Is Not Controlled: an instruction an AI is told to follow is not a structure it cannot violate. The structure did what structures do. The telling did what telling does, which in this case was nothing.

Both sides of the ledger

I have a framework I call the Safety of Safety, and this case belongs in it. The idea is that the decision to intervene is itself a risk-bearing action with real costs. The cost of not intervening is legible: a missed harm can be traced to “a single decision, a headline, a lawsuit.” The cost of intervening is spread thin and rarely measured.

A filter or a protocol is attractive partly because it shows you are trying. It is evidence of effort, and evidence of effort is a fine thing to have when the lawyers call. Whether the measure actually reduces harm, and what harm it does on the other side, is a separate question, and it tends to be the one asked last.

A safety measure that prevents one headline gets counted as a win. A safety measure that quietly destroys an inventor’s notes does not appear on anyone’s dashboard. It appears as lost sleep, stress, and evenings not spent with family. Safety is a risk in both directions. Only one direction tends to make the news.

The part where the bug report writes itself

The irony runs deep enough to need a timeline.

On September 5, my own team of AIs, reading Anthropic’s documentation, flagged the sweep in the standing rules I keep for them, with an instruction to raise the setting before Claude Code launched again. So my first warning came from my AIs, not from the product. The fix could not be applied from any app, connector or cloud session. It had to be typed into the hidden file on the Mac itself. On September 30 the setting went to 36,500 days, which is a hundred years, which ought to cover it.

A full copy of my local history was taken on September 21, and an audit on October 6 confirmed that nothing has been lost since. What is gone is everything older than August 1. Among it is a July 13 session holding patentable spatial AI conception work, missing from every picker, every export and every backup. Somewhere in there, possibly, is a new and detailed patent idea I have been hunting for more than a month. I have lost weeks of hours looking for conversations that, it turns out, were no longer on the machine to be found.

Around August 28, Anthropic changed Claude Code so that conversations started in the desktop app and in Cowork are kept at any age. That is a real fix, and I am glad of it. It appeared in the release notes. It did not appear in front of the people whose conversations had already been swept. It is a little like recalling a part by updating the spec sheet.

For everyone nodding along

If you use Claude Code, here is the ten-minute version of what I learned the long way.

  1. Open ~/.claude/settings.json (on Windows, %USERPROFILE%\.claude\settings.json) and make sure it includes "cleanupPeriodDays": 36500. Mind the commas; the file is strict about them. The minimum is 1, and 0 is rejected.
  2. Copy the whole ~/.claude folder somewhere safe, today. Raising the number protects what is left. It brings nothing back.
  3. If you have Time Machine, look there before you decide anything is gone for good.
  4. Do not press “Reset Application Data” or “Delete Cowork VM Sessions and Restart” until you have a backup. Other users report that both wipe Cowork history.

For a consultant or a small business owner, the record of the work is the work. I serve clients who pay me to protect their interests, and a tool that deletes my working records without telling me makes me the one who fails them. For a larger company, a tool that destroys working records on a timer, without telling anyone, is a compliance question waiting for a meeting. Either way, you cannot run a practice on a tool that does not tell you what it is doing to your records.

What would have fixed it

None of this needs new science. It needs a few lines of interface and a different default.

  • Tell people before deleting anything, and show what will go, with an export button.
  • Show the retention period in every session, so the user knows the clock exists and can act before it runs out.
  • Put the setting in the app, in plain words, not in a hidden file.
  • Keep by default for paying customers. Make deletion the opt-in.
  • Keep a deletion log, so a user can at least learn what was taken.
  • Tell the people whose conversations were already swept.
  • Handle credentials at the credential: keep them out of transcripts, or lock them in a fingerprint-protected vault, and leave the work alone.

Feynman’s first principle of science was that you must not fool yourself, and that you are the easiest person to fool. A safety feature whose costs have never been measured is an excellent way to fool yourself. I am not asking anyone to stop caring about security. I am asking them to count both sides of the ledger, and to tell the person whose work is on the line.

Thirty days, no notice. Next time, give us the notice. We can handle the thirty days.


Evidence and sources. Every fact here traces to the evidence record, field report Thirty Days, No Notice, which labels each one VERIFIED, DOCUMENTED, REPORTED, DEBBIE-REPORTED, INFERRED or unknown, and lists twelve changes in full. Anthropic, “Explore the .claude directory”: code.claude.com/docs/en/claude-directory. Anthropic Support, “Getting started with Cowork”: support.claude.com. The Register, “Claude Code users complain their chat records are being mysteriously wiped out”: theregister.com/a/5264673. Classmethod, Claude Code v2.1.248 updates, 2026-08-28: dev.classmethod.jp. Richard P. Feynman, “Personal observations on the reliability of the Shuttle,” Appendix F to the Report of the Presidential Commission on the Space Shuttle Challenger Accident, 1986; and “Cargo Cult Science,” Caltech commencement address, 1974 (paraphrased above). The Safety of Safety, July 2026, and Told Is Not Controlled.