Test a Safe Voice-Service Fallback
Lab Objective
Test the boundary between a text response and a voice response when the Mac voice backend is unavailable.
Lab Environment
Use the Hermes Mac-control tests and synthetic offline conditions. Do not send a real message.
Steps
-
Run the focused offline voice tests:
cd /Users/juribuora/ai-agent-laptop python3 -m pytest tests/test_hermes_tts_offline.py -q -
Exercise the unavailable-backend fixture.
-
Confirm that synthesis is not started after the dependency check fails.
-
Confirm that subprocess cleanup runs on failure and timeout paths.
-
Confirm that any text fallback has a distinct disposition from voice delivery.
Expected Evidence
The tests pass, the offline result is explicit, and no voice-delivered receipt is produced for an unavailable backend.
Security Takeaways
Fail-fast behavior limits ambiguous retries and prevents an operator from confusing “text generated” with “voice delivered.” Availability failures need honest receipts.