Repository navigation
fix(voice): send the agent only requests, not remarks - #459
Merged
Merged
Conversation
The Gemini briefing routed "every action and every question" through run_task and never said what to do with a remark that asks for nothing, so a live call posted the caller's "This is the first thread." into the thread as a spoken request. The ChatGPT briefing excluded only greetings and small talk. One shared rule now bounds both voices and the run_task description: a statement or remark that asks for nothing is answered by the voice and never sent; when unclear, the voice asks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tiberiu Socaci <tsocaci@makeitfuture.com>
A goodbye said with a thanks, a switch or a mark-done is a call control, not a remark; GPT-Live reaches those only by delegating, so the shared rule now says they keep their own rules. Drops 'what they are about to do' from the remark examples so spoken navigation is not held back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tiberiu Socaci <tsocaci@makeitfuture.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tiberiu Socaci <tsocaci@makeitfuture.com>
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.
Problem
Live QA (CALL-SWITCH-01, Claude and Codex legs) showed the Gemini voice sending the caller's scripted remark "This is the first thread." to the agent as a task. That remark was posted into thread A as a spoken request, and the agent answered it. The test requires that thread A stays clean.
Cause: the Gemini briefing (
buildSystemInstruction) routes "every action and every question for the agent" throughrun_task, and therun_taskdescription says "use this for every agent action". Neither one says what to do with a remark that asks for nothing. The brief style rule ends "otherwise act". The ChatGPT briefing's delegation policy excluded only greetings and small talk.Change
DISPATCH_REQUESTS_ONLY_RULEinsrc/gateway/voice/calls.js, a single rule shared by both voices. The voice sends something only when the caller asks for something (a task or a question). It answers a remark that asks for nothing itself and sends nothing. When it cannot tell, it asks one short question.run_taskrouting rule and inside the ChatGPT delegation policy, and narrows therun_taskdescription to match.Tests
test/voice-calls.test.js: the new test "both voices send the agent only requests" fails onorigin/beta's calls.js and passes with this change.npm run check:static: passed.npm run check:dco -- origin/beta..HEAD: passed.Live acceptance (not executed)
This is a prompt change, so whether it works depends on the model. Retest CALL-SWITCH-01 (the thread-A-clean gate) on Claude and Codex once this is deployed. The marker leg still needs a microphone clip that speech recognition keeps whole; that is a separate fixture issue.
🤖 Generated with Claude Code