fix(vfs): prevent race condition in bulkWrite by ordering operations

- Process mkdir operations sequentially first (sorted by path depth)
- Then process write/delete/update operations in parallel batches
- Prevents duplicate directory entities when mkdir and write for
  related paths are in the same batch
- Add comprehensive tests for bulkWrite race condition scenarios
- Update API documentation for accuracy

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
David Snelling 2025-12-11 13:26:07 -08:00
parent ec6fe0c039
commit c8eb813a15
7 changed files with 906 additions and 340 deletions

View file

@ -1,9 +1,9 @@
# 🧠 Brainy v5.0+ API Reference
# 🧠 Brainy v6.5.0 API Reference
> **Complete API documentation for Brainy v5.0+**
> **Complete API documentation for Brainy v6.5.0**
> Zero Configuration • Triple Intelligence • Git-Style Branching • Entity Versioning
**Updated:** 2025-12-09 for v6.3.2
**Updated:** 2025-12-11 for v6.5.0
**All APIs verified against actual code**
---