Back to the full map

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.

43facts in the store, in 9 topics, one test question each
788facts proposed by a model, from all sources
73of those ever reviewed by a person
29kept. None of them came from the nightly job

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.

Session files one saved transcript per chat files changed yesterday Miner counts 17 correction phrases, user turns only top 3 sessions, 1 model call each Candidate facts fact, question, short answer, source appended with lint warnings Review queue every row starts as "pending" a person rejects Rejected, kept on file a person promotes; the full store must answer UNKNOWN first Fact store one text file, facts grouped by topic one topic's facts (a pack) Test: two checks per question 1. own facts: answer must match 2. wrong facts: must say UNKNOWN exit code 0 or 1 Pass or fail green only if every question passes both
The pipeline as built. "Lint" means cheap automatic warnings attached to a candidate, such as "this answer already appears in the store". The pass or fail result was wired to a commit hook, so a change to the store could not be saved while the test was red.

What the files look like

Invented example: a fact in the store
## kitchen
### kettle-capacity
The kettle holds 1.7 litres.
Source: kettle manual, page 2
Invented example: its test question
{"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.

Proposed 788 Reviewed 73, or 9% of proposed Kept 29, or 40% of reviewed The same 788, split by where the proposal came from Nightly job 733 proposed 0 kept, 18 rejected, 715 waiting Run by hand 55 proposed 29 kept, 26 rejected, 0 waiting
keptrejectednever reviewed
Counted from the queue file's status field. "Run by hand" means a person chose one document or one session and ran the same extractor on it. 733 rows trace back to nightly sessions. The job's own ledger says 737. Four rows are missing, most likely because their ids clashed with existing ones.

Review happened on four days

4 Jul: one design document 7 kept, 3 rejected 5 Jul: one session, plus old notes picked by hand from earlier memory files 21 / 16 6 Jul: first nightly run two sessions chosen by the miner 0 kept, 18 rejected 24 Sep: one note file 1 kept, 7 rejected
All 73 reviewed proposals, grouped by the day they were extracted. One square unit is one proposal. The first night's result, 18 out of 18 rejected, is the only time anyone reviewed the nightly job's output.

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.

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.

Check 1: the right facts are enough Question Facts for its own topic Cold model no other input "1.7" must match key Fails if the fact is missing or worded so the model cannot find it. Check 2: the wrong facts give nothing Same question Facts for another topic Cold model no other input UNKNOWN exactly this Fails if the model can guess it or already knows it. Scored by a program, never by another model Split the answer into tokens so key "0" cannot match inside "207" The key's tokens must appear together, in order, or an accepted spelling Over 12 tokens fails so the key cannot be buried in a long reply Hedging fails "not 4001", "4001 or 4002", "probably 4001" The deletion rule: prove the test can fail All facts present 14 of 14 pass, exit 0 delete one fact Its question must fail answer UNKNOWN, 13 of 14, exit 1 put it back Green again 14 of 14 pass, exit 0 If the question still passes with its fact deleted, the answer is leaking in from somewhere else and the test proves nothing. The same idea guards promotion: before a fact is added, the whole store must answer its question UNKNOWN.
The answer "1.7" is from the invented kettle example. The 14, 13, 14 sequence is the real run from 4 July 2026. The store later grew to 42 facts and passed 42 of 42 on both checks at the last committed full run, on 6 July.

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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

1 or 2 correction phrases 13 sessions 9.2 proposals per session 20 or more correction phrases 16 sessions 9.0 proposals per session Across all 78 mined sessions the phrase count ran from 1 to 53. The yield stayed near 9.4.
From the nightly ledger, which records the phrase count and the number of proposals for each mined session.

It ran for 92 nights, mostly doing nothing, and nobody was reading

0 10 20 30 Proposals added per night 5 Jul 1 Aug 1 Sep 1 Oct no log, 15 to 20 Sep
proposals added (29 nights)skipped, nothing to mine (56 nights)model call failed (7 nights)
Each column is one night, labelled by the day whose sessions it mined. A skipped night cost nothing, because the phrase count is plain text matching and the model is only called when something scores. The queue grew by about 28 on a busy night, and review happened on four days in total. The job is now switched off.

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.