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: fix three descriptions that contradict the code they describe

Ruben Lütke41a60c53ca86
diff --git a/docs/LLM-CONTEXT.md b/docs/LLM-CONTEXT.md
index 8dbfdcafe0..2c1f0eb542 100644
--- a/docs/LLM-CONTEXT.md
+++ b/docs/LLM-CONTEXT.md
@@ -9,7 +9,7 @@
> **Looking for the human-facing overview?** See [`../README.md`](../README.md).
> **Binding source-of-truth:** [`../CLAUDE.md`](../CLAUDE.md) + the docs linked at the bottom.
-**Personal Jarvis** is a voice-driven **Supervisor-Agent meta-orchestrator** — not a classical voice assistant. The core pattern is a fast **Router-Brain** that dispatches work to interchangeable executors: router-tier tools, a computer-use harness, and — for heavy work — isolated mission workers (`ClaudeDirectWorker`, `CodexDirectWorker`, `GoogleCliWorker`, in-process `ApiAgentWorker`). NB: only two `jarvis.harness` entry points are registered, `python-script` and `screenshot` (`pyproject.toml`); `open_interpreter.py` is a stub that returns `exit_code=1` and `mcp_remote.py` is unregistered — `tests/contract/test_harness_protocol.py` asserts both are unavailable. MCP reaches the brain as *tools* via the `mcp-tools` loader, not as a harness. The voice layer is just the I/O surface; the soul is the dispatcher discipline that keeps the Router-Brain lean and delegates heavy reasoning to specialized Jarvis-Agents under critic-loop + worktree-isolation guard rails. The project is **provider-agnostic by mandate** — the user has no Anthropic API account (Claude Max OAuth is used only inside workers) — and **self-modifying** via an atomic config-writer with a 10-step validate-backup-tempfile-replace-rollback-audit pipeline.
+**Personal Jarvis** is a voice-driven **Supervisor-Agent meta-orchestrator** — not a classical voice assistant. The core pattern is a fast **Router-Brain** that dispatches work to interchangeable executors: router-tier tools, a computer-use harness, and — for heavy work — isolated mission workers (`ClaudeDirectWorker`, `CodexDirectWorker`, `GoogleCliWorker`, in-process `ApiAgentWorker`). NB: only two `jarvis.harness` entry points are registered, `python-script` and `screenshot` (`pyproject.toml`); `open_interpreter.py` is a stub that returns `exit_code=1` and `mcp_remote.py` is unregistered — `tests/contract/test_harness_protocol.py` asserts both are unavailable. MCP reaches the brain as *tools* via the `mcp-tools` loader, not as a harness. The voice layer is just the I/O surface; the soul is the dispatcher discipline that keeps the Router-Brain lean and delegates heavy reasoning to specialized Jarvis-Agents under critic-loop + worktree-isolation guard rails. The project is **provider-agnostic by mandate** — assume the downloader has exactly one credential, from any vendor, and never assume it is an Anthropic API key (subscription OAuth is used only inside workers) — and **self-modifying** via an atomic config-writer with a 10-step validate-backup-tempfile-replace-rollback-audit pipeline.
> ### Cloud-First — Read This Before The Install Section
> **Target runtime is any €5 / month VPS or low-spec laptop** with a modern browser. **The maintainer's RTX 5070 Ti / Windows 11 Pro workstation is not a requirement** — it represents fewer than 0.1 % of the install base this project is being designed for. All Brain / STT / TTS / Vision / Wake providers default to cloud APIs; no GPU, no local models, no Windows APIs, no microphone are required in the base install. Windows-desktop features (tray app, Orb overlay, global hotkey wake, local Whisper, Silero-VAD-in-process, Computer-Use harness, PowerShell drift-guard daemon) are **opt-in `[desktop]` extras**, not requirements. **Binding doctrine: [`docs/PHILOSOPHY.md`](docs/PHILOSOPHY.md)**. On conflict between this README and `PHILOSOPHY.md`, the doctrine wins.
@@ -383,7 +383,7 @@ Verified against the actual file tree (not just CLAUDE.md claims):
| 0–4 Foundations | live | Protocols, plugin system, FastAPI/React, speech pipeline, skill system, tool-use loop, harness dispatch, core memory |
| 5 Vision/Action/Admin/Async/Control + Tiered Routing | live | `jarvis/{vision,admin,tasks,control,telemetry}/`, `ROUTER_TOOLS` frozenset, ADR-0001..0011 |
| 6 Self-Healing Worker-Critic | live | `jarvis/missions/{manager,kontrollierer,critic,workers,isolation,worker_runtime,voice,safety}/`. 458 mission tests. Wired via `bootstrap_missions` |
-| 7 Self-Mod (foundation + writer + tools) | live | `jarvis/core/self_mod/` (audit, errors, pending, registry, schema, writer). `spawn-skill-author` **IS** registered at `pyproject.toml:208` (CLAUDE.md says otherwise — see §25) |
+| 7 Self-Mod (foundation + writer + tools) | live | `jarvis/core/self_mod/` (audit, errors, pending, registry, schema, writer). `spawn-skill-author` is **NOT** reachable from the brain — see §25; the live authoring path is the `skill-creator` builtin plus `POST /api/skills/creator/*` |
| Awareness A0–A5 | live | `jarvis/awareness/` (state, story, salience, verdichter, working_set, episode, watchers, probes). A1 + A3 router tools registered |
| Wiki B0/B1/B2/B3/B5/B7/B8/B9 | live | `jarvis/memory/wiki/` (curator, atomic_writer, page, integration, scheduler, session_rollup, voice_bridge, telemetry, vault_index, watcher, search). 3 router tools |
| Wiki B4 (legacy Curator) | soft-disabled | `factory.py:736-757` gates on `cfg.memory.legacy_curator.enabled` (default `false` since 2026-05-17). `data/workspace/` snapshot stays on disk for 35 reader sites |
@@ -430,7 +430,7 @@ The single most important table for an LLM joining cold:
| AP-3 | Call `Tool.execute()` directly (bypassing `ToolExecutor`) | Risk-tier/whitelist/plausibility skipped |
| AP-4 | Add a new `hangup_reason`/mission-status string in one site only | BUG-008 recurrence: HTTP 500, empty UI |
| AP-5 | Put `spawn-openclaw`/`dispatch-with-review`/`run-skill` in a worker tool set | D9 recursion: worker spawns supervisor, infinite loop |
-| AP-6 | Hardcode `Claude`/`Anthropic` API client | User has no Anthropic API account; breaks `cfg.brain.primary` |
+| AP-6 | Hardcode `Claude`/`Anthropic` API client | Most downloaders have no Anthropic key; breaks `cfg.brain.primary` |
| AP-7 | Write `jarvis.toml` without `_WRITE_LOCK` + tempfile + BOM handling | BUG-018: BOM-corrupted TOML, backend won't boot |
| AP-8 | Skip `scripts/preflight.ps1` in a new worktree | BUG-006/014: edits go to a worktree the live Python doesn't import from |
| AP-9 | Run new awareness/wiki code in the voice critical path | Latency regression — awareness is read-only, off the hot path |
@@ -671,7 +671,7 @@ Self-mod writeup: [`docs/self_mod.md`](docs/self_mod.md) — 8 mutable settings
Two drifts surfaced during the agent audit; flag them before quoting CLAUDE.md to a fresh chat:
-1. **`spawn-skill-author` IS registered in `pyproject.toml:208`** as `spawn-skill-author = "jarvis.brain.tools.skill_authoring:SpawnSkillAuthorTool"` (landed 2026-05-17 per inline comment). CLAUDE.md still says "7.5 `spawn_skill_author` not yet registered in `pyproject.toml`" — outdated. The Phase-7.5 self-modifying skill-authoring tool is wired.
+1. **`spawn-skill-author` is NOT wired** (corrected 2026-07-25). It carried a `pyproject.toml` entry point, and this document previously concluded from that registration that the tool was live — it was not, and that claim misled every agent session reading this file. The tool is absent from `ROUTER_TOOLS` (the only allow-set, so `factory.py` filters it out), AND its `__init__` requires a `runner=` argument the entry-point loader cannot supply — so adding it to `ROUTER_TOOLS` raises `TypeError` at tool load rather than fixing anything. The entry point has been removed; skill authoring lives in the `skill-creator` builtin and `POST /api/skills/creator/{draft,refine,validate,commit}`, which already enforce the AP-15 draft guard. Guarded by `tests/unit/brain/test_router_tool_entrypoint_parity.py`.
2. **`jarvis/sub_jarvis/` directory still exists** as an **empty placeholder** (no `__init__.py`, no files) despite CLAUDE.md and `docs/jarvis-agents-bridge.md §11` declaring it deleted in Welle 4. Cleanup is structurally complete (no code references), but the empty dir itself is leftover.
diff --git a/jarvis/brain/ack_brain/config.py b/jarvis/brain/ack_brain/config.py
index 74d4326bdb..25e7a48cb6 100644
--- a/jarvis/brain/ack_brain/config.py
+++ b/jarvis/brain/ack_brain/config.py
@@ -1,7 +1,18 @@
"""Pydantic config models for the Pre-Thinking Ack Flash-Brain.
-Maps the [ack_brain] section of jarvis.toml. Default `enabled = False`
-so the feature is opt-in until the user explicitly turns it on.
+Maps the [ack_brain] section of jarvis.toml. Two switches, opposite defaults:
+
+- ``enabled = True`` — the subsystem master. ON by default; it keeps the
+ GROUNDED spoken output wired (the per-tool ack and the spawn announcement,
+ both emitted only after a real tool call / worker spawn).
+- ``preamble_enabled = False`` — the SPECULATIVE pre-thinking preamble. OFF by
+ default since 2026-06-21: it fired on every utterance with no grounding in
+ the action the deep brain actually took, reached first token at a median
+ 2.98 s, and was the only spoken output on 22 % of preamble turns.
+
+(This docstring used to claim `enabled = False` / "opt-in until the user turns
+it on", which described the pre-2026-06-21 shape and contradicted the field
+defaults below.)
"""
from __future__ import annotations
@@ -70,9 +81,11 @@ class _ProvidersBundle(BaseModel):
class AckBrainConfig(BaseModel):
"""Root config for the Pre-Thinking Ack Flash-Brain.
- Mapped from the [ack_brain] section of jarvis.toml. The feature is
- opt-in: until enabled=True is set explicitly, the AckGenerator is
- not instantiated and the existing silent-fallback path is used.
+ Mapped from the [ack_brain] section of jarvis.toml. ``enabled`` defaults to
+ True (see the field comment below) and gates the whole subsystem; the
+ speculative preamble is separately gated by ``preamble_enabled``, which
+ defaults to False. Setting ``enabled = false`` takes the grounded spawn
+ announcement down with it and restores the fully silent path.
"""
model_config = ConfigDict(extra="forbid")
diff --git a/jarvis/plugins/tool/switch_provider.py b/jarvis/plugins/tool/switch_provider.py
index 683743c45e..a7b87b6039 100644
--- a/jarvis/plugins/tool/switch_provider.py
+++ b/jarvis/plugins/tool/switch_provider.py
@@ -1,8 +1,16 @@
"""``switch-provider`` tool — change the active brain/TTS/STT/subagent provider.
Router-tier, ``monitor`` (runs immediately, audited — no up-front confirmation).
-This is the voice/chat path for "switch from Grok to Gemini", "use OpenAI for the
-brain", "change TTS to Cartesia", etc.
+This is the voice/chat path for "switch the voice to Cartesia", "use Groq for
+speech recognition", "put the subagent on codex", etc.
+
+NOT the brain, though the ``tier`` schema still accepts it: a ``brain`` switch is
+REFUSED here with ``provider_switch_locked`` and never reaches
+``apply_provider_switch``. The active brain provider is the user's hard choice
+and changes only through the control CLI or the desktop app's manual switch
+(``actor=AuditActor.USER``) — see ``jarvis/core/self_mod/provider_lock.py`` and
+``tests/unit/plugins/tool/test_switch_provider_brain_lock.py``. Jarvis itself,
+which is what calls this tool, is exactly the actor the lock excludes.
A provider switch is REVERSIBLE and the tool speaks an honest post-change readback
(old -> new), so an STT mishear of the provider name is caught *after* the fact —
@@ -45,13 +53,18 @@ class SwitchProviderTool:
# ``ask`` is the one tier in ``always_confirm_tiers``). Forensic 2026-06-26.
risk_tier: ClassVar[str] = "monitor"
description: ClassVar[str] = (
- "Switch which AI provider is active for a given tier: 'brain' (the main "
- "assistant model), 'tts' (text-to-speech voice), 'stt' (speech-to-text), or "
- "'subagent' (the heavy background worker). Use this for requests like "
- "'switch from Grok to Gemini', 'use OpenAI for the brain', or 'change the "
- "voice to Cartesia'. This only changes which provider is ACTIVE — the "
+ "Switch which AI provider is active for a given tier: 'tts' (text-to-speech "
+ "voice), 'stt' (speech-to-text), or 'subagent' (the heavy background "
+ "worker). Use this for requests like 'change the voice to Cartesia', 'use "
+ "Groq for speech recognition', or 'put the subagent on codex'. "
+ "The 'brain' tier is DELIBERATELY NOT switchable this way: the active "
+ "assistant model is the user's own choice and can only be changed by them "
+ "in the desktop app or the CLI. Do not call this tool for 'switch to "
+ "Gemini', 'use OpenAI', or any other request about the main model — it "
+ "will be refused. Tell the user where to change it instead. "
+ "This only changes which provider is ACTIVE — the "
"target provider's API key must already be saved (it does NOT set keys). "
- "If the key is missing, it says so. Brain and TTS take effect immediately; "
+ "If the key is missing, it says so. TTS takes effect immediately; "
"STT and subagent need a restart."
)
schema: ClassVar[dict[str, Any]] = {