Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
chore: auto-save WIP via Claude stop-hook safety net (2026-07-07 16:53)
Ruben Lütke1f3b689925b3
diff --git a/docs/superpowers/specs/2026-07-07-subagent-provider-health-design.md b/docs/superpowers/specs/2026-07-07-subagent-provider-health-design.mdindex aaf6af48a5..91ef4aebe0 100644--- a/docs/superpowers/specs/2026-07-07-subagent-provider-health-design.md+++ b/docs/superpowers/specs/2026-07-07-subagent-provider-health-design.md@@ -132,11 +132,12 @@ both; the TS store mirrors them.## 6. Voice announcement`jarvis/missions/voice/announcer.py` (+ `readback.py`'s shared table): when-`payload.error_class` matches a new `ERROR_CLASS_PHRASES` table, use that+`payload.error_class` matches a key in `FAILURE_REASON_PHRASES`, use thatphrase; otherwise keep the existing `FAILURE_REASON_PHRASES[reason]` path.-The new table carries ALL supported output languages (`de`, `en`, `es`) and-resolves through the same language pick the announcer already uses (runtime-output-language rule §1 of CLAUDE.md). Example (`provider_auth`, en):+The entries live in the EXISTING `FAILURE_REASON_PHRASES` table — keyed by+the voice readback system's `Lang` literal, which is `de`/`en` — while the+UI i18n locales carry `en`/`de`/`es`; extending the voice system itself to+`es` is tracked as separate backlog. Example (`provider_auth`, en):"The mission failed: the AI provider sign-in is invalid or expired."## 7. Prevention recapdiff --git a/jarvis/missions/voice/readback.py b/jarvis/missions/voice/readback.pyindex 0d380ac3fb..a28ae421ec 100644--- a/jarvis/missions/voice/readback.py+++ b/jarvis/missions/voice/readback.py@@ -201,7 +201,9 @@ FAILURE_REASON_PHRASES: Final[dict[str, dict[str, str]]] = {# error_class keys (looked up BEFORE the reason key; see# failure_phrase_key). Same table so announcer + direct-TTS listener# cannot drift (2026-05-27 finding #7).- "provider_auth": "Die Anmeldung beim KI-Anbieter ist ungültig oder abgelaufen.", # i18n-allow+ "provider_auth": (+ "Die Anmeldung beim KI-Anbieter ist ungültig oder abgelaufen." # i18n-allow+ ),"provider_quota": "Das Kontingent des KI-Anbieters ist erschöpft.", # i18n-allow"provider_unreachable": "Der KI-Anbieter ist gerade nicht erreichbar.", # i18n-allow"worker_timeout": "Der Worker hat das Zeitlimit überschritten.", # i18n-allowdiff --git a/pyproject.toml b/pyproject.tomlindex 83d1ce4d3f..37dfe3639c 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -498,8 +498,10 @@ jarvis = ["memory/wiki/templates/*.md",# Built-in skills: SKILL.md plus their reference/asset/script support# files (e.g. skill-creator ships references/, scripts/, agents/,- # assets/ alongside its SKILL.md).- "skills/builtin/**/*",+ # assets/ alongside its SKILL.md). Extension-scoped rather than+ # "skills/builtin/**/*" so a stray local __pycache__ never rides along.+ "skills/builtin/**/*.md",+ "skills/builtin/**/*.txt",][tool.ruff]diff --git a/tests/missions/test_error_class_full_parity.py b/tests/missions/test_error_class_full_parity.pynew file mode 100644index 0000000000..096009f969--- /dev/null+++ b/tests/missions/test_error_class_full_parity.py@@ -0,0 +1,41 @@+"""Cross-layer parity for MISSION_ERROR_CLASSES (AP-4/BUG-008 defense):+Python events <-> voice phrase table (de+en) <-> UI locale files (en/de/es).+The Python<->TS union is guarded in test_mission_error_class_parity.py.+"""+from __future__ import annotations++import json+from pathlib import Path+from typing import get_args++import pytest++from jarvis.missions.events import MISSION_ERROR_CLASSES+from jarvis.missions.voice.readback import FAILURE_REASON_PHRASES, Lang++_REPO = Path(__file__).resolve().parents[2]+_LOCALES = _REPO / "jarvis" / "ui" / "web" / "frontend" / "src" / "i18n" / "locales"++# The voice readback surface is scoped to the render API's ``Lang`` literal+# (de/en) — NOT every key that happens to exist in FAILURE_REASON_PHRASES.+# That dict also carries a partial ``es`` entry (two git-setup reason keys,+# unrelated to this plan) that intentionally does not cover the four+# MISSION_ERROR_CLASSES tokens; extending voice error-class phrases to ``es``+# is separate backlog (spec §6). Iterating raw dict keys would make this+# guard depend on that unrelated partial addition instead of the actual+# supported-language contract.+_VOICE_LANGS: tuple[str, ...] = get_args(Lang)++[email protected]("lang", _VOICE_LANGS)+def test_voice_table_carries_every_error_class(lang: str) -> None:+ missing = MISSION_ERROR_CLASSES - set(FAILURE_REASON_PHRASES[lang])+ assert not missing, f"FAILURE_REASON_PHRASES[{lang!r}] missing {missing}"++[email protected]("locale", ["en", "de", "es"])+def test_ui_locales_carry_every_error_class(locale: str) -> None:+ data = json.loads((_LOCALES / f"{locale}.json").read_text(encoding="utf-8"))+ keys = set(data.get("subagents_view", {}).get("error_class", {}))+ missing = MISSION_ERROR_CLASSES - keys+ assert not missing, f"{locale}.json subagents_view.error_class missing {missing}"diff --git a/tests/unit/mcp/test_client.py b/tests/unit/mcp/test_mcp_client.pysimilarity index 100%rename from tests/unit/mcp/test_client.pyrename to tests/unit/mcp/test_mcp_client.py