Stabilize hosted voice action validation - #72
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Executive Summary
This PR makes the hosted voice action scenario less sensitive to speech turn boundaries and more diagnostic when it fails.
Description
The hosted scenario now gives Voice AI a concise, single-sentence request instead of a multi-sentence instruction that can be split across speech turns. Its initiating message also states that the call should complete a spoken request and record a post-call action.
The persistence gate independently verifies what the driver spoke and what the agent-under-test leg transcribed before accepting the durable open action. Failure output reports bounded predicates and counts without exposing transcript content.
Reason
Natural pauses in the prior prompt could create partial turns and make the hosted-model test nondeterministic. The prior evidence also could not distinguish a spoken request from one actually heard by Voice AI.
Decisions
Testing
uv run --with pytest pytest -q: 567 passed, 23 skipped.git diff --check: passed.