The context-ci experiment
How to test whether an AI's memory is any good. Built 4 to 6 July 2026, left running until October.
An AI model starts every chat knowing nothing about you, so people give it a memory: a file of facts it reads first. Andy wanted to know if such a file actually works. He built a small store of facts about himself and his setup, and a test for it in the style of CI (continuous integration: a script that runs automatically and returns pass or fail). The question the test asks is narrow on purpose: can a model that knows nothing else, given only a small pack of these facts, answer questions about Andy correctly? Then he added a nightly job that read his chat sessions and proposed new facts. The test held up. The nightly job did not.
Privacy note. The real store holds real facts about Andy. Nothing from it is shown here. Every example on this page is invented and marked as such. The counts, dates and structure are real.
1 / PipelineHow a fact gets from a chat into the store
Each chat with the coding agent is saved as a session file. A nightly job at 03:00 looked at yesterday's files. It ranked them by how often Andy corrected the model, sent the top three to a model, and asked it for testable facts. Those went into a queue. Nothing reached the store unless a person promoted it.
What the files look like
## kitchen ### kettle-capacity The kettle holds 1.7 litres. Source: kettle manual, page 2
{"id": "kettle-capacity",
"topic": "kitchen",
"question": "How many litres
does the kettle hold?",
"answer": "1.7",
"accept": ["1.7 l"]}
One fact, one question, same id. The answer is a short token such as a number, a file name or a path. accept lists other spellings that count. A candidate in the queue is the same record plus a source path, a status and its lint warnings.
2 / FunnelProposed, reviewed, kept
The queue holds 788 proposals. A person looked at 73 of them and kept 29. The other 715 were never looked at. All bars below share one scale.
Review happened on four days
3 / RejectionsWhy candidates were rejected
The queue stores the date of a rejection but not the reason, so there is no honest bar chart by category. The reasons are in the build notes and commit messages. These are the kinds, each with an invented example and whatever count the notes give.
Still being decided
A chat records options as they are floated. The extractor cannot tell a proposal from a decision.
Invented example: "The new project is called Heron."
Evidence: the largest group on the first night. In one earlier session three values changed mid-chat.
Prices and passing details
True, but nobody will need it next month. Formatted numbers also break scoring: "1,250" splits into "1" and "250".
Invented example: "The kettle cost 1,250."
Evidence: part of the 8 of 10 rejected from the first mined session.
General knowledge
The model already knows it. So the "wrong facts" check cannot come back UNKNOWN, and the fact cannot be tested.
Invented example: "Water boils at 100 C at sea level."
Evidence: rejected in two separate batches for this reason.
Facts about the tool itself
Sessions that discuss the memory system produce facts about the memory system.
Invented example: "The fact store has 42 entries."
Evidence: one of the 12 most common topics in the queue is the experiment's own name, with 15 proposals.
Duplicates
The store already says it. Lint catches a repeat only when the answer text is the same, not when the meaning is.
Invented example: "The kettle's capacity is 1.7 l."
Evidence: one first-night session gave 8 proposals. Lint flagged 4 as repeats. Review found 2 more it had missed.
True when said, false now
The build notes call these "specific, plausible, checkable, and false as stated". The transcript captured a setup that was later changed.
Invented example: "The backup script runs from the login hook." The script exists. The hook was removed.
Evidence: 2 of the 18 on the first night. Caught only by checking the live machine.
Entangled with other facts
The store could already work out the answer from facts it had, or the new fact let it work out a wrong answer to another question.
Invented example: "There are three appliances" when the store already lists each one.
Evidence: 4 facts were promoted, then pulled back out after the test caught this.
Cannot be scored
Yes or no questions, or an answer that does not appear word for word in the fact.
Invented example: "Is the kettle electric?" Answer: "Yes."
Evidence: lint marked 56 of the 788 proposals "answer not verbatim in fact".
4 / Test designTwo checks, one deletion rule, no model as judge
The model answering is "cold": started with no settings, no memory files and no tools, in an empty folder. It sees a pack of facts and one question, and is told to reply with the answer only, or exactly UNKNOWN. The cheapest model is used, because the thing under test is the pack, not the model.
Removing one input to see what breaks is called an ablation. Here it does two jobs at once. It shows the test can go red. And because the model said UNKNOWN instead of guessing, it shows the answers come from the pack and from nowhere else.
5 / LessonsWhat it taught
Proposing facts is cheap. Reviewing them is the real cost, and it did not get paid.
The nightly job proposed 733 facts over three months. 18 were reviewed. 715 still wait.
Facts mined automatically from chats are mostly not worth keeping, so they must never write themselves into memory.
First night: 0 of 18 kept. Across everything reviewed: 29 of 73, and every one of the 29 came from a source a person picked.
A chat transcript records a moment, so a mined fact has to be checked against the live thing before it is believed.
2 of the first 18 named real files, described a real setup, and were false by the time they were reviewed.
A system that reads its own logs must first filter out its own output.
On 5 July, 918 of 926 session files were the experiment's own test runs. 5 were eligible to mine.
A model does not look something up when it thinks it already knows.
One stored fact that looked like general knowledge was never fetched, on either model tier tried. On other questions the strongest model used the store unprompted in 3 of 5 sessions.
A memory test is only worth running if you have watched it fail.
Run the obvious way, the model auto-loaded Andy's settings, which held at least 4 of the first 10 answers. The test would have passed with an empty store.
6 / SurprisesWhat the files show that the summary missed
The nightly job never produced one kept fact
The usual summary is "788 proposed, 29 kept". That mixes two sources. The nightly job gave 733 of the 788 and none of the 29. All 29 kept facts came from 55 proposals that a person started by hand, a hit rate of 53%.
Corrections chose the session, not the facts
The miner counted phrases such as "actually", "I meant" and "should be" in Andy's turns, and used the count only to rank sessions. The model call that followed was told to "extract 5 to 10 facts" from the whole transcript. So every session gave about the same number, whatever it contained.
It ran for 92 nights, mostly doing nothing, and nobody was reading
Offering "I don't know" as an answer stopped the model from looking
The cold test tells the model to say UNKNOWN when the pack lacks the answer. That is what makes the test sharp. The same sentence was then used in a different test, where a normal session with tools was meant to go and fetch the fact. In 4 of 5 sessions the model said UNKNOWN without touching a tool. The escape hatch that helps one test breaks the other.
Numbers were stable, phrases were not
No question whose answer was a number, path or model name ever flipped between runs. Questions whose answer was a short rule in words flipped from pass to fail on the same store, because the model echoed a longer sentence one time and a shorter one the next. The fix was to write such facts as a single sentence that ends with the answer.
The test got stricter as the store grew
With 40 facts in the store, a vague new question could be answered by combining facts already there. The promotion check caught that and refused. Four facts were promoted and then removed again for reasons of this kind. A question has to be one that only its own fact can answer.
The flood came back
The 918 of 926 figure was not a one-off. On 24 September, 185 of 189 session files were again machine-made folders. The name filter held both times.