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(wiki): teach the relevance gate German pronominal adverbs

Ruben Lütkef8672843bda0
diff --git a/jarvis/brain/wiki_relevance_vocab.py b/jarvis/brain/wiki_relevance_vocab.py
index f7e893cd82..1ed35a74eb 100644
--- a/jarvis/brain/wiki_relevance_vocab.py
+++ b/jarvis/brain/wiki_relevance_vocab.py
@@ -75,13 +75,22 @@ GENERAL_KNOWLEDGE_PHRASES: tuple[str, ...] = (
#: question; on its own it is not enough.
LOOKUP_MARKERS: tuple[str, ...] = (
# de
- "wann", "was", "wer", "welche", "welcher", "welches", "wo", "wie",
- "warum", "wieso", "kennst du", "zeig", "zeige", "nenn", "nenne",
+ "wann", "was", "wer", "wen", "wem", "wessen",
+ "welche", "welcher", "welches", "welchen", "welchem",
+ "wo", "wie", "warum", "wieso",
+ # German pronominal adverbs ("woran arbeite ich"): a whole question shape
+ # with no single-word English equivalent. Missing these made "woran
+ # arbeite ich gerade an X?" read as having no lookup shape at all —
+ # caught by the live vault check on 2026-07-25, not by the unit tests.
+ "woran", "worauf", "worueber", "womit", "wofuer", "wovon", "wobei",
+ "wonach", "worin", "woher", "wohin",
+ "kennst du", "zeig", "zeige", "nenn", "nenne",
"erzaehl", "erzaehle", "sag mir", "liste",
# en
- "when", "what", "who", "which", "where", "how", "why",
+ "when", "what", "who", "whom", "whose", "which", "where", "how", "why",
"do you know", "tell me", "show me", "list", "remind me",
# es
- "cuando", "que", "quien", "cual", "donde", "como", "por que",
+ "cuando", "que", "quien", "cual", "cuales", "donde", "adonde",
+ "como", "por que", "cuanto", "cuanta", "cuantas",
"dime", "muestrame",
)
diff --git a/tests/unit/brain/test_wiki_relevance.py b/tests/unit/brain/test_wiki_relevance.py
index 54fb21f21f..313e85f48d 100644
--- a/tests/unit/brain/test_wiki_relevance.py
+++ b/tests/unit/brain/test_wiki_relevance.py
@@ -76,6 +76,22 @@ def test_personal_questions_do_consult_memory(utterance: str) -> None:
assert should_consult_memory(utterance).consult is True
+ "utterance",
+ [
+ # German pronominal adverbs — a question shape with no one-word English
+ # equivalent. Regression: the live vault check on 2026-07-25 found these
+ # rejected as "no lookup shape", silently muting real memory questions.
+ "Woran arbeite ich gerade bei Personal Jarvis?",
+ "Worauf habe ich mich letzte Woche vorbereitet?",
+ "Womit hat mein Projekt angefangen?",
+ "Wofuer brauche ich meinen Zweitrechner?",
+ ],
+)
+def test_german_pronominal_adverbs_are_lookup_shapes(utterance: str) -> None:
+ assert should_consult_memory(utterance).consult is True
+
+
@pytest.mark.parametrize(
"utterance",
["Hallo", "ok", "danke dir", "", " "], # i18n-allow: German user input under test