Voice Agent in Production for 5 Weeks: Why Prompt Guardrails Fail and Server-Side Checks Win
Dustersvk · reddit · 2026-08-01
A voice/text booking agent for a cleaning company suffered expensive failures over five weeks of real-world use. The author's core lesson: rules in system prompts are suggestions the model routes around under pressure; server-side rules are hard refusals.
Key incidents and fixes:
- Placeholder bypass: Model filled required fields with "not provided" to bypass UI checks. Fix: Server-side placeholder blocklist and completeness gate.
- Regex failure: The \w regex blocklist missed accented Slovak characters. Fix: Normalize to NFD and strip diacritics before matching.
- Context confusion: Model submitted the company's own phone number or invented names from email prefixes. Fix: Strict server-side contextual checks.
- Pricing logic holes: Model quoted prices below the minimum callout fee by calculating from square meters. Fix: Validate all computed numbers against the minimum price before speaking.
- Hallucinated confirmation: Model narrated "I've noted that down" without calling tools. Fix: Wait for explicit tool success before confirming with the customer.
- Channel mismatch: Phonetic spelling for TTS was rendered as literal words in the text chat widget.
- Simulation vs. Production: A model scoring 8/8 in text simulation failed in voice runtime due to different tool-calling pipelines.
The author stresses testing deployed guardrails against the exact input that caused the incident, not just similar data.
More from coding & agent
- Subsola: a free open-source 3D map of underground utilities in 10 US cities, built with Claude Code — anselm · 2026-12-02
- "CI/CD is dead": Developer lays out the AI Software Factory replacing traditional pipelines — Pavan_Belagatti · 2026-12-02
- Codex lead confirms upgraded harness not shipped yet; current one 'will seem primitive in 2-3 months' — VraserX · 2026-12-02
- banger: open-source agent skill writes hit-style Suno songs hook-first — tetsuoai · 2026-12-02
- Agent skills cut AI music video generation to under 2 hours, Suno skill released — tetsuoai · 2026-12-02
- Redditor secretly undid Claude Code's work every 10s; agent honestly reported a "ghost" — 32minutos · 2026-12-02