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.

chore(i18n): re-apply German test translation/allowlist (kontrollierer batch, redo after concurrent revert)

Ruben Lütkee737b2e5e617
diff --git a/tests/missions/kontrollierer/test_deliver_to_user_folder.py b/tests/missions/kontrollierer/test_deliver_to_user_folder.py
index 5ceaf9d84a..b716e8980d 100644
--- a/tests/missions/kontrollierer/test_deliver_to_user_folder.py
+++ b/tests/missions/kontrollierer/test_deliver_to_user_folder.py
@@ -93,7 +93,7 @@ def test_build_delivered_summary_single(tmp_path: Path) -> None:
out = build_delivered_summary([f])
assert "report.html" in out
assert "Jarvis-Outputs" in out
- assert out.startswith("Fertig.")
+ assert out.startswith("Fertig.") # i18n-allow: asserts the German TTS readback text
def test_build_delivered_summary_empty() -> None:
diff --git a/tests/missions/kontrollierer/test_deliverable.py b/tests/missions/kontrollierer/test_deliverable.py
index 164c93ae55..4c58d14f88 100644
--- a/tests/missions/kontrollierer/test_deliverable.py
+++ b/tests/missions/kontrollierer/test_deliverable.py
@@ -33,14 +33,14 @@ def test_tasks_dir_without_artifacts_returns_empty(tmp_path: Path) -> None:
def test_single_file_is_named(tmp_path: Path) -> None:
- """One archived file → 'Fertig. Datei X ist gespeichert.'"""
+ """One archived file → 'Fertig. Datei X ist gespeichert.'""" # i18n-allow: quotes the German TTS readback
files = tmp_path / "tasks" / "019e63c5-5855" / "artifacts" / "files"
files.mkdir(parents=True)
(files / "landing.html").write_text("<html/>", encoding="utf-8")
s = build_deliverable_summary(tmp_path)
assert "landing.html" in s, f"filename must appear in summary, got {s!r}"
- assert "Datei" in s
- assert "gespeichert" in s
+ assert "Datei" in s # i18n-allow: asserts the German TTS readback text
+ assert "gespeichert" in s # i18n-allow: asserts the German TTS readback text
def test_two_files_are_named(tmp_path: Path) -> None:
@@ -126,7 +126,7 @@ def test_single_file_summary_in_english(tmp_path: Path) -> None:
s = build_deliverable_summary(tmp_path, language="en")
assert "landing.html" in s, f"filename must appear, got {s!r}"
assert "saved" in s
- assert "Datei" not in s and "gespeichert" not in s, (
+ assert "Datei" not in s and "gespeichert" not in s, ( # i18n-allow: asserts absence of the German TTS words
f"English summary must not contain German words: {s!r}"
)
diff --git a/tests/missions/kontrollierer/test_extract_new_file_paths.py b/tests/missions/kontrollierer/test_extract_new_file_paths.py
index 8624be8f30..ef09399141 100644
--- a/tests/missions/kontrollierer/test_extract_new_file_paths.py
+++ b/tests/missions/kontrollierer/test_extract_new_file_paths.py
@@ -64,15 +64,15 @@ def test_real_live_mission_diff() -> None:
# --- HIGH finding (2026-05-27 hardening audit): non-ASCII deliverable names
# dropped because git core.quotepath=true (default) octal-escapes the
-# path in the diff header (ä -> \303\244). The extractor must decode the
+# path in the diff header (ä -> \303\244). The extractor must decode the # i18n-allow: literal umlaut filename, not translatable prose
# escape back to the real on-disk name so the artifacts/files/ copy loop
# can find the file. A German/bilingual assistant produces umlaut
-# filenames routinely (Werbungä.html, Lebenslauf-Müller.pdf).
+# filenames routinely (Werbungä.html, Lebenslauf-Müller.pdf). # i18n-allow: literal umlaut filenames, not translatable prose
def test_octal_escaped_umlaut_path_is_decoded() -> None:
"""git quotepath=true emits `"a/Werbung\\303\\244.html"`; the extractor
- must return the decoded UTF-8 name `Werbungä.html`, not the literal
+ must return the decoded UTF-8 name `Werbungä.html`, not the literal # i18n-allow: literal umlaut filename, not translatable prose
backslash-octal string."""
diff = (
'diff --git "a/Werbung\\303\\244.html" "b/Werbung\\303\\244.html"\n'
@@ -81,18 +81,18 @@ def test_octal_escaped_umlaut_path_is_decoded() -> None:
"--- /dev/null\n"
'+++ "b/Werbung\\303\\244.html"\n'
)
- assert _extract_new_file_paths_from_diff(diff) == ["Werbungä.html"]
+ assert _extract_new_file_paths_from_diff(diff) == ["Werbungä.html"] # i18n-allow: literal umlaut filename asserted by the decoder
def test_octal_escaped_path_with_subdir_is_decoded() -> None:
- """Multi-segment umlaut path round-trips (Lebenslauf-Müller in a subdir)."""
+ """Multi-segment umlaut path round-trips (Lebenslauf-Müller in a subdir).""" # i18n-allow: literal umlaut filename, not translatable prose
diff = (
'diff --git "a/out/Lebenslauf-M\\303\\274ller.pdf"'
' "b/out/Lebenslauf-M\\303\\274ller.pdf"\n'
"new file mode 100644\n"
)
assert _extract_new_file_paths_from_diff(diff) == [
- "out/Lebenslauf-Müller.pdf"
+ "out/Lebenslauf-Müller.pdf" # i18n-allow: literal umlaut filename asserted by the decoder
]
diff --git a/tests/missions/kontrollierer/test_worker_prompt.py b/tests/missions/kontrollierer/test_worker_prompt.py
index 47f1b88105..aaebb94c19 100644
--- a/tests/missions/kontrollierer/test_worker_prompt.py
+++ b/tests/missions/kontrollierer/test_worker_prompt.py
@@ -96,7 +96,7 @@ def test_compose_includes_output_shape_directive() -> None:
def test_compose_orders_both_directives_before_the_step() -> None:
- step = "Mach mir eine einzige, in sich geschlossene HTML-Datei."
+ step = "Make me a single, self-contained HTML file."
out = compose_worker_prompt("", step)
assert OUTPUT_SHAPE_DIRECTIVE in out
assert ARTIFACT_LANGUAGE_DIRECTIVE in out