# shared-brain-kit: changes in the second edition (December 2026)

Companion code for *One Brain, Many Assistants*, second edition.
This folder never changes. Corrections, if any, get a new folder.

- Three containers (brain-memory, brain-tunnel, brain-git) instead of four;
  the guard is now a shell script run by brain-git (the Python guard is gone).
- One mount per brain folder: notes/ read-write, curated/ and library/ read-only.
- Screening fails closed: a note that can't be screened is held back from
  GitHub with one alert (.git/held-notes lists what is held and why).
- Second screening layer: gitleaks 8.30.1, version and SHA-256 pinned;
  real-format keys are held back, not edited.
- The guard tells "index was behind" (logged, no alert) from "text never
  committed" (alert).
- brain-git checks GitHub every 15 s between rounds (PULL_CHECK).
- New drift check against curated/infrastructure.md (seeded); alerts after
  DRIFT_CYCLES rounds in a row, once per drift.
- First start no longer creates a second history when GitHub can't be
  reached; it adopts an existing GitHub history.
- Health check: asks GitHub before counting unpushed commits; compares the
  clock with an outside one.
- tests/run.sh fails on any failure, including syntax errors.
- Seeds and prompts: library/, open-item deletion rule, Gemini chat option,
  dashboard choice for paused projects, permalinks on read-only files.
