From c5e993fc5518084f2ac40d99988b62213d8bd182 Mon Sep 17 00:00:00 2001 From: claude Date: Tue, 4 Aug 2026 11:46:12 +0400 Subject: [PATCH] docs: record the two stage 0 shapes and what they measured (V-498) Co-Authored-By: Claude Opus 5 --- CLAUDE.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 779e26b..5017e72 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -189,6 +189,18 @@ fixture had said `query` since ru-query-019 was written. Measured: **full accura Go's `\b` is ASCII-only and never fires after a Cyrillic letter; the pattern needs an explicit `(\s|[?!.]|$)`. +Two more shapes taken off the model, 04-08-2026 (V-498). `rest-of-day-query` inside +`AgendaQueryGrammars` claims "что дальше?" / "what's next", and `NarrativeQueryGrammar` +(`stage0.go`, wired **last** in `buildRouter`, after the capture marker) claims "расскажи про +X", "объясни X", "опиши X". Neither carries a question mark or an interrogative, so the model +called both `IntentFact`; the write was caught downstream by `IsQuestionShaped`, so this was a +latency and fixture defect, not a correctness one. The narrative rule reads the same +`narrativeRequests` lexicon `IsQuestionShaped` reads, and declines `chatNarrativeTopics` — a +joke, a bedtime story, herself — because the query chain has no source that answers those. +New fixture cases ru-query-024 and ru-query-025. Classifier + ONNX baseline **56/80 (70.0%) → +58/82 (70.7%)**, no case regressed, no new false clarify. The LLM arm was not measured (no +llama-server in that run), so judge it again before quoting a cascade number. + ## LLM output contract All phrasing paths emit `{"response":"...","mood":"..."}` (parsed in `replier_llm.go` and