feat(confidence-engine): present canonical uncertainty description as initial display
Changed the facilitator-view-adapter to prefer node.description over node.openQuestion for unresolved unknown items. This is a reversible presentation change only — graph identity, reasoning-state ownership, openQuestion generation, and resolved-unknown presentation are unchanged. Owning test assertions updated to reflect new display contract: - open-question-presentation.test.js: assertion target shifts from question text to description text - facilitator-view-adapter.test.js: deduplication tests use distinct descriptions so nodes remain distinguishable after the change Documentation: hypothesis experiment record and handoff return note.
This commit is contained in:
@@ -155,16 +155,20 @@ describe("Deduplication", () => {
|
||||
const vm = buildFacilitatorViewModel({
|
||||
nodes: [
|
||||
mkN("u1", "Whether supplier capacity is sufficient for launch", {
|
||||
description: "Supplier capacity determines viability",
|
||||
openQuestion: sharedQuestion,
|
||||
}),
|
||||
mkN("u2", "Whether customer demand is sufficient for launch", {
|
||||
description: "Customer demand determines viability",
|
||||
openQuestion: sharedQuestion,
|
||||
}),
|
||||
],
|
||||
resolvedIds: new Set(),
|
||||
});
|
||||
|
||||
expect(vm.investigating.items.filter((item) => item === sharedQuestion)).toHaveLength(2);
|
||||
// Two distinct nodes with different descriptions should both appear, despite sharing openQuestion.
|
||||
expect(vm.investigating.items).toContain("Supplier capacity determines viability");
|
||||
expect(vm.investigating.items).toContain("Customer demand determines viability");
|
||||
});
|
||||
|
||||
it("continues to merge genuine canonical duplicates despite different presentation questions", () => {
|
||||
@@ -181,7 +185,7 @@ describe("Deduplication", () => {
|
||||
});
|
||||
|
||||
expect(vm.investigating.items).toEqual([
|
||||
"Can the supplier support the launch volume?",
|
||||
"Whether supplier capacity is sufficient for launch",
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user