feat: enforce reasoning pattern consistency

This commit is contained in:
2026-08-03 12:10:57 +01:00
parent 3e2edd2edc
commit c27320984c
6 changed files with 931 additions and 17 deletions
+6
View File
@@ -1274,6 +1274,12 @@ describe("lib/graph/orchestrator startCase", () => {
resolvedFirstChildNodeId,
);
expect(initial.diagnostics.noQuestionReason).toBeNull();
expect(initial.diagnostics.reasoningPatternValidation).toMatchObject({
activePattern: "decision",
valid: true,
});
expect(initial.diagnostics.graphReasoningIntegrity).toBe("valid");
expect(initial.diagnostics.incompatibleNodeIds).toEqual([]);
expect(initial.selectedQuestion?.question.toLowerCase()).not.toMatch(
/price|budget|market size|pilot metrics|benchmark|technical differentiation/,
);