Devlog · Loop 001 · 2026-11-30

The engine stands alone

Extracted, installed and tested without the desktop app.

What started it

On 2026-11-30 the owner asked for the whole repository to be created locally and joined to GitHub later, and let the session go on at its own pace.

The owner had decided the same day that the engine of Second Brain GD would get a repository of its own, open source and self-hostable, extracted and not rewritten. This loop is that extraction.

What changed

Tests

TestsCountWhy
In the source356
Not copied135seventeen files that test what stayed in the desktop app
Left after the split45the chat, its tools, the PDF export, the installer
Carried over176four of them adapted: their subject stayed, their vehicle was the chat
New33MCP over HTTP, configuration, checksums, installed package, imports
Run209208 passed, 1 skipped (Tesseract is not installed), 0 failed
$ uv run python -m unittest discover -s tests/python -t . -v
Ran 209 tests in 48.693s
OK (skipped=1)
$ uv run ruff check archivist tests
All checks passed!

The suite was run again by the piloting session after the build, with the same result, on Python 3.12.3. Python 3.13 was not run.

Real use

The engine was started from a fresh clone with the README's commands and called with curl; the full transcript is docs/first-run-transcript.md. The piloting session then ran its own check in a temporary data folder:

started pid=… ; rss=VmRSS: 50124 kB
health: {"status":"ok","database":"ok","version":"0.1.0", …}
no token on management: 401
client id=c7be4c4c67a token length=49
tools/list: 200 · 13 tools for a client of level propose_items
wrong token: 401 {"error": "unknown or revoked token: connect this tool again from the app"}
propose_item: 200 {"proposal": "p8a6f43766a", "status": "pending",
  "receipt": "waiting for the user's approval in the app (proposal p8a6f43766a); check later with my_proposals"}
stopped; server.json left behind: no
started pid=… ; rss=VmRSS: 49396 kB
after restart, my_proposals: 200 · the same proposal, still pending
revoke: 200
revoked token: 401

About 50 MB of resident memory at rest on a new Brain. That says what the engine takes when idle, not under load or with a large Brain.

Found on the way

What is left

Report: loops/001-report.json. Mission: loops/001-mission.md.