Add seven stage 0 frames and tighten three more (V-720)

MavenHelpGrammar keeps "как отменить напоминание" on SourceSelf, where the
answer names the command Maven accepts, instead of leaking to search.
PublicCurrentVersionGrammar anchors an explicitly current release on
SourceWorld and declines first-person ownership.

AmbiguousFragmentGrammar refuses filler plus an unresolved demonstrative
rather than letting a statistical head invent context.
ImplicitElapsedQueryGrammar reads Russian question word order in "давно я
не тренировался" as recall; the declarative order stays a statement.
ReminderCancellationReportGrammar keeps "я отменил напоминание" in the
non-mutating chat lane.

CommandProhibitionGrammar routes a direct negative command to a sentinel
fn that can never collide with an enabled tool. ActHasEntityTarget stops a
bare verb or a demonstrative-only tail from crossing into Nexus.

Praxis attention now accepts "что там с X" for the four service names only.
taskstatus separates command mood from result words so a first-person
report cannot mutate the board. question.go exports the open-question and
locative shapes the recall gate reads.

--no-verify: master is the working branch this session by the owner's call.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-15 17:18:48 +04:00
parent 9944ec8c58
commit a97764c5f7
30 changed files with 1616 additions and 78 deletions
+18
View File
@@ -48,9 +48,27 @@ func WorldQueryGrammars() []Grammar {
Pattern: arithmeticQueryPattern,
Build: queryTo(SourceWorld),
},
PublicCurrentVersionGrammar(),
}
}
// WorldQueryDecision applies the literal world-side grammars outside the full
// cascade. It is used at defensive reconstruction boundaries (a question that
// reached the fact handler) so the same structural evidence can be restored
// without trusting the model that misrouted it.
func WorldQueryDecision(utterance string) (Decision, bool) {
for _, grammar := range WorldQueryGrammars() {
decision, _, accepted := grammar.Evaluate(utterance)
if !accepted {
continue
}
decision.Utterance = utterance
decision.SourceAnchored = decision.Source != SourceUnknown
return decision, true
}
return Decision{}, false
}
// definitionQueryPattern — anchored at the start, because "напомни узнать что
// такое TCP" is a reminder that happens to contain the frame.
//