chore(confidence-engine): expose reconstruction fallback path

This commit is contained in:
2026-09-05 19:13:39 +01:00
parent c7a0a79d0f
commit cd1c6f4fc5
9 changed files with 119 additions and 5 deletions
+8
View File
@@ -567,10 +567,17 @@ describe("lib/graph/orchestrator startCase", () => {
});
it("preserves an attempted provider API path on analysis failure", async () => {
const providerExecution = {
chatCapabilityDetected: true,
chatRequestAttempted: true,
chatRequestSucceeded: false,
generateRequestAttempted: true,
};
mockAnalyseScenario.mockResolvedValue({
success: false,
error: "Provider failed",
providerApiPath: "/api/chat",
providerExecution,
});
const { startCase } = await import("@/lib/graph/orchestrator.js");
@@ -580,6 +587,7 @@ describe("lib/graph/orchestrator startCase", () => {
success: false,
statusCode: 502,
providerApiPath: "/api/chat",
providerExecution,
});
});