feat(8.0): zero-config finalize + cut JS quantization (config.vector = recall + persistMode)

This commit is contained in:
David Snelling 2026-06-15 10:08:51 -07:00
parent f4c5d9749f
commit f8e0079d3f
12 changed files with 348 additions and 1739 deletions

View file

@ -117,10 +117,13 @@ describe('add() Performance Regression Tests', () => {
expect(storageType).toBe('memory')
})
it('should use immediate persistence for memory storage', async () => {
// Memory storage should use immediate mode (already fast)
it('should use deferred persistence for memory storage', async () => {
// 8.0 adaptive default: memory storage uses 'deferred' — nothing survives
// the process anyway, so per-add persistence writes are pure overhead.
// (Filesystem storage gets 'immediate'; an explicit config.vector.persistMode
// overrides either way.)
const index = (brain as any).index
expect(index.persistMode).toBe('immediate')
expect(index.persistMode).toBe('deferred')
})
})
})