Repository navigation
Brainy 0.1.1
Hardening and docs release.
Concurrency
- Knowledge writes now run the HEAD-check and commit under a per-repo write lock (in-process
threading.Lock+ POSIXfcntl.flock), closing a TOCTOU race under the multi-threaded server. A staleexpected_git_commitis still rejected asConflict. - 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 --demoFull test suite green (16 files, 338 checks). No breaking changes.