Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(voice): daily-log routing distinguishes append-with-content vs intent-to-dictate vs goal note
Adam Eivyedf05f955a03
diff --git a/server/services/voice/pipeline.js b/server/services/voice/pipeline.jsindex 64663210b1..d9f33ff591 100644--- a/server/services/voice/pipeline.js+++ b/server/services/voice/pipeline.js@@ -38,7 +38,9 @@ const buildSystemPrompt = (cfg) => {'Trigger phrases that REQUIRE a tool call: ' +'"open"/"go to"/"take me to"/"show me"/"navigate to" → matching navigation tool (e.g., daily_log_open with startDictation=false). ' +'INTENT TO CREATE / WRITE in the daily log — phrases like "let\'s make a daily log", "let\'s make a new daily log", "start a daily log", "I want to make a log entry", "let me log something today", "new daily log", "let me add to my log" → call daily_log_open with startDictation=true. After this single tool call, STOP TALKING and let the user dictate freely — the dictation system handles every following utterance automatically without you. Do NOT say "I\'ll append it" or "what would you like to add" — the user already knows. Just confirm in one short sentence ("Daily log open, dictating now.") and stay quiet. ' +- 'When the user is asking you to write something specific into the log right now (e.g., "add to my log: I went to the gym", "note in today\'s log that X") → call daily_log_append with the exact text — never just say "Appending …" without actually issuing the tool call. ' ++ 'When the user is asking you to write something specific into the daily log right now — phrases like "add to my daily log: X", "note in today\'s log that X", "write in my log: X", "log this in my daily log: X", "for my daily log: X" — you MUST call daily_log_append with the exact X text (everything AFTER the leading "add … to my log" / "note that" / "for my log" phrasing). NEVER reply with just a paraphrased "add to my daily log: …" line — that\'s narration; CALL daily_log_append. ' ++ 'Empty-content intent — phrases that announce the user is about to dictate a note WITHOUT yet providing the note text — "add a note to my daily log" / "add another note to my daily log" / "add this other note to my daily log" / "I want to add to my log" / "let me add a note" — call daily_log_start_dictation (NOT daily_log_append, because there\'s no content to append yet). The user\'s next utterance will be captured by the dictation system. ' ++ 'When the user describes a daily-life event in first person ("I did X today", "X happened today", "set up Y for Z today", "I had a nice walk", "the dishwasher broke") AND no specific tool fits better, the right tool is daily_log_append (NOT goal_log_note unless they explicitly named a goal). goal_log_note is ONLY for "log progress on my <goal-name> goal" / "update my <goal-name> goal with X" — there must be a real goal title in the user\'s words. Random life events like "set up the cat litter box" are daily_log_append, not goals. ' +'"save"/"capture"/"add"/"remember"/"note"/"file"/"log it" → matching capture tool (e.g., brain_capture, meatspace_log_*, daily_log_append, goal_log_note). ' +'"start dictation"/"dictate"/"record my log" → daily_log_start_dictation. ' +'"what time"/"what day"/"what date" → time_now. ' +diff --git a/server/services/voice/tools.js b/server/services/voice/tools.jsindex 20ebbb55e9..849b8fbea2 100644--- a/server/services/voice/tools.js+++ b/server/services/voice/tools.js@@ -385,7 +385,11 @@ const TOOLS = [{name: 'goal_log_note',description:- 'Attach a free-form progress note to an active goal (without changing the percent). Use when the user says "log on my X goal that I talked to Y", "add a note to my jacket goal — found the pattern". Matches the goal by fuzzy title match.',+ 'Attach a free-form progress note to an EXISTING NAMED GOAL (without changing the percent). ' ++ 'ONLY use when the user explicitly references a specific goal by its title or short name — phrasings like "log on my <goal> goal that I talked to Y", "add a note to my jacket goal — found the pattern", "update my estate goal: signed the papers". ' ++ 'DO NOT use for generic life events like "set up the cat litter box", "I went for a walk", "the dishwasher broke" — those have no goal context and belong in daily_log_append. ' ++ 'If the user did not say the word "goal" or name a specific known goal, this is the wrong tool. ' ++ 'Matches the goal by fuzzy title match — but if the matched score is weak the call returns ok:false; do not invent a query that doesn\'t come from the user\'s words.',parameters: {type: 'object',properties: {