Truth layer: one thing per file, and folders are the categories
How to write memory cards, lesson cards, the project register, and decision logs so that both AI and people can find them again: one home per fact, small cards, append-only.
This post covers the truth layer: where the things that AI and I need to remember actually live, and what they look like. The principle fits in one sentence: one fact has only one home. The routing and indexing that come after are all there to help find that home.
Conclusion first
- One file covers one thing, opening with a small card: what it is, its Chinese and English aliases, tags, status, and date.
- Records come in several kinds, each with a fixed format: long-term memory cards, lesson cards, the project register, progress summaries, and decision logs.
- The register holds only pointers: one row per project, pointing to the latest progress record. The narrative goes in the progress record, not in the register.
- Decision logs are append-only: write an entry at the moment the decision is made and do not change it afterward; if it needs to change, write a new entry.
- A second copy counts as a defect: the same fact written in two places will eventually have one copy go stale.
1. Five kinds of records
| Record | What it holds | Format | Scale (2026-11-02) |
|---|---|---|---|
| Long-term memory cards | Facts to remember across conversations: my preferences, project status, where external resources are | One fact per card, plus a one-line-per-card index | 175 cards, spread across 19 folders |
| Lesson cards | Pitfalls I ran into: what happened, how it was fixed, how to detect it | One lesson per card, capped at about 1.5 KB; status is live, spent, or superseded | 216 cards |
| Project register | Which projects exist, how far each has gotten, where the latest record is | One project per row, no row longer than 400 characters | 90 projects |
| Progress summaries | What each round of work did, the decisions I made, and the next step | Each entry has four fixed items: what was done, decisions made, what was left behind, next step | 55 summaries, 21 phase records |
| Decision log | Choices made mid-work and the reasons for them | One line per entry, append-only; my own words are quoted verbatim and checked against the transcript | About 6,900 entries |
The other two libraries hold finished outputs rather than memory: the notes library holds concepts and reading notes, and the asset library holds reusable code and templates. They also follow one file per thing, each with its own index.
2. A small card at the top of each file
Each file meant to be found starts with a few lines of fixed fields (Markdown frontmatter), roughly like this:
---
what: 這份檔案是什麼(一句話)
aliases: [中文名稱, English name, 常見的別稱]
tags: [主題一, 主題二]
date: 2026-11-02
status: live # live / spent / superseded
---- Write aliases in both Chinese and English. My notes are often in English, while my questions are often in Chinese; aliases are the bridge between the two languages.
Added later (2026-11-28): not in the original, but important
An alias only makes a note findable, not linkable. In Obsidian, aliases show up in the suggestion list when you type a link, and search finds them too. But if you write
[[alias]](replace alias with the note’s alias) directly, Obsidian will not link it to that file; it treats it as a note that does not exist yet. To use an alias as the text shown on a link, write[[file-name|alias]]: the part before the pipe is the real file name, and the part after it is the text shown.I only found this by checking against my own health-check tool. It counted a link as fine when it matched an alias, so it kept reporting no broken links. Only after I recalibrated it against the list of unresolved links that Obsidian itself produces did I learn that 27 links were actually broken, most of them written when AI generated notes. The fix had two steps: first I changed the checker to follow Obsidian’s rules, then I changed the code that writes such links.
If you also have AI help write your notes, it is worth checking once. Obsidian’s command-line tool has an
unresolvedcommand that lists every unresolved link across the whole vault.
- A status works better than deleting. Outdated lessons are not deleted; they are marked “superseded” and point to the newer note, so you can still find them when you look back through history.
- About 600 files currently carry this card. The index is computed from these cards (see Index and link-following search).
3. One home per fact

The register, progress summaries, and actual files each have their own role:
- A row in the register: project name, status, path, and “which record holds the latest progress.” That is all; no description.
- Progress summary: what was done this time, what was decided, what the next step is, and the names of the files it changed.
- The actual files: the code, documents, and charts themselves.
When AI takes over a project, following this line gets there in three steps, with no search needed. The reason I insist that “the register holds only pointers” is that the register is read at the start of every session; one extra sentence of description there means ninety extra sentences across ninety projects, and it would also end up clashing with the versions in the progress summaries.
4. Append-only records
Decision logs and lesson cards are both append-only:
- Write the entry at the moment the decision is made, not after the work is over and you have to recall it. A version written from memory often leaves out “why the other option was not chosen.”
- When I state a ruling in conversation, the system copies my exact words in and checks them against the transcript to confirm I actually said them.
- If a decision changes, write a new entry that points to the old one; the old entry stays unchanged.
This makes it possible to answer questions like “why did I decide this in March?” and keeps AI from quietly rewriting what I said.
5. Classify before writing
Before adding any file, answer two questions:
- Which layer it belongs to: a rule, a tool, the output of one round of work, an entry point for others, or a record?
- Who will read it: a machine, the engineer who takes over, or a general reader?
Write the answers into the card, in the layer and audience fields. The most common fate of a file in the wrong layer is ending up in a folder that nobody looks at later.
Limits of this layer
- Every file needs a card; skip it once, and that file can only be found by full-text search.
- Memory cards come in “one set per working folder”: something recorded in folder A is, by default, not visible to a conversation opened in folder B. To make up for this, I built a separate read-only master index (see routing layer).”
← Previous:Getting AI to find things again: Markdown files and folders as the core of memory
Next:Routing layer: what AI reads at the start, and what it reads only when it hits something →
Email subscriptions will open later. For now, you can follow new articles and work with RSS.