From 3f9dc7a2700f66633d23551b5f68e874bbd86e6f Mon Sep 17 00:00:00 2001 From: Mikhail Date: Tue, 25 Aug 2026 04:30:54 +0300 Subject: [PATCH] Trace final chat response selection --- cmd/core-runtime/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/core-runtime/main.go b/cmd/core-runtime/main.go index bd20cec..d5c718b 100644 --- a/cmd/core-runtime/main.go +++ b/cmd/core-runtime/main.go @@ -813,11 +813,13 @@ func main() { log.Printf("cognitive response review proposed stable semantic rewrite; preserving semantic reply") } } - if !responseResult.Handled && identityReply == "" { - if stableReply, stable := interactiondomain.StableConversationalReply(utterance.Content, deterministicSpeechAct); stable { + if identityReply == "" { + stableAct := interactiondomain.ClassifySpeechAct(utterance.Content, utterance.CorrectsUtteranceID) + if stableReply, stable := interactiondomain.StableConversationalReply(utterance.Content, stableAct); stable { planningReply = stableReply } } + log.Printf("chat response final message=%q act=%s deterministic=%s handled=%t fallback=%q planning=%q", utterance.Content, semantic.Interpretation.SpeechAct, deterministicSpeechAct, responseResult.Handled, semantic.Reply, planningReply) response := interaction.ChatMessageResponse{ ConversationID: conversation.ID, UtteranceID: utterance.ID, -- 2.54.0