experiment(confidence-engine): route UI journey provider centrally

This commit is contained in:
2026-09-07 09:35:53 +01:00
parent 642a969b18
commit bb3082d633
15 changed files with 158 additions and 17 deletions
+6 -1
View File
@@ -51,6 +51,7 @@ describe("focused-deconstruct targetNodeId identity boundary", () => {
vi.doMock("@/lib/llm/provider", () => ({
getProvider: () => makeMockProvider(inventedModelId),
getProviderModelName: () => "configured-model",
}));
const { POST } = await import("../app/api/focused-investigation/deconstruct/route.js");
@@ -97,6 +98,7 @@ describe("focused-deconstruct targetNodeId identity boundary", () => {
});
vi.doMock("@/lib/llm/provider", () => ({
getProvider: () => ({ generateReconstruction }),
getProviderModelName: () => "gpt-5.6-terra",
}));
const { POST } = await import("../app/api/focused-investigation/deconstruct/route.js");
@@ -116,7 +118,7 @@ describe("focused-deconstruct targetNodeId identity boundary", () => {
expect(response.status).toBe(200);
expect(generateReconstruction).toHaveBeenCalledWith(
expect.any(String),
process.env.OLLAMA_MODEL,
"gpt-5.6-terra",
focusedDeconstructJsonSchema,
);
});
@@ -149,6 +151,7 @@ describe("focused-deconstruct targetNodeId identity boundary", () => {
providerExecution: { chatRequestAttempted: true },
}),
}),
getProviderModelName: () => "configured-model",
}));
const { POST } = await import("../app/api/focused-investigation/deconstruct/route.js");
@@ -228,6 +231,7 @@ describe("focused-deconstruct targetNodeId identity boundary", () => {
providerExecution: { chatRequestAttempted: true },
}),
}),
getProviderModelName: () => "configured-model",
}));
const { POST } = await import("../app/api/focused-investigation/deconstruct/route.js");
@@ -291,6 +295,7 @@ describe("focused-deconstruct targetNodeId identity boundary", () => {
providerExecution: { chatRequestAttempted: true, chatRequestSucceeded: true },
}),
}),
getProviderModelName: () => "configured-model",
}));
const { POST } = await import("../app/api/focused-investigation/deconstruct/route.js");