The assistant is designed for a stricter problem than general chat: decide whether a private earpiece cue would help, retrieve authoritative store facts, and stay silent when the system cannot ground a safe answer.
Architecture: deterministic first, model only for ambiguity
Small talk and unsupported local facts take a silent shadow path. Silence is a valid reliability outcome.
Retrieval and grounding
The catalog layer combines weighted FTS5/BM25 retrieval with trigram and RapidFuzz recovery, then applies structured constraints for attributes such as amperage, voltage, size, length, and material. Optional embeddings exist, but the audited catalog contained 0 of 907 vectors, so the measured results describe lexical and structured retrieval only.
The model path cannot query arbitrary authoritative facts. It must call product search first. Price, location, and availability tools reject SKUs outside the most recent search results. After tool execution, the server projects current database facts and replaces ungrounded model-authored claims with deterministic clarification or silence.
Conversation state is bounded and explicit. Product referents and candidate families support follow-ups such as “how much is it?” without another model call. Topic changes clear stale focus; explicit session IDs isolate context, while omitted IDs remain stateless.
Offline evaluation
The repository’s offline check disables provider APIs and runs catalog, retrieval, grounding, referent, lifecycle, streaming, transcript, and frontend checks. The complete check passed at the audited commit.
| Metric | Measured result |
|---|---|
| Synthetic cases | 34 |
| Top-1 accuracy | 1.00 |
| Recall@5 | 1.00 |
| Path accuracy | 1.00 |
| Fast-path precision | 1.00 |
| Wrong-cue / false-silence rate | 0.00 / 0.00 |
| Selective LLM-call rate | 23.53% |
| Pipeline latency | p50 10.70 ms; p95 26.04 ms |
These fixture results define the tested retrieval and routing boundary; they do not represent store-floor or live-model response accuracy. Provider resolution is replaced with a controlled deterministic resolver.
Reliability and privacy controls
- Provider failure stays silent and does not leak its error to the earpiece.
- Fact tools reject unrelated valid SKUs when search did not authorize them.
- Remote billable access is denied by default and requires a configured demo token.
- Direct remote clients cannot spoof a localhost host header to bypass protection.
- Sessionless requests are stateless; explicit sessions are isolated and bounded.
- Turn IDs prevent stale generations from updating the client, and TTS fragments remain ordered.
Turn evidence includes path, intent, matches, referent, tool trace, and stage-level latency. JSONL logging redacts transcript, answer, model input/output, and tool traces unless content logging is explicitly enabled. Tests also verify owner-only log permissions.
These are implemented demo protections, not enterprise identity controls. The system does not integrate SSO, role-based store entitlements, secrets rotation, or centralized audit retention.
AI economics without invented dollars
The routing policy used the model path on 8 of 34 cases, bypassing it for approximately 76.5% of the evaluated workload. That demonstrates model-call avoidance rather than a cost result. Token usage is not logged and the offline evaluator uses a controlled resolver, so cost per successful task is not yet available.
Next validation stage
Next-stage evaluation priorities are held-out, human-labeled store-floor requests; a populated embedding path; noisy real audio; provider-level grounded-answer scoring; end-to-end STT/LLM/TTS latency and cost; and enterprise identity controls.
The strongest pattern already demonstrated is not “voice plus RAG.” It is the combination of fail-silent behavior, retrieval-authorized fact tools, post-model database projection, bounded memory, and selective model use.