Skip to content

Brainy 0.1.1

Choose a tag to compare

@memokar memokar released this 07 Oct 10:41
· 1 commit to main since this release

Hardening and docs release.

Concurrency

  • Knowledge writes now run the HEAD-check and commit under a per-repo write lock (in-process threading.Lock + POSIX fcntl.flock), closing a TOCTOU race under the multi-threaded server. A stale expected_git_commit is still rejected as Conflict.
  • New tests/test_concurrency.py: 20 agents claiming one task → exactly 1 winner / 19 conflicts; 20 agents writing the same file → exactly 1 commit / 19 conflicts (repo stays clean); 20 distinct-file writes all succeed.
  • MCP instructions gained a TASK CLAIMS rule: claim before working, never touch a task another actor holds, retry on write conflict.

Docs

  • README: "Why not just a markdown file?" and an honest comparison with Beads, Central Brain and a plain shared notes file (facts sourced from their own docs).

Try it in one command (no clone, no setup):

docker run --rm -i ghcr.io/memokar/brainy:0.1.1 --demo

Full test suite green (16 files, 338 checks). No breaking changes.