Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(repair): ontology-facts is explicit-only; cycle test passes brainDir (#6264)
garrytan90f4b3211c14
diff --git a/test/ontology-fence-sweep.test.ts b/test/ontology-fence-sweep.test.tsindex 157fa8ce64..031d38be3a 100644--- a/test/ontology-fence-sweep.test.ts+++ b/test/ontology-fence-sweep.test.ts@@ -148,7 +148,7 @@ for (const backend of testBackends()) {await propose(ctx, 'location', 'Example City', '2026-02-01');// The page's fence row is not indexed yet (an edit synced from another host, never reconciled).await engine.executeRaw('DELETE FROM facts WHERE dimension IS NULL');- const report = await runCycle(engine, { sourceId: 'default', phases: ['extract_facts'] });+ const report = await runCycle(engine, { brainDir: null, sourceId: 'default', phases: ['extract_facts'] });const phase = report.phases.find(p => p.phase === 'extract_facts')!;expect(phase.summary).not.toContain('skipped');expect(phase.details).toMatchObject({ factsInserted: 1, unfencedRowsFenced: 0 });diff --git a/test/repair-explicit-only.test.ts b/test/repair-explicit-only.test.tsindex 474e97245e..2e11e4b65e 100644--- a/test/repair-explicit-only.test.ts+++ b/test/repair-explicit-only.test.ts@@ -24,7 +24,7 @@ import { REPAIR_HELP, parseRepairArgs, runRepairCommand } from '../src/commands/import { _resetCliExitVerdictForTests, currentExitCode } from '../src/core/cli-force-exit.ts';import { withEnv } from './helpers/with-env.ts';-const EXPLICIT: RepairKind[] = ['google-file-modes', 'stale-atoms', 'extractor-facts', 'captured-facts', 'loop-facts', 'orphan-children', 'failed-writes', 'frontmatter'];+const EXPLICIT: RepairKind[] = ['google-file-modes', 'stale-atoms', 'extractor-facts', 'captured-facts', 'loop-facts', 'ontology-facts', 'orphan-children', 'failed-writes', 'frontmatter'];let engine: PGLiteEngine;const home = mkdtempSync(join(tmpdir(), 'gbrain-repair-explicit-'));