chore: update CHANGELOG for v3.50.1

This commit is contained in:
David Snelling 2025-10-16 16:13:35 -07:00
parent 52d1602907
commit 8fb811d5f9

View file

@ -2,6 +2,44 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/soulcraftlabs/standard-version) for commit guidelines.
### [3.50.1](https://github.com/soulcraftlabs/brainy/compare/v3.50.0...v3.50.1) (2025-10-16)
### 🐛 Critical Bug Fixes
**Fixed: Metadata Explosion Bug - 69K Files Reduced to ~1K**
**Issue**: Metadata indexing was creating 60+ chunk files per entity (69,429 files for 1,143 entities)
- Root cause: Vector embeddings (384-dimensional arrays) were being indexed in metadata
- Each vector dimension created a separate chunk file with numeric field names
- Caused server hangs, VFS operations timing out, and Graph View UI failures
**Impact**:
- ✅ File reduction: 69,429 → ~1,200 files (58x reduction / 1,200x per entity)
- ✅ Storage reduction: 3.3GB → ~10MB metadata (330x reduction)
- ✅ Fixes server initialization hangs (loading 69K files)
- ✅ Fixes metadata batch loading stalling at batch 23
- ✅ Fixes VFS getDescendants() hanging indefinitely
- ✅ Fixes Graph View UI not loading in Soulcraft Studio
**Solution**:
- Added `NEVER_INDEX` Set excluding vector field names: `['vector', 'embedding', 'embeddings', 'connections']`
- Added safety check to skip arrays > 10 elements
- Preserves small array indexing (tags, categories, roles)
**Test Results**:
- ✅ 7/7 integration tests passing
- ✅ Verified: 6 chunk files for 10 entities (was 7,210 before fix)
- ✅ 611/622 unit tests passing
**Files Modified**:
- `src/utils/metadataIndex.ts` - Core metadata explosion fix
- `src/coreTypes.ts` - HNSWVerb type enforcement with VerbType enum
- `src/storage/adapters/*` - Include core relational fields (verb, sourceId, targetId)
- `src/storage/adapters/baseStorageAdapter.ts` - Type enforcement (HNSWNoun, GraphVerb)
- `tests/integration/metadata-vector-exclusion.test.ts` - Comprehensive test coverage
---
### [3.47.0](https://github.com/soulcraftlabs/brainy/compare/v3.46.0...v3.47.0) (2025-10-15)
### ✨ Features