feat(ingest): default local ingest to isolated diffs

This commit is contained in:
Andrey Avtomonov 2026-05-18 02:49:04 +02:00
parent adb5c4488e
commit 9335efd421
2 changed files with 6 additions and 11 deletions

View file

@ -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 () => {

View file

@ -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 }),