feat: introduce comparability assessment before contradiction reasoning

This commit is contained in:
2026-08-02 16:28:11 +01:00
parent b84989b96a
commit 0c7558d31f
5 changed files with 399 additions and 1 deletions
+5 -1
View File
@@ -253,14 +253,18 @@ describe("lib/graph/orchestrator startCase", () => {
id: "q_tie_resolution",
selectionStatus: "ambiguous",
question:
"What changed during the period that could explain why Revenue increased by 18%, but cash in the bank fell over the same period?",
"Were these figures measured on the same basis and at the same scale?",
tiedCandidateIds: expect.arrayContaining([expect.any(String)]),
comparabilityStatus: "uncertain",
contradictionReasoningAllowed: false,
});
expect(result.diagnostics.unknownSelectionExplanation).toMatchObject({
status: "ambiguous",
tieType: "complete_unresolved_tie",
selectedNodeId: null,
alphabeticalUsedAsReasoning: false,
tieResolutionQuestion:
"Were these figures measured on the same basis and at the same scale?",
});
});