Back to all posts
Lab 44Tuesday, October 20, 20261 min read

Test a Safe Voice-Service Fallback

cybersecurityavailabilityfailsafelabslearningprocess
View original post

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

  1. Run the focused offline voice tests:

    cd /Users/juribuora/ai-agent-laptop
    python3 -m pytest tests/test_hermes_tts_offline.py -q
    
  2. Exercise the unavailable-backend fixture.

  3. Confirm that synthesis is not started after the dependency check fails.

  4. Confirm that subprocess cleanup runs on failure and timeout paths.

  5. 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.