fix(voice_worker): plan chat tool turns, and keep v2 answers to the core

- A chatChannels pick from the router counts as a tool turn for the intent
  judge ("post this in the schedule channel" needs the planner).
- The default-language directive names an explicit language request as its
  one exception; the history block says plans and appointments people
  mentioned need no calendar tool; why/how answers give only the core reason.

Evals (Qwen3.6, v2 options): reply length 3/3 (v2 185-205 chars, v1 315-356),
language, history, chat channels and tool-skip 22/22; full suite 219 passed,
6 failed (paris/london, graph branch and four v1 single-user memory cases).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-12 13:06:40 +09:00
parent b88e20134f
commit e6ee152774
4 changed files with 21 additions and 15 deletions

View File

@@ -209,8 +209,9 @@ The engine consumes the plan in two phases.
The v2 brain (`src/voice_worker/voice_worker.spec.md`, "History and brain") judges each turn once
before the answer: `run_reply_engine(intent_judge=True)` runs the tool router as usual (the harness's
judgement of whether the turn needs a tool and which ones) and runs the planner **only when the
router picked a tool** other than the sentinels (`stop`, `toolSearchTool`) and the always-offered
`chatChannels`. A turn without a tool (greetings, small talk, facts the model knows) goes straight
router picked a tool** other than the sentinels (`stop`, `toolSearchTool`; the router adds `stop` to
almost every pick). A `chatChannels` the router picked counts ("post this in the schedule channel"
needs the planner to name the channel); its every-turn offer, added after the router, does not. A turn without a tool (greetings, small talk, facts the model knows) goes straight
to its answer with one LLM call before it; a tool turn keeps the planner's ordered steps, which
multi-step asks need ("who directed Possessor, and what else did they make").