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(ci): put the German escapes on the lines they exempt

Ruben Lütke65058e43b16d
diff --git a/jarvis/core/turn_language.py b/jarvis/core/turn_language.py
index 77c11f1be7..fd9e5e1638 100644
--- a/jarvis/core/turn_language.py
+++ b/jarvis/core/turn_language.py
@@ -188,9 +188,10 @@ def resolve_transcript_language(reported: object, text: str) -> str:
pin back for speech in any language at all (forensic 2026-06-10). A
filler list applied on that word deletes function words from a sentence
it has no business touching: German "um" is the English hesitation
- sound, so "Kümmere dich um das Update" came back as "Kümmere dich das
- Update" — grammatically broken, and the cleanup reported a clean success
- (2026-07-30). # i18n-allow: verbatim German transcript under test
+ sound, so the transcript came back grammatically broken while the
+ cleanup reported a clean success (2026-07-30)::
+
+ "Kümmere dich um das Update" -> "Kümmere dich das Update" # i18n-allow
3. **Ambiguous text defers to the tag.** Text too short or too neutral to
place ("ok", a bare proper noun) leaves the provider's reading standing.
diff --git a/jarvis/dictation/cleanup.py b/jarvis/dictation/cleanup.py
index 57419941a4..b0c3b64e43 100644
--- a/jarvis/dictation/cleanup.py
+++ b/jarvis/dictation/cleanup.py
@@ -70,10 +70,10 @@ from dataclasses import dataclass
#: DE-MINED again on 2026-07-30: "um" left the English table for exactly the
#: same reason, and it was the most damaging entry of the family. It is the
#: canonical English hesitation sound AND one of the highest-frequency German
-#: prepositions ("um fünf Uhr", "es geht um", "kümmere dich um"), so a German
+#: prepositions ("um fünf Uhr", "es geht um", "kümmere dich um"), so a German # i18n-allow
#: utterance tagged English lost the preposition out of the MIDDLE of the
-#: sentence: "Kümmere dich um das Update" was delivered as "Kümmere dich das
-#: Update". # i18n-allow: verbatim German transcript under test
+#: sentence:
+#: "Kümmere dich um das Update" -> "Kümmere dich das Update" # i18n-allow
#: One dropped function word there is a fraction of a percent of the text, so
#: the destruction ceiling never fires and nothing is reported — the sentence
#: simply arrives ungrammatical and the router acts on a mangled instruction.
diff --git a/tests/unit/dictation/test_cleanup.py b/tests/unit/dictation/test_cleanup.py
index b933f2bfbd..490c19e736 100644
--- a/tests/unit/dictation/test_cleanup.py
+++ b/tests/unit/dictation/test_cleanup.py
@@ -84,8 +84,8 @@ def test_content_words_are_never_removed(text: str, language: str) -> None:
def test_filler_inside_a_word_is_not_touched() -> None:
"""Whole-word matching only — "kommen" must not lose its "mm"."""
- # i18n-allow: German fixture under test (§1 list #4)
- text = "Wir kommen gleich, das Hemd ist da."
+ # German fixture under test (§1 list #4); escape is per line.
+ text = "Wir kommen gleich, das Hemd ist da." # i18n-allow
assert clean_transcript(text, language="de").text == text
@@ -117,11 +117,12 @@ def test_german_text_tagged_english_keeps_its_pronouns() -> None:
@pytest.mark.parametrize(
"text",
[
- # i18n-allow: German fixtures under test (§1 list #4)
- "Kümmere dich um das Update.",
- "Erinnere mich um fünf Uhr an den Termin.",
- "Es geht um die Rechnung von gestern.",
- "Ich gehe um das Haus herum.",
+ # German fixtures under test (§1 list #4). The escape is per LINE, not
+ # per block — both language gates read it that way.
+ "Kümmere dich um das Update.", # i18n-allow
+ "Erinnere mich um fünf Uhr an den Termin.", # i18n-allow
+ "Es geht um die Rechnung von gestern.", # i18n-allow
+ "Ich gehe um das Haus herum.", # i18n-allow
],
)
def test_german_preposition_um_survives_an_english_tag(text: str) -> None:
@@ -129,7 +130,10 @@ def test_german_preposition_um_survives_an_english_tag(text: str) -> None:
"um" is the canonical English hesitation sound and one of the most common
German prepositions, so a German utterance tagged "English" came back
- without it — "Kümmere dich um das Update" as "Kümmere dich das Update".
+ without it:
+
+ "Kümmere dich um das Update" -> "Kümmere dich das Update" # i18n-allow
+
One function word is a small fraction of the text, so the destruction
ceiling never fired: the sentence arrived ungrammatical, reported clean,
and the router acted on the mangled instruction.
diff --git a/tests/unit/plugins/stt/test_transcript_filter.py b/tests/unit/plugins/stt/test_transcript_filter.py
index 4754986ca3..1f56b19298 100644
--- a/tests/unit/plugins/stt/test_transcript_filter.py
+++ b/tests/unit/plugins/stt/test_transcript_filter.py
@@ -224,10 +224,11 @@ def test_cleanup_never_raises_on_a_broken_rule(
@pytest.mark.parametrize(
"text",
[
- # i18n-allow: German speech under test (§1 list #4)
- "Kümmere dich um das Update",
- "Erinnere mich um fünf Uhr an den Termin",
- "Es geht um die Rechnung von gestern",
+ # German speech under test (§1 list #4). The escape is per LINE, not
+ # per block — both language gates read it that way.
+ "Kümmere dich um das Update", # i18n-allow
+ "Erinnere mich um fünf Uhr an den Termin", # i18n-allow
+ "Es geht um die Rechnung von gestern", # i18n-allow
],
)
def test_german_speech_mistagged_english_keeps_its_prepositions(text: str) -> None: