Skip to content

1.13.0

Latest

Choose a tag to compare

@arnelirobles arnelirobles released this 21 Oct 14:23
df23c6c

Brain moves to schema 9. The first 1.13.0 command migrates the database, and after that a 1.12.0 brain refuses to open it ("newer than this brain knows"). Update every copy of the plugin on a machine together, including a remote lane.

What schema 9 changes: projects are stored lower case, so BarakoCMS and barakocms are one project. Kinds are a fixed list of 12 with aliases, and old kinds map to the closest one. brain close needs a resolution, or --wontfix. brain stats lists agent items with no update for a day. Items and queued jobs keep the session that filed them, also from MCP.

Test runs:

  • brain queue add refuses a second full run of one commit, and a full run from a dirty tree, unless --again "reason". The add is one transaction.
  • test-phase stops a run whose passed count has not moved for 20 minutes while failures keep coming (--fail-stall), holds the lane per job, and retries a killed job once.
  • brain flaky-clear closes a flaky item after 5 passing full runs of its test project, with resolution flaky-cleared.

Session context:

  • New brain digest, under 2 KB: counts, running jobs, stale agents, blockers and questions. The startup hook prints it, and after a compaction it adds every open blocker, question, live agent and queued job.
  • MCP brain_list and brain_queue_list return 50 lines and under 8 KB by default. New brain_digest MCP tool.

Scripts agents kept writing by hand:

  • replace FILE: exact text edit from old/new blocks on stdin. Fails when the old text is not there exactly once, all blocks or none, and refuses read-only and hard-linked files.
  • hooks/wait-loop.py denies sleep-then-read commands, loops that sleep and read a file, and any pgrep, in every project, also inside bash -c. A loop that sleeps without reading, such as a health-check retry, still runs. It notes a direct dotnet test, go test, pytest or npx vitest run. LEAN_WAIT_GUARD=off, in settings env or in front of the command, turns it off.
  • script-repeats counts hand-written command families in Claude Code transcripts. It prints family names, counts and normalised shapes only. retro-signals.sh includes it.
  • The condensed method has a "Scripts on PATH" block, and skills use bare command names instead of versioned plugin paths. holdout.sh has a self-test.

Review: ticket shape, spec review and the hunt now ask about sibling routes that read or write the same field.

Extension stays at lean-brain 0.10.0. It reads schema 9 as is.

bash tests/run-all.sh on main at df23c6c: 43 self-tests, 0 failed, 0 skipped (CI run 39614568985).