diff --git a/packages/context/src/ingest/local-bundle-runtime.test.ts b/packages/context/src/ingest/local-bundle-runtime.test.ts index aa4c61e2..0df1c9e3 100644 --- a/packages/context/src/ingest/local-bundle-runtime.test.ts +++ b/packages/context/src/ingest/local-bundle-runtime.test.ts @@ -32,6 +32,7 @@ type RuntimeWithSlValidationDeps = { type RuntimeWithSettingsDeps = { deps: { settings: { + sharedWorktreeSourceKeys?: string[]; isolatedDiffSourceKeys?: string[]; }; }; @@ -266,7 +267,7 @@ describe('createLocalBundleIngestRuntime', () => { }); }); - it('enables isolated-diff routing for direct durable-write connectors', () => { + it('defaults local bundle ingest to isolated diffs without an allowlist', () => { const runtime = createLocalBundleIngestRuntime({ project, adapters: [new FakeSourceAdapter()], @@ -275,14 +276,8 @@ describe('createLocalBundleIngestRuntime', () => { const settings = (runtime.runner as unknown as RuntimeWithSettingsDeps).deps.settings; - expect(settings.isolatedDiffSourceKeys).toEqual([ - 'metabase', - 'notion', - 'lookml', - 'looker', - 'dbt', - 'metricflow', - ]); + expect(settings.sharedWorktreeSourceKeys).toEqual([]); + expect('isolatedDiffSourceKeys' in settings).toBe(false); }); it('accepts a debug LLM request file when constructing the default agent runner', async () => { diff --git a/packages/context/src/ingest/local-bundle-runtime.ts b/packages/context/src/ingest/local-bundle-runtime.ts index 4fccf121..5fcc245d 100644 --- a/packages/context/src/ingest/local-bundle-runtime.ts +++ b/packages/context/src/ingest/local-bundle-runtime.ts @@ -77,7 +77,7 @@ import { ContextEvidenceIndexService, SqliteContextEvidenceStore } from './conte import { DiffSetService } from './diff-set.service.js'; import { ingestTracePathForJob, type IngestTraceLevel } from './ingest-trace.js'; import { IngestBundleRunner } from './ingest-bundle.runner.js'; -import { defaultIsolatedDiffSourceKeys } from './isolated-diff/source-routing.js'; +import { defaultSharedWorktreeSourceKeys } from './isolated-diff/source-routing.js'; import { PageTriageService } from './page-triage/index.js'; import { createWarehouseVerificationTools } from './tools/warehouse-verification/index.js'; import type { @@ -723,7 +723,7 @@ export function createLocalBundleIngestRuntime( workUnitMaxConcurrency: options.project.config.ingest.workUnits.maxConcurrency, workUnitStepBudget: options.project.config.ingest.workUnits.stepBudget, workUnitFailureMode: options.project.config.ingest.workUnits.failureMode, - isolatedDiffSourceKeys: defaultIsolatedDiffSourceKeys(), + sharedWorktreeSourceKeys: defaultSharedWorktreeSourceKeys(), ingestTraceLevel: ingestTraceLevelFromEnv(), }, skillsRegistry: new SkillsRegistryService({ skillsDir, logger }),