Most assistant memory starts as a convenience feature: keep a preference, avoid asking the same question twice, remember the name of a project. It becomes an operations problem the moment an assistant participates in work that matters. At that point the questions change. What did the assistant retain? Where did it come from? When was it last checked? How can a human correct it without starting over?
The mistake is treating memory as a longer chat history. A chat history is a transcript. A useful operating memory is a set of claims with sources, owners, and conditions for review. It may be stored locally, remotely, or in a hybrid system, but it needs an intelligible boundary. Local-first means the durable record stays under a boundary you can inspect and move. It does not mean every model call must run on the same machine.
Separate the records before you retrieve them
I keep four layers separate. Source is the original note, ticket, transcript, file, or database record. Summary is a derived interpretation of that source, dated and written for a specific purpose. Retrieval is the subset of context selected for one task. Correction is an explicit human change to the record.
Putting those layers in one blob creates confident but untraceable answers. If an assistant makes a bad recommendation, you cannot tell whether the source was stale, the summary changed its meaning, the retrieval was too broad, or a correction never reached the model. Separation makes the failure diagnosable.
This is not an argument for a large enterprise knowledge graph. Even a small practice benefits from a handful of explicit fields and a reliable source link. The goal is to make memory modest enough to maintain and clear enough to inspect.
Retrieval should leave a trace
The response itself is not the whole system. A useful assistant should be able to say what class of record it used, which version of the summary it saw, and whether a human correction applied. That does not require exposing a private chain of thought. It requires preserving the practical evidence needed to investigate a wrong answer.
For a technical workflow, I record the memory identifiers included in a task, not every token of a conversation. If the outcome is questionable, I can inspect the selected records, check their source links, and decide whether the problem was retrieval, summary, or instruction. That is a small amount of observability with a large payoff.
The same rule protects against accidental authority. When a summary is clearly marked as a summary, it does not quietly become the canonical source. When a correction is a first-class record, a human can override a previous assumption without deleting history. When retrieval has a trace, a system can be improved without guessing why it sounded certain.
Memory needs expiry, not just accumulation
More retrieved context is not automatically more useful. Stale summaries, copied assumptions, and poorly scoped retrieval can make an assistant sound more certain while becoming less reliable. A good memory record has an owner, a review rule, and an expiry condition.
Some records are durable by nature: a repository location, a project’s source-of-truth policy, or a documented interface contract. Others decay quickly: a current priority, a person’s availability, a temporary workaround, or the state of an open ticket. Treating both as permanent creates a private mythology inside the assistant.
The simplest rule is to distinguish stable facts, working assumptions, and temporary state. Stable facts can be retrieved until their source changes. Working assumptions need a review date. Temporary state should be either time-bounded or attached to the ticket that owns it. The assistant does not need to remember everything. It needs to remember the right things in a way that people can correct.
What this looks like on my hardware
My assistant memory is HuginnLM. It runs on Huginn, a Raspberry Pi 5 (16 GB) with an AI HAT+, and stays at home in Boston while I travel. Records are split into domains (one per project: the motorcycle restorations, this site, infrastructure, and so on), and every AI tool I use reaches it through the same MCP server over my Tailscale network. Claude Code, the voice assistant and the agent queue all read and write the same records.
The rule that came out of running it: a save that times out may still have committed. Indexing is asynchronous, so searching for the record straight away can come back empty even when the write succeeded. Retrying blind creates duplicates. Now every agent checks a failed save by ID or by the most recent records, never by search, before it tries again. It is a small rule, and exactly the kind of thing a memory system has to write down.
Where local-first helps
A local-first boundary keeps the durable record independent of any one model provider or chat interface. That matters when tools change, when a model needs to be replaced, or when an internet connection is unreliable. Remote models can reason over a task. They should not be the only place where the task’s usable context exists.
This does not eliminate privacy or security work. It makes the work visible. You still decide what data belongs in a record, which systems may retrieve it, how long it may remain available, and who can correct it. The point is not to claim that a local database solves governance. The point is to preserve an operating surface you control.
Reusable artifact: memory record schema
Use this small schema for any memory that may influence meaningful work:
| Field | Purpose | Example |
|---|---|---|
| Record ID | A stable reference for retrieval and review. | memory/project-neilships/architecture-004 |
| Subject | The entity or decision the record concerns. | Signal Brief publishing flow |
| Source link | The original file, ticket, or system record. | Link to docs/DEPLOY.md in the repository |
| Source excerpt or fact | The minimally necessary claim. | Production publishes only after an approved dev → main pull request. |
| Summary | A derived interpretation, clearly marked as such. | Agents may draft posts but do not publish directly. |
| Status | Stable, working assumption, superseded, or expired. | Working assumption |
| Owner | Person responsible for correction or review. | Neil |
| Last verified | Date the source was checked. | 2026-11-05 |
| Review or expiry rule | When the record needs attention. | Review when the CI workflow or host changes. |
| Retrieval trace | The task or response that used it. | brief-publish-2026-11-05-01 |
When a human corrects a record, add a correction that references the prior record instead of silently overwriting it. The goal is not permanent history for its own sake. It is enough history to understand why an assistant used a claim and to stop it from using the wrong one again.