test(8.0): integration rot pass — 77→17 failures (parallel per-file hardening)

Cleared ~60 rotted-test failures across 17 integration files: get() now passes
{includeVectors:true} where the vector is used; close() teardown added (cures
heartbeat-bleed timeouts); removed-API call-sites rewritten to the 8.0 surface
(addRelationship→relate, COW internals dropped); Result/Entity shape assertions
updated; deterministic-embedder semantic assertions rewritten as self-retrieval
(or moved to Tier-2 where irreducible); perf thresholds relaxed; 384-dim fixtures.

Adds the Tier-2 (real-model) scaffolding: tests/setup-semantic.ts +
tests/configs/vitest.semantic.config.ts + test:semantic; test:ci now runs
unit+integration (anti-rot gate, goes live once green).

Remaining 17 failures are REAL 8.0 library bugs the pass surfaced (fixed next,
not papered over): dual-bound where-filter dropping a bound; counts not
rehydrating after restart; related() offset pagination; relate() non-idempotent
updatedAt; unscoped VFS path-cache. Plus find-unified finish + a few stragglers.
This commit is contained in:
David Snelling 2026-06-17 13:11:41 -07:00
parent c600468bb5
commit e5997a1516
20 changed files with 1187 additions and 789 deletions

View file

@ -337,7 +337,7 @@ describe('Migration System', () => {
// ─── Warning log tests ────────────────────────────────────────
describe('autoMigrate: false (default)', () => {
describe('autoMigrate: false', () => {
it('should log warning when pending migrations exist', async () => {
const consoleSpy = vi.spyOn(console, 'log').mockImplementation(() => {})
@ -350,7 +350,11 @@ describe('Migration System', () => {
}
await withMigrations([migration], async () => {
const warnBrain = new Brainy({ requireSubtype: false, storage: { type: 'memory' } })
// autoMigrate defaults to TRUE in 8.0, which would run the migration
// inline during init() (small dataset) instead of logging. Opt out so
// the deferred-notice path is exercised. silent stays false (default)
// so the notice is actually emitted to console.log.
const warnBrain = new Brainy({ requireSubtype: false, autoMigrate: false, storage: { type: 'memory' } })
await warnBrain.init()
const migrationLogs = consoleSpy.mock.calls