Voice Golden Eval
The voice golden eval is a manually run integration harness that drives multi-turn, scripted caller scenarios through the voice orchestrator and asserts on the response. It is the voice-channel sibling of the text golden eval.
This harness is the project's own test, with scenarios and assertions written by the project team. It checks reply shape, intent, language, latency and citations. It is not an independent audit and is not evidence that the voice channel gives no medical content: the June 2026 audit of stored conversations found 3 voice answers that explained possible causes of symptoms. See the Safety overview.
It is not wired into continuous integration. Eval runs are LLM-cost-heavy and slow (live tool-use round trips per turn, plus the live retrieval path). Operators run it manually:
- before merging a voice-orchestrator change
- after a pilot deployment that touched voice
- once per sprint as a sanity sweep
For a quick check during development, deterministic unit tests for the voice path are part of the project's automated test pipeline (which did not run from mid-June to 18 July 2026).
What it is, and what it isn't
It is a regression harness for the voice agent's reply shape across a curated set of caller scenarios: phrases, intent, language, latency and citations. Each scenario is a multi-turn conversation played by a caller role (for example a Dutch-speaking neighbourhood caller, a doctor enquiring about a colleague, or an elderly caller). Each turn carries explicit assertions: phrases that must appear, phrases that must not appear, the expected language, a minimum number of citations, a latency budget, the expected intent and the expected safety verdict.
It isn't an STT or TTS quality benchmark: STT is bypassed entirely (text is fed in as if transcribed). It also isn't a full-conversation realism benchmark; the broader evaluation page and the phone smoke set exercise STT and TTS too.
How it runs
An operator starts the harness from the backend project, optionally selecting specific scenarios, labelling the run for traceability, resuming an interrupted run (scenarios that fully passed are skipped), or watching live progress. By default it runs every scenario.
Interpreting results
After the run finishes, the harness writes three kinds of output:
- a progress log with one line per turn (pass, fail or error) plus one summary line per scenario;
- a detail file for every failed turn, containing the request, the response, what was expected and what was actual;
- a final aggregate report (per scenario and per issue kind).
The console also prints a summary: how many scenarios passed, how many turns passed, a per-scenario table and a per-issue breakdown. A scenario passes only if ALL its turns pass; any failed or errored turn fails the scenario. For a failing scenario, the matching detail file lets you diagnose without re-running the eval.
Assertion-kind taxonomy
Every turn-level failure is tagged with one or more assertion kinds:
| Kind | Meaning |
|---|---|
| Expected phrase missing | None of the expected phrases appeared in the response (case-insensitive). |
| Forbidden phrase present | At least one must-not phrase appeared. |
| Intent mismatch | The expected intent did not match the orchestrator's reported intent. |
| Language mismatch | The expected language did not match the response's target language. |
| Citations below minimum | The citation count was below the turn's minimum. |
| Latency over budget | End-to-end turn latency exceeded the turn's budget. |
| Safety verdict mismatch | The expected safety verdict did not match (when one is specified). |
The report counts each kind once per failing turn.
Scenario structure
Each scenario is a single data file with an identifier, a title and description, the expected language, the tone register (formal or informal) and an ordered list of turns. Each turn has a unique identifier, the caller's text, and its assertions. The structure is validated strictly, so typos in field names are rejected rather than silently ignored.
Field semantics
- Language fields use ISO 639-1 codes (
nl/en/fr/it). - A scenario has at least one turn, and turn identifiers are unique within it.
- Expected intent: "any" skips the assertion; otherwise it must match the orchestrator's reported intent exactly.
- Expected safety verdict: "not applicable" skips the assertion; otherwise one of safe, informational only with disclaimer, safety refusal with redirect, or prompt injection refused.
- Expected phrases: an empty list means no requirement; otherwise at least ONE must appear (case-insensitive).
- Must-not phrases: an empty list means no exclusion; otherwise NONE may appear (case-insensitive).
- Minimum citations: the response must surface at least this many (default 0).
- Latency budget: the end-to-end turn latency must be within budget (default 8 seconds).
Conversation continuity
All turns within a scenario share a single conversation identifier minted at turn 1. Turns 2 and later therefore exercise the orchestrator's memory path (for example, "and that doctor we just discussed" only resolves correctly if the prior turn's context survived). When the scenario ends, the identifier is forgotten and the next scenario starts a fresh call.
Adding a new scenario
Pick a free identifier, write a new scenario file that matches the structure above, validate that it loads, and smoke-run just that scenario. A good scenario varies linguistic register, includes language drift and covers edge cases.
Why it isn't in CI
Each turn is one or more LLM tool-use round trips against GPT-4.1, plus the live retrieval path. A run of 7 scenarios and 74 turns costs roughly the same as the text golden eval (a few dollars in API costs and about 5–10 minutes of wall-clock time; planning estimates). Running it on every pull request would be wasteful and would add LLM-API flakiness to the CI signal.
The deterministic sub-checks that DO run in CI mock the LLM and pin the orchestrator's control flow, pre-filter behaviour and shaper output, which is the bulk of what can regress without a live model call.
The voice golden eval is the integration-level check that catches what unit tests cannot: the LLM picking the wrong tool, the answer shape drifting, intent classification regressing under realistic phrasings, latency creeping over budget after a refactor.
Cross-references
- Voice Evaluation and Benchmark Plan — the broader voice evaluation landscape (golden seed, benchmark design, phone smoke set).
- Architecture — the orchestrator and tool-use surface this harness drives.
- Conversational intent — semantics of the intent label the harness asserts on.
- Language locking — why the expected language is a hard match (no wildcard).