SEN-4471 · healthcare-voice-bot · 2026-08-11 09:14:52 UTC
Error
IntentDriftError: committed appointment does not match the patient-stated date stated: Tue 2026-08-18T14:00-07:00 (utterance token conf 0.61, alt p=0.34) booked: Thu 2026-08-20T14:00-07:00 (appt_id=APT-88431, already committed) confirm_gate=skipped (latency_ms=412 < SLA_BUDGET_MS=500) at agents/voice/booking.py:71 in book_appointment()
tool: book_appointment(slot_id="SLT-4471", patient_id="MRN 4471-88") caller: agents/voice/booking.py:71, gate_decision=COMMIT_NOW (fast_path) resolved slot: Thu 2026-08-20 14:00 PDT · Dr. Alan Chen · Suite 412 · 30 min accompanying context (carried but not enforced): low_confidence_fields=[requested_start] (conf 0.61) requires_verbal_confirmation=true, ack=none confirmation.spoken=false policy_verdict=SPEAK_AND_WAIT (booking-policy@2.4 §4.2) note: this entry point performs no precondition check of its own; it trusts the gate's decision, writes, then calls booking.verify_intent_match afterward.
POST /api/v1/appointments -> 201 Created, appointment_id=APT-88431
db INSERT committed, 1 row, source='voice'
SMS appt_confirmed_v3 dispatched 202 to +1 (415) ***-**71 ("Thursday, Aug 20")
booking.verify_intent_match -> FAILED: stated 2026-08-18 (Tue) vs booked
2026-08-20 (Thu), delta 2 days
result: IntentDriftError raised, but the write and the patient notification had
already landed. There is no compensating transaction on this path; remediation
is a manual reschedule plus an outbound call to the patient.
incident: P2 intent drift, 1 patient affected, appointment left in place
pending human correction.kind=tool: your own function and a third-party tool result produce the same span shape. Nothing here justifies a label.
I analyzed trace 69e7e2c95e3109c6: healthcare-voice-bot, 34 spans over 1m 40s, 26.3K tokens (~$0.0852).
voice-scheduler.runtool.book_appointment at agents/voice/booking.py:71The patient requested Tuesday; the agent booked Thursday. ASR confidence on the date was 0.61 against a 0.75 threshold, and confirm_gate skipped the read-back to stay inside the latency SLA, so the low-confidence date was never verified.
Confidence 88% (judge: claude-haiku-5-5).
7c1d9e2a added a fast path to confirm_gate that checks the latency budget before it reads the policy verdict (agents/voice/booking.py:49). This turn was inside the 500ms budget at 412ms, so the gate returned COMMIT_NOW and discarded both SPEAK_AND_WAIT and requires_verbal_confirmation. The date had scored 0.61 against the 0.75 threshold, so the wrong day was committed without the patient hearing it read back.
Introduced in commit 7c1d9e2a (agents/voice/booking.py:49).
Counterfactual: If confirm_gate had read the verdict and requires_verbal_confirmation before the latency check, the 0.61 date would have been read back, and the caller could have corrected Thursday to Tuesday before anything was booked.
The fixconfirm_gate checked the latency budget before the policy verdict, so a turn inside 500ms committed even when booking-policy §4.2 required a read-back. Decide the read-back first: any date or time field below the 0.75 confidence threshold is always spoken back and acknowledged. The fast path keeps trimming optional speech only.
→ PR #1188 (causal/fix-SEN-4471), +2/−3, verified, awaiting merge.
TL;DR: Confirmation skipped under latency SLA let a low-confidence ASR date commit. Fixing agents/voice/booking.py removes this failure class entirely.