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(contract): provider & mode parity is binding — every key, every engine, every surface

Harald9ca5582d0f0f
diff --git a/AGENTS.md b/AGENTS.md
index 72f41765d3..98f94970ef 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -33,7 +33,19 @@ Assume an arbitrary downloader, never the maintainer: ANY single key works
OS incl. headless `python:3.11-slim` (base stays torch-free; GPU deps in
`[local-voice]`); credentials recoverable IN-APP (keyring → ENV → file).
macOS/Linux ship in the SAME change behind one capability probe or degrade
-honestly (+ `docs/os-parity.md`). Done = the four non-maintainer paths (§3).
+honestly (+ `docs/os-parity.md`). Done = the five non-maintainer paths (§3).
+**Provider & mode parity (BINDING):** every feature — and every analysis,
+plan, or estimate BEFORE it — targets the FULL matrix from the first
+sentence: every provider family and key (all Brain/Tool-Model providers incl.
+local Ollama/llama.cpp, every realtime transport `openai-realtime` /
+`gemini-live` / `vertex-live` / tool-less handoff, every STT/TTS/Vision/Wake
+— enumerated by `jarvis/core/config.py` + `jarvis/realtime/factory.py`,
+NEVER by the dev box's `jarvis.toml`) × every mode and surface (realtime
+engine AND classic pipeline, text chat, browser/headless, channels, CLI) ×
+every OS. A transport-specific trick is ONE declared capability; every other
+transport gets the generic path, an emulation, or honest degradation with a
+stated reason. "Works on vertex-live" / "works in realtime mode" is one cell,
+not done; plans and PRs name the cells they cover, emulate, and degrade.
Device triage: version lag → setup divergence → OS gap.
Ollama/llama.cpp defaults, recommendations, and examples must be verified
against the official live catalog when changed and use a current,
diff --git a/CLAUDE.md b/CLAUDE.md
index 72f41765d3..98f94970ef 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -33,7 +33,19 @@ Assume an arbitrary downloader, never the maintainer: ANY single key works
OS incl. headless `python:3.11-slim` (base stays torch-free; GPU deps in
`[local-voice]`); credentials recoverable IN-APP (keyring → ENV → file).
macOS/Linux ship in the SAME change behind one capability probe or degrade
-honestly (+ `docs/os-parity.md`). Done = the four non-maintainer paths (§3).
+honestly (+ `docs/os-parity.md`). Done = the five non-maintainer paths (§3).
+**Provider & mode parity (BINDING):** every feature — and every analysis,
+plan, or estimate BEFORE it — targets the FULL matrix from the first
+sentence: every provider family and key (all Brain/Tool-Model providers incl.
+local Ollama/llama.cpp, every realtime transport `openai-realtime` /
+`gemini-live` / `vertex-live` / tool-less handoff, every STT/TTS/Vision/Wake
+— enumerated by `jarvis/core/config.py` + `jarvis/realtime/factory.py`,
+NEVER by the dev box's `jarvis.toml`) × every mode and surface (realtime
+engine AND classic pipeline, text chat, browser/headless, channels, CLI) ×
+every OS. A transport-specific trick is ONE declared capability; every other
+transport gets the generic path, an emulation, or honest degradation with a
+stated reason. "Works on vertex-live" / "works in realtime mode" is one cell,
+not done; plans and PRs name the cells they cover, emulate, and degrade.
Device triage: version lag → setup divergence → OS gap.
Ollama/llama.cpp defaults, recommendations, and examples must be verified
against the official live catalog when changed and use a current,
diff --git a/CLOUD.md b/CLOUD.md
index bb1a66b543..ebaa56e352 100644
--- a/CLOUD.md
+++ b/CLOUD.md
@@ -53,6 +53,21 @@ Concretely, Rule #1 means:
---
+## Rule #2 — Everything we build must work with every provider, every API key, and every mode. (NON-NEGOTIABLE, added 2026-08-18)
+
+**Every feature, and every analysis or plan that precedes it, targets the FULL provider × mode × OS matrix from the first sentence — never the maintainer's current setup.**
+
+Rule #1 says "every OS". Rule #2 is its sibling for everything else the user can plug in:
+
+1. **Every provider family and every key the app accepts** — all Brain / Tool-Model providers (cloud AND local Ollama/llama.cpp), every realtime transport (`openai-realtime`, `gemini-live`, `vertex-live`, the tool-less handoff transports), every STT / TTS / Vision / Wake provider. The list is the code (`jarvis/core/config.py`, `jarvis/realtime/factory.py`) — never the dev box's `jarvis.toml`.
+2. **Every mode and surface** — the realtime engine AND the classic pipeline, text chat (desktop, headless launcher, browser UI), channels (Telegram / Discord / webhook / SMS), the CLI.
+3. **A provider-specific mechanism is ONE declared capability**, never the design. Every other provider gets the same user-visible behaviour through the generic path or an emulation, or degrades honestly with a stated reason (capability-gated, AP-21).
+4. **"Works on vertex-live" / "works in realtime mode" is one cell, not done.** Plans, ADRs, and PRs name the cells they cover natively, emulate, and degrade — and an analysis that reasons only from the maintainer's provider is incomplete and is redone.
+
+The maintainer's `vertex-live` + Vertex tool model + realtime mode is a sample of one. Full text: `docs/agent-contract.md` §3 "Provider & mode parity".
+
+---
+
## The rest of the doctrine (summary — full text in `docs/PHILOSOPHY.md`)
- **All five provider classes (Brain, STT, TTS, Vision, Wake) have a fully cloud-reachable default path** — no required local GPU, model, microphone, speaker, or OS API.
diff --git a/docs/agent-contract.md b/docs/agent-contract.md
index 253c95635b..d1b1e8236e 100644
--- a/docs/agent-contract.md
+++ b/docs/agent-contract.md
@@ -173,6 +173,50 @@ MCP), and credential STORAGE itself. Every one must:
fallback (`config._ensure_keyring_backend`); a save/connect must never 500
on a host without a Secret Service.
+### Provider & mode parity — every key, every engine, every surface (BINDING)
+
+The maintainer's current setup — one realtime transport, one brain family,
+one voice mode, one OS — is a sample of ONE, never the design target. Every
+feature, and every analysis, plan, estimate, or ADR that precedes it, is
+designed for the FULL matrix from the first sentence (maintainer directive
+2026-08-18):
+
+- **Every provider family and every key the app accepts** — all Brain /
+ Tool-Model providers (cloud AND local Ollama/llama.cpp), every realtime
+ transport (`openai-realtime`, `gemini-live`, `vertex-live`, the tool-less
+ handoff transports), every STT / TTS / Vision / Wake provider. The
+ enumeration is the CODE — `jarvis/core/config.py` (credential families,
+ provider ids) and `jarvis/realtime/factory.py` — never this file and never
+ the dev box's `jarvis.toml`.
+- **Every mode and surface** — the realtime engine AND the classic pipeline
+ (`[voice].mode`), text chat (desktop app, headless launcher, browser UI),
+ channels (Telegram / Discord / webhook / SMS), the CLI.
+- **Every OS** — see the next subsection.
+
+Rules:
+
+1. **Design once, capability-gated (AP-21).** A transport- or
+ provider-specific mechanism (a native async function call, a streaming
+ flag, a voice pin, a schema subset) is ONE capability the adapter
+ declares. Every other provider gets the same user-visible behaviour
+ through the generic path or an emulation, or degrades honestly with a
+ stated reason. "Works on vertex-live" or "works in realtime mode" is one
+ cell of the matrix, not done.
+2. **Name the matrix before building.** An assessment, plan, ADR, or PR
+ that touches a provider- or mode-facing path states which cells it
+ covers natively, which it emulates, and which degrade — and why. The
+ maintainer's cell is never the implicit reference; an analysis that
+ reasons only from the dev box's current provider is incomplete and is
+ redone.
+3. **Test the families, not the favourite.** A change to a provider-facing
+ contract lands with `tests/contract/` coverage or fakes for each family
+ it touches; a change to turn-taking, acknowledgments, interim speech, or
+ result delivery lands with tests for BOTH voice engines and the chat
+ surface.
+4. **Read the enumerations from the code**, never from what is currently
+ configured: `git show`/grep the provider tables before scoping, and list
+ every entry, including the ones the dev box has no key for.
+
### OS feature parity — macOS and Linux are first-class (BINDING)
Every feature ships working on **all three OSes in the SAME change**, never
@@ -185,8 +229,8 @@ gate + honest degradation + a tracked entry in
[`docs/os-parity.md`](os-parity.md).
**Definition of done** for any change touching config, credentials, a
-provider/integration, or OS-specific code — verify the FOUR non-maintainer
-paths (test or honest manual trace):
+provider/integration, a voice engine, a chat/channel surface, or OS-specific
+code — verify the FIVE non-maintainer paths (test or honest manual trace):
1. **Fresh install, ONE arbitrary key** reaches a working path (chat + voice
+ Jarvis-Agent + the touched feature), entirely in-app.
@@ -195,6 +239,12 @@ paths (test or honest manual trace):
3. **macOS** — works there, or degrades honestly + `docs/os-parity.md` entry.
4. **Cross-family fallback** — a dead/absent configured provider crosses to
whatever the user actually has, or degrades honestly.
+5. **Provider & mode parity** — the feature behaves the same, or degrades
+ honestly per declared capability, on EVERY provider family the touched
+ surface accepts (all realtime transports, all brain families incl. local,
+ all STT/TTS/Vision/Wake) and in EVERY mode and surface it is reachable
+ from (realtime engine, classic pipeline, chat, channels, CLI) — with the
+ covered / emulated / degraded cells named in the change.
"It works on my machine" is the *defect* — the maintainer's box is <0.1 % of
the install base. Doctrine: [`CLOUD.md`](../CLOUD.md) +