brainy/src/types
David Snelling 12d8ea7efc fix: resolve critical v5.0.0 metadata race condition
CRITICAL BUG FIX: TypeAwareStorage metadata race condition

Problem:
- saveNoun() called before saveNounMetadata()
- TypeAwareStorage couldn't determine entity type (not cached yet)
- Defaulted to 'thing' and saved to wrong storage path
- Later saveNounMetadata() saved to correct path
- Noun and metadata in different locations = entity not found

Impact:
- Broke VFS file operations completely
- Broke brain.get(), brain.relate(), brain.find()
- All metadata-dependent features failed
- Workshop team completely blocked

Solution:
- Reversed save order: saveNounMetadata() FIRST, then saveNoun()
- Type now cached before saveNoun() needs it
- Both saved to correct type-aware paths

Additional Fixes:
- Make baseStorage.initializeCOW() public (was protected)
- Remove enableCOW config option (cleanup)
- COW auto-init temporarily disabled (deadlock issue)

Known Limitations (v5.0.1):
- Fork API exists but COW requires manual init
- Will be zero-config in v5.1.0

Fixes: Workshop Bug Report (VFS metadata missing)
2025-11-02 07:45:29 -08:00
..
apiTypes.ts feat: Brainy 3.0 - Production-ready Triple Intelligence database 2025-09-11 16:23:32 -07:00
augmentations.ts docs: comprehensive API documentation and examples overhaul 2025-09-26 13:32:44 -07:00
brainy.types.ts fix: resolve critical v5.0.0 metadata race condition 2025-11-02 07:45:29 -08:00
brainyInterface.ts refactor: remove deprecated BrainyData class completely 2025-09-30 16:04:00 -07:00
distributedTypes.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
fileSystemTypes.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
graphTypes.ts fix(storage): v4.8.0 metadata architecture refactoring - FIXES VFS bug 2025-10-27 15:43:49 -07:00
mcpTypes.ts feat: add infinite agent memory with MCP integration 2025-09-29 15:37:11 -07:00
optional-deps.d.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
paginationTypes.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
pipelineTypes.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
progress.types.ts feat: add progress tracking, entity caching, and relationship confidence 2025-10-01 15:12:54 -07:00