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(realtime): ship the silence rule and its speak-request exception on the same channel
rubenluetke10-beep00c9b5bca82d
diff --git a/jarvis/realtime/session.py b/jarvis/realtime/session.pyindex fafd74abd8..016d1c91f7 100644--- a/jarvis/realtime/session.py+++ b/jarvis/realtime/session.py@@ -898,14 +898,20 @@ _TOOL_ROLE_DIRECTIVE = ()-# One voice, one side, one reply. Lives in the SESSION instructions — the-# channel every realtime transport provably delivers to its voice model —-# because the equivalent rule in the Codex thread-start base instructions is-# demonstrably inert there: three live calls in a row the voice performed-# BOTH sides of a greeting exchange and hung itself up ("…Take care. Will do.-# Catch you later. Later. Bye.", 2026-08-05 20:42) while rules delivered via-# developer context (the ack ban, the language pin) were honored. Whatever-# thread-start instructions configure, it is not the live voice.+# One voice, one side, one reply. Lives in the SESSION instructions because+# what the live evidence supports is: a rule stated ONCE at connection open+# (the Codex thread-start base instructions) does not hold up in the live+# conversation — three calls in a row the voice performed BOTH sides of a+# greeting exchange and hung itself up ("…Take care. Will do. Catch you+# later. Later. Bye.", 2026-08-05 20:42) — while rules delivered through the+# session/developer-context channel (the ack ban, the language pin) are+# honored. Whether thread-start is inert or merely fades under 19k chars of+# context is deliberately left open; repeating the rule here is correct+# under both explanations. BOTH halves of the developer-message rule must+# ride this channel TOGETHER: shipping the silence half here while the+# SPEAK_REQUEST_OPENER exception sat only in thread-start would mute+# announcements and late action results all over again (independent review+# C1, 2026-08-05)._ONE_SPEAKER_DIRECTIVE = ("Live-call discipline: you are ONE voice in a two-party phone-style ""conversation. Produce exactly one reply to the user's latest actual "@@ -914,7 +920,11 @@ _ONE_SPEAKER_DIRECTIVE = ("quote, or role-play the user's answer, and never continue chatting with ""yourself — a pause is the user thinking or acting, not an invitation to ""fill it. Do not say goodbye, wrap up, or close the exchange unless the "- "user clearly did so first."+ "user clearly did so first. Developer messages are silent configuration: "+ "never acknowledge, answer, or mention them. The ONE exception: a "+ f"developer message that opens with '{SPEAK_REQUEST_OPENER}' is a "+ "delivery order — speak its content to the user as your own reply, in "+ "your own voice.")diff --git a/tests/unit/realtime/test_speak_request_parity.py b/tests/unit/realtime/test_speak_request_parity.pyindex 4b93ebd0f5..973596234e 100644--- a/tests/unit/realtime/test_speak_request_parity.py+++ b/tests/unit/realtime/test_speak_request_parity.py@@ -23,6 +23,23 @@ def test_base_instructions_quote_the_exact_speak_request_opener() -> None:assert "configuration message's arrival" in base+def test_session_channel_carries_the_rule_AND_its_exception_together() -> None:+ """Both halves must ride the channel the voice model provably reads.++ Shipping the silence half in the per-session block while the exception+ sat only in the thread-start instructions would mute announcements and+ late action results all over again (independent review C1: the one-+ speaker directive's "wait silently" plus the inline "never acknowledge"+ headers outvoted an exception the voice may never see).+ """+ directive = session_mod._ONE_SPEAKER_DIRECTIVE+ assert "silent configuration" in directive+ assert f"'{session_mod.SPEAK_REQUEST_OPENER}'" in directive+ # And the whole thing reaches the assembled session block.+ block = session_mod._session_instructions("en")+ assert f"'{session_mod.SPEAK_REQUEST_OPENER}'" in block++def test_every_speak_request_prompt_opens_with_the_exception_sentence() -> None:opener = session_mod.SPEAK_REQUEST_OPENERprompts = (