Skip to content

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.

fix(voice): stop confident fact fabrication and garbled-entity drift (BUG-106)

Personal Jarvis Maintainer5429c0689426
diff --git a/docs/BUGS.md b/docs/BUGS.md
index 70eb574339..7788e7befa 100644
--- a/docs/BUGS.md
+++ b/docs/BUGS.md
@@ -7300,3 +7300,69 @@ conversation must either receive the conversation's relevant context
structurally (not by prompt-compliance alone) or have its request
composed as self-contained — an instruction to pass user words
"verbatim" must always carry the elliptical-follow-up exception.
+
+## BUG-106: confident fact fabrication + garbled-entity drift — the voice stack invents niche figures, researches the wrong aircraft, and contradicts its own search results (HIGH, FIXED IN CODE 2026-07-21; LIVE VALIDATION PENDING)
+
+**Symptom (live 2026-07-21 11:36, realtime voice).** "Kann eine Gulfstream 800 in St. Moritz landen?" <!-- i18n-allow: quoted user utterance under test -->
+produced three stacked failures in one 90-second call:
+
+1. **Fabricated verdict, native turn.** The realtime model answered a flat
+ "no, the runway is far too short for such a large aircraft" and, on the
+ follow-up, asserted "about 1,800 meters" as the runway length. Reality:
+ Samedan's runway is 1,840 m and Gulfstream's published G800 landing
+ distance is ~946 m — a landing is feasible under conditions; the flat
+ "no" was invented, delivered with full confidence.
+2. **Garbled entity taken literally.** The user's next turn arrived from
+ STT as "braucht die Golf braucht die Golf 100 Start- und Landebahn". <!-- i18n-allow: quoted garbled STT transcript under test -->
+ The realtime model's own ack correctly resolved this to "die Gulfstream
+ achthundert" — but the downstream router received the raw transcript,
+ took "Golf 100" literally, and researched the Gulfstream G100, a
+ completely different (retired, super-midsize) aircraft.
+3. **Conclusion contradicting the fresh data.** The router's delivered
+ answer said the G100 needs ~1,644 m of runway "deutlich mehr, als in
+ St. Moritz verfügbar — damit kommst du dort also definitiv nicht weg". <!-- i18n-allow: quoted live reply under test -->
+ 1,644 m is LESS than the 1,840 m available: the model bent its own
+ search result to match the fabricated "too short" claim sitting in the
+ conversation history.
+
+**Root causes.**
+
+1. The stale-knowledge guard (417248ee) covers only TIME-SENSITIVE facts.
+ Nothing told the realtime model that its recall of niche technical
+ figures (dimensions, performance data, specs) is unreliable even where
+ nothing changes over time, or that categorical feasibility verdicts
+ ("cannot land / will not fit") must not rest on remembered numbers.
+2. The router prompt had the BUG-105 elliptical-follow-up exception for
+ computer_use goals, but no rule that a speech transcript garbles entity
+ names: a sound-alike variant of an entity under active discussion
+ ("Golf 100" vs the discussed "Gulfstream 800") was treated as a new
+ literal entity in the search query and the answer.
+3. No rule ranked fresh tool data above the assistant's own earlier claims
+ in history, so the earlier fabricated "too short" verdict anchored the
+ interpretation of contradicting search numbers.
+
+**Fix (prompt-side, both brains).**
+
+1. `jarvis/realtime/session.py` — a `precision_line` next to the freshness
+ guard: never present a remembered niche figure as exact, never rest a
+ categorical verdict on one; give a marked estimate, name what the
+ answer depends on, offer to check ("check" then counts as an explicit
+ action request).
+2. `jarvis/brain/router.py` — new SPOKEN-INPUT CONTINUITY section:
+ sound-alike entity variants resolve to the entity under active
+ discussion (in answers, search_web queries, and every goal handed to a
+ tool/worker); switch only on a clearly new entity; ask once when truly
+ ambiguous. And: conclusions must follow from fresh tool data, which
+ outranks the assistant's own prior statements — contradictions are
+ corrected plainly, never bent to match.
+
+**Class rule.** A voice assistant's input is a lossy transcript and its
+recall of niche figures is a language model's, not a database's. Every
+answer layer must (a) rank fresh tool data above remembered figures and
+above its own prior claims, and (b) resolve entities against the live
+conversation, never against the literal garble of one turn.
+
+Guards:
+`tests/unit/realtime/test_session.py::test_session_instructions_carry_the_precision_guard`,
+`tests/unit/brain/test_router_prompt_continuity.py`.
+
diff --git a/jarvis/brain/router.py b/jarvis/brain/router.py
index c3c6a3b16c..d6d05eaec3 100644
--- a/jarvis/brain/router.py
+++ b/jarvis/brain/router.py
@@ -413,6 +413,23 @@ dispatch_to_harness, search_web, computer-use, run_shell. Verstoss gegen
diese Regel ist die schwerste Verfehlung — sie erzeugt eine Luege gegenueber
Ruben und untergraebt sein Vertrauen.
+SPOKEN-INPUT CONTINUITY (BUG-106 — garbled entities and fresh data):
+Your input is a speech transcript, and speech recognition garbles names,
+brands, and model numbers. When the current utterance names an entity that
+is a sound-alike variant of one already under active discussion in this
+conversation (history: "Gulfstream 800" → utterance: "Golf 100"), it is
+almost always the SAME entity misheard — resolve it to the discussed one
+in your answer, your search_web queries, and every goal/utterance you hand
+to a tool or worker. Switch to a genuinely different entity only when the
+user clearly introduces one; if it is truly ambiguous which of two similar
+entities is meant, ask once, briefly.
+And when a tool returns fresh data (search_web results, file contents,
+tool output), your conclusion must follow from THAT data — never from what
+an earlier assistant turn in the history claimed. Fresh tool data outranks
+your own previous statements: if it contradicts something you said before,
+say the corrected fact plainly instead of bending the new numbers to match
+the old claim.
+
ABSOLUTE REGELN (NIEMALS IGNORIEREN):
- Provider-/Modell-Wechsel ("wechsel auf X", "nimm Opus") erledigt das System
automatisch, BEVOR du dran bist — du kuemmerst dich nicht darum und lehnst so
diff --git a/jarvis/realtime/session.py b/jarvis/realtime/session.py
index 2211da7cfd..ff33dca130 100644
--- a/jarvis/realtime/session.py
+++ b/jarvis/realtime/session.py
@@ -741,7 +741,7 @@ def _session_instructions(
"up, or verify, that is an explicit action request for your action "
"function, not world knowledge."
)
- # Fabricated-precision guard (live 2026-07-21 11:36: asked whether a
+ # Fabricated-precision guard (BUG-106, live 2026-07-21 11:36: asked whether a
# Gulfstream G800 can land in St. Moritz, the model invented a runway
# length and delivered a flat "cannot land" — the real figures say a
# landing is feasible under conditions). The time-agnostic sibling of
diff --git a/tests/unit/brain/test_router_prompt_continuity.py b/tests/unit/brain/test_router_prompt_continuity.py
new file mode 100644
index 0000000000..43e62868c6
--- /dev/null
+++ b/tests/unit/brain/test_router_prompt_continuity.py
@@ -0,0 +1,27 @@
+"""BUG-106 guards: the router prompt must carry the spoken-input continuity
+rules.
+
+Live 2026-07-21 11:36: a conversation about a Gulfstream 800 got the garbled
+STT turn "braucht die Golf 100 Start- und Landebahn"; the router searched the # i18n-allow: quoted garbled STT transcript under test
+literal G100 (a different aircraft) and then delivered a verdict contradicting
+its own search numbers, anchored on an earlier fabricated claim in history.
+"""
+
+from jarvis.brain.router import SYSTEM_PROMPT
+
+
+def test_prompt_resolves_sound_alike_entities_to_the_discussed_one():
+ """A garbled sound-alike variant of an entity under discussion must be
+ resolved to that entity, not researched literally."""
+ assert "SPOKEN-INPUT CONTINUITY" in SYSTEM_PROMPT
+ assert "sound-alike variant" in SYSTEM_PROMPT
+ # The resolution must reach every downstream request, not just the reply.
+ assert "search_web queries" in SYSTEM_PROMPT
+
+
+def test_prompt_ranks_fresh_tool_data_above_prior_assistant_claims():
+ """Conclusions must follow from fresh tool data; an earlier assistant
+ claim in history must never bend new numbers to match it."""
+ normalized = " ".join(SYSTEM_PROMPT.split())
+ assert "Fresh tool data outranks your own previous statements" in normalized
+ assert "your conclusion must follow from THAT data" in normalized
diff --git a/tests/unit/realtime/test_session.py b/tests/unit/realtime/test_session.py
index b04e47adf1..8db78ecba1 100644
--- a/tests/unit/realtime/test_session.py
+++ b/tests/unit/realtime/test_session.py
@@ -4795,6 +4795,28 @@ def test_session_instructions_anchor_clock_and_stale_knowledge_guard(monkeypatch
assert "as of my last information" in text
+def test_session_instructions_carry_the_precision_guard(monkeypatch):
+ """BUG-106: the freshness guard alone covers only time-sensitive facts.
+ The instructions must also forbid presenting remembered niche figures as
+ exact and resting categorical feasibility verdicts on them (live
+ 2026-07-21 11:36: an invented runway length produced a confident,
+ wrong 'cannot land there')."""
+ 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 "Precision guard" in text
+ # Niche figures must never be asserted as exact recall...
+ assert "Never present a remembered niche figure as exact" in text
+ # ...and no flat verdict may be built on one.
+ assert "never rest a categorical verdict" in text
+ # The escape hatch must stay reachable: "check" is an action request.
+ assert "explicit action request" in text
+
+
def test_preferences_block_renders_the_user_file_with_the_realtime_cap(monkeypatch):
from jarvis.brain import agent_instructions
from jarvis.realtime import session as session_mod