feat: decompose composite unknowns before questioning

This commit is contained in:
2026-08-03 06:32:12 +01:00
parent 0723c2f49a
commit d52690cf2b
8 changed files with 874 additions and 131 deletions
+10 -10
View File
@@ -127,9 +127,9 @@ function makeUpdateSuccess(overrides = {}) {
},
{
id: "n-child-1",
label: "Timing or measurement basis",
label: "How the two observations were measured",
description:
"Need evidence about whether a timing or measurement-basis difference could explain revenue increased by 18%, but cash in the bank fell over the same period, because that would change how the observations should be interpreted.",
"Need evidence about the measure used for each observation, because that could help explain revenue increased by 18%, but cash in the bank fell over the same period.",
kind: "unknown",
status: "unknown",
confidence: "medium",
@@ -180,9 +180,9 @@ function makeUpdateSuccess(overrides = {}) {
},
{
id: "n-child-1",
label: "Timing or measurement basis",
label: "How the two observations were measured",
description:
"Need evidence about whether a timing or measurement-basis difference could explain revenue increased by 18%, but cash in the bank fell over the same period, because that would change how the observations should be interpreted.",
"Need evidence about the measure used for each observation, because that could help explain revenue increased by 18%, but cash in the bank fell over the same period.",
kind: "unknown",
status: "unknown",
confidence: "medium",
@@ -205,7 +205,7 @@ function makeUpdateSuccess(overrides = {}) {
selectedQuestion: {
nodeId: "n-child-1",
question:
"What evidence would clarify timing or measurement basis?",
"What evidence would clarify how the two observations were measured?",
reason:
"Formulated from graph context using the evidence_gathering investigation strategy.",
},
@@ -213,7 +213,7 @@ function makeUpdateSuccess(overrides = {}) {
selectedQuestion: {
nodeId: "n-child-1",
question:
"What evidence would clarify timing or measurement basis?",
"What evidence would clarify how the two observations were measured?",
reason:
"Formulated from graph context using the evidence_gathering investigation strategy.",
},
@@ -499,7 +499,7 @@ describe("graph-backed UI rendering", () => {
);
expect(html).toContain(
"What evidence would clarify timing or measurement basis?",
"What evidence would clarify how the two observations were measured?",
);
});
@@ -557,7 +557,7 @@ describe("graph-backed UI rendering", () => {
expect(html).toContain("New active unknown");
expect(html).toContain("Next question");
expect(html).toContain(
"What evidence would clarify timing or measurement basis?",
"What evidence would clarify how the two observations were measured?",
);
});
@@ -586,7 +586,7 @@ describe("graph-backed UI rendering", () => {
expect(html).toContain("comparability: confirmed");
expect(html).toContain("relationship: insufficient_information");
expect(html).toContain(
"What evidence would clarify timing or measurement basis?",
"What evidence would clarify how the two observations were measured?",
);
expect(html).not.toContain("reasoning:comparability");
});
@@ -613,7 +613,7 @@ describe("graph-backed UI rendering", () => {
);
expect(html).toContain(
"What evidence would clarify timing or measurement basis?",
"What evidence would clarify how the two observations were measured?",
);
});