brainy/tests/unit/versioning
David Snelling f145fa1fc8 fix(versioning): clean architecture with index pollution prevention
v6.3.0 Versioning System Overhaul:
- Rewrite VersionIndex to use pure key-value storage (not entities)
- Fix restore() to use brain.update() - updates all indexes (HNSW, metadata, graph)
- Remove 525 LOC dead code (versioningAugmentation.ts - untested, unused)
- Fix branch isolation in tests (fork() vs checkout() semantics)

Key improvements:
- Versions no longer pollute find() results
- restore() properly updates all indexes
- 75 tests passing (60 unit + 15 integration)
- Net reduction of ~290 lines while fixing bugs

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 09:36:10 -08:00
..
VersionDiff.test.ts feat: add entity versioning system with critical bug fixes (v5.3.0) 2025-11-04 11:19:02 -08:00
VersionManager.test.ts fix(versioning): clean architecture with index pollution prevention 2025-12-09 09:36:10 -08:00
VersionStorage.test.ts fix(versioning): clean architecture with index pollution prevention 2025-12-09 09:36:10 -08:00