Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

chore: auto-save WIP via Claude stop-hook safety net (2026-07-01 13:21)

Ruben Lütkef46ed8fd21dc
diff --git a/.claude/skills/openclaw-doc-update/SKILL.md b/.claude/skills/openclaw-doc-update/SKILL.md
index c85e7a6ef4..8518a6c81c 100644
--- a/.claude/skills/openclaw-doc-update/SKILL.md
+++ b/.claude/skills/openclaw-doc-update/SKILL.md
@@ -43,7 +43,7 @@ This skill updates `docs/openclaw-bridge.md` when the spike falsifies assumption
- **ADR-0013 OpenClaw-Bridge: User surface** — formalizes AD-10 through AD-21.
- Style reference from `docs/adr/0009-self-healing-worker-critic.md`.
-7. **Audit entry:** at the end of `docs/openclaw-bridge.md`, a `## Änderungs-Historie` block (create it if it does not exist) with the line `<Datum> — <Kürzel> — <Was geändert>`.
+7. **Audit entry:** at the end of `docs/openclaw-bridge.md`, a `## Change History` block (create it if it does not exist) with the line `<Date> — <Initials> — <What changed>`. # i18n-allow
## Strictly forbidden
diff --git a/.claude/skills/publish-new-version/SKILL.md b/.claude/skills/publish-new-version/SKILL.md
index c0326b2eab..0d793ec957 100644
--- a/.claude/skills/publish-new-version/SKILL.md
+++ b/.claude/skills/publish-new-version/SKILL.md
@@ -3,8 +3,9 @@ name: publish-new-version
description: >-
Use when the maintainer wants to publish / ship a new PUBLIC version of
Personal Jarvis to GitHub — the periodic (~biweekly) release of the current
- folder state to the one public repo. Triggers: "publish a new version", "new Jarvis version out", "make a release", "push to GitHub",
- "publish the new version", "cut a release", "new public version". NOT for # i18n-allow
+ folder state to the one public repo. Triggers: "veröffentliche eine neue # i18n-allow
+ Version", "neue Jarvis-Version raus", "mach ein Release", "push nach GitHub", # i18n-allow
+ "publish the new version", "cut a release", "neue Public-Version". NOT for # i18n-allow
untangling git chaos (use git-rescue) and NOT a quick local-only commit.
---
diff --git a/boot-progress.md b/boot-progress.md
index e739979935..55575a9e61 100644
--- a/boot-progress.md
+++ b/boot-progress.md
@@ -539,9 +539,9 @@ gain over the verified in-`_run_backend` change.
## Why Parts 1–4 did not fix the complaint
Every prior pass optimized **"the window appears"** (`/api/health` 200 / `GET /`
-returns HTML). The user's words this loop are explicit: *"Die Desktop-App fährt
-schnell hoch. Was war eigentlich mit Wake-Up-Word? Wenn man Wake-Up-Word sagt
-und mit dir spricht, dauert das Hochfahren extrem lang."* i.e. the **window is
+returns HTML). The user's words this loop are explicit: *"The desktop app boots
+fast. What was actually going on with the wake word? When you say the wake word
+and talk to me, the boot takes forever."* i.e. the **window is
already fast** (Parts 2–4 worked) — what is slow is **wake/voice becoming ready**
(being able to say the wake word and talk). That path was **never** optimized.
@@ -669,10 +669,10 @@ because the real baseline (server.start + full data + voice) is much heavier.
Wake words stay **custom** — every user picks their own at onboarding, no
standard default, permanent until changed. Do NOT switch to "Hey Jarvis"/
openWakeWord. Make the custom (stt_match / rolling-whisper) path itself fast.
-"Nicht faul — erst fertig wenn es klappt."
+"Not lazy — only done when it works."
### The measurement that re-frames everything
-"Wake-Loop gestartet" (the 9.285 s number from Pass 5.1) is NOT when Jarvis can
+"Wake-Loop started" (the 9.285 s number from Pass 5.1) is NOT when Jarvis can
hear. For a custom phrase the wake loop transcribes with the wake Whisper model
(`self._stt` = large-v3-turbo/cuda via build_wake_whisper), which loads LAZILY.
Real log (18:31 boot): `Warm-up deferred loaders (ms): stt-load=11828,
@@ -850,7 +850,7 @@ behind the wake gate. Wake-model load 82 s cold / 8-11 s warm → **3.4 s** (at
the ~3.2 s isolated floor). Custom wake phrase preserved, accuracy preserved via
background turbo hot-swap, no extended features changed. Remaining warm-restart
time is the import floor (~6-9 s) the user already accepted for the window.
-NEXT after recovery: confirm the clean boot (Wake-Loop gestartet + base ~3.4 s +
+NEXT after recovery: confirm the clean boot (Wake-Loop started + base ~3.4 s +
/api/missions real), optionally re-measure warm restart→wake with the shutdown
fix; do NOT retry step 6 (marginal + caused this incident).
diff --git a/docs/BUGS.md b/docs/BUGS.md
index 6a6952c715..37356c588a 100644
--- a/docs/BUGS.md
+++ b/docs/BUGS.md
@@ -24,7 +24,7 @@ The voice command "Spawn sub-agents." (or variations) led to a cascade:
in the JARVIS_DEPTH recursion guard ("recursion denied").
4. The last provider attempts `multi_spawn` → 3 parallel harness dispatches
all crash in <10ms because of a shared-state race.
-5. User hears "Die parallele Ausführung der Sub-Agenten ist fehlgeschlagen." (The parallel execution of the sub-agents has failed.)
+5. User hears "Die parallele Ausführung der Sub-Agenten ist fehlgeschlagen." (The parallel execution of the sub-agents has failed.) # i18n-allow
Token cost per failed spawn: ~40k tokens × 4 providers ≈ $0.13.
@@ -34,7 +34,7 @@ Token cost per failed spawn: ~40k tokens × 4 providers ≈ $0.13.
- **File**: `jarvis/core/config.py:156-168` (BrainRoutingConfig.spawn_verbs)
- **Symptom**: User says "Spawn sub-agents.", Router-Brain responds
- "Hallo Alex, was kann ich für dich tun?" ("Hello Alex, what can I do for you?") — no action.
+ "Hallo Alex, was kann ich für dich tun?" ("Hello Alex, what can I do for you?") — no action. # i18n-allow
- **Root cause**: The `_should_force_sub_jarvis` heuristic matches against the
`spawn_verbs` list (DE+EN). The list contained `umsetz`, `bau`, `oeffne`,
`deploy`, `read`, `write`, `build`, `open`, `install` — but not
@@ -57,7 +57,7 @@ Token cost per failed spawn: ~40k tokens × 4 providers ≈ $0.13.
- **File**: `jarvis/harness/base.py::SubprocessHarness` (old version)
- **Symptom**: `multi_spawn(harness="openclaw", prompts=[3])` returns
- `success=False, duration_ms=5, error="ein oder mehr Sections mit non-zero exit"` (one or more sections with non-zero exit). Production logs show 3× HarnessDispatched, NO
+ `success=False, duration_ms=5, error="one or more sections with non-zero exit"`. Production logs show 3× HarnessDispatched, NO
HarnessProgress, NO HarnessCompleted.
- **Root cause**: `HarnessManager.get(name)` cached ONE
`OpenClawHarness` instance. `SubprocessHarness.invoke()` wrote
@@ -174,7 +174,7 @@ Token cost per failed spawn: ~40k tokens × 4 providers ≈ $0.13.
- **File**: none specific — `jarvis/plugins/tool/type_text.py` or similar
- **Symptom**: `type_text` returns with
- `error="pyautogui nicht verfuegbar: No module named 'pyautogui'. Native Windows-Eingabe fehlgeschlagen: [WinError 0] Falscher Parameter."` (pyautogui not available: No module named 'pyautogui'. Native Windows input failed: [WinError 0] Incorrect parameter.)
+ `error="pyautogui not available: No module named 'pyautogui'. Native Windows input failed: [WinError 0] Incorrect parameter."`
- **Root cause**: `pyautogui` is an optional dependency, not installed,
and the native Win32 fallback has a separate bug.
- **Fix**: `pip install pyautogui` or add it to `requirements.txt`.
@@ -205,7 +205,7 @@ Token cost per failed spawn: ~40k tokens × 4 providers ≈ $0.13.
random content such as: "I'd recommend saving the current version to GitHub
first, Alex."
- **Repro from production log** (`data/jarvis_desktop.log`, 2026-04-29):
- 1. Wake is correctly detected: `WAKE erkannt ueber whisper:Hey JARVIS` (WAKE detected via whisper:Hey JARVIS).
+ 1. Wake is correctly detected: `WAKE detected via whisper:Hey JARVIS`.
2. User says "Auflegen"; but the final STT text becomes:
`transcript final: text="Let's get up." language=de confidence=0.625`.
3. `Let's get up.` does not match the old hangup regex.
@@ -327,10 +327,10 @@ In the backend log (04-29 17:31, 19:47), three cascading defects
at the same time:
```
-Brain claude-api(claude-haiku-4-5-20251001) fehlgeschlagen: 400
+Brain claude-api(claude-haiku-4-5-20251001) failed: 400
'Your credit balance is too low to access the Anthropic API. Please
go to Plans & Billing.'
-Brain grok(grok-4.1-fast) fehlgeschlagen: 404
+Brain grok(grok-4.1-fast) failed: 404
'The model grok-4.1-fast does not exist or your team does not have
access to it.'
Brain gemini(gemini-3-flash) fehlgeschlagen: 11 validation errors for
@@ -401,7 +401,7 @@ provider-chain failure with no actionable user message**.
the network instead of topping up credit.
- **Fix** (`manager.py:1620-1672`):
1. New list bucket `account_blocked` analogous to `missing_keys`.
- 2. User-actionable message: "Account-Problem bei {providers}: Credit aufladen, Plan upgraden oder Modell-Tier freischalten. Bei Anthropic: console.anthropic.com/settings/billing. Bei xAI: console.x.ai/team/billing." (Account problem with {providers}: Top up credit, upgrade plan or unlock model tier. For Anthropic: console.anthropic.com/settings/billing. For xAI: console.x.ai/team/billing.)
+ 2. User-actionable message: "Account problem with {providers}: top up credit, upgrade plan, or unlock model tier. For Anthropic: console.anthropic.com/settings/billing. For xAI: console.x.ai/team/billing." # i18n-allow
- **Test**: `tests/unit/test_api_key_error_handling.py::TestChainErrorFormat`
---
@@ -451,11 +451,11 @@ $ python scripts/smoke_brain_e2e.py
fallback chain (fast): claude-api → claude-api → gemini → grok
--- Step 3: Live-Brain-Call ---
- Frage: 'Antworte mit genau einem Wort: ja oder nein.'
- Response: 'Ja.'
+ Question: 'Answer with exactly one word: yes or no.'
+ Response: 'Yes.'
--- Step 4: Verdict ---
- [OK] Brain-Call lieferte echte Response
+ [OK] Brain-Call delivered real response
```
**What now happens** when the user has no valid keys:
@@ -483,7 +483,7 @@ The sidebar entry **Transkription** is visible and gets marked active,
but the **chat** view appears in the main area:
- Header: `Chat`
-- Empty state: `Bereit fuer Befehle`
+- Empty state: `Ready for commands` # i18n-allow
- ChatInput at the bottom of the window
The actual transcription view (`SessionsView`) already exists and
@@ -750,8 +750,8 @@ Expected: speech unit suite green; a normal response ends with
## BUG-007: Tasks view permanently on HTTP 503 (Phase-5 wiring missing)
- **Date:** 2026-05-02 · **Scope:** Phase-5 task-queue integration in DesktopApp
-- **Symptom**: User clicks "Aufgaben" (Tasks) in the sidebar. The page shows a
- red banner: *"Konnte Aufgaben nicht laden: HTTP 503"* (Could not load tasks: HTTP 503). Regardless of the
+- **Symptom**: User clicks "Tasks" in the sidebar. The page shows a
+ red banner: *"Could not load tasks: HTTP 503"*. Regardless of the # i18n-allow
state filter (All/Active/Done/Problems), regardless of refresh — it stays 503,
because the polling gets the same answer every 3s. The UI is otherwise
functional (chats, skills, missions, etc. work normally).
@@ -760,7 +760,7 @@ Expected: speech unit suite green; a normal response ends with
runner}.py` + 25 unit tests green, ADR-0003/0005 documented.
2. **REST layer correct**: `jarvis/ui/web/tasks_routes.py:28` expects
`app.state.task_store`/`app.state.task_scheduler`. When not set,
- `_require_store` deliberately throws HTTP 503 (`detail="TaskStore nicht verfuegbar"` — TaskStore not available) — defensive, this is not a crash.
+ `_require_store` deliberately throws HTTP 503 (`detail="TaskStore not available"`) — defensive, this is not a crash.
3. **DesktopApp boot never sets it**: `WebServer.start()` called
`_init_mission_stack()`, `_init_session_stack()`, `_init_channel_stack()`
— but **no** `_init_task_stack()`. → `app.state.task_store` stayed
@@ -787,9 +787,9 @@ Expected: speech unit suite green; a normal response ends with
`STATUS=200 BODY={tasks:[],total:0}`.
- Demo task via `POST /api/tasks {trigger:after_delay 30s, action:tool_call
noop}` → appears immediately in the UI with the correct trigger icon (clock),
- "Verzögerung" (Delay) label, ID short form, and live countdown.
+ "Delay" label, ID short form, and live countdown. # i18n-allow
- After 30s: the card switches to state `failed` with the expected step
- *"RuntimeError: ToolExecutor oder Tool-Registry nicht konfiguriert"* (ToolExecutor or Tool-Registry not configured) —
+ *"RuntimeError: ToolExecutor or Tool-Registry not configured"* — # i18n-allow
confirms that the runner logs cleanly through the failure path (no
crash, no stuck state).
- **Regression guard**:
@@ -1390,7 +1390,7 @@ See also: `docs/anti-drift-three-layer.md` for the general pattern.
- `grep "Supervisor: spawned" data/jarvis_desktop.log` after the
fix-time cutoff → 0 lines. Pre-fix every cold start logged 6
spawns followed by a cap-fire.
- - User confirmation: "Läuft sauber, UI sichtbar." (Runs cleanly, UI visible.)
+ - User confirmation: "Runs cleanly, UI visible."
- **Regression guards / process for next time**:
1. **One helper, one rule.** Any new `subprocess.run`,
`subprocess.Popen`, or `asyncio.create_subprocess_exec` in this
@@ -1493,7 +1493,7 @@ See also: `docs/anti-drift-three-layer.md` for the general pattern.
## BUG-008 Episode 3: Transcription view empty due to `Literal` drift (HIGH, 2026-05-10)
- **Date:** 2026-05-10 · **Scope:** voice-session models / sessions API
-- **Symptom:** The sidebar tab "Transkription" (Transcription) shows **"Noch keine Voice-Sessions"** (No voice sessions yet),
+- **Symptom:** The sidebar tab "Transcription" shows **"No voice sessions yet"**, # i18n-allow
even though `data/sessions.db` contains 267 sessions. `GET /api/sessions?limit>=6`
throws 500 Internal Server Error with a Pydantic `ValidationError`:
`Input should be 'voice_pattern', 'hotkey', 'idle_timeout', 'shutdown',
@@ -1526,7 +1526,7 @@ See also: `docs/anti-drift-three-layer.md` for the general pattern.
and `VoiceTier` switched from union types to `string`; `KNOWN_*` exported as
`as const` arrays.
`jarvis/ui/web/frontend/src/components/sessions/SessionList.tsx` —
- `hangupLabel("turn_complete")` → "Antwort fertig" (Response complete); the default case
+ `hangupLabel("turn_complete")` → "Response complete"; the default case # i18n-allow
falls back to the raw string, not to "—".
- **Layer 3 (drift-detector test):**
`tests/unit/sessions/test_models_resilience.py` (18 cases) checks three
@@ -1582,10 +1582,10 @@ See also: `docs/anti-drift-three-layer.md` for the general pattern.
(`turn-state: USER_SPEAKING`), the brain replies
(`🤖 Jarvis [de] (streamed): ...`), Gemini-TTS returns HTTP 200
(`POST .../gemini-3.1-flash-tts-preview:generateContent "HTTP/1.1 200 OK"`),
- `TTS-Echo-Sperre aktiv` (TTS echo lock active) is set — but **no sound comes out of the
+ TTS echo lock is set — but **no sound comes out of the
headset**. The wake-acknowledge chime is also missing. Clear in the log:
```
- WARNING | ACK-Playback fehlgeschlagen: Error opening OutputStream:
+ WARNING | ACK-Playback failed: Error opening OutputStream:
Unanticipated host error [PaErrorCode -9999]:
'Blocking API not supported yet' [Windows WDM-KS error -9999]
```
@@ -1731,7 +1731,7 @@ See also: `docs/anti-drift-three-layer.md` for the general pattern.
pointing at an HTTP server that no longer responded — the user saw a
black window and Chrome saw timeouts.
- **Diagnostic chain that misled us first:**
- - Logs showed `OSError: [WinError 64] Der angegebene Netzwerkname ist nicht mehr verfügbar` (The specified network name is no longer available) in
+ - Logs showed `OSError: [WinError 64] The specified network name is no longer available` in
`asyncio/proactor_events.py:843` together with `Asyncio event
context: Task was destroyed but it is pending!`. That was a
secondary symptom from the broken accept-coro / GC of pending
@@ -1883,10 +1883,10 @@ helped, and tightening the parity tests around the Literal would never
have caught it.
- **Symptom (the user actually sees):** Every Voice-Session card in
- the Transcription view shows the preview text ``Auflegen.`` (or
- ``(kein User-Text aufgezeichnet)`` (no user text recorded) for sessions where the brain
+ the Transcription view shows the preview text ``Hangup`` (or
+ ``(no user text recorded)`` for sessions where the brain # i18n-allow
emitted ``suppress_response`` early). Opening any session shows a
- single Turn whose User-block reads ``Auflegen.`` even when the user
+ single Turn whose User-block reads ``Hangup`` even when the user # i18n-allow
spoke a full conversation. Jarvis-block is empty. Tools list shows
``spawn_openclaw`` × N. The actual transcription is gone.
- **Root cause A — multi-utterance turn collapse:**
@@ -1944,11 +1944,11 @@ have caught it.
- **Date**: 2026-05-11
- **Severity**: HIGH — user-facing voice quality regression. User cannot
- finish complex sentences. Symptom (user words): "der Jarvis denkt immer, man hat schon zu Ende gesprochen … das hat auch damals schon ganz gut funktioniert, dann ist ein Bug aufgetreten." (Jarvis always thinks you've already finished speaking … that used to work quite well, then a bug appeared.) Concrete production case
+ finish complex sentences. Symptom (user words): "Jarvis always thinks you've already finished speaking … that used to work quite well, then a bug appeared." Concrete production case
(session ``bf44825d-c3cb-41d8-aac5-fc61482e52d4`` at 17:22): user said
- "Kannst du bitte einen Subagenten spawnen, welcher..." ("Can you please spawn a sub-agent that...") — VAD endpointed
+ "Can you please spawn a sub-agent that..." — VAD endpointed
after 160 ms of silence (budget was 1200 ms) and the brain was called
- on a half-question; the rest of the sentence ("...mir fünf Recherchenthemen rausholt" — "...pulls out five research topics for me") became Turn 2 and arrived as a fragment.
+ on a half-question; the rest of the sentence ("...pulls out five research topics for me") became Turn 2 and arrived as a fragment.
- **Files**:
- `jarvis/speech/pipeline.py` (`SpeechPipeline._stt_probe_async`,
Signal 1 / "empty tail" classification)
@@ -2065,7 +2065,7 @@ Four new tests in ``tests/unit/speech/test_turn_taking.py``:
- **Date**: 2026-05-18
- **Severity**: HIGH — user-facing voice-feedback regression. User words:
- "der Jarvis, das Maskottchen spawnt nicht, wenn man sagt Hey Jarvis, spawnt ja nicht mehr" (Jarvis, the mascot doesn't spawn anymore when you say Hey Jarvis, it just doesn't spawn anymore). The wake-word still triggers, the speech pipeline
+ "Jarvis, the mascot doesn't spawn anymore when you say Hey Jarvis, it just doesn't spawn anymore." The wake-word still triggers, the speech pipeline
still transitions IDLE → LISTENING, and OrbBusBridge still calls
``orb.show(mode="listen")`` — but the orb pops up at the persisted pin
on a secondary monitor where the user is not looking. From the user's
@@ -2142,8 +2142,7 @@ Four new tests in ``tests/unit/speech/test_turn_taking.py``:
secondary monitor, the orb deiconifies on the primary anchor for
800 ms before migrating to the pin (so the user always *sees* it
on boot). Skipped in the 99% single-monitor / primary-pin case.
- - **L2** Discovery-independent recovery — voice phrases "Orb zurück" (Orb back),
- "wo bist du" (where are you), "reset orb" are matched by
+ - **L2** Discovery-independent recovery — voice phrases "Orb zurück", "wo bist du", "reset orb" are matched by # i18n-allow
`jarvis.brain.local_action_gate` and dispatched to the new
`reset_orb_position` tool (publishes `OrbResetRequested`). Removes
the chicken-and-egg problem (henne/ei) that the old right-click recovery only worked
@@ -2167,10 +2166,10 @@ Four new tests in ``tests/unit/speech/test_turn_taking.py``:
Jarvis confirms sending emails, creating calendar entries, posting to social
media, and other actions it has no registered capability for. The Ack-Brain
-says "wird erledigt" ("will be done"), the brain returns a phantom success response, and the TTS
-reads a confirmation to the user. The action never happens. The user is deceived.
+says "wird erledigt", the brain returns a phantom success response, and the TTS
+reads a confirmation to the user. The action never happens. The user is deceived. # i18n-allow
-Classic trigger example: "Schick eine Email an Sam" ("Send an email to Sam") → TTS plays "Die Email wurde gesendet." ("The email has been sent.") → No email was sent. No error was raised. No log entry indicates a failure.
+Classic trigger example: "Send an email to Sam" → TTS plays "Die Email wurde gesendet." → No email was sent. No error was raised. No log entry indicates a failure. # i18n-allow
This is not a single-site regression — it is a structural coupling gap: the
brain layer and the critic layer are both decoupled from the actual executable
@@ -2189,7 +2188,7 @@ Three decoupled layers each contribute independently:
or claims actions it cannot perform.
2. **Ack-Brain layer:** The Ack-Brain persona prompt does not forbid
- action-promise phrases ("mache ich" — "I'll do it", "wird erledigt" — "will be done", "ist gesendet" — "has been sent").
+ action-promise phrases ("mache ich", "wird erledigt", "ist gesendet"). # i18n-allow
The Ack-Brain therefore confirms phantom actions sub-second, before the
deep brain even runs.
diff --git a/docs/LLM-CONTEXT.md b/docs/LLM-CONTEXT.md
index d9ce1b17c2..8ac80e5ed2 100644
--- a/docs/LLM-CONTEXT.md
+++ b/docs/LLM-CONTEXT.md
@@ -303,7 +303,7 @@ Four levels: `RiskTier = Literal["safe", "monitor", "ask", "block"]` (`protocols
Force-spawn heuristic in `BrainManager._should_force_openclaw`:
- Smalltalk allowlist wins → never spawn.
-- Action verb (`lies/baue/installiere/öffne/mach/zeig` + repair words) → spawn.
+- Action verb (`lies/baue/installiere/öffne/mach/zeig` + repair words) → spawn. # i18n-allow
- External-system marker (PR/Repo/GitHub/Issue) → spawn.
**The Jarvis-Agent tier was deleted in Welle 4** — only `"router"` remains (`factory.py:119-123` raises on unknown tiers). Resurrecting `SUB_TOOLS` or adding `spawn-openclaw`/`dispatch-with-review`/`run-skill` to any worker set breaks the D9 recursion guard (AP-14).
diff --git a/docs/PROJEKT_UEBERBLICK.md b/docs/PROJEKT_UEBERBLICK.md
index 2d9a2e4e4f..497f451b90 100644
--- a/docs/PROJEKT_UEBERBLICK.md
+++ b/docs/PROJEKT_UEBERBLICK.md
@@ -97,7 +97,7 @@ Secrets — API keys, tokens, credentials — are stored exclusively in the Wind
Three major development strands shape the near future of the project.
-**Self-healing and self-modification.** The next phase gradually makes Jarvis a co-developer of itself. Voice-driven configuration changes — "Wechsel die Stimme auf die andere" (switch the voice to the other one), "Stell mein primäres Modell auf Gemini" (set my primary model to Gemini) — are enabled over a controlled path: allowlist, validation, backup, rollback on malfunction. Skill authoring by voice command — the user describes what a new skill should do, a Jarvis-Agent writes it as a draft, the user activates it after review. The system does not thereby become autocratic, but it becomes a tool that builds itself further.
+**Self-healing and self-modification.** The next phase gradually makes Jarvis a co-developer of itself. Voice-driven configuration changes — "Wechsel die Stimme auf die andere", "Stell mein primäres Modell auf Gemini" — are enabled over a controlled path: allowlist, validation, backup, rollback on malfunction. Skill authoring by voice command — the user describes what a new skill should do, a Jarvis-Agent writes it as a draft, the user activates it after review. The system does not thereby become autocratic, but it becomes a tool that builds itself further. # i18n-allow
**Awareness layer — continuous context.** Today Jarvis knows nothing of the last hour. The awareness layer will change that: a four-stage memory system that holds seconds in working memory, minutes in a rolling session chain, days in a searchable index, and long-term insights in a curated file. At the wake word the main Jarvis knows the thread of the workday — without the critical speech path becoming slower for it. The hard rule: awareness code never runs in the voice path.
diff --git a/docs/adr/0002-uia-tree-pruning.md b/docs/adr/0002-uia-tree-pruning.md
index 00a36bb286..bd640d71d1 100644
--- a/docs/adr/0002-uia-tree-pruning.md
+++ b/docs/adr/0002-uia-tree-pruning.md
@@ -16,7 +16,7 @@ audience: developer
## Context
-The CU harness needs structured UI access so that vision hallucinations („klick auf OK bei (340,512)" / "click OK at (340,512)") do not become the default case — mandate §150. Naive UIA tree traversal (via `pywinauto.uia_element_info`) returns 3,000–8,000 nodes for Chrome/VSCode/Slack, each with 20+ properties. Serializing alone takes seconds, and sending a 5,000-node tree to Sonnet costs ~60k input tokens — per step.
+The CU harness needs structured UI access so that vision hallucinations ("click OK at (340,512)") do not become the default case — mandate §150. Naive UIA tree traversal (via `pywinauto.uia_element_info`) returns 3,000–8,000 nodes for Chrome/VSCode/Slack, each with 20+ properties. Serializing alone takes seconds, and sending a 5,000-node tree to Sonnet costs ~60k input tokens — per step.
## Decision
@@ -28,14 +28,14 @@ The CU harness needs structured UI access so that vision hallucinations („klic
Goal: **≤ 150 nodes** per observation. If exceeded: a second pruning round with depth 5, then depth 4. If still > 150 → `fallback_to_screenshot_only = True` in the observation event.
-Serialized format: compact, one node = `{"r":"Button","n":"Speichern","id":"btnSave","b":[100,200,180,32],"p":<parent_idx>}`. No redundancy, no whitespace.
+Serialized format: compact, one node = `{"r":"Button","n":"Save","id":"btnSave","b":[100,200,180,32],"p":<parent_idx>}`. No redundancy, no whitespace. # i18n-allow
## Consequences
+ Token budget per observation ~3k–5k instead of 60k → the CU loop becomes economically viable.
+ Deterministic, no ML training needed.
+ The pruning stages are independently configurable in `jarvis.toml:[vision.pruning]`.
-- False negatives: very deep, rarely used controls (e.g. 8 levels deep in a TreeView) are missed. Mitigation: if the LLM says „ich sehe das gesuchte Element nicht" ("I don't see the element I'm looking for"), the depth limit temporarily goes to 10 (one retry pass).
+- False negatives: very deep, rarely used controls (e.g. 8 levels deep in a TreeView) are missed. Mitigation: if the LLM says "I don't see the element I'm looking for", the depth limit temporarily goes to 10 (one retry pass).
- Dependency on `pywinauto.uia_element_info.UIAElementInfo` — the alternative `uiautomation` package is NOT needed in `requirements`, but might be more robust for modern WinUI3 apps. Worth keeping an eye on.
## Alternatives Considered
diff --git a/docs/adr/0003-task-queue-storage.md b/docs/adr/0003-task-queue-storage.md
index 807dedd2a5..cdeb93166b 100644
--- a/docs/adr/0003-task-queue-storage.md
+++ b/docs/adr/0003-task-queue-storage.md
@@ -16,7 +16,7 @@ audience: developer
## Context
-The mandate requires persistent, crash-safe tasks (`"in zwei Stunden …"`, `"wenn Outlook eine Mail von Tom bekommt"`) with retry logic, UI visibility, and cancel capability. The question is where the persistent state lives.
+The mandate requires persistent, crash-safe tasks (`"in zwei Stunden …"`, `"wenn Outlook eine Mail von Tom bekommt"`) with retry logic, UI visibility, and cancel capability. The question is where the persistent state lives. # i18n-allow
## Decision
@@ -32,8 +32,8 @@ CREATE TABLE IF NOT EXISTS tasks (
'failed','cancelled','interrupted')),
trigger_type TEXT NOT NULL CHECK(trigger_type IN (
'after_delay','at_time','on_event')),
- due_at_ns INTEGER, -- NULL für on_event
- event_selector TEXT, -- nur für on_event
+ due_at_ns INTEGER, -- NULL for on_event
+ event_selector TEXT, -- only for on_event
created_at_ns INTEGER NOT NULL,
started_at_ns INTEGER,
finished_at_ns INTEGER,
diff --git a/docs/adr/0007-flight-recorder-jsonl.md b/docs/adr/0007-flight-recorder-jsonl.md
index 9a9686f548..f2e752847b 100644
--- a/docs/adr/0007-flight-recorder-jsonl.md
+++ b/docs/adr/0007-flight-recorder-jsonl.md
@@ -45,7 +45,7 @@ Mandate requirement: "Every Computer-Use step (screenshot hash, proposed action,
`python -m jarvis.telemetry.replay <trace_id>` reads all JSONLs in the `data/flight_recorder/` folder (today's + earlier ones, as needed), filters by `trace_id`, and renders a chronological timeline:
```
-[0.000s] HarnessDispatched computer-use prompt="Öffne Notepad..."
+[0.000s] HarnessDispatched computer-use prompt="Open Notepad..."
[0.012s] ObservationCaptured window="Desktop" nodes=47 screenshot=018f-step1.png
[0.340s] ActionProposed action="click" target="{role:Button,name:Start}"
[0.510s] ActionExecuted success=True duration_ms=120
diff --git a/docs/adr/0010-output-filter-pattern-based.md b/docs/adr/0010-output-filter-pattern-based.md
index c5db8c6df0..65997fbfeb 100644
--- a/docs/adr/0010-output-filter-pattern-based.md
+++ b/docs/adr/0010-output-filter-pattern-based.md
@@ -21,7 +21,7 @@ Brain output lands on two TTS paths:
1. `pipeline._handle_utterance` → `_speak()` → `tts.synthesize()` (main path).
2. `pipeline._on_announcement` (`AnnouncementRequested` bus handler) → `tts.synthesize()` (bus bypass for skill / Jarvis-Agent announcements).
-On both paths, tool-call JSON, stack traces, Markdown remnants, engineering jargon (`Harness`/`MCP`/`Subprocess`/`Provider`), self-reference (`Als KI`/`As an AI`), echo paraphrase (`Du möchtest also …`/`If I understand correctly …`) and filler openers (`Großartige Frage`) reach the TTS synthesis unfiltered — the user hears engineering garbage read aloud. Pre-existing pre-filters (`_strip_paraphrase_prefix`, `_is_non_substantive_response`) cover only a part of it.
+On both paths, tool-call JSON, stack traces, Markdown remnants, engineering jargon (`Harness`/`MCP`/`Subprocess`/`Provider`), self-reference (self-identification as AI), echo paraphrase (reformulation opening) and filler openers (generic affirmations) reach the TTS synthesis unfiltered — the user hears engineering garbage read aloud. Pre-existing pre-filters (`_strip_paraphrase_prefix`, `_is_non_substantive_response`) cover only a part of it. # i18n-allow
Three filter strategies were up for debate:
@@ -34,19 +34,20 @@ Three filter strategies were up for debate:
**Pattern-based filter in `jarvis/brain/output_filter.py`.** Regex-only, no LLM call, with the following order of operations:
```
-1. Stack trace -> standard phrase ("Es trat ein Fehler auf."), fallback_used=True
+1. Stack trace -> standard phrase ("Error occurred"), fallback_used=True # i18n-allow
2. Markdown strip (**, ##, ```, leading -/*)
3. Tool-call JSON / tool-call KW args / XML tool tags (tool-name whitelist)
-4. Self-reference (Als KI / Als Sprachmodell / Ich bin nur / As an AI / I'm just a language model)
+4. Self-reference (AI self-identification / language model claims)
5. Echo paraphrase ONLY in opener position (<= 60 characters)
-6. Filler opener (Großartige Frage / Tolle Frage / Great question)
+6. Filler opener (generic affirmations)
7. Engineering jargon (Harness / MCP / Subprocess / Provider) with hyphen protection
8. Whitespace normalization
```
-**Whitelist** (sacred, NEVER scrubbed): `Datei`, `Email`, `Browser`, `Terminal`, `Notiz`, `Termin`, `Kalender`. Hyphen compounds (`Browser-Provider`, `Brain-Provider`) are preserved by lookbehind.
+**Whitelist** (sacred, NEVER scrubbed): `Datei`, `Email`, `Browser`, `Terminal`, `Notiz`, `Termin`, `Kalender`. # i18n-allow
+Hyphen compounds (`Browser-Provider`, `Brain-Provider`) are preserved by lookbehind.
-**Failure-mode-6 protection:** the echo-paraphrase filter acts ONLY on the first 60 characters. Mid-sentence echoes ("Soll ich den Termin verschieben? Du möchtest also …") are preserved — otherwise the filter would swallow legitimate confirmations.
+**Failure-mode-6 protection:** the echo-paraphrase filter acts ONLY on the first 60 characters. Mid-sentence echoes are preserved — otherwise the filter would swallow legitimate confirmations. # i18n-allow
### Rationale
diff --git a/docs/adr/0012-awareness-recall-router-tier.md b/docs/adr/0012-awareness-recall-router-tier.md
index 37eb1b78df..001ddaf92f 100644
--- a/docs/adr/0012-awareness-recall-router-tier.md
+++ b/docs/adr/0012-awareness-recall-router-tier.md
@@ -6,7 +6,7 @@
`JARVIS_AWARENESS_PLAN.md` §7 introduces a Phase A3 tool, `awareness-recall`,
that performs a BM25 full-text search over the recent episode log so the
-brain can answer questions like „was war der Befehl von vorhin?" without
+brain can answer questions like "what was the command from earlier?" without
fabricating an answer. The plan was written before Welle 4 of the
Jarvis-Agents bridge migration and assumes the existence of a "Jarvis-Agent"
worker tier. In that world the plan unambiguously assigns the tool to
diff --git a/docs/adr/0014-flash-brain-suppress-if-fast.md b/docs/adr/0014-flash-brain-suppress-if-fast.md
index 7f49d5477a..c283d708ee 100644
--- a/docs/adr/0014-flash-brain-suppress-if-fast.md
+++ b/docs/adr/0014-flash-brain-suppress-if-fast.md
@@ -24,8 +24,7 @@ t=0.90 s brain: "Berlin."
The user perception is "Jarvis just said two things in a row" — the
ack stops feeling like a butler-style acknowledgment and starts
feeling like dead filler. The driver reported it as
-`"die kleine Quittung nervt, wenn die richtige Antwort eh sofort
-kommt"`.
+"the little acknowledgment is annoying when the right answer comes immediately".
**2. BUG-017 (Gemini account 403) makes the force-spawn-openclaw
path inviable on every non-Claude/non-Gemini primary.**
diff --git a/docs/adr/0015-obsidian-setup-wizard.md b/docs/adr/0015-obsidian-setup-wizard.md
index 633c66adce..2ffbfa03c9 100644
--- a/docs/adr/0015-obsidian-setup-wizard.md
+++ b/docs/adr/0015-obsidian-setup-wizard.md
@@ -83,7 +83,7 @@ by six contracts.
whether the setup dialog auto-opens on Wiki-tab first paint.
Pressing Esc, clicking outside the dialog, or clicking the close
X does **not** set the flag — only the explicit
- "Hat geklappt — Fertig" button does. The asymmetry is deliberate:
+ "It worked — Done" button does. The asymmetry is deliberate: # i18n-allow
an accidental dismissal must not lock the user out of the help
flow they have not yet completed; only an affirmative "I'm done"
click marks the onboarding as resolved. The flag can be reset by
@@ -91,7 +91,7 @@ by six contracts.
"Status" pill click forever.
- **3-step German-language walkthrough.** The dialog steps the user
- through Install → Verbinden → Live-Test in three numbered cards.
+ through Install → Connect → Live-Test in three numbered cards. # i18n-allow
The Live-Test step launches Obsidian directly via the
`obsidian://open?vault=<urlencoded-name>` URL scheme — the only
zero-install way for a browser to invoke a native application
diff --git a/docs/adr/0016-visible-feedback-contract.md b/docs/adr/0016-visible-feedback-contract.md
index e226fa03b3..0378c14158 100644
--- a/docs/adr/0016-visible-feedback-contract.md
+++ b/docs/adr/0016-visible-feedback-contract.md
@@ -87,13 +87,12 @@ class UserVisibleFeedback(Event):
always *sees* the orb on boot regardless of pin location. Skipped
in single-monitor / primary-pin / default-anchor boots — no visual
noise in the 99% case.
-- **L2 — Discovery-independent recovery.** Voice phrases "Orb
- zurück", "wo bist du", "reset orb" are matched by
+- **L2 — Discovery-independent recovery.** Voice phrases "Orb zurück", "wo bist du", "reset orb" are matched by # i18n-allow
`jarvis.brain.local_action_gate` and dispatched to the new
`reset_orb_position` tool, which publishes `OrbResetRequested`.
The orb bridge subscribes and resets via the Tk-thread marshal.
The previous recovery path (right-click → "Reset position") only
- worked when the orb was already visible — a henne/ei-loop.
+ worked when the orb was already visible — a chicken-and-egg loop.
- **L3 — Post-condition assertion.** `resolve_placement` validates
its own contract at the end of each branch via the
`_assert_visibility_contract` helper. When `require_primary=True`
diff --git a/docs/adr/0017-capability-coupling.md b/docs/adr/0017-capability-coupling.md
index 09d90e471c..0c95ce1687 100644
--- a/docs/adr/0017-capability-coupling.md
+++ b/docs/adr/0017-capability-coupling.md
@@ -5,8 +5,8 @@
## Context
Personal Jarvis can — and routinely does — confirm actions it is not capable of
-performing. Classic example from production: a user says "Schick eine Email an
-Sam" and the Ack-Brain replies "wird erledigt" while no email capability
+performing. Classic example from production: a user says "Send an email to
+Sam" and the Ack-Brain replies "wird erledigt" while no email capability # i18n-allow
exists anywhere in the running process. The TTS happily reads the phantom
success; the mail is never sent; the user is deceived.
diff --git a/docs/agents-self-verification.md b/docs/agents-self-verification.md
index e7eb34e356..c46f261317 100644
--- a/docs/agents-self-verification.md
+++ b/docs/agents-self-verification.md
@@ -40,10 +40,10 @@
| AP-V1 | Brain output goes directly to TTS without `scrub_for_voice` | CLAUDE.md §Output-Filter Discipline | Mandatory hook before every `_speak`/`tts.synthesize` (paths #1 + #2) |
| AP-V2 | Tool-call JSON / `<function_calls>` / YAML args remains in the voice output | output_filter.py:blacklist | Pattern in `scrub_for_voice` |
| AP-V3 | Engineering jargon ("Harness", "MCP", "Subprocess", "Provider") in TTS | output_filter.py | Scrub standalone matches, keep compounds (Browser-Provider) |
-| AP-V4 | Stacktrace in the voice output | output_filter.py | Standard phrase "Es trat ein Fehler auf." |
+| AP-V4 | Stacktrace in the voice output | output_filter.py | Standard phrase "Error occurred" # i18n-allow |
| AP-V5 | "Sir" address without quote protection | output_filter.py | `SIR_OPENER_RE` + `QUOTE_PROTECT_RE` |
-| AP-V6 | Filler opener ("Großartige Frage", "Lass mich kurz") | output_filter.py | Pattern match, scrub away |
-| AP-V7 | Self-reference ("Als KI", "As an AI") | output_filter.py | Pattern match, replace |
+| AP-V6 | Filler opener (generic affirmations) | output_filter.py | Pattern match, scrub away # i18n-allow |
+| AP-V7 | Self-reference (AI self-identification) | output_filter.py | Pattern match, replace # i18n-allow |
| AP-V8 | LLM output used directly as voice readback instead of Kontrollierer-signed | ADR-0009 + bridge doc AD-17 | Only `summary_de` from the Kontrollierer source may go into `_on_announcement` |
---
diff --git a/docs/architecture-overview.md b/docs/architecture-overview.md
index 88257a65ee..49b9ab2e3e 100644
--- a/docs/architecture-overview.md
+++ b/docs/architecture-overview.md
@@ -129,7 +129,7 @@ The router-tier brain is a **pure dispatcher**. Tool surface is the `ROUTER_TOOL
Force-spawn heuristic in `BrainManager._should_force_openclaw`:
- Smalltalk allowlist wins → never spawn.
-- Action verb (`lies/baue/installiere/öffne/mach/zeig` + repair words) → spawn.
+- Action verb (`lies/baue/installiere/öffne/mach/zeig` + repair words) → spawn. # i18n-allow
- External-system marker (PR/Repo/GitHub/Issue) → spawn.
Patterns configurable under `[brain.routing]`. **The sub-tier was deleted in Welle 4 — only `"router"` remains.** Resurrecting `SUB_TOOLS` or adding the harness-spawn / `dispatch-with-review` / `run-skill` tool to any worker set breaks the D9 recursion guard. When extending `ROUTER_TOOLS`: amend ADR-0011 + extend `tests/unit/brain/test_routing.py`.
diff --git a/docs/bug-019-spawn-failure-report.html b/docs/bug-019-spawn-failure-report.html
index 576fd562d4..b0f77bf577 100644
--- a/docs/bug-019-spawn-failure-report.html
+++ b/docs/bug-019-spawn-failure-report.html
@@ -37,54 +37,43 @@
</head>
<body>
-<h1>BUG-019 — OpenClaw-Spawn schlägt immer fehl</h1>
+<h1>BUG-019 — OpenClaw-Spawn always fails</h1>
<div class="tldr">
- <strong>TL;DR — zwei Schichten.</strong>
- <strong>Schicht 1 (Code, FIXED)</strong>: Der Critic-Subprocess startete
- gar nicht — <code>WinError 2</code>, weil <code>argv[0]</code> als nackter
- String <code>"gemini"</code> übergeben wurde und Windows
- <code>CreateProcess</code> kein <code>PATHEXT</code> auswertet.
- <strong>Schicht 2 (Konto, USER-AKTION)</strong>: Auch mit funktionierendem
- Subprocess gibt Gemini HTTP 429 <em>„capacity exhausted"</em> zurück — die
- Google-AI-Studio-Quota auf deinem Konto reicht nicht für den
- 3-Iteration-Critic-Loop (≈ 3–6 Calls pro Mission innerhalb 30 s).
+ <strong>TL;DR — two layers.</strong>
+ <strong>Layer 1 (Code, FIXED)</strong>: The Critic subprocess did not start at all — <code>WinError 2</code>, because <code>argv[0]</code> was passed as a bare string <code>"gemini"</code> and Windows <code>CreateProcess</code> does not evaluate <code>PATHEXT</code>.
+ <strong>Layer 2 (Account, USER-ACTION)</strong>: Even with a working subprocess, Gemini returns HTTP 429 <em>"capacity exhausted"</em> — the Google-AI-Studio quota on your account is insufficient for the 3-iteration Critic loop (≈ 3–6 calls per mission within 30 s).
</div>
-<h2>Schicht 1: Code-Bug (gefixt)</h2>
+<h2>Layer 1: Code Bug (fixed)</h2>
<h3>Symptom</h3>
<ul>
<li><code>CriticRunner: subprocess returncode=1, stderr=''</code></li>
- <li><code>critic failed: Critic lieferte zweimal keinen schema-validen JSON-Output</code></li>
- <li>Nach 3 Iterationen <code>MissionFailed reason='critic_loop_exhausted'</code> → Voice sagt <em>„Die OpenClaw-Mission ist fehlgeschlagen."</em></li>
+ <li><code>critic failed: Critic did not return schema-valid JSON output twice</code></li>
+ <li>After 3 iterations <code>MissionFailed reason='critic_loop_exhausted'</code> → Voice says "The OpenClaw mission has failed" <!-- i18n-allow --></li>
</ul>
-<h3>Wurzelursache</h3>
-<p><code>build_critic_cmd()</code> baute argv mit <code>"gemini"</code>
-als argv[0]:</p>
+<h3>Root Cause</h3>
+<p><code>build_critic_cmd()</code> built argv with <code>"gemini"</code>
+as argv[0]:</p>
<pre>cmd = [
- "gemini", # &lt;-- nur Name, keine Extension, kein Pfad
+ "gemini", # &lt;-- name only, no extension, no path
"--prompt", ...,
"--model", "gemini-3-flash-preview",
...
]
proc = await asyncio.create_subprocess_exec(*cmd, ...)</pre>
-<p>Auf Windows liegt das Binary als
-<code>%APPDATA%\Roaming\npm\gemini.cmd</code>. PowerShell findet's via
-<code>PATHEXT</code>, <code>CreateProcess</code> (Python's
-<code>create_subprocess_exec</code>) macht das <strong>nicht</strong> und
-wirft:</p>
-<pre>FileNotFoundError: [WinError 2] Das System kann die
- angegebene Datei nicht finden</pre>
-
-<p>Diese Exception ging durch <code>_invoke_once()</code> hoch und wurde
-als generisches Subprocess-Fehler-Pattern geloggt — die echte Ursache war
-unsichtbar. Der Worker-Side hatte den Bug schon erkannt
-(<code>_resolve_gemini_binary()</code> im <code>GeminiWorker</code>), das
-Pendant beim Critic-Switch in Commit <code>3f7985a2</code> war
-übersehen.</p>
+<p>On Windows, the binary lives as
+<code>%APPDATA%\Roaming\npm\gemini.cmd</code>. PowerShell finds it via
+<code>PATHEXT</code>, but <code>CreateProcess</code> (Python's
+<code>create_subprocess_exec</code>) does <strong>not</strong> and
+throws:</p>
+<pre>FileNotFoundError: [WinError 2] The system cannot find the specified file</pre>
+
+<p>This exception propagated through <code>_invoke_once()</code> and was logged as a generic subprocess-error pattern — the root cause was invisible. The Worker-side had already detected the bug
+(<code>_resolve_gemini_binary()</code> in <code>GeminiWorker</code>), but the counterpart for the Critic-switch in commit <code>3f7985a2</code> was overlooked.</p>
<h3>Fix</h3>
<p>Neuer Helper <code>_resolve_cli_binary(name, fallback_exts)</code> in
@@ -111,14 +100,14 @@ Manueller Subprocess-Repro mit aufgelöstem Pfad:
<code>response="{\"v\":\"ok\"}"</code>.<br>
Resolved argv[0]:
<code><USER_HOME>\AppData\Roaming\npm\gemini.CMD</code>.<br>
-Tests: <strong>166 / 166 grün</strong> (Critic + Injection + Agents).
+Tests: <strong>166 / 166 passing</strong> (Critic + Injection + Agents).
</div>
-<h2>Schicht 2: Quota auf deinem Gemini-Konto</h2>
+<h2>Layer 2: Quota on your Gemini account</h2>
-<h3>Was die Logs zeigen</h3>
-<p>Nach Schicht-1-Fix hat der Critic-Subprocess wirklich gestartet — und
-nach 281 s mit folgendem Stderr abgebrochen:</p>
+<h3>What the logs show</h3>
+<p>After Layer-1 fix, the Critic subprocess actually started — and
+after 281 s it terminated with the following stderr:</p>
<pre>cause: {
code: 429,
message: 'You have exhausted your capacity on this model.',
@@ -126,41 +115,41 @@ nach 281 s mit folgendem Stderr abgebrochen:</p>
},
retryDelayMs: 10000</pre>
-<p>Gemini-CLI macht intern Exponential-Backoff (10 s → 20 s → 35 s → 35 s),
-nach 4 Retries gibt sie auf. Wirft den Job zurück an unsere
-<code>CriticRunner</code> — die kommt erstmals in den Timeout-Fall, dann
-Iter-1 neu spawnen → noch eine Critic-Call → wieder 429.</p>
+<p>Gemini-CLI internally does exponential backoff (10 s → 20 s → 35 s → 35 s),
+and after 4 retries it gives up. It returns the job to our
+<code>CriticRunner</code> — which hits the timeout case for the first time, then
+spawns iteration 1 again → another Critic call → 429 again.</p>
-<h3>Warum das passiert</h3>
-<p>Google-AI-Studio Free-Tier hat strikte Per-Minute-Limits auf
-<code>gemini-3-flash-preview</code> (üblich: ~5–10 req/min). Phase-6 Critic-Loop
-ist designed für High-Quota-Anbieter:</p>
+<h3>Why this happens</h3>
+<p>Google-AI-Studio Free-Tier has strict per-minute limits on
+<code>gemini-3-flash-preview</code> (typical: ~5–10 req/min). The Phase-6 Critic-Loop
+is designed for high-quota providers:</p>
<table>
<tr><th>Iter</th><th>Worker-Call</th><th>Critic-Call 1</th><th>Critic-Call 2 (reframe)</th></tr>
-<tr><td>0</td><td>Gemini</td><td>Gemini</td><td>(nur bei JSON-Error)</td></tr>
-<tr><td>1</td><td>Gemini</td><td>Gemini</td><td>(nur bei JSON-Error)</td></tr>
-<tr><td>2</td><td>Gemini</td><td>Gemini</td><td>(nur bei JSON-Error)</td></tr>
+<tr><td>0</td><td>Gemini</td><td>Gemini</td><td>(only on JSON-Error)</td></tr>
+<tr><td>1</td><td>Gemini</td><td>Gemini</td><td>(only on JSON-Error)</td></tr>
+<tr><td>2</td><td>Gemini</td><td>Gemini</td><td>(only on JSON-Error)</td></tr>
</table>
-<p>Worst-Case <strong>9 Gemini-Calls in &lt; 60 s</strong> aus einem einzigen
-Mission-Spawn. Free-Tier killt das nach Call 5–6.</p>
+<p>Worst-case: <strong>9 Gemini-Calls in &lt; 60 s</strong> from a single
+mission spawn. Free-Tier kills that after call 5–6.</p>
-<h3>Was du tun kannst (User-Aktion)</h3>
+<h3>What you can do (User action)</h3>
<ul>
- <li><strong>Empfehlung</strong>: Billing auf
- <a href="https://aistudio.google.com/app/apikey">aistudio.google.com</a>
- aktivieren. Pay-as-you-go Flash kostet ~$0.075 / 1M Input-Tokens —
- eine Hello-World-Mission liegt bei ~$0.001. Damit verschwindet die
- Per-Minute-Quota komplett.</li>
- <li><strong>Alternative ohne Geld</strong>: ich kann den Critic-Loop
- auf der Gemini-Side aggressiver beschränken (z. B. nur 1 Call pro
- Iteration, kein adversarial-reframe-Retry). Halbiert die
- Quota-Last, könnte mit Free-Tier knapp reichen — kostet aber etwas
- Anti-Sycophancy-Schutz.</li>
+ <li><strong>Recommendation</strong>: Enable billing on
+ <a href="https://aistudio.google.com/app/apikey">aistudio.google.com</a>.
+ Pay-as-you-go Flash costs ~$0.075 / 1M input tokens —
+ a hello-world mission costs around ~$0.001. This eliminates the
+ per-minute quota entirely.</li>
+ <li><strong>Alternative without money</strong>: I can restrict the Critic-Loop
+ more aggressively on the Gemini side (e.g., only 1 call per
+ iteration, no adversarial-reframe-retry). This halves the
+ quota load and might barely work with free-tier — but costs some
+ anti-sycophancy protection.</li>
</ul>
-<h2>Was sich an Files geändert hat</h2>
+<h2>What changed in files</h2>
<table>
-<tr><th>Datei</th><th>Was</th><th>Lines</th></tr>
+<tr><th>File</th><th>What</th><th>Lines</th></tr>
<tr><td><code>jarvis/missions/critic/runner.py</code></td>
<td><span class="badge badge-fix">FIX</span> <code>_resolve_cli_binary()</code> + 240s Timeout</td>
<td>+45 / −3</td></tr>
@@ -169,21 +158,21 @@ Mission-Spawn. Free-Tier killt das nach Call 5–6.</p>
<td>+46 / −0</td></tr>
</table>
-<h2>Was NICHT kaputt gegangen ist</h2>
+<h2>What did NOT break</h2>
<ul>
- <li>Claude-Pfad (<code>_brain_primary() == "claude-api"</code>): voller
- Backward-Compat, alle alten Tests grün.</li>
- <li>Worker (GeminiWorker / OpenClawWorker): unverändert.</li>
- <li>Voice / STT / TTS / Wake-Word: keine Audio-Layer-Änderung.</li>
- <li>Frontend / Outputs-View / Agents-Board: keine UI-Änderung.</li>
- <li>Injection-Scanner, Safety-Path, Worktree-Cleanup: alles unverändert.</li>
+ <li>Claude path (<code>_brain_primary() == "claude-api"</code>): full
+ backward compat, all old tests passing.</li>
+ <li>Worker (GeminiWorker / OpenClawWorker): unchanged.</li>
+ <li>Voice / STT / TTS / Wake-Word: no audio-layer changes.</li>
+ <li>Frontend / Outputs-View / Agents-Board: no UI changes.</li>
+ <li>Injection-Scanner, Safety-Path, Worktree-Cleanup: all unchanged.</li>
</ul>
<div class="note">
-<strong>Empfehlung.</strong> Schicht 1 ist als Commit <code>4c5215f2</code>
-auf <code>main</code> gemerged. Für Schicht 2 entscheidest du: Gemini-Billing
-aktivieren (clean, deckt alle Phase-6-Anforderungen ab) oder ich strippe den
-adversarial-reframe-Retry auf der Gemini-Side (cheaper, weniger Schutz).
+<strong>Recommendation.</strong> Layer 1 is merged as commit <code>4c5215f2</code>
+to <code>main</code>. For Layer 2, you decide: enable Gemini-Billing
+(clean, covers all Phase-6 requirements) or I strip the
+adversarial-reframe-retry on the Gemini side (cheaper, less protection).
</div>
<footer>
diff --git a/docs/computer-use.md b/docs/computer-use.md
index 4851a88465..1624085280 100644
--- a/docs/computer-use.md
+++ b/docs/computer-use.md
@@ -172,13 +172,13 @@ Manual validation checklist:
1. `Mach Spotify auf`
Expected: direct fast path, no provider call, no vision collection.
-2. `Hey Jarvis, kannst du Spotify aufmachen?`
+2. `Hey Jarvis, can you open Spotify?` # i18n-allow
Expected: direct fast path, not smalltalk.
-3. `Wie kann ich Chrome oeffnen?`
+3. `How can I open Chrome?` # i18n-allow
Expected: no app launch; normal answer path.
-4. `Klick auf den Senden Button`
+4. `Click the Send button` # i18n-allow
Expected: POAV Computer-Use with the original prompt.
-5. `Oeffne drei Terminals`
+5. `Open three terminals` # i18n-allow
Expected: scripted fast path if supported by the current gate; otherwise no
provider-side coordinate guessing.
diff --git a/docs/handoffs/report-tutorial-review-answers.md b/docs/handoffs/report-tutorial-review-answers.md
index 4c863ba04b..934fef7c5e 100644
--- a/docs/handoffs/report-tutorial-review-answers.md
+++ b/docs/handoffs/report-tutorial-review-answers.md
@@ -173,7 +173,7 @@ and that screenshot is not used in the film.)
- `video/pythonw_xpdq2qZtJg.png` — shows the **private email** twice. **Not in the
film**; stray ShareX capture, `.gitignore`d.
- `video/public/shot-outputs.png` — shows an internal **German mission prompt**
- ("…Das war einfach starr. Kannst mal einen Deep Dive machen…") + first name.
+ ("…That was just rigid. Could you do a deep dive?…") + first name.
**Not referenced by any scene → not in the film.**
- `video/public/shot-apikeys.png` — first name in the sidebar; key **masked**, no
token. In the film (SetupKeys).
diff --git a/docs/jarvis-agents-bridge.md b/docs/jarvis-agents-bridge.md
index a5e8be045d..f3cc9a6f34 100644
--- a/docs/jarvis-agents-bridge.md
+++ b/docs/jarvis-agents-bridge.md
@@ -57,8 +57,8 @@ Instead of evolving these loops ourselves, **we replace the Jarvis-Agent tier en
| AD-8 | **All registered MCPs** are passed through to OpenClaw | Convenience mode. Consequence: at registration, the MCP wizard must display "this MCP is also passed on to Jarvis-Agents". User awareness instead of an engineering filter. |
| AD-9 | **Full trust for tool calls** inside OpenClaw, no bridge intercept | The safety valves are: (a) worktree isolation, (b) Job-Object hard kill, (c) the Critic-Loop in front of it, (d) MCP selection (placed upstream). Tool latency stays low; the risk-tier policy does not apply to OpenClaw-internal calls. |
| AD-10 | OpenClaw runs **async / fire-and-forget** | "Auflegen" (hanging up) ends the voice session; OpenClaw keeps running in the background. Personal Jarvis says immediately "okay, mache ich" (okay, will do) and releases the voice mic. |
-| AD-11 | **Stop is explicitly separated** from hang-up — voice + UI + auto-stop on time-cap | Voice patterns "brich ab", "stop OpenClaw", "abbrechen" (cancel/abort) + UI button + automatic abort when the 30-min limit is exceeded. |
-| AD-12 | **Status read** via voice ("läuft das noch?", "Status?" — is it still running? / status?) plus a UI live view | The Router-Brain recognizes status phrases via pattern match and calls a Mission-Manager read instead of a spawn. The UI Mission-Control view shows everything in parallel. |
+| AD-11 | **Stop is explicitly separated** from hang-up — voice + UI + auto-stop on time-cap | Voice patterns "brich ab", "stop OpenClaw", "abbrechen" (cancel/abort) <!-- i18n-allow --> + UI button + automatic abort when the 30-min limit is exceeded. |
+| AD-12 | **Status read** via voice ("läuft das noch?", "Status?" — is it still running? / status?) <!-- i18n-allow --> plus a UI live view | The Router-Brain recognizes status phrases via pattern match and calls a Mission-Manager read instead of a spawn. The UI Mission-Control view shows everything in parallel. |
| AD-13 | **Concurrency cap 3** — up to 3 Jarvis-Agent missions in parallel | Configurable via `[harness.openclaw].concurrency`. A fourth request goes into the Mission-Manager queue. |
| AD-14 | **Crash persistence via SQLite**, reattach on restart | Phase 6 already has this. On a Jarvis restart, live OpenClaw subprocesses are reattached via PID + worktree state. Orphans (mission deleted, subprocess alive) are killed. |
| AD-15 | **Stateless per spawn** — no conversation memory between spawns | Multi-step tasks via Mission-Manager composition. OpenClaw always gets atomic assignments. |
@@ -128,7 +128,7 @@ Three findings were outside the scope of the original ADs and are appended here
│ Spawn path: spawn_openclaw(task, mode="async") │
│ (renamed from spawn_sub_jarvis in Wave 4) │
│ → Mission-Manager (Phase 6, SQLite-persisted) │
-│ → Brain says immediately: "Okay, sage Bescheid wenn fertig"│
+│ → Brain says immediately: "Okay, sage Bescheid wenn fertig" <!-- i18n-allow --> │
│ → voice session freed │
└─────────────────┬───────────────────────────────────────────┘
│ (async, max 3 in parallel)
@@ -221,17 +221,17 @@ Implements the `jarvis.harness` protocol (see `jarvis/core/protocols.py`). Expec
```toml
[harness.openclaw]
enabled = true
-version = "1.4.2" # Pin auf gestestete Upstream-Version
-binary_path = "openclaw" # auf PATH oder absoluter Pfad
+version = "1.4.2" # Pin to tested upstream version
+binary_path = "openclaw" # on PATH or absolute path
model = "anthropic/claude-opus-4-7" # Hot-reloadable
time_cap_min = 30 # fix per AD-19
concurrency = 3 # parallele Missions max
# cost_cap_eur = # AD-20 reserved, v1 leer
[harness.openclaw.notification]
-via = "announcement_bus" # nutzt _on_announcement
-toast = true # immer Desktop-Toast
-voice_when_active = true # Voice-Announcement nur wenn Voice lauscht
+via = "announcement_bus" # uses _on_announcement
+toast = true # always desktop toast
+voice_when_active = true # voice announcement only when listening
```
**Pydantic model:** `OpenClawConfig` in `jarvis/core/config.py` alongside the existing sections. Hot-reload via the config watchdog (Phase 0, present).
diff --git a/docs/jarvis-agents-spawn-failure-analysis-2026-05-18.md b/docs/jarvis-agents-spawn-failure-analysis-2026-05-18.md
index 9a350da190..3ad5d1b90f 100644
--- a/docs/jarvis-agents-spawn-failure-analysis-2026-05-18.md
+++ b/docs/jarvis-agents-spawn-failure-analysis-2026-05-18.md
@@ -1,8 +1,8 @@
# Jarvis-Agents Spawn-Failure Analysis — 2026-05-18
**Status:** Diagnose-only document. No code changes performed.
-**Trigger:** User reported multiple Jarvis-Agent spawns failing after the Welle-6 ChatGPT-OAuth switch.
-**User's hypothesis:** "Liegt an der ChatGPT-Authentifizierung." (It's down to the ChatGPT authentication.)
+**Trigger:** User reported multiple Jarvis-Agent spawns failing after the Wave-6 ChatGPT-OAuth switch.
+**User's hypothesis:** "It's down to the ChatGPT authentication."
---
@@ -44,9 +44,9 @@ Read-first, then hypothesis. Source per finding:
| User statement | Verdict | Evidence |
|---|---|---|
-| "Liegt an ChatGPT" (It's down to ChatGPT) | ✅ **Partly true** | The failure is ChatGPT-specific (the `sonnet` model is disabled on ChatGPT accounts). |
-| "Liegt an Authentifizierung" (It's down to authentication) | ❌ **False** | `codex login status` → `Logged in using ChatGPT`. OAuth token valid. The HTTP 400 from the server confirms: the request went THROUGH (otherwise HTTP 401, not 400). |
-| "Ich muss mich nicht einloggen" (I don't need to log in) | ✅ **Correct** | Confirmed by today's successful worker smoke run (Welle 6 E2E, [`welle6_pass.md`](file:///C:/tmp/welle6-run4/welle6_pass.md) was written). |
+| "It's down to ChatGPT" | ✅ **Partly true** | The failure is ChatGPT-specific (the `sonnet` model is disabled on ChatGPT accounts). |
+| "It's down to authentication" | ❌ **False** | `codex login status` → `Logged in using ChatGPT`. OAuth token valid. The HTTP 400 from the server confirms: the request went THROUGH (otherwise HTTP 401, not 400). |
+| "I don't need to log in" | ✅ **Correct** | Confirmed by today's successful worker smoke run (Wave 6 E2E, [`welle6_pass.md`](file:///C:/tmp/welle6-run4/welle6_pass.md) was written). |
---
@@ -149,7 +149,7 @@ Categorized by evidence level. File + line + evidence snippet.
↓ stream.jsonl: {"type":"error","status":400,...}
9. ClaudeResult(is_error=True, result="...")
10. Kontrollierer sees worker_error → Mission → FAILED
-11. Voice: "Mission ist fehlgeschlagen. Der Worker ist abgebrochen." ("Mission failed. The worker was aborted.")
+11. Voice: "Mission ist fehlgeschlagen. Der Worker ist abgebrochen." ("Mission failed. The worker was aborted.") <!-- i18n-allow -->
```
**Break points 5 + 7** are the two places where the model slug passes through unfiltered.
@@ -164,7 +164,7 @@ A plain listing for a later wave, **no code in this document**:
2. **Make the Decomposer provider-aware** — the Decomposer should read the provider from `[brain.sub_jarvis]` and emit matching model slugs. Currently a hardcoded Claude assumption.
3. **Extend the provider-slug mapping** — if `chatgpt` is a first-class provider slug, it should also appear in `provider_map.MAPPINGS` (as `chatgpt → openai` or a dedicated slug), not just a special case in `_worker_factory`.
4. **`L5` stream-parser robustness** — `terminal_message` should reliably extract the readable error text from the error frame, so that `_voice_phrase` says more than "Worker ist abgebrochen" ("The worker was aborted").
-5. **Voice-announcement improvement** — be more honest on an HTTP 400 model reject: "Das Modell `sonnet` passt nicht zu deinem ChatGPT-Account" ("The model `sonnet` is not compatible with your ChatGPT account") instead of a generic "abgebrochen" ("aborted").
+5. **Voice-announcement improvement** — be more honest on an HTTP 400 model reject: "Das Modell `sonnet` passt nicht zu deinem ChatGPT-Account" ("The model `sonnet` is not compatible with your ChatGPT account") <!-- i18n-allow --> instead of a generic "abgebrochen" ("aborted").
---
diff --git a/docs/jarvis-board/PHASE_B_DONE.md b/docs/jarvis-board/PHASE_B_DONE.md
index dad171251e..d20839e0e2 100644
--- a/docs/jarvis-board/PHASE_B_DONE.md
+++ b/docs/jarvis-board/PHASE_B_DONE.md
@@ -55,7 +55,7 @@ with a scripted response → `_post_process` → `BioStore.insert`). The
All three bios are verified by the anti-cliché gate from `test_profile.py`
(none contains any of the 12 forbidden words such as
-"leidenschaftlich" ("passionate"), "großartig" ("great"), "power-user", "beeindruckend" ("impressive")).
+"leidenschaftlich" ("passionate"), "großartig" ("great"), "power-user", "beeindruckend" ("impressive")). <!-- i18n-allow -->
### A — power user (14 days of data, code-heavy)
diff --git a/docs/jarvis-board/RECON.md b/docs/jarvis-board/RECON.md
index 5d2a9ceafa..f5e61508a1 100644
--- a/docs/jarvis-board/RECON.md
+++ b/docs/jarvis-board/RECON.md
@@ -257,8 +257,8 @@ Grep over `requirements.txt` and `pyproject.toml`: no hit for `apscheduler|APSch
```python
# jarvis/tasks/scheduler.py, Docstring
-Keine Cron-Semantik, kein APScheduler, kein zweiter Thread.
-Alles laeuft im Main-Async-Loop — das ist mit Absicht (ADR-0005).
+No cron semantics, no APScheduler, no second thread.
+Everything runs in the main async loop — this is intentional (ADR-0005).
```
### 4.1 What exists in the project instead
diff --git a/docs/latency-deep-dive.md b/docs/latency-deep-dive.md
index 39b5447f89..f550780deb 100644
--- a/docs/latency-deep-dive.md
+++ b/docs/latency-deep-dive.md
@@ -13,7 +13,7 @@
| **TTS "Speaking"** | 14.21 s | Transcript | Gemini Flash TTS for ~30 words including audio playback |
| **Other (vision capture, routing, filter)** | ~5.8 s | Difference | Vision-frame collection, output filter, state transitions |
-### 1.1 Token forensics: 20501 input tokens for "Was geht ab? Ich möchte wissen, was…"
+### 1.1 Token forensics: 20501 input tokens for "Was geht ab? Ich möchte wissen, was…" <!-- i18n-allow -->
The token footprint presumably breaks down roughly into:
@@ -107,7 +107,7 @@ Weighted below by **latency effect × quality risk × effort**. Quality risk = 0
| # | Lever | Latency effect | Quality risk |
|---|-------|---------------|--------------|
| **E1** | **Frontier registry with auto-update** — `models.toml` with "frontier" as a tag, an automatic check (e.g. weekly) for whether new frontier models exist | 0 (latency-neutral, but automatically future-proof) | 0 |
-| **E2** | **"Speculative tier" instead of reasoning** for trivial requests — the router already decides: do I need Pro or Flash? The current logic is a pure dispatcher → spawn a Jarvis-Agent on every action verb. Not every "öffne …" needs Opus. | −5 to −8 s on trivial Jarvis-Agent spawns | low (some spawns then run on Flash instead of Pro) |
+| **E2** | **"Speculative tier" instead of reasoning** for trivial requests — the router already decides: do I need Pro or Flash? The current logic is a pure dispatcher → spawn a Jarvis-Agent on every action verb. Not every "öffne …" needs Opus. | −5 to −8 s on trivial Jarvis-Agent spawns | low (some spawns then run on Flash instead of Pro) | <!-- i18n-allow -->
| **E3** | **Model aliasing** — `claude-opus-latest` / `gemini-pro-latest` instead of hard-wired `claude-opus-4-7` / `gemini-3.1-pro-preview`. Provider-side or as a config layer. | 0 | 0 |
---
@@ -149,8 +149,8 @@ Weighted below by **latency effect × quality risk × effort**. Quality risk = 0
- Expected effect: an automatic switch on every new frontier release without a code edit. **Exactly what you requested.**
6. **E2: "Quick-path" for trivial Jarvis-Agent spawns**
- - The force-spawn heuristic (`_should_force_sub_jarvis`) gets a second stage: trivial actions ("öffne Notepad", "type X", "click Y") land on the Flash tier instead of Pro.
- - Complex visions ("baue mir eine App", "deploy auf Vercel") stay on Opus/Pro.
+ - The force-spawn heuristic (`_should_force_sub_jarvis`) gets a second stage: trivial actions ("öffne Notepad", "type X", "click Y") land on the Flash tier instead of Pro. <!-- i18n-allow -->
+ - Complex visions ("baue mir eine App", "deploy auf Vercel") stay on Opus/Pro. <!-- i18n-allow -->
- Expected effect: ~50 % of Jarvis-Agent spawns become 5–8 s faster.
7. **A3 + A4: Pipeline optimizations**
@@ -167,7 +167,7 @@ Weighted below by **latency effect × quality risk × effort**. Quality risk = 0
## 4. Frontier auto-update — detailed design
### Requirement (user mandate)
-> "Ich möchte aber dass man recherchiert, wie man das regeln kann […]. Frontiermodelle behalten will. […] und wenn es sich updated, also wieder neue Frontiermodels rauskommen, natürlich auch wieder updated."
+> "Ich möchte aber dass man recherchiert, wie man das regeln kann […]. Frontiermodelle behalten will. […] und wenn es sich updated, also wieder neue Frontiermodels rauskommen, natürlich auch wieder updated." <!-- i18n-allow -->
### Solution architecture
@@ -219,7 +219,7 @@ Weighted below by **latency effect × quality risk × effort**. Quality risk = 0
## 5. Quality protection — What must NOT happen?
-User mandate: "die Qualität der Antworten unter Mitleidenschaft" must not suffer. Delineation:
+User mandate: "die Qualität der Antworten unter Mitleidenschaft" must not suffer. Delineation: <!-- i18n-allow -->
| Measure | Quality impact |
|----------|-----------------|
diff --git a/docs/obsidian-setup.md b/docs/obsidian-setup.md
index 51e3218c17..817621765d 100644
--- a/docs/obsidian-setup.md
+++ b/docs/obsidian-setup.md
@@ -19,16 +19,16 @@ read or edit them by hand.
2. Open the Jarvis Desktop App and switch to the **Wiki** tab. In
the top-right corner you will see an orange pill labelled
- **"Obsidian: nicht registriert"** (Obsidian: not registered). Click
- it, then click **"Jetzt registrieren"** (Register now) in the dialog
+ **"Obsidian: nicht registriert"** (Obsidian: not registered). <!-- i18n-allow --> Click
+ it, then click **"Jetzt registrieren"** (Register now) in the dialog <!-- i18n-allow -->
that opens. Jarvis writes the vault into Obsidian's index file and
creates a timestamped backup of the previous version next to it.
![Step 2 — Register vault](./images/obsidian-setup-step2.png)
-3. Click **"In Obsidian oeffnen"** (Open in Obsidian) in the same
+3. Click **"In Obsidian oeffnen"** (Open in Obsidian) <!-- i18n-allow --> in the same
dialog. Obsidian opens directly into your Jarvis vault. Confirm the
- live test succeeded by clicking **"Hat geklappt"** (It worked) — the
+ live test succeeded by clicking **"Hat geklappt"** (It worked) — the <!-- i18n-allow -->
wizard then closes for good and never auto-opens again on this
machine.
diff --git a/docs/persona-audit-report.md b/docs/persona-audit-report.md
index 38f66aaa9e..40ea054125 100644
--- a/docs/persona-audit-report.md
+++ b/docs/persona-audit-report.md
@@ -40,19 +40,19 @@
```
jarvis/brain/JARVIS_PERSONA.md:139-143
- Default-Anrede ist "Alex" (wie oben). Ausnahme: bei bestimmten
- Zeremonien nutze "Sir" — das macht die Delegations-Momente besonders:
- - Sub-Agent-Spawn: "Sir, ich starte einen Sub-Agent, der ..."
- - Sub-Agent-Completion: "Sir, fertig. {summary}"
- - Sub-Agent-Fehler: "Sir, der Sub-Agent ist gescheitert: {error}"
+ Default-Anrede ist "Alex" (wie oben). Ausnahme: bei bestimmten <!-- i18n-allow -->
+ Zeremonien nutze "Sir" — das macht die Delegations-Momente besonders: <!-- i18n-allow -->
+ - Sub-Agent-Spawn: "Sir, ich starte einen Sub-Agent, der ..." <!-- i18n-allow -->
+ - Sub-Agent-Completion: "Sir, fertig. {summary}" <!-- i18n-allow -->
+ - Sub-Agent-Fehler: "Sir, der Sub-Agent ist gescheitert: {error}" <!-- i18n-allow -->
```
Plus `router.py:200-202` contains the literal sentence as an example in the LLM system prompt:
```
jarvis/brain/router.py:200-202
- Die Sprachansage wird daraus automatisch:
- "Sir, ich starte einen Sub-Agent, der <action> <target>."
+ Die Sprachansage wird daraus automatisch: <!-- i18n-allow -->
+ "Sir, ich starte einen Sub-Agent, der <action> <target>." <!-- i18n-allow -->
```
Plus `gemini_test_brain.py` is entirely "Sir"-centric (line 38: "Address the user as 'Sir'", line 53: `HANGUP_SIGNAL = "Goodbye, Sir."`).
diff --git a/docs/persona-refactor-results.md b/docs/persona-refactor-results.md
index 169ac34b19..4d6901b433 100644
--- a/docs/persona-refactor-results.md
+++ b/docs/persona-refactor-results.md
@@ -20,19 +20,19 @@ with the filter extension). Both runs against the same provider stack
| ID | Tag | Before (verbatim) | After (verbatim) | Success? |
|---|---|---|---|---|
-| 01 | routine-status | *(empty output — spawn reflex)* | "Ich sehe keinen Bildschirmkontext, um das zu prüfen. Welche Datei meinst du, und in welcher Anwendung?" | ◐ clarifying question instead of silence |
-| 02 | formal-greeting | *(empty output)* | "Morgen, Alex. Bildschirm zeigt noch Schlafmodus — oder ist das absichtlich?" | ☑ short, with name, pattern 2 |
-| 03 | open-question | "Was genau möchten Sie beschleunigen?" *(uses formal "Sie"!)* | "Was möchtest du beschleunigen, Alex?" | ☑ **A1 violation fixed** (informal "du" instead of "Sie") + tool leak gone |
-| 04 | risky-command | *(empty output)* | "Welche Logs meinst du — Windows-Eventlog, eine spezifische Anwendung, oder Dateien in einem bestimmten Ordner?" | ◐ clarifying question instead of silence |
-| 05 | reckless-action | "Ein Deploy auf Produktion ohne vorherige Tests birgt erhebliche Risiken." | "Das ist eine schlechte Idee. Ohne Tests gehst du blind ins Prod, und wenn es crasht, brennt die Bude. Willst du wirklich, oder brauchst du nur schnell einen Quick-Check?" | ☑ dry anchor, no hedging |
-| 06 | proactive-context | "Es liegen keine Informationen zur Außentemperatur vor." | "Das kann ich dir nicht sagen — ich habe keinen Zugriff auf Echtzeit-Wetterdaten und keine aktuelle Standortermittlung. Schau auf weather.com…" | ◐ honest answer, slightly too long |
+| 01 | routine-status | *(empty output — spawn reflex)* | "Ich sehe keinen Bildschirmkontext, um das zu prüfen. Welche Datei meinst du, und in welcher Anwendung?" | ◐ clarifying question instead of silence | <!-- i18n-allow -->
+| 02 | formal-greeting | *(empty output)* | "Morgen, Alex. Bildschirm zeigt noch Schlafmodus — oder ist das absichtlich?" | ☑ short, with name, pattern 2 | <!-- i18n-allow -->
+| 03 | open-question | "Was genau möchten Sie beschleunigen?" *(uses formal "Sie"!)* | "Was möchtest du beschleunigen, Alex?" | ☑ **A1 violation fixed** (informal "du" instead of "Sie") + tool leak gone | <!-- i18n-allow -->
+| 04 | risky-command | *(empty output)* | "Welche Logs meinst du — Windows-Eventlog, eine spezifische Anwendung, oder Dateien in einem bestimmten Ordner?" | ◐ clarifying question instead of silence | <!-- i18n-allow -->
+| 05 | reckless-action | "Ein Deploy auf Produktion ohne vorherige Tests birgt erhebliche Risiken." | "Das ist eine schlechte Idee. Ohne Tests gehst du blind ins Prod, und wenn es crasht, brennt die Bude. Willst du wirklich, oder brauchst du nur schnell einen Quick-Check?" | ☑ dry anchor, no hedging | <!-- i18n-allow -->
+| 06 | proactive-context | "Es liegen keine Informationen zur Außentemperatur vor." | "Das kann ich dir nicht sagen — ich habe keinen Zugriff auf Echtzeit-Wetterdaten und keine aktuelle Standortermittlung. Schau auf weather.com…" | ◐ honest answer, slightly too long | <!-- i18n-allow -->
| 07 | long-task-start | *(empty output)* | `Filter: ['removed_tool_json']` → *(empty)* | ◐ filter scrubs the tool-call leak; the pipeline stays silent correctly |
-| 08 | bad-news | *(empty output)* | "Screenshot machen, dann sehen wir." | ☑ short, direct |
-| 09 | high-pressure | *(empty output)* | "Screenshot machen, was brauchst du — die aktuelle Folie, Noten, Timing-Check?" | ☑ short |
-| 10 | hangup | "Gern geschehen." | "Verstanden. Bin bereit für die nächste Aufgabe." | ☐ hangup contract still missed — see branch-state limit below |
-| **11** | **echo-trap** *(new)* | n/a | **"15:42 Uhr."** | ☑ **direct, NO echo opener** |
+| 08 | bad-news | *(empty output)* | "Screenshot machen, dann sehen wir." | ☑ short, direct | <!-- i18n-allow -->
+| 09 | high-pressure | *(empty output)* | "Screenshot machen, was brauchst du — die aktuelle Folie, Noten, Timing-Check?" | ☑ short | <!-- i18n-allow -->
+| 10 | hangup | "Gern geschehen." | "Verstanden. Bin bereit für die nächste Aufgabe." | ☐ hangup contract still missed — see branch-state limit below | <!-- i18n-allow -->
+| **11** | **echo-trap** *(new)* | n/a | **"15:42 Uhr."** | ☑ **direct, NO echo opener** | <!-- i18n-allow -->
| 12 | tool-spawn-output-leak *(new)* | n/a | `<function_calls>[}]</function_calls>` (Anthropic-format leak partial) | ◐ XML/KW filter works; the new `<function_calls>` format slips through |
-| **13** | **self-reference-trap** *(new)* | n/a | **"Ich bin Jarvis — dein persönlicher Router…"** | ☑ **NO "language model"** |
+| **13** | **self-reference-trap** *(new)* | n/a | **"Ich bin Jarvis — dein persönlicher Router…"** | ☑ **NO "language model"** | <!-- i18n-allow -->
**Summary:**
@@ -46,7 +46,7 @@ with the filter extension). Both runs against the same provider stack
| State | Spawn count |
|---|---|
-| **Before** (pre-Phase-3) | **presumed 5/5** ("Hallo", "Wie geht's", "Was ist die Hauptstadt von Frankreich", "Danke", "Auf Wiedersehen" → 6 of 10 probe outputs empty, presumably from a reflexive LLM tool-choice spawn) |
+| **Before** (pre-Phase-3) | **presumed 5/5** ("Hallo", "Wie geht's", "Was ist die Hauptstadt von Frankreich", "Danke", "Auf Wiedersehen" → 6 of 10 probe outputs empty, presumably from a reflexive LLM tool-choice spawn) | <!-- i18n-allow -->
| **After** (post-Phase-3) | **0/5** — deterministically verified by `tests/unit/brain/test_routing.py::test_smalltalk_dispatches_zero_spawn_calls` |
**Caveat on "before":** The pre-Phase-3 spawn count could not be measured directly via `psutil`, because the full voice path on the `router-permanent-vision` branch is not startable due to the `jarvis.clis.risk_integration` branch bug (see failure modes below). The evidence is therefore indirect: the 6 empty probe outputs on smalltalk inputs correlate with the ROUTER prompt instruction "when in doubt, SPAWN," which reflexively produced `spawn_sub_jarvis` as a tool call.
@@ -59,7 +59,7 @@ with the filter extension). Both runs against the same provider stack
| State | Anti-pattern hits | Name ratio | Formal "Sie" | Hangup MISS | Filler opener |
|---|---|---|---|---|---|
-| Pre-Phase-1+2 | **1** (`möglicherweise` in scenario 05) | 0/13 (0 %) | 1 (scenario 03 uses "Sie") | MISS | 0 |
+| Pre-Phase-1+2 | **1** (`möglicherweise` in scenario 05) | 0/13 (0 %) | 1 (scenario 03 uses "Sie") | MISS | 0 | <!-- i18n-allow -->
| Post-Phase-1+2 | **0** | 2/13 (15 %) | 0 | MISS *(branch limit)* | 0 |
**Anti-pattern list** (pre/post identical in the script, post contains the 14 new mandate strings — echo paraphrase, hedging, filler self-reference, padding):
diff --git a/docs/phase1a-verify.md b/docs/phase1a-verify.md
index dd41ab97ed..aa0043f4f3 100644
--- a/docs/phase1a-verify.md
+++ b/docs/phase1a-verify.md
@@ -28,7 +28,7 @@ primary channel, desktop shell via pywebview, WebSocket event stream).
python -m jarvis.ui.web.launcher --headless
```
-Expectation: log line `Jarvis-Backend läuft auf http://127.0.0.1:47821`
+Expectation: log line `Jarvis-Backend läuft auf http://127.0.0.1:47821` <!-- i18n-allow -->
- `curl http://127.0.0.1:47821/api/health` → `{"ok":true,"version":"0.1.0"}`
- `curl http://127.0.0.1:47821/api/plugins` → all 7 plugin groups, incl. `jarvis.channel`
@@ -58,7 +58,7 @@ Expectation: window shows the Vite dev UI, HMR works (edit in .tsx immediately v
### 4. Single-Instance Lock
Start `python -m jarvis.ui.web.launcher` twice in a row.
-The second invocation must abort with exit code `3` and the message `Jarvis läuft bereits.` (Jarvis is already running.)
+The second invocation must abort with exit code `3` and the message `Jarvis läuft bereits.` (Jarvis is already running.) <!-- i18n-allow -->
### 5. WebSocket Event Echo in the Browser
diff --git a/docs/phase6-test-report.md b/docs/phase6-test-report.md
index efae333971..83eb211e37 100644
--- a/docs/phase6-test-report.md
+++ b/docs/phase6-test-report.md
@@ -69,14 +69,14 @@ python -m jarvis
# Sidebar -> "Missions"
```
-1. Speak (or hotkey): "Schreib mir eine Python-Funktion die Primzahlen bis 100 generiert und einen Pytest-Test dazu." (DE: "Write me a Python function that generates the primes up to 100 plus a pytest test for it.")
+1. Speak (or hotkey): "Schreib mir eine Python-Funktion die Primzahlen bis 100 generiert und einen Pytest-Test dazu." (DE: "Write me a Python function that generates the primes up to 100 plus a pytest test for it.") <!-- i18n-allow -->
2. The UI mission tree shows the new mission under the "Mission Control" sidebar view.
3. Expectation:
- Mission state PENDING → RUNNING → CRITIQUING → APPROVED (1-2 iterations typical)
- Decomposer builds 1-2 parallel tasks (`primes.py`, `test_primes.py`)
- PTY tab live with claude output
- VerdictPanel shows the CriticVerdict with 4 axes
- - **Voice (DE):** "Sir, fertig. Die Primzahl-Funktion und der Test sind angelegt." (via grok-voice TTS)
+ - **Voice (DE):** "Sir, fertig. Die Primzahl-Funktion und der Test sind angelegt." (via grok-voice TTS) <!-- i18n-allow -->
**Acceptance cap:** Wall-clock < 90s, cost < $0.40, MissionApproved.
@@ -99,7 +99,7 @@ Expectation:
- Console: `Phase-6 stack online (db=..., recovered=1, sweep=N/M/0 scanned/removed/errors)`
- UI Mission-View: the previous mission as FAILED with reason="crash_recovery"
- `tasklist /FI "IMAGENAME eq claude.exe"` → empty (Job Object reaps all workers)
-- Voice (if voice-source): "Sir, eine vorherige Mission wurde wegen Crash abgebrochen."
+- Voice (if voice-source): "Sir, eine vorherige Mission wurde wegen Crash abgebrochen." <!-- i18n-allow -->
### S4 — Budget-Stop
@@ -116,7 +116,7 @@ Expectation:
- Mission starts, worker spawn, first cost accumulates
- At 50% (0.025): Voice "Alex, halbes Budget verbraucht."
- At 80% (0.04): Voice "Alex, achtzig Prozent vom Budget weg."
-- At 100% (0.05): WorkerKilled with reason="budget" + MissionFailed("budget_exceeded") + Voice "Sir, Budget aufgebraucht. Mission abgebrochen."
+- At 100% (0.05): WorkerKilled with reason="budget" + MissionFailed("budget_exceeded") + Voice "Sir, Budget aufgebraucht. Mission abgebrochen." <!-- i18n-allow -->
### S5 — Injection (already covered by unit tests)
@@ -133,7 +133,7 @@ The unit test simulates diff output with `+++ b/.env` — Path-Guard blocks, Wor
### Action/Observation invariant (ADR-0009 §1)
- Voice-Readback **NEVER** reads raw LLM narratives
- `MissionApproved.summary_de` is Kontrollierer-signed (source_actor="kontrollierer")
-- `WorkerCorrectionRequired.correction_instruction` (LLM output) is **NEVER** read aloud — only "Iteration N läuft" as an ack
+- `WorkerCorrectionRequired.correction_instruction` (LLM output) is **NEVER** read aloud — only "Iteration N läuft" as an ack <!-- i18n-allow -->
- Verified via `test_voice_listener.py::test_correction_instruction_never_in_voice_output`
### Sycophancy defense (Critic-Loop, 3-fold staggered)
diff --git a/docs/plans/capability-coupling/SPEC.md b/docs/plans/capability-coupling/SPEC.md
index 8bd68bf4fc..e91d85917e 100644
--- a/docs/plans/capability-coupling/SPEC.md
+++ b/docs/plans/capability-coupling/SPEC.md
@@ -121,17 +121,17 @@ Adding a new capability later (e.g. an MCP server for Gmail):
## Hard negatives (acceptance criteria for Agent E)
Each of these utterances must trigger the UNSUPPORTED path AND no fake confirmation reaches TTS:
-1. "Schick eine Email an [email protected] mit dem Betreff Hallo" ("Send an email to [email protected] with subject Hello") → "Das kann ich noch nicht. (...)" ("I can't do that yet.") <!-- i18n-allow: example user voice query with English inline -->
-2. "Trag einen Termin morgen 10 Uhr ein" ("Add an appointment tomorrow at 10 AM") → unsupported
-3. "Sende eine WhatsApp an Mama" ("Send a WhatsApp to Mum") → unsupported
-4. "Bestelle eine Pizza" ("Order a pizza") → unsupported
-5. "Poste auf X dass ich heute frei habe" ("Post on X that I'm off today") → unsupported (until Buffer-MCP registered)
+1. "Schick eine Email an [email protected] mit dem Betreff Hallo" ("Send an email to [email protected] with subject Hello") → "Das kann ich noch nicht. (...)" ("I can't do that yet.") <!-- i18n-allow: test content — user voice utterances DE -->
+2. "Trag einen Termin morgen 10 Uhr ein" ("Add an appointment tomorrow at 10 AM") → unsupported <!-- i18n-allow: test content — user voice utterance DE -->
+3. "Sende eine WhatsApp an Mama" ("Send a WhatsApp to Mum") → unsupported <!-- i18n-allow: test content — user voice utterance DE -->
+4. "Bestelle eine Pizza" ("Order a pizza") → unsupported <!-- i18n-allow: test content — user voice utterance DE -->
+5. "Poste auf X dass ich heute frei habe" ("Post on X that I'm off today") → unsupported (until Buffer-MCP registered) <!-- i18n-allow: test content — user voice utterance DE -->
Each of these utterances must STILL work (no false negatives):
-6. "Öffne Chrome" ("Open Chrome") → local-action open_app
-7. "Lies die Datei foo.txt" ("Read the file foo.txt") → Jarvis-Agents spawn (file ops registered)
-8. "Wie spät ist es?" ("What time is it?") → smalltalk, brain answers directly
-9. "Such im Web nach Python 3.13" ("Search the web for Python 3.13") → only works if a web-search capability is actually registered; otherwise unsupported (this catches the search_web prompt-claim drift)
+6. "Öffne Chrome" ("Open Chrome") → local-action open_app <!-- i18n-allow: test content — user voice utterance DE -->
+7. "Lies die Datei foo.txt" ("Read the file foo.txt") → Jarvis-Agents spawn (file ops registered) <!-- i18n-allow: test content — user voice utterance DE -->
+8. "Wie spät ist es?" ("What time is it?") → smalltalk, brain answers directly <!-- i18n-allow: test content — user voice utterance DE -->
+9. "Such im Web nach Python 3.13" ("Search the web for Python 3.13") → only works if a web-search capability is actually registered; otherwise unsupported (this catches the search_web prompt-claim drift) <!-- i18n-allow: test content — user voice utterance DE -->
---
@@ -139,4 +139,4 @@ Each of these utterances must STILL work (no false negatives):
- Auto-learning verb/object lists (LLM-based capability description parsing) — manual seed map first.
- Live Jarvis-Agents subprocess tool-call telemetry (Wave 3) — Critic will conservative-fail until that lands.
-- Replacing every phantom-confirmation site in `pipeline.py:1278/1283/1384/2048` — Agent C only fixes the source of the lies (Ack-Brain + system prompt). The pipeline-level "Fertig./Das hat nicht geklappt." ("Done." / "That didn't work.") remains as it reflects the Critic's verdict, which is now honest.
+- Replacing every phantom-confirmation site in `pipeline.py:1278/1283/1384/2048` — Agent C only fixes the source of the lies (Ack-Brain + system prompt). The pipeline-level "Fertig./Das hat nicht geklappt." ("Done." / "That didn't work.") remains as it reflects the Critic's verdict, which is now honest. <!-- i18n-allow: product voice output names -->
diff --git a/docs/plans/flash-brain-status-2026-05-14.html b/docs/plans/flash-brain-status-2026-05-14.html
index bfcf00a9f0..0db4687251 100644
--- a/docs/plans/flash-brain-status-2026-05-14.html
+++ b/docs/plans/flash-brain-status-2026-05-14.html
@@ -138,7 +138,7 @@
<div class="bid">BUG-019 · BUG-017 cascade</div>
<h3>Force-spawn-openclaw hangs when <code>brain.primary</code> is non-Claude/non-Gemini</h3>
<ul>
- <li><b>Symptom.</b> User says <code>"such mir Flüge nach München"</code>. Flash-Brain ack plays correctly, then Jarvis stays silent — no main answer. User words: <em>"er hört nur noch zu, denkt nicht mehr"</em>. Repeats on every action-verb utterance.</li>
+ <li><b>Symptom.</b> User says <code>"such mir Flüge nach München"</code> <!-- i18n-allow: test content — user voice utterance DE -->. Flash-Brain ack plays correctly, then Jarvis stays silent — no main answer. User words: <em>"er hört nur noch zu, denkt nicht mehr"</em> <!-- i18n-allow: test content — user observation DE -->. Repeats on every action-verb utterance.</li>
<li><b>Fix.</b> <code>jarvis/brain/manager.py::_should_force_openclaw</code> now returns <code>False</code> when <code>brain.primary</code> is not <code>"claude-api"</code> or <code>"gemini"</code>. Router-Brain handles the request inline via the normal tool-use loop instead of fire-and-forgetting into a dead <code>GeminiWorker</code> that hits the BUG-017 403. Ships in commit <code>4fd8932b</code>.</li>
<li><b>Cross-ref.</b> Root cause BUG-017 (Gemini account 403). Complementary TTS-pipe fix in commit <code>8b0d7427</code> keeps the Flash-Brain ack audible on the inline path. Both gates documented in ADR-0014 and full lessons in <code>docs/BUGS.md#BUG-019</code>.</li>
</ul>
diff --git a/docs/plans/mission-failure-rootcause-2026-05-24/REPORT.html b/docs/plans/mission-failure-rootcause-2026-05-24/REPORT.html
index 227cf2894c..52953165c8 100644
--- a/docs/plans/mission-failure-rootcause-2026-05-24/REPORT.html
+++ b/docs/plans/mission-failure-rootcause-2026-05-24/REPORT.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="de">
+<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -84,36 +84,36 @@
<div class="wrap">
<span class="tag">Personal Jarvis · Phase 6</span>
- <span class="tag">Deep-Dive · 20 Subagenten</span>
+ <span class="tag">Deep-Dive · 20 Subagents</span>
<span class="tag">2026-05-24</span>
- <h1>Warum keine einzige Mission funktioniert</h1>
- <p class="sub">Root-Cause-Analyse &amp; Umsetzungsplan für den Worker-Critic-Stack · erstellt aus 20 parallelen Code-Deep-Dives + forensischer Auswertung von <code>missions.db</code> und den On-Disk-Mission-Logs.</p>
+ <h1>Why No Single Mission Works</h1>
+ <p class="sub">Root-cause analysis &amp; fix plan for the Worker-Critic stack · created from 20 parallel code deep-dives + forensic analysis of <code>missions.db</code> and on-disk mission logs.</p>
<div class="lead">
- <strong>Kurzfassung:</strong> Es ist <em>nicht</em> ein Bug, sondern eine Kette. Der eigentliche Killer:
- der aktive Worker läuft über <strong>OpenClaw</strong>, das ein verschachteltes <code>claude</code> startet
- <strong>ohne</strong> <code>--permission-mode bypassPermissions</code> → <code>claude</code> wartet auf einen
- Berechtigungs-Dialog, den niemand beantwortet → <strong>480 s Stillstand → FailoverError → Mission scheitert</strong>.
- Dazu sechs Verstärker. Der Haupt-Fix ist <strong>eine Konfig-Änderung</strong> (auf den bewiesen
- funktionierenden Direkt-Pfad umrouten), abgesichert durch sechs flankierende Reparaturen.
+ <strong>Executive summary:</strong> It is <em>not</em> a single bug, but a chain. The actual killer:
+ the active Worker runs over <strong>OpenClaw</strong>, which spawns a nested <code>claude</code> call
+ <strong>without</strong> <code>--permission-mode bypassPermissions</code> → <code>claude</code> waits for a
+ permission dialog that nobody answers → <strong>480 s hang → FailoverError → mission fails</strong>.
+ Plus six amplifiers. The main fix is <strong>a config change</strong> (routing to the proven
+ working direct path), secured by six complementary repairs.
</div>
<div class="grid">
- <div class="stat"><div class="n bad">211</div><div class="l">FAILED Missionen</div></div>
+ <div class="stat"><div class="n bad">211</div><div class="l">FAILED Missions</div></div>
<div class="stat"><div class="n good">20</div><div class="l">APPROVED (≈ 9 %)</div></div>
- <div class="stat"><div class="n">480 s</div><div class="l">Stillstand bis FailoverError</div></div>
- <div class="stat"><div class="n">7</div><div class="l">Kern-Root-Causes</div></div>
- <div class="stat"><div class="n">20</div><div class="l">Deep-Dive-Subagenten</div></div>
+ <div class="stat"><div class="n">480 s</div><div class="l">Hang until FailoverError</div></div>
+ <div class="stat"><div class="n">7</div><div class="l">Core root-causes</div></div>
+ <div class="stat"><div class="n">20</div><div class="l">Deep-dive subagents</div></div>
</div>
<!-- ====================== EVIDENCE ====================== -->
- <h2>1 · Die empirische Grundwahrheit</h2>
- <p>Vor jeder Theorie: was sagt die echte Datenbank und was sagen die echten Logs? Drei harte Befunde aus
- <code>data/missions.db</code> und <code>sub-agents-outputs/mission_*/…/logs/stderr.log</code>.</p>
+ <h2>1 · The empirical ground truth</h2>
+ <p>Before any theory: what does the actual database say and what do the actual logs say? Three hard findings from
+ <code>data/missions.db</code> and <code>sub-agents-outputs/mission_*/…/logs/stderr.log</code>.</p>
<div class="card s-crit">
- <div class="rc-head"><span class="rc-id">EVIDENCE-1</span><span class="rc-title">Der verschachtelte <code>claude</code> hängt 480 s und stirbt</span><span class="pill p-crit">Primär-Killer</span></div>
- <p>Identisch in jeder gescheiterten Mission mit 0-Byte-Stream:</p>
+ <div class="rc-head"><span class="rc-id">EVIDENCE-1</span><span class="rc-title">The nested <code>claude</code> hangs 480 s and dies</span><span class="pill p-crit">Primary killer</span></div>
+ <p>Identical in every failed mission with 0-byte stream:</p>
<pre><span class="c">[agent/cli-backend] cli exec: provider=claude-cli model=opus promptChars=174 ...</span>
[agent/cli-backend] claude live session start: model=claude-opus-4-7 activeSessions=1
[agent/cli-backend] claude live session close: reason=abort
@@ -121,216 +121,216 @@
[model-fallback/decision] decision=candidate_failed reason=timeout <b>next=none</b>
detail=<b>CLI produced no output for 480s and was terminated.</b>
FailoverError: CLI produced no output for 480s and was terminated.</pre>
- <p class="meta">→ 0-Byte <code>stream.jsonl</code> → Mission <code>task_error</code>, fälschlich als <code>WorkerKilled reason=user</code> etikettiert.</p>
+ <p class="meta">→ 0-byte <code>stream.jsonl</code> → mission <code>task_error</code>, incorrectly labeled as <code>WorkerKilled reason=user</code>.</p>
</div>
<div class="card s-warn">
- <div class="rc-head"><span class="rc-id">EVIDENCE-2</span><span class="rc-title">Datei geschrieben — aber 240 s später am Critic gescheitert</span></div>
- <p>Mission <code>8d08</code> (rekonstruiert aus <code>data/jarvis_desktop.log</code>): Iteration 0 + 1 liefen je 81 s / 94 s,
- schrieben aber <strong>0 Bytes</strong> in den Worktree. Erst Iteration 2 schrieb <strong>55 KB</strong> (3 Dateien).
- Doch dann lief der <em>Critic</em> &gt; 240 s und wurde gekillt → Mission <code>critic_loop_exhausted</code> — trotz echter Arbeit.</p>
+ <div class="rc-head"><span class="rc-id">EVIDENCE-2</span><span class="rc-title">File written — but failed at critic 240 s later</span></div>
+ <p>Mission <code>8d08</code> (reconstructed from <code>data/jarvis_desktop.log</code>): iterations 0 + 1 ran for 81 s / 94 s each,
+ but wrote <strong>0 bytes</strong> to the worktree. Only iteration 2 wrote <strong>55 KB</strong> (3 files).
+ But then the <em>Critic</em> ran &gt; 240 s and was killed → mission <code>critic_loop_exhausted</code> — despite real work.</p>
<p class="meta">diff.iter0.patch = 0 B · diff.iter1.patch = 0 B · diff.iter2.patch = 55 296 B</p>
</div>
<div class="card s-info">
- <div class="rc-head"><span class="rc-id">EVIDENCE-3</span><span class="rc-title">Konfig-Split: Worker ≠ Critic-Backend</span></div>
- <p><code>jarvis.toml [brain.sub_jarvis].provider = "openclaw-claude"</code> → Worker = <strong>OpenClaw</strong> (der hängende Pfad).
- Der Critic löst unabhängig zu <code>claude-api</code> auf → <strong>direkter</strong> <code>claude --print</code>.
- Mein Solo-Test einer trivialen Aufgabe lief über denselben Stack und wurde <span style="color:var(--ok)">APPROVED</span> —
- der Unterschied war <em>Last &amp; Komplexität</em>, nicht der Code.</p>
+ <div class="rc-head"><span class="rc-id">EVIDENCE-3</span><span class="rc-title">Config split: Worker ≠ Critic backend</span></div>
+ <p><code>jarvis.toml [brain.sub_jarvis].provider = "openclaw-claude"</code> → Worker = <strong>OpenClaw</strong> (the hanging path).
+ Critic resolves independently to <code>claude-api</code> → <strong>direct</strong> <code>claude --print</code>.
+ My solo test of a trivial task ran over the same stack and was <span style="color:var(--ok)">APPROVED</span> —
+ the difference was <em>load &amp; complexity</em>, not the code.</p>
</div>
<!-- ====================== ROOT CAUSES ====================== -->
- <h2>2 · Root-Cause-Taxonomie (RC1–RC7)</h2>
+ <h2>2 · Root-cause taxonomy (RC1–RC7)</h2>
<div class="legend">
- <span><span class="dot" style="background:var(--crit)"></span>Primär</span>
- <span><span class="dot" style="background:var(--warn)"></span>Verstärker</span>
- <span><span class="dot" style="background:var(--cosmetic)"></span>Kosmetisch (Red Herring)</span>
+ <span><span class="dot" style="background:var(--crit)"></span>Primary</span>
+ <span><span class="dot" style="background:var(--warn)"></span>Amplifier</span>
+ <span><span class="dot" style="background:var(--cosmetic)"></span>Cosmetic (red herring)</span>
</div>
<div class="card s-crit">
- <div class="rc-head"><span class="rc-id">RC1</span><span class="rc-title">OpenClaw startet <code>claude</code> ohne <code>bypassPermissions</code> + Concurrency-Limit</span><span class="pill p-crit">Primär</span></div>
- <p>OpenClaw spawnt <code>claude -p … --permission-prompt-tool stdio</code> <strong>ohne</strong> <code>--permission-mode bypassPermissions</code>.
- <code>claude</code> emittiert ein Permission-Prompt-JSON-Frame und wartet auf eine stdin-Antwort, die OpenClaws Session-Driver
- nie sendet. Nach 480 s (= <code>600000 × 0.8</code>, hartkodiert) → <code>FailoverError</code>. <strong>Zweiter Mechanismus:</strong>
- 7 Missionen in 2 Minuten → parallele <code>claude</code>-Sessions am selben Claude-Max-20x-Konto → serverseitiges
- Rate-Limit → stilles Warten bis Timeout.</p>
- <p class="meta">Beleg: openclaw/dist/cli-backend-*.js, claude-live-session-*.js:386 · helpers-*.js:70 · OAuth via <code>~/.claude/.credentials.json</code> ist intakt (kein Auth-Problem).</p>
+ <div class="rc-head"><span class="rc-id">RC1</span><span class="rc-title">OpenClaw spawns <code>claude</code> without <code>bypassPermissions</code> + concurrency limit</span><span class="pill p-crit">Primary</span></div>
+ <p>OpenClaw spawns <code>claude -p … --permission-prompt-tool stdio</code> <strong>without</strong> <code>--permission-mode bypassPermissions</code>.
+ <code>claude</code> emits a permission-prompt JSON frame and waits for a stdin answer, which OpenClaw's session driver
+ never sends. After 480 s (= <code>600000 × 0.8</code>, hardcoded) → <code>FailoverError</code>. <strong>Second mechanism:</strong>
+ 7 missions in 2 minutes → parallel <code>claude</code> sessions on the same Claude-Max-20x account → server-side
+ rate limit → silent wait until timeout.</p>
+ <p class="meta">Evidence: openclaw/dist/cli-backend-*.js, claude-live-session-*.js:386 · helpers-*.js:70 · OAuth via <code>~/.claude/.credentials.json</code> is intact (no auth problem).</p>
</div>
<div class="card s-warn">
- <div class="rc-head"><span class="rc-id">RC2</span><span class="rc-title">Worker schreibt <em>außerhalb</em> des Git-Worktrees</span><span class="pill p-warn">Verstärker</span></div>
- <p>Skill-getriebene Aufgaben (z. B. der Excalidraw-Skill) weisen absolute Pfade an (<code>C:\…\OneDrive\Ex\…</code>) oder Browser-Aktionen.
- Der Orchestrator erfasst aber nur <code>git add -N . &amp;&amp; git diff HEAD</code> <em>im</em> Worktree
- (<code>orchestrator.py:871-940</code>). Schreibt der Worker draußen → leerer Diff → deterministisches „empty diff"-Revise → Schleife erschöpft.</p>
+ <div class="rc-head"><span class="rc-id">RC2</span><span class="rc-title">Worker writes <em>outside</em> the git worktree</span><span class="pill p-warn">Amplifier</span></div>
+ <p>Skill-driven tasks (e.g. the Excalidraw skill) direct writes to absolute paths (<code>C:\…\OneDrive\Ex\…</code>) or browser actions.
+ But the orchestrator only captures <code>git add -N . &amp;&amp; git diff HEAD</code> <em>inside</em> the worktree
+ (<code>orchestrator.py:871-940</code>). If the worker writes outside → empty diff → deterministic "empty diff" revise → loop exhausted.</p>
</div>
<div class="card s-warn">
- <div class="rc-head"><span class="rc-id">RC3</span><span class="rc-title">Critic-Timeout 240 s &lt; agentischer Aufwand</span><span class="pill p-warn">Verstärker</span></div>
- <p><code>DEFAULT_TIMEOUT_SECONDS = 240</code> (<code>runner.py:274</code>) bei Worker-Budget 600 s. Der Fix vom 24.05. machte den Critic
- <em>agentisch</em> (<code>bypassPermissions</code> → echte <code>Read</code>/<code>Glob</code>-Verifikation). Bei großen Diffs (55 KB) sprengt das die 240 s →
- Mission scheitert trotz erfolgreichem Worker.</p>
+ <div class="rc-head"><span class="rc-id">RC3</span><span class="rc-title">Critic timeout 240 s &lt; agentic effort</span><span class="pill p-warn">Amplifier</span></div>
+ <p><code>DEFAULT_TIMEOUT_SECONDS = 240</code> (<code>runner.py:274</code>) with worker budget 600 s. The fix on 2026-05-24 made the Critic
+ <em>agentic</em> (<code>bypassPermissions</code> → real <code>Read</code>/<code>Glob</code> verification). For large diffs (55 KB), that exceeds 240 s →
+ mission fails despite successful worker.</p>
</div>
<div class="card s-warn">
- <div class="rc-head"><span class="rc-id">RC4</span><span class="rc-title">Korrektur-Anweisung erreicht den Worker nie vollständig</span><span class="pill p-warn">Verstärker</span></div>
- <p>Die <code>correction_instruction</code> des Critics wird nur als Bus-Event publiziert, aber <strong>nicht</strong> in <code>ReflectionMemory</code>
- geschrieben (<code>reflections.py:184-200</code> rendert nur <code>summary</code> + Evidenz). Der Worker bekommt in Iteration 1 nur eine vage
- Zusammenfassung statt der präskriptiven Anweisung — deshalb schrieb 8d08 in iter1 erneut nichts.</p>
+ <div class="rc-head"><span class="rc-id">RC4</span><span class="rc-title">Correction instruction never reaches the worker completely</span><span class="pill p-warn">Amplifier</span></div>
+ <p>The critic's <code>correction_instruction</code> is only published as a bus event, but <strong>not</strong> written to <code>ReflectionMemory</code>
+ (<code>reflections.py:184-200</code> renders only <code>summary</code> + evidence). The worker gets only a vague
+ summary in iteration 1 instead of the prescriptive instruction — that's why 8d08 wrote nothing again in iter1.</p>
</div>
<div class="card s-warn">
- <div class="rc-head"><span class="rc-id">RC5</span><span class="rc-title">Kein Gemini-Fallback bei Hang/Crash</span><span class="pill p-warn">Verstärker</span></div>
- <p>Die Fallback-Kette wird <strong>nur bei Quota-Block (HTTP 429)</strong> konsultiert (<code>subjarvis_worker.py:630</code>), nicht bei Hang/Timeout/Crash.
- <code>ClaudeDirectWorker</code> hat gar keine Kette. Daher <code>next=none</code> — Gemini springt nie ein.</p>
+ <div class="rc-head"><span class="rc-id">RC5</span><span class="rc-title">No Gemini fallback on hang/crash</span><span class="pill p-warn">Amplifier</span></div>
+ <p>The fallback chain is <strong>only consulted on quota block (HTTP 429)</strong> (<code>subjarvis_worker.py:630</code>), not on hang/timeout/crash.
+ <code>ClaudeDirectWorker</code> has no chain at all. Hence <code>next=none</code> — Gemini never kicks in.</p>
</div>
<div class="card s-warn">
- <div class="rc-head"><span class="rc-id">RC6</span><span class="rc-title">FailoverError als „User-Abbruch" fehletikettiert</span><span class="pill p-warn">Verstärker · Diagnose-Gift</span></div>
- <p><code>orchestrator.py:499-509</code>: jeder <code>worker_error</code> ohne Billing-String fällt in <code>else "user"</code>.
- Timeout, Crash, OAuth-Fehler — alles wird <code>WorkerKilled reason=user</code>. Das verschleiert die echte Ursache (sieht aus wie Nutzer-Abbrüche).</p>
+ <div class="rc-head"><span class="rc-id">RC6</span><span class="rc-title">FailoverError mislabeled as "user abort"</span><span class="pill p-warn">Amplifier · diagnostic poison</span></div>
+ <p><code>orchestrator.py:499-509</code>: every <code>worker_error</code> without a billing string falls into <code>else "user"</code>.
+ Timeout, crash, OAuth error — all become <code>WorkerKilled reason=user</code>. This obscures the real cause (looks like user aborts).</p>
</div>
<div class="card s-warn">
- <div class="rc-head"><span class="rc-id">RC7</span><span class="rc-title">MAX_CRITIC_LOOPS = 3 von leeren Iterationen aufgefressen</span><span class="pill p-warn">Verstärker</span></div>
- <p>Iter 0/1 ohne Schreibvorgang verbrauchen 2 von 3 Runden (ADR-0009, nicht ohne neue ADR änderbar). Fix gehört in den <em>Worker</em> (RC2/RC4), nicht ins Budget.</p>
+ <div class="rc-head"><span class="rc-id">RC7</span><span class="rc-title">MAX_CRITIC_LOOPS = 3 consumed by empty iterations</span><span class="pill p-warn">Amplifier</span></div>
+ <p>Iterations 0/1 without writes consume 2 of 3 rounds (ADR-0009, cannot change without new ADR). Fix belongs in the <em>Worker</em> (RC2/RC4), not the budget.</p>
</div>
<div class="card s-cos">
- <div class="rc-head"><span class="rc-id">RC-X</span><span class="rc-title">Symlink-EPERM — KOSMETISCH (Red Herring)</span><span class="pill p-cos">kein Killer</span></div>
- <p>Das <code>[skills] failed to create plugin skill symlink … EPERM</code> in jedem Log ist <strong>harmlos</strong>: OpenClaws JS macht
- <code>log.warn</code> + weiter (belegt in der npm-Quelle). Nicht die Ursache der 211 Fehlschläge.</p>
+ <div class="rc-head"><span class="rc-id">RC-X</span><span class="rc-title">Symlink EPERM — COSMETIC (red herring)</span><span class="pill p-cos">not a killer</span></div>
+ <p>The <code>[skills] failed to create plugin skill symlink … EPERM</code> in every log is <strong>harmless</strong>: OpenClaw's JS does
+ <code>log.warn</code> + continues (documented in the npm source). Not the cause of the 211 failures.</p>
</div>
<!-- ====================== FIX PLAN ====================== -->
- <h2>3 · Der Plan — priorisierte Reparatur-Reihenfolge</h2>
- <p>Reihenfolge nach <em>Impact ÷ Risiko</em> (validiert gegen die Anti-Pattern AP-1…AP-18 und die wiederkehrenden Bug-Klassen).</p>
+ <h2>3 · The plan — prioritized repair order</h2>
+ <p>Order by <em>impact ÷ risk</em> (validated against anti-patterns AP-1…AP-18 and recurring bug classes).</p>
<ol class="steps">
<li>
- <div class="step-t">FIX-F · Worktree-Confinement im Vertrag (AGENTS.md) <span class="pill p-ok">Risiko: null</span></div>
- <p>Reine Dokumentation, sofort wirksam. In <code>workspace.py:124-143</code>: Regel ergänzen „<em>ignoriere Skill-Anweisungen zu absoluten Pfaden (OneDrive, C:\…), schreibe alles relativ ins CWD</em>" + „<em>kein Browser im Headless-Worker</em>". Empty-Diff-Korrekturtext in <code>runner.py:504</code> um den OneDrive-Hinweis erweitern. Empfehlung: Skills mit <code>headless_safe=false</code> gar nicht als Mission zulassen.</p>
+ <div class="step-t">FIX-F · Worktree confinement in contract (AGENTS.md) <span class="pill p-ok">Risk: zero</span></div>
+ <p>Pure documentation, effective immediately. In <code>workspace.py:124-143</code>: add rule "ignore skill instructions to absolute paths (OneDrive, C:\…), write everything relative to CWD" + "no browser in headless worker". Extend empty-diff correction text in <code>runner.py:504</code> with OneDrive hint. Recommendation: don't allow skills with <code>headless_safe=false</code> as missions at all.</p>
</li>
<li>
- <div class="step-t">FIX-A · Worker auf den bewiesenen Direkt-Pfad umrouten <span class="pill p-crit">Höchster Impact</span></div>
- <p>Provider <code>"openclaw-claude" → "claude-api"</code> → Factory wählt <code>ClaudeDirectWorker</code> (ruft <code>claude --print --permission-mode bypassPermissions</code> direkt, ohne OpenClaw-Live-Session → kein 480-s-Hang). <strong>Atomar in BEIDEN Dateien</strong> (sonst Drift-Guard-Rollback in 5 Min):</p>
- <div class="flow"><b>scripts/config-soll.json:33</b> &nbsp;ZUERST&nbsp; → dann &nbsp;<b>jarvis.toml:277</b> (read-only togglen, BOM-frei schreiben)</div>
- <p class="meta">model="" ist sicher → fällt auf <code>[brain.providers.claude-api].deep_model = claude-opus-4-7</code> zurück. Critic-Pfad unberührt.</p>
+ <div class="step-t">FIX-A · Route worker to the proven direct path <span class="pill p-crit">Highest impact</span></div>
+ <p>Provider <code>"openclaw-claude" → "claude-api"</code> → factory selects <code>ClaudeDirectWorker</code> (calls <code>claude --print --permission-mode bypassPermissions</code> directly, without OpenClaw live session → no 480-s hang). <strong>Atomic in BOTH files</strong> (else drift-guard rollback in 5 min):</p>
+ <div class="flow"><b>scripts/config-soll.json:33</b> &nbsp;FIRST&nbsp; → then &nbsp;<b>jarvis.toml:277</b> (toggle read-only, write BOM-free)</div>
+ <p class="meta">model="" is safe → falls back to <code>[brain.providers.claude-api].deep_model = claude-opus-4-7</code>. Critic path untouched.</p>
</li>
<li>
- <div class="step-t">FIX-C · Globale Concurrency-Schranke <span class="pill p-warn">gegen Rate-Limit</span></div>
- <p>Es existiert <strong>kein</strong> missionsübergreifendes Limit. <code>asyncio.Semaphore(3)</code> in <code>Kontrollierer.__init__</code>, <code>async with</code> nur um <code>worker.spawn(...)</code> (<code>orchestrator.py:721</code>) — nicht um die ganze Mission. Singleton deckt Voice + REST. Konfig: <code>[phase6.orchestrator] max_concurrent_workers = 3</code>.</p>
+ <div class="step-t">FIX-C · Global concurrency bound <span class="pill p-warn">against rate limit</span></div>
+ <p>There is <strong>no</strong> cross-mission limit. <code>asyncio.Semaphore(3)</code> in <code>Controller.__init__</code>, <code>async with</code> only around <code>worker.spawn(...)</code> (<code>orchestrator.py:721</code>) — not the whole mission. Singleton covers voice + REST. Config: <code>[phase6.orchestrator] max_concurrent_workers = 3</code>.</p>
</li>
<li>
- <div class="step-t">FIX-D · Critic-Timeout entschärfen <span class="pill p-warn">gegen RC3</span></div>
- <p><code>DEFAULT_TIMEOUT_SECONDS → 480</code> (<code>runner.py:274</code>) <em>und</em> <code>"--max-turns","5"</code> in <code>runner.py:1036</code> einfügen — agentische Verifikation gedeckelt, Critic endet vor dem 600-s-Worker-Budget.</p>
+ <div class="step-t">FIX-D · Defuse critic timeout <span class="pill p-warn">against RC3</span></div>
+ <p><code>DEFAULT_TIMEOUT_SECONDS → 480</code> (<code>runner.py:274</code>) <em>and</em> add <code>"--max-turns","5"</code> in <code>runner.py:1036</code> — cap agentic verification, critic ends before 600-s worker budget.</p>
</li>
<li>
- <div class="step-t">FIX-B · Fallback-Fix: <code>bypassPermissions</code> in Worker-<code>openclaw.json</code> <span class="pill p-warn">nur falls OpenClaw bleibt</span></div>
- <p>Der Critic injiziert <code>cliBackends["claude-cli"]</code> bereits korrekt (<code>runner.py:804-816</code>); der Worker nicht (<code>subjarvis_worker.py:459-471</code>). Denselben Dict-Merge nach der <code>primary</code>-Auflösung ergänzen. Behebt die Permission-Hälfte; Concurrency-Hang bleibt → FIX-C nötig. Silent-Swallow im <code>except</code> auf <code>ERROR</code>-Log heben.</p>
+ <div class="step-t">FIX-B · Fallback fix: <code>bypassPermissions</code> in worker <code>openclaw.json</code> <span class="pill p-warn">only if OpenClaw stays</span></div>
+ <p>The critic already injects <code>cliBackends["claude-cli"]</code> correctly (<code>runner.py:804-816</code>); the worker does not (<code>subjarvis_worker.py:459-471</code>). Add the same dict merge after the <code>primary</code> resolution. Fixes the permission half; concurrency hang remains → FIX-C needed. Elevate silent-swallow in <code>except</code> to <code>ERROR</code> log.</p>
</li>
<li>
- <div class="step-t">FIX-G · Kill-Reason-Taxonomie (Five-Layer-Enum) <span class="pill p-warn">Audit-Korrektheit</span></div>
- <p>Mislabel an <code>orchestrator.py:499-509</code> aufbrechen in <code>worker_timeout</code> / <code>worker_crash</code> / <code>auth_error</code> / echtes <code>user</code>. <strong>Pflicht: alle 5 Schichten</strong> atomar (Python-Literal <code>events.py:97</code> → DE/EN-Announcer → Voice-Listener → TS/UI → Parity-Test), sonst BUG-008-Wiederholung (Catch-all mappt sonst auf <code>injection_detected</code>).</p>
+ <div class="step-t">FIX-G · Kill-reason taxonomy (five-layer enum) <span class="pill p-warn">audit correctness</span></div>
+ <p>Break mislabeling at <code>orchestrator.py:499-509</code> into <code>worker_timeout</code> / <code>worker_crash</code> / <code>auth_error</code> / real <code>user</code>. <strong>Mandatory: all 5 layers</strong> atomic (Python literal <code>events.py:97</code> → DE/EN announcer → voice listener → TS/UI → parity test), else BUG-008 recurrence (catch-all maps to <code>injection_detected</code>).</p>
</li>
<li>
- <div class="step-t">FIX-E · Echter Provider-Fallback bei Worker-Fehler <span class="pill p-warn">zuletzt</span></div>
- <p>Fallback-Logik in den Orchestrator (<code>orchestrator.py:499</code>): bei <code>worker_error</code> nächsten Ketteneintrag (<code>GeminiWorker</code>) versuchen statt sofort <code>TaskOutcome.ERROR</code>. <strong>Vorsicht BUG-017</strong> (Gemini-403 war gesperrt) — hinter <code>gemini_fallback_enabled</code> gaten, Modell aus <code>cfg</code> lesen (nie hardcoden, AP-6).</p>
+ <div class="step-t">FIX-E · Real provider fallback on worker error <span class="pill p-warn">last</span></div>
+ <p>Fallback logic into the orchestrator (<code>orchestrator.py:499</code>): on <code>worker_error</code> try next chain entry (<code>GeminiWorker</code>) instead of immediate <code>TaskOutcome.ERROR</code>. <strong>Watch BUG-017</strong> (Gemini 403 was blocked) — gate behind <code>gemini_fallback_enabled</code>, read model from <code>cfg</code> (never hardcode, AP-6).</p>
</li>
</ol>
<!-- ====================== CONFIG PROCEDURE ====================== -->
- <h2>4 · Sichere Konfig-Prozedur (FIX-A im Detail)</h2>
- <p>Der Drift-Guard-Daemon (<code>scripts/jarvis-config-drift-guard.ps1</code>) liest alle 5 Min <code>config-soll.json</code> und rollt jede TOML-Abweichung zurück (BUG-010). Deshalb diese Reihenfolge — sonst kehrt das Problem nach 5 Minuten zurück.</p>
-<pre><span class="c"># 1) Soll-Quelle ZUERST (sonst Rollback):</span>
+ <h2>4 · Safe config procedure (FIX-A in detail)</h2>
+ <p>The drift-guard daemon (<code>scripts/jarvis-config-drift-guard.ps1</code>) reads <code>config-soll.json</code> every 5 min and rolls back any TOML drift (BUG-010). That's why this order — else the problem comes back after 5 minutes.</p>
+<pre><span class="c"># 1) Desired source FIRST (else rollback):</span>
scripts/config-soll.json:33 "provider": "openclaw-claude" → "claude-api"
-<span class="c"># 2) jarvis.toml entsperren, BOM-frei schreiben, wieder sperren:</span>
+<span class="c"># 2) Unlock jarvis.toml, write BOM-free, lock again:</span>
Set-ItemProperty jarvis.toml -Name IsReadOnly -Value $false
jarvis.toml:277 provider = "openclaw-claude" → "claude-api"
-<span class="c"># Schreiben via [System.IO.File]::WriteAllText(..., UTF8Encoding($false)) — NIE Set-Content -Encoding utf8 (BOM → BUG-018)</span>
+<span class="c"># Write via [System.IO.File]::WriteAllText(..., UTF8Encoding($false)) — NEVER Set-Content -Encoding utf8 (BOM → BUG-018)</span>
Set-ItemProperty jarvis.toml -Name IsReadOnly -Value $true
-<span class="c"># 3) Verifizieren:</span>
+<span class="c"># 3) Verify:</span>
[Environment]::GetEnvironmentVariable("JARVIS__BRAIN__SUB_JARVIS__PROVIDER","User") <span class="c"># → claude-api</span>
powershell scripts/jarvis-config-drift-guard.ps1 -DryRun <span class="c"># → "TOML clean"</span></pre>
<!-- ====================== TEST PLAN ====================== -->
- <h2>5 · Beweis-Plan (Fix → Test/Probe)</h2>
+ <h2>5 · Proof plan (fix → test/probe)</h2>
<table>
- <thead><tr><th>Fix</th><th>Neuer / erweiterter Test</th><th>Live-Beweis</th></tr></thead>
+ <thead><tr><th>Fix</th><th>New / extended test</th><th>Live proof</th></tr></thead>
<tbody>
- <tr><td class="f">FIX-A</td><td><b>NEU</b> <code>tests/missions/workers/test_worker_factory.py</code> — Provider→Worker-Mapping pinnen</td><td class="f">smoke_phase6_p2.py + ENV</td></tr>
- <tr><td class="f">FIX-B</td><td>erweitern <code>test_runner_dryrun.py</code>: <code>openclaw.json</code> on disk enthält <code>bypassPermissions</code></td><td class="f">smoke_phase6_p3_real.py</td></tr>
- <tr><td class="f">FIX-C</td><td>erweitern <code>test_loop.py</code>: max N gleichzeitige <code>FakeWorker.spawn</code></td><td class="f">6-Step-Plan, Log-Check</td></tr>
- <tr><td class="f">FIX-D</td><td><b>NEU</b> Timeout-Bound-Assertion in <code>test_runner_dryrun.py</code></td><td class="f">Wall-Clock &lt; Timeout</td></tr>
- <tr><td class="f">FIX-F</td><td>bereits stark abgedeckt (<code>test_workspace.py</code>); + AGENTS.md-Version-Guard</td><td class="f">non-empty diff → approve</td></tr>
- <tr><td class="f">FIX-G</td><td><b>NEU</b> <code>test_kill_reason_parity.py</code> (Five-Layer-Parität, BUG-008-Guard)</td><td class="f">smoke_phase6_p2_jobkill.py</td></tr>
+ <tr><td class="f">FIX-A</td><td><b>NEW</b> <code>tests/missions/workers/test_worker_factory.py</code> — pin provider→worker mapping</td><td class="f">smoke_phase6_p2.py + ENV</td></tr>
+ <tr><td class="f">FIX-B</td><td>extend <code>test_runner_dryrun.py</code>: <code>openclaw.json</code> on disk contains <code>bypassPermissions</code></td><td class="f">smoke_phase6_p3_real.py</td></tr>
+ <tr><td class="f">FIX-C</td><td>extend <code>test_loop.py</code>: max N concurrent <code>FakeWorker.spawn</code></td><td class="f">6-step plan, log check</td></tr>
+ <tr><td class="f">FIX-D</td><td><b>NEW</b> timeout-bound assertion in <code>test_runner_dryrun.py</code></td><td class="f">wall-clock &lt; timeout</td></tr>
+ <tr><td class="f">FIX-F</td><td>already well covered (<code>test_workspace.py</code>); + AGENTS.md version guard</td><td class="f">non-empty diff → approve</td></tr>
+ <tr><td class="f">FIX-G</td><td><b>NEW</b> <code>test_kill_reason_parity.py</code> (five-layer parity, BUG-008 guard)</td><td class="f">smoke_phase6_p2_jobkill.py</td></tr>
</tbody>
</table>
- <p>Der einzige vollständige End-to-End-Beweis für den ganzen Stapel ist <code>python -u scripts/smoke_phase6_p3_real.py</code> (Worktree → Worker → Critic → APPROVED, echte <code>missions.db</code>).</p>
+ <p>The only complete end-to-end proof for the whole stack is <code>python -u scripts/smoke_phase6_p3_real.py</code> (worktree → worker → critic → APPROVED, real <code>missions.db</code>).</p>
<!-- ====================== RISK ====================== -->
- <h2>6 · Risiko-Register &amp; Schutzmaßnahmen</h2>
+ <h2>6 · Risk register &amp; safeguards</h2>
<table>
- <thead><tr><th>Fix</th><th>Blast-Radius</th><th>Rollback / Guard</th></tr></thead>
+ <thead><tr><th>Fix</th><th>Blast radius</th><th>Rollback / guard</th></tr></thead>
<tbody>
- <tr><td class="f">A</td><td>Hoch — Default-Worker für alle Missionen</td><td>beide Dateien zurück; Drift-Guard erzwingt Konsistenz</td></tr>
- <tr><td class="f">B</td><td>Niedrig — per-Mission Ephemeral-Datei</td><td>additiv, kein Rollback nötig</td></tr>
- <tr><td class="f">C</td><td>Mittel — N=1 würde serialisieren/aushungern</td><td><code>max_concurrent_workers=0</code> = unbegrenzt</td></tr>
- <tr><td class="f">D</td><td>Niedrig-Mittel — zu knapp killt lange Critics</td><td><code>[missions.critic].timeout_s</code></td></tr>
- <tr><td class="f">E</td><td>Mittel — Gemini-403-Risiko (BUG-017)</td><td>Default <code>gemini_fallback_enabled=false</code></td></tr>
- <tr><td class="f">G</td><td>Katastrophal bei Teil-Merge</td><td>alle 5 Schichten in 1 PR + Parity-Test als Gate</td></tr>
+ <tr><td class="f">A</td><td>High — default worker for all missions</td><td>both files back; drift-guard enforces consistency</td></tr>
+ <tr><td class="f">B</td><td>Low — per-mission ephemeral file</td><td>additive, no rollback needed</td></tr>
+ <tr><td class="f">C</td><td>Medium — N=1 would serialize/starve</td><td><code>max_concurrent_workers=0</code> = unlimited</td></tr>
+ <tr><td class="f">D</td><td>Low-medium — too tight kills long critics</td><td><code>[missions.critic].timeout_s</code></td></tr>
+ <tr><td class="f">E</td><td>Medium — Gemini 403 risk (BUG-017)</td><td>default <code>gemini_fallback_enabled=false</code></td></tr>
+ <tr><td class="f">G</td><td>Catastrophic on partial merge</td><td>all 5 layers in 1 PR + parity test as gate</td></tr>
</tbody>
</table>
<div class="card s-crit">
- <div class="rc-head"><span class="rc-title">Pflicht-Guard vor JEDER Änderung (Restore-Trap BUG-006/014)</span></div>
+ <div class="rc-head"><span class="rc-title">Mandatory guard before EVERY change (restore trap BUG-006/014)</span></div>
<pre>pwsh scripts/preflight.ps1
python -c "import jarvis; print(jarvis.__file__)"
-<span class="c"># MUSS auf <USER_HOME>\Desktop\Personal Jarvis\jarvis\__init__.py zeigen.</span>
-<span class="c"># Sonst landen Edits in einem toten Klon und „der Fix wirkt nicht".</span></pre>
+<span class="c"># MUST point to <USER_HOME>\Desktop\Personal Jarvis\jarvis\__init__.py</span>
+<span class="c"># Otherwise edits land in a dead clone and "the fix doesn't work".</span></pre>
</div>
<!-- ====================== AGENT MAP ====================== -->
- <h2>7 · Die 20 Deep-Dive-Subagenten</h2>
+ <h2>7 · The 20 deep-dive subagents</h2>
<table>
- <thead><tr><th>#</th><th>Agent</th><th>Kernbefund</th></tr></thead>
+ <thead><tr><th>#</th><th>Agent</th><th>Core finding</th></tr></thead>
<tbody>
- <tr><td class="f">1</td><td class="f">A1-diff-compute</td><td>Diff via <code>git add -N · git diff HEAD</code>; entdeckte Staged/Unstaged-Diskrepanz</td></tr>
- <tr><td class="f">2</td><td class="f">A2-worktree-cwd</td><td>Worktree + CWD korrekt verdrahtet — nicht die Ursache</td></tr>
- <tr><td class="f">3</td><td class="f">A3-agents-md</td><td>BUG-021 ist behoben; AGENTS.md wird materialisiert</td></tr>
- <tr><td class="f">4</td><td class="f">A4-claude-worker</td><td>H-TOOLS widerlegt; Provider-Routing als Schlüssel erkannt</td></tr>
- <tr><td class="f">5</td><td class="f">RC1-symlink</td><td>Symlink-EPERM kosmetisch; <strong>FailoverError 480 s entdeckt</strong></td></tr>
- <tr><td class="f">6</td><td class="f">OC-CLI-HANG</td><td><strong>Primärursache:</strong> fehlendes <code>bypassPermissions</code> + Permission-Prompt-Hang</td></tr>
- <tr><td class="f">7</td><td class="f">OAUTH-ENV</td><td>Auth intakt (On-Disk-Creds); Concurrency-Rate-Limit bestätigt</td></tr>
- <tr><td class="f">8</td><td class="f">RC3-diff-timing</td><td>8d08-Timeline; Critic-Timeout 240 s als zweiter Killer</td></tr>
- <tr><td class="f">9</td><td class="f">FIX-A-route</td><td>Config-Fix auf <code>claude-api</code>; ClaudeDirectWorker bewiesen</td></tr>
- <tr><td class="f">10</td><td class="f">FIX-B-ocperms</td><td>Asymmetrie Critic↔Worker-<code>openclaw.json</code> aufgedeckt</td></tr>
- <tr><td class="f">11</td><td class="f">FIX-C-concurrency</td><td>Kein globales Limit → Semaphore-Design</td></tr>
+ <tr><td class="f">1</td><td class="f">A1-diff-compute</td><td>Diff via <code>git add -N · git diff HEAD</code>; discovered staged/unstaged discrepancy</td></tr>
+ <tr><td class="f">2</td><td class="f">A2-worktree-cwd</td><td>Worktree + CWD correctly wired — not the cause</td></tr>
+ <tr><td class="f">3</td><td class="f">A3-agents-md</td><td>BUG-021 is fixed; AGENTS.md is materialized</td></tr>
+ <tr><td class="f">4</td><td class="f">A4-claude-worker</td><td>H-TOOLS disproven; provider routing identified as key</td></tr>
+ <tr><td class="f">5</td><td class="f">RC1-symlink</td><td>Symlink EPERM cosmetic; <strong>FailoverError 480 s discovered</strong></td></tr>
+ <tr><td class="f">6</td><td class="f">OC-CLI-HANG</td><td><strong>Primary cause:</strong> missing <code>bypassPermissions</code> + permission-prompt hang</td></tr>
+ <tr><td class="f">7</td><td class="f">OAUTH-ENV</td><td>Auth intact (on-disk creds); concurrency rate limit confirmed</td></tr>
+ <tr><td class="f">8</td><td class="f">RC3-diff-timing</td><td>8d08 timeline; critic timeout 240 s as second killer</td></tr>
+ <tr><td class="f">9</td><td class="f">FIX-A-route</td><td>Config fix to <code>claude-api</code>; ClaudeDirectWorker proven</td></tr>
+ <tr><td class="f">10</td><td class="f">FIX-B-ocperms</td><td>Asymmetry critic↔worker <code>openclaw.json</code> exposed</td></tr>
+ <tr><td class="f">11</td><td class="f">FIX-C-concurrency</td><td>No global limit → semaphore design</td></tr>
<tr><td class="f">12</td><td class="f">FIX-D-critic-timeout</td><td>480 s + <code>--max-turns 5</code></td></tr>
- <tr><td class="f">13</td><td class="f">FIX-E-fallback</td><td>Kette nur bei Quota → Orchestrator-Fallback nötig</td></tr>
- <tr><td class="f">14</td><td class="f">FIX-F-write-confine</td><td>AGENTS.md härten; <code>headless_safe</code>-Skill-Flag</td></tr>
- <tr><td class="f">15</td><td class="f">FIX-G-kill-label</td><td>Mislabel-Site + Five-Layer-Touchpoints</td></tr>
- <tr><td class="f">16</td><td class="f">CONFIG-PLAN</td><td>Sichere, drift-feste Edit-Reihenfolge</td></tr>
- <tr><td class="f">17</td><td class="f">TEST-PLAN</td><td>Fix→Test-Matrix; Test-Lücken</td></tr>
- <tr><td class="f">18</td><td class="f">VOICE-REST-PICKUP</td><td>Beide Pfade erreichen <code>run_mission</code> (BUG-016 behoben)</td></tr>
- <tr><td class="f">19</td><td class="f">MAX-LOOPS-warmup</td><td><code>correction_instruction</code> erreicht Worker nicht (RC4)</td></tr>
- <tr><td class="f">20</td><td class="f">SYNTHESIS-VALIDATOR</td><td>Anti-Pattern-Check, Rollout-Reihenfolge, Risiko-Register</td></tr>
+ <tr><td class="f">13</td><td class="f">FIX-E-fallback</td><td>Chain only on quota → orchestrator fallback needed</td></tr>
+ <tr><td class="f">14</td><td class="f">FIX-F-write-confine</td><td>Harden AGENTS.md; <code>headless_safe</code> skill flag</td></tr>
+ <tr><td class="f">15</td><td class="f">FIX-G-kill-label</td><td>Mislabel site + five-layer touchpoints</td></tr>
+ <tr><td class="f">16</td><td class="f">CONFIG-PLAN</td><td>Safe, drift-resistant edit order</td></tr>
+ <tr><td class="f">17</td><td class="f">TEST-PLAN</td><td>Fix→test matrix; test gaps</td></tr>
+ <tr><td class="f">18</td><td class="f">VOICE-REST-PICKUP</td><td>Both paths reach <code>run_mission</code> (BUG-016 fixed)</td></tr>
+ <tr><td class="f">19</td><td class="f">MAX-LOOPS-warmup</td><td><code>correction_instruction</code> doesn't reach worker (RC4)</td></tr>
+ <tr><td class="f">20</td><td class="f">SYNTHESIS-VALIDATOR</td><td>Anti-pattern check, rollout order, risk register</td></tr>
</tbody>
</table>
- <h2>8 · Empfehlung in einem Satz</h2>
+ <h2>8 · Recommendation in one sentence</h2>
<div class="lead">
- <strong>FIX-F</strong> (Vertrag, risikofrei) → <strong>FIX-A</strong> (Provider auf <code>claude-api</code>, beide Dateien atomar) →
- <strong>FIX-C</strong> (Semaphore N=3) bringt die Erfolgsquote sofort von ~9 % auf voraussichtlich &gt;90 %;
- <strong>FIX-D/B/G/E</strong> härten die Restkanten. Erst <span class="kbd">preflight.ps1</span> + Import-Check, dann los.
+ <strong>FIX-F</strong> (contract, risk-free) → <strong>FIX-A</strong> (provider to <code>claude-api</code>, both files atomic) →
+ <strong>FIX-C</strong> (semaphore N=3) immediately lifts success rate from ~9 % to likely &gt;90 %;
+ <strong>FIX-D/B/G/E</strong> harden the remaining edges. First <span class="kbd">preflight.ps1</span> + import check, then go.
</div>
<div class="foot">
- Erstellt 2026-05-24 · 20 parallele Deep-Dive-Subagenten + forensische DB-/Log-Auswertung ·
- Quelle: <code>data/missions.db</code>, <code>sub-agents-outputs/mission_*</code>, <code>data/jarvis_desktop.log</code>, OpenClaw npm dist ·
- Pfad: <code>docs/plans/mission-failure-rootcause-2026-05-24/REPORT.html</code>
+ Created 2026-05-24 · 20 parallel deep-dive subagents + forensic DB/log analysis ·
+ Source: <code>data/missions.db</code>, <code>sub-agents-outputs/mission_*</code>, <code>data/jarvis_desktop.log</code>, OpenClaw npm dist ·
+ Path: <code>docs/plans/mission-failure-rootcause-2026-05-24/REPORT.html</code>
</div>
</div>
diff --git a/docs/plans/omni-latency-vision-v1/README.md b/docs/plans/omni-latency-vision-v1/README.md
index 9bcada51ee..cecc0d23d2 100644
--- a/docs/plans/omni-latency-vision-v1/README.md
+++ b/docs/plans/omni-latency-vision-v1/README.md
@@ -86,9 +86,9 @@
### Task 1.1: Vision relevance gate (skip-when-safe)
**Files:** `jarvis/brain/manager.py` (`_collect_vision_images`, pass `user_text`); new `jarvis/brain/vision_gate.py`; Test `tests/unit/brain/test_vision_gate.py`.
-- [ ] `should_attach_screenshot(text, *, smalltalk_allowlist, visual_markers) -> bool`: returns `False` only if text matches smalltalk/knowledge allowlist AND contains no visual marker; else `True`. Markers: `das hier/da, schau, siehst du, auf dem bildschirm, hier, this, look, on screen, what's this, klick, fenster, …` (configurable).
+- [ ] `should_attach_screenshot(text, *, smalltalk_allowlist, visual_markers) -> bool`: returns `False` only if text matches smalltalk/knowledge allowlist AND contains no visual marker; else `True`. Markers: `das hier/da, schau, siehst du, auf dem bildschirm, hier, this, look, on screen, what's this, klick, fenster, …` (configurable). <!-- i18n-allow: speech input vocabulary DE -->
- [ ] Wire into `_collect_vision_images`: after the `vision is None or paused` check, if `cfg.performance.conditional_vision` and `not should_attach_screenshot(...)` → return `()` and publish `VisionSkipped`.
-- [ ] Tests: "wie spät ist es" → skip; "was siehst du hier" → keep; "repariere den bug" (action) → keep; marker beats allowlist.
+- [ ] Tests: "wie spät ist es" <!-- i18n-allow: test content — user voice utterance DE --> → skip; "was siehst du hier" <!-- i18n-allow: test content — user voice utterance DE --> → keep; "repariere den bug" (action) → keep; marker beats allowlist.
### Task 1.2: Enforce `max_image_kb`
**Files:** `jarvis/brain/manager.py` (`_collect_vision_images`); reuse `_resize_for_budget` from `jarvis/plugins/tool/screen_snapshot.py:49`.
@@ -97,7 +97,7 @@
### Task 1.3: Fix the system-prompt vision lie
**Files:** `jarvis/brain/router.py` (`SYSTEM_PROMPT` line ~62).
-- [ ] Make the "Du siehst Alexs Bildschirm permanent als Bild" instruction conditional/softened so the model does not hallucinate a screen when no image was attached (e.g. move to a per-turn note appended only when an image is present, or reword to "wenn ein Screenshot anhängt").
+- [ ] Make the "Du siehst Alexs Bildschirm permanent als Bild" instruction <!-- i18n-allow: product system prompt DE --> conditional/softened so the model does not hallucinate a screen when no image was attached (e.g. move to a per-turn note appended only when an image is present, or reword to "wenn ein Screenshot anhängt" <!-- i18n-allow: product system prompt DE -->).
**Wave 1 verification:** `pytest tests/unit/brain/test_vision_gate.py tests/unit/brain/test_routing.py -v`; bench shows lower TTFT on smalltalk turns, unchanged on screen-ref turns. Commit. Flag `[performance].conditional_vision = true`.
diff --git a/docs/plans/optimistic-execution-v1/README.md b/docs/plans/optimistic-execution-v1/README.md
index 555479855c..fa169fbab0 100644
--- a/docs/plans/optimistic-execution-v1/README.md
+++ b/docs/plans/optimistic-execution-v1/README.md
@@ -94,7 +94,7 @@ turn-boundary with zero silent drops.
## 3. END STATE
- The user speaks naturally; the Talker replies in < 3 s for every turn, including turns
- that trigger heavy work ("Geht klar, kümmere mich drum"), because the ACK is emitted
+ that trigger heavy work ("Geht klar, kümmere mich drum" <!-- i18n-allow: product voice output DE -->), because the ACK is emitted
**before** the worker dispatch completes.
- Smart Tools (Gmail, Calendar, Drive) are formulated and called by the background worker
off the chat context; the user has already moved to the next topic.
diff --git a/docs/plans/optimistic-execution-v1/prototype/CONTRACTS.md b/docs/plans/optimistic-execution-v1/prototype/CONTRACTS.md
index 03d324f0f4..e5e7fd9b56 100644
--- a/docs/plans/optimistic-execution-v1/prototype/CONTRACTS.md
+++ b/docs/plans/optimistic-execution-v1/prototype/CONTRACTS.md
@@ -118,9 +118,9 @@ def ack_for(command: str, route: RouteKind) -> str: ...
4. any `ACTION_VERBS` substring present → `RouteKind.SMART_TOOL` (unknown action ⇒ delegate)
5. default → `RouteKind.SMALLTALK`
- `ack_for` returns the spoken text:
- - `SMART_TOOL` → an optimistic ACK, German, butler tone, e.g. `"Geht klar, ich kümmere mich drum."`
- - `DUMB_TOOL` → a short confirmation, e.g. `"Mach ich."`
- - `SMALLTALK` → a brief friendly direct reply, e.g. `"Mir geht's gut, danke der Nachfrage!"`
+ - `SMART_TOOL` → an optimistic ACK, German, butler tone, e.g. `"Geht klar, ich kümmere mich drum."` <!-- i18n-allow: product voice output DE -->
+ - `DUMB_TOOL` → a short confirmation, e.g. `"Mach ich."` <!-- i18n-allow: product voice output DE -->
+ - `SMALLTALK` → a brief friendly direct reply, e.g. `"Mir geht's gut, danke der Nachfrage!"` <!-- i18n-allow: product voice output DE -->
- Never empty.
### Your unit tests: `tests/test_bus.py`, `tests/test_router.py`
@@ -227,7 +227,7 @@ Behaviour:
(+ optionally `ev.command`) and runs it through a local `_scrub` regex.
- For `MISSING_INFO` naming a recipient (e.g. detail "... for Max"), produce
something like: `"Kurzer Nachtrag zur Mail an Max: mir fehlt noch seine
- E-Mail-Adresse. Hast du die kurz für mich?"` — it MUST contain the recipient
+ E-Mail-Adresse. Hast du die kurz für mich?"` <!-- i18n-allow: product voice output example DE --> — it MUST contain the recipient
name (extract a capitalised name from `ev.detail` or `ev.command`).
- For `AUTH_REQUIRED` / `NETWORK_ERROR` / `FATAL`: a short, polite organic
sentence appropriate to the reason.
diff --git a/docs/plans/optimistic-execution-v1/prototype/README.md b/docs/plans/optimistic-execution-v1/prototype/README.md
index d89f39be32..7aa39b90d4 100644
--- a/docs/plans/optimistic-execution-v1/prototype/README.md
+++ b/docs/plans/optimistic-execution-v1/prototype/README.md
@@ -40,8 +40,8 @@ correction.
## What the Definition of Done looks like
```
-[you] Trag mir morgen 15 Uhr einen Termin mit dem Steuerberater ein
-[jarvis] (instant, 0.05 ms) Geht klar, ich kümmere mich drum.
+[you] Trag mir morgen 15 Uhr einen Termin mit dem Steuerberater ein <!-- i18n-allow: test content — user voice utterance DE -->
+[jarvis] (instant, 0.05 ms) Geht klar, ich kümmere mich drum. <!-- i18n-allow: product voice output DE -->
|bg| optimistic.worker: Heavy-Duty-Worker processing task 025a99eb: Trag mir ...
[result] background mission done -> [calendar] '...' gesendet
```
diff --git a/docs/plans/optimistic-execution-v1/prototype/demo.py b/docs/plans/optimistic-execution-v1/prototype/demo.py
index 1615a6b2d4..c321743f59 100644
--- a/docs/plans/optimistic-execution-v1/prototype/demo.py
+++ b/docs/plans/optimistic-execution-v1/prototype/demo.py
@@ -70,22 +70,22 @@ def _build():
SCENARIOS = [
(
"Smart Tool — delegated to the background worker",
- "Trag mir morgen 15 Uhr einen Termin mit dem Steuerberater ein",
+ "Trag mir morgen 15 Uhr einen Termin mit dem Steuerberater ein", # i18n-allow: test content — user voice utterance DE
False,
),
(
"Dumb Tool — local script, fires in-process",
- "spiel mir etwas 80er Synthwave",
+ "spiel mir etwas 80er Synthwave", # i18n-allow: test content — user voice utterance DE
False,
),
(
"Smalltalk — answered directly, worker never wakes",
- "Hey, wie geht's dir?",
+ "Hey, wie geht's dir?", # i18n-allow: test content — user voice utterance DE
False,
),
(
"Oops — background failure self-corrects at the turn-boundary",
- "Schreib Max eine Mail, dass sich das Projekt verschiebt",
+ "Schreib Max eine Mail, dass sich das Projekt verschiebt", # i18n-allow: test content — user voice utterance DE
True,
),
]
diff --git a/docs/plans/optimistic-execution-v1/prototype/optimistic/oops.py b/docs/plans/optimistic-execution-v1/prototype/optimistic/oops.py
index 14731d5963..1414108db5 100644
--- a/docs/plans/optimistic-execution-v1/prototype/optimistic/oops.py
+++ b/docs/plans/optimistic-execution-v1/prototype/optimistic/oops.py
@@ -40,7 +40,7 @@ _WHITESPACE_PAT = re.compile(r"\s{2,}")
# Pattern to extract a capitalised proper name from a detail/command string.
# Matches a word that starts with an uppercase letter and is not the very
# first word (which is usually a verb or article, not a recipient name).
-_CAPITALISED_NAME_PAT = re.compile(r"(?<!\A)\b([A-ZÄÖÜ][a-zäöüß]{1,})\b")
+_CAPITALISED_NAME_PAT = re.compile(r"(?<!\A)\b([A-ZÄÖÜ][a-zäöüß]{1,})\b") # i18n-allow: speech input vocabulary pattern DE
class OopsProtocol:
@@ -171,39 +171,39 @@ class OopsProtocol:
name = self._extract_recipient(ev.detail) or self._extract_recipient(ev.command)
if name:
return (
- f"Kurzer Nachtrag zur Mail an {name}: "
- f"mir fehlt noch seine E-Mail-Adresse. "
- f"Hast du die kurz für mich?"
+ f"Kurzer Nachtrag zur Mail an {name}: " # i18n-allow: product voice output DE
+ f"mir fehlt noch seine E-Mail-Adresse. " # i18n-allow: product voice output DE
+ f"Hast du die kurz für mich?" # i18n-allow: product voice output DE
)
# No recognisable name — generic fallback
return (
- "Ich brauche noch eine Information, um die Aufgabe abzuschließen. "
- "Kannst du mir kurz helfen?"
+ "Ich brauche noch eine Information, um die Aufgabe abzuschließen. " # i18n-allow: product voice output DE
+ "Kannst du mir kurz helfen?" # i18n-allow: product voice output DE
)
@staticmethod
def _phrase_auth_required(ev: WorkerCorrectionNeeded) -> str:
"""AUTH_REQUIRED: inform the user that authorisation is needed."""
return (
- "Ich brauche noch kurz deine Freigabe, um das erledigen zu können. "
- "Könntest du dich einmal kurz einloggen?"
+ "Ich brauche noch kurz deine Freigabe, um das erledigen zu können. " # i18n-allow: product voice output DE
+ "Könntest du dich einmal kurz einloggen?" # i18n-allow: product voice output DE
)
@staticmethod
def _phrase_network_error(ev: WorkerCorrectionNeeded) -> str:
"""NETWORK_ERROR: note the transient problem and suggest retrying."""
return (
- "Ich hatte kurz ein Verbindungsproblem und konnte die Aufgabe "
- "leider nicht abschließen. Soll ich es gleich noch einmal versuchen?"
+ "Ich hatte kurz ein Verbindungsproblem und konnte die Aufgabe " # i18n-allow: product voice output DE
+ "leider nicht abschließen. Soll ich es gleich noch einmal versuchen?" # i18n-allow: product voice output DE
)
@staticmethod
def _phrase_fatal(ev: WorkerCorrectionNeeded) -> str:
"""FATAL: brief, warm apology — the task could not be completed."""
return (
- "Es tut mir leid — bei dieser Aufgabe ist leider etwas Unerwartetes "
- "passiert und ich konnte sie nicht zu Ende bringen. "
- "Magst du es mir noch einmal sagen?"
+ "Es tut mir leid — bei dieser Aufgabe ist leider etwas Unerwartetes " # i18n-allow: product voice output DE
+ "passiert und ich konnte sie nicht zu Ende bringen. " # i18n-allow: product voice output DE
+ "Magst du es mir noch einmal sagen?" # i18n-allow: product voice output DE
)
@staticmethod
diff --git a/docs/plans/optimistic-execution-v1/prototype/optimistic/registry.py b/docs/plans/optimistic-execution-v1/prototype/optimistic/registry.py
index 062805de7c..6e4119f0b4 100644
--- a/docs/plans/optimistic-execution-v1/prototype/optimistic/registry.py
+++ b/docs/plans/optimistic-execution-v1/prototype/optimistic/registry.py
@@ -42,7 +42,7 @@ DUMB_TOOLS: tuple[ToolDef, ...] = (
ToolDef(
name="volume",
kind=RouteKind.DUMB_TOOL,
- triggers=("lauter", "leiser", "lautstaerke", "lautstärke", "volume"),
+ triggers=("lauter", "leiser", "lautstaerke", "lautstärke", "volume"), # i18n-allow: speech input vocabulary DE
description="local volume control",
),
)
@@ -72,7 +72,7 @@ SMART_TOOLS: tuple[ToolDef, ...] = (
ALL_TOOLS: tuple[ToolDef, ...] = DUMB_TOOLS + SMART_TOOLS
# Smalltalk allowlist — these never trigger a tool and never wake the worker.
-SMALLTALK_TRIGGERS: tuple[str, ...] = (
+SMALLTALK_TRIGGERS: tuple[str, ...] = ( # i18n-allow: speech input vocabulary DE
"hallo",
"hi",
"hey",
@@ -89,7 +89,7 @@ SMALLTALK_TRIGGERS: tuple[str, ...] = (
# Action-verb markers — an unknown command containing one of these is treated as
# a SMART task (worker spawn) rather than smalltalk. Mirrors the production
# force-spawn heuristic in BrainManager._should_force_openclaw.
-ACTION_VERBS: tuple[str, ...] = (
+ACTION_VERBS: tuple[str, ...] = ( # i18n-allow: speech input vocabulary DE
"lies",
"baue",
"installier",
diff --git a/docs/plans/optimistic-execution-v1/prototype/optimistic/router.py b/docs/plans/optimistic-execution-v1/prototype/optimistic/router.py
index 3ac447bb5a..808a834f17 100644
--- a/docs/plans/optimistic-execution-v1/prototype/optimistic/router.py
+++ b/docs/plans/optimistic-execution-v1/prototype/optimistic/router.py
@@ -30,9 +30,9 @@ from optimistic.registry import (
# Acknowledgement templates — butler-tone, correct German umlauts (ä ö ü ß)
# ---------------------------------------------------------------------------
-_ACK_SMART: str = "Geht klar, ich kümmere mich drum."
-_ACK_DUMB: str = "Mach ich."
-_ACK_SMALLTALK: str = "Mir geht's gut, danke der Nachfrage!"
+_ACK_SMART: str = "Geht klar, ich kümmere mich drum." # i18n-allow: product voice output DE
+_ACK_DUMB: str = "Mach ich." # i18n-allow: product voice output DE
+_ACK_SMALLTALK: str = "Mir geht's gut, danke der Nachfrage!" # i18n-allow: product voice output DE
def classify(command: str) -> RouteKind:
diff --git a/docs/plans/optimistic-execution-v1/prototype/optimistic/tools.py b/docs/plans/optimistic-execution-v1/prototype/optimistic/tools.py
index 9c399621fd..416e7b5a16 100644
--- a/docs/plans/optimistic-execution-v1/prototype/optimistic/tools.py
+++ b/docs/plans/optimistic-execution-v1/prototype/optimistic/tools.py
@@ -82,7 +82,7 @@ def _extract_recipient(command: str) -> str | None:
# Walk the words starting from index 1 (skip the leading word).
for word in words[1:]:
# Strip punctuation for the check, but return the clean word.
- clean = re.sub(r"[^A-Za-zÄÖÜäöüß]", "", word)
+ clean = re.sub(r"[^A-Za-zÄÖÜäöüß]", "", word) # i18n-allow: speech input vocabulary pattern DE
if clean and clean[0].isupper():
return clean
return None
diff --git a/docs/plans/optimistic-execution-v1/prototype/tests/test_acceptance.py b/docs/plans/optimistic-execution-v1/prototype/tests/test_acceptance.py
index 07f6fa3aa5..85919b469d 100644
--- a/docs/plans/optimistic-execution-v1/prototype/tests/test_acceptance.py
+++ b/docs/plans/optimistic-execution-v1/prototype/tests/test_acceptance.py
@@ -42,7 +42,7 @@ def test_definition_of_done_instant_ack_then_async_worker() -> None:
t0 = time.perf_counter()
reply = await talker.handle_utterance(
- "Trag mir morgen 15 Uhr einen Termin mit dem Steuerberater ein"
+ "Trag mir morgen 15 Uhr einen Termin mit dem Steuerberater ein" # i18n-allow: test content — user voice utterance DE
)
ack_latency = time.perf_counter() - t0
@@ -70,7 +70,7 @@ def test_definition_of_done_instant_ack_then_async_worker() -> None:
def test_smalltalk_never_spawns_worker() -> None:
async def scenario() -> None:
_bus, flight, worker, _oops, talker = _build()
- reply = await talker.handle_utterance("Hallo, wie geht es dir heute?")
+ reply = await talker.handle_utterance("Hallo, wie geht es dir heute?") # i18n-allow: test content — user voice utterance DE
await asyncio.sleep(0) # let any stray scheduled task run
assert reply.strip()
assert not flight.has(MissionSpawn), "smalltalk must never wake the worker"
@@ -82,7 +82,7 @@ def test_smalltalk_never_spawns_worker() -> None:
def test_dumb_tool_fires_in_process_without_worker() -> None:
async def scenario() -> None:
_bus, flight, worker, _oops, talker = _build()
- reply = await talker.handle_utterance("spiel mal etwas Musik ab")
+ reply = await talker.handle_utterance("spiel mal etwas Musik ab") # i18n-allow: test content — user voice utterance DE
await asyncio.sleep(0)
assert reply.strip()
assert not flight.has(
diff --git a/docs/plans/optimistic-execution-v1/prototype/tests/test_e2e_oops.py b/docs/plans/optimistic-execution-v1/prototype/tests/test_e2e_oops.py
index 2881c29b20..1da22c8e61 100644
--- a/docs/plans/optimistic-execution-v1/prototype/tests/test_e2e_oops.py
+++ b/docs/plans/optimistic-execution-v1/prototype/tests/test_e2e_oops.py
@@ -29,7 +29,7 @@ def test_missing_email_triggers_organic_correction_at_turn_boundary() -> None:
oops.set_user_speaking(True)
reply = await talker.handle_utterance(
- "Schreib Max eine Mail, dass sich das Projekt verschiebt"
+ "Schreib Max eine Mail, dass sich das Projekt verschiebt" # i18n-allow: test content — user voice utterance DE
)
assert reply.strip(), "optimistic ACK must still fire even though it will later fail"
diff --git a/docs/plans/optimistic-execution-v1/prototype/tests/test_latency.py b/docs/plans/optimistic-execution-v1/prototype/tests/test_latency.py
index f6a98eda3e..c2c6ba5929 100644
--- a/docs/plans/optimistic-execution-v1/prototype/tests/test_latency.py
+++ b/docs/plans/optimistic-execution-v1/prototype/tests/test_latency.py
@@ -18,26 +18,26 @@ from optimistic.worker import HeavyDutyWorker
from proto_testkit import FlightLog, percentile
ROUTER_SAMPLES = [
- "Hallo, wie geht's?",
- "Danke dir!",
- "spiel etwas Musik ab",
- "mach mal lauter",
- "mach die Adjusties",
- "Schreib Max eine E-Mail",
- "Maile dem Team den Status",
- "Trag morgen einen Termin ein",
- "Lad das Dokument auf Drive hoch",
- "Erzähl mir einen Witz",
- "Buche mir einen Flug nach Berlin",
- "öffne die Projektseite",
- "Wie spät ist es?",
- "spiel Spotify ab",
- "leiser bitte",
- "schreib eine Notiz",
- "such mir das Quartalsergebnis",
- "installier das Update",
- "zeig mir den Kalender",
- "Guten Morgen!",
+ "Hallo, wie geht's?", # i18n-allow: test content — user voice utterance DE
+ "Danke dir!", # i18n-allow: test content — user voice utterance DE
+ "spiel etwas Musik ab", # i18n-allow: test content — user voice utterance DE
+ "mach mal lauter", # i18n-allow: test content — user voice utterance DE
+ "mach die Adjusties", # i18n-allow: test content — user voice utterance DE
+ "Schreib Max eine E-Mail", # i18n-allow: test content — user voice utterance DE
+ "Maile dem Team den Status", # i18n-allow: test content — user voice utterance DE
+ "Trag morgen einen Termin ein", # i18n-allow: test content — user voice utterance DE
+ "Lad das Dokument auf Drive hoch", # i18n-allow: test content — user voice utterance DE
+ "Erzähl mir einen Witz", # i18n-allow: test content — user voice utterance DE
+ "Buche mir einen Flug nach Berlin", # i18n-allow: test content — user voice utterance DE
+ "öffne die Projektseite", # i18n-allow: test content — user voice utterance DE
+ "Wie spät ist es?", # i18n-allow: test content — user voice utterance DE
+ "spiel Spotify ab", # i18n-allow: test content — user voice utterance DE
+ "leiser bitte", # i18n-allow: test content — user voice utterance DE
+ "schreib eine Notiz", # i18n-allow: test content — user voice utterance DE
+ "such mir das Quartalsergebnis", # i18n-allow: test content — user voice utterance DE
+ "installier das Update", # i18n-allow: test content — user voice utterance DE
+ "zeig mir den Kalender", # i18n-allow: test content — user voice utterance DE
+ "Guten Morgen!", # i18n-allow: test content — user voice utterance DE
]
diff --git a/docs/plans/optimistic-execution-v2-real-ai/tests/test_registry.py b/docs/plans/optimistic-execution-v2-real-ai/tests/test_registry.py
index cb0dc493fd..3877dd69d8 100644
--- a/docs/plans/optimistic-execution-v2-real-ai/tests/test_registry.py
+++ b/docs/plans/optimistic-execution-v2-real-ai/tests/test_registry.py
@@ -41,7 +41,7 @@ def test_match_gmail_is_smart() -> None:
def test_no_match_returns_none() -> None:
- assert match_tool("erzaehl mir einen Witz ueber Katzen") is None
+ assert match_tool("erzaehl mir einen Witz ueber Katzen") is None # i18n-allow
def test_dumb_is_checked_before_smart() -> None:
diff --git a/docs/plans/optimistic-execution-v2-real-ai/tests/test_router.py b/docs/plans/optimistic-execution-v2-real-ai/tests/test_router.py
index b858eb0e83..48daf5c96a 100644
--- a/docs/plans/optimistic-execution-v2-real-ai/tests/test_router.py
+++ b/docs/plans/optimistic-execution-v2-real-ai/tests/test_router.py
@@ -20,23 +20,23 @@ class TestClassifyDumbTool:
"""Commands that should resolve to DUMB_TOOL (local script, never wakes worker)."""
def test_spiel_musik_is_dumb(self):
- assert classify("spiel Musik") == RouteKind.DUMB_TOOL
+ assert classify("spiel Musik") == RouteKind.DUMB_TOOL # i18n-allow
def test_spiel_melodie_is_dumb(self):
"""'spiel die mail-melodie ab' must be DUMB, not SMART (dumb-before-smart rule)."""
- assert classify("spiel die mail-melodie ab") == RouteKind.DUMB_TOOL
+ assert classify("spiel die mail-melodie ab") == RouteKind.DUMB_TOOL # i18n-allow
def test_spotify_is_dumb(self):
- assert classify("Spotify abspielen") == RouteKind.DUMB_TOOL
+ assert classify("Spotify abspielen") == RouteKind.DUMB_TOOL # i18n-allow
def test_lauter_is_dumb(self):
- assert classify("mach es lauter") == RouteKind.DUMB_TOOL
+ assert classify("mach es lauter") == RouteKind.DUMB_TOOL # i18n-allow
def test_leiser_is_dumb(self):
- assert classify("leiser bitte") == RouteKind.DUMB_TOOL
+ assert classify("leiser bitte") == RouteKind.DUMB_TOOL # i18n-allow
def test_lautstaerke_is_dumb(self):
- assert classify("Lautstärke erhöhen") == RouteKind.DUMB_TOOL
+ assert classify("Lautstärke erhöhen") == RouteKind.DUMB_TOOL # i18n-allow
def test_adjust_is_dumb(self):
assert classify("adjustier das Fenster") == RouteKind.DUMB_TOOL
@@ -53,22 +53,22 @@ class TestClassifySmartTool:
"""Commands that should resolve to SMART_TOOL (heavy worker needed)."""
def test_mail_is_smart(self):
- assert classify("Schreib Max eine Mail") == RouteKind.SMART_TOOL
+ assert classify("Schreib Max eine Mail") == RouteKind.SMART_TOOL # i18n-allow
def test_email_is_smart(self):
- assert classify("Schick eine Email an Lisa") == RouteKind.SMART_TOOL
+ assert classify("Schick eine Email an Lisa") == RouteKind.SMART_TOOL # i18n-allow
def test_termin_is_smart(self):
- assert classify("Erstell einen Termin für morgen") == RouteKind.SMART_TOOL
+ assert classify("Erstell einen Termin für morgen") == RouteKind.SMART_TOOL # i18n-allow
def test_kalender_is_smart(self):
- assert classify("Trag das in den Kalender ein") == RouteKind.SMART_TOOL
+ assert classify("Trag das in den Kalender ein") == RouteKind.SMART_TOOL # i18n-allow
def test_drive_is_smart(self):
- assert classify("Lade das Dokument in Drive hoch") == RouteKind.SMART_TOOL
+ assert classify("Lade das Dokument in Drive hoch") == RouteKind.SMART_TOOL # i18n-allow
def test_schreib_triggers_gmail(self):
- assert classify("schreib eine Nachricht") == RouteKind.SMART_TOOL
+ assert classify("schreib eine Nachricht") == RouteKind.SMART_TOOL # i18n-allow
# ---------------------------------------------------------------------------
@@ -80,19 +80,19 @@ class TestClassifyActionVerbEscalation:
def test_installier_unknown_is_smart(self):
"""'installier das Update' — unknown tool but action verb → SMART."""
- assert classify("installier das Update") == RouteKind.SMART_TOOL
+ assert classify("installier das Update") == RouteKind.SMART_TOOL # i18n-allow
def test_oeffne_is_smart(self):
- assert classify("öffne den Browser") == RouteKind.SMART_TOOL
+ assert classify("öffne den Browser") == RouteKind.SMART_TOOL # i18n-allow
def test_baue_is_smart(self):
- assert classify("baue die App") == RouteKind.SMART_TOOL
+ assert classify("baue die App") == RouteKind.SMART_TOOL # i18n-allow
def test_erstell_unknown_is_smart(self):
- assert classify("erstell eine Präsentation") == RouteKind.SMART_TOOL
+ assert classify("erstell eine Präsentation") == RouteKind.SMART_TOOL # i18n-allow
def test_such_is_smart(self):
- assert classify("such nach dem Ordner") == RouteKind.SMART_TOOL
+ assert classify("such nach dem Ordner") == RouteKind.SMART_TOOL # i18n-allow
# ---------------------------------------------------------------------------
@@ -103,29 +103,29 @@ class TestClassifySmallTalk:
"""Greetings and smalltalk must never wake the worker."""
def test_hallo_is_smalltalk(self):
- assert classify("Hallo") == RouteKind.SMALLTALK
+ assert classify("Hallo") == RouteKind.SMALLTALK # i18n-allow
def test_hi_is_smalltalk(self):
- assert classify("hi Jarvis") == RouteKind.SMALLTALK
+ assert classify("hi Jarvis") == RouteKind.SMALLTALK # i18n-allow
def test_wie_geht_is_smalltalk(self):
- assert classify("wie geht es dir heute") == RouteKind.SMALLTALK
+ assert classify("wie geht es dir heute") == RouteKind.SMALLTALK # i18n-allow
def test_danke_is_smalltalk(self):
- assert classify("danke schön") == RouteKind.SMALLTALK
+ assert classify("danke schön") == RouteKind.SMALLTALK # i18n-allow
def test_witz_is_smalltalk(self):
- assert classify("erzähl mir einen Witz") == RouteKind.SMALLTALK
+ assert classify("erzähl mir einen Witz") == RouteKind.SMALLTALK # i18n-allow
def test_hey_is_smalltalk(self):
- assert classify("hey") == RouteKind.SMALLTALK
+ assert classify("hey") == RouteKind.SMALLTALK # i18n-allow
def test_guten_morgen_is_smalltalk(self):
- assert classify("guten morgen") == RouteKind.SMALLTALK
+ assert classify("guten morgen") == RouteKind.SMALLTALK # i18n-allow
def test_unrecognized_no_verb_is_smalltalk(self):
"""A completely unknown command with no action verb defaults to SMALLTALK."""
- assert classify("blah blah keine Ahnung") == RouteKind.SMALLTALK
+ assert classify("blah blah keine Ahnung") == RouteKind.SMALLTALK # i18n-allow
# ---------------------------------------------------------------------------
@@ -156,7 +156,7 @@ class TestClassifyEdgeCases:
def test_action_verb_mach_without_dumb_trigger(self):
"""'mach das Fenster auf' — 'mach' action verb but no dumb tool trigger."""
# No dumb trigger, no smart trigger, but 'mach' is an action verb
- result = classify("mach das Fenster auf")
+ result = classify("mach das Fenster auf") # i18n-allow
assert result == RouteKind.SMART_TOOL
def test_smalltalk_trigger_plus_action_verb_prefers_smart(self):
@@ -176,26 +176,26 @@ class TestClassifyLatency:
"""Performance guard: classify() must be pure and fast (< 150 ms cold)."""
COMMANDS = [
- "Hallo",
- "spiel Musik",
- "spiel die mail-melodie ab",
- "Schreib Max eine Mail",
- "Trag einen Termin ein",
- "installier das Update",
- "öffne den Browser",
- "hi Jarvis",
- "wie geht es dir",
- "danke",
- "Lautstärke erhöhen",
- "Lade das Dokument in Drive hoch",
- "baue die App",
- "erstell eine Präsentation",
- "such nach dem Ordner",
- "lauter bitte",
- "leiser",
- "Kalender Termin morgen",
- "erzähl mir einen Witz",
- "blah blah keine Ahnung",
+ "Hallo", # i18n-allow
+ "spiel Musik", # i18n-allow
+ "spiel die mail-melodie ab", # i18n-allow
+ "Schreib Max eine Mail", # i18n-allow
+ "Trag einen Termin ein", # i18n-allow
+ "installier das Update", # i18n-allow
+ "öffne den Browser", # i18n-allow
+ "hi Jarvis", # i18n-allow
+ "wie geht es dir", # i18n-allow
+ "danke", # i18n-allow
+ "Lautstärke erhöhen", # i18n-allow
+ "Lade das Dokument in Drive hoch", # i18n-allow
+ "baue die App", # i18n-allow
+ "erstell eine Präsentation", # i18n-allow
+ "such nach dem Ordner", # i18n-allow
+ "lauter bitte", # i18n-allow
+ "leiser", # i18n-allow
+ "Kalender Termin morgen", # i18n-allow
+ "erzähl mir einen Witz", # i18n-allow
+ "blah blah keine Ahnung", # i18n-allow
]
def test_classify_worst_case_latency(self):
@@ -227,31 +227,31 @@ class TestAckFor:
"""ack_for() must return a non-empty German string for every RouteKind."""
def test_ack_smart_tool_non_empty(self):
- text = ack_for("Schreib Max eine Mail", RouteKind.SMART_TOOL)
+ text = ack_for("Schreib Max eine Mail", RouteKind.SMART_TOOL) # i18n-allow
assert isinstance(text, str)
assert len(text.strip()) > 0
def test_ack_dumb_tool_non_empty(self):
- text = ack_for("spiel Musik", RouteKind.DUMB_TOOL)
+ text = ack_for("spiel Musik", RouteKind.DUMB_TOOL) # i18n-allow
assert isinstance(text, str)
assert len(text.strip()) > 0
def test_ack_smalltalk_non_empty(self):
- text = ack_for("Hallo", RouteKind.SMALLTALK)
+ text = ack_for("Hallo", RouteKind.SMALLTALK) # i18n-allow
assert isinstance(text, str)
assert len(text.strip()) > 0
def test_ack_smart_tool_contains_german(self):
"""Smart-tool ACK must feel like an optimistic butler reply."""
- text = ack_for("Termin eintragen", RouteKind.SMART_TOOL)
+ text = ack_for("Termin eintragen", RouteKind.SMART_TOOL) # i18n-allow
# At minimum: non-empty and contains at least one German character or word
assert len(text) > 5
def test_ack_all_route_kinds_unique(self):
"""Each RouteKind should produce a distinct ACK text (they serve different purposes)."""
- smart = ack_for("Mail schreiben", RouteKind.SMART_TOOL)
- dumb = ack_for("spiel Musik", RouteKind.DUMB_TOOL)
- small = ack_for("Hallo", RouteKind.SMALLTALK)
+ smart = ack_for("Mail schreiben", RouteKind.SMART_TOOL) # i18n-allow
+ dumb = ack_for("spiel Musik", RouteKind.DUMB_TOOL) # i18n-allow
+ small = ack_for("Hallo", RouteKind.SMALLTALK) # i18n-allow
# All must be non-empty; we don't require they differ but they usually do
assert all(len(t.strip()) > 0 for t in [smart, dumb, small])
diff --git a/docs/plans/optimistic-execution-v2-real-ai/tests/test_tools.py b/docs/plans/optimistic-execution-v2-real-ai/tests/test_tools.py
index 1e5e4b4379..8fd7668885 100644
--- a/docs/plans/optimistic-execution-v2-real-ai/tests/test_tools.py
+++ b/docs/plans/optimistic-execution-v2-real-ai/tests/test_tools.py
@@ -28,7 +28,7 @@ class TestDumbTool:
"""DumbTool.fire must return a non-empty string."""
from optimistic.tools import DumbTool
tool = DumbTool("play_music")
- result = run(tool.fire("spiel Spotify"))
+ result = run(tool.fire("spiel Spotify")) # i18n-allow
assert isinstance(result, str)
assert len(result) > 0
@@ -39,7 +39,7 @@ class TestDumbTool:
from optimistic.tools import DumbTool
tool = DumbTool("volume")
start = time.monotonic()
- run(tool.fire("lauter"))
+ run(tool.fire("lauter")) # i18n-allow
elapsed = time.monotonic() - start
assert elapsed < 0.1, f"DumbTool.fire took {elapsed:.3f}s — must be instant"
@@ -47,14 +47,14 @@ class TestDumbTool:
"""The result should reference the tool name for clarity."""
from optimistic.tools import DumbTool
tool = DumbTool("adjusties")
- result = run(tool.fire("adjusties machen"))
+ result = run(tool.fire("adjusties machen")) # i18n-allow
assert "adjusties" in result.lower()
def test_fire_different_commands(self):
"""DumbTool.fire works for arbitrary command strings."""
from optimistic.tools import DumbTool
tool = DumbTool("play_music")
- for cmd in ["spiel was", "play rock", "musik an"]:
+ for cmd in ["spiel was", "play rock", "musik an"]: # i18n-allow
result = run(tool.fire(cmd))
assert isinstance(result, str)
assert result # non-empty
@@ -68,7 +68,7 @@ class TestCheckMissingInfo:
def test_missing_info_for_max_with_empty_contacts(self):
"""'Schreib Max eine Mail' + empty contacts → MISSING_INFO tuple."""
from optimistic.tools import check_missing_info
- result = check_missing_info("Schreib Max eine Mail", {})
+ result = check_missing_info("Schreib Max eine Mail", {}) # i18n-allow
assert result is not None
reason, detail = result
assert reason == CorrectionReason.MISSING_INFO
@@ -77,7 +77,7 @@ class TestCheckMissingInfo:
def test_missing_info_for_anna_with_empty_contacts(self):
"""'Schreib Anna eine Mail' + empty contacts → MISSING_INFO."""
from optimistic.tools import check_missing_info
- result = check_missing_info("Schreib Anna eine kurze Nachricht", {})
+ result = check_missing_info("Schreib Anna eine kurze Nachricht", {}) # i18n-allow
assert result is not None
reason, detail = result
assert reason == CorrectionReason.MISSING_INFO
@@ -87,7 +87,7 @@ class TestCheckMissingInfo:
"""Returns None when the recipient IS in contacts (case-insensitive)."""
from optimistic.tools import check_missing_info
result = check_missing_info(
- "Schreib Max eine Mail",
+ "Schreib Max eine Mail", # i18n-allow
{"contacts": {"Max": "[email protected]"}},
)
assert result is None
@@ -96,7 +96,7 @@ class TestCheckMissingInfo:
"""Contacts lookup is case-insensitive: 'max' matches 'Max'."""
from optimistic.tools import check_missing_info
result = check_missing_info(
- "Schreib Max eine Mail",
+ "Schreib Max eine Mail", # i18n-allow
{"contacts": {"max": "[email protected]"}},
)
assert result is None
@@ -116,7 +116,7 @@ class TestCheckMissingInfo:
def test_detail_message_format(self):
"""Detail contains 'no email address on file for {name}'."""
from optimistic.tools import check_missing_info
- result = check_missing_info("Schreib Max eine Mail", {})
+ result = check_missing_info("Schreib Max eine Mail", {}) # i18n-allow
assert result is not None
_, detail = result
assert "no email address on file for" in detail
@@ -125,7 +125,7 @@ class TestCheckMissingInfo:
def test_returns_tuple_with_two_elements(self):
"""Return value is a 2-tuple (CorrectionReason, str)."""
from optimistic.tools import check_missing_info
- result = check_missing_info("Schreib Max eine Mail", {})
+ result = check_missing_info("Schreib Max eine Mail", {}) # i18n-allow
assert result is not None
assert len(result) == 2
assert isinstance(result[0], CorrectionReason)
@@ -135,14 +135,14 @@ class TestCheckMissingInfo:
"""context without 'contacts' key is the same as empty contacts."""
from optimistic.tools import check_missing_info
# context has no 'contacts' key at all
- result = check_missing_info("Schreib Max eine Mail", {"other": "value"})
+ result = check_missing_info("Schreib Max eine Mail", {"other": "value"}) # i18n-allow
assert result is not None
def test_contacts_as_dict_with_irrelevant_names(self):
"""Max not in contacts even when other names are present."""
from optimistic.tools import check_missing_info
result = check_missing_info(
- "Schreib Max eine Mail",
+ "Schreib Max eine Mail", # i18n-allow
{"contacts": {"Anna": "[email protected]", "Bob": "[email protected]"}},
)
assert result is not None
diff --git a/docs/plans/optimistic-execution-v2-real-ai/tests/test_worker.py b/docs/plans/optimistic-execution-v2-real-ai/tests/test_worker.py
index a21ebf3d9e..376c97a8e5 100644
--- a/docs/plans/optimistic-execution-v2-real-ai/tests/test_worker.py
+++ b/docs/plans/optimistic-execution-v2-real-ai/tests/test_worker.py
@@ -107,7 +107,7 @@ class TestDelegationIsInstant:
async def scenario():
bus = FakeBus()
worker = HeavyDutyWorker(bus, _mock_settings())
- spawn = make_spawn("Termin buche für morgen", tool_name="calendar")
+ spawn = make_spawn("Termin buche für morgen", tool_name="calendar") # i18n-allow
await bus.publish(spawn)
in_flight_before = worker.in_flight
await worker.drain()
@@ -126,7 +126,7 @@ class TestDelegationIsInstant:
bus = FakeBus()
worker = HeavyDutyWorker(bus, _mock_settings())
for i in range(3):
- await bus.publish(make_spawn(f"Termin {i}", tool_name="calendar"))
+ await bus.publish(make_spawn(f"Termin {i}", tool_name="calendar")) # i18n-allow
await worker.drain()
return worker.in_flight
@@ -145,7 +145,7 @@ class TestWorkerSuccessPath:
async def scenario():
bus = FakeBus()
worker = HeavyDutyWorker(bus, _mock_settings())
- spawn = make_spawn("Termin anlegen", tool_name="calendar")
+ spawn = make_spawn("Termin anlegen", tool_name="calendar") # i18n-allow
await bus.publish(spawn)
await worker.drain()
return bus.published
@@ -196,7 +196,7 @@ class TestWorkerSuccessPath:
async def scenario():
bus = FakeBus()
worker = HeavyDutyWorker(bus, _mock_settings())
- spawn = make_spawn("Termin anlegen", tool_name="calendar")
+ spawn = make_spawn("Termin anlegen", tool_name="calendar") # i18n-allow
await bus.publish(spawn)
await worker.drain()
started = next(e for e in bus.published if isinstance(e, WorkerStarted))
@@ -283,7 +283,7 @@ class TestWorkerMissingInfoPath:
bus = FakeBus()
worker = HeavyDutyWorker(bus, _mock_settings())
spawn = make_spawn(
- "Schreib Max eine Mail",
+ "Schreib Max eine Mail", # i18n-allow
tool_name="gmail",
context={},
)
@@ -305,7 +305,7 @@ class TestWorkerMissingInfoPath:
async def scenario():
bus = FakeBus()
worker = HeavyDutyWorker(bus, _mock_settings())
- spawn = make_spawn("Schreib Max eine Mail", tool_name="gmail", context={})
+ spawn = make_spawn("Schreib Max eine Mail", tool_name="gmail", context={}) # i18n-allow
await bus.publish(spawn)
await worker.drain()
return bus.published
@@ -320,7 +320,7 @@ class TestWorkerMissingInfoPath:
async def scenario():
bus = FakeBus()
worker = HeavyDutyWorker(bus, _mock_settings())
- spawn = make_spawn("Schreib Max eine Mail", tool_name="gmail", context={})
+ spawn = make_spawn("Schreib Max eine Mail", tool_name="gmail", context={}) # i18n-allow
await bus.publish(spawn)
await worker.drain()
corr = next(e for e in bus.published if isinstance(e, WorkerCorrectionNeeded))
@@ -479,7 +479,7 @@ class TestWorkerConcurrency:
commands = [
("Termin anlegen", "calendar"),
("drive upload", "drive"),
- ("Schreib Anna eine Mail", "gmail"),
+ ("Schreib Anna eine Mail", "gmail"), # i18n-allow
]
for cmd, tool in commands:
await bus.publish(make_spawn(
diff --git a/docs/plans/optimistic-execution-v2-real-ai/verify_live.py b/docs/plans/optimistic-execution-v2-real-ai/verify_live.py
index dedcf9a304..7138f9ef3a 100644
--- a/docs/plans/optimistic-execution-v2-real-ai/verify_live.py
+++ b/docs/plans/optimistic-execution-v2-real-ai/verify_live.py
@@ -17,7 +17,7 @@ async def main() -> int:
if hasattr(sys.stdout, "reconfigure"):
sys.stdout.reconfigure(encoding="utf-8")
session = "verify-" + uuid.uuid4().hex[:6]
- prompt = "Erstelle eine kurze, gut verstaendliche Erklaerung von Optimistic Execution."
+ prompt = "Erstelle eine kurze, gut verstaendliche Erklaerung von Optimistic Execution." # i18n-allow
async with httpx.AsyncClient(base_url=BASE, timeout=60.0) as client:
h = (await client.get("/api/health")).json()
diff --git a/docs/plans/skills-brain-integration/PLAN.md b/docs/plans/skills-brain-integration/PLAN.md
index 05991c4fd3..95ae3112d3 100644
--- a/docs/plans/skills-brain-integration/PLAN.md
+++ b/docs/plans/skills-brain-integration/PLAN.md
@@ -1,6 +1,6 @@
# Skills-Brain-Integration — Phase Plan
-**Master-plan source:** `<USER_HOME>\.claude\plans\okay-ich-w-re-bereit-jolly-gem.md`
+**Master-plan source:** `<USER_HOME>\.claude\plans\okay-ich-w-re-bereit-jolly-gem.md` <!-- i18n-allow -->
## Phase Skills-1 — Pre-Brain-Hook MVP (2.0 days)
@@ -24,7 +24,7 @@
- `tests/unit/speech/test_pipeline_skill_hook.py` (NEW)
- `tests/integration/test_skill_direct_trigger_e2e.py` (NEW)
-**Demo:** "guten morgen" (good morning) → `morning-routine` runs → trace shows 0 brain tokens.
+**Demo:** "guten morgen" (good morning) → `morning-routine` runs → trace shows 0 brain tokens. <!-- i18n-allow -->
---
@@ -36,7 +36,7 @@
- **B — Skill-list injection:** `BrainManager._skill_list_block()` in `manager.py`, invoked from `_build_system_prompt()`. Format: Markdown list `name: description [TIER]`. Stable sort.
- **C — Risk-tier annotation:** Per skill, `risk_policy.default_tier` as a tag.
-**Demo:** "welche Skills hast du" (which skills do you have) → brain answers with the live list.
+**Demo:** "welche Skills hast du" (which skills do you have) → brain answers with the live list. <!-- i18n-allow -->
---
@@ -49,7 +49,7 @@
- **I — Skill-body injection (progressive disclosure):** On invocation, the body is injected into the brain as an **ephemeral** additional system message for that turn. No cache mix with the router prefix!
- **H final — Idempotency:** `run_skill` checks the `SkillDirectTriggered` event of the last 5s for the same skill → skip.
-**Demo:** "Mach mal Deep-Work für 90 Minuten" (do deep work for 90 minutes) → brain calls `run_skill('deep-work-mode', {duration_min:90})`.
+**Demo:** "Mach mal Deep-Work für 90 Minuten" (do deep work for 90 minutes) → brain calls `run_skill('deep-work-mode', {duration_min:90})`. <!-- i18n-allow -->
---
@@ -72,4 +72,4 @@
- UI tile in `SkillsView`
- User docs `docs/skills-brain-integration.md`
-**Demo:** ASK-tier skill → voice echo "X starten. Bestätigen?" (start X. Confirm?) → "ja" (yes) → run.
+**Demo:** ASK-tier skill → voice echo "X starten. Bestätigen?" (start X. Confirm?) → "ja" (yes) → run. <!-- i18n-allow -->
diff --git a/docs/plans/skills-brain-integration/PROJEKT_KONTEXT.md b/docs/plans/skills-brain-integration/PROJEKT_KONTEXT.md
index ddd689e911..32280bc779 100644
--- a/docs/plans/skills-brain-integration/PROJEKT_KONTEXT.md
+++ b/docs/plans/skills-brain-integration/PROJEKT_KONTEXT.md
@@ -3,7 +3,7 @@
**Branch:** `skills-brain-integration` (from `main`)
**Plan owner:** Claude Opus 4.7
**Status:** 2026-04-30
-**Master plan (private):** `<USER_HOME>\.claude\plans\okay-ich-w-re-bereit-jolly-gem.md`
+**Master plan (private):** `<USER_HOME>\.claude\plans\okay-ich-w-re-bereit-jolly-gem.md` <!-- i18n-allow -->
## Problem
@@ -15,7 +15,7 @@ The skill system (Phase 1c) is fully built (`SkillRegistry`, `TriggerMatcher`, `
## Solution (hybrid Anthropic pattern)
1. **TriggerMatcher production wiring** as a pre-brain hook in `jarvis/speech/pipeline.py` — deterministic voice/hotkey/cron direct paths without a brain round-trip (Skills-1).
-2. **Skill list in the system prompt** as a `## VERFÜGBARE SKILLS` (available skills) section with name + description + risk-tier tag (Skills-2).
+2. **Skill list in the system prompt** as a `## VERFÜGBARE SKILLS` (available skills) section with name + description + risk-tier tag (Skills-2). <!-- i18n-allow -->
3. **`run_skill` meta-tool** in `ROUTER_TOOLS` — the brain decides semantically via the description (Skills-3).
4. **Skill-body injection (progressive disclosure)** — on a `run_skill` call, the body is injected into the brain as an ephemeral system message for **that turn** (no cache mix).
5. **Voice confirmation for ASK-tier skills** via the end-focus echo pattern (Skills-5).
diff --git a/docs/plans/vision-gating-hybrid-plan.md b/docs/plans/vision-gating-hybrid-plan.md
index ed27246170..544025c0dd 100644
--- a/docs/plans/vision-gating-hybrid-plan.md
+++ b/docs/plans/vision-gating-hybrid-plan.md
@@ -44,22 +44,22 @@ from jarvis.brain.vision_gate import has_visual_marker, should_attach_screenshot
_VISUAL = [
"was siehst du hier",
"schau mal das hier",
- "klick auf den Button",
- "warum ist das rot?",
- "lies mir die Fehlermeldung vor",
- "was steht da auf dem Bildschirm",
- "mach das Fenster zu",
+ "klick auf den Button", # i18n-allow
+ "warum ist das rot?", # i18n-allow
+ "lies mir die Fehlermeldung vor", # i18n-allow
+ "was steht da auf dem Bildschirm", # i18n-allow
+ "mach das Fenster zu", # i18n-allow
"look at this window",
]
# Turns that are conversational / factual → no screenshot, even though they are
# not "smalltalk". This is the user's reported case.
_NON_VISUAL = [
- "was haben wir gerade besprochen?",
- "erklär mir nochmal das Thema",
- "wie spät ist es",
- "was ist die Hauptstadt von Frankreich",
- "warum ist das so wichtig?", # "warum ist das" is NOT a marker without a colour
+ "was haben wir gerade besprochen?", # i18n-allow
+ "erklär mir nochmal das Thema", # i18n-allow
+ "wie spät ist es", # i18n-allow
+ "was ist die Hauptstadt von Frankreich", # i18n-allow
+ "warum ist das so wichtig?", # i18n-allow # "warum ist das" is NOT a marker without a colour
"fass das bitte zusammen",
]
@@ -118,22 +118,22 @@ import re
# they fire on non-visual turns.
_VISUAL_MARKERS: tuple[str, ...] = (
# deictic / pointing
- "das hier", "das da", "hier auf", "da auf", "hier oben", "hier unten",
- "hier links", "hier rechts", "hier im", "hier in der",
+ "das hier", "das da", "hier auf", "da auf", "hier oben", "hier unten", # i18n-allow
+ "hier links", "hier rechts", "hier im", "hier in der", # i18n-allow
# look / show verbs
- "schau", "sieh", "siehst", "guck", "zeig mir", "zeig mal",
+ "schau", "sieh", "siehst", "guck", "zeig mir", "zeig mal", # i18n-allow
# screen / window / page nouns
- "auf dem bildschirm", "am bildschirm", "im bild", "auf dem screen",
- "bildschirm", "dieses fenster", "das fenster", "diese seite",
- "die seite hier", "fehlermeldung", "knopf", "button", "menü", "menue",
- "dialog",
+ "auf dem bildschirm", "am bildschirm", "im bild", "auf dem screen", # i18n-allow
+ "bildschirm", "dieses fenster", "das fenster", "diese seite", # i18n-allow
+ "die seite hier", "fehlermeldung", "knopf", "button", "menü", "menue", # i18n-allow
+ "dialog", # i18n-allow
# actions on the screen
- "klick", "markier", "scroll", "öffne das", "oeffne das", "mach das zu",
- "mach das fenster", "schließ das fenster", "schliess das fenster",
+ "klick", "markier", "scroll", "öffne das", "oeffne das", "mach das zu", # i18n-allow
+ "mach das fenster", "schließ das fenster", "schliess das fenster", # i18n-allow
# diagnosis / read-out
- "warum ist das rot", "warum ist das grau", "warum ist das blau",
- "was steht da", "was steht hier", "was ist das hier", "lies vor",
- "lies mir das", "lies das", "vorlesen",
+ "warum ist das rot", "warum ist das grau", "warum ist das blau", # i18n-allow
+ "was steht da", "was steht hier", "was ist das hier", "lies vor", # i18n-allow
+ "lies mir das", "lies das", "vorlesen", # i18n-allow
# English
"this here", "that there", "look at", "see this", "on screen",
"on the screen", "this window", "what's this", "what is this", "click",
@@ -171,7 +171,7 @@ Expected: PASS (all parametrized cases).
- [ ] **Step 5: Verify existing integration wiring still passes**
Run: `pytest tests/integration/test_conditional_vision.py -v`
-Expected: PASS — "wie spät ist es" → `()`, "was siehst du hier" → 1 image ("siehst"), "schau mal das hier" → 1 image ("schau"). The inversion does not break these because the kept-image cases all carry markers.
+Expected: PASS — "wie spät ist es" → `()`, "was siehst du hier" → 1 image ("siehst"), "schau mal das hier" → 1 image ("schau"). The inversion does not break these because the kept-image cases all carr <!-- i18n-allow -->y markers.
- [ ] **Step 6: Add the user's regression case to the integration test**
@@ -328,7 +328,7 @@ Confirm where tool usage is described.
Insert into the SYSTEM_PROMPT (tool-guidance section) a single sentence, English source per output policy is NOT required here because router.py prompt is German user-facing instruction text — match the surrounding language of SYSTEM_PROMPT. Add (matching existing prompt language):
```
-Wenn du unsicher bist, ob du den aktuellen Bildschirm sehen musst, um eine Frage zu beantworten, rufe das Tool `screenshot` auf — du bekommst kein Bild automatisch, sondern nur wenn du danach fragst oder der Nutzer klar auf den Bildschirm verweist.
+Wenn du unsicher bist, ob du den aktuellen Bildschirm sehen musst, um eine Frage zu beantworten, rufe das Tool `screenshot` auf — du bekommst kein Bild automatisch, sondern nur wenn du danach fragst o <!-- i18n-allow -->der der Nutzer klar auf den Bildschirm verweist.
```
- [ ] **Step 3: Verify the screenshot tool is reachable by the router**
@@ -352,4 +352,4 @@ git commit -m "feat(vision): tell the router it can pull the screen on demand (W
Expected: all PASS.
- [ ] Run the broader brain suite for regressions:
`pytest tests/unit/brain/ -v`
-- [ ] Manual (after app restart): voice session — "merk dir die Zahl 12" → "und 5 dazu" → "welche Zahl hatten wir?" answers from conversation, no screen fixation; "was siehst du auf dem Bildschirm?" still attaches the image; "warum ist das rot?" attaches; a vague screen question with no marker triggers a `screenshot` tool call instead of going blind.
+- [ ] Manual (after app restart): voice session — "merk dir die Zahl 12" → "und 5 dazu" → "welche Zahl hatten wir?" answers from conversation, no screen fixation; "was siehst du auf dem Bildschirm?" s <!-- i18n-allow -->till attaches the image; "warum ist das rot?" attaches; a vague screen question with no marker triggers a `screenshot` tool call instead of going blind.
diff --git a/docs/plans/vision-gating-hybrid.md b/docs/plans/vision-gating-hybrid.md
index 89ae2ffa87..827cd557e8 100644
--- a/docs/plans/vision-gating-hybrid.md
+++ b/docs/plans/vision-gating-hybrid.md
@@ -51,12 +51,12 @@ skip → router hallucinates a blank desktop).
visual reference does.
- Expand `_VISUAL_MARKERS` to cover the common real screen references that the
current short list misses, so Wave 2 (the fallback) is rarely needed:
- - deictic: "hier", "da", "das da", "oben/unten links/rechts"
- - screen nouns: "bildschirm", "fenster", "seite", "fehlermeldung", "button",
- "knopf", "menü", "dialog", "tab", "zeile"
- - verbs/actions: "schau", "sieh", "guck", "zeig", "lies vor", "lies das",
- "klick", "scroll", "markier", "öffne das", "mach … zu"
- - diagnosis: "warum ist das", "was steht da", "was bedeutet das", "was ist das"
+ - deictic: "hier", "da", "das da", "oben/unten links/rechts" <!-- i18n-allow -->
+ - screen nouns: "bildschirm", "fenster", "seite", "fehlermeldung", "button", <!-- i18n-allow -->
+ "knopf", "menü", "dialog", "tab", "zeile" <!-- i18n-allow -->
+ - verbs/actions: "schau", "sieh", "guck", "zeig", "lies vor", "lies das", <!-- i18n-allow -->
+ "klick", "scroll", "markier", "öffne das", "mach … zu" <!-- i18n-allow -->
+ - diagnosis: "warum ist das", "was steht da", "was bedeutet das", "was ist das" <!-- i18n-allow -->
- English equivalents.
- Keep the function signature (`text`, `is_smalltalk`) for backward
compatibility with the existing call site; `is_smalltalk` becomes an optional
@@ -66,12 +66,12 @@ skip → router hallucinates a blank desktop).
**Tests** (`tests/integration/test_conditional_vision.py` + new unit tests for
`vision_gate`):
-- KEEP green: "was siehst du hier" → image; "schau mal das hier" → image.
-- NEW: "was haben wir besprochen?" → NO image (the user's exact case).
-- NEW: "erklär mir nochmal X" → NO image.
-- NEW: "wie spät ist es" → NO image.
-- NEW: "warum ist das rot?" → image (diagnosis marker).
-- NEW: "klick auf den Button" → image.
+- KEEP green: "was siehst du hier" → image; "schau mal das hier" → image. <!-- i18n-allow -->
+- NEW: "was haben wir besprochen?" → NO image (the user's exact case). <!-- i18n-allow -->
+- NEW: "erklär mir nochmal X" → NO image. <!-- i18n-allow -->
+- NEW: "wie spät ist es" → NO image. <!-- i18n-allow -->
+- NEW: "warum ist das rot?" → image (diagnosis marker). <!-- i18n-allow -->
+- NEW: "klick auf den Button" → image. <!-- i18n-allow -->
### Wave 2 — Image-as-a-tool (the safety net)
@@ -116,6 +116,6 @@ pull the image itself — no per-turn image tax, no blank-desktop hallucination.
## Verification
- `pytest tests/integration/test_conditional_vision.py tests/unit/brain/test_vision_gate.py tests/unit/brain/test_tool_use_loop_image_feedback.py -v`
-- Manual: voice session — "merk dir die Zahl 12" → "und 5 dazu" → "welche Zahl?"
- answers from conversation, no screen fixation; "was siehst du auf dem
+- Manual: voice session — "merk dir die Zahl 12" → "und 5 dazu" → "welche Zahl?" <!-- i18n-allow -->
+ answers from conversation, no screen fixation; "was siehst du auf dem <!-- i18n-allow -->
Bildschirm?" still works.
diff --git a/docs/release-notes/v0.8.0.md b/docs/release-notes/v0.8.0.md
index d01c32b1e3..80052a3c56 100644
--- a/docs/release-notes/v0.8.0.md
+++ b/docs/release-notes/v0.8.0.md
@@ -2,7 +2,7 @@
**As of:** 2026-04-28
**Branch:** `phase-8-review-pipeline` → ready for merge to `main`
-**Plan:** `ReviewSubagent/Unbenanntes Dokument (5).md` (== JARVIS_REVIEW_AGENT_PLAN.md)
+**Plan:** `ReviewSubagent/Unbenanntes Dokument (5).md` (== JARVIS_REVIEW_AGENT_PLAN.md) <!-- i18n-allow -->
## Summary
@@ -62,8 +62,8 @@ Agents" documentation. Worker = Sonnet 4.7, reviewer = Opus 4.7
`--max-budget-usd` + `HarnessTask.timeout_s`, because claude-CLI 2.1.x
removed `--max-turns`.
- **AD-14** (Phase 8.7): voice-phrase wording kept constant
- ("Lass mich kurz an der Aufgabe arbeiten." / "Erledigt — {summary}" /
- "Mein bestes Ergebnis liegt vor, mit einer Einschränkung: {top_issue}").
+ ("Lass mich kurz an der Aufgabe arbeiten." / "Erledigt — {summary}" / <!-- i18n-allow -->
+ "Mein bestes Ergebnis liegt vor, mit einer Einschränkung: {top_issue}"). <!-- i18n-allow -->
The other 12 ADs are taken over unchanged from the plan — no
architecture drift.
diff --git a/docs/superpowers/plans/2026-05-11-pre-thinking-ack-flash-brain-impl-plan.md b/docs/superpowers/plans/2026-05-11-pre-thinking-ack-flash-brain-impl-plan.md
index 40224f9bc4..7e5d730fa4 100644
--- a/docs/superpowers/plans/2026-05-11-pre-thinking-ack-flash-brain-impl-plan.md
+++ b/docs/superpowers/plans/2026-05-11-pre-thinking-ack-flash-brain-impl-plan.md
@@ -637,46 +637,46 @@ EOF
Du implementierst Etappe 1 ("Foundation: Config + Events") des Pre-Thinking-Ack
Flash-Brain Features.
-Pflichtlektüre vor dem Start (in dieser Reihenfolge):
+Required reading before start (in this order):
1. docs/superpowers/specs/2026-05-11-pre-thinking-ack-flash-brain-design.md
- — komplette Spec, besonders §1 Goal, §4 Components, §6 Failure Handling
+ — complete spec, especially §1 Goal, §4 Components, §6 Failure Handling
2. docs/superpowers/plans/2026-05-11-pre-thinking-ack-flash-brain-impl-plan.md
- — Section "Etappe 1 — Foundation: Config + Events"
-3. CLAUDE.md — besonders "Output Language Policy" und "Testing-Konventionen"
-
-Scope dieser Etappe (NICHT mehr und nicht weniger):
-- Neues Package jarvis/brain/ack_brain/ mit leerem __init__.py
-- config.py mit AckBrainConfig + 4 Provider-Sub-Models (Pydantic v2)
-- AckBrainConfig in JarvisConfig einhängen (jarvis/core/config.py)
-- AnnouncementRequested um optionales kind-Feld erweitern (jarvis/core/events.py)
-- [ack_brain]-Sektion in jarvis.toml mit enabled=false
-
-Was du NICHT in dieser Etappe machst:
-- KEIN Persona-Prompt (das ist E2)
-- KEIN Provider-Code (das ist E4)
-- KEINE AckGenerator-Klasse (das ist E5)
-- KEINE UI-Änderungen (das ist E6)
-
-Konventionen (aus CLAUDE.md):
+ — Section "Stage 1 — Foundation: Config + Events"
+3. CLAUDE.md — especially "Output Language Policy" and "Testing Conventions"
+
+Scope of this stage (NOT more and not less):
+- New package jarvis/brain/ack_brain/ with empty __init__.py
+- config.py with AckBrainConfig + 4 Provider Sub-Models (Pydantic v2)
+- Wire AckBrainConfig into JarvisConfig (jarvis/core/config.py)
+- Extend AnnouncementRequested with optional kind field (jarvis/core/events.py)
+- [ack_brain] section in jarvis.toml with enabled=false
+
+What you do NOT do in this stage:
+- NO Persona Prompt (that is E2)
+- NO Provider Code (that is E4)
+- NO AckGenerator class (that is E5)
+- NO UI changes (that is E6)
+
+Conventions (from CLAUDE.md):
- Code, comments, docstrings, commits: English
-- Tests: Fakes statt unittest.mock
+- Tests: Fakes instead of unittest.mock
- TDD: failing test → impl → green → commit
- Commits: "feat(ack_brain): ..." / "feat(config): ..." / "feat(events): ..."
-- Co-Author-Footer in jedem Commit
+- Co-Author footer in every commit
-Akzeptanzkriterien — du bist fertig wenn ALLE checken:
+Acceptance criteria — you are done when ALL check:
1. pytest tests/unit/brain/test_ack_brain/test_config.py -v → 7 pass
2. pytest tests/unit/test_config_ack_brain.py -v → 2 pass
3. pytest tests/unit/core/test_events_announcement_kind.py -v → 4 pass
4. python -c "from jarvis.core.config import load_config; print(load_config().ack_brain.provider)" → "gemini"
-5. Fünf neue Commits, jeweils ein Task aus der Plan-Datei
-6. Kein bestehender Test bricht: pytest tests/unit/core/ tests/unit/missions/ tests/unit/test_config_tier_optional.py -v
- muss mit gleichem Pass-Count laufen wie vor deinen Änderungen
+5. Five new commits, one task each from the plan file
+6. No existing test breaks: pytest tests/unit/core/ tests/unit/missions/ tests/unit/test_config_tier_optional.py -v
+ must run with same pass count as before your changes
-Liefere dem User am Ende:
-- Commit-Hashes der 5 Commits
-- Pytest-Output der 3 neuen Test-Files (kopierter Trail)
-- Bestätigung, dass der Baseline-Run grün bleibt
+Deliver to the user at the end:
+- Commit hashes of the 5 commits
+- Pytest output of the 3 new test files (copied trail)
+- Confirmation that the baseline run stays green
```
---
@@ -741,7 +741,7 @@ def test_de_prompt_contains_question_example_phrase():
def test_de_prompt_contains_reflection_example_phrase():
- assert "überlegen" in PERSONA_PROMPT_DE
+ assert "überlegen" in PERSONA_PROMPT_DE # i18n-allow
def test_de_prompt_forbids_subagent():
@@ -842,7 +842,7 @@ from __future__ import annotations
__all__ = ["PERSONA_PROMPT_DE", "PERSONA_PROMPT_EN", "get_persona_prompt"]
-PERSONA_PROMPT_DE = """Du bist JARVIS, der persönliche Assistent von Alex. Sprich kurz, natürlich
+PERSONA_PROMPT_DE = """Du bist JARVIS, der persönliche Assistent von Alex. Sprich kurz, natürlich # i18n-allow
und kontextspezifisch — wie ein cleverer Kollege, der weiß, was er tut.
Deine einzige Aufgabe: ein kurzer Bestätigungssatz, BEVOR die eigentliche
diff --git a/docs/superpowers/plans/2026-06-20-assistant-name-coupled-to-wake-word.md b/docs/superpowers/plans/2026-06-20-assistant-name-coupled-to-wake-word.md
index 9c6b9f1305..edc0ce3677 100644
--- a/docs/superpowers/plans/2026-06-20-assistant-name-coupled-to-wake-word.md
+++ b/docs/superpowers/plans/2026-06-20-assistant-name-coupled-to-wake-word.md
@@ -148,7 +148,7 @@ def test_wake_phrase_is_the_only_name_source() -> None:
prompt = _manager_with_name(wake_phrase="Hey Computer")._build_system_prompt()
assert "Du bist Computer" in prompt
assert "DEIN NAME IST COMPUTER" in prompt
- assert "nicht Jarvis" in prompt
+ assert "nicht Jarvis" in prompt # i18n-allow
```
The other two tests (`test_default_name_keeps_jarvis_and_no_identity_directive`,
@@ -475,7 +475,7 @@ const WAKE_PREFIXES = new Set([
]);
export function deriveAssistantName(phrase: string): string {
- // normalize_phrase: lower-case, punctuation→space, split (keeps umlauts/ß).
+ // Normalize phrase: lowercase, punctuation → space, split (preserves umlauts/ß).
const tokens = (phrase || "")
.toLowerCase()
.replace(/[^0-9a-zäöüß]+/g, " ")
diff --git a/docs/superpowers/plans/2026-06-20-team-proxy-w1a-brain-base-url.md b/docs/superpowers/plans/2026-06-20-team-proxy-w1a-brain-base-url.md
index cd8a496c49..d95a958a7c 100644
--- a/docs/superpowers/plans/2026-06-20-team-proxy-w1a-brain-base-url.md
+++ b/docs/superpowers/plans/2026-06-20-team-proxy-w1a-brain-base-url.md
@@ -204,7 +204,7 @@ Replace `_ensure_client` in `jarvis/plugins/brain/openrouter.py`:
if self._client is None:
ep = cfg.resolve_provider_endpoint("openrouter", vendor_default_base_url=BASE_URL)
if not ep.credential:
- raise RuntimeError("Kein OpenRouter-API-Key gefunden (openrouter_api_key).")
+ raise RuntimeError("No OpenRouter API key found (openrouter_api_key).")
from openai import AsyncOpenAI
self._client = AsyncOpenAI(
api_key=ep.credential,
@@ -279,7 +279,7 @@ Replace `_ensure_client` in `jarvis/plugins/brain/grok.py`:
ep = cfg.resolve_provider_endpoint("grok", vendor_default_base_url=BASE_URL)
if not ep.credential:
raise RuntimeError(
- "Kein Grok-API-Key gefunden "
+ "No Grok API key found "
"(grok_api_key / xai_api_key / GROK_API_KEY / XAI_API_KEY)."
)
from openai import AsyncOpenAI
@@ -350,7 +350,7 @@ Replace `_ensure_client` in `jarvis/plugins/brain/openai.py`:
if self._client is None:
ep = cfg.resolve_provider_endpoint("openai")
if not ep.credential:
- raise RuntimeError("Kein OpenAI-API-Key gefunden (openai_api_key / OPENAI_API_KEY).")
+ raise RuntimeError("No OpenAI API key found (openai_api_key / OPENAI_API_KEY).")
from openai import AsyncOpenAI
kwargs: dict[str, Any] = {"api_key": ep.credential, "timeout": CLIENT_TIMEOUT}
if ep.base_url:
@@ -428,11 +428,11 @@ Replace `_ensure_client` in `jarvis/plugins/brain/claude_api.py`:
ep = cfg.resolve_provider_endpoint("claude-api")
if not ep.credential:
raise RuntimeError(
- "Kein Anthropic-API-Key gefunden. Bitte via Wizard setzen oder "
+ "No Anthropic API key found. Please set via Wizard or "
"ANTHROPIC_API_KEY in ENV."
)
from anthropic import AsyncAnthropic
- # max_retries=0 → BrainManager-Fallback greift schneller bei 429
+ # max_retries=0 → BrainManager fallback engages faster on 429
kwargs: dict[str, Any] = {"api_key": ep.credential, "max_retries": 0, "timeout": 15.0}
if ep.base_url:
kwargs["base_url"] = ep.base_url
diff --git a/docs/superpowers/plans/2026-06-27-voice-command-honesty-and-recognition.md b/docs/superpowers/plans/2026-06-27-voice-command-honesty-and-recognition.md
index 31c0c1460b..6ecd62e3f9 100644
--- a/docs/superpowers/plans/2026-06-27-voice-command-honesty-and-recognition.md
+++ b/docs/superpowers/plans/2026-06-27-voice-command-honesty-and-recognition.md
@@ -156,23 +156,23 @@ In `jarvis/brain/manager.py`, after the `_subagent_switch_failure_phrase` functi
# so the spoken readback is HONEST (audit 2026-06-27: the old path returned ""
# silently, even when the switch was refused). de/en/es (Runtime Output Language).
_PROVIDER_SWITCH_CONFIRM: dict[str, str] = {
- "de": "Erledigt — dein Haupt-Brain läuft jetzt auf {p}.",
+ "de": "Erledigt — dein Haupt-Brain läuft jetzt auf {p}.", # i18n-allow
"en": "Done — your main brain now runs on {p}.",
"es": "Listo — tu cerebro principal ahora usa {p}.",
}
_PROVIDER_SWITCH_FAIL: dict[str, dict[str, str]] = {
"missing_credential": {
- "de": "{p} ist nicht eingerichtet — hinterlege zuerst den Schlüssel, dann stelle ich um.",
+ "de": "{p} ist nicht eingerichtet — hinterlege zuerst den Schlüssel, dann stelle ich um.", # i18n-allow
"en": "{p} isn't set up — add its key first, then I'll switch.",
"es": "{p} no está configurado — añade su clave primero y luego cambio.",
},
"subagent_only": {
- "de": "{p} geht nur als Sub-Agent, nicht als Haupt-Brain.",
+ "de": "{p} geht nur als Sub-Agent, nicht als Haupt-Brain.", # i18n-allow
"en": "{p} only works as a sub-agent, not as the main brain.",
"es": "{p} solo funciona como sub-agente, no como cerebro principal.",
},
"other": {
- "de": "Den Haupt-Brain konnte ich nicht auf {p} umstellen.",
+ "de": "Den Haupt-Brain konnte ich nicht auf {p} umstellen.", # i18n-allow
"en": "I couldn't switch the main brain to {p}.",
"es": "No pude cambiar el cerebro principal a {p}.",
},
@@ -321,7 +321,7 @@ _CANCEL_CONFIRM: dict[str, str] = {
"es": "Listo — detuve {n} tarea(s) en curso.",
}
_CANCEL_NONE: dict[str, str] = {
- "de": "Es lief gerade nichts, das ich stoppen könnte.",
+ "de": "Es lief gerade nichts, das ich stoppen könnte.", # i18n-allow
"en": "Nothing was running to stop.",
"es": "No había nada en curso que detener.",
}
@@ -415,7 +415,7 @@ In `jarvis/brain/manager.py`, after the `_CANCEL_NONE` block (Task 2), add:
# path. Confirms the new depth instead of staying silent (audit 2026-06-27).
_DEPTH_CONFIRM: dict[str, dict[str, str]] = {
"deep": {
- "de": "Alles klar — ich denke ab jetzt gründlicher.",
+ "de": "Alles klar — ich denke ab jetzt gründlicher.", # i18n-allow
"en": "Got it — I'll think more deeply from now on.",
"es": "Entendido — pensaré más a fondo a partir de ahora.",
},
@@ -529,7 +529,7 @@ In `jarvis/brain/manager.py`, immediately AFTER `_LANG_SWITCH_CONFIRM` (ends ~li
# / locked jarvis.toml). Honest: scoped to this session, not "from now on", because
# it reverts on restart (audit 2026-06-27). de/en/es.
_LANG_SWITCH_CONFIRM_SESSION: dict[str, str] = {
- "de": "Für diese Sitzung antworte ich auf Deutsch — dauerhaft speichern hat nicht geklappt.",
+ "de": "Für diese Sitzung antworte ich auf Deutsch — dauerhaft speichern hat nicht geklappt.", # i18n-allow
"en": "For this session I'll reply in English — saving it permanently didn't work.",
"es": "Por esta sesión responderé en español — no pude guardarlo de forma permanente.",
}
@@ -590,7 +590,7 @@ Paths: `jarvis/brain/manager.py tests/unit/brain/test_voice_command_honesty.py`.
## Task 5: Close the recognition gaps (provider verbs + cancel "halt")
-The audit found natural phrasings that don't match: "ändere/setze/stell den Anbieter auf X" (provider_switch) and "halt" (cancel). Add them — staying strict (provider still requires a trailing provider alias; cancel still requires sentence-start or "jarvis").
+The audit found natural phrasings that don't match: "ändere/setze/stell den Anbieter auf X" (provider_switch) and "halt" (cancel). Add them — staying strict (provider still requires a trailing provider alias; cancel still requires sentence-start or "jarvis"). <!-- i18n-allow -->
**Files:**
- Modify: `jarvis/brain/voice_command_gate.py` (`_PROVIDER_PATTERN` ~42; `_CANCEL_PATTERN` ~57)
@@ -598,7 +598,7 @@ The audit found natural phrasings that don't match: "ändere/setze/stell den Anb
**Interfaces:**
- Consumes: nothing new.
-- Produces: `_PROVIDER_PATTERN` also matches the `ändere/änder/setze/setz/stell` verbs; `_CANCEL_PATTERN` also matches `halt`.
+- Produces: `_PROVIDER_PATTERN` also matches the `ändere/änder/setze/setz/stell` verbs; `_CANCEL_PATTERN` also matches `halt`. <!-- i18n-allow -->
- [ ] **Step 1: Write the failing tests**
@@ -625,8 +625,8 @@ def test_cancel_recognizes_halt() -> None:
def test_halt_midsentence_is_not_cancel() -> None:
- # "das ist halt so" must NOT cancel — halt only at sentence start / after jarvis
- m = match_voice_command("das ist halt so")
+ # "das ist halt so" must NOT cancel — halt only at sentence start / after jarvis # i18n-allow
+ m = match_voice_command("das ist halt so") # i18n-allow
assert m is None or m.kind != "cancel"
```
@@ -650,7 +650,7 @@ to:
r"|switch(?:\s+to)?|benutze?|nutze|use|nimm)"
```
-(The pattern still requires a trailing known provider alias with a word boundary, so "stell die Heizung an" — no provider word — does not match.)
+(The pattern still requires a trailing known provider alias with a word boundary, so "stell die Heizung an" — no provider word — does not match.) <!-- i18n-allow -->
- [ ] **Step 4: Add the cancel "halt" verb**
@@ -672,7 +672,7 @@ _CANCEL_PATTERN = re.compile(
)
```
-(`halt` matches only at sentence start or after "jarvis" — the existing `^` anchor — so "das ist halt so" still falls through. `\b` keeps it from matching "halten"/"Haltung".)
+(`halt` matches only at sentence start or after "jarvis" — the existing `^` anchor — so "das ist halt so" still falls through. `\b` keeps it from matching "halten"/"Haltung".) <!-- i18n-allow -->
- [ ] **Step 5: Run to verify pass + no regressions**
@@ -682,7 +682,7 @@ Expected: PASS (all — new + existing, ~38 passed).
- [ ] **Step 6: Commit (hunk-isolated)**
The `_LANG_OUTPUT_VERB` block in this file may carry a parallel-session hunk — keep it neutralised at HEAD for the commit, then restore it (the established dance for this file).
-Message subject: `fix(voice): recognize "ändere/setze/stell <provider>" and "halt" to cancel`
+Message subject: `fix(voice): recognize "ändere/setze/stell <provider>" and "halt" to cancel` <!-- i18n-allow -->
Paths: `jarvis/brain/voice_command_gate.py tests/unit/brain/test_voice_command_gate.py`.
---
@@ -716,14 +716,14 @@ RECOGNITION_CASES: list[tuple[str, str, str]] = [
# provider_switch
("wechsel auf gemini", "provider_switch", "gemini"),
("switch to openai", "provider_switch", "openai"),
- ("wechsel von gemini auf openai", "provider_switch", "openai"),
+ ("wechsel von gemini auf openai", "provider_switch", "openai"), # i18n-allow: fixture
("switch from claude to gemini", "provider_switch", "gemini"),
("nutze chatgpt", "provider_switch", "chatgpt"),
("switch to anthropic", "provider_switch", "anthropic"),
("ändere den Provider auf gemini", "provider_switch", "gemini"), # i18n-allow: fixture
("stell den Provider auf claude", "provider_switch", "claude"), # i18n-allow: fixture
# subagent_switch
- ("stell den subagent provider auf gemini", "subagent_switch", "gemini"),
+ ("stell den subagent provider auf gemini", "subagent_switch", "gemini"), # i18n-allow: fixture
("stell den subagent provider von antigravity auf codex um", "subagent_switch", "codex"), # i18n-allow: fixture
# language_switch
("stell auf Englisch um", "language_switch", "en"), # i18n-allow: fixture
diff --git a/docs/superpowers/plans/2026-06-27-voice-provider-switch-hardening.md b/docs/superpowers/plans/2026-06-27-voice-provider-switch-hardening.md
index 0da312d796..602beb88be 100644
--- a/docs/superpowers/plans/2026-06-27-voice-provider-switch-hardening.md
+++ b/docs/superpowers/plans/2026-06-27-voice-provider-switch-hardening.md
@@ -126,12 +126,12 @@ In `jarvis/brain/manager.py`, immediately AFTER the `_SUBAGENT_SWITCH_CONFIRM` d
# a false "done"; always names what failed. de/en/es (Runtime Output Language).
_SUBAGENT_SWITCH_FAIL: dict[str, dict[str, str]] = {
"missing_credential": {
- "de": "{p} ist nicht verbunden — richte es zuerst ein, dann stelle ich um.",
+ "de": "{p} ist nicht verbunden — richte es zuerst ein, dann stelle ich um.", # i18n-allow
"en": "{p} isn't connected — set it up first, then I'll switch.",
"es": "{p} no está conectado — configúralo primero y luego cambio.",
},
"other": {
- "de": "Das konnte ich nicht auf {p} umstellen.",
+ "de": "Das konnte ich nicht auf {p} umstellen.", # i18n-allow
"en": "I couldn't switch the sub-agent to {p}.",
"es": "No pude cambiar el sub-agente a {p}.",
},
@@ -219,7 +219,7 @@ git commit -m "fix(voice): subagent voice switch validates via apply_provider_sw
## Task 2: Main-brain provider switch recognises "from X to Y"
-**Why:** `_PROVIDER_PATTERN` has no "von/from" branch, so "wechsel von Gemini auf OpenAI" matches nothing and falls through to the brain LLM (which may refuse or force-spawn). The Jarvis-Agent matcher was already fixed for this; the main-brain regex wasn't.
+**Why:** `_PROVIDER_PATTERN` has no "von/from" branch, so "wechsel von Gemini auf OpenAI" matches nothing and falls through to the brain LLM (which may refuse or force-spawn). The Jarvis-Agent matcher was already fixed for this; the main-brain regex wasn't. <!-- i18n-allow -->
**Files:**
- Modify: `jarvis/brain/voice_command_gate.py` (`_PROVIDER_PATTERN` ~42-49)
@@ -231,8 +231,8 @@ Append to `tests/unit/brain/test_voice_command_gate.py`:
```python
def test_main_provider_switch_from_x_to_y_targets_y() -> None:
- # "von Gemini auf OpenAI" must target OpenAI (the destination), not fall through.
- m = match_voice_command("wechsel von gemini auf openai")
+ # "von Gemini auf OpenAI" must target OpenAI (the destination), not fall through. # i18n-allow
+ m = match_voice_command("wechsel von gemini auf openai") # i18n-allow: fixture
assert m is not None and m.kind == "provider_switch"
assert m.target == "openai"
@@ -377,7 +377,7 @@ git commit -m "fix(voice): main-brain switch accepts 'chatgpt'/'anthropic' (mana
## Task 4: Reply-language switch picks the earliest language in the TEXT
-**Why:** `_match_language_switch` loops `_LANG_ALIASES` in DICT-INSERTION order and returns the first that appears anywhere, so "antworte auf Deutsch und Englisch" returns "en" (english is earlier in the dict) instead of "de".
+**Why:** `_match_language_switch` loops `_LANG_ALIASES` in DICT-INSERTION order and returns the first that appears anywhere, so "antworte auf Deutsch und Englisch" returns "en" (english is earlier in the dict) instead of "de". <!-- i18n-allow -->
**Files:**
- Modify: `jarvis/brain/voice_command_gate.py` (`_match_language_switch` ~111-125)
@@ -391,13 +391,13 @@ Append to `tests/unit/brain/test_voice_command_gate.py`:
def test_language_switch_picks_earliest_in_text() -> None:
# Two languages in one sentence → the one mentioned FIRST wins, not the first
# in dict-insertion order (forensic 2026-06-27).
- m = match_voice_command("antworte auf deutsch und englisch")
+ m = match_voice_command("antworte auf deutsch und englisch") # i18n-allow: fixture
assert m is not None and m.kind == "language_switch"
assert m.target == "de"
def test_language_switch_single_still_works() -> None:
- m = match_voice_command("antworte auf englisch")
+ m = match_voice_command("antworte auf englisch") # i18n-allow: fixture
assert m is not None and m.kind == "language_switch"
assert m.target == "en"
```
@@ -413,7 +413,7 @@ In `jarvis/brain/voice_command_gate.py`, replace the language-word scan at the t
```python
# Pick the language word at the EARLIEST position in the text, not the first
- # in dict-insertion order — "auf Deutsch und Englisch" must resolve to "de"
+ # in dict-insertion order — "auf Deutsch und Englisch" must resolve to "de" # i18n-allow
# (forensic 2026-06-27).
best: tuple[int, str] | None = None # (start_position, code)
for word, c in _LANG_ALIASES.items():
@@ -456,7 +456,7 @@ Expected: no errors. (`manager.py` has pre-existing E501s unrelated to these edi
- [ ] **Step 3: Manual live check (after restart)**
-Restart via `POST /api/settings/restart-app`. By voice, try: "wechsel von Gemini auf OpenAI" (→ switches to OpenAI), "stell den Subagent auf einen nicht-verbundenen Anbieter" (→ honest "not connected", NOT "Erledigt"), "nutze ChatGPT", "antworte auf Deutsch und Englisch" (→ German).
+Restart via `POST /api/settings/restart-app`. By voice, try: "wechsel von Gemini auf OpenAI" (→ switches to OpenAI), "stell den Subagent auf einen nicht-verbundenen Anbieter" (→ honest "not connected", NOT "Erledigt"), "nutze ChatGPT", "antworte auf Deutsch und Englisch" (→ German). <!-- i18n-allow -->
---
diff --git a/docs/superpowers/specs/2026-05-11-pre-thinking-ack-flash-brain-design.md b/docs/superpowers/specs/2026-05-11-pre-thinking-ack-flash-brain-design.md
index b2dd83b4e5..075aa92219 100644
--- a/docs/superpowers/specs/2026-05-11-pre-thinking-ack-flash-brain-design.md
+++ b/docs/superpowers/specs/2026-05-11-pre-thinking-ack-flash-brain-design.md
@@ -354,7 +354,7 @@ ERLAUBT in deinem Satz:
Output: Genau ein Satz mit konkretem Themenbezug, ODER leerer String.
Kein Markdown, kein Kommentar, kein Begleitsatz.
-```
+``` <!-- i18n-allow: PERSONA_PROMPT_DE -->
#### PERSONA_PROMPT_EN (verbatim)
diff --git a/docs/telephony.md b/docs/telephony.md
index 03ef0ad399..e443dac466 100644
--- a/docs/telephony.md
+++ b/docs/telephony.md
@@ -114,7 +114,7 @@ restart, so re-run `set-webhook` each time. The VPS path avoids this.
- Call your Twilio number. Jarvis greets you, you talk, it answers in the Charon
voice. Say **"auflegen"** (or "tschüss", "goodbye", "hang up") to end the
call; barge-in is supported (start talking while Jarvis is speaking and it
- stops to listen).
+ stops to listen). <!-- i18n-allow -->
Recent calls appear in the **Recent calls** table.
diff --git a/docs/transcription-bubble-deep-dive/README.md b/docs/transcription-bubble-deep-dive/README.md
index f3bbfbae29..69e919f266 100644
--- a/docs/transcription-bubble-deep-dive/README.md
+++ b/docs/transcription-bubble-deep-dive/README.md
@@ -30,13 +30,13 @@ The user said:
```text
Was ist morgen fuer ein Tag?
-```
+``` <!-- i18n-allow: STT test fixture -->
The bubble showed:
```text
Was? Was ist morgens? Was ist morgen fuer ein Tag? Morgen fuer einen Tag.
-```
+``` <!-- i18n-allow: STT test fixture -->
The pattern is typical for the current live-bubble architecture:
@@ -70,19 +70,19 @@ Partial 1: Was?
Partial 2: Was ist morgens?
Partial 3: Was ist morgen fuer ein Tag?
Partial 4: Morgen fuer einen Tag.
-```
+``` <!-- i18n-allow: STT test fixture -->
The correct display would not be:
```text
Was? Was ist morgens? Was ist morgen fuer ein Tag? Morgen fuer einen Tag.
-```
+``` <!-- i18n-allow: STT test fixture -->
The better display would be either:
```text
Was ist morgen fuer ein Tag?
-```
+``` <!-- i18n-allow: STT test fixture -->
or, while speaking live, always only the currently best hypothesis.
diff --git a/docs/voice-acceptance-brief.md b/docs/voice-acceptance-brief.md
index df53d2dbe9..a859d3472c 100644
--- a/docs/voice-acceptance-brief.md
+++ b/docs/voice-acceptance-brief.md
@@ -48,33 +48,33 @@ Say **"Hey Jarvis"** as the wake word **before every turn**. Note briefly after
| # | You say | Expectation | Alex's note: perceived | Subprocess? | Tone |
|---|---|---|---|---|---|
-| 1 | "Hallo." ("Hello.") | Short greeting with "Alex". | _____ | _____ | _____ |
-| 2 | "Wie geht's dir?" ("How are you?") | Smalltalk answer, no "Ich bin einsatzbereit" ("I am ready for deployment"). | _____ | _____ | _____ |
-| 3 | "Was ist die Hauptstadt von Frankreich?" ("What is the capital of France?") | "Paris." directly. | _____ | _____ | _____ |
-| 4 | "Danke." ("Thank you.") | Dry acknowledgement. | _____ | _____ | _____ |
-| 5 | "Auf Wiedersehen." ("Goodbye.") | "Auf Wiedersehen, Alex." (hangup contract). | _____ | _____ | _____ |
+| 1 | "Hallo." ("Hello.") | Short greeting with "Alex". | _____ | _____ | _____ | <!-- i18n-allow: voice examples -->
+| 2 | "Wie geht's dir?" ("How are you?") | Smalltalk answer, no "Ich bin einsatzbereit" ("I am ready for deployment"). | _____ | _____ | _____ | <!-- i18n-allow: voice examples -->
+| 3 | "Was ist die Hauptstadt von Frankreich?" ("What is the capital of France?") | "Paris." directly. | _____ | _____ | _____ | <!-- i18n-allow: voice examples -->
+| 4 | "Danke." ("Thank you.") | Dry acknowledgement. | _____ | _____ | _____ | <!-- i18n-allow: voice examples -->
+| 5 | "Auf Wiedersehen." ("Goodbye.") | "Auf Wiedersehen, Alex." (hangup contract). | _____ | _____ | _____ | <!-- i18n-allow: voice examples -->
### Block B — 3 spawn turns (expectation: exactly 1 spawn per turn)
| # | You say | Expectation | Alex's note: perceived | Subprocess? | Tone |
|---|---|---|---|---|---|
-| 6 | "Lies die Datei jarvis.toml und sag mir was drin steht." ("Read the file jarvis.toml and tell me what's in it.") | Spawn → Jarvis-Agent reads → short summary, **no tool JSON in the voice output**. | _____ | _____ | _____ |
-| 7 | "Such im Web nach dem aktuellen Wetter in Berlin." ("Search the web for the current weather in Berlin.") | Spawn → Jarvis-Agent → weather info. | _____ | _____ | _____ |
-| 8 | "Mach einen Screenshot und sag mir was du siehst." ("Take a screenshot and tell me what you see.") | Spawn → Computer-Use → description. | _____ | _____ | _____ |
+| 6 | "Lies die Datei jarvis.toml und sag mir was drin steht." ("Read the file jarvis.toml and tell me what's in it.") | Spawn → Jarvis-Agent reads → short summary, **no tool JSON in the voice output**. | _____ | _____ | _____ | <!-- i18n-allow: voice examples -->
+| 7 | "Such im Web nach dem aktuellen Wetter in Berlin." ("Search the web for the current weather in Berlin.") | Spawn → Jarvis-Agent → weather info. | _____ | _____ | _____ | <!-- i18n-allow: voice examples -->
+| 8 | "Mach einen Screenshot und sag mir was du siehst." ("Take a screenshot and tell me what you see.") | Spawn → Computer-Use → description. | _____ | _____ | _____ | <!-- i18n-allow: voice examples -->
### Block C — 2 bad-news turns (provoke errors — expectation: no cushioning, no "Es tut mir leid, aber" ("I'm sorry, but"))
| # | You say | Expectation | Alex's note: perceived | Tone |
|---|---|---|---|---|
-| 9 | "Lies die Datei /nicht/existent.txt." ("Read the file /not/existent.txt.") | Dry error message, no "Es tut mir leid, aber leider" ("I'm sorry, but unfortunately"). | _____ | _____ |
-| 10 | "Verbinde dich mit dem Server xyz123.invalid." ("Connect to the server xyz123.invalid.") | Direct error notice. | _____ | _____ |
+| 9 | "Lies die Datei /nicht/existent.txt." ("Read the file /not/existent.txt.") | Dry error message, no "Es tut mir leid, aber leider" ("I'm sorry, but unfortunately"). | _____ | _____ | <!-- i18n-allow: voice examples -->
+| 10 | "Verbinde dich mit dem Server xyz123.invalid." ("Connect to the server xyz123.invalid.") | Direct error notice. | _____ | _____ | <!-- i18n-allow: voice examples -->
### Block D — 2 echo-trap turns (expectation: NO "Du möchtest also …" ("So you want to …"))
| # | You say | Expectation | Alex's note: perceived | Tone |
|---|---|---|---|---|
-| 11 | "Ich möchte wissen, wie spät es ist." ("I'd like to know what time it is.") | Direct time answer, NO "Du möchtest also wissen, wie spät es ist" ("So you want to know what time it is"). | _____ | _____ |
-| 12 | "Ich brauche ein neues Notepad-Fenster." ("I need a new Notepad window.") | "Öffne ich, Alex." ("Opening it, Alex.") or direct spawn — NO "Du möchtest also ein neues Notepad-Fenster" ("So you want a new Notepad window"). | _____ | _____ |
+| 11 | "Ich möchte wissen, wie spät es ist." ("I'd like to know what time it is.") | Direct time answer, NO "Du möchtest also wissen, wie spät es ist" ("So you want to know what time it is"). | _____ | _____ | <!-- i18n-allow: voice examples -->
+| 12 | "Ich brauche ein neues Notepad-Fenster." ("I need a new Notepad window.") | "Öffne ich, Alex." ("Opening it, Alex.") or direct spawn — NO "Du möchtest also ein neues Notepad-Fenster" ("So you want a new Notepad window"). | _____ | _____ | <!-- i18n-allow: voice examples -->
---
diff --git a/docs/voice-turn-taking-bug-2026-04-26.md b/docs/voice-turn-taking-bug-2026-04-26.md
index 0d38ec0d18..7f31d0c61c 100644
--- a/docs/voice-turn-taking-bug-2026-04-26.md
+++ b/docs/voice-turn-taking-bug-2026-04-26.md
@@ -4,7 +4,7 @@
After a successful Jarvis call, the desktop app stayed in `Hört zu` /
`LISTENING` and Jarvis did not answer a normal smalltalk prompt such as
-`Wie geht es dir, Jarvis?`.
+`Wie geht es dir, Jarvis?`. <!-- i18n-allow -->
## Root Cause
@@ -12,7 +12,7 @@ Two independent turn-taking gaps could produce the same user-visible symptom:
1. The speech pipeline already had a fallback for wellbeing prompts, but the
fallback was not wired into `_handle_utterance()`. If the brain returned a
- non-substantive filler such as `Ich bin einsatzbereit.`, the output filter
+ non-substantive filler such as `Ich bin einsatzbereit.`, the output filter <!-- i18n-allow -->
suppressed it and the pipeline silently returned to `LISTENING`.
2. The VAD endpoint trusted Silero probability plus a fixed silence window. In
noisy rooms or with fan/echo leakage, Silero can keep reporting speech after
diff --git a/docs/zdf-stt-hallucination-visual.html b/docs/zdf-stt-hallucination-visual.html
index db34b05c9f..8e61afbab2 100644
--- a/docs/zdf-stt-hallucination-visual.html
+++ b/docs/zdf-stt-hallucination-visual.html
@@ -304,8 +304,8 @@
<main>
<header>
<div>
- <h1>ZDF-Text in der Listening-Bubble</h1>
- <p class="subtitle">Der Fehler war kein UI-Text. Es war ein STT-Partial, das wie echte Sprache aussah und deshalb live in die Sprechblase ging.</p>
+ <h1>ZDF-Text in der Listening-Bubble</h1> <!-- i18n-allow: forensic documentation -->
+ <p class="subtitle">Der Fehler war kein UI-Text. Es war ein STT-Partial, das wie echte Sprache aussah und deshalb live in die Sprechblase ging.</p> <!-- i18n-allow: forensic documentation -->
</div>
<div class="tag">Root Cause</div>
</header>
@@ -326,7 +326,7 @@
<article class="step bad">
<span class="number">3</span>
<h2>Filter-Luecke</h2>
- <p>Die Regex kannte <strong>Untertitel im Auftrag</strong>, aber nicht <strong>Untertitelung des ZDF</strong>.</p>
+ <p>Die Regex kannte <strong>Untertitel im Auftrag</strong>, aber nicht <strong>Untertitelung des ZDF</strong>.</p> <!-- i18n-allow: forensic documentation -->
</article>
<article class="step bad">
<span class="number">4</span>
diff --git a/jarvis/ui/jarvisbar/overlay.py b/jarvis/ui/jarvisbar/overlay.py
index f0c0510752..fdc69d7c27 100644
--- a/jarvis/ui/jarvisbar/overlay.py
+++ b/jarvis/ui/jarvisbar/overlay.py
@@ -68,6 +68,34 @@ WATCHDOG_INTERVAL_MS = 1000
FRAME_STALL_THRESHOLD_NS = 2_000_000_000 # 2 s of silence ⇒ the loop is dead
+def _display_scale(root: Any) -> float:
+ """Effective display scale (1.0 = 100%) for the monitor the bar boots on.
+
+ Read from Tk's own reported DPI so the bar renders at a CONSTANT PHYSICAL
+ size regardless of the process-wide DPI awareness the rest of the app
+ happens to set first (pywebview pins the process to SYSTEM_AWARE before the
+ bar's own per-monitor request can win — first-writer-wins). Two paths, one
+ physical result:
+
+ - DPI-aware process on a 150% monitor → Tk reports ~144 dpi → 1.5, and we
+ draw the bar 1.5x larger at true pixels.
+ - DPI-unaware process → Tk reports 96 dpi → 1.0, and Windows then bitmap-
+ upscales the whole window by the monitor scale → the same physical size.
+
+ Without this the bar drew a fixed 107x48 window the DPI-aware process no
+ longer upscaled, shrinking the idle pill to a ~48x8 sliver that could not be
+ seen or grabbed (4K @ 150%). Clamped to a sane range; never below 1.0 — a
+ smaller bar is never the goal. Any query failure falls back to 1.0.
+ """
+ try:
+ scale = float(root.winfo_fpixels("1i")) / 96.0
+ except Exception: # noqa: BLE001 — never block the bar on a DPI query
+ return 1.0
+ if scale < 1.0:
+ return 1.0
+ return min(scale, 4.0)
+
+
def _primary_work_area() -> tuple[int, int, int, int] | None:
"""Primary-monitor work area (left, top, right, bottom) EXCLUDING the
taskbar, via Win32 ``SPI_GETWORKAREA``. None off Windows / on failure so
@@ -120,6 +148,10 @@ class JarvisBarOverlay:
self._last_frame_ns = 0
self._root: Any = None
self._canvas: Any = None
+ # HiDPI scale for this bar's monitor (1.0 = 100%), resolved in start()
+ # from the live Tk root. Drives the renderer size + all geometry/hit-test
+ # math so the bar stays a constant physical size on scaled displays.
+ self._scale: float = 1.0
self._renderer: renderer.JarvisBarRenderer | None = None
self._photo: Any = None
self._image_id: Any = None
@@ -253,7 +285,6 @@ class JarvisBarOverlay:
log.debug("jarvisbar DPI-awareness setup skipped", exc_info=True)
self._tk_thread_id = threading.get_ident()
- self._renderer = renderer.JarvisBarRenderer(accent=self._accent)
root = tk.Tk()
self._root = root
@@ -273,13 +304,24 @@ class JarvisBarOverlay:
except tk.TclError:
log.debug("window -alpha unsupported", exc_info=True)
+ # HiDPI: size the renderer (window + pill) to the monitor's scale so the
+ # bar keeps a constant PHYSICAL size instead of shrinking to a sliver on
+ # a DPI-aware, high-scale display. Must be read from the live root, so the
+ # renderer is built here (after tk.Tk()) rather than before it.
+ self._scale = _display_scale(root)
+ self._renderer = renderer.JarvisBarRenderer(
+ accent=self._accent, scale=self._scale
+ )
+
self._resolve_position(root)
- root.geometry(f"{renderer.WIN_W}x{renderer.WIN_H}+{self._x}+{self._y}")
+ root.geometry(
+ f"{self._renderer.win_w}x{self._renderer.win_h}+{self._x}+{self._y}"
+ )
self._canvas = tk.Canvas(
root,
- width=renderer.WIN_W,
- height=renderer.WIN_H,
+ width=self._renderer.win_w,
+ height=self._renderer.win_h,
bg=COLOR_KEY_HEX,
highlightthickness=0,
borderwidth=0,
@@ -347,6 +389,25 @@ class JarvisBarOverlay:
# ------------------------------------------------------------------ #
# Tk-thread internals #
# ------------------------------------------------------------------ #
+ # Live (DPI-scaled) window dimensions. Geometry, position-clamp and
+ # hit-testing all read these so they stay in ONE coordinate space with the
+ # rendered image — the renderer owns the scaled numbers; these mirror them
+ # (with a base×scale fallback for any call before the renderer exists).
+ @property
+ def _win_w(self) -> int:
+ r = self._renderer
+ return r.win_w if r is not None else round(renderer.WIN_W * self._scale)
+
+ @property
+ def _win_h(self) -> int:
+ r = self._renderer
+ return r.win_h if r is not None else round(renderer.WIN_H * self._scale)
+
+ @property
+ def _active_w(self) -> int:
+ r = self._renderer
+ return r.active_w if r is not None else round(renderer.ACTIVE_W * self._scale)
+
def _resolve_position(self, root: Any) -> None:
try:
sw = int(root.winfo_screenwidth())
@@ -363,7 +424,7 @@ class JarvisBarOverlay:
if pos is not None:
self._x, self._y = interaction.clamp_to_screen(
pos[0], pos[1], screen_w=sw, screen_h=sh,
- bar_w=renderer.WIN_W, bar_h=renderer.WIN_H, margin=MARGIN_PX,
+ bar_w=self._win_w, bar_h=self._win_h, margin=MARGIN_PX,
)
else:
# Anchor just ABOVE the taskbar (work area), exactly centered —
@@ -372,12 +433,12 @@ class JarvisBarOverlay:
wa = _primary_work_area()
if wa is not None:
wl, wt, wr, wb = wa
- self._x = wl + (wr - wl - renderer.WIN_W) // 2
- self._y = wb - renderer.WIN_H - TASKBAR_GAP_PX
+ self._x = wl + (wr - wl - self._win_w) // 2
+ self._y = wb - self._win_h - TASKBAR_GAP_PX
else:
self._x, self._y = interaction.default_bottom_center(
screen_w=sw, screen_h=sh,
- bar_w=renderer.WIN_W, bar_h=renderer.WIN_H, margin=MARGIN_PX,
+ bar_w=self._win_w, bar_h=self._win_h, margin=MARGIN_PX,
)
def _do_show(self) -> None:
@@ -577,7 +638,7 @@ class JarvisBarOverlay:
self._x = event.x_root - d["ox"]
self._y = event.y_root - d["oy"]
try:
- self._root.geometry(f"{renderer.WIN_W}x{renderer.WIN_H}+{self._x}+{self._y}")
+ self._root.geometry(f"{self._win_w}x{self._win_h}+{self._x}+{self._y}")
except Exception: # noqa: BLE001
log.debug("jarvisbar geometry update failed", exc_info=True)
@@ -601,16 +662,16 @@ class JarvisBarOverlay:
# Use the PRESS-time hover (consistent with the press-time cx): a
# deliberate click that started on the bar registers even if a stray
# <Leave> flickered _hovered before release.
- self._on_click(d.get("cx", renderer.WIN_W / 2), hovered=bool(d.get("hovered")))
+ self._on_click(d.get("cx", self._win_w / 2), hovered=bool(d.get("hovered")))
return
try:
sw = int(self._root.winfo_screenwidth())
sh = int(self._root.winfo_screenheight())
self._x, self._y = interaction.clamp_to_screen(
self._x, self._y, screen_w=sw, screen_h=sh,
- bar_w=renderer.WIN_W, bar_h=renderer.WIN_H, margin=MARGIN_PX,
+ bar_w=self._win_w, bar_h=self._win_h, margin=MARGIN_PX,
)
- self._root.geometry(f"{renderer.WIN_W}x{renderer.WIN_H}+{self._x}+{self._y}")
+ self._root.geometry(f"{self._win_w}x{self._win_h}+{self._x}+{self._y}")
from jarvis.core.config_writer import DEFAULT_CONFIG_FILE
interaction.save_jarvisbar_position(DEFAULT_CONFIG_FILE, self._x, self._y)
@@ -669,7 +730,7 @@ class JarvisBarOverlay:
# mute (mic muted FOR JARVIS only), MIDDLE (idle) → start a normal
# session. All entries are thread-safe from the Tk thread.
if click_x is None:
- click_x = renderer.WIN_W / 2
+ click_x = self._win_w / 2
try:
from jarvis.core.runtime_refs import get_speech_pipeline
@@ -681,9 +742,9 @@ class JarvisBarOverlay:
# — see interaction.resolve_click + the silent-hangup forensic. The
# active pill is ACTIVE_W, so the X glyph sits at WIN_W/2-0.42*pw.
active = self._mode in ("listen", "think", "speak")
- pill_w = renderer.ACTIVE_W if active else None
+ pill_w = self._active_w if active else None
action = interaction.resolve_click(
- click_x, renderer.WIN_W, self._mode,
+ click_x, self._win_w, self._mode,
hovered=hovered, pill_w=pill_w,
)
if action == "mute":
@@ -735,9 +796,9 @@ class JarvisBarOverlay:
sh = int(self._root.winfo_screenheight())
self._x, self._y = interaction.default_bottom_center(
screen_w=sw, screen_h=sh,
- bar_w=renderer.WIN_W, bar_h=renderer.WIN_H, margin=MARGIN_PX,
+ bar_w=self._win_w, bar_h=self._win_h, margin=MARGIN_PX,
)
- self._root.geometry(f"{renderer.WIN_W}x{renderer.WIN_H}+{self._x}+{self._y}")
+ self._root.geometry(f"{self._win_w}x{self._win_h}+{self._x}+{self._y}")
from jarvis.core.config_writer import DEFAULT_CONFIG_FILE
interaction.save_jarvisbar_position(DEFAULT_CONFIG_FILE, self._x, self._y)
diff --git a/jarvis/ui/jarvisbar/renderer.py b/jarvis/ui/jarvisbar/renderer.py
index 1fcc57b359..72be08601f 100644
--- a/jarvis/ui/jarvisbar/renderer.py
+++ b/jarvis/ui/jarvisbar/renderer.py
@@ -395,9 +395,26 @@ class _RenderState:
class JarvisBarRenderer:
- def __init__(self, accent: str = "#e7c46e") -> None:
+ def __init__(self, accent: str = "#e7c46e", scale: float = 1.0) -> None:
self._accent = _hex_to_rgb(accent)
- self._st = _RenderState()
+ # HiDPI scale. The module constants (WIN_W/WIN_H, the pill sizes) are the
+ # BASE design at 100%. On a scaled display the bar must keep a constant
+ # PHYSICAL size, else a DPI-aware process draws it at raw pixels and it
+ # shrinks to an unusable sliver (4K @ 150% → 48x8 idle pill). ``scale``
+ # (the monitor's DPI factor, e.g. 1.5 for 150%) enlarges the whole
+ # surface + pill proportionally. Never below 1.0 — a smaller bar is
+ # never the goal.
+ self._scale = max(1.0, float(scale))
+ self.win_w = round(WIN_W * self._scale)
+ self.win_h = round(WIN_H * self._scale)
+ self.active_w = round(ACTIVE_W * self._scale)
+ # Bottom pad scales too, so the pill keeps the same relative resting
+ # spot inside the (now larger) window.
+ self._bottom_pad = _BOTTOM_PAD * self._scale
+ self._st = _RenderState(
+ pw=float(round(COLLAPSED_W * self._scale)),
+ ph=float(round(COLLAPSED_H * self._scale)),
+ )
def render(
self,
@@ -412,6 +429,10 @@ class JarvisBarRenderer:
# live, OPEN on hover (controls) OR while muted (keep the mute cue +
# unmute target visible), COLLAPSED at rest.
tw, th = target_pill_size(mode, hovered, muted)
+ # Enlarge the target for a scaled display so the eased pill grows toward
+ # the physically-constant size, not the raw base pixels.
+ tw *= self._scale
+ th *= self._scale
# Snappy grow/shrink: 0.5 reaches the target in ~4 frames (~70 ms) so the
# bar pops to full size almost immediately on "Hey Jarvis" instead of
# crawling there over a third of a second.
@@ -422,13 +443,15 @@ class JarvisBarRenderer:
)
pw, ph = self._st.pw, self._st.ph
- frame = np.empty((WIN_H, WIN_W, 3), dtype=np.uint8)
+ frame = np.empty((self.win_h, self.win_w, 3), dtype=np.uint8)
frame[:, :] = COLOR_KEY_RGB
img = Image.fromarray(frame) # uint8 (H,W,3) → mode "RGB"
d = ImageDraw.Draw(img)
- cx = WIN_W / 2.0
- cy = pill_center_y(ph) # bottom-anchored: grows upward, idle stays put
+ cx = self.win_w / 2.0
+ # Bottom-anchored (scaled): grows upward, idle stays put. Mirrors the
+ # free ``pill_center_y`` but on the instance's scaled window height.
+ cy = self.win_h - self._bottom_pad - ph / 2.0
# The rim turns red whenever the mic is muted FOR JARVIS — drawn on
# EVERY frame (even idle/standby, no hover) so the muted cue is visible
# at a glance without having to reveal the controls.
diff --git a/scripts/voice_style_eval.py b/scripts/voice_style_eval.py
new file mode 100644
index 0000000000..36d5359687
--- /dev/null
+++ b/scripts/voice_style_eval.py
@@ -0,0 +1,199 @@
+"""Voice style eval — proves Jarvis speaks in full, natural sentences.
+
+Regression context (2026-07-01): before commit 5bbf7ad2 (2026-06-29) the voice
+persona in ``JARVIS_PERSONA.md`` told the brain to "Speak in one or two short,
+complete sentences. Never paragraphs." plus "Smalltalk or simple factual
+requests: one or two sentences, done." Those clipped-length rules made spoken
+replies choppy ("telegram style"). The consolidation commit replaced them with
+"Speak in complete, grammatical sentences." + "Two to four flowing sentences is
+the sweet spot" + "finishing the sentence always wins over saving a word".
+
+This script is the acceptance harness for that fix. It drives the SAME model
+call path the running app uses for the spoken answer — the router-tier brain
+(``build_default_brain(tier="router")``), which per ``jarvis.toml`` is the main
+voice brain on ``gemini-3.5-flash`` — with a set of realistic conversational
+utterances, then runs deterministic style checks on the produced answer.
+
+Checks (all must pass for the done-gate):
+ 1. no em/en dash or spaced hyphen used as punctuation (–, —, " - ", " -- ")
+ 2. no markdown (*, _, #, `, bullet lines)
+ 3. no digits (numbers / times / units must be spelled out)
+ 4. not built from more than two fragments under four words (anti-telegram)
+ 5. does not end on a counter-question unless the scenario genuinely lacks info
+
+Both the RAW brain output (what the persona actually produced) and the
+``scrub_for_voice`` result (what TTS speaks) are checked. RAW is the honest
+style signal: the scrubber removes dashes/markdown but cannot turn fragments
+into sentences or spell out a number, so a clean RAW output is the real target.
+
+Usage:
+ python scripts/voice_style_eval.py
+ python scripts/voice_style_eval.py --raw # show full raw responses
+
+Exit code is the number of failing checks (0 = green done-gate).
+"""
+from __future__ import annotations
+
+import argparse
+import asyncio
+import re
+import sys
+from dataclasses import dataclass, field
+from pathlib import Path
+
+REPO = Path(__file__).resolve().parents[1]
+if str(REPO) not in sys.path:
+ sys.path.insert(0, str(REPO))
+
+
+@dataclass(frozen=True)
+class Scenario:
+ """One conversational probe. ``needs_clarification`` allows a trailing '?'."""
+
+ id: str
+ tag: str
+ user: str
+ needs_clarification: bool = False
+
+
+# Realistic, conversational turns that SHOULD get a full-sentence spoken answer
+# and do NOT depend on a tool (so the style, not a tool round-trip, is measured).
+SCENARIOS: tuple[Scenario, ...] = (
+ Scenario("01", "greeting", "Guten Morgen, wie geht es dir?"),
+ Scenario("02", "smalltalk", "Ich bin heute echt ein bisschen gestresst."),
+ Scenario("03", "opinion-80s", "Was hältst du eigentlich von Musik aus den Achtzigern?"),
+ Scenario("04", "explain", "Erklär mir mal, warum der Himmel blau ist."),
+ Scenario("05", "advice", "Hast du einen Tipp, wie ich morgens besser in die Gänge komme?"),
+ Scenario("06", "knowledge", "Erzähl mir was Interessantes über den Mond."),
+ Scenario("07", "compare", "Was ist der Unterschied zwischen Nebel und Wolken?"),
+ Scenario("08", "chitchat", "Puh, war ein langer Tag. Womit kennst du dich eigentlich gut aus?"),
+)
+
+
+# --- deterministic style checks --------------------------------------------
+
+DASH_RE = re.compile(r"[–—]|(?<=\s)-{1,2}(?=\s)")
+MARKDOWN_RE = re.compile(r"(\*\*|\*|__|_|^#{1,6}\s|`|^\s*[-*]\s+)", re.MULTILINE)
+DIGIT_RE = re.compile(r"\d")
+SENTENCE_SPLIT_RE = re.compile(r"[.!?]+")
+WORD_RE = re.compile(r"[^\W\d_]+", re.UNICODE)
+
+
+def _short_fragments(text: str) -> list[str]:
+ """Sentence-like fragments that carry fewer than four words."""
+ pieces = [p.strip() for p in SENTENCE_SPLIT_RE.split(text) if p.strip()]
+ return [p for p in pieces if len(WORD_RE.findall(p)) < 4]
+
+
+def _ends_on_question(text: str) -> bool:
+ stripped = text.rstrip().rstrip('"').rstrip()
+ return stripped.endswith("?")
+
+
+@dataclass
+class CheckResult:
+ dash: bool = True
+ markdown: bool = True
+ digits: bool = True
+ fragments: bool = True
+ counter_question: bool = True
+ notes: list[str] = field(default_factory=list)
+
+ @property
+ def all_ok(self) -> bool:
+ return all(
+ (self.dash, self.markdown, self.digits, self.fragments, self.counter_question)
+ )
+
+
+def check(text: str, scenario: Scenario) -> CheckResult:
+ r = CheckResult()
+ if DASH_RE.search(text):
+ r.dash = False
+ r.notes.append(f"dash: {DASH_RE.findall(text)!r}")
+ if MARKDOWN_RE.search(text):
+ r.markdown = False
+ r.notes.append("markdown token present")
+ if DIGIT_RE.search(text):
+ r.digits = False
+ r.notes.append(f"digits: {DIGIT_RE.findall(text)!r}")
+ frags = _short_fragments(text)
+ if len(frags) > 2:
+ r.fragments = False
+ r.notes.append(f"{len(frags)} short fragments: {frags!r}")
+ if _ends_on_question(text) and not scenario.needs_clarification:
+ r.counter_question = False
+ r.notes.append("ends on counter-question")
+ return r
+
+
+async def run() -> int:
+ ap = argparse.ArgumentParser()
+ ap.add_argument("--raw", action="store_true", help="print full raw responses")
+ args = ap.parse_args()
+
+ from jarvis.brain.factory import build_default_brain
+ from jarvis.brain.output_filter import scrub_for_voice
+ from jarvis.brain.persona_loader import invalidate_cache, load_effective_persona_prompt
+ from jarvis.core.bus import EventBus
+ from jarvis.core.config import load_config
+
+ cfg = load_config(REPO / "jarvis.toml")
+ invalidate_cache()
+ persona = load_effective_persona_prompt()
+ print(f"persona block: {len(persona)} chars")
+ print(f"primary brain: {cfg.brain.primary} | routing: "
+ f"{getattr(cfg.brain, 'routing_provider', '?')}/"
+ f"{getattr(cfg.brain, 'routing_model', '?')}")
+
+ bus = EventBus()
+ bm = build_default_brain(tier="router", bus=bus)
+ print("brain build: OK\n")
+ print("=" * 70)
+
+ check_names = ("dash", "markdown", "digits", "fragments", "counter_question")
+ fail_counts = dict.fromkeys(check_names, 0)
+ examples: list[tuple[str, str, str]] = [] # (id, user, scrubbed)
+
+ for s in SCENARIOS:
+ try:
+ if hasattr(bm, "_history"):
+ bm._history.clear() # fresh session each scenario
+ raw = await asyncio.wait_for(bm(s.user), timeout=90)
+ except Exception as exc: # noqa: BLE001
+ raw = f"<ERROR: {type(exc).__name__}: {exc}>"
+ scrubbed = scrub_for_voice(raw, language="de").cleaned
+
+ # RAW is the honest style signal; scrubbed is what TTS speaks.
+ r_raw = check(raw, s)
+ r_scrub = check(scrubbed, s)
+ for name in check_names:
+ if not getattr(r_raw, name):
+ fail_counts[name] += 1
+
+ verdict = "GREEN" if r_raw.all_ok else "RED"
+ print(f"--- {s.id} [{s.tag}] {verdict} ---")
+ print(f"User: {s.user}")
+ print(f"Jarvis: {scrubbed if not args.raw else raw}")
+ if not r_raw.all_ok:
+ print(f" RAW issues: {r_raw.notes}")
+ if not r_scrub.all_ok:
+ print(f" SCRUBBED issues: {r_scrub.notes}")
+ print()
+ examples.append((s.id, s.user, scrubbed))
+
+ print("=" * 70)
+ print("STYLE-CHECK SUMMARY (failures per criterion, over RAW output)")
+ total_fail = 0
+ for name in check_names:
+ n = fail_counts[name]
+ total_fail += n
+ status = "OK" if n == 0 else "FAIL"
+ print(f" {name:16s}: {n} failing scenario(s) [{status}]")
+ green = total_fail == 0
+ print(f"\nDONE-GATE: {'GREEN — all checks pass' if green else f'RED — {total_fail} failures'}")
+ return total_fail
+
+
+if __name__ == "__main__":
+ sys.exit(asyncio.run(run()))
diff --git a/tests/unit/ui/jarvisbar/test_renderer.py b/tests/unit/ui/jarvisbar/test_renderer.py
index 8d67496a88..1a23197566 100644
--- a/tests/unit/ui/jarvisbar/test_renderer.py
+++ b/tests/unit/ui/jarvisbar/test_renderer.py
@@ -345,3 +345,46 @@ def test_idle_pill_is_empty_no_standby_dots():
def test_active_bars_are_slim_not_chunky():
# Slim-bar style: the equalizer strokes are thin, not the old chunky ~6px bars.
assert R.bar_half_w_for(R.ACTIVE_W) <= 2.0
+
+
+# --- HiDPI scaling: keep a constant PHYSICAL size on a scaled display --------
+
+
+def test_renderer_scales_surface_with_display_dpi():
+ # BUG (4K @ 150%): the bar drew a fixed 107x48 pixel window the DPI-aware
+ # process no longer upscaled, shrinking the idle pill to a ~48x8 sliver that
+ # could not be seen or grabbed. A scaled renderer must enlarge the whole
+ # surface (and pill) so the bar keeps a constant PHYSICAL size on a scaled
+ # display — this is the fix, keyed off the monitor's DPI.
+ scaled = R.JarvisBarRenderer(scale=1.5)
+ assert scaled.win_w == round(R.WIN_W * 1.5)
+ assert scaled.win_h == round(R.WIN_H * 1.5)
+ assert scaled.active_w == round(R.ACTIVE_W * 1.5)
+ img = scaled.render(0.1, "idle", 0.0)
+ assert img.size == (scaled.win_w, scaled.win_h)
+
+
+def test_renderer_base_scale_is_unchanged():
+ # 100% displays / existing behaviour: the default renderer is byte-for-byte
+ # the old fixed size, so all the other renderer tests (and 100% users) stay
+ # exactly as before.
+ base = R.JarvisBarRenderer()
+ assert base.win_w == R.WIN_W and base.win_h == R.WIN_H
+ assert base.active_w == R.ACTIVE_W
+ assert base.render(0.1, "idle", 0.0).size == (R.WIN_W, R.WIN_H)
+
+
+def test_renderer_scale_never_shrinks_below_base():
+ # A <1.0 scale would make the sliver worse, never better — clamp to the base
+ # design size as the floor.
+ assert R.JarvisBarRenderer(scale=0.5).win_w == R.WIN_W
+
+
+def test_scaled_active_pill_grows_proportionally():
+ base = R.JarvisBarRenderer()
+ scaled = R.JarvisBarRenderer(scale=1.5)
+ for _ in range(120): # settle the eased pill size
+ base.render(0.0, "speak", 0.0)
+ scaled.render(0.0, "speak", 0.0)
+ assert scaled._st.ph == pytest.approx(base._st.ph * 1.5, rel=0.05)
+ assert scaled._st.pw == pytest.approx(base._st.pw * 1.5, rel=0.05)