Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(brain): close the contact say-do gap — mandate contact-upsert + honest backstop
Ruben Lütke5f3d6df53a8f
diff --git a/jarvis/brain/contact_intent.py b/jarvis/brain/contact_intent.pyindex ed8dc492cf..1aabd06d53 100644--- a/jarvis/brain/contact_intent.py+++ b/jarvis/brain/contact_intent.py@@ -22,6 +22,7 @@ only on high-confidence signals — a genitive contact detail ("Christophs Nummeist …") alone, or a save verb corroborated by a contact noun / dictated detail.A bare "die Nummer ist falsch" or "schick Harald eine Mail" must NOT fire."""+from __future__ import annotationsimport re@@ -49,18 +50,18 @@ _DETAIL_RE = re.compile(# Imperative/intent to save, create, add, remember, enter a contact._SAVE_VERB_RE = re.compile(r"\b("- r"merk(e|t)?\s+dir" # merk dir / merke dir- r"|notier\w*" # notiere / notier dir- r"|speicher\w*" # speichere / speichern / speicher- r"|anleg\w*" # anlegen- r"|leg\w*\b[^?]{0,40}\ban\b" # leg/legt … an (separable)- r"|eintrag\w*" # eintragen- r"|trag\w*\b[^?]{0,40}\bein\b" # trag … ein (separable)- r"|hinzufueg\w*" # hinzufuegen- r"|fueg\w*\b[^?]{0,40}\bhinzu\b" # fueg … hinzu (separable)- r"|nimm\b[^?]{0,40}\bauf\b" # nimm … auf+ r"merk(e|t)?\s+dir" # merk dir / merke dir+ r"|notier\w*" # notiere / notier dir+ r"|speicher\w*" # speichere / speichern / speicher+ r"|anleg\w*" # anlegen+ r"|leg\w*\b[^?]{0,40}\ban\b" # leg/legt … an (separable)+ r"|eintrag\w*" # eintragen+ r"|trag\w*\b[^?]{0,40}\bein\b" # trag … ein (separable)+ r"|hinzufueg\w*" # hinzufuegen+ r"|fueg\w*\b[^?]{0,40}\bhinzu\b" # fueg … hinzu (separable)+ r"|nimm\b[^?]{0,40}\bauf\b" # nimm … aufr"|save|remember|store\b|note\s+down|add\b|create\b"- r"|guard\w*|anota\w*|agrega\w*|anade\w*" # ES guardar/anotar/agregar/anadir+ r"|guard\w*|anota\w*|agrega\w*|anade\w*" # ES guardar/anotar/agregar/anadirr")")diff --git a/tests/unit/brain/test_action_say_do_guard.py b/tests/unit/brain/test_action_say_do_guard.pyindex 1956f7dccc..266fa5923e 100644--- a/tests/unit/brain/test_action_say_do_guard.py+++ b/tests/unit/brain/test_action_say_do_guard.py@@ -6,12 +6,12 @@ confirmation ("Okay, sehr gut") is a dishonest say-do gap and must be replacedwith an honest line. A clarifying QUESTION ("Wie lautet die volle E-Mail?") isthe DESIRED behavior for a missing/broken field and must be left intact."""+from jarvis.brain.manager import (_action_unfulfilled_answer,_unfulfilled_replacement,)-# --- honest write fallback wording -------------------------------------------@@ -23,7 +23,7 @@ def test_action_unfulfilled_answer_is_honest_and_localized():for txt in (de, en, es):assert txt.strip()assert "gespeichert habe ich" not in txt.lower()- assert "noch nicht" in de.lower() # "not yet saved"+ assert "noch nicht" in de.lower() # "not yet saved"assert "haven't" in en.lower() or "not" in en.lower()assert "todav" in es.lower() or "aún" in es.lower() or "no he" in es.lower()diff --git a/tests/unit/brain/test_contact_intent.py b/tests/unit/brain/test_contact_intent.pyindex 71b8a299e8..66ff5fc8c5 100644--- a/tests/unit/brain/test_contact_intent.py+++ b/tests/unit/brain/test_contact_intent.py@@ -7,6 +7,7 @@ ist …", and Jarvis replied "Okay, sehr gut" WITHOUT ever calling themandates the real tool on a contact-write turn so the read-style evidence gate'sbackstop can catch a fake confirmation. Pure regex, no LLM (AP-9/AP-11)."""+from jarvis.brain.contact_intent import (CONTACT_WRITE_DIRECTIVE,detect_contact_write_intent,@@ -17,9 +18,12 @@ from jarvis.brain.contact_intent import (def test_reported_transcript_turn_fires():# The exact utterance from the live session (save verb + dictated detail).- assert detect_contact_write_intent(- "Ähm, ja, legt die mal an. Also die Mailadresse von Harald ist harald.10.de."- ) is True+ assert (+ detect_contact_write_intent(+ "Ähm, ja, legt die mal an. Also die Mailadresse von Harald ist harald.10.de."+ )+ is True+ )def test_genitive_detail_alone_fires():