Render clarify search prompts as guidance only

This commit is contained in:
master
2026-03-08 11:50:34 +02:00
parent e01a499df9
commit abbfe64bd7
10 changed files with 224 additions and 124 deletions

View File

@@ -42,7 +42,7 @@
- `clarify`
- `insufficient`
- `grounded` states must expose visible evidence summary plus citations or top-result references.
- `clarify` states must offer narrowing questions instead of a blank panel.
- `clarify` states must offer narrowing guidance instead of a blank panel.
- `insufficient` states must explain the lack of grounding and still provide credible next questions or next searches.
## Runtime behavior
@@ -53,7 +53,7 @@
- fallback -> related follow-up question
- Result-state answer panels use:
- `commonQuestions[]` as follow-up questions when grounded evidence exists
- `clarifyingQuestions[]` when no grounded answer exists
- `clarifyingQuestions[]` as non-executable narrowing guidance when no grounded answer exists
- "Related searches" remains driven by contextual chip logic so pages do not need to define a second parallel action system.
## Optional telemetry hooks
@@ -85,7 +85,7 @@
2. Add unit coverage for answer-state rendering in `global-search.component.spec.ts`.
3. Add Playwright coverage for:
- grounded answer
- clarify recovery
- clarify guidance rendering
- answer-to-AdvisoryAI handoff
- priority-route rollout journeys (`findings`, `policy`, `doctor`, `timeline`, `releases`)
4. Keep route and API behavior mocked/deterministic; no live network dependencies.