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:
@@ -90,11 +90,10 @@ describe("Open Question presentation", () => {
|
||||
expect(unknown.label).toBe(description);
|
||||
expect(unknown.description).toBe(description);
|
||||
expect(unknown.openQuestion).toBe(question);
|
||||
expect(viewModel.investigating.items).toContain(question);
|
||||
// Canonical description is now the initial display text for unresolved unknowns.
|
||||
expect(viewModel.investigating.items).toContain(description);
|
||||
// openQuestion remains present on the node but is no longer the displayed text.
|
||||
expect(question).toMatch(/\?$/);
|
||||
expect(question).not.toMatch(/^whether\b/i);
|
||||
expect(question).not.toMatch(/^before whether\b/i);
|
||||
for (const term of terms) expect(question.toLowerCase()).toContain(term.toLowerCase());
|
||||
});
|
||||
|
||||
it("leaves canonical identity, explicit target selection, and focused formulation unchanged", () => {
|
||||
|
||||
Reference in New Issue
Block a user