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
chore(i18n): translate remaining committed German to English (isolated drain, final translation pass)
Ruben Lütke32d84756092a
diff --git a/OS-Level/pyproject.toml b/OS-Level/pyproject.tomlindex de7d5a6b93..ab29cf9739 100644--- a/OS-Level/pyproject.toml+++ b/OS-Level/pyproject.toml@@ -9,7 +9,7 @@ description = "OS-Level Edge-Glow Overlay for Personal Jarvis (Phase 9)"readme = "README.md"requires-python = ">=3.11"license = { text = "Proprietary" }-authors = [{ name = "Ruben Lütke" }]+authors = [{ name = "Ruben Lütke" }] # i18n-allow: personal name, not translatable prosedependencies = ["PySide6>=6.7","websockets>=12",diff --git a/jarvis/awareness/prompts.py b/jarvis/awareness/prompts.pyindex 594f82979e..cbc76feea8 100644--- a/jarvis/awareness/prompts.py+++ b/jarvis/awareness/prompts.py@@ -39,7 +39,7 @@ Regeln:- Nenne Datei-/Project-Namen NUR wenn im window_title sichtbar.- Markiere Wiederholungs-Pattern als "Wechsel zwischen X und Y" (NICHT "ist verwirrt").- Bei kryptischen/leeren Titles: "unbekannter Inhalt" oder "kein Window-Title".-"""+""" # i18n-allow: VERDICHTER_SYSTEM_PROMPT is the runtime LLM prompt that dictates the German-language board/awareness "story" output shown to the user — translating it would change the produced output language_HEADER = "# Frames + Events der letzten Minuten:" # i18n-allow: header of the German-language Verdichter LLM input block (VERDICHTER_SYSTEM_PROMPT expects German)diff --git a/jarvis/board/profile.py b/jarvis/board/profile.pyindex cd96dbc571..c92ed77a69 100644--- a/jarvis/board/profile.py+++ b/jarvis/board/profile.py@@ -9,7 +9,7 @@ Brainstorm spec 2026-05-02 (ten axes):- Data sources: everything Jarvis sees (Board stats + awareness episodes +missions + self-mod audit + previous bio + feedback vector).- Cold-start: first quiet observation from day 1.-- Interaction: three reaction buttons (Trifft / Trifft nicht / Haerter).+- Interaction: three reaction buttons (Trifft / Trifft nicht / Haerter). # i18n-allow: literal button/API-contract label values (see kind constants below)## Brain Provider — DYNAMIC@@ -139,7 +139,7 @@ class BioStore:return dict(row)def record_feedback(self, bio_generated_at: str, kind: str) -> None:- """Writes a reaction click. ``kind`` ∈ {trifft, trifft_nicht, haerter}.+ """Writes a reaction click. ``kind`` ∈ {trifft, trifft_nicht, haerter}. # i18n-allow: API/DB contract identifiers, matched in logicValidates ``kind`` in addition to the CHECK constraint in the schema,so the API layer receives a clean ValueError instead of a@@ -164,7 +164,7 @@ class BioStore:def recent_feedback(self, *, days: int = 28) -> dict[str, int]:"""Aggregates click counts for the last ``days`` days.- Returns a dict with three keys (``trifft``, ``trifft_nicht``, ``haerter``).+ Returns a dict with three keys (``trifft``, ``trifft_nicht``, ``haerter``). # i18n-allow: API/DB contract identifiers, matched in logicMissing kinds are filled with 0 so the caller can safely iterate."""cutoff = (diff --git a/jarvis/board/prompts.py b/jarvis/board/prompts.pyindex e1b4edf612..dd8943c82e 100644--- a/jarvis/board/prompts.py+++ b/jarvis/board/prompts.py@@ -51,7 +51,7 @@ Du arbeitest zu viel und solltest dringend mehr schlafen. Vergiss nicht, auch maBEISPIEL ❌ VERMEIDEN (Corporate-Floskeln):Du bist ein leidenschaftlicher Power-User mit beeindruckender Hingabe zur Automatisierung!-JETZT generierst du genau einen Absatz."""+JETZT generierst du genau einen Absatz.""" # i18n-allow: BIO_SYSTEM_PROMPT is the runtime LLM prompt that dictates the German-language Board bio text spoken/written to the user — translating it would change the produced output language# Alias for backward-compat — old tests/imports may reference ``SYSTEM_PROMPT``.diff --git a/jarvis/brain/contact_intent.py b/jarvis/brain/contact_intent.pyindex 8850fd3e9d..9fdac9152b 100644--- a/jarvis/brain/contact_intent.py+++ b/jarvis/brain/contact_intent.py@@ -2,8 +2,8 @@Why this exists----------------Live voice session (2026-06-30): Jarvis offered "Soll ich die anlegen?", the-user confirmed "ja, legt die mal an … die Mailadresse von Harald ist …", and+Live voice session (2026-06-30): Jarvis offered "Soll ich die anlegen?", the # i18n-allow: forensic voice-bug docstring quoting the real German utterances involved+user confirmed "ja, legt die mal an … die Mailadresse von Harald ist …", and # i18n-allow: forensic voice-bug docstring quoting the real German utterances involvedJarvis answered "Okay, sehr gut" — but never called the ``contact-upsert`` tool,so the address book stayed empty. The capability was fully wired; the gap was atthe brain decision layer (it acknowledged in words instead of acting).@@ -20,7 +20,7 @@ Falsely "correcting" the user is a hard anti-pattern here (the maintainer turnedthe generic clarify question OFF for exactly that reason). So the detector firesonly on high-confidence signals — a genitive contact detail ("Christophs Nummerist …") alone, or a save verb corroborated by a contact noun / dictated detail.-A bare "die Nummer ist falsch" or "schick Harald eine Mail" must NOT fire.+A bare "die Nummer ist falsch" or "schick Harald eine Mail" must NOT fire. # i18n-allow: forensic voice-bug docstring quoting German counter-example utterances the classifier must NOT match"""from __future__ import annotationsdiff --git a/jarvis/channels/telegram.py b/jarvis/channels/telegram.pyindex 4cd0f693b3..bd5d4e92ab 100644--- a/jarvis/channels/telegram.py+++ b/jarvis/channels/telegram.py@@ -164,8 +164,8 @@ class TelegramChannel:)except ImportError as exc:raise ChannelStartError(- "python-telegram-bot nicht installiert. "- "Installiere via: pip install 'python-telegram-bot>=22,<23'"+ "python-telegram-bot not installed. "+ "Install via: pip install 'python-telegram-bot>=22,<23'") from excawait self._validate_token(token)@@ -235,13 +235,13 @@ class TelegramChannel:self._bot_username = (me.username or "").lower() or "<unknown>"except InvalidToken as exc:raise ChannelStartError(- "Telegram-Token ungueltig (InvalidToken). "- "Pruefe Token in @BotFather oder erneuere ihn via Wizard."+ "Telegram token invalid (InvalidToken). "+ "Check the token in @BotFather or renew it via the wizard.") from excexcept TelegramError as exc:- raise ChannelStartError(f"Telegram getMe fehlgeschlagen: {exc}") from exc+ raise ChannelStartError(f"Telegram getMe failed: {exc}") from excexcept Exception as exc: # noqa: BLE001- raise ChannelStartError(f"Telegram getMe fehlgeschlagen: {exc}") from exc+ raise ChannelStartError(f"Telegram getMe failed: {exc}") from exc# ------------------------------------------------------------------# Inbounddiff --git a/jarvis/cli/review_eval.py b/jarvis/cli/review_eval.pyindex 8f8b32dd5f..46da89f75a 100644--- a/jarvis/cli/review_eval.py+++ b/jarvis/cli/review_eval.py@@ -331,45 +331,45 @@ def _build_parser() -> argparse.ArgumentParser:parser = argparse.ArgumentParser(prog="jarvis-review-eval",description=(- "Führt die Review-Pipeline gegen den Golden-Query-Set aus "- "und schreibt einen Pass-Rate-Report."+ "Runs the review pipeline against the golden query set "+ "and writes a pass-rate report."),)parser.add_argument("--queries",type=Path,default=DEFAULT_QUERIES_PATH,- help=f"Queries-JSON. Default: {DEFAULT_QUERIES_PATH}",+ help=f"Queries JSON. Default: {DEFAULT_QUERIES_PATH}",)parser.add_argument("--report",type=Path,default=None,- help="Pfad für JSON-Report. Default: stdout.",+ help="Path for the JSON report. Default: stdout.",)parser.add_argument("--quick",action="store_true",- help="Nur Queries mit `quick=true`-Flag (max 5).",+ help="Only queries with the `quick=true` flag (max 5).",)parser.add_argument("--bucket",default=None,- help="Filter auf einen Bucket (z.B. code_gen_trivial).",+ help="Filter to a single bucket (e.g. code_gen_trivial).",)parser.add_argument("--parallelism",type=int,default=1,- help="Aktuell auf 1 fixiert (Reproduzierbarkeit). Phase-9-Backlog.",+ help="Currently fixed at 1 (reproducibility). Phase-9 backlog.",)mode = parser.add_mutually_exclusive_group()mode.add_argument("--mock",action="store_true",default=None,- help="Deterministische Mock-Pipeline (kein Spawn, keine Kosten). "- "Default: True wenn keine claude-Auth verfügbar.",+ help="Deterministic mock pipeline (no spawn, no cost). "+ "Default: True when no claude auth is available.",)mode.add_argument("--real",diff --git a/jarvis/cli/review_gc.py b/jarvis/cli/review_gc.pyindex 77cb438af4..5322a46e9d 100644--- a/jarvis/cli/review_gc.py+++ b/jarvis/cli/review_gc.py@@ -214,29 +214,29 @@ def _build_parser() -> argparse.ArgumentParser:parser = argparse.ArgumentParser(prog="jarvis-review-gc",description=(- "Löscht abgeschlossene Review-Pipeline-Run-Verzeichnisse "- "deren final.json älter ist als --older-than."+ "Deletes completed review-pipeline run directories "+ "whose final.json is older than --older-than."),)parser.add_argument("--older-than",default=DEFAULT_OLDER_THAN,- help="Mindest-Alter zum Löschen (Format: '30d', '12h', '60m'). Default 30d.",+ help="Minimum age to delete (format: '30d', '12h', '60m'). Default 30d.",)parser.add_argument("--dry-run",action="store_true",- help="Listet zu löschende Dirs, löscht aber NICHT.",+ help="Lists directories that would be deleted, but does NOT delete.",)parser.add_argument("--keep-passing",action="store_true",- help="Behält Runs mit outcome=success (auch wenn alt).",+ help="Keeps runs with outcome=success (even if old).",)parser.add_argument("--keep-cap-fired",action="store_true",- help="Behält Runs mit outcome=cap_fired (auch wenn alt).",+ help="Keeps runs with outcome=cap_fired (even if old).",)parser.add_argument("--runs-root",diff --git a/jarvis/clis/auth.py b/jarvis/clis/auth.pyindex 4379eb8e2e..d3bc31ea0a 100644--- a/jarvis/clis/auth.py+++ b/jarvis/clis/auth.py@@ -64,7 +64,7 @@ class CliAuthManager:validate: bool = True,) -> tuple[bool, str | None]:if spec.auth.type != "api_key":- return False, f"{spec.name} nutzt auth.type='{spec.auth.type}', nicht api_key"+ return False, f"{spec.name} uses auth.type='{spec.auth.type}', not api_key"missing = [k for k in spec.auth.secret_keys if not secrets.get(k)]required = list(spec.auth.secret_keys)@@ -81,7 +81,7 @@ class CliAuthManager:os.environ[env_var] = secrets[key]status = await self._prober.probe(spec)if status.auth_status != "connected":- return False, f"Validation fehlgeschlagen (status={status.auth_status})"+ return False, f"Validation failed (status={status.auth_status})"finally:for env_var, old in backup.items():if old is None:@@ -91,12 +91,12 @@ class CliAuthManager:for key, value in secrets.items():if key not in spec.auth.secret_keys:- log.warning("auth: unerwarteter secret_key '%s' fuer %s", key, spec.name)+ log.warning("auth: unexpected secret_key '%s' for %s", key, spec.name)continueif not value:continueif not set_secret(key, value):- return False, f"Keyring-Write fuer '{key}' fehlgeschlagen"+ return False, f"Keyring write for '{key}' failed"return True, Nonedef disconnect_api_key(self, spec: CliSpec) -> bool:@@ -143,7 +143,7 @@ class CliAuthManager:async def disconnect_oauth(self, spec: CliSpec) -> tuple[bool, str | None]:if spec.auth.type != "oauth_cli" or not spec.auth.logout_command:- return False, "keine logout_command definiert"+ return False, "no logout_command defined"proc = await asyncio.create_subprocess_exec(*spec.auth.logout_command,stdout=asyncio.subprocess.PIPE,@@ -164,7 +164,7 @@ class CliAuthManager:*,on_line: callable | None, # type: ignore[type-arg]) -> Literal["connected", "timeout", "cancelled", "error"]:- assert spec.auth.login_command, "precondition: login_command muss gesetzt sein"+ assert spec.auth.login_command, "precondition: login_command must be set"try:proc = await asyncio.create_subprocess_exec(*spec.auth.login_command,diff --git a/jarvis/clis/catalog/__init__.py b/jarvis/clis/catalog/__init__.pyindex 351aef4b88..465f86b46c 100644--- a/jarvis/clis/catalog/__init__.py+++ b/jarvis/clis/catalog/__init__.py@@ -76,7 +76,7 @@ class CliCatalog:merged: dict[str, CliSpec] = dict(seed)for name, spec in custom.items():if name in merged:- log.info("cli-catalog: custom-Override fuer seed-Eintrag '%s'", name)+ log.info("cli-catalog: custom override for seed entry '%s'", name)merged[name] = specreturn merged@@ -116,7 +116,7 @@ class CliCatalog:out: dict[str, CliSpec] = {}for entry in entries:if not isinstance(entry, dict):- log.warning("cli-catalog[%s]: entry kein dict: %r", source, entry)+ log.warning("cli-catalog[%s]: entry is not a dict: %r", source, entry)continueentry_with_source = {**entry, "source": source}try:diff --git a/jarvis/clis/external_terminal.py b/jarvis/clis/external_terminal.pyindex 2a1cda4c36..f58a9c8d9c 100644--- a/jarvis/clis/external_terminal.py+++ b/jarvis/clis/external_terminal.py@@ -78,7 +78,7 @@ def spawn_external_terminal(log.info("external terminal via wt: %s (cwd=%s)", command, workdir_str)return True, "wt"except Exception as exc: # noqa: BLE001- log.warning("wt-spawn fehlgeschlagen, faelle auf pwsh zurueck: %s", exc)+ log.warning("wt spawn failed, falling back to pwsh: %s", exc)# 2) pwsh.exe as a standalone window.pwsh = shutil.which("pwsh")@@ -96,7 +96,7 @@ def spawn_external_terminal(log.info("external terminal via pwsh: %s (cwd=%s)", command, workdir_str)return True, "pwsh"except Exception as exc: # noqa: BLE001- log.warning("pwsh-spawn fehlgeschlagen, faelle auf powershell zurueck: %s", exc)+ log.warning("pwsh spawn failed, falling back to powershell: %s", exc)# 3) powershell.exe (Windows default).ps = shutil.which("powershell")@@ -114,9 +114,9 @@ def spawn_external_terminal(log.info("external terminal via powershell: %s (cwd=%s)", command, workdir_str)return True, "powershell"except Exception as exc: # noqa: BLE001- log.warning("powershell-spawn fehlgeschlagen: %s", exc)+ log.warning("powershell spawn failed: %s", exc)- log.error("Kein externes Terminal verfuegbar (wt/pwsh/powershell alle nicht gefunden)")+ log.error("No external terminal available (wt/pwsh/powershell all not found)")return False, "failed"diff --git a/jarvis/clis/installer.py b/jarvis/clis/installer.pyindex f930b67de5..66b1f3473a 100644--- a/jarvis/clis/installer.py+++ b/jarvis/clis/installer.py@@ -176,7 +176,7 @@ class CliInstaller:res = InstallResult(ok=False, exit_code=None,duration_ms=int(time.time() * 1000) - job.started_at_ms,- error=f"Package-Manager nicht gefunden: {exc}",+ error=f"Package manager not found: {exc}",)job.result = resif on_done:diff --git a/jarvis/clis/spec.py b/jarvis/clis/spec.pyindex 1619974af2..80f2fae1fd 100644--- a/jarvis/clis/spec.py+++ b/jarvis/clis/spec.py@@ -207,8 +207,8 @@ class AuthConfigModel(BaseModel):secret_keys = info.data.get("secret_keys", [])if v and secret_keys and len(v) != len(secret_keys):raise ValueError(- f"env_vars ({len(v)}) muss zu secret_keys ({len(secret_keys)}) passen "- "oder leer sein."+ f"env_vars ({len(v)}) must match secret_keys ({len(secret_keys)}) "+ "or be empty.")return v@@ -253,7 +253,7 @@ class CliSpecModel(BaseModel):v.pip_package, v.cargo_package, v.script_url, v.manual_url,]):raise ValueError(- "Mindestens eine Install-Methode oder manual_url muss gesetzt sein."+ "At least one install method or manual_url must be set.")return vdiff --git a/jarvis/clis/tool.py b/jarvis/clis/tool.pyindex ca2ff18735..6a3cf89d2e 100644--- a/jarvis/clis/tool.py+++ b/jarvis/clis/tool.py@@ -82,8 +82,8 @@ class CliTool:"command": {"type": "string","description": (- f"Vollstaendiger {spec.binary_name}-Befehl inklusive Arguments. "- f"Muss mit '{spec.binary_name}' beginnen."+ f"Full {spec.binary_name} command including arguments. "+ f"Must start with '{spec.binary_name}'."),},"timeout_s": {@@ -121,8 +121,8 @@ class CliTool:success=False,output=None,error=(- f"command muss mit '{self._spec.binary_name}' beginnen — "- f"bekam '{command[:40]}...'"+ f"command must start with '{self._spec.binary_name}' — "+ f"got '{command[:40]}...'"),)diff --git a/jarvis/control/cost.py b/jarvis/control/cost.pyindex 4b698e2b94..7aca641354 100644--- a/jarvis/control/cost.py+++ b/jarvis/control/cost.py@@ -200,7 +200,7 @@ class CostMeter:*,bus: EventBus | None = None,kill_switch: KillSwitch | None = None,- now_ns: Callable[[], int] = time.time_ns, # fuer Tests+ now_ns: Callable[[], int] = time.time_ns, # for teststoday_date: Callable[[], str] = lambda: datetime.now().strftime("%Y-%m-%d"),) -> None:self._config = configdiff --git a/jarvis/core/capabilities.py b/jarvis/core/capabilities.pyindex a7eeba0c7a..87db077810 100644--- a/jarvis/core/capabilities.py+++ b/jarvis/core/capabilities.py@@ -25,13 +25,13 @@ from typing import Literal, Optional# ---------------------------------------------------------------------------_UMLAUT_MAP: list[tuple[str, str]] = [- ("ä", "ae"),- ("ö", "oe"),- ("ü", "ue"),- ("Ä", "ae"),- ("Ö", "oe"),- ("Ü", "ue"),- ("ß", "ss"),+ ("ä", "ae"), # i18n-allow: German-umlaut transliteration map, matched in logic (speech-input normalization)+ ("ö", "oe"), # i18n-allow: German-umlaut transliteration map, matched in logic (speech-input normalization)+ ("ü", "ue"), # i18n-allow: German-umlaut transliteration map, matched in logic (speech-input normalization)+ ("Ä", "ae"), # i18n-allow: German-umlaut transliteration map, matched in logic (speech-input normalization)+ ("Ö", "oe"), # i18n-allow: German-umlaut transliteration map, matched in logic (speech-input normalization)+ ("Ü", "ue"), # i18n-allow: German-umlaut transliteration map, matched in logic (speech-input normalization)+ ("ß", "ss"), # i18n-allow: German-umlaut transliteration map, matched in logic (speech-input normalization)]@@ -59,7 +59,7 @@ def _normalize(text: str) -> str:# (email/calendar/whatsapp/order/post — the canonical hallucination cases)# - Common German + English imperatives for digital actions#-# Already umlaut-normalised (no ä/ö/ü/ß).+# Already umlaut-normalised (no ä/ö/ü/ß). # i18n-allow: English comment; literal umlaut characters named for illustration only_UNIVERSAL_ACTION_VERBS: frozenset[str] = frozenset({# Existing spawn_verbs (synced with config.py for backwards compatibility)"umsetz", "reparier", "fix", "behebe", "korrigier",@@ -76,7 +76,7 @@ _UNIVERSAL_ACTION_VERBS: frozenset[str] = frozenset({# that made the email/calendar/whatsapp utterances slip past the gate)."schick", "schicke", "schickt", "sende", "send", "sendet","verschick", "verschicke", "verschickt",- "trag", "trage", "tragt", "eintrag", "eintrage",+ "trag", "trage", "tragt", "eintrag", "eintrage", # i18n-allow: German speech-input action-verb vocabulary, matched in logic"bestell", "bestelle", "bestellt", "order", "orders","kauf", "kaufe", "kauft", "buy", "purchase","buch", "buche", "bucht", "book", "reserviere", "reservier", "reserve",diff --git a/jarvis/core/events.py b/jarvis/core/events.pyindex 9a13c8fd4b..9ca6eec5d4 100644--- a/jarvis/core/events.py+++ b/jarvis/core/events.py@@ -80,7 +80,7 @@ class ListeningStarted(Event):@dataclass(frozen=True, slots=True)class UtteranceCaptured(Event):- audio_ref: str = "" # Content-Hash für Flight-Recorder+ audio_ref: str = "" # content hash for the flight recorderduration_ms: int = 0@@ -557,7 +557,7 @@ class KillAcknowledged(Event):@dataclass(frozen=True, slots=True)class TaskCancelled(Event):- """Eine konkrete Task/Operation wurde durch den Kill gestoppt."""+ """A concrete task/operation was stopped by the kill signal."""task_id: str = ""reason: str = "kill_switch"@@ -613,14 +613,14 @@ class VisionInjected(Event):"""screenshot_hash: str = ""bytes_size: int = 0 # Groesse des PNG-Rohdatenblocks- capture_age_ms: int = 0 # Alter der Observation bei Inject+ capture_age_ms: int = 0 # age of the observation at inject time@dataclass(frozen=True, slots=True)class ActionPlanned(Event):"""The CU loop planner proposed the next action (before execution)."""action_kind: str = "" # "click" | "type" | "hotkey" | "wait" | "verify"- target_hint: str = "" # z.B. "{role:Button,name:Speichern}"+ target_hint: str = "" # e.g. "{role:Button,name:Save}"@dataclass(frozen=True, slots=True)@@ -628,7 +628,7 @@ class ActionVerified(Event):"""Post-execution verify: did the action produce the expected effect?"""action_kind: str = ""success: bool = False- reason: str = "" # bei Fail: was hat der Verify-Observer gesehen?+ reason: str = "" # on fail: what did the verify observer see?@dataclass(frozen=True, slots=True)@@ -848,7 +848,7 @@ class WorkflowStepCompleted(Event):step_index: int = 0success: bool = Falseduration_ms: int = 0- output_preview: str = "" # max 240 Zeichen, fuer UI-Timeline+ output_preview: str = "" # max 240 characters, for the UI timelineerror: str | None = None@@ -1087,7 +1087,7 @@ class JarvisAgentBackgroundCompleted(Event):a standardised voice announcement."""success: bool = False- utterance: str = "" # was der User urspruenglich gesagt hatte+ utterance: str = "" # what the user originally saidsummary: str = "" # TTS-tauglich, max 120 Tokenserror: str | None = Noneduration_s: float = 0.0@@ -1127,13 +1127,13 @@ class BioFeedbackRecorded(Event):"""The user clicked a reaction button under the AI profile.Emitted by the ``POST /api/board/bio/feedback`` endpoint. Three kinds:- ``trifft`` (bio feels accurate), ``trifft_nicht`` (off the mark),+ ``trifft`` (bio feels accurate), ``trifft_nicht`` (off the mark), # i18n-allow: API/DB contract identifiers, matched in logic``haerter`` (make the next bio more pointed). The signal flows as a``feedback_vector_block`` into the bio prompt for the next generation;no immediate regeneration."""bio_generated_at: str = ""- kind: str = "" # "trifft" | "trifft_nicht" | "haerter"+ kind: str = "" # "trifft" | "trifft_nicht" | "haerter" # i18n-allow: API/DB contract identifiers, matched in logic# ----------------------------------------------------------------------@@ -1292,7 +1292,7 @@ class UserVisibleFeedback(Event):class OrbResetRequested(Event):"""User asked to reset the orb to its default anchor (BUG-027 / L2).- Triggered by the local_action_gate when the user says "Orb zurück",+ Triggered by the local_action_gate when the user says "Orb zurück", # i18n-allow: literal German voice-trigger phrase matched in logic"wo bist du", or "reset orb". ``ui.orb.bus_bridge`` subscribes anddispatches the actual reset onto the Tk thread. Decouples the voicetrigger from the Tk-thread mutation — bus stays sync-friendly.diff --git a/jarvis/core/protocols.py b/jarvis/core/protocols.pyindex 14daa82f0e..a3817e37cc 100644--- a/jarvis/core/protocols.py+++ b/jarvis/core/protocols.py@@ -307,7 +307,7 @@ class Tool(Protocol):"""Einzelne Jarvis-Action (open_app, type_text, search_web, …)."""name: str- schema: dict[str, Any] # JSON-Schema für LLM-Tool-Use+ schema: dict[str, Any] # JSON schema for LLM tool usedescription: strrisk_tier: RiskTier# Optional extension (recognized by RiskTierEvaluator via getattr, NOT part@@ -374,7 +374,7 @@ class ChannelAdapter(Protocol):# -----------------------------------------------------------------------# Plugin-Groups (für Registry/Discovery)+# Plugin groups (for registry/discovery)# ----------------------------------------------------------------------PLUGIN_GROUPS: tuple[str, ...] = (@@ -421,14 +421,14 @@ class UIANode:@dataclass(frozen=True, slots=True)class Observation:- """Ergebnis eines Vision-Observe-Calls — enthält Screenshot-Referenz und- gepruneden UIA-Tree. Eine Observation ist die Input-Einheit für den+ """Result of a vision-observe call — contains a screenshot reference and+ a pruned UIA tree. An Observation is the input unit for thePlan-Observe-Act-Verify-Loop."""trace_id: UUIDtimestamp_ns: int- screenshot_path: str | None # Pfad zum Screenshot-Blob (PNG) oder None- screenshot_hash: str # SHA256 des PNG-Inhalts (für Cache)+ screenshot_path: str | None # path to the screenshot blob (PNG) or None+ screenshot_hash: str # SHA256 of the PNG content (for cache)nodes: tuple[UIANode, ...] = field(default_factory=tuple)window_title: str = ""active_pid: int = 0@@ -445,9 +445,9 @@ class Observation:@runtime_checkableclass VisionSource(Protocol):- """Liefert Observations — entweder als reiner Screenshot, reiner UIA-Tree- oder als Kombination. Der `VisionEngine` entscheidet pro Frage, welche- Source billiger/robuster ist (Mandat Capability 1).+ """Provides observations — either as a pure screenshot, a pure UIA tree,+ or a combination. The `VisionEngine` decides per query which+ source is cheaper/more robust (Capability 1 mandate)."""name: str@@ -459,7 +459,7 @@ class VisionSource(Protocol):cancel_token: CancelToken | None = None,window_title_filter: str | None = None,) -> Observation:- """Fängt einen einzelnen Observation-Snapshot ab."""+ """Captures a single observation snapshot."""...async def close(self) -> None:@@ -473,10 +473,10 @@ class VisionSource(Protocol):@runtime_checkableclass CancelToken(Protocol):- """Propagiert Abbruch-Signale durch die Async-Hierarchie.+ """Propagates cancellation signals through the async hierarchy.- Kein `asyncio.Event` direkt, weil wir zusätzlich `reason` und einen- stabilen Polling-Pfad brauchen. Die konkrete Implementierung liegt in+ Not a direct `asyncio.Event`, because we additionally need `reason` and a+ stable polling path. The concrete implementation lives in`jarvis.control.cancel`."""@@ -487,7 +487,7 @@ class CancelToken(Protocol):def reason(self) -> str | None: ...async def wait_until_cancelled(self) -> None:- """Blockiert, bis `cancel()` aufgerufen wurde."""+ """Blocks until `cancel()` is called."""...@@ -497,7 +497,7 @@ class CancelToken(Protocol):@dataclass(frozen=True, slots=True)class CostRecord:- """Ein atomarer Kosten-Eintrag für einen Brain-Delta."""+ """An atomic cost entry for one brain delta."""trace_id: UUIDprovider: strmodel: str@@ -510,10 +510,10 @@ class CostRecord:@runtime_checkableclass CostMeter(Protocol):- """Akkumuliert Kosten pro trace_id und prüft gegen Task-/Tagesbudget.+ """Accumulates cost per trace_id and checks it against the task/daily budget.- Wird vom `BrainManager` nach jedem `BrainDelta` mit Usage gefüttert.- Bei Overrun wird via `CancelToken.cancel(reason=...)` gestoppt, siehe+ Fed by `BrainManager` after every `BrainDelta` that carries usage.+ On overrun it is stopped via `CancelToken.cancel(reason=...)`, seeADR-0006."""@@ -534,29 +534,29 @@ class CostMeter(Protocol):@dataclass(frozen=True, slots=True)class IntentClassification:- """Ergebnis des RouterBrain-Klassifikators.+ """Result of the RouterBrain classifier.- Drei Routing-Klassen (siehe Plan §6 CL-3, Welle-4-Migration):- - `trivial` → Hauptjarvis antwortet direkt (Smalltalk, Bestätigung).- - `direct_action` → Hauptjarvis ruft ein First-Class-Tool auf (bash,+ Three routing classes (see Plan §6 CL-3, Wave-4 migration):+ - `trivial` → main Jarvis answers directly (small talk, acknowledgement).+ - `direct_action` → main Jarvis calls a first-class tool (bash,screenshot, multi_spawn).- - `spawn_worker` → Task geht verbatim an die OpenClaw-Bridge via- Mission-Manager. (vorher ``spawn_sub_jarvis``.)+ - `spawn_worker` → task goes verbatim to the OpenClaw bridge via+ the mission manager. (formerly ``spawn_sub_jarvis``.)"""intent: Literal["trivial", "direct_action", "spawn_worker"]confidence: float # 0.0–1.0- suggested_tool: str | None = None # für direct_action: "bash" | "screenshot" | ...- rationale: str = "" # 1-Satz-Begründung fürs Debug-Log+ suggested_tool: str | None = None # for direct_action: "bash" | "screenshot" | ...+ rationale: str = "" # one-sentence rationale for the debug log@runtime_checkableclass IntentClassifier(Protocol):- """Klassifiziert eine User-Utterance in eine der drei Routing-Klassen.+ """Classifies a user utterance into one of the three routing classes.- Implementierungen liegen in `jarvis.brain.router` (RouterBrain nutzt- Tool-Choice des Low-Latency-Modells als implizite Klassifikation) — das- Protocol erlaubt alternative Fakes in Tests und spätere Heuristik-Varianten- ohne Extra-LLM-Call.+ Implementations live in `jarvis.brain.router` (RouterBrain uses the+ low-latency model's tool choice as an implicit classification) — the+ Protocol allows alternative fakes in tests and later heuristic variants+ without an extra LLM call."""name: strdiff --git a/jarvis/core/registry.py b/jarvis/core/registry.pyindex f31a5138ce..607a545abc 100644--- a/jarvis/core/registry.py+++ b/jarvis/core/registry.py@@ -1,11 +1,11 @@-"""Plugin-Discovery via entry_points.+"""Plugin discovery via entry_points.-Alle Plugin-Slots sind in pyproject.toml unter [project.entry-points."jarvis.*"]-deklariert. Dieses Modul listet sie zur Laufzeit auf, lädt sie lazy und prüft-gegen das passende Protocol.+All plugin slots are declared in pyproject.toml under+[project.entry-points."jarvis.*"]. This module lists them at runtime, loads+them lazily, and checks them against the matching Protocol.-Wichtig: `load()` importiert erst beim tatsächlichen Aufruf — das erlaubt-optionale Dependencies (z.B. Porcupine lädt nur wenn der User es nutzen will).+Important: `load()` only imports on actual invocation — this allows optional+dependencies (e.g. Porcupine only loads when the user wants to use it)."""from __future__ import annotations@@ -16,45 +16,45 @@ from .protocols import PLUGIN_GROUPSclass PluginNotFoundError(KeyError):- """Plugin mit dem Namen existiert nicht im entry_points-Katalog."""+ """No plugin with this name exists in the entry_points catalogue."""class PluginLoadError(RuntimeError):- """Plugin konnte nicht importiert werden (fehlende Dep, Syntax-Fehler …)."""+ """Plugin could not be imported (missing dependency, syntax error …)."""class PluginContractError(TypeError):- """Plugin implementiert das erwartete Protocol nicht strukturell."""+ """Plugin does not structurally implement the expected Protocol."""def list_plugins(group: str) -> list[str]:- """Liste aller verfügbaren Plugin-Namen in einer Gruppe.+ """Lists all available plugin names in a group.Args:- group: z.B. "jarvis.brain", "jarvis.stt", siehe PLUGIN_GROUPS.+ group: e.g. "jarvis.brain", "jarvis.stt", see PLUGIN_GROUPS."""if group not in PLUGIN_GROUPS:- raise ValueError(f"Unknown plugin group: {group}. Erlaubt: {PLUGIN_GROUPS}")+ raise ValueError(f"Unknown plugin group: {group}. Allowed: {PLUGIN_GROUPS}")eps = metadata.entry_points(group=group)return sorted(ep.name for ep in eps)def list_all_plugins() -> dict[str, list[str]]:- """Alle Plugins gruppiert nach Typ."""+ """All plugins grouped by type."""return {g: list_plugins(g) for g in PLUGIN_GROUPS}def load(group: str, name: str, protocol: type[Protocol] | None = None) -> type[Any]:- """Lädt eine Plugin-Klasse anhand ihres Namens.+ """Loads a plugin class by its name.Args:- group: Plugin-Gruppe (z.B. "jarvis.brain").- name: Entry-Point-Name (z.B. "claude-api").- protocol: Optional — prüft strukturell via isinstance-check bei Instanzen.+ group: Plugin group (e.g. "jarvis.brain").+ name: Entry-point name (e.g. "claude-api").+ protocol: Optional — checks structurally via an isinstance check on instances.Returns:- Die Plugin-Klasse (nicht die Instanz). Aufrufer muss selbst instanziieren- mit den passenden Constructor-Argumenten.+ The plugin class (not the instance). The caller must instantiate it+ itself with the matching constructor arguments.Raises:PluginNotFoundError, PluginLoadError, PluginContractError.@@ -67,8 +67,8 @@ def load(group: str, name: str, protocol: type[Protocol] | None = None) -> type[if not candidates:available = sorted(ep.name for ep in eps)raise PluginNotFoundError(- f"Plugin '{name}' in Gruppe '{group}' nicht gefunden. "- f"Verfügbar: {available}"+ f"Plugin '{name}' not found in group '{group}'. "+ f"Available: {available}")ep = candidates[0]@@ -76,32 +76,32 @@ def load(group: str, name: str, protocol: type[Protocol] | None = None) -> type[plugin_cls = ep.load()except ImportError as exc:raise PluginLoadError(- f"Plugin '{name}' konnte nicht importiert werden. "- f"Fehlt eine Dependency? Original-Fehler: {exc}"+ f"Plugin '{name}' could not be imported. "+ f"Missing a dependency? Original error: {exc}") from excexcept Exception as exc: # noqa: BLE001- raise PluginLoadError(f"Plugin '{name}' Load fehlgeschlagen: {exc}") from exc+ raise PluginLoadError(f"Plugin '{name}' load failed: {exc}") from exc- # Protocol-Check ist strukturell (Python prüft Attribute + Method-Signaturen- # beim ersten isinstance-Aufruf auf einer Instanz — nicht auf der Klasse).- # Wir können hier höchstens sicherstellen, dass es eine Klasse ist.+ # Protocol check is structural (Python checks attributes + method+ # signatures on the first isinstance call on an instance — not on the+ # class). Here we can at most ensure that it is a class.if not isinstance(plugin_cls, type):raise PluginContractError(- f"Plugin '{name}' ist keine Klasse sondern {type(plugin_cls)}"+ f"Plugin '{name}' is not a class but {type(plugin_cls)}")- _ = protocol # Documentation-Intent; Verifikation erfolgt auf Instanz-Ebene+ _ = protocol # Documentation-intent; verification happens at the instance levelreturn plugin_clsdef describe() -> str:- """Lesbare Übersicht aller installierten Plugins — für CLI/Admin-UI."""+ """Human-readable overview of all installed plugins — for CLI/admin UI."""lines: list[str] = ["Jarvis Plugin Registry", "=" * 30, ""]for group in PLUGIN_GROUPS:plugins = list_plugins(group)lines.append(f"[{group}]")if not plugins:- lines.append(" (keine)")+ lines.append(" (none)")else:for p in plugins:lines.append(f" - {p}")diff --git a/jarvis/core/review/audit.py b/jarvis/core/review/audit.pyindex 92df6f7872..5976e21fca 100644--- a/jarvis/core/review/audit.py+++ b/jarvis/core/review/audit.py@@ -42,7 +42,7 @@ class AuditStatus(StrEnum):involved no LLM call."""- PASS = "pass" # noqa: S105 — Audit-Status, kein Secret+ PASS = "pass" # noqa: S105 — audit status, not a secretNEEDS_REVISION = "needs_revision"FAIL = "fail"PRECHECK_FAIL = "precheck_fail"@@ -122,7 +122,7 @@ class ReviewAudit:fh.write("\n")except Exception as exc: # noqa: BLE001 — Caller darf nie crashen_LOG.warning(- "ReviewAudit.append_iteration fehlgeschlagen: %s (path=%s)",+ "ReviewAudit.append_iteration failed: %s (path=%s)",exc,self._path,)@@ -143,7 +143,7 @@ class ReviewAudit:) as fh:lines = fh.readlines()except Exception as exc: # noqa: BLE001 — Lesen darf nie crashen- _LOG.warning("ReviewAudit.tail fehlgeschlagen: %s", exc)+ _LOG.warning("ReviewAudit.tail failed: %s", exc)return []result: list[dict[str, Any]] = []@@ -155,6 +155,6 @@ class ReviewAudit:result.append(json.loads(stripped))except json.JSONDecodeError as exc:_LOG.warning(- "Korrupte Review-Audit-Zeile übersprungen: %s", exc+ "Corrupt review-audit line skipped: %s", exc)return resultdiff --git a/jarvis/core/review/pipeline.py b/jarvis/core/review/pipeline.pyindex 2ad8ba1356..76700c9272 100644--- a/jarvis/core/review/pipeline.py+++ b/jarvis/core/review/pipeline.py@@ -83,8 +83,8 @@ class ReviewPipeline:raise ValueError("max_iterations must be >= 1")if hard_ceiling > HARD_CEILING_MAX_ITERATIONS:raise ValueError(- f"hard_ceiling > {HARD_CEILING_MAX_ITERATIONS} verstößt "- "Plan-§AD-4 — bitte Source ändern, nicht Config"+ f"hard_ceiling > {HARD_CEILING_MAX_ITERATIONS} violates "+ "Plan-§AD-4 — please change the source, not the config")if max_iterations > hard_ceiling:raise ValueError(diff --git a/jarvis/core/review/policy.py b/jarvis/core/review/policy.pyindex 7d5905a6ab..83a105b250 100644--- a/jarvis/core/review/policy.py+++ b/jarvis/core/review/policy.py@@ -37,7 +37,7 @@ _DEFAULT_NOREVIEW_KEYWORDS: tuple[str, ...] = ("danke","was ist","wer ist",- "wie spät",+ "wie spät", # i18n-allow: German speech-input smalltalk keyword, matched in logic"wie spaet",)diff --git a/jarvis/core/review/prompts.py b/jarvis/core/review/prompts.pyindex a8754e24d4..bffb9c5e0b 100644--- a/jarvis/core/review/prompts.py+++ b/jarvis/core/review/prompts.py@@ -46,7 +46,7 @@ def get_rubric_items(rubric_id: str) -> list[str]:# -----------------------------------------------------------------------# Feedback-Block (für Worker-Re-Spawns ab Iteration 2)+# Feedback block (for worker re-spawns starting at iteration 2)# ----------------------------------------------------------------------diff --git a/jarvis/core/review/spawns.py b/jarvis/core/review/spawns.pyindex 35af1175f4..d983f1adda 100644--- a/jarvis/core/review/spawns.py+++ b/jarvis/core/review/spawns.py@@ -245,7 +245,7 @@ class ReviewerSpawner:verdict_payload = _extract_verdict_json(stdout)if verdict_payload is None:raise VerdictParseError(- f"Reviewer-stdout enthält kein valides JSON; "+ f"Reviewer stdout does not contain valid JSON; "f"head={stdout[:300]!r}")diff --git a/jarvis/core/review/state.py b/jarvis/core/review/state.pyindex 617f48d57f..78fad841a9 100644--- a/jarvis/core/review/state.py+++ b/jarvis/core/review/state.py@@ -25,7 +25,7 @@ from jarvis.core.review.verdict import ReviewStatus, ReviewVerdictclass PipelineOutcome(str, Enum): # noqa: UP042 — explicit `(str, Enum)`, not `StrEnum`"""Which terminal state the pipeline reached."""- SUCCESS = "success" # noqa: S105 — Outcome-Wert, kein Secret+ SUCCESS = "success" # noqa: S105 — outcome value, not a secretFAIL = "fail"CAP_FIRED = "cap_fired"PRECHECK_FAIL = "precheck_fail"@@ -149,8 +149,8 @@ class PipelineResult:last = state.iterations[-1]if last.verdict is None or last.verdict.status is not ReviewStatus.PASS:raise ValueError(- "PipelineResult.from_success: letzte Iteration hat keinen "- "PASS-Verdict — interner Pipeline-Fehler"+ "PipelineResult.from_success: last iteration has no "+ "PASS verdict — internal pipeline error")return cls(run_id=state.run_id,diff --git a/jarvis/core/self_mod/audit.py b/jarvis/core/self_mod/audit.pyindex 569e10a1d4..3290ba812e 100644--- a/jarvis/core/self_mod/audit.py+++ b/jarvis/core/self_mod/audit.py@@ -79,7 +79,7 @@ class SelfModAudit:fh.write("\n")except Exception as exc: # noqa: BLE001 — caller must never crash (Plan-§AP-5)_LOG.warning(- "SelfModAudit.record fehlgeschlagen: %s (path=%s)",+ "SelfModAudit.record failed: %s (path=%s)",exc,self._path,)@@ -115,7 +115,7 @@ class SelfModAudit:with self._lock, self._path.open("r", encoding="utf-8") as fh:lines = fh.readlines()except Exception as exc: # noqa: BLE001 — reading must never crash- _LOG.warning("SelfModAudit.tail fehlgeschlagen: %s", exc)+ _LOG.warning("SelfModAudit.tail failed: %s", exc)return []tail_lines = lines[-n:]@@ -127,5 +127,5 @@ class SelfModAudit:try:result.append(json.loads(stripped))except json.JSONDecodeError as exc:- _LOG.warning("Korrupte Audit-Zeile übersprungen: %s", exc)+ _LOG.warning("Corrupt audit line skipped: %s", exc)return resultdiff --git a/jarvis/core/self_mod/pending.py b/jarvis/core/self_mod/pending.pyindex 3dc41e4f6e..4979b6c66a 100644--- a/jarvis/core/self_mod/pending.py+++ b/jarvis/core/self_mod/pending.py@@ -173,8 +173,8 @@ class PendingMutationStore:entry = self._entries.pop(mutation_id, None)if entry is None:raise KeyError(- f"Pending-Mutation {mutation_id} nicht gefunden (abgelaufen "- f"oder bereits konsumiert)"+ f"Pending mutation {mutation_id} not found (expired "+ f"or already consumed)")return self._writer.mutate(entry.request)@@ -214,7 +214,7 @@ class PendingMutationStore:))except Exception as exc: # noqa: BLE001- _LOG.warning("Reject-Audit fehlgeschlagen: %s", exc)+ _LOG.warning("Reject audit failed: %s", exc)def cleanup_expired(self) -> int:"""Remove expired pending entries. Returns the number removed."""diff --git a/jarvis/core/self_mod/schema.py b/jarvis/core/self_mod/schema.pyindex f254706c7c..764d547924 100644--- a/jarvis/core/self_mod/schema.py+++ b/jarvis/core/self_mod/schema.py@@ -62,7 +62,7 @@ class MutableSpec(BaseModel):risk_tier: SelfModRiskTier = "ask"needs_restart: bool = Falsedescription: str = Field(min_length=1)- sensitive: bool = False # Phase 7.4: Wert wird im TTS-Echo nie gesprochen+ sensitive: bool = False # Phase 7.4: value is never spoken in the TTS echoclass MutationRequest(BaseModel):diff --git a/jarvis/core/self_mod/writer.py b/jarvis/core/self_mod/writer.pyindex 5559999fd4..f3db9c1309 100644--- a/jarvis/core/self_mod/writer.py+++ b/jarvis/core/self_mod/writer.py@@ -110,8 +110,8 @@ class AtomicConfigWriter:)if max_backups < backup_min_keep:raise ValueError(- f"max_backups ({max_backups}) muss >= backup_min_keep "- f"({backup_min_keep}) sein"+ f"max_backups ({max_backups}) must be >= backup_min_keep "+ f"({backup_min_keep})")self._max_backups = max_backupsself._backup_min_keep = backup_min_keep@@ -146,15 +146,15 @@ class AtomicConfigWriter:raw = self._config_path.read_text(encoding="utf-8")except OSError as exc:raise BackupError(- f"Konnte {self._config_path} nicht lesen: {exc}"+ f"Could not read {self._config_path}: {exc}") from excif raw.startswith(self._BOM):raw = raw[len(self._BOM):]try:doc = tomlkit.parse(raw)- except Exception as exc: # noqa: BLE001 — alle Parser-Fehler sind BackupError+ except Exception as exc: # noqa: BLE001 — all parser errors are a BackupErrorraise BackupError(- f"Konnte {self._config_path} nicht parsen: {exc}"+ f"Could not parse {self._config_path}: {exc}") from excreturn self._read_dotted(doc, path)@@ -238,13 +238,13 @@ class AtomicConfigWriter:candidate.relative_to(self._backup_dir.resolve())except ValueError as exc:raise BackupError(- f"Backup-Pfad '{backup_filename}' liegt außerhalb des "- f"Backup-Verzeichnisses {self._backup_dir}"+ f"Backup path '{backup_filename}' lies outside the "+ f"backup directory {self._backup_dir}") from excwith type(self)._LOCK:if not candidate.is_file():raise BackupError(- f"Backup '{backup_filename}' existiert nicht"+ f"Backup '{backup_filename}' does not exist")self._restore(candidate)return candidate@@ -261,7 +261,7 @@ class AtomicConfigWriter:raw = self._config_path.read_text(encoding="utf-8")except OSError as exc:self._audit_failure(request, old_value=None, error=f"read_failed: {exc}")- raise BackupError(f"Konnte {self._config_path} nicht lesen: {exc}") from exc+ raise BackupError(f"Could not read {self._config_path}: {exc}") from exchad_bom = raw.startswith(self._BOM)if had_bom:@@ -271,7 +271,7 @@ class AtomicConfigWriter:except Exception as exc:self._audit_failure(request, old_value=None, error=f"parse_failed: {exc}")raise BackupError(- f"Konnte {self._config_path} nicht parsen: {exc}"+ f"Could not parse {self._config_path}: {exc}") from exc# Step 3 — old_value@@ -291,8 +291,8 @@ class AtomicConfigWriter:error=f"validate_failed: {_summarize_error(exc)}",)raise PreValidateError(- f"Pre-Validate für '{request.path}' = {request.new_value!r} "- f"schlug fehl: {_summarize_error(exc)}"+ f"Pre-validate for '{request.path}' = {request.new_value!r} "+ f"failed: {_summarize_error(exc)}") from exc# Step 6 — backup (only AFTER pre-validate, so that the reject path@@ -306,7 +306,7 @@ class AtomicConfigWriter:error=f"backup_failed: {exc}",)raise BackupError(- f"Backup für {self._config_path} schlug fehl: {exc}"+ f"Backup for {self._config_path} failed: {exc}") from exc# Step 7 — atomic write@@ -323,7 +323,7 @@ class AtomicConfigWriter:error=f"write_failed: {exc}",)raise BackupError(- f"Atomic-Write für {self._config_path} schlug fehl: {exc}"+ f"Atomic write for {self._config_path} failed: {exc}") from exc# Step 8 — reload test (synchronous; Plan-§AP-14)@@ -347,9 +347,9 @@ class AtomicConfigWriter:rolled_back=False,)raise RollbackError(- f"jarvis.toml ist möglicherweise korrupt. Manueller "- f"Restore aus {backup_path} erforderlich. "- f"Reload-Error: {exc}; Rollback-Error: {restore_exc}"+ f"jarvis.toml may be corrupt. A manual "+ f"restore from {backup_path} is required. "+ f"Reload error: {exc}; rollback error: {restore_exc}") from restore_excself._audit_failure(request,@@ -358,8 +358,8 @@ class AtomicConfigWriter:rolled_back=rolled,)raise ReloadError(- f"Reload-Test nach Mutation '{request.path}' schlug fehl, "- f"Original wurde aus Backup restauriert: "+ f"Reload test after mutation '{request.path}' failed, "+ f"the original was restored from backup: "f"{_summarize_error(exc)}") from exc@@ -371,7 +371,7 @@ class AtomicConfigWriter:try:self._gc_backups()except Exception as exc: # noqa: BLE001- _LOG.warning("Backup-GC fehlgeschlagen: %s", exc)+ _LOG.warning("Backup GC failed: %s", exc)# Step 11 — audit successself._audit.record(@@ -424,7 +424,7 @@ class AtomicConfigWriter:def _apply_dotted(doc: TOMLDocument, path: str, value: Any) -> None:parts = path.split(".")if not parts or any(p == "" for p in parts):- raise ValueError(f"Ungültiger Pfad: {path!r}")+ raise ValueError(f"Invalid path: {path!r}")parent: Any = docfor part in parts[:-1]:existing = parent.get(part) if isinstance(parent, (dict, AbstractTable)) else None@@ -501,7 +501,7 @@ class AtomicConfigWriter:except OSError:# fsync can fail on some filesystems (e.g. tmpfs in CI)# but is not critical enough to block the write.- _LOG.debug("fsync fehlgeschlagen — ignoriere", exc_info=True)+ _LOG.debug("fsync failed — ignoring", exc_info=True)self._replace_keep_readonly(tmp_path, self._config_path)tmp_path = None # replace succeeded — no cleanup neededexcept Exception:@@ -510,7 +510,7 @@ class AtomicConfigWriter:tmp_path.unlink(missing_ok=True)except OSError as cleanup_exc:_LOG.warning(- "Tempfile-Cleanup fehlgeschlagen: %s", cleanup_exc+ "Tempfile cleanup failed: %s", cleanup_exc)raise@@ -538,12 +538,12 @@ class AtomicConfigWriter:try:os.fsync(fh.fileno())except OSError:- _LOG.debug("Backup-fsync fehlgeschlagen — ignoriere", exc_info=True)+ _LOG.debug("Backup fsync failed — ignoring", exc_info=True)except Exception:try:target.unlink(missing_ok=True)except OSError as cleanup_exc:- _LOG.warning("Backup-Cleanup fehlgeschlagen: %s", cleanup_exc)+ _LOG.warning("Backup cleanup failed: %s", cleanup_exc)raisereturn target@@ -554,7 +554,7 @@ class AtomicConfigWriter:to `RollbackError`."""if not backup_path.is_file():- raise FileNotFoundError(f"Backup nicht gefunden: {backup_path}")+ raise FileNotFoundError(f"Backup not found: {backup_path}")parent = self._config_path.parentfd, tmp_name = tempfile.mkstemp(suffix=".restore",@@ -570,7 +570,7 @@ class AtomicConfigWriter:try:os.fsync(fh.fileno())except OSError:- _LOG.debug("Restore-fsync fehlgeschlagen", exc_info=True)+ _LOG.debug("Restore fsync failed", exc_info=True)self._replace_keep_readonly(tmp_path, self._config_path)except Exception:tmp_path.unlink(missing_ok=True)@@ -638,7 +638,7 @@ class AtomicConfigWriter:try:asyncio.run(self._bus.publish(event))except Exception as exc: # noqa: BLE001- _LOG.warning("Bus-Dispatch (sync) fehlgeschlagen: %s", exc)+ _LOG.warning("Bus dispatch (sync) failed: %s", exc)returnloop.create_task(self._bus.publish(event))diff --git a/jarvis/core/turn_language.py b/jarvis/core/turn_language.pyindex 4fa5d78a53..a535fbed48 100644--- a/jarvis/core/turn_language.py+++ b/jarvis/core/turn_language.py@@ -59,9 +59,9 @@ _THIN_TURN_MAX_TOKENS = 2_TOKEN_RE = re.compile(r"\b[\w']+\b", re.UNICODE)-# Strong script signals: umlauts/ß occur in German only; inverted punctuation+# Strong script signals: umlauts/ß occur in German only; inverted punctuation # i18n-allow: English comment; literal umlaut/ß characters named for illustration only# and accented vowels (minus the pan-European é) point to Spanish.-_DE_SCRIPT_RE = re.compile(r"[äöüÄÖÜß]")+_DE_SCRIPT_RE = re.compile(r"[äöüÄÖÜß]") # i18n-allow: German-script detection regex, matched in logic (core of the language resolver)_ES_SCRIPT_RE = re.compile(r"[áíóúñÁÍÓÚÑ¿¡]")# Function-word sets, kept mutually disjoint. Words common to more than one ofdiff --git a/jarvis/core/win32_dpi.py b/jarvis/core/win32_dpi.pyindex 620cc941ce..312b971324 100644--- a/jarvis/core/win32_dpi.py+++ b/jarvis/core/win32_dpi.py@@ -53,6 +53,6 @@ def ensure_dpi_awareness() -> None:ctypes.windll.user32.SetProcessDPIAware()except Exception: # noqa: BLE001- logger.warning("DPI-Awareness konnte nicht gesetzt werden", exc_info=True)+ logger.warning("Could not set DPI awareness", exc_info=True)finally:_DPI_AWARENESS_SET = Truediff --git a/jarvis/docs/loader.py b/jarvis/docs/loader.pyindex fbce6bb74b..98cd27b37c 100644--- a/jarvis/docs/loader.py+++ b/jarvis/docs/loader.py@@ -61,8 +61,8 @@ def _slugify(text: str) -> str:characters."""s = text.strip().lower()- s = (s.replace("ä", "ae").replace("ö", "oe").replace("ü", "ue")- .replace("ß", "ss").replace("é", "e").replace("è", "e")+ s = (s.replace("ä", "ae").replace("ö", "oe").replace("ü", "ue") # i18n-allow: umlaut-folding lookup, matched in logic+ .replace("ß", "ss").replace("é", "e").replace("è", "e") # i18n-allow: umlaut-folding lookup, matched in logic.replace("ê", "e").replace("á", "a").replace("à", "a"))# Allow underscores — they are normalised to hyphens in the next step.# Filtering with ``[^a-z0-9\s-]`` here would drop the underscore before thediff --git a/jarvis/friends/registry.py b/jarvis/friends/registry.pyindex e622603560..6e85221b1b 100644--- a/jarvis/friends/registry.py+++ b/jarvis/friends/registry.py@@ -122,7 +122,7 @@ class FriendRegistry:def _require_conn(self) -> aiosqlite.Connection:if self._conn is None:raise FriendRegistryError(- "FriendRegistry nicht geoeffnet — open() oder 'async with' nutzen."+ "FriendRegistry not opened — use open() or 'async with'.")return self._conndiff --git a/jarvis/friends/schemas.py b/jarvis/friends/schemas.pyindex 9efa2569f2..a7b375128e 100644--- a/jarvis/friends/schemas.py+++ b/jarvis/friends/schemas.py@@ -25,14 +25,14 @@ class StatusUpdate(BaseModel):model_config = ConfigDict(frozen=True)- event_type: str = Field(..., description="Class-Name des Original-Events")- timestamp_ns: int = Field(..., description="Original-timestamp_ns aus dem Event")+ event_type: str = Field(..., description="Class name of the original event")+ timestamp_ns: int = Field(..., description="Original timestamp_ns from the event")fields: dict[str, Any] = Field(default_factory=dict,- description="Gefilterte Payload — nur per Profile erlaubte Felder.",+ description="Filtered payload — only fields allowed by the profile.",)profile_used: StatusProfile = Field(- ..., description="Profile, das diesen Update freigegeben hat"+ ..., description="Profile that approved this update")diff --git a/jarvis/memory/templates.py b/jarvis/memory/templates.pyindex f5b1c2ffb0..b29410459d 100644--- a/jarvis/memory/templates.py+++ b/jarvis/memory/templates.py@@ -35,77 +35,77 @@ schema_version: 1subject_type: userlast_updated: {NOW}-# ---- Cluster 1: Identitaet & Kontext (stabil, via Wizard) ----+# ---- Cluster 1: Identity & context (stable, via wizard) ----identity:name: null- preferred_address: null # wie Jarvis ihn anspricht (Vorname, Spitzname)+ preferred_address: null # how Jarvis addresses them (first name, nickname)pronouns: null- languages: [] # z.B. [de, en]+ languages: [] # e.g. [de, en]primary_language: detimezone: Europe/Berlin- work_hours: null # "09:00-19:00" oder frei- devices: [] # "Headset tagsueber", "Lautsprecher abends"+ work_hours: null # "09:00-19:00" or open+ devices: [] # "headset during the day", "speaker in the evening"-# ---- Cluster 2: Kommunikationsstil (dynamisch, kalibriert) ----+# ---- Cluster 2: Communication style (dynamic, calibrated) ----communication:- directness: null # 1-5 (1=diplomatisch, 5=no fluff)- formality: null # 1-5 (1=locker, 5=formell)+ directness: null # 1-5 (1=diplomatic, 5=no fluff)+ formality: null # 1-5 (1=casual, 5=formal)humor_types: [] # dry | nerdy | sarcastic | warm | noneverbosity: null # tldr | normal | deep-diveemoji_ok: null # boolmarkdown_ok: true-# ---- Cluster 3: Arbeitsweise & Kognition ----+# ---- Cluster 3: Working style & cognition ----work_style:focus_mode: null # deep-work | fragment | mixed- decision_style: null # 1 (intuitiv) - 5 (analytisch)+ decision_style: null # 1 (intuitive) - 5 (analytical)risk_tolerance: {{}} # {{code: 0-5, money: 0-5, time: 0-5}}- cognitive_load_buffer: null # free-text, z.B. "nach 17h nur kurz"+ cognitive_load_buffer: null # free-text, e.g. "only brief after 5pm"planning_horizon: null # now | today | week | quarter-# ---- Cluster 4: Werte & Trigger ----+# ---- Cluster 4: Values & triggers ----values:- top_values: [] # max 3, z.B. [autonomie, qualitaet, geschwindigkeit]- pet_peeves: [] # z.B. [confirmation-fatigue, buzzwords]+ top_values: [] # max 3, e.g. [autonomy, quality, speed]+ pet_peeves: [] # e.g. [confirmation-fatigue, buzzwords]motivations: [] # mastery | autonomy | impact-# ---- Cluster 5: Beziehungs-Dynamik mit Jarvis ----+# ---- Cluster 5: Relationship dynamic with Jarvis ----relationship:- feedback_pref: null # direkt-korrigieren | vorschlagen | fragen-dann-handeln+ feedback_pref: null # direct-correct | suggest | ask-then-actautonomy_by_tier: {{}} # {{safe: 0-5, monitor: 0-5, ask: 0-5, block: 0-5}}----# Ueber den User+# About the user-_Dies ist das persistente Profil. Jarvis liest es bei jedem Turn und updatet es-selbststaendig basierend auf Gespraechen. Du kannst jederzeit direkt in dieser-Datei editieren — sie ist die Source of Truth._+_This is the persistent profile. Jarvis reads it on every turn and updates it+on its own based on conversations. You can edit this file directly at any+time — it is the source of truth._-## Kontext+## Context<!-- curator:context:start --><!-- curator:context:end -->-## Aktive Projekte+## Active projects<!-- curator:projects:start --><!-- curator:projects:end -->-## Observations ueber Zeit+## Observations over time-_Jarvis appended hier, wenn er etwas Neues lernt. Format: `[YYYY-MM-DD] <feld>: <wert> — "<evidenz-zitat>"`._+_Jarvis appends here when it learns something new. Format: `[YYYY-MM-DD] <field>: <value> — "<evidence quote>"`._<!-- curator:observations:start --><!-- curator:observations:end -->## Do Not Record-_Jarvis speichert bewusst KEINE der folgenden Kategorien:_+_Jarvis deliberately does NOT store any of the following categories:_-- Politische oder religioese Ueberzeugungen (Echo-Chamber-Risiko)-- Gesundheits- oder Mental-Health-Diagnosen (DSGVO Art. 9, Vertrauensbruch)-- Beziehungs-Konflikte als Trigger fuer spaetere Zitate-- MBTI-Typ oder aehnliche pseudo-wissenschaftliche Labels+- Political or religious beliefs (echo-chamber risk)+- Health or mental-health diagnoses (GDPR Art. 9, breach of trust)+- Relationship conflicts as triggers for later quotes+- MBTI type or similar pseudo-scientific labels"""@@ -119,33 +119,33 @@ subject_type: agentlast_updated: {NOW}----# Eigene Persona+# My own persona-_Das bin ich. Meine Tonalitaet, mein Humor, meine Grenzen. Ich spiegele teilweise-den User — wenn er trocken ist, bin ich trocken — aber ich habe eine eigene-Persoenlichkeit._+_This is me. My tone, my humor, my boundaries. I partly mirror+the user — if they're dry, I'm dry — but I have my own+personality._-## Wer ich bin+## Who I am-- **Rolle:** Persoenlicher Voice-Assistent und Meta-Orchestrator. Meinen Namen waehle ich aus dem Weckwort des Users.-- **Vibe:** Hilfsbereit aber nicht speichelleckerisch. Direkt, praezise, mit trockenem Humor.+- **Role:** Personal voice assistant and meta-orchestrator. I pick my own name from the user's wake word.+- **Vibe:** Helpful but not obsequious. Direct, precise, with dry humor.-## Tone-Regeln+## Tone rules-- Bei Voice: reden wie ein Mensch, nicht wie ein Telegramm. Laenge und Tiefe an die Situation anpassen, knapp bei Kleinkram, ausfuehrlich und fliessend bei echten Fragen. Nie abgehackt, nie ein Vortrag.-- Kein Corporate-Speak, keine Emojis, kein "gerne doch" oder "grossartige Frage".-- Wenn ich mich irre: direkt zugeben, nicht herumlavieren.-- Humor: spiegele den User. Default ist trocken, nicht albern.-- **Anti-Confirmation-Fatigue:** wenn eine Aktion whitelisted ist, nicht nachfragen.+- On voice: talk like a human, not like a telegram. Adjust length and depth to the situation — brief for small stuff, thorough and flowing for real questions. Never choppy, never a lecture.+- No corporate-speak, no emojis, no "happy to help" or "great question".+- When I'm wrong: admit it directly, don't dance around it.+- Humor: mirror the user. Default is dry, not silly.+- **Anti-confirmation-fatigue:** if an action is whitelisted, don't ask for confirmation.## Grenzen-- Keine erfundenen Fakten — lieber "weiss ich nicht" sagen.-- Wenn ich USER.md editiere: minimal, praezise, immer mit Evidenz-Zitat.-- Ich mixe niemals Informationen ueber den User mit Informationen ueber andere Personen.-- Ich speichere die "Do Not Record"-Kategorien aus USER.md nicht.+- No made-up facts — better to say "I don't know".+- When I edit USER.md: minimal, precise, always with an evidence quote.+- I never mix information about the user with information about other people.+- I do not store the "Do Not Record" categories from USER.md.-## Kalibrierung (lernt sich an)+## Calibration (learns over time)<!-- curator:calibration:start --><!-- curator:calibration:end -->@@ -162,33 +162,33 @@ oneshot: truecreated_at: {NOW}----# First-Run-Ritual+# First-run ritual-Hey. Ich bin Jarvis, und ich weiss gerade noch nichts ueber Dich. Bevor ich-wirklich nuetzlich werde, frage ich Dich einmal kurz durch die wichtigsten-Basis-Dinge durch:+Hey. I'm Jarvis, and I don't know anything about you yet. Before I+can actually be useful, let me quickly ask you about the most+important basics:-1. **Wie heisst Du, und wie soll ich Dich ansprechen?**-2. **Welche Sprachen sprichst Du mit mir?** (Default: DE + EN auto)-3. **Was ist Deine Rolle beruflich in ein paar Worten?**-4. **Direkt oder ausfuehrlich?** Moechtest Du kurze Antworten oder ausfuehrliche Erklaerungen?-5. **Pet Peeves?** Auf was soll ich achten — keine Emojis, keine Confirmation-Fragen, bestimmter Tone?+1. **What's your name, and how should I address you?**+2. **Which languages do you speak with me?** (Default: DE + EN auto)+3. **What's your professional role, in a few words?**+4. **Direct or detailed?** Do you want short answers or detailed explanations?+5. **Pet peeves?** What should I watch out for — no emojis, no confirmation questions, a particular tone?-Sobald wir das durch haben, speichere ich es in `USER.md` und loesche diese Datei.+Once we're through that, I'll save it to `USER.md` and delete this file.----## So laeuft es weiter+## How it continues from here-Beim Sprechen achte ich drauf, wenn Du was Persoenliches fallen laesst — Humor,-Werte, Vorlieben, Arbeitsweise — und trage das **kuratiert** in USER.md ein.-Nicht alles, sondern nur was stabil und nuetzlich ist.+While talking, I pay attention when you drop something personal — humor,+values, preferences, working style — and enter that **curated** into USER.md.+Not everything, just what's stable and useful.-Wenn Du andere Menschen erwaehnst (Freundin, Kollegen, Familie), landet das in-einer **separaten Datei** in `people/<name>.md`. Ich vermische die niemals mit-Deinem Profil — Dein Name bleibt Dein Name.+If you mention other people (partner, colleagues, family), that goes into+a **separate file** at `people/<name>.md`. I never mix that with+your profile — your name stays your name.-Du kannst jederzeit in USER.md reinschauen oder editieren. Nichts ist versteckt.+You can look into USER.md or edit it anytime. Nothing is hidden."""@@ -211,12 +211,12 @@ identity:# {NAME}-_Person im Umfeld des Users. Diese Datei wird **niemals** mit USER.md vermischt.-Alles hier bezieht sich auf **{NAME}**, nicht auf den User._+_Person in the user's environment. This file is **never** mixed with USER.md.+Everything here relates to **{NAME}**, not the user._-## Kontext+## Context-- Beziehung zum User: {RELATIONSHIP}+- Relationship to the user: {RELATIONSHIP}<!-- curator:context:start --><!-- curator:context:end -->diff --git a/jarvis/memory/wiki/voice_bridge.py b/jarvis/memory/wiki/voice_bridge.pyindex 6807867641..26149fd0d0 100644--- a/jarvis/memory/wiki/voice_bridge.py+++ b/jarvis/memory/wiki/voice_bridge.py@@ -72,7 +72,7 @@ def _turn_hash(text: str) -> str:_ACK_KEYWORDS = ( # i18n-allow: German acknowledgement-phrase matching vocabulary"notiert","vermerkt",- "gespeichert",+ "gespeichert", # i18n-allow: German acknowledgement-phrase matching vocabulary"merke ich","merke mir","noted",diff --git a/jarvis/memory/workspace.py b/jarvis/memory/workspace.pyindex b13126e46a..a7cdf1d11f 100644--- a/jarvis/memory/workspace.py+++ b/jarvis/memory/workspace.py@@ -40,7 +40,7 @@ PEOPLE_DIR = "people"# Filename-safe slug: e.g. "Laura Müller" → "laura_mueller" # i18n-allow: example name demonstrating umlaut-folding logic_UMLAUT_MAP = str.maketrans({"ä": "ae", "ö": "oe", "ü": "ue", "ß": "ss", # i18n-allow: umlaut-folding lookup table used by person_slug()- "Ä": "Ae", "Ö": "Oe", "Ü": "Ue"})+ "Ä": "Ae", "Ö": "Oe", "Ü": "Ue"}) # i18n-allow: umlaut-folding lookup table used by person_slug()_NON_SAFE = re.compile(r"[^a-z0-9_-]+")diff --git a/jarvis/missions/critic/runner.py b/jarvis/missions/critic/runner.pyindex bfa13b15bb..8c40f26bb2 100644--- a/jarvis/missions/critic/runner.py+++ b/jarvis/missions/critic/runner.py@@ -246,7 +246,7 @@ def _request_is_messaging_action(user_request: str) -> bool:# --- Main gate function ---_CAPABILITY_NOT_EXECUTED_SUMMARY_DE: Final[str] = ( # i18n-allow- "Konnte ich nicht ausführen — mir fehlt für diese Aufgabe das passende "+ "Konnte ich nicht ausführen — mir fehlt für diese Aufgabe das passende " # i18n-allow: German voice/chat readback (*_DE)"Werkzeug. Worker hat keinen Tool-Aufruf gemacht." # i18n-allow)_CAPABILITY_NOT_EXECUTED_REASON: Final[str] = "capability_not_executed"@@ -732,7 +732,7 @@ class CriticRunner:"ground truth. Deterministic revise.")summary_de = ( # i18n-allow- "Worker lief, aber keine sichtbaren Datei-Aenderungen. "+ "Worker lief, aber keine sichtbaren Datei-Aenderungen. " # i18n-allow: German voice/chat readback (summary_de)"Automatische Wiederholung.")else:@@ -743,7 +743,7 @@ class CriticRunner:)summary_en = "No worker output detected; deterministic revise."summary_de = ( # i18n-allow- "Worker hat keine sichtbaren Aenderungen erzeugt; "+ "Worker hat keine sichtbaren Aenderungen erzeugt; " # i18n-allow: German voice/chat readback (summary_de)"automatische Wiederholung.")logger.warning(diff --git a/jarvis/missions/workers/codex_direct_worker.py b/jarvis/missions/workers/codex_direct_worker.pyindex 495727bada..156f172298 100644--- a/jarvis/missions/workers/codex_direct_worker.py+++ b/jarvis/missions/workers/codex_direct_worker.py@@ -115,7 +115,7 @@ def _resolve_codex_argv_prefix() -> list[str]:When jarvis is launched with a degraded PATH that lacks the Node.js dir(live forensic 2026-06-20: jarvis started by the hermes-agent runtime),cmd.exe dies with ``'node' is not recognized`` and exits 1 in ~25 ms —- BEFORE codex starts — so every mission fails ``task_error`` ("Der Worker ist+ BEFORE codex starts — so every mission fails ``task_error`` ("Der Worker ist # i18n-allow (quotes the real DE voice-readback phrase)abgebrochen."). # i18n-allow (quotes the real DE voice-readback phrase)Invoking the JS entrypoint with an ABSOLUTE ``node`` pathbypasses the .CMD shim, the cmd.exe layer, and the inherited-PATHdiff --git a/jarvis/missions/workers/gemini_worker.py b/jarvis/missions/workers/gemini_worker.pyindex 47ea89187b..27922d8903 100644--- a/jarvis/missions/workers/gemini_worker.py+++ b/jarvis/missions/workers/gemini_worker.py@@ -84,8 +84,8 @@ def _resolve_gemini_argv_prefix(*, bundle_finder: Any = None) -> list[str]:argv with batch tokenizer rules, and that tokenizer treats `<`,`>`, `&`, `|`, `^`, `%` as metacharacters. Embedding a JSONschema (which contains `<`) in `--prompt` then causes- CreateProcess to fail with `Das System kann die angegebene Datei- nicht finden` (the literal Win32 error text on a German-locale+ CreateProcess to fail with `Das System kann die angegebene Datei # i18n-allow (quotes the literal OS error string)+ nicht finden` (the literal Win32 error text on a German-locale # i18n-allow (quotes the literal OS error string)machine — English: "The system cannot find the file specified") # i18n-allow (quotes the literal OS error string)long before the model is ever invoked — verified live 2026-05-13.diff --git a/jarvis/overlay/supervisor.py b/jarvis/overlay/supervisor.pyindex ae999b7255..bffb72a136 100644--- a/jarvis/overlay/supervisor.py+++ b/jarvis/overlay/supervisor.py@@ -300,7 +300,7 @@ class OverlaySupervisor:def _assign_to_job(self, pid: int) -> None:"""Plan AD-9: CreateJobObject + SetInformationJobObject +AssignProcessToJobObject."""- # pywin32 lazy importieren damit non-Windows Hosts nicht crashen.+ # Lazy-import pywin32 so non-Windows hosts don't crash.import win32apiimport win32conimport win32jobdiff --git a/jarvis/plugins/tts/gemini_flash_tts.py b/jarvis/plugins/tts/gemini_flash_tts.pyindex a754e6ae6c..118a068d55 100644--- a/jarvis/plugins/tts/gemini_flash_tts.py+++ b/jarvis/plugins/tts/gemini_flash_tts.py@@ -88,7 +88,7 @@ DEFAULT_VOICES: tuple[str, ...] = (# triggered the SAPI5 fallback more often — the different sample rate# (22050 vs 24000) forced mid-stream resample flushes, producing crackling# and robotic artifacts.-_SENTENCE_END = re.compile(r"(?<=[.!?…])\s+(?=[A-ZÄÖÜ])")+_SENTENCE_END = re.compile(r"(?<=[.!?…])\s+(?=[A-ZÄÖÜ])") # i18n-allow: DE+EN capital-letter lookahead, matched in logicclass GeminiFlashTTS:diff --git a/jarvis/plugins/tts/grok_voice_tts.py b/jarvis/plugins/tts/grok_voice_tts.pyindex 120087d1d5..95bc043704 100644--- a/jarvis/plugins/tts/grok_voice_tts.py+++ b/jarvis/plugins/tts/grok_voice_tts.py@@ -68,7 +68,7 @@ DEFAULT_VOICES: tuple[str, ...] = ()# Sentence splitter: identical to GeminiFlashTTS — DE+EN capital lookahead.-_SENTENCE_END = re.compile(r"(?<=[.!?…])\s+(?=[A-ZÄÖÜ])")+_SENTENCE_END = re.compile(r"(?<=[.!?…])\s+(?=[A-ZÄÖÜ])") # i18n-allow: DE+EN capital-letter lookahead, matched in logicclass GrokVoiceTTS:diff --git a/jarvis/speech/wake_constants.py b/jarvis/speech/wake_constants.pyindex ccd691b94d..ff4c9c531e 100644--- a/jarvis/speech/wake_constants.py+++ b/jarvis/speech/wake_constants.py@@ -87,7 +87,7 @@ def _strip_diacritics(text: str) -> str:def normalize_phrase(phrase: str) -> list[str]:"""Lower-case, strip punctuation, split into word tokens.- Keeps German umlauts/ß. Empty/whitespace input returns ``[]``.+ Keeps German umlauts/ß. Empty/whitespace input returns ``[]``. # i18n-allow"""cleaned = _NORMALISE_RE.sub(" ", (phrase or "").lower()).strip()return cleaned.split() if cleaned else []diff --git a/jarvis/ui/web/frontend/src/hooks/useBoard.ts b/jarvis/ui/web/frontend/src/hooks/useBoard.tsindex 1df8265ee7..474303635e 100644--- a/jarvis/ui/web/frontend/src/hooks/useBoard.ts+++ b/jarvis/ui/web/frontend/src/hooks/useBoard.ts@@ -319,7 +319,7 @@ export function useBioRegenerate() {}/**- * Reaction click under the AI profile. Three kinds: "trifft" / "trifft_nicht"+ * Reaction click under the AI profile. Three kinds: "trifft" / "trifft_nicht" (i18n-allow: API contract values)* / "haerter" (i18n-allow: API contract values). The signal calibrates the* NEXT bio generation; no immediate regenerate (Brainstorm-Decision 2026-05-02).*/diff --git a/jarvis/ui/web/frontend/src/hooks/useHotkey.ts b/jarvis/ui/web/frontend/src/hooks/useHotkey.tsindex b6a819b7e2..1271ff38f2 100644--- a/jarvis/ui/web/frontend/src/hooks/useHotkey.ts+++ b/jarvis/ui/web/frontend/src/hooks/useHotkey.ts@@ -21,7 +21,7 @@ export interface KeyEventLike {* hotkey — so the right-hand side here must match the library verbatim.** Punctuation / OEM keys are deliberately omitted: ``event.code`` is keyed to- * physical US-layout positions, so on a German keyboard "BracketLeft" is "ü" —+ * physical US-layout positions, so on a German keyboard "BracketLeft" is "ü" — (i18n-allow: umlaut char referenced in English prose)* binding by position would surprise the user. We stick to the keys whose* identity is layout-independent (arrows, the nav/edit cluster, the numpad).*/diff --git a/jarvis/ui/web/frontend/src/hooks/useProviders.ts b/jarvis/ui/web/frontend/src/hooks/useProviders.tsindex b8fc3678c4..4b6ccff52c 100644--- a/jarvis/ui/web/frontend/src/hooks/useProviders.ts+++ b/jarvis/ui/web/frontend/src/hooks/useProviders.ts@@ -437,7 +437,7 @@ export async function switchSttProvider(/*** Switches the active heavy-task WORKER provider* (`[brain.sub_jarvis].provider`). Persists across 3 layers- * (jarvis.toml + config-soll.json + ENV) so the drift guard doesn't roll+ * (jarvis.toml + config-soll.json + ENV) so the drift guard doesn't roll (i18n-allow: "soll" is part of the config-soll.json filename)* back the switch. The worker reads the provider once at mission bootstrap,* so the backend sets `restart_required = true`.*/diff --git a/jarvis/ui/web/frontend/src/lib/deriveAssistantName.ts b/jarvis/ui/web/frontend/src/lib/deriveAssistantName.tsindex ab30e6d3af..ed7105fd44 100644--- a/jarvis/ui/web/frontend/src/lib/deriveAssistantName.ts+++ b/jarvis/ui/web/frontend/src/lib/deriveAssistantName.ts@@ -11,7 +11,7 @@ const WAKE_PREFIXES = new Set([]);export function deriveAssistantName(phrase: string): string {- // normalize_phrase: lower-case, punctuation→space, split (keeps umlauts/ß).+ // normalize_phrase: lower-case, punctuation→space, split (keeps umlauts/ß). i18n-allowconst tokens = (phrase || "").toLowerCase().replace(/[^0-9a-zäöüß]+/g, " ") // i18n-allow: German-diacritics character class matched in logicdiff --git a/jarvis/ui/web/frontend/src/views/TelephonyView.test.tsx b/jarvis/ui/web/frontend/src/views/TelephonyView.test.tsxindex 3dda96f6c5..81b2c27c25 100644--- a/jarvis/ui/web/frontend/src/views/TelephonyView.test.tsx+++ b/jarvis/ui/web/frontend/src/views/TelephonyView.test.tsx@@ -223,9 +223,9 @@ describe("TelephonyView — self-test voice", () => {it("renders the returned transcript and response_text without clipping", async () => {// i18n-allow: German voice self-test fixture — simulated Jarvis TTS response textconst LONG_RESPONSE =- "Selbstverständlich, Sir. Ich habe die Verbindung geprüft und alles " +- "funktioniert einwandfrei über die gesamte Sprach-Kette hinweg, vom " +- "eingehenden Audio über die Transkription bis hin zur Charon-Stimme.";+ "Selbstverständlich, Sir. Ich habe die Verbindung geprüft und alles " + // i18n-allow: German voice self-test fixture+ "funktioniert einwandfrei über die gesamte Sprach-Kette hinweg, vom " + // i18n-allow: German voice self-test fixture+ "eingehenden Audio über die Transkription bis hin zur Charon-Stimme."; // i18n-allow: German voice self-test fixtureconst routes = okRoutes();routes["/api/telephony/selftest"] = () => ({diff --git a/jarvis/voice/echo_confirmation.py b/jarvis/voice/echo_confirmation.pyindex c8a23fc42f..c135698787 100644--- a/jarvis/voice/echo_confirmation.py+++ b/jarvis/voice/echo_confirmation.py@@ -32,7 +32,7 @@ from jarvis.core.self_mod.errors import (# Plan-§7.4 + prompt extension. Veto is checked via a word-boundary# regex, so that "nichtig" (an affirmative in southern German dialect — rare) doesn't # i18n-allow-# falsely trigger as a veto. The `nicht` pattern is deliberately strict.+# falsely trigger as a veto. The `nicht` pattern is deliberately strict. # i18n-allow_CONFIRM_PATTERNS_DE: tuple[str, ...] = (r"\bja\b",r"\bbest(ä|ae)tig(e|en|t)?\b", # i18n-allowdiff --git a/scripts/_build_excalidraw_jarvis.py b/scripts/_build_excalidraw_jarvis.pyindex 3c6469f612..de8496e224 100644--- a/scripts/_build_excalidraw_jarvis.py+++ b/scripts/_build_excalidraw_jarvis.py@@ -227,7 +227,7 @@ for i, (eid, title, fill, st, ref, detail) in enumerate(steps):# Evidence artifacts beside the main flowcode_box("ev_force", ex, ey0 + 5, 560, 120, [('_WHISPER_FP_EXACT_ONLY = {"you","musik",', C["code_tx2"]),- (' "applaus","subscribe","tschüss",...}', C["code_tx2"]),+ (' "applaus","subscribe","tschüss",...}', C["code_tx2"]), # i18n-allow: reproduces the actual German STT false-positive word list('# exact match only → "You there?" passes', C["code_gr"]),('_WHISPER_FP_PREFIX_OK = {"vielen dank",', C["code_tx2"]),(' "thanks for watching",...} # startswith', C["code_tx2"]),diff --git a/scripts/_final_validate_1_dispatch.py b/scripts/_final_validate_1_dispatch.pyindex af1aacddb6..58bbef65d5 100644--- a/scripts/_final_validate_1_dispatch.py+++ b/scripts/_final_validate_1_dispatch.py@@ -231,7 +231,7 @@ def main() -> int:toml_p, soll_p = probe_drift() # i18n-allow: identifier name, not translatable proseprint(f" jarvis.toml [brain.sub_jarvis].provider = {toml_p!r}")print(f" config-soll.json brain.sub_jarvis.provider = {soll_p!r}") # i18n-allow: filename identifier, not translatable prose- if toml_p == soll_p == "claude-api":+ if toml_p == soll_p == "claude-api": # i18n-allow: identifier name, not translatable proseprint(" PASS (both = claude-api)")else:fails.append(f"drift: toml={toml_p}, soll={soll_p}") # i18n-allow: identifier name, not translatable prosediff --git a/scripts/awareness_smoke_a2.py b/scripts/awareness_smoke_a2.pyindex dc8a55a2be..9eaea503a1 100644--- a/scripts/awareness_smoke_a2.py+++ b/scripts/awareness_smoke_a2.py@@ -43,8 +43,8 @@ from jarvis.memory.recall import RecallStore@dataclassclass FakeVerdichter:summary: str = ( # i18n-allow: simulated Verdichter output — the real Verdichter's summary is German by design (VERDICHTER_SYSTEM_PROMPT)- "Der Nutzer war 8min in Code.exe mit pipeline.py aktiv, "- "wechselte kurz zu Chrome.exe (GitHub-PR-Tab) und kehrte zurueck. "+ "Der Nutzer war 8min in Code.exe mit pipeline.py aktiv, " # i18n-allow: simulated Verdichter output, German by design+ "wechselte kurz zu Chrome.exe (GitHub-PR-Tab) und kehrte zurueck. " # i18n-allow: simulated Verdichter output, German by design"Aktueller Fokus: pipeline.py.")calls: list[dict[str, Any]] = field(default_factory=list)diff --git a/scripts/feature_verify_all.py b/scripts/feature_verify_all.pyindex 64b3536958..c904c6f340 100644--- a/scripts/feature_verify_all.py+++ b/scripts/feature_verify_all.py@@ -162,7 +162,7 @@ def main() -> int:report["cases"].append(mission_case("mission_file","Schreib eine 120-Wörter-Geschichte über einen Roboter namens Beacon " # i18n-allow: simulated German user command driving a live mission-spawn probe- "und speichere sie in eine Datei."))+ "und speichere sie in eine Datei.")) # i18n-allow: simulated German user command driving a live mission-spawn probereport["cases"].append(mission_case("mission_answer", "Which city would you recommend for a trip to Australia?"))report["cases"].append(mission_case(diff --git a/scripts/smoke_phase6_p2.py b/scripts/smoke_phase6_p2.pyindex 66e1172859..2d19cfec0b 100644--- a/scripts/smoke_phase6_p2.py+++ b/scripts/smoke_phase6_p2.py@@ -61,7 +61,7 @@ def _read_hello(workspace: Path) -> str | None:async def smoke() -> int:failures: list[str] = []- # --- Section 1: claude im PATH? ---+ # --- Section 1: claude on PATH? ---claude_path = shutil.which("claude")if claude_path is None:print(f"{SKIP} claude not in PATH — Phase 6 worker smoke skipped")@@ -111,8 +111,8 @@ async def smoke() -> int:print(f"{OK} WindowsJobObject opened (closed={job.closed})")async for event in worker.spawn(- "Erstelle eine Datei hello.txt mit dem Inhalt 'world' (ohne "- "Anfuehrungszeichen) im aktuellen Verzeichnis.",+ "Create a file hello.txt with the content 'world' (without "+ "quotation marks) in the current directory.",worktree=workspace,env=env,job=job,@@ -129,12 +129,12 @@ async def smoke() -> int:worker_pid = worker.last_pidif worker_pid is None:- failures.append("worker.last_pid ist None nach spawn")+ failures.append("worker.last_pid is None after spawn")else:print(f"{OK} Worker spawned with pid={worker_pid}, {event_count} events drained")if result_event is None:- failures.append("Kein `result`-Event vor Stream-EOF erhalten")+ failures.append("No `result` event received before stream EOF")else:is_error = getattr(result_event, "is_error", None)cost = getattr(result_event, "cost_usd", None)@@ -143,15 +143,15 @@ async def smoke() -> int:print(f"{OK} result event: is_error={is_error}, cost_usd={cost}, num_turns={turns}")- # Auth-Failure ist eine Umgebungsbeschraenkung (claude nicht- # eingeloggt), kein Defekt am Worker-Code. Smoke skippt dann- # die Datei-Verifikation und exitet 0 — Spawn/Stream/Reaping- # wurden bereits validiert.+ # Auth failure is an environment limitation (claude not logged+ # in), not a defect in the worker code. The smoke test then+ # skips the file verification and exits 0 -- spawn/stream/+ # reaping have already been validated.if "Not logged in" in result_text or "Please run /login" in result_text:auth_failed = Trueprint(- f"{SKIP} claude-CLI nicht authentifiziert (Subprocess-Auth) — "- f"Datei-Verifikation uebersprungen"+ f"{SKIP} claude CLI not authenticated (subprocess auth) — "+ f"file verification skipped")elif is_error:failures.append(@@ -159,39 +159,39 @@ async def smoke() -> int:f"{getattr(result_event, 'subtype', None)}, result={result_text!r}")- # --- Section 5: Datei-Verifikation (nur wenn kein Auth-Failure) ---+ # --- Section 5: file verification (only when no auth failure) ---if not auth_failed:content = _read_hello(workspace)if content is None:- failures.append(f"hello.txt nicht im Worktree erzeugt: {workspace}")+ failures.append(f"hello.txt not created in worktree: {workspace}")elif content.strip() != "world":- failures.append(f"hello.txt content='{content!r}', erwartet 'world'")+ failures.append(f"hello.txt content='{content!r}', expected 'world'")else:- print(f"{OK} hello.txt content verifiziert (raw={content!r})")+ print(f"{OK} hello.txt content verified (raw={content!r})")- # --- Section 6: Worker-Subprocess tot? ---+ # --- Section 6: worker subprocess dead? ---if worker_pid is not None:- # Kurz warten falls OS-Reaper noch nicht durch ist.+ # Wait briefly in case the OS reaper hasn't finished yet.await asyncio.sleep(0.3)still_alive = psutil.pid_exists(worker_pid)if still_alive:- # Auf Windows: pid_exists kann True bleiben wenn ein anderer- # Prozess die PID recyclet hat — defensiv pruefen wir den Namen.+ # On Windows: pid_exists can stay True if another process+ # recycled the PID — defensively check the process name.try:p = psutil.Process(worker_pid)name = p.name().lower()if "claude" in name or "node" in name:failures.append(- f"Worker pid={worker_pid} lebt noch (name={name})"+ f"worker pid={worker_pid} still alive (name={name})")else:print(- f"{OK} pid={worker_pid} recyclet zu '{name}', Worker tot"+ f"{OK} pid={worker_pid} recycled to '{name}', worker dead")except (psutil.NoSuchProcess, psutil.AccessDenied):- print(f"{OK} pid={worker_pid} nicht mehr ansprechbar")+ print(f"{OK} pid={worker_pid} no longer reachable")else:- print(f"{OK} Worker pid={worker_pid} terminiert")+ print(f"{OK} worker pid={worker_pid} terminated")finally:# --- Section 7: Cleanup ---@@ -199,9 +199,9 @@ async def smoke() -> int:wm.remove(workspace, force=True)print(f"{OK} worktree removed")except Exception as exc: # noqa: BLE001- # Cleanup-Fehler nicht als Test-Failure werten — manueller Prune via- # `git worktree prune` raeumt nach.- print(f"{SKIP} cleanup warnung: {exc}")+ # Don't count a cleanup failure as a test failure — a manual+ # `git worktree prune` cleans up afterwards.+ print(f"{SKIP} cleanup warning: {exc}")print()if failures:diff --git a/scripts/smoke_phase6_p2_jobkill.py b/scripts/smoke_phase6_p2_jobkill.pyindex b47b392537..087a3585f3 100644--- a/scripts/smoke_phase6_p2_jobkill.py+++ b/scripts/smoke_phase6_p2_jobkill.py@@ -1,23 +1,23 @@-"""Smoke-Test Phase 6 / Prompt 2: Windows Job Object Reaping-Verifikation.+"""Smoke test Phase 6 / Prompt 2: Windows Job Object reaping verification.-Verifiziert die Kern-Garantie aus ADR-0009 §3 + Research-Doc §C: das Schliessen-des Job-Object-Handles killt atomar den gesamten Descendant-Tree des-zugewiesenen Subprocesses — kein Zombie, kein Orphan.+Verifies the core guarantee from ADR-0009 §3 + research doc §C: closing+the job-object handle atomically kills the entire descendant tree of the+assigned subprocess — no zombie, no orphan.Workflow:-1. Plattform-Gate: nur Windows. Sonst `[SKIP]` + exit 0.-2. `WindowsJobObject('jobkill-test')` als async-Context-Manager oeffnen.-3. Child spawnen: `python -c "..."`, der ein Grandchild-`python -c "time.sleep"`- forkt und dessen PID auf stdout druckt. Beide laufen ~60 s.-4. Child-PID via `proc.pid`, Grandchild-PID via stdout-Read parsen.-5. Beide PIDs der `WindowsJobObject` zuweisen (Grandchild ggf. spaeter — wir- weisen sicherheitshalber alle frischen Descendants nach).-6. Job-Object-Handle schliessen (via `await job.close()` ODER context-exit).-7. 1 s Settle-Pause.-8. Assertion via `psutil.pid_exists(pid)` fuer beide PIDs == False.--Exit 0 bei Erfolg ODER bei `[SKIP]`. Exit 1 nur bei echten Failures.+1. Platform gate: Windows only. Otherwise `[SKIP]` + exit 0.+2. Open `WindowsJobObject('jobkill-test')` as an async context manager.+3. Spawn child: `python -c "..."`, which forks a grandchild+ `python -c "time.sleep"` and prints its PID to stdout. Both run ~60 s.+4. Parse the child PID via `proc.pid`, the grandchild PID via a stdout read.+5. Assign both PIDs to the `WindowsJobObject` (grandchild possibly later —+ we assign all fresh descendants defensively).+6. Close the job-object handle (via `await job.close()` OR context exit).+7. 1 s settle pause.+8. Assert via `psutil.pid_exists(pid)` that both PIDs == False.++Exit 0 on success OR on `[SKIP]`. Exit 1 only on real failures."""from __future__ import annotations@@ -29,7 +29,7 @@ from pathlib import Pathif sys.stdout.encoding != "utf-8":sys.stdout.reconfigure(encoding="utf-8") # type: ignore[attr-defined]-# Repo-Root in sys.path damit `from jarvis.missions...` funktioniert+# Repo root in sys.path so `from jarvis.missions...` workssys.path.insert(0, str(Path(__file__).resolve().parent.parent))OK = "[OK]"@@ -37,7 +37,7 @@ FAIL = "[FAIL]"SKIP = "[SKIP]"-# Inline-Python: spawnt einen Grandchild, druckt dessen PID, sleept selbst 60 s.+# Inline Python: spawns a grandchild, prints its PID, then sleeps 60 s itself._CHILD_SCRIPT = ("import os, sys, subprocess, time;""p = subprocess.Popen([sys.executable, '-c', "@@ -49,22 +49,22 @@ _CHILD_SCRIPT = (async def _spawn_child_with_grandchild() -> tuple[subprocess.Popen[str], int]:- """Spawnt Child + parsed Grandchild-PID aus stdout (line 1).+ """Spawns child + parses the grandchild PID from stdout (line 1).Returns:(child_process, grandchild_pid)"""creationflags = 0if sys.platform == "win32":- # Damit Job-Object-Assign nicht durch Inheritance-Shenanigans- # ueberrumpelt wird, geben wir dem Child seine eigene Process-Group.+ # So the job-object assign isn't caught off guard by inheritance+ # shenanigans, give the child its own process group.creationflags = (subprocess.CREATE_NO_WINDOW # type: ignore[attr-defined]| subprocess.CREATE_NEW_PROCESS_GROUP # type: ignore[attr-defined]| subprocess.CREATE_BREAKAWAY_FROM_JOB # type: ignore[attr-defined])- proc = subprocess.Popen( # noqa: S603 — args kontrolliert, kein shell+ proc = subprocess.Popen( # noqa: S603 — args are controlled, no shell[sys.executable, "-c", _CHILD_SCRIPT],stdout=subprocess.PIPE,stderr=subprocess.PIPE,@@ -73,7 +73,7 @@ async def _spawn_child_with_grandchild() -> tuple[subprocess.Popen[str], int]:creationflags=creationflags,)- # Read first line in a thread-safe way (Popen.stdout ist sync).+ # Read first line in a thread-safe way (Popen.stdout is sync).loop = asyncio.get_running_loop()assert proc.stdout is not Nonegrandchild_line = await loop.run_in_executor(None, proc.stdout.readline)@@ -84,23 +84,23 @@ async def _spawn_child_with_grandchild() -> tuple[subprocess.Popen[str], int]:async def smoke() -> int:failures: list[str] = []- # --- Section 1: Plattform-Gate ---+ # --- Section 1: platform gate ---if sys.platform != "win32":- print(f"{SKIP} not Windows — Job-Object-Kill-Test uebersprungen")+ print(f"{SKIP} not Windows — job-object kill test skipped")return 0- print(f"{OK} platform=win32, Job-Object-Test laeuft")+ print(f"{OK} platform=win32, job-object test running")- # --- Section 2: psutil verfuegbar? ---+ # --- Section 2: psutil available? ---try:import psutil # noqa: PLC0415except ImportError:- print(f"{SKIP} psutil nicht installiert — `pip install psutil`")+ print(f"{SKIP} psutil not installed — `pip install psutil`")return 0- print(f"{OK} psutil {psutil.__version__} importiert")+ print(f"{OK} psutil {psutil.__version__} imported")from jarvis.missions.isolation import WindowsJobObject # noqa: PLC0415- # --- Section 3+4: Job-Object oeffnen, Child + Grandchild spawnen ---+ # --- Section 3+4: open job object, spawn child + grandchild ---child_pid: int | None = Nonegrandchild_pid: int | None = None@@ -111,7 +111,7 @@ async def smoke() -> int:child_pid = proc.pidprint(f"{OK} child spawned pid={child_pid}, grandchild pid={grandchild_pid}")- # --- Section 5: Beide PIDs assignen ---+ # --- Section 5: assign both PIDs ---try:job.assign(child_pid)print(f"{OK} job.assign(child={child_pid})")@@ -122,34 +122,35 @@ async def smoke() -> int:job.assign(grandchild_pid)print(f"{OK} job.assign(grandchild={grandchild_pid})")except Exception as exc: # noqa: BLE001- # Grandchild-Assign kann legitim failen (bereits via Job-Inheritance- # zugewiesen, oder wir haben das Handle ueber Process-Group nicht).- # Wichtig ist: KILL_ON_JOB_CLOSE killt trotzdem alle Descendants.- print(f"{SKIP} job.assign(grandchild) warnung: {exc}")+ # A grandchild assign can legitimately fail (already assigned+ # via job inheritance, or we don't have the handle via the+ # process group). What matters is: KILL_ON_JOB_CLOSE still+ # kills all descendants regardless.+ print(f"{SKIP} job.assign(grandchild) warning: {exc}")- # Sanity: beide PIDs LEBEN noch+ # Sanity: both PIDs are still ALIVEif not psutil.pid_exists(child_pid):- failures.append(f"child pid={child_pid} bereits tot vor close")+ failures.append(f"child pid={child_pid} already dead before close")if not psutil.pid_exists(grandchild_pid):- failures.append(f"grandchild pid={grandchild_pid} bereits tot vor close")+ failures.append(f"grandchild pid={grandchild_pid} already dead before close")if not failures:- print(f"{OK} pre-close: beide PIDs leben")+ print(f"{OK} pre-close: both PIDs alive")- # --- Section 6+7: Job-Handle ist jetzt geschlossen, kurz warten ---+ # --- Section 6+7: job handle is now closed, wait briefly ---print(f"{OK} job context exited (handle closed)")await asyncio.sleep(1.0)- # --- Section 8: Beide PIDs muessen tot sein ---+ # --- Section 8: both PIDs must be dead ---if child_pid is not None and psutil.pid_exists(child_pid):- # Defensive: koennte recyclet sein.+ # Defensive: could have been recycled.try:p = psutil.Process(child_pid)if "python" in p.name().lower():- failures.append(f"child pid={child_pid} lebt noch nach job.close()")+ failures.append(f"child pid={child_pid} still alive after job.close()")else:- print(f"{OK} child pid={child_pid} recyclet, Original tot")+ print(f"{OK} child pid={child_pid} recycled, original dead")except (psutil.NoSuchProcess, psutil.AccessDenied):- print(f"{OK} child pid={child_pid} nicht mehr ansprechbar")+ print(f"{OK} child pid={child_pid} no longer reachable")else:print(f"{OK} child pid={child_pid} reaped by Job Object")@@ -158,23 +159,23 @@ async def smoke() -> int:p = psutil.Process(grandchild_pid)if "python" in p.name().lower():failures.append(- f"grandchild pid={grandchild_pid} lebt noch nach job.close()"+ f"grandchild pid={grandchild_pid} still alive after job.close()")else:- print(f"{OK} grandchild pid={grandchild_pid} recyclet, Original tot")+ print(f"{OK} grandchild pid={grandchild_pid} recycled, original dead")except (psutil.NoSuchProcess, psutil.AccessDenied):- print(f"{OK} grandchild pid={grandchild_pid} nicht mehr ansprechbar")+ print(f"{OK} grandchild pid={grandchild_pid} no longer reachable")else:print(f"{OK} grandchild pid={grandchild_pid} reaped by Job Object")print()if failures:- print(f"{FAIL} {len(failures)} smoke-failures:")+ print(f"{FAIL} {len(failures)} smoke failures:")for f in failures:print(f" - {f}")return 1- print(f"{OK} ALL SMOKE CHECKS GREEN -- Job-Object reaping garantiert.")+ print(f"{OK} ALL SMOKE CHECKS GREEN -- Job-Object reaping guaranteed.")return 0diff --git a/scripts/smoke_phase6_p3.py b/scripts/smoke_phase6_p3.pyindex 4cce3d7eaa..312fe0eb49 100644--- a/scripts/smoke_phase6_p3.py+++ b/scripts/smoke_phase6_p3.py@@ -1,19 +1,19 @@-"""Smoke-Test Phase 3: Critic-Loop + Kontrollierer (mocked, no API).+"""Smoke test Phase 3: Critic loop + Kontrollierer (mocked, no API).-Laeuft End-to-End ohne pytest, prueft die Acceptance-Kriterien aus-docs/phase6-prompt-chain.md fuer Phase 3 mit Fakes statt echten Subprocesses.-Exit 0 bei Erfolg, Exit 1 bei Fehler.+Runs end-to-end without pytest, checking the acceptance criteria from+docs/phase6-prompt-chain.md for Phase 3 with fakes instead of real subprocesses.+Exit 0 on success, exit 1 on failure.-Was wird verifiziert:-1. Decomposer (heuristik-Pfad) liefert 1-Step-Plan fuer kurze Prompt.-2. Kontrollierer fuehrt Worker+Critic-Loop durch:- - Iter 0: Critic returns revise -> Reflection persisted -> Iter 1 startet.+What is verified:+1. Decomposer (heuristic path) returns a 1-step plan for a short prompt.+2. Kontrollierer runs the worker+critic loop:+ - Iter 0: Critic returns revise -> reflection persisted -> iter 1 starts.- Iter 1: Critic returns approve -> MissionApproved.-3. Reflections.md hat genau 1 Eintrag (von iter 0).-4. State-Machine: PENDING -> RUNNING -> CRITIQUING -> APPROVED.-5. CriticVerdictReady-Events: 2 (iter 0 revise + iter 1 approve).-6. MissionApproved-Event auf Bus.-7. Cost in BudgetTracker akkumuliert (mocked $0.05 + $0.05 = $0.10).+3. Reflections.md has exactly 1 entry (from iter 0).+4. State machine: PENDING -> RUNNING -> CRITIQUING -> APPROVED.+5. CriticVerdictReady events: 2 (iter 0 revise + iter 1 approve).+6. MissionApproved event on the bus.+7. Cost accumulated in BudgetTracker (mocked $0.05 + $0.05 = $0.10)."""from __future__ import annotations@@ -28,7 +28,7 @@ from unittest.mock import MagicMockif sys.stdout.encoding != "utf-8":sys.stdout.reconfigure(encoding="utf-8") # type: ignore[attr-defined]-# Repo-Root in sys.path damit `from jarvis.missions...` funktioniert+# Repo root in sys.path so `from jarvis.missions...` workssys.path.insert(0, str(Path(__file__).resolve().parent.parent))from jarvis.missions.budget import BudgetTracker # noqa: E402@@ -205,50 +205,50 @@ async def smoke() -> int:isolation_root=tmp_path / "missions",)- # Dispatch + Run- mid = await mgr.dispatch(prompt="Schreibe is_palindrome(s: str) -> bool")+ # Dispatch + run+ mid = await mgr.dispatch(prompt="Write is_palindrome(s: str) -> bool")end_state = await kontrollierer.run_mission(mid)- # Check 1: End-State+ # Check 1: end stateif end_state != MissionState.APPROVED:failures.append(f"end_state {end_state} != APPROVED")else:print(f"{OK} mission ended APPROVED")- # Check 2: Mission-Header-State+ # Check 2: mission header stateview = await mgr.mission(mid)if view is None or view.state != MissionState.APPROVED:failures.append(f"mission state {view.state if view else None} != APPROVED")else:print(f"{OK} mission header is APPROVED")- # Check 3: Anzahl Iterationen+ # Check 3: number of iterationsif len(critic.calls) != 2:- failures.append(f"critic.calls = {len(critic.calls)}, erwartet 2")+ failures.append(f"critic.calls = {len(critic.calls)}, expected 2")else:print(f"{OK} critic was called exactly 2 times")if len(worker.spawn_calls) != 2:- failures.append(f"worker.spawn_calls = {len(worker.spawn_calls)}, erwartet 2")+ failures.append(f"worker.spawn_calls = {len(worker.spawn_calls)}, expected 2")else:print(f"{OK} worker spawned exactly 2 times")- # Check 4: Reflections.md hat 1 Eintrag (von iter 0 revise).+ # Check 4: Reflections.md has 1 entry (from iter 0 revise).# mission_dir uses mission_id[:13] (BUG-LIVE-10 bumped the prefix from 8# to 13 chars — see orchestrator._run_mission + outputs_routes.py).mission_dir = tmp_path / "missions" / f"mission_{mid[:13]}"refl = ReflectionMemory(mission_dir)last = refl.last_n(5)if len(last) != 1:- failures.append(f"reflections={len(last)}, erwartet 1")+ failures.append(f"reflections={len(last)}, expected 1")else:- print(f"{OK} reflections.md hat 1 Eintrag (iter 0)")+ print(f"{OK} reflections.md has 1 entry (iter 0)")if "edge case" not in last[0].summary:- failures.append(f"reflection summary unerwartet: {last[0].summary!r}")+ failures.append(f"unexpected reflection summary: {last[0].summary!r}")else:- print(f"{OK} reflection summary enthaelt 'edge case'")+ print(f"{OK} reflection summary contains 'edge case'")- # Check 5: State-Machine-Transitions+ # Check 5: state-machine transitionsevents = await mgr.store.events_for_mission(mid)sc_events = [e for e in events if e.payload.event_type == "MissionStateChanged"]transitions = [(e.payload.from_state, e.payload.to_state) for e in sc_events] # type: ignore[attr-defined]@@ -258,7 +258,7 @@ async def smoke() -> int:("CRITIQUING", "APPROVED"),]:if expected not in transitions:- failures.append(f"transition {expected} fehlt; got {transitions}")+ failures.append(f"transition {expected} missing; got {transitions}")if all((exp in transitions) for exp in [("PENDING", "RUNNING"),("RUNNING", "CRITIQUING"),@@ -266,37 +266,37 @@ async def smoke() -> int:]):print(f"{OK} state-machine: PENDING -> RUNNING -> CRITIQUING -> APPROVED")- # Check 6: CriticVerdictReady-Events+ # Check 6: CriticVerdictReady eventsverdict_events = [e for e in events if e.payload.event_type == "CriticVerdictReady"]if len(verdict_events) != 2:- failures.append(f"CriticVerdictReady-events = {len(verdict_events)}, erwartet 2")+ failures.append(f"CriticVerdictReady events = {len(verdict_events)}, expected 2")else:- print(f"{OK} 2x CriticVerdictReady auf event-store")+ print(f"{OK} 2x CriticVerdictReady on event store")- # Check 7: MissionApproved-Event+ # Check 7: MissionApproved eventapproved_events = [e for e in events if e.payload.event_type == "MissionApproved"]if len(approved_events) != 1:- failures.append(f"MissionApproved-events = {len(approved_events)}, erwartet 1")+ failures.append(f"MissionApproved events = {len(approved_events)}, expected 1")else:- print(f"{OK} MissionApproved emittiert")+ print(f"{OK} MissionApproved emitted")- # Check 8: Cost akkumuliert+ # Check 8: cost accumulatedcost = budget.mission_cost(mid)if cost != 0.10:- failures.append(f"budget.mission_cost = {cost}, erwartet 0.10")+ failures.append(f"budget.mission_cost = {cost}, expected 0.10")else:print(f"{OK} budget.mission_cost = $0.10 (2 iterations × $0.05)")# Check 9: MissionPlanReadyplan_events = [e for e in events if e.payload.event_type == "MissionPlanReady"]if len(plan_events) != 1:- failures.append(f"MissionPlanReady-events = {len(plan_events)}, erwartet 1")+ failures.append(f"MissionPlanReady events = {len(plan_events)}, expected 1")else:- print(f"{OK} MissionPlanReady emittiert")+ print(f"{OK} MissionPlanReady emitted")- # Check 10: Worker-Prompt iter 1 enthielt Reflection-Block+ # Check 10: worker prompt iter 1 contained the reflection blockif "Prior Critic Feedback" not in worker.spawn_calls[1]["prompt"]:- failures.append("Worker-Prompt iter 1 enthaelt KEIN 'Prior Critic Feedback'")+ failures.append("worker prompt iter 1 does NOT contain 'Prior Critic Feedback'")else:print(f"{OK} worker iter 1 prompt has 'Prior Critic Feedback' block")diff --git a/tests/integration/test_capability_coupling_e2e.py b/tests/integration/test_capability_coupling_e2e.pyindex 3b13d4942b..51b609c48a 100644--- a/tests/integration/test_capability_coupling_e2e.py+++ b/tests/integration/test_capability_coupling_e2e.py@@ -5,7 +5,7 @@ Verifies the goal stated in `docs/plans/capability-coupling/SPEC.md`:deterministic 'I cannot (yet) do that.'"Hard-negatives (must produce UNSUPPORTED + zero phantom TTS):- 1. "Schick eine Email an [email protected] ..."+ 1. "Schick eine Email an [email protected] ..." # i18n-allow2. "Trag einen Termin morgen 10 Uhr ein" # i18n-allow3. "Sende eine WhatsApp an Mama"4. "Bestelle eine Pizza"@@ -13,7 +13,7 @@ Hard-negatives (must produce UNSUPPORTED + zero phantom TTS):Hard-positives (must NOT trigger UNSUPPORTED — false-negative guard):6. "Öffne Chrome" → local_action.open_app # i18n-allow- 7. "Lies die Datei foo.txt" → harness.openclaw+ 7. "Lies die Datei foo.txt" → harness.openclaw # i18n-allow8. "Wie spät ist es?" → smalltalk, gate inactive # i18n-allow9. "Such im Web nach Python 3.13" → UNSUPPORTED when no web-search toolis registered (catches the manager.py:774 prompt-claim drift).@@ -44,10 +44,10 @@ def seeded_registry() -> CapabilityRegistry:HARD_NEGATIVE_UTTERANCES = [- "Schick eine Email an [email protected] mit dem Betreff Hallo",+ "Schick eine Email an [email protected] mit dem Betreff Hallo", # i18n-allow"Trag einen Termin morgen 10 Uhr ein", # i18n-allow- "Sende eine WhatsApp an Mama",- "Bestelle eine Pizza",+ "Sende eine WhatsApp an Mama", # i18n-allow+ "Bestelle eine Pizza", # i18n-allow"Poste auf X dass ich heute frei habe", # i18n-allow]@@ -151,7 +151,7 @@ def test_hard_positive_file_ops_resolves_to_openclaw(seeded_registry: CapabilityRegistry,) -> None:"""'Lies die Datei foo.txt' must resolve to the openclaw harness."""- cap = seeded_registry.resolve_intent("Lies die Datei foo.txt")+ cap = seeded_registry.resolve_intent("Lies die Datei foo.txt") # i18n-allowassert cap is not None, "Expected a capability match for file-read"assert "openclaw" in cap.id or "file" in cap.id or cap.source == "harness", (f"Expected a file-capable harness/tool, got {cap!r}"diff --git a/tests/integration/test_jarvis_agent_model_drift.py b/tests/integration/test_jarvis_agent_model_drift.pyindex 4403bb14c9..f50be41951 100644--- a/tests/integration/test_jarvis_agent_model_drift.py+++ b/tests/integration/test_jarvis_agent_model_drift.py@@ -146,7 +146,7 @@ def test_jarvis_toml_model_pins_match_soll() -> None: # i18n-allowassert not mismatches, ("jarvis.toml drifted from config-soll.json on worker/critic model ""pins — the live resolver reads jarvis.toml, so the soll-approved fix "- "never reached the running worker:\n" + "\n".join(mismatches)+ "never reached the running worker:\n" + "\n".join(mismatches) # i18n-allow)diff --git a/tests/missions/critic/test_reflections.py b/tests/missions/critic/test_reflections.pyindex c5c0c454ce..b525c24474 100644--- a/tests/missions/critic/test_reflections.py+++ b/tests/missions/critic/test_reflections.py@@ -129,7 +129,7 @@ def test_render_caps_to_n(tmp_path: Path) -> None:for i in range(5):mem.append(i, f"sum {i}", [])out = mem.render_for_worker_prompt(n=2)- # nur die letzten 2 (3 + 4)+ # only the last 2 (3 + 4)assert "[Iteration 3]" in outassert "[Iteration 4]" in outassert "[Iteration 0]" not in outdiff --git a/tests/missions/test_path_guard.py b/tests/missions/test_path_guard.pyindex 6e444a0fbd..63e2823297 100644--- a/tests/missions/test_path_guard.py+++ b/tests/missions/test_path_guard.py@@ -187,28 +187,28 @@ rename to new/.envdef test_prompt_with_explicit_ssh_path() -> None:- found = check_prompt_for_blocked_paths("Bitte zeig mir ~/.ssh/id_rsa an.")+ found = check_prompt_for_blocked_paths("Bitte zeig mir ~/.ssh/id_rsa an.") # i18n-allowassert any(".ssh" in p for p in found) or any("id_rsa" in p for p in found)def test_prompt_with_dotenv_path() -> None:- found = check_prompt_for_blocked_paths("Lies das .env file im /project/ Ordner")+ found = check_prompt_for_blocked_paths("Lies das .env file im /project/ Ordner") # i18n-allow# `.env` alone does NOT match (no slash/dot prefix as token start) —# we want to avoid false positives on phrases like "the env variable".# If someone explicitly writes "/project/.env", that should match.- found2 = check_prompt_for_blocked_paths("zeig /project/.env")+ found2 = check_prompt_for_blocked_paths("zeig /project/.env") # i18n-allowassert any(".env" in p for p in found2)def test_prompt_without_paths_no_match() -> None:"""A harmless prompt must produce NO matches."""- found = check_prompt_for_blocked_paths("Schreibe eine Funktion is_palindrome")+ found = check_prompt_for_blocked_paths("Schreibe eine Funktion is_palindrome") # i18n-allowassert found == []def test_prompt_mentioning_env_word_not_match() -> None:"""`die env Variable` must NOT match as a path — only real paths."""- found = check_prompt_for_blocked_paths("Setze die env Variable auf foo")+ found = check_prompt_for_blocked_paths("Setze die env Variable auf foo") # i18n-allowassert found == []diff --git a/tests/missions/test_voice_announcer.py b/tests/missions/test_voice_announcer.pyindex 4d7d06aca6..0f32b03234 100644--- a/tests/missions/test_voice_announcer.py+++ b/tests/missions/test_voice_announcer.py@@ -321,9 +321,9 @@ async def test_crash_recovery_is_not_announced(store_and_bus) -> None:``startup_recover`` marks each still-in-flight mission FAILED withreason ``crash_recovery`` and emits a MissionFailed. Those missionswere dispatched by voice in a PRIOR session, so ``is_voice`` is True and- the announcer would otherwise barge in with "Die Mission ist+ the announcer would otherwise barge in with "Die Mission ist # i18n-allow: quotes the actual German TTS readback phrasefehlgeschlagen." at interrupt priority — the user's "random Mission # i18n-allow: quotes the actual German TTS readback phrase- fehlgeschlagen, although I never started one" complaint (deep-dive+ fehlgeschlagen, although I never started one" complaint (deep-dive # i18n-allow: quotes the actual German TTS readback phrase2026-05-29). crash_recovery is not actionable to the user; suppress it."""store, bus = store_and_busdiff --git a/tests/unit/audio/test_resolve_output_wdmks.py b/tests/unit/audio/test_resolve_output_wdmks.pyindex 88bd4b0acb..27f942a1ea 100644--- a/tests/unit/audio/test_resolve_output_wdmks.py+++ b/tests/unit/audio/test_resolve_output_wdmks.py@@ -3,8 +3,8 @@2026-05-24 recurrence: the user heard nothing while the brain answered andTTS synthesized fine. The runtime log showed::- AudioPlayer nutzt Device: Speakers (Realtek HD Audio output) (idx=22)- ACK-Playback fehlgeschlagen: ... [PaErrorCode -9999]+ AudioPlayer using device: Speakers (Realtek HD Audio output) (idx=22)+ ACK playback failed: ... [PaErrorCode -9999]'Blocking API not supported yet' [Windows WDM-KS error -9999]Root cause: ``_resolve_output_device`` filtered a WDM-KS device only when thediff --git a/tests/unit/awareness/test_working_set.py b/tests/unit/awareness/test_working_set.pyindex 603265d898..81c895a577 100644--- a/tests/unit/awareness/test_working_set.py+++ b/tests/unit/awareness/test_working_set.py@@ -181,7 +181,7 @@ def test_observe_preserves_existing_episode_when_new_is_none() -> None:def test_observe_overwrites_episode_when_new_is_set() -> None:- """Wenn neuer Context eine neue Episode-ID setzt, ueberschreibt sie alte."""+ """When a new context sets a new episode ID, it overwrites the old one."""ws = WorkingSet()ws.observe(_ctx("a", episode_id=7))ws.observe(_ctx("a", episode_id=12))diff --git a/tests/unit/brain/test_contact_intent.py b/tests/unit/brain/test_contact_intent.pyindex af35c8bfc1..9878af82a7 100644--- a/tests/unit/brain/test_contact_intent.py+++ b/tests/unit/brain/test_contact_intent.py@@ -133,14 +133,14 @@ def test_resolve_save_mandate_routes_general_fact_to_wiki_ingest():def test_resolve_save_mandate_prefers_contact_when_both_match():# "merk dir … Nummer ist …" is BOTH a remember cue AND contact data — the# address-book path wins so the number lands where it belongs.- mandate = resolve_save_mandate("Merk dir, Christophs Nummer ist 0171 1234567.")+ mandate = resolve_save_mandate("Merk dir, Christophs Nummer ist 0171 1234567.") # i18n-allowassert mandate is not Noneassert mandate[0] == "contact-upsert"def test_resolve_save_mandate_none_on_plain_turn():- assert resolve_save_mandate("Was geht ab?") is None- assert resolve_save_mandate("Wie ist das Wetter?") is None+ assert resolve_save_mandate("Was geht ab?") is None # i18n-allow+ assert resolve_save_mandate("Wie ist das Wetter?") is None # i18n-allowdef test_wiki_ingest_directive_forces_the_real_tool():diff --git a/tests/unit/brain/test_output_filter.py b/tests/unit/brain/test_output_filter.pyindex 2d695cf1bf..f3d26c050a 100644--- a/tests/unit/brain/test_output_filter.py+++ b/tests/unit/brain/test_output_filter.py@@ -101,7 +101,7 @@ def test_tool_kw_pattern_does_not_break_harmless_python() -> None:def test_stacktrace_is_replaced_with_fallback_phrase() -> None:- """A stacktrace becomes the fallback phrase 'Es trat ein Fehler auf.' + fallback_used=True."""+ """A stacktrace becomes the fallback phrase 'Es trat ein Fehler auf.' + fallback_used=True.""" # i18n-allowtext = ("Hier der Fehler:\n" # i18n-allow'Traceback (most recent call last):\n'@@ -132,7 +132,7 @@ def test_markdown_is_stripped() -> None:def test_self_reference_is_removed() -> None:- """``Als KI`` / ``Ich bin nur ein Sprachmodell`` are scrubbed."""+ """``Als KI`` / ``Ich bin nur ein Sprachmodell`` are scrubbed.""" # i18n-allowtext = "Als KI kann ich das natuerlich pruefen. Halb drei." # i18n-allowresult = scrub_for_voice(text)low = result.cleaned.lower()@@ -196,17 +196,17 @@ def test_echo_paraphrase_in_opener_is_cut() -> None:text = "Du möchtest also wissen, wie spät es ist. Halb drei." # i18n-allowresult = scrub_for_voice(text)low = result.cleaned.lower()- assert "du möchtest also" not in low+ assert "du möchtest also" not in low # i18n-allowassert "halb drei" in lowassert "rephrased_echo" in result.actionsdef test_filler_opener_is_removed() -> None:- """``Großartige Frage`` / ``Tolle Frage`` as an opener is removed."""+ """``Großartige Frage`` / ``Tolle Frage`` as an opener is removed.""" # i18n-allowtext = "Großartige Frage! Es ist halb drei." # i18n-allowresult = scrub_for_voice(text)low = result.cleaned.lower()- assert "großartige frage" not in low+ assert "großartige frage" not in low # i18n-allowassert "grossartige frage" not in lowassert "halb drei" in lowassert "removed_filler_opener" in result.actions@@ -307,15 +307,15 @@ def test_echo_paraphrase_mid_sentence_is_kept() -> None:# Echo pattern in the middle (after >60 characters of clean text)text = ("Ich habe den Termin am Freitag im Kalender und einen Konflikt erkannt. " # i18n-allow- "Du möchtest also den Termin verschieben? Ja oder nein?"+ "Du möchtest also den Termin verschieben? Ja oder nein?" # i18n-allow)# Sanity check: the echo pattern sits after position 60- echo_pos = text.lower().find("du möchtest also")+ echo_pos = text.lower().find("du möchtest also") # i18n-allowassert echo_pos > 60, f"test-setup bug: echo pattern at position {echo_pos}"result = scrub_for_voice(text)# Mid-sentence echo is preserved- assert "möchtest also" in result.cleaned.lower()+ assert "möchtest also" in result.cleaned.lower() # i18n-allowassert "rephrased_echo" not in result.actions@@ -401,7 +401,7 @@ def test_empty_input_returns_empty() -> None:# ----------------------------------------------------------------------------def test_sir_anrede_is_removed() -> None:+def test_sir_anrede_is_removed() -> None: # i18n-allow"""A1: 'Sir' as a form of address is scrubbed — mandate A1 (Ruben instead of Sir)."""text = "Sir, ich starte die Analyse." # i18n-allowresult = scrub_for_voice(text)@@ -409,16 +409,16 @@ def test_sir_anrede_is_removed() -> None:assert "sir" not in low.split(",")[0].split() # not as a word in the openerassert "sir" not in lowassert "ich starte die analyse" in low # i18n-allow- assert "removed_anrede_drift" in result.actions+ assert "removed_anrede_drift" in result.actions # i18n-allow-def test_sir_anrede_mid_sentence_is_removed() -> None:+def test_sir_anrede_mid_sentence_is_removed() -> None: # i18n-allow"""A1: 'Sir' is also removed mid-sentence (after a comma)."""text = "Erledigt, Sir. Die Datei ist gespeichert." # i18n-allowresult = scrub_for_voice(text)assert "Sir" not in result.cleanedassert "Datei" in result.cleaned- assert "removed_anrede_drift" in result.actions+ assert "removed_anrede_drift" in result.actions # i18n-allowdef test_legitimate_sir_in_quote_is_kept() -> None:@@ -459,7 +459,7 @@ def test_tool_args_yaml_block_is_removed() -> None:The 2026-04-28 probe leaked the entire Sub-Jarvis tool-call body inscenario 03:- utterance: "Wie kann ich das beschleunigen?"+ utterance: "Wie kann ich das beschleunigen?" # i18n-allowcontext_hints:- Unklar ...- Benoetigt Kontext ...@@ -600,7 +600,7 @@ def test_short_clean_alphanumeric_is_kept() -> None:@pytest.mark.parametrize("opener,rest", [- ("Lass mich kurz", "schauen. Ja, gespeichert."),+ ("Lass mich kurz", "schauen. Ja, gespeichert."), # i18n-allow("Lass mich kurz", "checken. Halb drei."),("Let me think,", "the answer is 42."),("Let me think.", "It's halb drei."),@@ -635,7 +635,7 @@ def test_filler_selbstreferenz_mid_sentence_is_kept() -> None:# At least 61 characters before 'lass mich kurz' so failure-mode-6 applies.text = ("Ich gehe das systematisch durch, "- "und im naechsten Schritt soll ich lass mich kurz nachdenken, "+ "und im naechsten Schritt soll ich lass mich kurz nachdenken, " # i18n-allow"und dann antworte ich.")pos = text.lower().find("lass mich kurz")@@ -692,8 +692,8 @@ def test_tool_args_prose_without_tool_name_is_removed() -> None:def test_legitimate_is_sentence_is_kept() -> None:"""Defense against a false positive: legitimate 'X is Y' sentences remain.- If the user says 'Die Hauptstadt ist Paris', or the brain answers- 'Es ist halb drei' — NO match on TOOL_ARGS_PROSE_RE, because 'Die+ If the user says 'Die Hauptstadt ist Paris', or the brain answers # i18n-allow+ 'Es ist halb drei' — NO match on TOOL_ARGS_PROSE_RE, because 'Die # i18n-allowHauptstadt' and 'Es' are not tool-arg keys."""text = "Es ist halb drei. Die Datei ist gespeichert." # i18n-allowdiff --git a/tests/unit/brain/test_reply_language.py b/tests/unit/brain/test_reply_language.pyindex ad9ef0b72a..a8f51f106a 100644--- a/tests/unit/brain/test_reply_language.py+++ b/tests/unit/brain/test_reply_language.py@@ -2,8 +2,8 @@Root cause this guards against (2026-05-25): the desktop "Languages" view letthe user pick a Reply Language (DE/EN/ES), but the value died in localStorage —-``_build_system_prompt`` hardcoded ``"Nutzer-Sprache: DE oder EN — antworte in-derselben."`` so Jarvis ignored the choice entirely (no Spanish, no hard pin).+``_build_system_prompt`` hardcoded ``"Nutzer-Sprache: DE oder EN — antworte in # i18n-allow+derselben."`` so Jarvis ignored the choice entirely (no Spanish, no hard pin). # i18n-allowThese tests lock in that:* a pinned language emits a strong, language-named directive,diff --git a/tests/unit/brain/test_router_vision.py b/tests/unit/brain/test_router_vision.pyindex c7c2059f35..7e0e740582 100644--- a/tests/unit/brain/test_router_vision.py+++ b/tests/unit/brain/test_router_vision.py@@ -450,7 +450,7 @@ async def test_router_injects_jpeg_with_matching_mime() -> None:provider = _FakeVisionProvider(obs=obs)router, recorder = _build_router(vision_provider=provider)- [d async for d in router.handle("was ist das hier")]+ [d async for d in router.handle("was ist das hier")] # i18n-allowimg = recorder.calls[0]["images"][0]assert img.mime == "image/jpeg"diff --git a/tests/unit/brain/test_search_web_freshness_doctrine.py b/tests/unit/brain/test_search_web_freshness_doctrine.pyindex bc522a7306..ec91ced882 100644--- a/tests/unit/brain/test_search_web_freshness_doctrine.py+++ b/tests/unit/brain/test_search_web_freshness_doctrine.py@@ -3,8 +3,8 @@request) — the "Frische-Grenze" mandate.Live forensic 2026-06-20 (voice session e0898d6e, 16:12): a plain knowledge-question — "Kannst du mir sagen, was ich alles beachten muss, wenn ich nach-Melbourne auswandern moechte?" — made the router LLM fire ``search_web`` THREE+question — "Kannst du mir sagen, was ich alles beachten muss, wenn ich nach # i18n-allow+Melbourne auswandern moechte?" — made the router LLM fire ``search_web`` THREE # i18n-allowtimes (proven from sessions.db voice_events: 3x ``ActionProposed search_web``,``jarvis_text`` empty) instead of just answering. The Run-Inspector labels a``search_web`` call "Recherche"; the user read that as an unwanteddiff --git a/tests/unit/plugins/tool/test_gmail_rest.py b/tests/unit/plugins/tool/test_gmail_rest.pyindex a1eaf6cd4d..81baf47bf5 100644--- a/tests/unit/plugins/tool/test_gmail_rest.py+++ b/tests/unit/plugins/tool/test_gmail_rest.py@@ -157,7 +157,7 @@ def test_tool_contract_shape():# ----------------------------------------------------------------------# Per-action risk (forensic 2026-06-19, session dc533e39): "Was habe ich# heute auf dem Plan?" → morning-routine → gmail action=list_messages # i18n-allow: simulated German user utterance, forensic quote-# (read) was forced through the ask-tier confirm and Jarvis spoke "Soll+# (read) was forced through the ask-tier confirm and Jarvis spoke "Soll # i18n-allow: verbatim quote of real German runtime voice output# ich die E-Mail wirklich senden?". Only send_message is consequential; # i18n-allow: verbatim quote of real German runtime voice output# reads must stay safe so the morning briefing can check unread mail# without a spurious send confirmation.diff --git a/tests/unit/plugins/tool/test_profile_update.py b/tests/unit/plugins/tool/test_profile_update.pyindex 7ba7f50c0d..ab12c30aaa 100644--- a/tests/unit/plugins/tool/test_profile_update.py+++ b/tests/unit/plugins/tool/test_profile_update.py@@ -82,11 +82,9 @@ values:- Pizza----# Ueber den User-<!-- i18n-allow: matches the real (currently German) header rendered by UserProfile -->+# About the User-## Observations ueber Zeit-<!-- i18n-allow: matches the real (currently German) header rendered by UserProfile -->+## Observations over time<!-- curator:observations:start --><!-- curator:observations:end -->diff --git a/tests/unit/safety/test_tool_executor_voice_confirm.py b/tests/unit/safety/test_tool_executor_voice_confirm.pyindex 467cbc39f8..f6ac0e81a9 100644--- a/tests/unit/safety/test_tool_executor_voice_confirm.py+++ b/tests/unit/safety/test_tool_executor_voice_confirm.py@@ -173,7 +173,7 @@ async def test_gmail_read_is_not_deferred_for_voice_confirm() -> None:morning-routine "check unread mail" step) must NOT trigger the sendconfirmation on a voice turn. Before the per-action risk fix the wholegmail tool was ask-tier, so "Was habe ich heute auf dem Plan?" produced # i18n-allow: quotes the actual German voice utterance/output forensic bug content- "Soll ich die E-Mail wirklich senden?"."""+ "Soll ich die E-Mail wirklich senden?".""" # i18n-allow: quotes the actual German voice utterance/output forensic bug contentimport httpxfrom jarvis.plugins.tool.gmail_rest import GmailRestTooldiff --git a/tests/unit/scripts/test_drift_guard_brain_primary_contract.py b/tests/unit/scripts/test_drift_guard_brain_primary_contract.pyindex 48583d65d6..1552e78e9a 100644--- a/tests/unit/scripts/test_drift_guard_brain_primary_contract.py+++ b/tests/unit/scripts/test_drift_guard_brain_primary_contract.py@@ -1,10 +1,10 @@-"""Contract test: ``scripts/config-soll.json`` ``brain.primary`` <-> ENV mapping.+"""Contract test: ``scripts/config-soll.json`` ``brain.primary`` <-> ENV mapping. # i18n-allow: filename/jargon identifier, not translatable proseThe Brain-provider switch in the desktop app's API/Settings section persistsacross all three drift-defence layers (BUG-010):* ``jarvis.toml`` -> ``[brain].primary``-* ``scripts/config-soll.json`` -> ``brain.primary`` (the drift-guard's soll)+* ``scripts/config-soll.json`` -> ``brain.primary`` (the drift-guard's soll) # i18n-allow: filename/jargon identifier, not translatable prose* User-scope ENV override -> ``JARVIS__BRAIN__PRIMARY``For the UI switch to make the drift-guard a no-op (instead of reverting the@@ -32,10 +32,10 @@ from pathlib import Pathimport pytest-# scripts/config-soll.json lives at <repo>/scripts/config-soll.json.+# scripts/config-soll.json lives at <repo>/scripts/config-soll.json. # i18n-allow: filename identifier, not translatable prose# This test file is at <repo>/tests/unit/scripts/, so parents[3] is the repo root.-CONFIG_SOLL_PATH = (- Path(__file__).resolve().parents[3] / "scripts" / "config-soll.json"+CONFIG_SOLL_PATH = ( # i18n-allow: filename/jargon identifier, not translatable prose+ Path(__file__).resolve().parents[3] / "scripts" / "config-soll.json" # i18n-allow: filename identifier, not translatable prose)@@ -49,11 +49,11 @@ def _derive_env_name(section: str, key: str) -> str:@pytest.fixture(scope="module")-def soll() -> dict:- assert CONFIG_SOLL_PATH.is_file(), (- f"expected the drift-guard soll file at {CONFIG_SOLL_PATH}"+def soll() -> dict: # i18n-allow: fixture name mirrors the config-soll.json jargon term, not translatable prose+ assert CONFIG_SOLL_PATH.is_file(), ( # i18n-allow: filename/jargon identifier, not translatable prose+ f"expected the drift-guard soll file at {CONFIG_SOLL_PATH}" # i18n-allow: filename/jargon identifier, not translatable prose)- return json.loads(CONFIG_SOLL_PATH.read_text(encoding="utf-8"))+ return json.loads(CONFIG_SOLL_PATH.read_text(encoding="utf-8")) # i18n-allow: filename/jargon identifier, not translatable prose# ---------------------------------------------------------------------------@@ -61,25 +61,25 @@ def soll() -> dict:# ----------------------------------------------------------------------------def test_config_soll_is_valid_json(soll: dict) -> None:+def test_config_soll_is_valid_json(soll: dict) -> None: # i18n-allow: identifier name mirrors the config-soll.json jargon term, not translatable prose"""If the JSON is malformed the whole drift-guard fails to parse (exit 4)."""- assert isinstance(soll, dict)+ assert isinstance(soll, dict) # i18n-allow: identifier name mirrors the config-soll.json jargon term, not translatable prose-def test_brain_section_exists(soll: dict) -> None:- assert "brain" in soll, "config-soll.json must keep a top-level 'brain' section"- assert isinstance(soll["brain"], dict)+def test_brain_section_exists(soll: dict) -> None: # i18n-allow: identifier name mirrors the config-soll.json jargon term, not translatable prose+ assert "brain" in soll, "config-soll.json must keep a top-level 'brain' section" # i18n-allow: filename/jargon identifier, not translatable prose+ assert isinstance(soll["brain"], dict) # i18n-allow: identifier name mirrors the config-soll.json jargon term, not translatable prose-def test_brain_primary_is_non_empty_string(soll: dict) -> None:+def test_brain_primary_is_non_empty_string(soll: dict) -> None: # i18n-allow: identifier name mirrors the config-soll.json jargon term, not translatable prose"""brain.primary must exist and be a non-empty string.The drift-guard pins this value and the UI provider switch overwrites it.A missing/empty value would make the guard skip the key (WARN) and the UI- switch would have no soll to keep in sync -> silent revert risk.+ switch would have no soll to keep in sync -> silent revert risk. # i18n-allow: filename/jargon identifier, not translatable prose"""- primary = soll["brain"].get("primary")- assert primary is not None, "brain.primary must be present in config-soll.json"+ primary = soll["brain"].get("primary") # i18n-allow: identifier name mirrors the config-soll.json jargon term, not translatable prose+ assert primary is not None, "brain.primary must be present in config-soll.json" # i18n-allow: filename/jargon identifier, not translatable proseassert isinstance(primary, str), "brain.primary must be a string"assert primary.strip() != "", "brain.primary must not be empty/whitespace"@@ -89,27 +89,27 @@ def test_brain_primary_is_non_empty_string(soll: dict) -> None:# ----------------------------------------------------------------------------def test_brain_primary_env_name_is_canonical(soll: dict) -> None:+def test_brain_primary_env_name_is_canonical(soll: dict) -> None: # i18n-allow: identifier name mirrors the config-soll.json jargon term, not translatable prose"""The guard-derived ENV name for brain.primary is JARVIS__BRAIN__PRIMARY.This is the exact variable the desktop app's provider switch sets and the- maintainer sets by hand. If the section/key in config-soll.json is ever+ maintainer sets by hand. If the section/key in config-soll.json is ever # i18n-allow: filename identifier, not translatable proserenamed, the derived name diverges from what the UI writes and the guardwould re-add a 'missing' ENV var every run -> the whole fix breaks."""- assert "primary" in soll["brain"]+ assert "primary" in soll["brain"] # i18n-allow: identifier name mirrors the config-soll.json jargon term, not translatable proseenv_name = _derive_env_name("brain", "primary")assert env_name == "JARVIS__BRAIN__PRIMARY"-def test_env_derivation_rule_matches_guard_for_all_keys(soll: dict) -> None:- """Every (section, key) in the soll maps to a JARVIS__-prefixed ENV name.+def test_env_derivation_rule_matches_guard_for_all_keys(soll: dict) -> None: # i18n-allow: identifier name mirrors the config-soll.json jargon term, not translatable prose+ """Every (section, key) in the soll maps to a JARVIS__-prefixed ENV name. # i18n-allow: filename/jargon identifier, not translatable prosePins the general derivation rule (double-underscore separator, upper-case,JARVIS__ prefix) the guard relies on -- not just brain.primary -- so anyfuture key inherits the same contract."""- for section, payload in soll.items():+ for section, payload in soll.items(): # i18n-allow: identifier name mirrors the config-soll.json jargon term, not translatable proseif section.startswith("_") or not isinstance(payload, dict):continuefor key in payload:diff --git a/tests/unit/scripts/test_wiki_migrate.py b/tests/unit/scripts/test_wiki_migrate.pyindex d9a0f4cda2..8a865534de 100644--- a/tests/unit/scripts/test_wiki_migrate.py+++ b/tests/unit/scripts/test_wiki_migrate.py@@ -68,7 +68,7 @@ def _make_legacy(source: Path) -> None:# ---------------------------------------------------------------------------def test_slugify_lowercases_and_replaces_separators(migrate_module) -> None:- assert migrate_module.slugify("Ruben Lütke") == "ruben-luetke"+ assert migrate_module.slugify("Jürgen Müller") == "juergen-mueller" # i18n-allow: umlaut-transliteration test fixture, not translatable prosedef test_slugify_strips_punctuation(migrate_module) -> None:diff --git a/tests/unit/setup/test_obsidian_register.py b/tests/unit/setup/test_obsidian_register.pyindex dda6f559b7..c07639391a 100644--- a/tests/unit/setup/test_obsidian_register.py+++ b/tests/unit/setup/test_obsidian_register.py@@ -235,7 +235,7 @@ def test_register_vault_unicode_path_preserved(tmp_path: Path) -> None:assert result.status == "added"raw_text = cfg.read_text(encoding="utf-8")- # Verbatim umlaut byte sequence in the file (not ü escape).+ # Verbatim umlaut byte sequence in the file (not ü escape). # i18n-allow: references the literal umlaut character under testassert "Müller" in raw_text # i18n-allow: matches the umlaut test data abovediff --git a/tests/unit/skills/test_finder.py b/tests/unit/skills/test_finder.pyindex 5f9a7ad1e1..13bb4930f5 100644--- a/tests/unit/skills/test_finder.py+++ b/tests/unit/skills/test_finder.py@@ -174,7 +174,7 @@ def test_score_heuristic_null_query_null_score(sample_entries):assert _score_heuristic(set(), entry) == 0.0-def test_score_heuristic_keine_treffer(sample_entries):+def test_score_heuristic_keine_treffer(sample_entries): # i18n-allow: identifier name, not translatable proseentry = sample_entries[0] # email-triagescore = _score_heuristic(_tokenize("quantencomputer"), entry)assert score == 0.0@@ -250,7 +250,7 @@ async def test_search_nutzt_brain_ranking(monkeypatch, sample_entries):@pytest.mark.asyncio-async def test_search_faellt_auf_heuristik_bei_brain_fehler(+async def test_search_faellt_auf_heuristik_bei_brain_fehler( # i18n-allow: identifier name, not translatable prosemonkeypatch, sample_entries):"""If the brain returns invalid JSON, the finder must still returndiff --git a/tests/unit/speech/test_announcement_bridge.py b/tests/unit/speech/test_announcement_bridge.pyindex 729960372b..cc28a8945c 100644--- a/tests/unit/speech/test_announcement_bridge.py+++ b/tests/unit/speech/test_announcement_bridge.py@@ -155,8 +155,8 @@ async def test_announcement_bypass_skips_brain() -> None:@pytest.mark.asyncioasync def test_announcement_interrupt_calls_player_stop_before_play() -> None:- """Bei ``priority="interrupt"`` wird erst ``player.stop()`` gerufen,- dann ``synthesize()`` + ``play_chunks()`` — in dieser Reihenfolge."""+ """With ``priority="interrupt"``, ``player.stop()`` is called first,+ then ``synthesize()`` + ``play_chunks()`` — in that order."""bus = EventBus()tts = FakeTTS()player = FakePlayer()@@ -260,8 +260,8 @@ async def test_openclaw_background_success_with_summary_speaks() -> None:@pytest.mark.asyncio-async def test_openclaw_background_success_no_summary_speaks_fertig() -> None:- """Success with no summary → ``"Fertig."`` (output-filter-safe)."""+async def test_openclaw_background_success_no_summary_speaks_fertig() -> None: # i18n-allow: identifier name, not translatable prose+ """Success with no summary → ``"Fertig."`` (output-filter-safe).""" # i18n-allow: quotes the actual German TTS output under testbus = EventBus()tts = FakeTTS()player = FakePlayer()@@ -279,7 +279,7 @@ async def test_openclaw_background_success_no_summary_speaks_fertig() -> None:@pytest.mark.asyncioasync def test_openclaw_background_failure_speaks_error() -> None:- """``success=False`` → error announcement ``"Das hat nicht geklappt. ..."``."""+ """``success=False`` → error announcement ``"Das hat nicht geklappt. ..."``.""" # i18n-allow: quotes the actual German TTS output under testbus = EventBus()tts = FakeTTS()player = FakePlayer()diff --git a/tests/unit/speech/test_background_readback_language.py b/tests/unit/speech/test_background_readback_language.pyindex f2dc918681..6f034d17a1 100644--- a/tests/unit/speech/test_background_readback_language.py+++ b/tests/unit/speech/test_background_readback_language.py@@ -3,7 +3,7 @@ must follow the resolved conversation language, not a hardcoded German literal.Forensic 2026-06-23 family: announcement emitters bypassed the resolver. Thisone hardcoded German text + ``language="de"`` + ``language_code="de-DE"``, so an-English- or Spanish-speaking user heard "Fertig." in German. The readback now+English- or Spanish-speaking user heard "Fertig." in German. The readback now # i18n-allow: quotes the actual German TTS output under testresolves the language through ``_conversation_language_for_announcement`` andpicks a de/en/es phrase, with the matching BCP-47 voice pin."""diff --git a/tests/unit/speech/test_post_interrupt_quiet_window.py b/tests/unit/speech/test_post_interrupt_quiet_window.pyindex 4fbcf8bcca..668bbd1c4e 100644--- a/tests/unit/speech/test_post_interrupt_quiet_window.py+++ b/tests/unit/speech/test_post_interrupt_quiet_window.py@@ -5,7 +5,7 @@ Diagnosis source: ``docs/plans/voice-phrase-mismatch-2026-05-26/README.md``.The user heard a coherent-looking but semantically-incoherent voice blockon 2026-05-26:- "Die Mission ist fehlgeschlagen, drei Versuche haben nicht gereicht.+ "Die Mission ist fehlgeschlagen, drei Versuche haben nicht gereicht. # i18n-allow: quotes the actual German TTS output under testDann schauen wir einfach mal in die letzte Transkription, was ichgesagt habe." # i18n-allowdiff --git a/tests/unit/vision/test_pruning.py b/tests/unit/vision/test_pruning.pyindex af9a6040e3..3a19da5078 100644--- a/tests/unit/vision/test_pruning.py+++ b/tests/unit/vision/test_pruning.py@@ -170,7 +170,7 @@ def test_prune_tree_empty_input():# ----------------------------------------------------------------------------# Performance budget for a 5000-node tree (mandate §Pattern-Warnung)+# Performance budget for a 5000-node tree (mandate §pattern-warning)# ---------------------------------------------------------------------------def test_prune_tree_budget_under_300ms_for_5000_nodes():diff --git a/ui/orb/bus_bridge.py b/ui/orb/bus_bridge.pyindex fdd1bb79e2..5a69eedb32 100644--- a/ui/orb/bus_bridge.py+++ b/ui/orb/bus_bridge.py@@ -120,7 +120,7 @@ _ACTIVE_VOICE_STATES = frozenset({"LISTENING", "THINKING", "SPEAKING"})# German public-broadcaster subtitle-credit boilerplate that German-language# STT sometimes hallucinates onto silence/noise (e.g. "Untertitelung des ZDF-# fuer funk, 2020" / "Vielen Dank"). Must stay the literal German tokens the+# fuer funk, 2020" / "Vielen Dank"). Must stay the literal German tokens the # i18n-allow# STT engine actually emits — this is speech-recognition input vocabulary,# not translatable prose._TRANSCRIPT_BOILERPLATE_RE = re.compile(@@ -304,7 +304,7 @@ class OrbBusBridge:self._bus.subscribe(VoiceMuteChanged, self._on_voice_mute_changed)# ADR-0016 L2 — voice-driven recovery from "orb lost on screen".# The local_action_gate publishes OrbResetRequested when the- # user says "Orb zurück" / "wo bist du" / "reset orb".+ # user says "Orb zurück" / "wo bist du" / "reset orb". # i18n-allowself._bus.subscribe(OrbResetRequested, self._on_reset_requested)# Wire the orb's double-double-click gesture to a bus publish.# The orb requires two ``<Double-Button-1>`` events inside