Harden semantic boundaries and repair dialogue state

Replace nearest-neighbour personal routing with a frozen class-balanced linear head measured on historical, stratified, cross-validation, holdout, and fresh challenge gates (V-702). Close the four repair handoff holes, preserve nested clarification flows, and route Russian possession statements through structural grammar rather than lexical exceptions (V-573). Owner explicitly requested direct commits to master.
This commit is contained in:
2026-08-13 03:00:31 +04:00
parent 35c6ff5a71
commit 8015fdbb79
24 changed files with 2644 additions and 172 deletions
+5
View File
@@ -61,5 +61,10 @@ func StageZeroGrammars(acts ActMatcher) []Grammar {
// last overall because it matches on the first word alone: "расскажи про
// X" is a world question the model called a fact (Vikunja #498).
grammars = append(grammars, NarrativeQueryGrammars()...)
// Last because it is deliberately broad over the open remainder of a
// grammatical declaration. Every explicit question, command, capture and
// narrative request above gets first refusal; this catches the Russian
// present-tense possession statement the statistical floors call a query.
grammars = append(grammars, PossessionStatementGrammar())
return grammars
}