Skip to content

fix(voice): send the agent only requests, not remarks - #459

Merged
makeitfutureDev merged 3 commits into
betafrom
fix/voice-dispatch-requests-only
Dec 3, 2026
Merged

makeitfutureDev merged 3 commits into
betafrom
fix/voice-dispatch-requests-only

Conversation

@makeitfutureDev

Copy link
Copy Markdown
Owner

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" through run_task, and the run_task description 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

  • Adds DISPATCH_REQUESTS_ONLY_RULE in src/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.
  • Adds the rule after the Gemini run_task routing rule and inside the ChatGPT delegation policy, and narrows the run_task description to match.
  • Updates FEATURES.md, TEST-PLAN.md (new section with an automated check and a live Claude + Codex step) and CHANGELOG.md.

Tests

  • test/voice-calls.test.js: the new test "both voices send the agent only requests" fails on origin/beta's calls.js and passes with this change.
  • Voice suites (voice-calls, voice-chatgpt-live, voice-delegation-router, voice-gemini-live, voice-mute-words, platform-voice, incoming-calls, voice-read-thread-persona-author): 105 passed, 0 failed, 1 skipped (an existing browser test).
  • 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

tbiyss and others added 3 commits December 3, 2026 08:00
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>
@makeitfutureDev
makeitfutureDev merged commit 7b5d110 into beta Dec 3, 2026
5 checks passed
@makeitfutureDev
makeitfutureDev deleted the fix/voice-dispatch-requests-only branch December 3, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants