Build log · It gets senses

technical

The note that became a garbage magnet.

One note quietly collected 156 facts from other projects. How a single wrong match grew into a cascade, and the check I added to stop it.

· 3 min read

156 facts in a note meant for a few dozen

I was reviewing a note, one of the units that holds everything the memory knows about a specific project, and the count said 156 facts. A healthy note carries a few dozen at most. I opened it and started reading.

It held facts about three different projects, financial data next to system logs, and names from contexts that had nothing to do with each other. The worst part is that I can’t tell when it started.

How one misrouted fact attracts the next

The curator sends every incoming fact to the note where it belongs, and the matching was based on similar words. If a fact mentioned a word that appeared in the note, it counted as a candidate. That ignores who the note is about. A fact about one project mentioned a term that also appeared in a completely different project's note, and the curator matched on the word instead of the subject. That one wrong match made the note more mixed, which attracted more wrong facts, which made it worse again. It was a cascade, and a silent one: nothing flagged it until the note was bloated beyond recognition.

  1. One wrong matchOn a shared word, not the same subject
  2. A more mixed noteNow it shares words with more topics
  3. More wrong factsAnd the note gets more mixed again
By the time I looked, the note held 156 facts.

Checking the subject before the words

I added a subject check that runs before the word match. Now the system asks "is this fact about the same thing this note tracks?" before it looks at how similar the words are. If the subject doesn't match, the fact doesn't go there, however relevant the words look.

Before: words first

  • A shared word was enough to make a note a candidate.

After: subject first

  • The fact has to be about what the note tracks; only then do the words count.

Then I moved the misplaced facts out by hand, to where they belonged. Two days later the first outside audit found leftovers still sitting in that note, so the cleanup took more than one pass.

Routing on similar words alone doesn't work for a memory, and the subject check should have been there from day one. If you route memory by similarity in your own setup, look at the fact count of your biggest buckets first: a number far above the norm, like 156 where a few dozen is normal, was the only visible symptom here.

Javier

The curator that routes facts on its own is part of DARA.