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): stop the live model asserting stale pre-cutoff facts as current
Personal Jarvis Maintainere102856ac707
diff --git a/jarvis/realtime/session.py b/jarvis/realtime/session.pyindex c9c43b95f7..cc847a1a9e 100644--- a/jarvis/realtime/session.py+++ b/jarvis/realtime/session.py@@ -255,7 +255,9 @@ _DELEGATE_DECLARATION: dict[str, Any] = {"integration, configuration, or system state. Also call this to ""relay the user's answer to a pending confirmation question. Never ""call it just to look up general world knowledge, public facts or "- "figures, definitions, or smalltalk — answer those directly yourself."+ "figures, definitions, or smalltalk — answer those directly yourself "+ "— unless the user explicitly asks you to look up, check, or verify "+ "the current state of something."),"parameters": {"type": "object",@@ -328,8 +330,10 @@ _DELEGATE_DISCOURAGED_DIRECTIVE = ("conversation. Answer it directly from your own knowledge now, without ""calling any function. Call jarvis_action on this turn ONLY if the ""request actually needs the user's own world (their Wiki or personal "- "memory, their files, apps, settings, or system state) or performs a "- "real action on their computer."+ "memory, their files, apps, settings, or system state), performs a "+ "real action on their computer, or explicitly asks you to look up, "+ "check, or verify current information you may only know in an "+ "outdated state.")# A slow action (a Wiki write curates pages through an LLM) outlives the turn# that asked for it as soon as the user speaks into the waiting silence. The@@ -678,6 +682,29 @@ def _session_instructions(f"({now.tzname() or 'local time'}). Answer date, weekday, and ""time-of-day questions directly from this — never guess.")+ # Stale-world-knowledge guard (live complaint 2026-07-21: asked when a+ # game ships, the model asserted its pre-cutoff "planned for 2025" state+ # as current — in July 2026). The realtime model cannot learn new facts+ # here, but it CAN be made to reason against the clock line instead of+ # its training years and to label time-sensitive answers as dated. Kept+ # prompt-only on purpose: the turn planner deliberately keeps world+ # knowledge native (a delegation costs 12-34 s of silence), so a dated+ # answer plus an offer to check is the correct trade — never an+ # automatic web lookup.+ freshness_line = (+ "Your built-in world knowledge ends at a training cutoff well BEFORE "+ "the current date above; assume it is months to years out of date. "+ "For time-sensitive facts — release dates, announcements, launches, "+ "versions, prices, current events, sports, officeholders, 'is X out "+ "yet' — reason from the current date, never from your training time: "+ "anything your knowledge dates as upcoming may long since have "+ "happened or changed. Give your best answer clearly marked as "+ "possibly outdated ('as of my last information, ...') and offer to "+ "check the current state; never present remembered time-sensitive "+ "facts as today's state. If the user then asks you to check, look "+ "up, or verify, that is an explicit action request for your action "+ "function, not world knowledge."+ )language_name = _LANGUAGE_NAMES.get(language, "the user's language")input_language_name = _LANGUAGE_NAMES.get(input_language)if input_language_name:@@ -711,6 +738,7 @@ def _session_instructions(_REALTIME_SAFETY_APPENDIX,input_directive,clock_line,+ freshness_line,("Runtime identity: this voice session is using the Realtime engine"+ (f", provider {provider}" if provider else "")diff --git a/tests/unit/realtime/test_session.py b/tests/unit/realtime/test_session.pyindex 49a78433c2..4bc6759815 100644--- a/tests/unit/realtime/test_session.py+++ b/tests/unit/realtime/test_session.py@@ -4723,6 +4723,28 @@ def test_session_instructions_place_preferences_between_persona_and_directives()+def test_session_instructions_anchor_clock_and_stale_knowledge_guard(monkeypatch):+ """The per-turn instructions must carry today's date AND tell the model+ its training knowledge is older than that date. Without the second half+ the model asserts pre-cutoff facts as current (live 2026-07-21: a release+ 'planned for 2025' presented as the current state in July 2026)."""+ from datetime import datetime++ from jarvis.brain import persona_loader+ from jarvis.realtime import session as session_mod++ monkeypatch.setattr(+ persona_loader, "load_effective_persona_prompt", lambda: "PERSONA_MARKER"+ )+ text = session_mod._session_instructions("en")+ assert datetime.now().astimezone().strftime("%Y-%m-%d") in text+ assert "training cutoff" in text+ # The guard must anchor reasoning on the injected clock, not training years.+ assert "current date" in text+ # And it must demand honest dating instead of asserting stale state.+ assert "as of my last information" in text++def test_preferences_block_renders_the_user_file_with_the_realtime_cap(monkeypatch):from jarvis.brain import agent_instructionsfrom jarvis.realtime import session as session_mod