brainy/tests/vfs
David Snelling c64967d29c fix: resolve 10 test failures across clustering, metadata, and deletion
Fixed critical bugs affecting test suite:

**Clustering (2 tests fixed)**
- Fixed entity.type field reference bug in _getItemsByField()
- Changed entity.noun to entity.type (correct Entity interface field)
- Now includes ALL entities in domain clustering with 'unknown' fallback

**Relationship Metadata (5 tests fixed)**
- Fixed metadata retrieval in memoryStorage.ts getVerbs()
- Changed metadata.data to metadata.metadata for user's custom metadata
- User metadata now correctly returned in GraphVerb.metadata field

**Delete Relationship Cleanup (2 tests fixed)**
- Added deleteVerbMetadata() method to BaseStorage
- Fixed deleteVerb_internal() in memoryStorage to delete verb metadata
- Relationships now properly cleaned up when entities are deleted

**Validation (1 test fixed)**
- Removed overly restrictive self-referential relationship check
- Self-relationships now allowed (valid in graph systems)

Test results: 27 failures → 17 failures (37% improvement)
All 467 tests now enabled (0 skipped)
2025-10-09 16:33:08 -07:00
..
semantic feat: add neural extraction APIs with NounType taxonomy 2025-09-29 13:51:47 -07:00
tree-operations.test.ts feat: add tree-aware VFS methods to prevent recursion in file explorers 2025-09-26 10:17:59 -07:00
vfs-bug-fixes.unit.test.ts fix: resolve VFS race conditions and decompression errors 2025-09-30 12:54:40 -07:00
vfs-initialization.unit.test.ts fix: resolve critical bugs in delete operations and fix flaky tests 2025-10-01 13:50:21 -07:00
vfs-relationships.test.ts fix: ensure Contains relationships are maintained when updating files in VFS 2025-09-26 15:12:04 -07:00
vfs.unit.test.ts feat: add resolvePathToId() method and fix test issues 2025-10-07 11:51:17 -07:00