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.

docs(language): make the English-only artifact rule fail-closed

Ruben Lütke8e6f6583c2fc
diff --git a/AGENTS.md b/AGENTS.md
index 111d645bbc..023274ad34 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -19,13 +19,24 @@ copy one onto the other) so the tree stays in sync before you commit.
---
-## 1. Language — an international, English-first project
+## 1. Language — English-only artifacts, fail-closed (BINDING, HIGHEST PRIORITY)
-**Personal Jarvis is an international open-source project. Its working language is English — not German, not any other single human language.** Assume contributors and downloaders worldwide; never bias the codebase, docs, or defaults toward one locale. Every artifact an agent produces in this repo is English, full stop.
+**Personal Jarvis is an international open-source project. The working language for everything an agent commits is English — full stop, with no exception outside the single closed list below.** Assume an arbitrary downloader anywhere on earth: English is the lingua franca that reaches the most of them, so English is **always** preferred and is never weighed against any single locale. This is not "English-first, German-tolerated" — it is **English-only for artifacts**. Any historical note that this is a "German project" / "internationales deutsches Projekt" is **dead** and is overridden by this section. <!-- i18n-allow: names the dead German label being retired -->
-- **Artifacts = English, always.** This covers code, comments, docstrings, log/exception messages, Markdown (READMEs, ADRs, plans, `BUGS.md` entries, handoffs), `SKILL.md` files, commit messages, PR titles/bodies, test names + docstrings, CLI help text, FastAPI route descriptions, error responses, JSON-schema `description` fields, audit-log entries, telemetry event names, and any new UI strings (i18n key + English source — never a non-English source). If unsure, default to English. This overrides any historical "Sprache: Deutsch" note. Enforced by the diff-based `language-policy` CI job (escape hatch: an inline `i18n-allow` marker or a glob in `scripts/ci/german-allowlist.txt`).
-- **The chat / conversation language is each contributor's own choice, NOT something this repo dictates.** How an agent talks to *you* in chat is set in your personal global config (`~/.claude/CLAUDE.md` / `AGENTS.md`) — a German maintainer, a Spanish contributor, and an English one each set their own. This project neither requires nor assumes any particular chat language; it only fixes the artifacts as English.
-- **Exempt from the English rule:** already-committed non-English content (don't retro-translate), and the runtime TTS/voice product surface (below), which is multilingual by design.
+**Fail-closed default.** Treat every line you write *or touch* — code, comments, docstrings, log/exception/error messages, Markdown (READMEs, ADRs, plans, `BUGS.md`, handoffs, design/forensic docs), `SKILL.md`, commit messages, PR titles/bodies, test names + docstrings, CLI help, FastAPI route descriptions, JSON-schema `description` fields, audit-log entries, telemetry names, and UI strings (i18n key + **English** source — never a non-English source) — as English **unless it provably falls inside the closed product-surface list below.** When in doubt, it is English. "It's only a comment / a test / an internal doc / a quick note" is **not** an exemption — those are exactly where German keeps leaking in. You may not invent a new German-allowed category; if you believe one exists, stop and ask rather than committing the German.
+
+**The ONLY German permitted — the multilingual *product surface* (this list is CLOSED):**
+1. **Runtime voice/TTS + chat output** Jarvis speaks or writes back to the user — governed by the per-turn resolver in the Runtime-output subsection below.
+2. **i18n / locale *source* files and the website's localized copy** (`*/i18n/*`, `*/locales/*`, `*.de.json`, `*.de.ts`, and the like) — German there *is* the product content.
+3. **Speech-recognition *input vocabulary*** — the German tokens a classifier must literally contain to match German voice utterances (router, navigation-intent, local-action gate, trigger matcher, …). This is matching *data*, not prose.
+4. **The tests / fixtures and forensic voice-bug deep-dives** that necessarily quote 1–3 as the content under test.
+
+That list is materialized file-by-file in `scripts/ci/german-allowlist.txt`. **Anything not in one of those four buckets must be English.** German anywhere else is a *defect*, not a stylistic choice — translate it.
+
+- **The allowlist is a curated, justified register — never a free pass to silence the gate.** Every entry must name which of the four product-surface reasons it serves. **"Whole-file scope, narrow later" and "shared tree, do it later" are no longer acceptable justifications for a new entry.** Prefer an inline `i18n-allow` on the one load-bearing German line over exempting a whole file, so a future English line added to that same file is still checked. Add a file only because it is genuinely product surface — not because it is red.
+- **Pre-existing German is *backlog*, not a protected state.** The old "don't retro-translate / already-committed content is exempt" carve-out is **removed**. There is no mass-rewrite mandate (a shared working tree makes a giant sweep risky), but when you edit a file and pass non-product-surface German, **translate it on the way through** — do not preserve it, copy it forward, or add more German beside it.
+- **The CI gate only sees what a diff ADDS, and only on PRs** (`scripts/ci/check_no_new_german.py`) — it is structurally blind to the backlog. So the first line of defense is the agent: writing or leaving German where English was required is a bug, gate or no gate.
+- **Chat / conversation language is each contributor's own choice**, set in their personal global config (`~/.claude/CLAUDE.md` / `AGENTS.md`) — a German, Spanish, or English maintainer each picks their own. This repo neither requires nor assumes any chat language; it only fixes the **artifacts** as English. Conversation = your choice; artifacts = English, always.
### Runtime output language (voice + chat) — BINDING
diff --git a/CLAUDE.md b/CLAUDE.md
index 111d645bbc..023274ad34 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -19,13 +19,24 @@ copy one onto the other) so the tree stays in sync before you commit.
---
-## 1. Language — an international, English-first project
+## 1. Language — English-only artifacts, fail-closed (BINDING, HIGHEST PRIORITY)
-**Personal Jarvis is an international open-source project. Its working language is English — not German, not any other single human language.** Assume contributors and downloaders worldwide; never bias the codebase, docs, or defaults toward one locale. Every artifact an agent produces in this repo is English, full stop.
+**Personal Jarvis is an international open-source project. The working language for everything an agent commits is English — full stop, with no exception outside the single closed list below.** Assume an arbitrary downloader anywhere on earth: English is the lingua franca that reaches the most of them, so English is **always** preferred and is never weighed against any single locale. This is not "English-first, German-tolerated" — it is **English-only for artifacts**. Any historical note that this is a "German project" / "internationales deutsches Projekt" is **dead** and is overridden by this section. <!-- i18n-allow: names the dead German label being retired -->
-- **Artifacts = English, always.** This covers code, comments, docstrings, log/exception messages, Markdown (READMEs, ADRs, plans, `BUGS.md` entries, handoffs), `SKILL.md` files, commit messages, PR titles/bodies, test names + docstrings, CLI help text, FastAPI route descriptions, error responses, JSON-schema `description` fields, audit-log entries, telemetry event names, and any new UI strings (i18n key + English source — never a non-English source). If unsure, default to English. This overrides any historical "Sprache: Deutsch" note. Enforced by the diff-based `language-policy` CI job (escape hatch: an inline `i18n-allow` marker or a glob in `scripts/ci/german-allowlist.txt`).
-- **The chat / conversation language is each contributor's own choice, NOT something this repo dictates.** How an agent talks to *you* in chat is set in your personal global config (`~/.claude/CLAUDE.md` / `AGENTS.md`) — a German maintainer, a Spanish contributor, and an English one each set their own. This project neither requires nor assumes any particular chat language; it only fixes the artifacts as English.
-- **Exempt from the English rule:** already-committed non-English content (don't retro-translate), and the runtime TTS/voice product surface (below), which is multilingual by design.
+**Fail-closed default.** Treat every line you write *or touch* — code, comments, docstrings, log/exception/error messages, Markdown (READMEs, ADRs, plans, `BUGS.md`, handoffs, design/forensic docs), `SKILL.md`, commit messages, PR titles/bodies, test names + docstrings, CLI help, FastAPI route descriptions, JSON-schema `description` fields, audit-log entries, telemetry names, and UI strings (i18n key + **English** source — never a non-English source) — as English **unless it provably falls inside the closed product-surface list below.** When in doubt, it is English. "It's only a comment / a test / an internal doc / a quick note" is **not** an exemption — those are exactly where German keeps leaking in. You may not invent a new German-allowed category; if you believe one exists, stop and ask rather than committing the German.
+
+**The ONLY German permitted — the multilingual *product surface* (this list is CLOSED):**
+1. **Runtime voice/TTS + chat output** Jarvis speaks or writes back to the user — governed by the per-turn resolver in the Runtime-output subsection below.
+2. **i18n / locale *source* files and the website's localized copy** (`*/i18n/*`, `*/locales/*`, `*.de.json`, `*.de.ts`, and the like) — German there *is* the product content.
+3. **Speech-recognition *input vocabulary*** — the German tokens a classifier must literally contain to match German voice utterances (router, navigation-intent, local-action gate, trigger matcher, …). This is matching *data*, not prose.
+4. **The tests / fixtures and forensic voice-bug deep-dives** that necessarily quote 1–3 as the content under test.
+
+That list is materialized file-by-file in `scripts/ci/german-allowlist.txt`. **Anything not in one of those four buckets must be English.** German anywhere else is a *defect*, not a stylistic choice — translate it.
+
+- **The allowlist is a curated, justified register — never a free pass to silence the gate.** Every entry must name which of the four product-surface reasons it serves. **"Whole-file scope, narrow later" and "shared tree, do it later" are no longer acceptable justifications for a new entry.** Prefer an inline `i18n-allow` on the one load-bearing German line over exempting a whole file, so a future English line added to that same file is still checked. Add a file only because it is genuinely product surface — not because it is red.
+- **Pre-existing German is *backlog*, not a protected state.** The old "don't retro-translate / already-committed content is exempt" carve-out is **removed**. There is no mass-rewrite mandate (a shared working tree makes a giant sweep risky), but when you edit a file and pass non-product-surface German, **translate it on the way through** — do not preserve it, copy it forward, or add more German beside it.
+- **The CI gate only sees what a diff ADDS, and only on PRs** (`scripts/ci/check_no_new_german.py`) — it is structurally blind to the backlog. So the first line of defense is the agent: writing or leaving German where English was required is a bug, gate or no gate.
+- **Chat / conversation language is each contributor's own choice**, set in their personal global config (`~/.claude/CLAUDE.md` / `AGENTS.md`) — a German, Spanish, or English maintainer each picks their own. This repo neither requires nor assumes any chat language; it only fixes the **artifacts** as English. Conversation = your choice; artifacts = English, always.
### Runtime output language (voice + chat) — BINDING