fix(confidence-engine): supply synthesis output schema

This commit is contained in:
2026-09-07 13:44:57 +01:00
parent 3f2e2e05ae
commit 7548a6af59
3 changed files with 19 additions and 2 deletions
@@ -375,6 +375,12 @@ describe("synthesizeCurrentUnderstanding — full seam", () => {
const prompt = fake.generateReconstruction.mock.calls[0][0];
expect(prompt).toContain("Complaint count increased by 35%");
expect(prompt).toContain("[known]");
expect(fake.generateReconstruction.mock.calls[0][2]).toEqual({
type: "object",
properties: { currentUnderstanding: { type: "string" } },
required: ["currentUnderstanding"],
additionalProperties: false,
});
});
it("supported node content flows to provider via synthesis prompt", async () => {