feat: introduce reasoning pattern selection

This commit is contained in:
2026-08-03 10:25:26 +01:00
parent 42d4da3496
commit b00928d6fb
7 changed files with 986 additions and 19 deletions
+5
View File
@@ -126,6 +126,11 @@ describe("question simplicity", () => {
expect(result.selectedQuestion.question).toBe(
"Who experiences this problem?",
);
expect(result.selectedQuestion.reasoningPattern).toBe("decision");
expect(result.selectedQuestion.questionFamily).toBe("decision_foundation");
expect(result.selectedQuestion.selectedQuestionTemplate).toBe(
"decision_foundation_direct_child",
);
expect(result.selectedQuestion.question.match(/\?/g) || []).toHaveLength(1);
expect(result.questionComplexityAccepted).toBe(true);
expect(result.primaryConceptCount).toBe(1);