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.

fix(harness): stop advertising unavailable adapters

Ruben Lütke2a80e6d28738
diff --git a/docs/LLM-CONTEXT.md b/docs/LLM-CONTEXT.md
index acd299ad26..294fedd801 100644
--- a/docs/LLM-CONTEXT.md
+++ b/docs/LLM-CONTEXT.md
@@ -256,7 +256,7 @@ Direct launcher: `python -m jarvis.ui.web.launcher [--headless|--dev|--port N|--
```
L7 UI/UX Tray, Toasts, Admin-API, Desktop-App (FastAPI+React+pywebview), Orb-Overlay
L6 Orchestrator State-Machine, Router, BrainManager, Supervisor, Mission-Manager, Kontrollierer
-L5 Harness-Adapter OpenClaw, Codex, Open Interpreter, Python-Script, MCP-Remote
+L5 Harness-Adapter Capability-gated Computer Use and universal Python Script
L4 Brain 5 providers (Claude-API, OpenRouter, OpenAI, Gemini, Grok) + Ack-Brain sub-second tier
L3 Intent/Risk Classifier, Risk-Tier-Policy, Approval, Rate-Limit-Tracker
L2 Speech Wake → VAD (Silero) → STT (faster-whisper / Google / Deepgram) → TTS (Gemini Flash / Grok-Voice / SAPI5)
@@ -299,14 +299,14 @@ User context: **No Anthropic API account** (AP-6). Workers use Claude Sonnet via
Four levels: `RiskTier = Literal["safe", "monitor", "ask", "block"]` (`protocols.py:108`). `RiskTierEvaluator.evaluate()` (`jarvis/safety/risk_tier.py:64-100`) applies **blacklist > whitelist > tool default** — blacklist match raises `ActionBlocked`; whitelist match downgrades to `safe` with `approved_by="whitelist"` (the anti-confirmation-fatigue contract). Glob matching via `fnmatch` on `"<tool_name> <serialized_args>"`. **`ToolExecutor.execute()` is the only authorized call path; AP-3 forbids direct `Tool.execute()`.**
-**Router discipline (ADR-0011 amended):** the Router-Brain is a **pure dispatcher**. Tool surface is the `ROUTER_TOOLS` frozenset at `jarvis/brain/factory.py:40-77` — 13 tools: `run-shell`, `screen-snapshot`, `dispatch-to-harness`, `multi-spawn`, `spawn-openclaw`, `dispatch-with-review`, `awareness-snapshot`, `awareness-recall`, `run-skill`, `wiki-recall`, `wiki-page-read`, `wiki-ingest`, plus the Self-Mod trio (`list_mutable_settings`, `get_config_value`, `set_config_value`).
+**Router discipline (ADR-0011 amended):** the Router Brain uses the curated `ROUTER_TOOLS` frozenset in `jarvis/brain/factory.py`. Heavy work has exactly one model-visible delegation action: `spawn-worker`. The legacy `dispatch-to-harness`, `multi-spawn`, and `dispatch-with-review` entry points are not in that set. Flat CLI, MCP, marketplace, and app-command loaders expose only capability-gated actions; the Mission Manager owns worker execution and Critic review.
Force-spawn heuristic in `BrainManager._should_force_openclaw`:
- Smalltalk allowlist wins → never 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).
+**The Jarvis-Agent tier was deleted in Wave 4** — only `"router"` remains. Resurrecting `SUB_TOOLS` or adding any supervisor-spawn action to a worker set breaks the D9 recursion guard (AP-14).
---
diff --git a/docs/SINGLE-SOURCE-OF-TRUTH.md b/docs/SINGLE-SOURCE-OF-TRUTH.md
index e4af421ca5..0cbd6f9fe4 100644
--- a/docs/SINGLE-SOURCE-OF-TRUTH.md
+++ b/docs/SINGLE-SOURCE-OF-TRUTH.md
@@ -79,7 +79,7 @@ fallback, or split the work.
```
L7 UI/UX Tray, Toasts, Admin-API, Desktop-App (FastAPI+React+pywebview), Orb-Overlay
L6 Orchestrator State-Machine, Router, BrainManager, Supervisor, Mission-Manager
-L5 Harness-Adapter OpenClaw, Codex, Open Interpreter, Python-Script, MCP-Remote
+L5 Harness-Adapter Capability-gated Computer Use and universal Python Script
L4 Brain 5 providers (Claude-API, OpenRouter, OpenAI, Gemini, Grok) + Ack-Brain sub-second tier
L3 Intent/Risk Classifier, Risk-Tier-Policy, Approval, Rate-Limit-Tracker
L2 Speech Wake -> VAD (Silero) -> STT (faster-whisper / Google) -> TTS (Gemini Flash / Grok-Voice / SAPI5)
@@ -165,7 +165,7 @@ checks. Bypassing it skips all three.
The router-tier brain is a **pure dispatcher**, not an actor. Its entire tool surface is the
`ROUTER_TOOLS` frozenset. Anything outside that set is delegated to Jarvis-Agents via
-`spawn_openclaw`.
+`spawn-worker`.
A force-spawn heuristic decides when to dispatch heavy work:
@@ -173,9 +173,9 @@ A force-spawn heuristic decides when to dispatch heavy work:
- **Action verb** (read/build/install/open/do/show + repair words) → spawn.
- **External-system marker** (PR / repo / GitHub / issue) → spawn.
-**The Jarvis-Agent tier was deleted (Welle 4).** Only `"router"` remains. Re-introducing a
-`SUB_TOOLS` set, or putting any spawn tool (`spawn-openclaw`, `dispatch-with-review`,
-`run-skill`) into a *worker* tool set, breaks the recursion guard — a worker would be able to
+**The Jarvis-Agent tier was deleted (Wave 4).** Only `"router"` remains. Re-introducing a
+`SUB_TOOLS` set, or putting any supervisor-spawn action into a *worker* tool set,
+breaks the recursion guard — a worker would be able to
spawn its own supervisor, causing an infinite loop. This is anti-pattern AP-5/AP-14.
---
diff --git a/docs/adr/0011-router-pure-dispatcher.md b/docs/adr/0011-router-pure-dispatcher.md
index 8d5173387e..532aabdd31 100644
--- a/docs/adr/0011-router-pure-dispatcher.md
+++ b/docs/adr/0011-router-pure-dispatcher.md
@@ -904,3 +904,37 @@ it.
- Preserve the Mission Manager Critic-loop smoke test as the review guarantee.
- Remove the legacy review implementation once non-router compatibility callers
have migrated.
+
+## Amendment 2026-07-13 - advertise only operational harness adapters
+
+### Context
+
+The package still registered `mcp-remote` and `open-interpreter` as harnesses.
+The former implemented an obsolete MCP client API and bootstrapped with an empty
+registry; the latter was an explicit stub that always returned failure. Their
+presence in entry-point discovery and the default `[harness].enabled` list made
+unavailable functionality look ready on a fresh installation.
+
+### Decision
+
+The operational harness inventory contains only `python-script` and the
+capability-gated `screenshot` Computer Use adapter. MCP servers contribute flat,
+safety-gated tools through the live MCP loader; they are not worker harnesses.
+Any mission-scoped worker grants must reuse that tool surface rather than revive
+the obsolete harness adapter. Heavy work continues through `spawn-worker` and
+the Mission Manager. Stale configured harness names are reported by the doctor.
+
+### Consequences
+
+- Discovery no longer claims that a stub or obsolete protocol adapter can run.
+- The universal Python harness remains available on a headless base install.
+- Computer Use remains registered but reports unhealthy until its desktop
+ context and dependencies are ready.
+- MCP actions retain the normal ToolExecutor policy instead of bypassing it
+ through the obsolete harness adapter.
+
+### Regression guards
+
+- `tests/contract/test_harness_protocol.py`
+- `tests/unit/diagnostics/test_doctor_diagnostics.py`
+- `tests/unit/core/test_capabilities.py`
diff --git a/docs/architecture-overview.md b/docs/architecture-overview.md
index 6bba235c6f..fbd1e125a8 100644
--- a/docs/architecture-overview.md
+++ b/docs/architecture-overview.md
@@ -14,18 +14,19 @@ truth; verify against it rather than trusting any table below.
## Project
**Personal Jarvis** — voice-driven meta-orchestrator. Not a classical voice
-assistant: the core pattern is **Supervisor-Agent** that dispatches work to
-interchangeable harnesses (the agent-harness subprocess, Codex CLI, Open
-Interpreter, MCP servers). The voice layer is just the interface.
+assistant: the core pattern is a **Supervisor Agent** that routes heavy work
+through the Mission Manager to capability-selected Jarvis-Agent workers. MCP
+servers and marketplace integrations contribute gated tools to that same path;
+they are not alternate worker harnesses. The voice layer is just the interface.
**Master plan:** `~/.claude/plans/also-er-muss-auch-lexical-pond.md` — binding for <!-- i18n-allow -->
all design decisions. On conflict between plan and code, the plan wins; code
deviations must be documented back in the plan.
**Binding architecture contracts:**
-- The agent-harness bridge contract (AD-1..AD-21, AP-OC1..AP-OC14). Welle 1
- (spike) + Welle 4 (sub-tier deletion) are done; Welle 2 (live bridge in default
- voice path) + Welle 3 (full live mode) remain.
+- Realtime, chat, and voice delegate heavy work through the same
+ `spawn-worker` → Mission Manager → worker → Critic/Kontrollierer lifecycle.
+ The retired OpenClaw sub-tier and phantom harness paths must not be restored.
- [`docs/anti-drift-three-layer.md`](anti-drift-three-layer.md) — five-layer enum
pattern (Python ↔ SQL ↔ Pydantic ↔ TS ↔ UI). Mandatory for any string crossing
module boundaries.
@@ -46,7 +47,7 @@ subprocess flicker, audio host-API) are catalogued there.
| **7 — Self-Mod (foundation + writer + tools)** | ✅ | `jarvis/core/self_mod/` (audit, errors, pending, registry, schema, writer). Three router-tier tools: `list_mutable_settings`, `get_config_value`, `set_config_value`. ADR + writeup in `docs/self_mod.md`. **7.5 `spawn-skill-author` IS now registered** (`pyproject.toml` → `jarvis.brain.tools.skill_authoring:SpawnSkillAuthorTool`, router-tier, `ask`; spawns the `SkillAuthoringRunner`). Generated skills land as `state="draft"` and are never auto-activated (AP-15). |
| **Awareness A0–A5** | ✅ | `jarvis/awareness/` (state, story, salience, verdichter, working_set, episode, recall_store, watchers, probes). Router-tier tools `awareness-snapshot` (A1) + `awareness-recall` (A3). ADR-0009/0010/0012. Hard rule: **never on the voice critical path**. |
| **Wiki B0/B1/B2/B3/B5/B7/B8/B9** | ✅ | `jarvis/memory/wiki/` (curator, atomic_writer, page_repository, integration, session_rollup, voice_bridge, telemetry, scheduler). Three router-tier tools: `wiki-recall`, `wiki-page-read`, `wiki-ingest`. ADR-0013/0014/0015. B2 = `docs/obsidian-setup.md` + B9-Wizard. B3 = `WikiView.tsx` + 6-endpoint `wiki_routes.py` + `wiki_ws.py` live-reload. **B4 soft-disabled** 2026-05-17 via `[memory.legacy_curator] enabled = false` — legacy Curator package + `data/workspace/` snapshot stay on disk; Hart-Cut (vault migration + reader refactor + package delete) remains open. **B6 not started**. |
-| **Agent-harness bridge** | ⚙ Welle 1+4 done | `jarvis/plugins/harness/`, `jarvis/missions/` harness package. `enabled=true`. Welle 2 (live bridge as default) + Welle 3 (live-mode wrap) open. |
+| **Realtime → Jarvis-Agents bridge** | ✅ canonical path live | Realtime emits the provider-neutral `jarvis_action`; `BrainManager` delegates heavy work through `spawn-worker`; `jarvis/missions/` owns worker selection, isolation, retries, Critic review, and Kontrollierer sign-off. MCP and marketplace tools are granted by capability, not exposed as worker harness names. |
| **Ack-Brain (pre-thinking)** | ✅ | `jarvis/brain/ack_brain/` — sub-second butler ACK before the deep brain replies. Gemini Flash Lite primary. UI preamble bubble. Suppress-if-fast gate at 2000ms (`[ack_brain].suppress_if_brain_faster_than_ms`). ADR-0014 (flash-brain). |
| **CLI catalog + terminal view** | ✅ | `jarvis/clis/` (catalog, installer, loader, prober, registry, risk_integration, usage_log) + `jarvis/terminal/` (cross-platform PTY via `terminal.backend.make_pty_backend` — ConPTY/`pywinpty` on Windows, `ptyprocess` on POSIX). Router tool `cli-tools` (virtual loader → one `cli_<name>` tool per connected CLI). UI views: `ClisView`, `TerminalView`. **`spawn-cli-worker` was REMOVED 2026-05-24** (dead entry point; heavy multi-step CLI work goes through `spawn-worker`, single-step through the `cli_<name>` tools — never re-add a CLI spawn tool, it is a D9 recursion vector, AP-5/AP-14). |
| **Board / Profile ("Knows-you" dashboard)** | ✅ | `jarvis/board/` (aggregator, store, achievements, evaluator, bio prompts, scheduler, `schema.sql`) → `data/board/personal.db`. Parses FlightRecorder JSONL into daily stats / personal records / 10 achievements + an anti-cliché AI-bio. Routes `board_routes.py` (`/api/board/*`) + `profile_routes.py`; views `BoardView.tsx`, `ProfileView.tsx`, `frontend/src/views/profile/`. Deterministic profile writes via the `update-profile` tool. Separate standalone service stub in `board-backend/` (FastAPI + Docker). CHANGELOG `v1.0.0-board`. |
@@ -73,7 +74,7 @@ Still unrowed (verify with `ls jarvis/ui/web/*routes*.py` + `git log`): `chats`/
```
L7 UI/UX Tray, Toasts, Admin-API, Desktop-App (FastAPI+React+pywebview), Orb-Overlay
L6 Orchestrator State-Machine, Router, BrainManager, Supervisor, Mission-Manager
-L5 Harness-Adapter Agent-harness, Codex, Open Interpreter, Python-Script, MCP-Remote
+L5 Harness-Adapter Capability-gated Computer Use and universal Python Script
L4 Brain 5 providers (Claude-API, OpenRouter, OpenAI, Gemini, NVIDIA) + Ack-Brain sub-second tier
L3 Intent/Risk Classifier, Risk-Tier-Policy, Approval, Rate-Limit-Tracker
L2 Speech Wake → VAD (Silero) → STT (faster-whisper / Google) → TTS (Gemini Flash / SAPI5)
diff --git a/jarvis/brain/factory.py b/jarvis/brain/factory.py
index 12521293bf..8e91becd74 100644
--- a/jarvis/brain/factory.py
+++ b/jarvis/brain/factory.py
@@ -37,11 +37,13 @@ BrainCallback = Callable[[str], Awaitable[str]]
# REMOVED 2026-06-28 — ``dispatch-to-harness`` is intentionally NOT a
# LLM-visible router tool. Its raw ``harness`` parameter let the brain request
# a sub-agent vehicle by NAME (``harness="openclaw"``), but OpenClaw is not a
-# registered harness (Welle-4 removal, ~92% hang; pyproject.toml registers only
-# open-interpreter / mcp-remote / python-script / screenshot). A "start a
+# registered harness (Wave-4 removal, ~92% hang). The operational harness
+# inventory now contains only python-script and the capability-gated screenshot
+# adapter. A "start a
# subagent" turn then dispatched to a phantom harness and surfaced the raw
-# "Harness 'openclaw' nicht verfügbar" KeyError to voice. Heavy sub-agent work # i18n-allow: forensic quote of the actual historical German KeyError text
-# is ``spawn-worker`` (Mission-Manager → ClaudeDirectWorker); live desktop work
+# "Harness 'openclaw' nicht verfügbar" KeyError to voice. # i18n-allow
+# Heavy Jarvis-Agent work is ``spawn-worker`` (Mission Manager → worker);
+# live desktop work
# is ``computer-use``. The tool class itself still exists for the INTERNAL,
# non-LLM local-action fast path (see ``_load_local_action_tools``, called
# programmatically with harness="screenshot"); it is just not router-selectable.
@@ -152,7 +154,8 @@ ROUTER_TOOLS = frozenset({
# any GUI). The router previously had no honest desktop path — spawn-worker
# runs in an isolated worktree (cannot touch the desktop) and the
# dispatch-to-harness indirection was never described as desktop control, so
- # the model refused or hallucinated a tool for the German "öffne ein Terminal" # i18n-allow: quoted German input example
+ # the model refused or hallucinated a tool for the German input
+ # "öffne ein Terminal". # i18n-allow
# ("open a terminal"). This tool delegates to the in-process
# computer-use harness; it is a direct
# safe-gated action (per-action risk gating inside the loop, ADR-0008),
@@ -557,7 +560,8 @@ def _load_local_action_tools(
manager=harness_manager,
max_output_chars=config.harness.max_output_chars,
),
- # ADR-0016 L2: voice-driven orb recovery ("Orb zurück" / # i18n-allow: quoted German voice-trigger phrase
+ # ADR-0016 L2: voice-driven orb recovery
+ # ("Orb zurück" / # i18n-allow
# "wo bist du" / "reset orb"). Publishes OrbResetRequested
# on the bus; the orb-side bridge handles the Tk-thread dispatch.
"reset_orb_position": ResetOrbPositionTool(bus=bus),
@@ -634,8 +638,8 @@ _KONTROLLIERER_REF: list[Any] = []
# Sentinel that distinguishes "bootstrap not yet attempted" (default,
# transient) from "bootstrap attempted and crashed" (permanent for this
# process). spawn_worker checks this so the user gets an honest
-# "OpenClaw konnte nicht initialisiert werden" instead of the misleading # i18n-allow: quoted German runtime voice-output phrase
-# "noch nicht bereit, bitte einen Moment warten" the in-progress path # i18n-allow: quoted German runtime voice-output phrase
+# "OpenClaw konnte nicht initialisiert werden" instead of the misleading # i18n-allow
+# "noch nicht bereit, bitte einen Moment warten" returned during boot. # i18n-allow
# returns when both the manager and kontrollierer singletons are None
# but the server is still booting.
_WORKER_BOOTSTRAP_FAILED: list[bool] = [False]
@@ -1073,8 +1077,8 @@ def _phase2_full_brain(
"read-visible-ui-state",
"switch-window",
# Primary action tools — without these every plan from the
- # CU loop fails at execute-time with "Tool '<name>' nicht im # i18n-allow: forensic quote of the actual German error text
- # Computer-Use-Tool-Set verdrahtet". The ActionRegistry in
+ # CU loop otherwise fails with the historical error below:
+ # "Tool '<name>' nicht im Computer-Use-Tool-Set verdrahtet". # i18n-allow
# action_registry.py:278-368 maps the corresponding action
# names (type_text, click, hotkey, move_mouse, open_app) to
# the tool.name attribute on these classes, so they must
@@ -1455,7 +1459,8 @@ def build_default_brain(
# the single authoritative brain entry point, so EVERY runtime (voice, REST,
# headless) has a populated registry before the first turn. Without this the
# registry stays empty and BrainManager._check_unsupported_intent rejects
- # every action utterance with "Das kann ich noch nicht ...", pre-empting the # i18n-allow: quoted German runtime voice-output phrase
+ # every action utterance with the phrase below, pre-empting the provider:
+ # "Das kann ich noch nicht ..." # i18n-allow
# deterministic force-spawn path (live bug 2026-05-25 — "Kannst du einen
# Subagent spawnen"). seed_registry is idempotent (re-registration replaces
# by id), so repeated brain builds AND the dynamic MCP registration in
diff --git a/jarvis/core/capabilities_seed.py b/jarvis/core/capabilities_seed.py
index 371a632e47..df754a47c1 100644
--- a/jarvis/core/capabilities_seed.py
+++ b/jarvis/core/capabilities_seed.py
@@ -4,9 +4,7 @@ Covers:
- The ROUTER_TOOLS from ``jarvis/brain/factory.py``
- 5 local-action-gate patterns (open_app, type_text, hotkey,
reset_orb_position, terminal_count)
- - 4 harness adapters (mcp-remote, computer-use, python-script,
- open-interpreter) — OpenClaw is intentionally NOT seeded (not a
- registered harness; see the HARNESS ADAPTERS block below)
+ - 2 operational harness adapters (computer-use and python-script)
Action verbs mirror ``BrainRoutingConfig.spawn_verbs`` so that
``CapabilityRegistry.has_action_intent`` and the manager's
@@ -256,24 +254,11 @@ _SEED_CAPABILITIES: list[Capability] = [
requires_evidence=True,
),
# ------------------------------------------------------------------ #
- # HARNESS ADAPTERS (4)
+ # OPERATIONAL HARNESS ADAPTERS (2)
# ------------------------------------------------------------------ #
# NB: ``harness.openclaw`` deliberately removed (2026-06-28). OpenClaw is
- # not a registered harness (Welle-4 removal; pyproject.toml registers only
- # open-interpreter / mcp-remote / python-script / screenshot). Advertising a
- # phantom harness in the capability surface mis-routed "start a subagent"
- # turns toward a vehicle that cannot run — heavy work is ``tool.spawn-worker``.
- Capability(
- id="harness.mcp-remote",
- source="harness",
- verbs=_ACTION_VERBS,
- objects=(
- "mcp", "server", "remote", "service", "dienst", "integration",
- ),
- description="Generic MCP-remote harness adapter for registered MCP servers.",
- risk_tier="monitor",
- requires_evidence=True,
- ),
+ # not a registered harness. Advertising phantom adapters mis-routes actions
+ # away from ``tool.spawn-worker`` and the live MCP capability broker.
Capability(
id="harness.computer-use",
source="harness",
@@ -303,18 +288,6 @@ _SEED_CAPABILITIES: list[Capability] = [
risk_tier="ask",
requires_evidence=True,
),
- Capability(
- id="harness.open-interpreter",
- source="harness",
- verbs=_ACTION_VERBS,
- objects=(
- "interpreter", "open-interpreter", "openinterpreter",
- "code", "programm",
- ),
- description="Open Interpreter harness for multi-language code execution.",
- risk_tier="ask",
- requires_evidence=True,
- ),
# ------------------------------------------------------------------ #
# CHUNK B — jarvis-contacts (3)
# ------------------------------------------------------------------ #
@@ -342,7 +315,10 @@ _SEED_CAPABILITIES: list[Capability] = [
"mail", "email", "e-mail", "nummer", "number", "telefonnummer",
"telefon", "phone", "adresse", "address",
),
- description="Resolve a saved contact by name/alias to their e-mail, phone and address (read-only).",
+ description=(
+ "Resolve a saved contact by name/alias to their e-mail, phone and "
+ "address (read-only)."
+ ),
risk_tier="safe",
requires_evidence=False,
),
diff --git a/jarvis/core/config.py b/jarvis/core/config.py
index 018896dd46..ba905932c6 100644
--- a/jarvis/core/config.py
+++ b/jarvis/core/config.py
@@ -1188,7 +1188,7 @@ class HarnessConfig(BaseModel):
model_config = ConfigDict(populate_by_name=True)
enabled: list[str] = Field(
- default_factory=lambda: ["python-script", "mcp-remote"]
+ default_factory=lambda: ["python-script"]
)
default_timeout_s: int = 600
default_risk_tier: RiskTier = "monitor"
diff --git a/jarvis/diagnostics/doctor.py b/jarvis/diagnostics/doctor.py
index 690d083bef..d78ad9aa51 100644
--- a/jarvis/diagnostics/doctor.py
+++ b/jarvis/diagnostics/doctor.py
@@ -140,6 +140,20 @@ def check_harness_config(config: Any) -> list[DoctorFinding]:
f"harness registry unreadable: {exc}")]
harness_config = getattr(config, "harness", None)
+ configured_enabled = {
+ str(name)
+ for name in (getattr(harness_config, "enabled", ()) or ())
+ }
+ inert_enabled = sorted(configured_enabled - registered)
+ if inert_enabled:
+ findings.append(DoctorFinding(
+ "harness-config", "warn",
+ "configured harnesses are not registered: " + ", ".join(inert_enabled),
+ hint=("Remove the stale names from [harness].enabled. Heavy work "
+ "uses spawn_worker; MCP integrations expose capability-gated "
+ "tools instead of harness names."),
+ ))
+
worker_harness = getattr(harness_config, "jarvis_agent", None)
if worker_harness is None:
worker_harness = getattr(harness_config, "openclaw", None)
diff --git a/pyproject.toml b/pyproject.toml
index 3263799b8b..a9536ae4fa 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -314,11 +314,9 @@ gemini = "jarvis.plugins.brain.gemini:GeminiBrain"
codex = "jarvis.plugins.brain.codex:CodexBrain"
antigravity = "jarvis.plugins.brain.antigravity:AntigravityBrain"
# xAI Grok removed as a brain provider 2026-06-22 (TTS-only — see grok-voice).
-# Ollama-Provider 2026-04-21 entfernt — User-Entscheidung (reine API-Provider-Chain).
+# Ollama provider removed on 2026-04-21; the runtime uses the API provider chain.
[project.entry-points."jarvis.harness"]
-open-interpreter = "jarvis.plugins.harness.open_interpreter:OpenInterpreterHarness"
-mcp-remote = "jarvis.plugins.harness.mcp_remote:MCPRemoteHarness"
python-script = "jarvis.plugins.harness.python_script:PythonScriptHarness"
# Phase 5 — in-process screenshot/click/keyboard computer-use loop (ADR-0008).
screenshot = "jarvis.plugins.harness.computer_use:ComputerUseHarness"
@@ -328,7 +326,7 @@ screenshot = "jarvis.plugins.harness.computer_use:ComputerUseHarness"
# Web channel is the first; Telegram/WhatsApp follow in Phase 8+.
web = "jarvis.channels.web:WebChannel"
# === F-FRIENDS [F1] · feature/friends-section · ruben-2026-04-30 ===
-# Phase F1 — bidirektionaler Telegram-Bot-Channel (long-polling).
+# Phase F1 — bidirectional Telegram bot channel (long polling).
# Token via Credential Manager (Key "telegram_bot_token" / ENV TELEGRAM_BOT_TOKEN).
telegram = "jarvis.channels.telegram:TelegramChannel"
# Bidirectional Discord bot channel (gateway). Mirrors Telegram: a DM/guild
@@ -385,17 +383,18 @@ dispatch-to-harness = "jarvis.plugins.tool.dispatch_to_harness:DispatchToHarness
# ROUTER_TOOLS); a direct safe-gated action, never a spawn (AP-5/AP-14).
computer-use = "jarvis.plugins.tool.computer_use_tool:ComputerUseTool"
whoami = "jarvis.plugins.tool.whoami:WhoAmITool"
-# Phase 5 — privilegierte Ops via Named-Pipe-IPC an den UAC-Helper (ADR-0001).
+# Phase 5 — privileged operations through named-pipe IPC to the UAC helper.
dispatch-to-admin = "jarvis.plugins.tool.dispatch_to_admin:DispatchToAdminTool"
-# Phase 5.5 — Tiered Routing (Router-Brain -> heavy worker + parallele Harnesses).
+# Phase 5.5 — tiered routing (Router Brain -> heavy worker and parallel harnesses).
# spawn-worker dispatches a Mission-Manager-backed direct Opus worker
# (ClaudeDirectWorker). Legacy names: spawn-sub-jarvis -> spawn-openclaw -> spawn-worker.
multi-spawn = "jarvis.plugins.tool.multi_spawn:MultiSpawnTool"
spawn-worker = "jarvis.plugins.tool.spawn_worker:SpawnWorkerTool"
-# Phase 8.4 — Quality-Gate-Pipeline-Trigger (siehe Plan §6.4, §AD-6).
+# Legacy Phase-8.4 review entry point. It is intentionally not model-visible;
+# production review belongs to the Mission Manager lifecycle (ADR-0011).
dispatch-with-review = "jarvis.plugins.tool.dispatch_with_review:DispatchWithReviewTool"
-# CLI-Integration — Virtual-Loader: expandiert zu N CliTool-Instanzen beim
-# Discovery (eins pro verbundener CLI: cli_gcloud, cli_gh, cli_supabase, ...).
+# CLI integration: the virtual loader expands to one CliTool instance per
+# connected CLI (cli_gcloud, cli_gh, cli_supabase, and so on).
# Router-tier only (in ROUTER_TOOLS); the loader resolves the shared,
# bus-connected CliToolRegistry so the brain and the safety layer see the
# same connected CLIs. See ADR-0011 amendment "CLI-Integration".
diff --git a/tests/contract/test_harness_protocol.py b/tests/contract/test_harness_protocol.py
index 33a7a253d4..5b230bc006 100644
--- a/tests/contract/test_harness_protocol.py
+++ b/tests/contract/test_harness_protocol.py
@@ -12,9 +12,8 @@ from jarvis.harness.manager import HarnessManager
# Codex worker is a mission worker (CodexDirectWorker), so it is intentionally
# absent here.
HARNESSES = [
- "open-interpreter",
- "mcp-remote",
"python-script",
+ "screenshot",
]
@@ -26,7 +25,13 @@ def manager():
def test_all_harnesses_discovered(manager):
avail = set(manager.available())
missing = set(HARNESSES) - avail
- assert not missing, f"Fehlende Harness-Plugins: {missing}"
+ assert not missing, f"Missing harness plugins: {missing}"
+ assert {"mcp-remote", "open-interpreter"}.isdisjoint(avail)
+
+
+async def test_python_script_is_healthy_on_the_universal_runtime(manager):
+ assert await manager.health("python-script") is True
@pytest.mark.parametrize("name", HARNESSES)
diff --git a/tests/unit/brain/test_routing.py b/tests/unit/brain/test_routing.py
index 578153b592..a0852babba 100644
--- a/tests/unit/brain/test_routing.py
+++ b/tests/unit/brain/test_routing.py
@@ -1636,51 +1636,14 @@ async def test_heavy_build_still_can_force_spawn() -> None:
def test_router_tools_is_pure_dispatcher_set() -> None:
- """ROUTER_TOOLS deckt sich mit Mandat-Phase-3 + Phase-7/8/Awareness +
- Welle-4-OpenClaw-Migration.
-
- Mandat-Phase-3 / Master-Plan §22 Z. 1617 (Baseline 2026-04-22):
- The historical baseline had four tools; multi-spawn is now retired.
-
- Welle-4-Migration: ``spawn-worker`` umbenannt auf ``spawn-worker``
- (siehe docs/openclaw-bridge.md §11). Heavy-Worker laeuft als externer
- Subprocess via Mission-Manager.
-
- Phase-5-Endstand (ADR-0011, 2026-04-25) hat ``dispatch-to-harness``
- re-introduziert: Hauptjarvis braucht den direkten Harness-Pfad, weil
- sonst jeder Screen-Observe-+-Sofort-Dispatch-Use-Case einen Spawn
- forcieren wuerde (Latenz-Killer).
-
- Phase 8.4 (Plan §6.4 Quality-Gate-Pipeline, 2026-04-26) hat
- ``dispatch-with-review`` ergaenzt: Hauptjarvis ruft die Review-Pipeline
- direkt auf.
-
- Phase 7.3 (Self-Mod, 2026-04-25) registriert drei zusaetzliche Tools
- direkt im Loader (NICHT via entry_points, NICHT in dieser Frozenset),
- die ausschliesslich Hauptjarvis-Tier zugaenglich sind (Plan §AD-2).
-
- Awareness-Plan §5 fuegt ``awareness-snapshot`` hinzu: synchroner
- State-Read im Critical-Path, kein Brain-/IO-Roundtrip.
-
- Awareness-Plan §7 (Phase A3) adds ``awareness-recall``: read-only
- BM25 search over the recent episode log. Originally planned as a
- sub-tier tool; Welle 4 removed that tier so it lives here. Still
- read-only, still safe, still no LLM/IO beyond a single SQLite query.
-
- Skills-Brain-Integration fuegt ``run-skill`` hinzu: Brain-callable
- executor for installed user skills. Available to BOTH tiers; D9-
- recursion-protection is structural (SkillRunner is constructed without
- a tool_registry that would expose run-skill recursively).
-
- Phase B5 (recall-tool, 2026-05-12) adds ``wiki-recall``: read-only
- keyword search over the long-term Obsidian wiki vault. Router-tier
- only (AP-D9); no LLM call, no network, no mutation. The brain calls
- this when the user asks "what do we know about X" or references a
- past project, person, or decision by name.
-
- Bei jeder weiteren Erweiterung: Begruendung in ADR-0011 (Sektion
- "Subsequent Phase-7/8 Extensions") nachpflegen + diesen Test +
- ``test_recursive_tools_only_in_router`` updaten.
+ """ROUTER_TOOLS matches the exact model-visible surface in ADR-0011.
+
+ Heavy work has one delegation action: ``spawn-worker``. The retired
+ ``dispatch-to-harness``, ``multi-spawn``, and ``dispatch-with-review``
+ paths must remain absent. Direct external-system actions are admitted only
+ through capability-gated flat loaders, and no worker receives a supervisor
+ spawn action. Every extension requires an ADR-0011 amendment plus updates
+ to this exact-set guard and ``test_recursive_tools_only_in_router``.
"""
from jarvis.brain.factory import ROUTER_TOOLS
diff --git a/tests/unit/core/test_capabilities.py b/tests/unit/core/test_capabilities.py
index 2bc453c77c..2931cf298c 100644
--- a/tests/unit/core/test_capabilities.py
+++ b/tests/unit/core/test_capabilities.py
@@ -13,7 +13,6 @@ from jarvis.core.capabilities import (
)
from jarvis.core.capabilities_seed import _SEED_CAPABILITIES, seed_registry
-
# ---------------------------------------------------------------------------
# Helpers
# ---------------------------------------------------------------------------
@@ -58,8 +57,8 @@ class TestNormalize:
assert _normalize("ß") == "ss" # i18n-allow: German umlaut input matched in logic
def test_mixed(self) -> None:
- assert _normalize("Öffne") == "oeffne" # i18n-allow: German speech-input test vocabulary
- assert _normalize("GrüßGott") == "gruessgott" # i18n-allow: German speech-input test vocabulary
+ assert _normalize("Öffne") == "oeffne" # i18n-allow
+ assert _normalize("GrüßGott") == "gruessgott" # i18n-allow
# ---------------------------------------------------------------------------
@@ -140,7 +139,9 @@ class TestRegistryResolveIntent:
self.reg.register(self.wiki_cap)
def test_verb_match_returns_cap(self) -> None:
- result = self.reg.resolve_intent("fuehre ein Kommando aus") # i18n-allow: German speech-input test vocabulary
+ result = self.reg.resolve_intent(
+ "fuehre ein Kommando aus" # i18n-allow
+ )
assert result is not None
assert result.id == "tool.run-shell"
@@ -150,11 +151,13 @@ class TestRegistryResolveIntent:
assert result.id == "tool.wiki-recall"
def test_no_match_returns_none(self) -> None:
- result = self.reg.resolve_intent("wie ist das Wetter?") # i18n-allow: German speech-input test vocabulary
+ result = self.reg.resolve_intent(
+ "wie ist das Wetter?" # i18n-allow
+ )
assert result is None
def test_umlaut_normalisation_in_utterance(self) -> None:
- # "öffne" normalises to "oeffne" but the cap has "fuehre" — won't # i18n-allow: German speech-input test vocabulary
+ # "öffne" normalises to "oeffne", but the cap has "fuehre". # i18n-allow
# match shell; register an open_app cap to prove normalisation works.
open_cap = _make_cap(
"local.open_app",
@@ -162,7 +165,9 @@ class TestRegistryResolveIntent:
objects=("app", "browser"),
)
self.reg.register(open_cap)
- result = self.reg.resolve_intent("Öffne den Browser") # i18n-allow: German speech-input test vocabulary
+ result = self.reg.resolve_intent(
+ "Öffne den Browser" # i18n-allow
+ )
assert result is not None
assert result.id == "local.open_app"
@@ -179,7 +184,7 @@ class TestRegistryResolveIntent:
# "rerun" does NOT start/end on a word boundary for "run" → no match
# (re uses \b which is between \w and \W; "rerun" has \b before 'r'
# and after 'n' but not isolating the 'run' substring — correct)
- result2 = self.reg.resolve_intent("rerunning")
+ self.reg.resolve_intent("rerunning")
# "rerunning" has no isolated "run" word → depends on regex; key
# invariant is that an exact word "run" in context matches.
assert self.reg.resolve_intent("please run this") is not None
@@ -199,7 +204,9 @@ class TestRegistryHasActionIntent:
assert self.reg.has_action_intent("run a shell command") is True
def test_non_action_returns_false(self) -> None:
- assert self.reg.has_action_intent("wie spät ist es?") is False # i18n-allow: German speech-input test vocabulary
+ assert self.reg.has_action_intent(
+ "wie spät ist es?" # i18n-allow
+ ) is False
def test_empty_string(self) -> None:
assert self.reg.has_action_intent("") is False
@@ -211,8 +218,8 @@ class TestRegistryHasActionIntent:
objects=("app",),
)
self.reg.register(cap2)
- # "Öffne" normalises to "oeffne" → match # i18n-allow: German speech-input test vocabulary
- assert self.reg.has_action_intent("Öffne Chrome") is True # i18n-allow: German speech-input test vocabulary
+ # "Öffne" normalises to "oeffne". # i18n-allow
+ assert self.reg.has_action_intent("Öffne Chrome") is True # i18n-allow
def test_filler_particle_halt_is_not_an_action(self) -> None:
# The German discourse particle "halt" (a filler word, roughly
@@ -363,18 +370,18 @@ class TestSeedRegistry:
):
assert la in ids, f"{la!r} missing from seed"
- def test_harness_adapters_present(self) -> None:
+ def test_only_operational_harness_adapters_are_present(self) -> None:
ids = {c.id for c in self.reg.all()}
- # NB: harness.openclaw removed 2026-06-28 — OpenClaw is not a registered
- # harness (Welle-4 removal); seeding it advertised a phantom vehicle.
for ha in (
- "harness.mcp-remote",
"harness.computer-use",
"harness.python-script",
- "harness.open-interpreter",
):
assert ha in ids, f"{ha!r} missing from seed"
- assert "harness.openclaw" not in ids
+ assert {
+ "harness.openclaw",
+ "harness.mcp-remote",
+ "harness.open-interpreter",
+ }.isdisjoint(ids)
def test_no_capability_advertises_openclaw(self) -> None:
"""No seeded capability may advertise the phantom 'openclaw' vehicle.
@@ -427,7 +434,7 @@ class TestSeedRegistry:
assert len(self.reg.all()) == before
def test_open_app_matches_oeffne_chrome(self) -> None:
- result = self.reg.resolve_intent("Öffne Chrome") # i18n-allow: German speech-input test vocabulary
+ result = self.reg.resolve_intent("Öffne Chrome") # i18n-allow
assert result is not None
assert result.id == "local.open_app"
@@ -438,14 +445,18 @@ class TestSeedRegistry:
assert result.requires_evidence is False
def test_run_shell_matches(self) -> None:
- result = self.reg.resolve_intent("führe ein Shell-Kommando aus") # i18n-allow: German speech-input test vocabulary
+ result = self.reg.resolve_intent(
+ "führe ein Shell-Kommando aus" # i18n-allow
+ )
assert result is not None
assert result.id == "tool.run-shell"
def test_smalltalk_no_match(self) -> None:
- result = self.reg.resolve_intent("wie spät ist es?") # i18n-allow: German speech-input test vocabulary
+ result = self.reg.resolve_intent("wie spät ist es?") # i18n-allow
assert result is None
def test_has_action_intent_with_seed(self) -> None:
- assert self.reg.has_action_intent("Öffne den Browser") is True # i18n-allow: German speech-input test vocabulary
- assert self.reg.has_action_intent("wie ist das Wetter?") is False # i18n-allow: German speech-input test vocabulary
+ assert self.reg.has_action_intent("Öffne den Browser") is True # i18n-allow
+ assert self.reg.has_action_intent(
+ "wie ist das Wetter?" # i18n-allow
+ ) is False
diff --git a/tests/unit/diagnostics/test_doctor_diagnostics.py b/tests/unit/diagnostics/test_doctor_diagnostics.py
index 99cf284d1a..914eb78c4c 100644
--- a/tests/unit/diagnostics/test_doctor_diagnostics.py
+++ b/tests/unit/diagnostics/test_doctor_diagnostics.py
@@ -53,6 +53,22 @@ def test_harness_config_flags_inert_openclaw() -> None:
assert "inert" in warns[0].message
+def test_harness_config_flags_unregistered_enabled_adapter() -> None:
+ config = SimpleNamespace(
+ harness=SimpleNamespace(
+ enabled=["python-script", "mcp-remote"],
+ openclaw=None,
+ ),
+ )
+
+ findings = check_harness_config(config)
+
+ assert any(
+ finding.status == "warn" and "mcp-remote" in finding.message
+ for finding in findings
+ )
+
+
def test_harness_config_flags_real_aliased_config() -> None:
"""The real Pydantic alias must not make inert config invisible."""
from jarvis.core.config import HarnessConfig
diff --git a/tests/unit/test_jarvis_agent_harness_config.py b/tests/unit/test_jarvis_agent_harness_config.py
index 1d25b59f44..73cfccb38d 100644
--- a/tests/unit/test_jarvis_agent_harness_config.py
+++ b/tests/unit/test_jarvis_agent_harness_config.py
@@ -10,18 +10,42 @@ Pattern adopted from tests/unit/test_router_vision_config.py (Wave-1 B4).
from __future__ import annotations
import tomllib
+from pathlib import Path
import pytest
from pydantic import ValidationError
from jarvis.core.config import (
- DEFAULT_CONFIG_FILE,
HarnessConfig,
JarvisAgentHarnessConfig,
JarvisAgentNotificationConfig,
load_config,
)
+_LEGACY_HARNESS_CONFIG = """\
+[harness]
+enabled = ["python-script"]
+
+[harness.openclaw]
+enabled = true
+version = "2026.5.7"
+binary_path = "openclaw"
+time_cap_min = 30
+concurrency = 3
+state_dir_root = "data/openclaw_state"
+
+[harness.openclaw.notification]
+via = "announcement_bus"
+toast = true
+voice_when_active = true
+"""
+
+
+def _write_legacy_harness_config(directory: Path) -> Path:
+ config_path = directory / "jarvis.toml"
+ config_path.write_text(_LEGACY_HARNESS_CONFIG, encoding="utf-8")
+ return config_path
+
# ----------------------------------------------------------------------
# 1. Schema defaults — valid minimal block
@@ -63,6 +87,7 @@ def test_harness_config_openclaw_optional_default_none():
Jarvis-Agents rename; the TOML alias accepts both section names.
"""
h = HarnessConfig()
+ assert h.enabled == ["python-script"]
assert h.jarvis_agent is None
@@ -83,10 +108,9 @@ def test_jarvis_agent_harness_model_can_be_pinned_explicitly():
# 2. Live-load from jarvis.toml
# ----------------------------------------------------------------------
-def test_openclaw_section_present_in_jarvis_toml():
- """Raw-TOML: ``[harness.openclaw]`` exists with planned values."""
- toml_path = DEFAULT_CONFIG_FILE
- assert toml_path.exists(), f"jarvis.toml not found at {toml_path}"
+def test_legacy_openclaw_section_is_accepted_from_portable_fixture(tmp_path: Path):
+ """The legacy section remains readable without maintainer-local config."""
+ toml_path = _write_legacy_harness_config(tmp_path)
with toml_path.open("rb") as f:
data = tomllib.load(f)
@@ -116,15 +140,17 @@ def test_openclaw_section_present_in_jarvis_toml():
assert "cost_cap_eur" not in sec
-def test_jarvis_agent_harness_config_unmarshalled_via_load_config():
+def test_jarvis_agent_harness_config_unmarshalled_via_load_config(tmp_path: Path):
"""Pydantic auto-unmarshal lands in the correct field (jarvis_agent).
jarvis.toml still uses the old ``[harness.openclaw]`` section name for
back-compat; the ``validation_alias`` on HarnessConfig.jarvis_agent
accepts both names, so this field is populated regardless.
"""
- cfg = load_config(DEFAULT_CONFIG_FILE)
- assert cfg.harness.jarvis_agent is not None, "[harness.openclaw] / [harness.jarvis_agent] not parsed"
+ cfg = load_config(_write_legacy_harness_config(tmp_path))
+ assert cfg.harness.jarvis_agent is not None, (
+ "[harness.openclaw] / [harness.jarvis_agent] not parsed"
+ )
oc = cfg.harness.jarvis_agent
assert isinstance(oc, JarvisAgentHarnessConfig)