End to end
What started it
On 2026-11-30 the owner said to go on with this loop, and gave the order of what comes after: isolation, then a deployment on a cloud machine.
Loop 001 had proved that the engine stands alone, with calls made by hand. This loop asks whether it holds when real agents use it, when someone tries to make it file the same thing twice, and when the Brain is large.
Real coding agents
Two agents were connected with the README's configuration block and a token each, with the real model
filing. The full transcript is docs/agents-trial.md.
=== agent 1 (Claude Code, headless) proposes Tools called, in order: overview, propose_item, my_proposals. The receipt, word for word: "A note on SIGTERM and cleanup under uvicorn, filed in Resources › Python services. New place created." === restart === agent 2 (Claude Code, another token, read level) looks for it Title: "SIGTERM under uvicorn can skip finally blocks" · Filed under: "Python services" It was proposed by claude-code. propose_item isn't among the tools I have. […] "Checked on a second machine" is not saved anywhere. === agent 3 (Codex, headless) reads with the second token mcp: archivist/search (completed) The first item is "SIGTERM under uvicorn can skip finally blocks", in Python services. === the journal create_note | mcp:claude-code | SIGTERM under uvicorn can skip finally blocks
The read-level agent could not propose, and said so instead of looking for another way: at its level the tool is not listed at all.
The archivist's rules, tried on purpose
| Trial | As found | Now |
|---|---|---|
| The same item under its first title, after the archivist renamed it | accepted: two items | refused, the receipt names the item and says it was renamed |
| Two waiting proposals with the same title, both approved | two items | the second fails with a receipt |
| A change that changes nothing | answered « linked », « moved » | answered « nothing changed » |
| Where an agent's item came from | shown as typed by hand | shown as proposed by an agent, with its source |
| Search by meaning after a proposal | up to thirty seconds late | within seconds |
| An item left in the Inbox for lack of a model | waited for ever | filed when a model arrives, 25 at a time |
| The same content under another title | two items | unchanged: a product question |
| Two items that contradict each other | both filed, no flag | unchanged: a product question |
| A correction, then a rewind for its author only | works | unchanged |
With the real model, after the quality run:
first title: Connection pool size for the API workers | now: API worker database connection pool size
-> {"refused": "already in the Brain: « API worker database connection pool size » (…), proposed before
as « Connection pool size for the API workers » and renamed by the archivist; propose a change to it instead"}
How good is the filing
26 cases written for the purpose, English and French, filed by the real model on a new Brain
(quality/results.md).
| What is judged | Right |
|---|---|
| The kind of place (project, area, resource) | 24 of 24 |
| An acceptable place | 24 of 24 |
| The links one expected | 6 of 10 |
| Kept in the Inbox, or not, as expected | 26 of 26 |
| The type of a typed item | 2 of 2 |
About half a cent per item by the engine's own price table (0.13 USD for the 26), 1.9 to 3.7 seconds each. The four missed links were between items filed in the same place. 18 of the 26 titles were rewritten.
A Brain of a real size
Synthetic items, vectors from the fake model, one run per size (docs/scale.md).
| 1,000 | 5,000 | 10,000 | |
|---|---|---|---|
| Start until the health route answers (s) | 2.67 | 2.57 | 2.54 |
| Memory at rest (MB) | 55 | 64 | 76 |
| Memory at the peak (MB) | 63 | 73 | 87 |
| A search over MCP, median (ms) | 20 | 43 | 82 |
| A proposal over MCP, fake model, median (ms) | 44 | 99 | 328 |
| Database on disk (MB) | 5 | 25 | 50 |
What these figures do not hold: real vectors are twenty-four times longer. Measured apart, the vector part of one search at 10,000 items would take about 440 ms; and computing the related ideas of a new Brain of 10,000 items took fourteen minutes. Both are the engine's own code.
A stop in the middle of a filing
Proposals were sent, the engine was stopped while filing, then restarted, twice. Nothing lost, nothing
applied twice, nothing stuck: what was approved and not yet filed was filed at the next start
(docs/stop-and-restart.md).
Tests
Python 3.12.3: Ran 245 tests in 199.228s OK (skipped=1) Python 3.13.15: Ran 245 tests in 129.921s OK (skipped=1) ruff check archivist tests tools quality: All checks passed!
209 before, 36 new, none removed. The skipped test needs Tesseract. The piloting session ran the suite again on 3.12 after the build: 245, OK.
Found and not fixed
- While the engine files a trusted client's proposal, it answers nobody: the model call runs on the server's event loop. The health route waited up to 3.9 seconds.
- A write transaction stays open during the model call.
- A client's first proposal copies the whole database as a restore point.
- The archivist's own filing has no author in the journal.
What is left
- The engine's own interface in the terminal, decided by the owner during this loop: Loop 003.
- Isolation and hardening, then a deployment on one machine.
- Real vectors end to end at size; a real Brain made by the desktop app; the CI workflow.
- The repository has no remote: nothing is pushed.
Report: loops/002-report.json. Mission: loops/002-mission.md.