open-brainy/src/storage/adapters
David Snelling dbb827a560 fix: v4.8.1 - Fix 11-version VFS bug (metadata skip + TypeAware performance)
CRITICAL BUG FIX: FileSystemStorage was skipping verbs without metadata files,
causing getVerbsBySource() to return 0 results despite 601 relationships existing.

Root Cause:
- Workshop data had 601 verb vector files with 0 metadata files
- FileSystemStorage.getVerbsWithPagination() skipped verbs if metadata === null
- This bug survived 11 versions (v4.5.1 through v4.8.0)

Fixes Applied:

1. FileSystemStorage (2 locations):
   - Line 1391-1406: Remove metadata skip in getVerbsWithPagination()
   - Line 2427-2442: Remove metadata skip in streaming method
   - Use (metadata || {}) pattern like other adapters

2. TypeAwareStorage (2 methods):
   - getVerbsBySource_internal: Delegate to underlying storage (was O(total_verbs))
   - getVerbsByTarget_internal: Delegate to underlying storage
   - Fixes catastrophic performance bug (scanned all 40 types + all files)

Verification:
- Built successfully with TypeScript
- All 25 augmentation tests passing
- Tested against Workshop's 601 verb dataset
- Result: 0 verbs → 2 verbs returned ✓

Impact:
- VFS relationships now queryable without metadata files
- TypeAware performance: O(total_verbs) → O(matching_verbs)
- Compatible with existing data (backward compatible)
2025-10-28 09:12:09 -07:00
..
azureBlobStorage.ts fix(storage): v4.8.0 metadata architecture refactoring - FIXES VFS bug 2025-10-27 15:43:49 -07:00
baseStorageAdapter.ts fix(storage): resolve count synchronization race condition across all storage adapters 2025-10-21 11:19:08 -07:00
batchS3Operations.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
fileSystemStorage.ts fix: v4.8.1 - Fix 11-version VFS bug (metadata skip + TypeAware performance) 2025-10-28 09:12:09 -07:00
gcsStorage.ts fix(storage): v4.8.0 metadata architecture refactoring - FIXES VFS bug 2025-10-27 15:43:49 -07:00
memoryStorage.ts fix(storage): v4.8.0 metadata architecture refactoring - FIXES VFS bug 2025-10-27 15:43:49 -07:00
opfsStorage.ts fix(storage): v4.8.0 metadata architecture refactoring - FIXES VFS bug 2025-10-27 15:43:49 -07:00
optimizedS3Search.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
r2Storage.ts fix(storage): v4.8.0 metadata architecture refactoring - FIXES VFS bug 2025-10-27 15:43:49 -07:00
s3CompatibleStorage.ts fix(storage): v4.8.0 metadata architecture refactoring - FIXES VFS bug 2025-10-27 15:43:49 -07:00
typeAwareStorageAdapter.ts fix: v4.8.1 - Fix 11-version VFS bug (metadata skip + TypeAware performance) 2025-10-28 09:12:09 -07:00