router: agenda questions belong to query, not to system
"что у меня сегодня" and "что у меня в календаре сегодня" both routed IntentSystem on the deployed daemon, and replySystem has no agenda arm, so both answered "пока не умею". The calendar source that can answer them lives in the query chain and was never reached. The fixture has said query since ru-query-019 was written; the daemon disagreed with the fixture and the daemon was wrong. AgendaQueryGrammars routes them at stage 0, after the clock rules so "какой сегодня день" keeps reaching replySystem. Intent only — which source claims the turn stays the query chain's decision. This is what made the follow-up continuation look like it only worked for "what day is it". It did: the query half inherited an intent whose handler could not answer, so both halves came back "пока не умею". Measured on the 77-case RU fixture: full accuracy 70.1% → 72.7%, intent-only 75.3% → 77.9%, calendar 0/2 → 2/2, clarify counts unchanged. The eval harness wires the new grammars too, or the fixture would stop being a measurement of the daemon. Go's \b is ASCII-only and never fires after a Cyrillic letter, which the first version of the pattern learned the hard way. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TrVSBKe3RFDF4fGYKWYQnX
This commit is contained in:
@@ -113,6 +113,15 @@ tests are offline and cost nothing. Re-measured: **false clarifies 3 → 2, inte
|
||||
75.3%, full accuracy unchanged at 70.1%, missed clarify still 1.** The two remaining false
|
||||
clarifies are the act-with-no-allowlisted-fn arm of the gate, not this rule.
|
||||
|
||||
Agenda questions taken off the model, 01-08-2026. `AgendaQueryGrammars` (`stage0.go`, wired
|
||||
after the clock rules in `buildRouter`) routes "что у меня сегодня", "во сколько у меня
|
||||
встреча" and anything naming a calendar to `IntentQuery` at stage 0. They were going to
|
||||
`IntentSystem`, where `replySystem` has no agenda arm and answered "пока не умею" — the
|
||||
fixture had said `query` since ru-query-019 was written. Measured: **full accuracy 70.1% →
|
||||
72.7%, intent-only 75.3% → 77.9%, calendar 0/2 → 2/2**, clarify counts unchanged. Note that
|
||||
Go's `\b` is ASCII-only and never fires after a Cyrillic letter; the pattern needs an
|
||||
explicit `(\s|[?!.]|$)`.
|
||||
|
||||
## LLM output contract
|
||||
|
||||
All phrasing paths emit `{"response":"...","mood":"..."}` (parsed in `replier_llm.go` and
|
||||
|
||||
Reference in New Issue
Block a user