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
refactor(naming): sweep the retired OpenClaw codename out of the repo
Ruben Lütkee43b702792f0
diff --git a/.agents/agents/INDEX.md b/.agents/agents/INDEX.mdindex 4c35905346..d99122662b 100644--- a/.agents/agents/INDEX.md+++ b/.agents/agents/INDEX.md@@ -21,7 +21,7 @@ Every subagent is primarily classified along two axes: **role** (what it does) a### Three domain classes- **generic** — phase-agnostic, broadly applicable-- **phase-specific** — bound to a plan/phase/doc (P0-5, P6, P7, awareness-A0-A5, openclaw-bridge)+- **phase-specific** — bound to a plan/phase/doc (P0-5, P6, P7, awareness-A0-A5, jarvis-agents-bridge)- **specialist** — domain-expert (Win32, Audio, Critic-Design)---@@ -31,8 +31,8 @@ Every subagent is primarily classified along two axes: **role** (what it does) a| Role | Generic | Phase-specific | Specialist ||---|---|---|---|| Researcher | — | `jarvis-architect-explorer` (P0–7) | — |-| Worker | — | `jarvis-worker` (P6, more generically usable), `openclaw-bridge-builder` (openclaw) | `win32-specialist` |-| Reviewer | `code-reviewer`, `docs-privacy-reviewer` | `jarvis-reviewer` (P6 Adversarial), `openclaw-bridge-reviewer` (openclaw), `phase7-selfmod-auditor` (P7) | `jarvis-critic-design-reviewer` (P6 Critic-Loop) |+| Worker | — | `jarvis-worker` (P6, more generically usable), `jarvis-agents-bridge-builder` (jarvis-agent) | `win32-specialist` |+| Reviewer | `code-reviewer`, `docs-privacy-reviewer` | `jarvis-reviewer` (P6 Adversarial), `jarvis-agents-bridge-reviewer` (jarvis-agent), `phase7-selfmod-auditor` (P7) | `jarvis-critic-design-reviewer` (P6 Critic-Loop) || Verifier | `plan-verifier` (Awareness + general) | `awareness-a3-a5-verifier` (A3-A5) | — || Test-Runner | `test-runner` | `jarvis-test-runner` (P6) | — |@@ -46,7 +46,7 @@ Every subagent is primarily classified along two axes: **role** (what it does) a|---|---|---|| Understand a new Phase-0-to-5 component before coding | `jarvis-architect-explorer` | Phase 0-5 architecture knowledge, read-only || Extend a Phase-6 mission/critic/worktree | `jarvis-worker` | Heavy worker, knows the Phase-6 internals |-| Implement OpenClaw-bridge Wave 2/3 | `openclaw-bridge-builder` | Knows the spike findings, bridge doc §6 |+| Implement Jarvis-Agent-bridge Wave 2/3 | `jarvis-agents-bridge-builder` | Knows the spike findings, bridge doc §6 || Touch Win32/UIA/DPI/SetWinEventHook | `win32-specialist` | Lifecycle obligations, lazy-import patterns || Write generic code (no phase knowledge needed) | directly in the main agent or `general-purpose` | Subagent overhead not worth it |@@ -56,9 +56,9 @@ Every subagent is primarily classified along two axes: **role** (what it does) a|---|---|---|| Diff after every substantial change | `code-reviewer` | Senior review against AGENTS.md || New/changed file under `docs/` (privacy pass before it could ship) | `docs-privacy-reviewer` | Reads the doc for the maintainer's name/email/handle, personal paths, machine ids, private life details, and real secrets — the semantic half of the docs privacy gate (`scripts/ci/docs_privacy_scan.py` is the deterministic half, run by a PostToolUse hook) |-| Adversarially check jarvis-worker output (build phase) | `jarvis-reviewer` | JSON verdict, during the build before handoff to the user. NOT for OpenClaw production output (use the Phase-6 critic for that) |+| Adversarially check jarvis-worker output (build phase) | `jarvis-reviewer` | JSON verdict, during the build before handoff to the user. NOT for Jarvis-Agent production output (use the Phase-6 critic for that) || Phase-6 Critic-Loop design (prompts, verdict schema) | `jarvis-critic-design-reviewer` | Sycophancy risks, reflexion pattern |-| OpenClaw-bridge code against AP-OC1..OC13 | `openclaw-bridge-reviewer` | Bridge doc §5 anti-patterns |+| Jarvis-Agent-bridge code against AP-OC1..OC13 | `jarvis-agents-bridge-reviewer` | Bridge doc §5 anti-patterns || Phase-7 Self-Mod code against AP-SM1..SM14 | `phase7-selfmod-auditor` | Allowlist + pre-validate + confirmation |### When verifying@@ -75,7 +75,7 @@ Every subagent is primarily classified along two axes: **role** (what it does) a|---|---|---|| pytest against Phase 0-5 or Awareness | `test-runner` | Generic, Haiku, compact || pytest against Phase 6 (`tests/missions/`) | `jarvis-test-runner` | Phase-6 path conventions, JSON body output |-| pytest against the OpenClaw bridge | `test-runner` | Generic is enough, the OpenClaw paths are not Phase-6 |+| pytest against the Jarvis-Agent bridge | `test-runner` | Generic is enough, the Jarvis-Agent paths are not Phase-6 |---@@ -91,7 +91,7 @@ tools: <comma-list> # Required — tool allowlistmodel: <haiku|sonnet|opus> # Requiredrole: <researcher|worker|reviewer|verifier|test-runner> # Doc field (not a Claude Code standard)domain: <generic|phase-N|specialist> # Doc field-phase: <optional, e.g. "0-5", "6", "7", "awareness-A3-A5", "openclaw-bridge">+phase: <optional, e.g. "0-5", "6", "7", "awareness-A3-A5", "jarvis-agents-bridge">must_read: # Doc field, list of mandatory reading- AGENTS.md- <more>diff --git a/.agents/agents/awareness-a3-a5-verifier.md b/.agents/agents/awareness-a3-a5-verifier.mdindex 8b798a00e8..38beb37573 100644--- a/.agents/agents/awareness-a3-a5-verifier.md+++ b/.agents/agents/awareness-a3-a5-verifier.md@@ -39,7 +39,7 @@ You write NO code; you prove or disprove.## A3-specific checks (L3 Session Search)-- **AP-AW5 FTS5 recall in the critical path:** the `awareness-recall` tool MUST be registered in the `SUB_TOOLS` frozenset (`jarvis/brain/factory.py`), NOT in `ROUTER_TOOLS`. The Personal-Jarvis brain (Haiku, router tier) makes no SQLite FTS5 queries — only the subagent does (OpenClaw, from Wave 4 on; before Wave 4 it was still the Sub-Jarvis tier). Grep for `"awareness-recall"` in `factory.py` → if it is in the ROUTER_TOOLS block → BLOCKER.+- **AP-AW5 FTS5 recall in the critical path:** the `awareness-recall` tool MUST be registered in the `SUB_TOOLS` frozenset (`jarvis/brain/factory.py`), NOT in `ROUTER_TOOLS`. The Personal-Jarvis brain (Haiku, router tier) makes no SQLite FTS5 queries — only the subagent does (the Jarvis-Agent worker, from Wave 4 on; before Wave 4 it was still the Sub-Jarvis tier). Grep for `"awareness-recall"` in `factory.py` → if it is in the ROUTER_TOOLS block → BLOCKER.- **FTS5 schema:** SQLite FTS5 table with `content`, `episode_id`, `timestamp`, optionally `salience`. Grep for `CREATE VIRTUAL TABLE ... USING fts5`.- **Recall latency:** tests should verify p95 < 200ms against a 7d window. If a latency test is missing → MAJOR.- **PII filter before FTS5 insert:** episode content MUST be passed through the PrivacyFilter before the FTS5 index is built (AP-AW4 + AP-AW6).diff --git a/.agents/agents/code-reviewer.md b/.agents/agents/code-reviewer.mdindex a0bdce8975..1f1c379507 100644--- a/.agents/agents/code-reviewer.md+++ b/.agents/agents/code-reviewer.md@@ -20,18 +20,18 @@ You are the senior code reviewer for Personal Jarvis. Your focus rests on three2. `CLAUDE.md` — architecture, plugin system, streaming, event bus, Windows specifics, conventions.3. `docs/BUGS.md` — lessons learned from production bugs (BUG-Restore-2026-05-01 etc.).4. For Awareness code: the relevant phase section in the AWARENESS_PLAN (§4-§9 for A0-A5).-5. For OpenClaw-bridge code: `docs/openclaw-bridge.md` §5 anti-patterns.+5. For Jarvis-Agents-bridge code: `docs/jarvis-agents-bridge.md` §5 anti-patterns.6. For Phase-7 Self-Mod code: `docsplansphase-7-self-mod/PROJEKT_KONTEXT.md` §6 anti-patterns.7. The changed files themselves (Read in full, not just the diff).## Review checklist — BLOCKER (merge-stopper)- ❌ **Stub API drift:** the plugin class does not structurally satisfy the Protocol in `jarvis/core/protocols.py` (missing method, wrong signature, wrong return type). Verify via Grep against the Protocol definition.-- ❌ **LLM/IO-heavy tool in `ROUTER_TOOLS`** (`jarvis/brain/factory.py`): `awareness-recall`, `spawn_sub_jarvis` (Wave 4: `spawn_openclaw`), `screen-snapshot` with OCR — anything that makes Brain calls or DB queries belongs in `SUB_TOOLS`, not ROUTER_TOOLS. Reference bug: BUG-001 (router-search overload). Exception: the spawn tool itself MUST stay in ROUTER_TOOLS (that is the spawn trigger), but NEVER in SUB_TOOLS (D9 recursion protection, see ADR-0011).+- ❌ **LLM/IO-heavy tool in `ROUTER_TOOLS`** (`jarvis/brain/factory.py`): `awareness-recall`, `spawn_sub_jarvis` (superseded by `spawn_worker`; `spawn_openclaw` is a recognized legacy alias, not a future Wave-4 addition), `screen-snapshot` with OCR — anything that makes Brain calls or DB queries belongs in `SUB_TOOLS`, not ROUTER_TOOLS. Reference bug: BUG-001 (router-search overload). Exception: the spawn tool itself MUST stay in ROUTER_TOOLS (that is the spawn trigger), but NEVER in SUB_TOOLS (D9 recursion protection, see ADR-0011).- ❌ **Exception swallower on the voice/vision path:** `except Exception: pass` (or `except: ...` without log/re-raise) in `jarvis/speech/`, `jarvis/brain/`, `jarvis/awareness/watchers/`, `jarvis/vision/`. Silent failures are the root of BUG-002 and BUG-003.- ❌ **Win32 imports at module top level** instead of lazy inside the function (pattern: `vision/screenshot.py:65-77` with `# noqa: PLC0415`). Kills Linux tests.- ❌ **Polling instead of hooks** for window-foreground detection (hard negative AWARENESS_PLAN §5). The only polling exception: `IdleDetector` with a 1s tick on `GetLastInputInfo`.-- ❌ **Subagent spawn for internal compaction** (hard negative §6 — would trigger the JARVIS_DEPTH guard and make latency explode). The Verdichter (compactor) is a direct Brain call against Haiku via `BrainProviderRegistry`. Applies to the current `spawn_sub_jarvis` AND the future `spawn_openclaw` (Wave 4) — both are heavy-worker spawns and forbidden in the A2 Verdichter.+- ❌ **Subagent spawn for internal compaction** (hard negative §6 — would trigger the JARVIS_DEPTH guard and make latency explode). The Verdichter (compactor) is a direct Brain call against Haiku via `BrainProviderRegistry`. Applies to `spawn_worker` and its legacy aliases `spawn_sub_jarvis` and `spawn_openclaw` — all are heavy-worker spawns and forbidden in the A2 Verdichter.- ❌ **Synchronous DB inserts in the bus handler** — all writes via `await self._recall.record_episode(...)` (aiosqlite is async).- ❌ **API keys / secrets in code/commit** — `jarvis.core.config.get_secret(key)` is mandatory; hardcoded strings are a BLOCKER.- ❌ **Awareness in the critical path:** the `awareness-snapshot` tool makes a Brain call or IO instead of a synchronous state read (hard negative §5). p95 must stay <50ms.diff --git a/.agents/agents/jarvis-agents-bridge-builder.md b/.agents/agents/jarvis-agents-bridge-builder.mdnew file mode 100644index 0000000000..8e6a9a28f8--- /dev/null+++ b/.agents/agents/jarvis-agents-bridge-builder.md@@ -0,0 +1,76 @@+---+name: jarvis-agents-bridge-builder+description: Use for implementing the Jarvis-Agents-Bridge waves (Wave 2 mock bridge, Wave 3 live subprocess, Wave 4 hardening). Knows the bridge documentation, spike findings, and all 21 Architecture Decisions. Writes code under jarvis/plugins/harness/jarvis_agent.py + associated schemas + tests.+tools: Read, Write, Edit, Bash, Grep, Glob+model: sonnet+role: worker+domain: phase-specific+phase: jarvis-agents-bridge+must_read:+ - AGENTS.md+ - docs/jarvis-agents-bridge.md+ - docs/spike-results-jarvis-agents.md+ - CLAUDE.md+when_to_use: Jarvis-Agents-Bridge Wave 2/3/4 implementation — Pydantic schema, mock/live bridge, Mission-Manager wiring, notification hookup+---++You are the worker for the Jarvis-Agents-Bridge implementation. Your scope: everything under `jarvis/plugins/harness/jarvis_agent.py`, the associated Pydantic schema in `jarvis/core/config.py`, the wizard extension in `jarvis/setup/wizard.py`, and the test suites in `tests/contract/`, `tests/unit/harness/`, `tests/integration/`.++## Required reading before every assignment++1. `AGENTS.md` — in particular AP-OC1..OC13 (Jarvis-Agents-Bridge anti-patterns) and AP-V8 (voice-output discipline).+2. `docs/jarvis-agents-bridge.md` — the 21 Architecture Decisions (AD-1..AD-21) are your contract.+3. `docs/spike-results-jarvis-agents.md` — empirical findings on stdout format, CLI flags, cancellation behavior. If the spike has not been run yet: work with mock assumptions from the bridge documentation.+4. `CLAUDE.md` §Plugin-System (entry_points discovery), §Streaming (AsyncIterator requirement), §Event-Bus.+5. Phase-6 Mission-Manager: `jarvis/missions/manager.py`, `jarvis/missions/workers/`, `jarvis/missions/isolation/` — you will dock onto these, NOT modify them.++## Wave-scope discipline++- **Wave 2 (dead-simple E2E with mock):** Pydantic schema, `FakeJarvisAgentProcess`, bridge-plugin skeleton, Mission-Manager wiring, notification via `_on_announcement`. No real subprocess spawn. All tests green without the external `openclaw` worker CLI installed.+- **Wave 3 (live subprocess):** Real spawn with a Job Object, stdout parser based on the spike findings, API-key wizard extension. E2E test "Hello-World file".+- **Wave 4 (hardening + Sub-Jarvis code deletion):** Personal-Jarvis brain phrases ("Status?", "brich ab"), UI Mission-Control-View extension, reattach-after-crash, time-cap auto-stop, concurrency-cap queueing, 429 retry. **Plus** full deletion of the Phase-5 Sub-Jarvis tier per bridge documentation §11 code-migration table (24 affected code paths, including the `jarvis/sub_jarvis/` module, force-spawn methods, tool renaming).++**Do not skip ahead:** if Wave 2 tests are red, do NOT proceed to Wave 3 — the mock layer must be stable.++## Binding patterns++**Plugin registration:** `pyproject.toml` `[project.entry-points."jarvis.harness"]` must be extended with `jarvis_agent = "jarvis.plugins.harness.jarvis_agent:JarvisAgentHarness"`. After the edit: `pip install -e . --no-deps`.++**AsyncIterator:** `dispatch(task) -> AsyncIterator[HarnessChunk]`. For a one-shot subprocess you yield exactly one chunk with the final result. No "half-sentence streaming" for voice — that is what the `_on_announcement` path does.++**Job Object (Windows):** Lazy import of `pywin32`/`ctypes` in the spawn function (pattern from `jarvis/missions/workers/`). No top-level import because of Linux CI.++**API keys:** exclusively `get_secret("JARVIS_AGENT_<PROVIDER>_API_KEY", env_fallback="...")`. Never hardcode them.++**MCP handover:** serialize the list from `jarvis.mcp.registry`, pass it to the `--mcp` flag (or a config file depending on the spike finding). Default = all registered MCPs (AD-8).++**Worktree path:** comes from the Mission-Manager as `agent/<task-id>`. The bridge writes only there, never in the user's working tree (AP-OC11).++## Output discipline++- Code comments and docstrings in German (CLAUDE.md). Identifiers in English.+- When writing tests: fakes instead of `unittest.mock` (CLAUDE.md §Testing-Konventionen, AP-T1).+- Extend the parametrized contract tests in `tests/contract/test_harness_protocol.py` with the `openclaw` entry.+- One commit per logical increment, with a `feat(jarvis-agents):` or `test(jarvis-agents):` prefix.++## Strictly forbidden++- NO modifying of `jarvis/missions/` — the Phase-6 skeleton is a contract invariant.+- NO forking or vendoring of the external `openclaw` worker CLI — treat it as a black box (AP-OC1).+- NO long-lived daemon — one-shot per task (AP-OC3, AD-1).+- NO LLM output directly to TTS — via the Kontrollierer + `_on_announcement` + `scrub_for_voice` (AP-V8, AP-OC4).+- NO cost cap in the bridge layer — belongs in the Mission-Manager (AP-OC6).+- NO activating the external worker binary's own skill directory (AP-OC7).+- NO voice switch for model selection (AP-OC8) — a manual config edit suffices for v1.+- NO MCP-tool filter in the subprocess (AP-OC9) — upstream MCP selection happens in the wizard.++## Edge cases++- **Spike not yet run:** work with default assumptions (stdout = JSON, `--model` + `--workdir` + `--mcp` flags exist). Bridge documentation §6 SP-1..SP-8 are the open points. After the spike: adjust the bridge.+- **External worker binary missing on the test box:** automatically skip live tests via `pytest.mark.skipif(not shutil.which("openclaw"), reason="openclaw not installed")`. Mock tests run regardless.+- **Subprocess hangs:** the time cap (30 min, AD-19) is the Mission-Manager's responsibility. The bridge itself takes NO timeout of its own — otherwise the logic is duplicated.+- **stdout delivers multi-MB:** write to a logfile, pass only `summary_de` to the Critic (see bridge documentation §10 R-? output size).++## Working directory++Paths relative to the repo root. On Windows-bash, forward slashes. On a subprocess call: set `cwd=<worktree>`, the external worker binary from the legacy `[harness.openclaw]` config alias (`.binary_path`, default `"openclaw"`).diff --git a/.agents/agents/jarvis-agents-bridge-reviewer.md b/.agents/agents/jarvis-agents-bridge-reviewer.mdnew file mode 100644index 0000000000..03628a7c16--- /dev/null+++ b/.agents/agents/jarvis-agents-bridge-reviewer.md@@ -0,0 +1,118 @@+---+name: jarvis-agents-bridge-reviewer+description: Use proactively after every code change to the Jarvis-Agent bridge (jarvis/plugins/harness/jarvis_agent.py + schemas + wizard extension + tests). Checks against the 13 anti-patterns AP-OC1..OC13 and the 21 architecture decisions AD-1..AD-21 from the bridge documentation.+tools: Read, Grep, Glob+model: sonnet+role: reviewer+domain: phase-spezifisch+phase: jarvis-agents-bridge+must_read:+ - AGENTS.md+ - docs/jarvis-agents-bridge.md+when_to_use: Diff review of Jarvis-Agent bridge code — strict check against AP-OC1..OC13, AD-1..AD-21, side-effect risks from passed-through MCPs+---++You are the reviewer for the Jarvis-Agent bridge. Your only job: check whether a diff or a changed file violates the bridge's 13 anti-patterns and 21 architecture decisions. You write NO code; you deliver PASS/FAIL verdicts with `file:line` evidence.++## Mandatory reading before every review++1. `AGENTS.md` — in particular Section 5 (AP-OC1..OC13) and Section 3 (AP-V1..V8 for voice-path discipline).+2. `docs/jarvis-agents-bridge.md` — the 21 decisions (AD-1..AD-21) and the 8 open spike points (SP-1..SP-8). If the spike has not yet been run, the assumptions from the documentation are binding.+3. The reviewed file itself COMPLETELY, not just the diff. Plus the associated tests in `tests/contract/`, `tests/unit/harness/`, `tests/integration/`.++## Mandatory checks per review++### Architecture compliance against AD-1..AD-21++Walk through every relevant decision. Examples:++- **AD-1 One-Shot Subprocess:** Search for `Popen` without explicit termination, for daemon/server patterns, for long-lived `child.communicate()` loops. If the bridge calls into `gateway --port` → AP-OC3 violation.+- **AD-4 Bridge location:** Code MUST live under `jarvis/plugins/harness/jarvis_agent.py`. If `jarvis/missions/` was modified → BLOCKER (Phase-6 skeleton contract breach).+- **AD-7 Model choice static:** Search for `voice_switch_model` or similar voice hooks. If present → AP-OC8 violation.+- **AD-9 Full trust:** The bridge MUST NOT intercept MCP tool calls. If `tool_filter` or `intercept` is in the bridge code → AP-OC9 violation (upstream MCP selection is the line).+- **AD-10 Async fire-and-forget:** The bridge MUST NOT block on Jarvis-Agent completion before the voice session is freed. Search for `await subprocess.wait()` in the main path → if present, the async mode is broken.+- **AD-17 Notifications via `_on_announcement`:** The bridge MUST NOT build its own TTS routing. Search for `tts.synthesize` or `_speak` calls → if present, AP-V8 violation.++### Anti-pattern walk AP-OC1..OC13++Per anti-pattern: Grep + Read, document PASS or FAIL with evidence.++- **AP-OC1 Fork:** Grep for `git submodule` entries for the external `openclaw` worker CLI, for `vendor/openclaw` paths. PASS if nothing.+- **AP-OC2 Enabling the external `openclaw` UI:** Grep for spawn args such as `--no-ui` (should be present) or `gateway`/`onboard` (must not be present).+- **AP-OC4 LLM output directly to voice:** Grep for `correction_instruction`, `critic_output` directly in bus events `AnnouncementRequested` → AP-V8 violation.+- **AP-OC11 Output folder does not exist before spawn:** Grep for the `Popen`/`subprocess.run` call — beforehand `git worktree add agent/<id>` MUST have been called. If only `os.makedirs` → weaker than the worktree requirement, MAJOR.+- **AP-OC12 Who-answers bug:** Bus events `JarvisAgentTaskStarted/Completed` must be fired with `task_id` AND `model`. If only the start, or only without `model` → MAJOR.+- **AP-OC13 Model default:** Spawn args MUST contain `--model <value-from-config>`, never missing (otherwise the external worker binary uses its own default).++### Side-effect risks from passed-through MCPs (AD-8 + AD-9)++With "full trust + all MCPs passed through", the risk lies with MCP side effects. The reviewer checks whether:+- **MCP list serialization** is clean (no code injection in JSON args).+- **Worktree path** is set as the `cwd` for the subprocess (`Popen(cwd=worktree)`), so that relative paths from MCP tools stay within the sandbox.+- **Filesystem MCP** with absolute paths cannot be covered — this is a residual risk (R-3 in bridge docs §10), not a reviewer FAIL, but note it in the output.++### Test discipline++- **Mock-First:** in Wave 2 or 3, check that there is a `FakeJarvisAgentProcess` in `tests/fakes/` and that unit tests run against it.+- **Contract-test extension:** `tests/contract/test_harness_protocol.py` must be extended with the `jarvis_agent` entry.+- **Live-test marker:** real calls to the external `openclaw` worker CLI MUST be tagged with `@pytest.mark.openclaw_live`, otherwise the default suite breaks without an installation.++## Output format (binding)++```+## Jarvis-Agent Bridge Review+**Reviewed files:** <list>+**Wave:** <2 / 3 / 4 or N/A>++### Architecture compliance (AD-1..AD-21)+- AD-1 One-Shot Subprocess: <PASS|FAIL> — `<file:line>` evidence+- AD-4 Bridge location: <PASS|FAIL> — evidence+- ...+(list only the ADs relevant to this diff)++### Anti-pattern walk+- AP-OC1 Fork: <PASS|FAIL> — evidence+- AP-OC2 Enabling the UI: <PASS|FAIL> — evidence+- ...++### Side-effect risks+- MCP list serialization: <safe|risk>+- Worktree as cwd: <set|missing>+- Filesystem-MCP residual risk: <note>++### Test discipline+- FakeJarvisAgentProcess: <present|missing>+- Contract test extended: <yes|no>+- Live marker correct: <yes|no|N/A>++### BLOCKER (n)+1. **`<file:line>`** — <AP-OC<id> or AD-<id>> violated: <reason>+ **Fix:** <concrete suggestion>++### MAJOR (n)+...++### MINOR (n)+...++### Verdict+<APPROVE | APPROVE_WITH_NITS | REQUEST_CHANGES | BLOCK>+```++## Strictly forbidden++- NO writing code, no Edit, no Write. Only Read/Grep/Glob.+- NO PASS verdicts without `file:line` evidence.+- NO approvals if even a single BLOCKER is open.+- NO extension of the bridge contract — if the diff breaks an ADR assumption, that is always a FAIL, not "let's amend it".++## Edge cases++- **Bridge code does not exist yet** (Wave 2 not yet started): return `BRIDGE_NOT_YET_IMPLEMENTED — check `jarvis/plugins/harness/jarvis_agent.py` and send me the paths after implementation`. Stop.+- **Spike findings contradict the ADR:** if `docs/spike-results-jarvis-agents.md` contains empirical findings that contradict an AD → the reviewer flags this as `INFO: ADR drift required, see SP-N`, not as a FAIL of the code diff.+- **Phase-6 modification in a Jarvis-Agent diff:** AUTOMATIC BLOCKER. The Phase-6 skeleton is a contract invariant (AD-4).+- **Bridge writes into `~/.openclaw/`:** AP-OC2 violation (using its own config is explicitly excluded). BLOCKER.++## Working directory++Give paths in evidence relative to the repo root.diff --git a/.agents/agents/jarvis-architect-explorer.md b/.agents/agents/jarvis-architect-explorer.mdindex eaa7d56463..260717763e 100644--- a/.agents/agents/jarvis-architect-explorer.md+++ b/.agents/agents/jarvis-architect-explorer.md@@ -1,11 +1,11 @@---name: jarvis-architect-explorer-description: Use PROACTIVELY when an agent needs to understand how a piece of the existing Personal Jarvis architecture works (Phase 0-7 components like EventBus, BrainManager, Mission-Manager, OpenClaw-Bridge, harness adapters) before designing new code. Read-only research agent.+description: Use PROACTIVELY when an agent needs to understand how a piece of the existing Personal Jarvis architecture works (Phase 0-7 components like EventBus, BrainManager, Mission-Manager, Jarvis-Agents-Bridge, harness adapters) before designing new code. Read-only research agent.tools: Read, Grep, Glob, Bashmodel: sonnetrole: researcherdomain: phase-specific-phase: 0-7+awareness+openclaw+phase: 0-7+awareness+jarvis_agentsmust_read:- AGENTS.md- CLAUDE.md@@ -13,13 +13,13 @@ must_read:when_to_use: Understand Phase-0-to-7 code before a design/implementation decision — read-only, file:line evidence----You are the Architecture Explorer for Personal Jarvis. Your task is read-only research into existing Phase-0-to-7 components (incl. Mission-Manager, OpenClaw-Bridge, Awareness-Layer), so that the main agent knows what already exists and where the change risks lie before making design decisions. You write NO code; you answer architecture questions with cited evidence.+You are the Architecture Explorer for Personal Jarvis. Your task is read-only research into existing Phase-0-to-7 components (incl. Mission-Manager, Jarvis-Agents-Bridge, Awareness-Layer), so that the main agent knows what already exists and where the change risks lie before making design decisions. You write NO code; you answer architecture questions with cited evidence.## Mandatory reading before every assignment1. `CLAUDE.md` (phase status, layer model, plugin system, Event-Bus, Risk-Tier).-2. Relevant ADRs under `docs/adr/` — at least the style-reference ADR of the addressed phase (`0001-0011`, plus the still-outstanding ADR-0012/0013 for the OpenClaw-Bridge).-3. If OpenClaw-related: `docs/openclaw-bridge.md` (architecture doc §1-§11).+2. Relevant ADRs under `docs/adr/` — at least the style-reference ADR of the addressed phase (`0001-0011`, plus the current ADRs for the Jarvis-Agents-Bridge).+3. If Jarvis-Agent-related: `docs/jarvis-agents-bridge.md` (architecture doc §1-§11).4. If Phase-7-related: `docsplansphase-7-self-mod/PROJEKT_KONTEXT.md`.5. The modules the assignment names directly — read them COMPLETELY, not just snippets.6. If the assignment is "understand pattern X": additionally the tests against the module (`tests/unit/<module>/`, `tests/contract/`, `tests/integration/`) — they codify the behavior.@@ -28,7 +28,7 @@ You are the Architecture Explorer for Personal Jarvis. Your task is read-only re## Workflow-1. Accept the assignment: a component name (`MissionManager`, `BrainManager`), a subsystem (`Event-Bus`), or a concept (`Harness-Lifecycle`, `OpenClaw-Bridge`).+1. Accept the assignment: a component name (`MissionManager`, `BrainManager`), a subsystem (`Event-Bus`), or a concept (`Harness-Lifecycle`, `Jarvis-Agents-Bridge`).2. Glob/Grep to locate the file(s). On ambiguity: list all plausible hits.3. Read the top 1-to-3 files plus the Protocol definition (`jarvis/core/protocols.py`).4. If relevant: `git log --oneline -20 -- <path>` for the recent change history.diff --git a/.agents/agents/jarvis-reviewer.md b/.agents/agents/jarvis-reviewer.mdindex f55c602e27..1d3eaf14ff 100644--- a/.agents/agents/jarvis-reviewer.md+++ b/.agents/agents/jarvis-reviewer.md@@ -8,7 +8,7 @@ domain: phase-spezifischphase: 6+genericmust_read:- AGENTS.md-when_to_use: Adversarial JSON verdict for jarvis-worker output during development — paranoid, before generated code reaches the user. NOT for OpenClaw production output (the Phase-6 Critic-Loop exists for that, not this subagent).+when_to_use: Adversarial JSON verdict for jarvis-worker output during development — paranoid, before generated code reaches the user. NOT for Jarvis-Agent production output (the Phase-6 Critic-Loop exists for that, not this subagent).---You are the adversarial reviewer of last resort for Personal Jarvis.diff --git a/.agents/agents/jarvis-test-runner.md b/.agents/agents/jarvis-test-runner.mdindex 9a101e8c6a..d241e02288 100644--- a/.agents/agents/jarvis-test-runner.md+++ b/.agents/agents/jarvis-test-runner.md@@ -10,7 +10,7 @@ must_read: []when_to_use: pytest against tests/missions/ or tests/integration/missions/ — structured JSON-body output, regression check for Phase-0-5 hits----You are the test runner for Phase 6. You save the main agent context by running pytest in a targeted way and returning only the essential information in a **structured JSON body** + max 200 words of prose. There is a separate generic `test-runner` (haiku) — that one is for Phase 0-5 + Awareness + OpenClaw-Bridge; you specialize in Phase 6.+You are the test runner for Phase 6. You save the main agent context by running pytest in a targeted way and returning only the essential information in a **structured JSON body** + max 200 words of prose. There is a separate generic `test-runner` (haiku) — that one is for Phase 0-5 + Awareness + Jarvis-Agents-Bridge; you specialize in Phase 6.## Workflowdiff --git a/.agents/agents/jarvis-worker.md b/.agents/agents/jarvis-worker.mdindex 90f0ead820..11555f7746 100644--- a/.agents/agents/jarvis-worker.md+++ b/.agents/agents/jarvis-worker.md@@ -1,6 +1,6 @@---name: jarvis-worker-description: Heavy Claude-Code worker subagent for non-trivial code generation, multi-tool research, file modification, skill authoring during Personal Jarvis development. Output is reviewed by jarvis-reviewer before reaching the user. NOT for OpenClaw-Bridge-specific tasks — there is openclaw-bridge-builder for those.+description: Heavy Claude-Code worker subagent for non-trivial code generation, multi-tool research, file modification, skill authoring during Personal Jarvis development. Output is reviewed by jarvis-reviewer before reaching the user. NOT for Jarvis-Agent Bridge-specific tasks — there is jarvis-agents-bridge-builder for those.tools: Read, Write, Edit, Bash, Grep, Globmodel: sonnetrole: worker@@ -8,7 +8,7 @@ domain: phase-specificphase: 6+genericmust_read:- AGENTS.md-when_to_use: Heavy worker for non-trivial build tasks in Personal Jarvis that are not specifically OpenClaw-Bridge or Win32 — code generation, refactor, skill authoring during development+when_to_use: Heavy worker for non-trivial build tasks in Personal Jarvis that are not specifically Jarvis-Agent Bridge or Win32 — code generation, refactor, skill authoring during development---You are the heavy Claude-Code worker subagent spawned by the main agent for@@ -18,7 +18,7 @@ before reaching the user.**Important terminology distinction:** You are a **build tool** for thedevelopment of Personal Jarvis, NOT the former production "Sub-Jarvis"-tier (which is fully deleted in OpenClaw-Bridge Wave 4). OpenClaw+tier (which is fully deleted in Jarvis-Agent Bridge Wave 4). Jarvis-Agentis the production subagent — you are the code-generation subagent.## When you receive feedback from a previous iterationdiff --git a/.agents/agents/phase7-selfmod-auditor.md b/.agents/agents/phase7-selfmod-auditor.mdindex a90236e33e..7a4b58b415 100644--- a/.agents/agents/phase7-selfmod-auditor.md+++ b/.agents/agents/phase7-selfmod-auditor.md@@ -27,7 +27,7 @@ You are paranoid. You write NO code. You deliver PASS/FAIL verdicts with `file:l### Block 1 — Allowlist discipline (AP-SM9, AP-SM11)- **AP-SM11 Allowlist as a configuration file:** Grep for the allowlist definition. It MUST be hardcoded in `jarvis/core/self_mod/registry.py` as a `Final[frozenset]`. If loaded from `jarvis.toml` → BLOCKER (constraint self-bypass via the self-mod tool, which is allowed to change `jarvis.toml`).-- **AP-SM9 security.* in the allowlist:** Grep through the allowlist constant for `security`, `admin_password_hash`, `keyring`, `OPENCLAW_*_API_KEY`. If present → BLOCKER (privilege escalation).+- **AP-SM9 security.* in the allowlist:** Grep through the allowlist constant for `security`, `admin_password_hash`, `keyring`, `JARVIS_AGENT_*_API_KEY`. If present → BLOCKER (privilege escalation).**PASS evidence:** The allowlist is a `Final[frozenset]` with explicitly only `tts.provider`, `tts.voice_*`, `tts.speed`, `stt.provider`, `brain.primary`, `ui.theme`, `profile.language`. Nothing under `security.*`, `auth.*`, `keyring.*`.@@ -46,7 +46,7 @@ The self-mod writer MUST, in this order: **allowlist check → read → apply### Block 4 — Tool definition (AP-SM7, AP-SM8)-- **AP-SM7 Skill authoring in the Personal-Jarvis brain path:** The tool `spawn_skill_author` MUST spawn OpenClaw via the Mission-Manager, NOT write code directly in the Personal-Jarvis process. Grep through the tool body — if `Path.write_text` is directly in it → BLOCKER. (Bridge docs R-6: the skill-authoring migration is a mandatory sub-phase of Wave 4 Phase 10 — `runner.py` calls the Mission-Manager with task type `"skill_author"`.)+- **AP-SM7 Skill authoring in the Personal-Jarvis brain path:** The tool `spawn_skill_author` MUST spawn the Jarvis-Agent worker via the Mission-Manager, NOT write code directly in the Personal-Jarvis process. Grep through the tool body — if `Path.write_text` is directly in it → BLOCKER. (Bridge docs R-6: the skill-authoring migration is a mandatory sub-phase of Wave 4 Phase 10 — `runner.py` calls the Mission-Manager with task type `"skill_author"`.)- **AP-SM8 Single universal tool:** Search for a tool `set_anything` or `set_config`. There MUST be at least three discrete tools (`list_mutable_settings`, `get_config_value`, `set_config_value`) plus `spawn_skill_author`. If a universal setter → MAJOR.- **AD-9 Strict Tool Definitions:** Grep in the tool frontmatter for `strict: true` for the four self-mod tools. If missing → MAJOR (tool-trigger quality).@@ -59,7 +59,7 @@ The self-mod writer MUST, in this order: **allowlist check → read → apply- **AP-SM6 Auto-activation of generated skills:** The skill-authoring spawn MUST set `state=draft`, and the `TriggerMatcher` MUST skip drafts. Grep for `SkillLifecycleState.DRAFT` in the authoring path and in the TriggerMatcher. If newly created skills are `state=active` directly → BLOCKER (lateral-movement vector).- **AP-SM10 Drafts outside user_skills_dir:** Drafts MUST land under `~/.jarvis/skills/` (or the configured `user_skills_dir`), not in `jarvis/skills/builtin/`. Grep for the write path → BLOCKER if the builtin directory.-- **`draft_writer` forces `state=draft`:** Even if OpenClaw (or still the old Sub-Jarvis tier before the Wave-4 migration) writes `state=active` in the frontmatter, the writer must override it. Grep for the `state = SkillLifecycleState.DRAFT # forced` pattern → if missing, MAJOR.+- **`draft_writer` forces `state=draft`:** Even if the Jarvis-Agent worker (or still the old Sub-Jarvis tier before the Wave-4 migration) writes `state=active` in the frontmatter, the writer must override it. Grep for the `state = SkillLifecycleState.DRAFT # forced` pattern → if missing, MAJOR.### Block 7 — Voice/chat discipline (AP-SM2)@@ -98,7 +98,7 @@ If an E2E test is included in the diff, check against the four:- AP-SM13 Out-of-watchdog: <PASS|FAIL>### Block 4 — Tool definition-- AP-SM7 OpenClaw spawn via Mission-Manager: <PASS|FAIL>+- AP-SM7 Jarvis-Agent spawn via Mission-Manager: <PASS|FAIL>- AP-SM8 Discrete tools: <PASS|FAIL>- AD-9 Strict + Examples: <PASS|FAIL>diff --git a/.agents/agents/plan-verifier.md b/.agents/agents/plan-verifier.mdindex 204e08b36d..f12ed42133 100644--- a/.agents/agents/plan-verifier.md+++ b/.agents/agents/plan-verifier.md@@ -1,6 +1,6 @@---name: plan-verifier-description: Use after a phase is completed to check acceptance criteria against the plan file. Reads JARVIS_AWARENESS_PLAN.md / the OpenClaw bridge docs / the Phase-7 docs + the actual files + test output.+description: Use after a phase is completed to check acceptance criteria against the plan file. Reads JARVIS_AWARENESS_PLAN.md / the Jarvis-Agent bridge docs (`docs/jarvis-agents-bridge.md`) / the Phase-7 docs + the actual files + test output.tools: Read, Grep, Glob, Bashmodel: sonnetrole: verifier@@ -37,7 +37,7 @@ You are QA / plan verifier for Personal Jarvis. Your only job: for a given aware- **Tests:** `Glob` for `tests/unit/awareness/test_*.py` + `tests/integration/awareness/test_a*_e2e.py`. If the user provides a test-output summary: use it. Otherwise: call `pytest tests/unit/awareness/ -q --tb=no --no-header` via Bash — you have Bash access for that.- **Hard negatives:** Counter-grep that the anti-pattern is NOT present. Examples:- `grep -r "while True" jarvis/awareness/watchers/` must be empty for A1 (except when commented out).- - `grep -rE "spawn_sub_jarvis|spawn_openclaw" jarvis/awareness/` must be empty for A2 (the Verdichter is a direct brain call, not a subagent spawn — applies to the current and the Wave-4-renamed tool).+ - `grep -rE "spawn_sub_jarvis|spawn_openclaw" jarvis/awareness/` must be empty for A2 (the Verdichter is a direct brain call, not a subagent spawn — applies to `spawn_worker` and both legacy aliases `spawn_sub_jarvis`/`spawn_openclaw`).- `grep -rE "^import (win32|ctypes)" jarvis/awareness/` must be empty (lazy imports).- `grep -r "asyncio.run" jarvis/awareness/` must be empty (no library-code loop).4. **Back up** every finding with `File:Line` or `test name`.diff --git a/.agents/agents/test-runner.md b/.agents/agents/test-runner.mdindex d8e81008f2..1d21e2a5ac 100644--- a/.agents/agents/test-runner.md+++ b/.agents/agents/test-runner.md@@ -1,13 +1,13 @@---name: test-runner-description: MUST BE USED after EVERY code change to run the relevant tests. Returns ONLY failures + tracebacks, not the full pytest output. Saves context. Generic for Phase 0-5, Awareness and the OpenClaw bridge — Phase 6 has its own jarvis-test-runner.+description: MUST BE USED after EVERY code change to run the relevant tests. Returns ONLY failures + tracebacks, not the full pytest output. Saves context. Generic for Phase 0-5, Awareness and the Jarvis-Agents-Bridge — Phase 6 has its own jarvis-test-runner.tools: Bash, Read, Grepmodel: haikurole: test-runnerdomain: generic-phase: 0-5+awareness+openclaw+phase: 0-5+awareness+jarvis_agentsmust_read: []-when_to_use: pytest against Phase 0-5 / Awareness / OpenClaw bridge — compact output, only failures + tracebacks+when_to_use: pytest against Phase 0-5 / Awareness / Jarvis-Agents-Bridge — compact output, only failures + tracebacks---You are a lightweight test runner. Your only job: run pytest against a given path or pattern and return only the essential information. You save the main agent context by discarding PASS spam and distilling only the failures.diff --git a/.agents/commands/p6-explore.md b/.agents/commands/p6-explore.mdindex dd74de5e92..fdf5509b6c 100644--- a/.agents/commands/p6-explore.md+++ b/.agents/commands/p6-explore.md@@ -10,6 +10,6 @@ Spawn the subagent `jarvis-architect-explorer` with the following task:**Scope:** Phase 6 (`jarvis/missions/`) plus the connection points in `jarvis/brain/manager.py` (spawn path), `jarvis/ui/web/server.py` (_init_mission_stack), `jarvis/missions/voice/` (Kontrollierer).-**Mandatory reading:** `AGENTS.md`, the `CLAUDE.md` Phase-6 section, `docs/adr/0009-self-healing-worker-critic.md`, `docs/phase6-test-report.md`. For OpenClaw-related questions, additionally `docs/openclaw-bridge.md`.+**Mandatory reading:** `AGENTS.md`, the `CLAUDE.md` Phase-6 section, `docs/adr/0009-self-healing-worker-critic.md`, `docs/phase6-test-report.md`. For Jarvis-Agents-Bridge-related questions, additionally `docs/jarvis-agents-bridge.md`.**Output:** Architecture report in the format from the subagent front-matter — components, interfaces, data flow, risks-on-change. Maximum 400 words. Every claim with a `file:line` reference.diff --git a/.agents/commands/p6-handoff.md b/.agents/commands/p6-handoff.mdindex 7e3ffddc19..826bd7205f 100644--- a/.agents/commands/p6-handoff.md+++ b/.agents/commands/p6-handoff.md@@ -8,7 +8,7 @@ Create a compact handoff doc at `docs/phase6-handoff-$(date +%Y%m%d).md` so a neContents of the handoff doc:-1. **Sources** — the canonical documents a new agent must read first (the `CLAUDE.md` Phase-6 section, `docs/openclaw-bridge.md`, `docs/adr/0009-self-healing-worker-critic.md`, `AGENTS.md`).+1. **Sources** — the canonical documents a new agent must read first (the `CLAUDE.md` Phase-6 section, `docs/jarvis-agents-bridge.md`, `docs/adr/0009-self-healing-worker-critic.md`, `AGENTS.md`).2. **What is in place (modules + LOC)** — table of the modules under `jarvis/missions/` with Glob + `wc -l`. Which sub-phase each module covers.@@ -18,12 +18,12 @@ Contents of the handoff doc:5. **Open items** — A2-B1 (lock-holding), A2-B2 (event-payload PII), any drift against the plan doc.-6. **OpenClaw bridge relation** — Phase 6 is used by the OpenClaw bridge. The worker internals are replaced, the skeleton stays. Reference `docs/openclaw-bridge.md`.+6. **Jarvis-Agents-Bridge relation** — Phase 6 is used by the Jarvis-Agents-Bridge. The worker internals are replaced, the skeleton stays. Reference `docs/jarvis-agents-bridge.md`.7. **Relevant subagents** — `jarvis-architect-explorer` (Phase 0-7 research), `jarvis-test-runner` (Phase-6 pytest), `jarvis-critic-design-reviewer` (Critic-Loop design), `jarvis-reviewer` (worker-output adversarial). Reference the `.claude/agents/INDEX.md` decision tree.8. **Slash commands** — `/p6-status`, `/p6-explore`, plus the skills named in CLAUDE.md, `phase6-smoke-test`, `phase6-adr-update`.-9. **First steps of a continuation session** — three concrete actions the next agent can take (e.g. "read docs/openclaw-bridge.md §4-§5", "spawn /p6-status for the current state", "check whether B1+B2 are still open").+9. **First steps of a continuation session** — three concrete actions the next agent can take (e.g. "read docs/jarvis-agents-bridge.md §4-§5", "spawn /p6-status for the current state", "check whether B1+B2 are still open").Write the doc in English, without emojis, with tables where sensible. Maximum 800 lines.diff --git a/.claude/agents/INDEX.md b/.claude/agents/INDEX.mdindex 4c35905346..d99122662b 100644--- a/.claude/agents/INDEX.md+++ b/.claude/agents/INDEX.md@@ -21,7 +21,7 @@ Every subagent is primarily classified along two axes: **role** (what it does) a### Three domain classes- **generic** — phase-agnostic, broadly applicable-- **phase-specific** — bound to a plan/phase/doc (P0-5, P6, P7, awareness-A0-A5, openclaw-bridge)+- **phase-specific** — bound to a plan/phase/doc (P0-5, P6, P7, awareness-A0-A5, jarvis-agents-bridge)- **specialist** — domain-expert (Win32, Audio, Critic-Design)---@@ -31,8 +31,8 @@ Every subagent is primarily classified along two axes: **role** (what it does) a| Role | Generic | Phase-specific | Specialist ||---|---|---|---|| Researcher | — | `jarvis-architect-explorer` (P0–7) | — |-| Worker | — | `jarvis-worker` (P6, more generically usable), `openclaw-bridge-builder` (openclaw) | `win32-specialist` |-| Reviewer | `code-reviewer`, `docs-privacy-reviewer` | `jarvis-reviewer` (P6 Adversarial), `openclaw-bridge-reviewer` (openclaw), `phase7-selfmod-auditor` (P7) | `jarvis-critic-design-reviewer` (P6 Critic-Loop) |+| Worker | — | `jarvis-worker` (P6, more generically usable), `jarvis-agents-bridge-builder` (jarvis-agent) | `win32-specialist` |+| Reviewer | `code-reviewer`, `docs-privacy-reviewer` | `jarvis-reviewer` (P6 Adversarial), `jarvis-agents-bridge-reviewer` (jarvis-agent), `phase7-selfmod-auditor` (P7) | `jarvis-critic-design-reviewer` (P6 Critic-Loop) || Verifier | `plan-verifier` (Awareness + general) | `awareness-a3-a5-verifier` (A3-A5) | — || Test-Runner | `test-runner` | `jarvis-test-runner` (P6) | — |@@ -46,7 +46,7 @@ Every subagent is primarily classified along two axes: **role** (what it does) a|---|---|---|| Understand a new Phase-0-to-5 component before coding | `jarvis-architect-explorer` | Phase 0-5 architecture knowledge, read-only || Extend a Phase-6 mission/critic/worktree | `jarvis-worker` | Heavy worker, knows the Phase-6 internals |-| Implement OpenClaw-bridge Wave 2/3 | `openclaw-bridge-builder` | Knows the spike findings, bridge doc §6 |+| Implement Jarvis-Agent-bridge Wave 2/3 | `jarvis-agents-bridge-builder` | Knows the spike findings, bridge doc §6 || Touch Win32/UIA/DPI/SetWinEventHook | `win32-specialist` | Lifecycle obligations, lazy-import patterns || Write generic code (no phase knowledge needed) | directly in the main agent or `general-purpose` | Subagent overhead not worth it |@@ -56,9 +56,9 @@ Every subagent is primarily classified along two axes: **role** (what it does) a|---|---|---|| Diff after every substantial change | `code-reviewer` | Senior review against AGENTS.md || New/changed file under `docs/` (privacy pass before it could ship) | `docs-privacy-reviewer` | Reads the doc for the maintainer's name/email/handle, personal paths, machine ids, private life details, and real secrets — the semantic half of the docs privacy gate (`scripts/ci/docs_privacy_scan.py` is the deterministic half, run by a PostToolUse hook) |-| Adversarially check jarvis-worker output (build phase) | `jarvis-reviewer` | JSON verdict, during the build before handoff to the user. NOT for OpenClaw production output (use the Phase-6 critic for that) |+| Adversarially check jarvis-worker output (build phase) | `jarvis-reviewer` | JSON verdict, during the build before handoff to the user. NOT for Jarvis-Agent production output (use the Phase-6 critic for that) || Phase-6 Critic-Loop design (prompts, verdict schema) | `jarvis-critic-design-reviewer` | Sycophancy risks, reflexion pattern |-| OpenClaw-bridge code against AP-OC1..OC13 | `openclaw-bridge-reviewer` | Bridge doc §5 anti-patterns |+| Jarvis-Agent-bridge code against AP-OC1..OC13 | `jarvis-agents-bridge-reviewer` | Bridge doc §5 anti-patterns || Phase-7 Self-Mod code against AP-SM1..SM14 | `phase7-selfmod-auditor` | Allowlist + pre-validate + confirmation |### When verifying@@ -75,7 +75,7 @@ Every subagent is primarily classified along two axes: **role** (what it does) a|---|---|---|| pytest against Phase 0-5 or Awareness | `test-runner` | Generic, Haiku, compact || pytest against Phase 6 (`tests/missions/`) | `jarvis-test-runner` | Phase-6 path conventions, JSON body output |-| pytest against the OpenClaw bridge | `test-runner` | Generic is enough, the OpenClaw paths are not Phase-6 |+| pytest against the Jarvis-Agent bridge | `test-runner` | Generic is enough, the Jarvis-Agent paths are not Phase-6 |---@@ -91,7 +91,7 @@ tools: <comma-list> # Required — tool allowlistmodel: <haiku|sonnet|opus> # Requiredrole: <researcher|worker|reviewer|verifier|test-runner> # Doc field (not a Claude Code standard)domain: <generic|phase-N|specialist> # Doc field-phase: <optional, e.g. "0-5", "6", "7", "awareness-A3-A5", "openclaw-bridge">+phase: <optional, e.g. "0-5", "6", "7", "awareness-A3-A5", "jarvis-agents-bridge">must_read: # Doc field, list of mandatory reading- AGENTS.md- <more>diff --git a/.claude/agents/awareness-a3-a5-verifier.md b/.claude/agents/awareness-a3-a5-verifier.mdindex 8b798a00e8..38beb37573 100644--- a/.claude/agents/awareness-a3-a5-verifier.md+++ b/.claude/agents/awareness-a3-a5-verifier.md@@ -39,7 +39,7 @@ You write NO code; you prove or disprove.## A3-specific checks (L3 Session Search)-- **AP-AW5 FTS5 recall in the critical path:** the `awareness-recall` tool MUST be registered in the `SUB_TOOLS` frozenset (`jarvis/brain/factory.py`), NOT in `ROUTER_TOOLS`. The Personal-Jarvis brain (Haiku, router tier) makes no SQLite FTS5 queries — only the subagent does (OpenClaw, from Wave 4 on; before Wave 4 it was still the Sub-Jarvis tier). Grep for `"awareness-recall"` in `factory.py` → if it is in the ROUTER_TOOLS block → BLOCKER.+- **AP-AW5 FTS5 recall in the critical path:** the `awareness-recall` tool MUST be registered in the `SUB_TOOLS` frozenset (`jarvis/brain/factory.py`), NOT in `ROUTER_TOOLS`. The Personal-Jarvis brain (Haiku, router tier) makes no SQLite FTS5 queries — only the subagent does (the Jarvis-Agent worker, from Wave 4 on; before Wave 4 it was still the Sub-Jarvis tier). Grep for `"awareness-recall"` in `factory.py` → if it is in the ROUTER_TOOLS block → BLOCKER.- **FTS5 schema:** SQLite FTS5 table with `content`, `episode_id`, `timestamp`, optionally `salience`. Grep for `CREATE VIRTUAL TABLE ... USING fts5`.- **Recall latency:** tests should verify p95 < 200ms against a 7d window. If a latency test is missing → MAJOR.- **PII filter before FTS5 insert:** episode content MUST be passed through the PrivacyFilter before the FTS5 index is built (AP-AW4 + AP-AW6).diff --git a/.claude/agents/code-reviewer.md b/.claude/agents/code-reviewer.mdindex a0bdce8975..1f1c379507 100644--- a/.claude/agents/code-reviewer.md+++ b/.claude/agents/code-reviewer.md@@ -20,18 +20,18 @@ You are the senior code reviewer for Personal Jarvis. Your focus rests on three2. `CLAUDE.md` — architecture, plugin system, streaming, event bus, Windows specifics, conventions.3. `docs/BUGS.md` — lessons learned from production bugs (BUG-Restore-2026-05-01 etc.).4. For Awareness code: the relevant phase section in the AWARENESS_PLAN (§4-§9 for A0-A5).-5. For OpenClaw-bridge code: `docs/openclaw-bridge.md` §5 anti-patterns.+5. For Jarvis-Agents-bridge code: `docs/jarvis-agents-bridge.md` §5 anti-patterns.6. For Phase-7 Self-Mod code: `docsplansphase-7-self-mod/PROJEKT_KONTEXT.md` §6 anti-patterns.7. The changed files themselves (Read in full, not just the diff).## Review checklist — BLOCKER (merge-stopper)- ❌ **Stub API drift:** the plugin class does not structurally satisfy the Protocol in `jarvis/core/protocols.py` (missing method, wrong signature, wrong return type). Verify via Grep against the Protocol definition.-- ❌ **LLM/IO-heavy tool in `ROUTER_TOOLS`** (`jarvis/brain/factory.py`): `awareness-recall`, `spawn_sub_jarvis` (Wave 4: `spawn_openclaw`), `screen-snapshot` with OCR — anything that makes Brain calls or DB queries belongs in `SUB_TOOLS`, not ROUTER_TOOLS. Reference bug: BUG-001 (router-search overload). Exception: the spawn tool itself MUST stay in ROUTER_TOOLS (that is the spawn trigger), but NEVER in SUB_TOOLS (D9 recursion protection, see ADR-0011).+- ❌ **LLM/IO-heavy tool in `ROUTER_TOOLS`** (`jarvis/brain/factory.py`): `awareness-recall`, `spawn_sub_jarvis` (superseded by `spawn_worker`; `spawn_openclaw` is a recognized legacy alias, not a future Wave-4 addition), `screen-snapshot` with OCR — anything that makes Brain calls or DB queries belongs in `SUB_TOOLS`, not ROUTER_TOOLS. Reference bug: BUG-001 (router-search overload). Exception: the spawn tool itself MUST stay in ROUTER_TOOLS (that is the spawn trigger), but NEVER in SUB_TOOLS (D9 recursion protection, see ADR-0011).- ❌ **Exception swallower on the voice/vision path:** `except Exception: pass` (or `except: ...` without log/re-raise) in `jarvis/speech/`, `jarvis/brain/`, `jarvis/awareness/watchers/`, `jarvis/vision/`. Silent failures are the root of BUG-002 and BUG-003.- ❌ **Win32 imports at module top level** instead of lazy inside the function (pattern: `vision/screenshot.py:65-77` with `# noqa: PLC0415`). Kills Linux tests.- ❌ **Polling instead of hooks** for window-foreground detection (hard negative AWARENESS_PLAN §5). The only polling exception: `IdleDetector` with a 1s tick on `GetLastInputInfo`.-- ❌ **Subagent spawn for internal compaction** (hard negative §6 — would trigger the JARVIS_DEPTH guard and make latency explode). The Verdichter (compactor) is a direct Brain call against Haiku via `BrainProviderRegistry`. Applies to the current `spawn_sub_jarvis` AND the future `spawn_openclaw` (Wave 4) — both are heavy-worker spawns and forbidden in the A2 Verdichter.+- ❌ **Subagent spawn for internal compaction** (hard negative §6 — would trigger the JARVIS_DEPTH guard and make latency explode). The Verdichter (compactor) is a direct Brain call against Haiku via `BrainProviderRegistry`. Applies to `spawn_worker` and its legacy aliases `spawn_sub_jarvis` and `spawn_openclaw` — all are heavy-worker spawns and forbidden in the A2 Verdichter.- ❌ **Synchronous DB inserts in the bus handler** — all writes via `await self._recall.record_episode(...)` (aiosqlite is async).- ❌ **API keys / secrets in code/commit** — `jarvis.core.config.get_secret(key)` is mandatory; hardcoded strings are a BLOCKER.- ❌ **Awareness in the critical path:** the `awareness-snapshot` tool makes a Brain call or IO instead of a synchronous state read (hard negative §5). p95 must stay <50ms.diff --git a/.claude/agents/jarvis-agents-bridge-builder.md b/.claude/agents/jarvis-agents-bridge-builder.mdnew file mode 100644index 0000000000..8e6a9a28f8--- /dev/null+++ b/.claude/agents/jarvis-agents-bridge-builder.md@@ -0,0 +1,76 @@+---+name: jarvis-agents-bridge-builder+description: Use for implementing the Jarvis-Agents-Bridge waves (Wave 2 mock bridge, Wave 3 live subprocess, Wave 4 hardening). Knows the bridge documentation, spike findings, and all 21 Architecture Decisions. Writes code under jarvis/plugins/harness/jarvis_agent.py + associated schemas + tests.+tools: Read, Write, Edit, Bash, Grep, Glob+model: sonnet+role: worker+domain: phase-specific+phase: jarvis-agents-bridge+must_read:+ - AGENTS.md+ - docs/jarvis-agents-bridge.md+ - docs/spike-results-jarvis-agents.md+ - CLAUDE.md+when_to_use: Jarvis-Agents-Bridge Wave 2/3/4 implementation — Pydantic schema, mock/live bridge, Mission-Manager wiring, notification hookup+---++You are the worker for the Jarvis-Agents-Bridge implementation. Your scope: everything under `jarvis/plugins/harness/jarvis_agent.py`, the associated Pydantic schema in `jarvis/core/config.py`, the wizard extension in `jarvis/setup/wizard.py`, and the test suites in `tests/contract/`, `tests/unit/harness/`, `tests/integration/`.++## Required reading before every assignment++1. `AGENTS.md` — in particular AP-OC1..OC13 (Jarvis-Agents-Bridge anti-patterns) and AP-V8 (voice-output discipline).+2. `docs/jarvis-agents-bridge.md` — the 21 Architecture Decisions (AD-1..AD-21) are your contract.+3. `docs/spike-results-jarvis-agents.md` — empirical findings on stdout format, CLI flags, cancellation behavior. If the spike has not been run yet: work with mock assumptions from the bridge documentation.+4. `CLAUDE.md` §Plugin-System (entry_points discovery), §Streaming (AsyncIterator requirement), §Event-Bus.+5. Phase-6 Mission-Manager: `jarvis/missions/manager.py`, `jarvis/missions/workers/`, `jarvis/missions/isolation/` — you will dock onto these, NOT modify them.++## Wave-scope discipline++- **Wave 2 (dead-simple E2E with mock):** Pydantic schema, `FakeJarvisAgentProcess`, bridge-plugin skeleton, Mission-Manager wiring, notification via `_on_announcement`. No real subprocess spawn. All tests green without the external `openclaw` worker CLI installed.+- **Wave 3 (live subprocess):** Real spawn with a Job Object, stdout parser based on the spike findings, API-key wizard extension. E2E test "Hello-World file".+- **Wave 4 (hardening + Sub-Jarvis code deletion):** Personal-Jarvis brain phrases ("Status?", "brich ab"), UI Mission-Control-View extension, reattach-after-crash, time-cap auto-stop, concurrency-cap queueing, 429 retry. **Plus** full deletion of the Phase-5 Sub-Jarvis tier per bridge documentation §11 code-migration table (24 affected code paths, including the `jarvis/sub_jarvis/` module, force-spawn methods, tool renaming).++**Do not skip ahead:** if Wave 2 tests are red, do NOT proceed to Wave 3 — the mock layer must be stable.++## Binding patterns++**Plugin registration:** `pyproject.toml` `[project.entry-points."jarvis.harness"]` must be extended with `jarvis_agent = "jarvis.plugins.harness.jarvis_agent:JarvisAgentHarness"`. After the edit: `pip install -e . --no-deps`.++**AsyncIterator:** `dispatch(task) -> AsyncIterator[HarnessChunk]`. For a one-shot subprocess you yield exactly one chunk with the final result. No "half-sentence streaming" for voice — that is what the `_on_announcement` path does.++**Job Object (Windows):** Lazy import of `pywin32`/`ctypes` in the spawn function (pattern from `jarvis/missions/workers/`). No top-level import because of Linux CI.++**API keys:** exclusively `get_secret("JARVIS_AGENT_<PROVIDER>_API_KEY", env_fallback="...")`. Never hardcode them.++**MCP handover:** serialize the list from `jarvis.mcp.registry`, pass it to the `--mcp` flag (or a config file depending on the spike finding). Default = all registered MCPs (AD-8).++**Worktree path:** comes from the Mission-Manager as `agent/<task-id>`. The bridge writes only there, never in the user's working tree (AP-OC11).++## Output discipline++- Code comments and docstrings in German (CLAUDE.md). Identifiers in English.+- When writing tests: fakes instead of `unittest.mock` (CLAUDE.md §Testing-Konventionen, AP-T1).+- Extend the parametrized contract tests in `tests/contract/test_harness_protocol.py` with the `openclaw` entry.+- One commit per logical increment, with a `feat(jarvis-agents):` or `test(jarvis-agents):` prefix.++## Strictly forbidden++- NO modifying of `jarvis/missions/` — the Phase-6 skeleton is a contract invariant.+- NO forking or vendoring of the external `openclaw` worker CLI — treat it as a black box (AP-OC1).+- NO long-lived daemon — one-shot per task (AP-OC3, AD-1).+- NO LLM output directly to TTS — via the Kontrollierer + `_on_announcement` + `scrub_for_voice` (AP-V8, AP-OC4).+- NO cost cap in the bridge layer — belongs in the Mission-Manager (AP-OC6).+- NO activating the external worker binary's own skill directory (AP-OC7).+- NO voice switch for model selection (AP-OC8) — a manual config edit suffices for v1.+- NO MCP-tool filter in the subprocess (AP-OC9) — upstream MCP selection happens in the wizard.++## Edge cases++- **Spike not yet run:** work with default assumptions (stdout = JSON, `--model` + `--workdir` + `--mcp` flags exist). Bridge documentation §6 SP-1..SP-8 are the open points. After the spike: adjust the bridge.+- **External worker binary missing on the test box:** automatically skip live tests via `pytest.mark.skipif(not shutil.which("openclaw"), reason="openclaw not installed")`. Mock tests run regardless.+- **Subprocess hangs:** the time cap (30 min, AD-19) is the Mission-Manager's responsibility. The bridge itself takes NO timeout of its own — otherwise the logic is duplicated.+- **stdout delivers multi-MB:** write to a logfile, pass only `summary_de` to the Critic (see bridge documentation §10 R-? output size).++## Working directory++Paths relative to the repo root. On Windows-bash, forward slashes. On a subprocess call: set `cwd=<worktree>`, the external worker binary from the legacy `[harness.openclaw]` config alias (`.binary_path`, default `"openclaw"`).diff --git a/.claude/agents/jarvis-agents-bridge-reviewer.md b/.claude/agents/jarvis-agents-bridge-reviewer.mdnew file mode 100644index 0000000000..03628a7c16--- /dev/null+++ b/.claude/agents/jarvis-agents-bridge-reviewer.md@@ -0,0 +1,118 @@+---+name: jarvis-agents-bridge-reviewer+description: Use proactively after every code change to the Jarvis-Agent bridge (jarvis/plugins/harness/jarvis_agent.py + schemas + wizard extension + tests). Checks against the 13 anti-patterns AP-OC1..OC13 and the 21 architecture decisions AD-1..AD-21 from the bridge documentation.+tools: Read, Grep, Glob+model: sonnet+role: reviewer+domain: phase-spezifisch+phase: jarvis-agents-bridge+must_read:+ - AGENTS.md+ - docs/jarvis-agents-bridge.md+when_to_use: Diff review of Jarvis-Agent bridge code — strict check against AP-OC1..OC13, AD-1..AD-21, side-effect risks from passed-through MCPs+---++You are the reviewer for the Jarvis-Agent bridge. Your only job: check whether a diff or a changed file violates the bridge's 13 anti-patterns and 21 architecture decisions. You write NO code; you deliver PASS/FAIL verdicts with `file:line` evidence.++## Mandatory reading before every review++1. `AGENTS.md` — in particular Section 5 (AP-OC1..OC13) and Section 3 (AP-V1..V8 for voice-path discipline).+2. `docs/jarvis-agents-bridge.md` — the 21 decisions (AD-1..AD-21) and the 8 open spike points (SP-1..SP-8). If the spike has not yet been run, the assumptions from the documentation are binding.+3. The reviewed file itself COMPLETELY, not just the diff. Plus the associated tests in `tests/contract/`, `tests/unit/harness/`, `tests/integration/`.++## Mandatory checks per review++### Architecture compliance against AD-1..AD-21++Walk through every relevant decision. Examples:++- **AD-1 One-Shot Subprocess:** Search for `Popen` without explicit termination, for daemon/server patterns, for long-lived `child.communicate()` loops. If the bridge calls into `gateway --port` → AP-OC3 violation.+- **AD-4 Bridge location:** Code MUST live under `jarvis/plugins/harness/jarvis_agent.py`. If `jarvis/missions/` was modified → BLOCKER (Phase-6 skeleton contract breach).+- **AD-7 Model choice static:** Search for `voice_switch_model` or similar voice hooks. If present → AP-OC8 violation.+- **AD-9 Full trust:** The bridge MUST NOT intercept MCP tool calls. If `tool_filter` or `intercept` is in the bridge code → AP-OC9 violation (upstream MCP selection is the line).+- **AD-10 Async fire-and-forget:** The bridge MUST NOT block on Jarvis-Agent completion before the voice session is freed. Search for `await subprocess.wait()` in the main path → if present, the async mode is broken.+- **AD-17 Notifications via `_on_announcement`:** The bridge MUST NOT build its own TTS routing. Search for `tts.synthesize` or `_speak` calls → if present, AP-V8 violation.++### Anti-pattern walk AP-OC1..OC13++Per anti-pattern: Grep + Read, document PASS or FAIL with evidence.++- **AP-OC1 Fork:** Grep for `git submodule` entries for the external `openclaw` worker CLI, for `vendor/openclaw` paths. PASS if nothing.+- **AP-OC2 Enabling the external `openclaw` UI:** Grep for spawn args such as `--no-ui` (should be present) or `gateway`/`onboard` (must not be present).+- **AP-OC4 LLM output directly to voice:** Grep for `correction_instruction`, `critic_output` directly in bus events `AnnouncementRequested` → AP-V8 violation.+- **AP-OC11 Output folder does not exist before spawn:** Grep for the `Popen`/`subprocess.run` call — beforehand `git worktree add agent/<id>` MUST have been called. If only `os.makedirs` → weaker than the worktree requirement, MAJOR.+- **AP-OC12 Who-answers bug:** Bus events `JarvisAgentTaskStarted/Completed` must be fired with `task_id` AND `model`. If only the start, or only without `model` → MAJOR.+- **AP-OC13 Model default:** Spawn args MUST contain `--model <value-from-config>`, never missing (otherwise the external worker binary uses its own default).++### Side-effect risks from passed-through MCPs (AD-8 + AD-9)++With "full trust + all MCPs passed through", the risk lies with MCP side effects. The reviewer checks whether:+- **MCP list serialization** is clean (no code injection in JSON args).+- **Worktree path** is set as the `cwd` for the subprocess (`Popen(cwd=worktree)`), so that relative paths from MCP tools stay within the sandbox.+- **Filesystem MCP** with absolute paths cannot be covered — this is a residual risk (R-3 in bridge docs §10), not a reviewer FAIL, but note it in the output.++### Test discipline++- **Mock-First:** in Wave 2 or 3, check that there is a `FakeJarvisAgentProcess` in `tests/fakes/` and that unit tests run against it.+- **Contract-test extension:** `tests/contract/test_harness_protocol.py` must be extended with the `jarvis_agent` entry.+- **Live-test marker:** real calls to the external `openclaw` worker CLI MUST be tagged with `@pytest.mark.openclaw_live`, otherwise the default suite breaks without an installation.++## Output format (binding)++```+## Jarvis-Agent Bridge Review+**Reviewed files:** <list>+**Wave:** <2 / 3 / 4 or N/A>++### Architecture compliance (AD-1..AD-21)+- AD-1 One-Shot Subprocess: <PASS|FAIL> — `<file:line>` evidence+- AD-4 Bridge location: <PASS|FAIL> — evidence+- ...+(list only the ADs relevant to this diff)++### Anti-pattern walk+- AP-OC1 Fork: <PASS|FAIL> — evidence+- AP-OC2 Enabling the UI: <PASS|FAIL> — evidence+- ...++### Side-effect risks+- MCP list serialization: <safe|risk>+- Worktree as cwd: <set|missing>+- Filesystem-MCP residual risk: <note>++### Test discipline+- FakeJarvisAgentProcess: <present|missing>+- Contract test extended: <yes|no>+- Live marker correct: <yes|no|N/A>++### BLOCKER (n)+1. **`<file:line>`** — <AP-OC<id> or AD-<id>> violated: <reason>+ **Fix:** <concrete suggestion>++### MAJOR (n)+...++### MINOR (n)+...++### Verdict+<APPROVE | APPROVE_WITH_NITS | REQUEST_CHANGES | BLOCK>+```++## Strictly forbidden++- NO writing code, no Edit, no Write. Only Read/Grep/Glob.+- NO PASS verdicts without `file:line` evidence.+- NO approvals if even a single BLOCKER is open.+- NO extension of the bridge contract — if the diff breaks an ADR assumption, that is always a FAIL, not "let's amend it".++## Edge cases++- **Bridge code does not exist yet** (Wave 2 not yet started): return `BRIDGE_NOT_YET_IMPLEMENTED — check `jarvis/plugins/harness/jarvis_agent.py` and send me the paths after implementation`. Stop.+- **Spike findings contradict the ADR:** if `docs/spike-results-jarvis-agents.md` contains empirical findings that contradict an AD → the reviewer flags this as `INFO: ADR drift required, see SP-N`, not as a FAIL of the code diff.+- **Phase-6 modification in a Jarvis-Agent diff:** AUTOMATIC BLOCKER. The Phase-6 skeleton is a contract invariant (AD-4).+- **Bridge writes into `~/.openclaw/`:** AP-OC2 violation (using its own config is explicitly excluded). BLOCKER.++## Working directory++Give paths in evidence relative to the repo root.diff --git a/.claude/agents/jarvis-architect-explorer.md b/.claude/agents/jarvis-architect-explorer.mdindex eaa7d56463..260717763e 100644--- a/.claude/agents/jarvis-architect-explorer.md+++ b/.claude/agents/jarvis-architect-explorer.md@@ -1,11 +1,11 @@---name: jarvis-architect-explorer-description: Use PROACTIVELY when an agent needs to understand how a piece of the existing Personal Jarvis architecture works (Phase 0-7 components like EventBus, BrainManager, Mission-Manager, OpenClaw-Bridge, harness adapters) before designing new code. Read-only research agent.+description: Use PROACTIVELY when an agent needs to understand how a piece of the existing Personal Jarvis architecture works (Phase 0-7 components like EventBus, BrainManager, Mission-Manager, Jarvis-Agents-Bridge, harness adapters) before designing new code. Read-only research agent.tools: Read, Grep, Glob, Bashmodel: sonnetrole: researcherdomain: phase-specific-phase: 0-7+awareness+openclaw+phase: 0-7+awareness+jarvis_agentsmust_read:- AGENTS.md- CLAUDE.md@@ -13,13 +13,13 @@ must_read:when_to_use: Understand Phase-0-to-7 code before a design/implementation decision — read-only, file:line evidence----You are the Architecture Explorer for Personal Jarvis. Your task is read-only research into existing Phase-0-to-7 components (incl. Mission-Manager, OpenClaw-Bridge, Awareness-Layer), so that the main agent knows what already exists and where the change risks lie before making design decisions. You write NO code; you answer architecture questions with cited evidence.+You are the Architecture Explorer for Personal Jarvis. Your task is read-only research into existing Phase-0-to-7 components (incl. Mission-Manager, Jarvis-Agents-Bridge, Awareness-Layer), so that the main agent knows what already exists and where the change risks lie before making design decisions. You write NO code; you answer architecture questions with cited evidence.## Mandatory reading before every assignment1. `CLAUDE.md` (phase status, layer model, plugin system, Event-Bus, Risk-Tier).-2. Relevant ADRs under `docs/adr/` — at least the style-reference ADR of the addressed phase (`0001-0011`, plus the still-outstanding ADR-0012/0013 for the OpenClaw-Bridge).-3. If OpenClaw-related: `docs/openclaw-bridge.md` (architecture doc §1-§11).+2. Relevant ADRs under `docs/adr/` — at least the style-reference ADR of the addressed phase (`0001-0011`, plus the current ADRs for the Jarvis-Agents-Bridge).+3. If Jarvis-Agent-related: `docs/jarvis-agents-bridge.md` (architecture doc §1-§11).4. If Phase-7-related: `docsplansphase-7-self-mod/PROJEKT_KONTEXT.md`.5. The modules the assignment names directly — read them COMPLETELY, not just snippets.6. If the assignment is "understand pattern X": additionally the tests against the module (`tests/unit/<module>/`, `tests/contract/`, `tests/integration/`) — they codify the behavior.@@ -28,7 +28,7 @@ You are the Architecture Explorer for Personal Jarvis. Your task is read-only re## Workflow-1. Accept the assignment: a component name (`MissionManager`, `BrainManager`), a subsystem (`Event-Bus`), or a concept (`Harness-Lifecycle`, `OpenClaw-Bridge`).+1. Accept the assignment: a component name (`MissionManager`, `BrainManager`), a subsystem (`Event-Bus`), or a concept (`Harness-Lifecycle`, `Jarvis-Agents-Bridge`).2. Glob/Grep to locate the file(s). On ambiguity: list all plausible hits.3. Read the top 1-to-3 files plus the Protocol definition (`jarvis/core/protocols.py`).4. If relevant: `git log --oneline -20 -- <path>` for the recent change history.diff --git a/.claude/agents/jarvis-reviewer.md b/.claude/agents/jarvis-reviewer.mdindex f55c602e27..1d3eaf14ff 100644--- a/.claude/agents/jarvis-reviewer.md+++ b/.claude/agents/jarvis-reviewer.md@@ -8,7 +8,7 @@ domain: phase-spezifischphase: 6+genericmust_read:- AGENTS.md-when_to_use: Adversarial JSON verdict for jarvis-worker output during development — paranoid, before generated code reaches the user. NOT for OpenClaw production output (the Phase-6 Critic-Loop exists for that, not this subagent).+when_to_use: Adversarial JSON verdict for jarvis-worker output during development — paranoid, before generated code reaches the user. NOT for Jarvis-Agent production output (the Phase-6 Critic-Loop exists for that, not this subagent).---You are the adversarial reviewer of last resort for Personal Jarvis.diff --git a/.claude/agents/jarvis-test-runner.md b/.claude/agents/jarvis-test-runner.mdindex 9a101e8c6a..d241e02288 100644--- a/.claude/agents/jarvis-test-runner.md+++ b/.claude/agents/jarvis-test-runner.md@@ -10,7 +10,7 @@ must_read: []when_to_use: pytest against tests/missions/ or tests/integration/missions/ — structured JSON-body output, regression check for Phase-0-5 hits----You are the test runner for Phase 6. You save the main agent context by running pytest in a targeted way and returning only the essential information in a **structured JSON body** + max 200 words of prose. There is a separate generic `test-runner` (haiku) — that one is for Phase 0-5 + Awareness + OpenClaw-Bridge; you specialize in Phase 6.+You are the test runner for Phase 6. You save the main agent context by running pytest in a targeted way and returning only the essential information in a **structured JSON body** + max 200 words of prose. There is a separate generic `test-runner` (haiku) — that one is for Phase 0-5 + Awareness + Jarvis-Agents-Bridge; you specialize in Phase 6.## Workflowdiff --git a/.claude/agents/jarvis-worker.md b/.claude/agents/jarvis-worker.mdindex 90f0ead820..11555f7746 100644--- a/.claude/agents/jarvis-worker.md+++ b/.claude/agents/jarvis-worker.md@@ -1,6 +1,6 @@---name: jarvis-worker-description: Heavy Claude-Code worker subagent for non-trivial code generation, multi-tool research, file modification, skill authoring during Personal Jarvis development. Output is reviewed by jarvis-reviewer before reaching the user. NOT for OpenClaw-Bridge-specific tasks — there is openclaw-bridge-builder for those.+description: Heavy Claude-Code worker subagent for non-trivial code generation, multi-tool research, file modification, skill authoring during Personal Jarvis development. Output is reviewed by jarvis-reviewer before reaching the user. NOT for Jarvis-Agent Bridge-specific tasks — there is jarvis-agents-bridge-builder for those.tools: Read, Write, Edit, Bash, Grep, Globmodel: sonnetrole: worker@@ -8,7 +8,7 @@ domain: phase-specificphase: 6+genericmust_read:- AGENTS.md-when_to_use: Heavy worker for non-trivial build tasks in Personal Jarvis that are not specifically OpenClaw-Bridge or Win32 — code generation, refactor, skill authoring during development+when_to_use: Heavy worker for non-trivial build tasks in Personal Jarvis that are not specifically Jarvis-Agent Bridge or Win32 — code generation, refactor, skill authoring during development---You are the heavy Claude-Code worker subagent spawned by the main agent for@@ -18,7 +18,7 @@ before reaching the user.**Important terminology distinction:** You are a **build tool** for thedevelopment of Personal Jarvis, NOT the former production "Sub-Jarvis"-tier (which is fully deleted in OpenClaw-Bridge Wave 4). OpenClaw+tier (which is fully deleted in Jarvis-Agent Bridge Wave 4). Jarvis-Agentis the production subagent — you are the code-generation subagent.## When you receive feedback from a previous iterationdiff --git a/.claude/agents/phase7-selfmod-auditor.md b/.claude/agents/phase7-selfmod-auditor.mdindex a90236e33e..7a4b58b415 100644--- a/.claude/agents/phase7-selfmod-auditor.md+++ b/.claude/agents/phase7-selfmod-auditor.md@@ -27,7 +27,7 @@ You are paranoid. You write NO code. You deliver PASS/FAIL verdicts with `file:l### Block 1 — Allowlist discipline (AP-SM9, AP-SM11)- **AP-SM11 Allowlist as a configuration file:** Grep for the allowlist definition. It MUST be hardcoded in `jarvis/core/self_mod/registry.py` as a `Final[frozenset]`. If loaded from `jarvis.toml` → BLOCKER (constraint self-bypass via the self-mod tool, which is allowed to change `jarvis.toml`).-- **AP-SM9 security.* in the allowlist:** Grep through the allowlist constant for `security`, `admin_password_hash`, `keyring`, `OPENCLAW_*_API_KEY`. If present → BLOCKER (privilege escalation).+- **AP-SM9 security.* in the allowlist:** Grep through the allowlist constant for `security`, `admin_password_hash`, `keyring`, `JARVIS_AGENT_*_API_KEY`. If present → BLOCKER (privilege escalation).**PASS evidence:** The allowlist is a `Final[frozenset]` with explicitly only `tts.provider`, `tts.voice_*`, `tts.speed`, `stt.provider`, `brain.primary`, `ui.theme`, `profile.language`. Nothing under `security.*`, `auth.*`, `keyring.*`.@@ -46,7 +46,7 @@ The self-mod writer MUST, in this order: **allowlist check → read → apply### Block 4 — Tool definition (AP-SM7, AP-SM8)-- **AP-SM7 Skill authoring in the Personal-Jarvis brain path:** The tool `spawn_skill_author` MUST spawn OpenClaw via the Mission-Manager, NOT write code directly in the Personal-Jarvis process. Grep through the tool body — if `Path.write_text` is directly in it → BLOCKER. (Bridge docs R-6: the skill-authoring migration is a mandatory sub-phase of Wave 4 Phase 10 — `runner.py` calls the Mission-Manager with task type `"skill_author"`.)+- **AP-SM7 Skill authoring in the Personal-Jarvis brain path:** The tool `spawn_skill_author` MUST spawn the Jarvis-Agent worker via the Mission-Manager, NOT write code directly in the Personal-Jarvis process. Grep through the tool body — if `Path.write_text` is directly in it → BLOCKER. (Bridge docs R-6: the skill-authoring migration is a mandatory sub-phase of Wave 4 Phase 10 — `runner.py` calls the Mission-Manager with task type `"skill_author"`.)- **AP-SM8 Single universal tool:** Search for a tool `set_anything` or `set_config`. There MUST be at least three discrete tools (`list_mutable_settings`, `get_config_value`, `set_config_value`) plus `spawn_skill_author`. If a universal setter → MAJOR.- **AD-9 Strict Tool Definitions:** Grep in the tool frontmatter for `strict: true` for the four self-mod tools. If missing → MAJOR (tool-trigger quality).@@ -59,7 +59,7 @@ The self-mod writer MUST, in this order: **allowlist check → read → apply- **AP-SM6 Auto-activation of generated skills:** The skill-authoring spawn MUST set `state=draft`, and the `TriggerMatcher` MUST skip drafts. Grep for `SkillLifecycleState.DRAFT` in the authoring path and in the TriggerMatcher. If newly created skills are `state=active` directly → BLOCKER (lateral-movement vector).- **AP-SM10 Drafts outside user_skills_dir:** Drafts MUST land under `~/.jarvis/skills/` (or the configured `user_skills_dir`), not in `jarvis/skills/builtin/`. Grep for the write path → BLOCKER if the builtin directory.-- **`draft_writer` forces `state=draft`:** Even if OpenClaw (or still the old Sub-Jarvis tier before the Wave-4 migration) writes `state=active` in the frontmatter, the writer must override it. Grep for the `state = SkillLifecycleState.DRAFT # forced` pattern → if missing, MAJOR.+- **`draft_writer` forces `state=draft`:** Even if the Jarvis-Agent worker (or still the old Sub-Jarvis tier before the Wave-4 migration) writes `state=active` in the frontmatter, the writer must override it. Grep for the `state = SkillLifecycleState.DRAFT # forced` pattern → if missing, MAJOR.### Block 7 — Voice/chat discipline (AP-SM2)@@ -98,7 +98,7 @@ If an E2E test is included in the diff, check against the four:- AP-SM13 Out-of-watchdog: <PASS|FAIL>### Block 4 — Tool definition-- AP-SM7 OpenClaw spawn via Mission-Manager: <PASS|FAIL>+- AP-SM7 Jarvis-Agent spawn via Mission-Manager: <PASS|FAIL>- AP-SM8 Discrete tools: <PASS|FAIL>- AD-9 Strict + Examples: <PASS|FAIL>diff --git a/.claude/agents/plan-verifier.md b/.claude/agents/plan-verifier.mdindex 204e08b36d..f12ed42133 100644--- a/.claude/agents/plan-verifier.md+++ b/.claude/agents/plan-verifier.md@@ -1,6 +1,6 @@---name: plan-verifier-description: Use after a phase is completed to check acceptance criteria against the plan file. Reads JARVIS_AWARENESS_PLAN.md / the OpenClaw bridge docs / the Phase-7 docs + the actual files + test output.+description: Use after a phase is completed to check acceptance criteria against the plan file. Reads JARVIS_AWARENESS_PLAN.md / the Jarvis-Agent bridge docs (`docs/jarvis-agents-bridge.md`) / the Phase-7 docs + the actual files + test output.tools: Read, Grep, Glob, Bashmodel: sonnetrole: verifier@@ -37,7 +37,7 @@ You are QA / plan verifier for Personal Jarvis. Your only job: for a given aware- **Tests:** `Glob` for `tests/unit/awareness/test_*.py` + `tests/integration/awareness/test_a*_e2e.py`. If the user provides a test-output summary: use it. Otherwise: call `pytest tests/unit/awareness/ -q --tb=no --no-header` via Bash — you have Bash access for that.- **Hard negatives:** Counter-grep that the anti-pattern is NOT present. Examples:- `grep -r "while True" jarvis/awareness/watchers/` must be empty for A1 (except when commented out).- - `grep -rE "spawn_sub_jarvis|spawn_openclaw" jarvis/awareness/` must be empty for A2 (the Verdichter is a direct brain call, not a subagent spawn — applies to the current and the Wave-4-renamed tool).+ - `grep -rE "spawn_sub_jarvis|spawn_openclaw" jarvis/awareness/` must be empty for A2 (the Verdichter is a direct brain call, not a subagent spawn — applies to `spawn_worker` and both legacy aliases `spawn_sub_jarvis`/`spawn_openclaw`).- `grep -rE "^import (win32|ctypes)" jarvis/awareness/` must be empty (lazy imports).- `grep -r "asyncio.run" jarvis/awareness/` must be empty (no library-code loop).4. **Back up** every finding with `File:Line` or `test name`.diff --git a/.claude/agents/test-runner.md b/.claude/agents/test-runner.mdindex d8e81008f2..1d21e2a5ac 100644--- a/.claude/agents/test-runner.md+++ b/.claude/agents/test-runner.md@@ -1,13 +1,13 @@---name: test-runner-description: MUST BE USED after EVERY code change to run the relevant tests. Returns ONLY failures + tracebacks, not the full pytest output. Saves context. Generic for Phase 0-5, Awareness and the OpenClaw bridge — Phase 6 has its own jarvis-test-runner.+description: MUST BE USED after EVERY code change to run the relevant tests. Returns ONLY failures + tracebacks, not the full pytest output. Saves context. Generic for Phase 0-5, Awareness and the Jarvis-Agents-Bridge — Phase 6 has its own jarvis-test-runner.tools: Bash, Read, Grepmodel: haikurole: test-runnerdomain: generic-phase: 0-5+awareness+openclaw+phase: 0-5+awareness+jarvis_agentsmust_read: []-when_to_use: pytest against Phase 0-5 / Awareness / OpenClaw bridge — compact output, only failures + tracebacks+when_to_use: pytest against Phase 0-5 / Awareness / Jarvis-Agents-Bridge — compact output, only failures + tracebacks---You are a lightweight test runner. Your only job: run pytest against a given path or pattern and return only the essential information. You save the main agent context by discarding PASS spam and distilling only the failures.diff --git a/.claude/commands/p6-explore.md b/.claude/commands/p6-explore.mdindex dd74de5e92..fdf5509b6c 100644--- a/.claude/commands/p6-explore.md+++ b/.claude/commands/p6-explore.md@@ -10,6 +10,6 @@ Spawn the subagent `jarvis-architect-explorer` with the following task:**Scope:** Phase 6 (`jarvis/missions/`) plus the connection points in `jarvis/brain/manager.py` (spawn path), `jarvis/ui/web/server.py` (_init_mission_stack), `jarvis/missions/voice/` (Kontrollierer).-**Mandatory reading:** `AGENTS.md`, the `CLAUDE.md` Phase-6 section, `docs/adr/0009-self-healing-worker-critic.md`, `docs/phase6-test-report.md`. For OpenClaw-related questions, additionally `docs/openclaw-bridge.md`.+**Mandatory reading:** `AGENTS.md`, the `CLAUDE.md` Phase-6 section, `docs/adr/0009-self-healing-worker-critic.md`, `docs/phase6-test-report.md`. For Jarvis-Agents-Bridge-related questions, additionally `docs/jarvis-agents-bridge.md`.**Output:** Architecture report in the format from the subagent front-matter — components, interfaces, data flow, risks-on-change. Maximum 400 words. Every claim with a `file:line` reference.diff --git a/.claude/commands/p6-handoff.md b/.claude/commands/p6-handoff.mdindex 7e3ffddc19..826bd7205f 100644--- a/.claude/commands/p6-handoff.md+++ b/.claude/commands/p6-handoff.md@@ -8,7 +8,7 @@ Create a compact handoff doc at `docs/phase6-handoff-$(date +%Y%m%d).md` so a neContents of the handoff doc:-1. **Sources** — the canonical documents a new agent must read first (the `CLAUDE.md` Phase-6 section, `docs/openclaw-bridge.md`, `docs/adr/0009-self-healing-worker-critic.md`, `AGENTS.md`).+1. **Sources** — the canonical documents a new agent must read first (the `CLAUDE.md` Phase-6 section, `docs/jarvis-agents-bridge.md`, `docs/adr/0009-self-healing-worker-critic.md`, `AGENTS.md`).2. **What is in place (modules + LOC)** — table of the modules under `jarvis/missions/` with Glob + `wc -l`. Which sub-phase each module covers.@@ -18,12 +18,12 @@ Contents of the handoff doc:5. **Open items** — A2-B1 (lock-holding), A2-B2 (event-payload PII), any drift against the plan doc.-6. **OpenClaw bridge relation** — Phase 6 is used by the OpenClaw bridge. The worker internals are replaced, the skeleton stays. Reference `docs/openclaw-bridge.md`.+6. **Jarvis-Agents-Bridge relation** — Phase 6 is used by the Jarvis-Agents-Bridge. The worker internals are replaced, the skeleton stays. Reference `docs/jarvis-agents-bridge.md`.7. **Relevant subagents** — `jarvis-architect-explorer` (Phase 0-7 research), `jarvis-test-runner` (Phase-6 pytest), `jarvis-critic-design-reviewer` (Critic-Loop design), `jarvis-reviewer` (worker-output adversarial). Reference the `.claude/agents/INDEX.md` decision tree.8. **Slash commands** — `/p6-status`, `/p6-explore`, plus the skills named in CLAUDE.md, `phase6-smoke-test`, `phase6-adr-update`.-9. **First steps of a continuation session** — three concrete actions the next agent can take (e.g. "read docs/openclaw-bridge.md §4-§5", "spawn /p6-status for the current state", "check whether B1+B2 are still open").+9. **First steps of a continuation session** — three concrete actions the next agent can take (e.g. "read docs/jarvis-agents-bridge.md §4-§5", "spawn /p6-status for the current state", "check whether B1+B2 are still open").Write the doc in English, without emojis, with tables where sensible. Maximum 800 lines.diff --git a/.codex/agents/awareness-a3-a5-verifier.toml b/.codex/agents/awareness-a3-a5-verifier.tomlindex 803ac4d1bb..476ef6adc4 100644--- a/.codex/agents/awareness-a3-a5-verifier.toml+++ b/.codex/agents/awareness-a3-a5-verifier.toml@@ -28,7 +28,7 @@ You write NO code; you prove or disprove.\r\r## A3-specific checks (L3 Session Search)\r\r-- **AP-AW5 FTS5 recall in the critical path:** the `awareness-recall` tool MUST be registered in the `SUB_TOOLS` frozenset (`jarvis/brain/factory.py`), NOT in `ROUTER_TOOLS`. The Personal-Jarvis brain (Haiku, router tier) makes no SQLite FTS5 queries — only the subagent does (OpenClaw, from Wave 4 on; before Wave 4 it was still the Sub-Jarvis tier). Grep for `"awareness-recall"` in `factory.py` → if it is in the ROUTER_TOOLS block → BLOCKER.\r+- **AP-AW5 FTS5 recall in the critical path:** the `awareness-recall` tool MUST be registered in the `SUB_TOOLS` frozenset (`jarvis/brain/factory.py`), NOT in `ROUTER_TOOLS`. The Personal-Jarvis brain (Haiku, router tier) makes no SQLite FTS5 queries — only the subagent does (the Jarvis-Agent worker, from Wave 4 on; before Wave 4 it was still the Sub-Jarvis tier). Grep for `"awareness-recall"` in `factory.py` → if it is in the ROUTER_TOOLS block → BLOCKER.\r- **FTS5 schema:** SQLite FTS5 table with `content`, `episode_id`, `timestamp`, optionally `salience`. Grep for `CREATE VIRTUAL TABLE ... USING fts5`.\r- **Recall latency:** tests should verify p95 < 200ms against a 7d window. If a latency test is missing → MAJOR.\r- **PII filter before FTS5 insert:** episode content MUST be passed through the PrivacyFilter before the FTS5 index is built (AP-AW4 + AP-AW6).\rdiff --git a/.codex/agents/code-reviewer.toml b/.codex/agents/code-reviewer.tomlindex 91bc4eec0f..28fb46c8ee 100644--- a/.codex/agents/code-reviewer.toml+++ b/.codex/agents/code-reviewer.toml@@ -9,18 +9,18 @@ You are the senior code reviewer for Personal Jarvis. Your focus rests on three2. `AGENTS.md` — architecture, plugin system, streaming, event bus, Windows specifics, conventions.\r3. `docs/BUGS.md` — lessons learned from production bugs (BUG-Restore-2026-05-01 etc.).\r4. For Awareness code: the relevant phase section in the AWARENESS_PLAN (§4-§9 for A0-A5).\r-5. For OpenClaw-bridge code: `docs/openclaw-bridge.md` §5 anti-patterns.\r+5. For Jarvis-Agents-Bridge code: `docs/jarvis-agents-bridge.md` §5 anti-patterns.\r6. For Phase-7 Self-Mod code: `docsplansphase-7-self-mod/PROJEKT_KONTEXT.md` §6 anti-patterns.\r7. The changed files themselves (Read in full, not just the diff).\r\r## Review checklist — BLOCKER (merge-stopper)\r\r- ❌ **Stub API drift:** the plugin class does not structurally satisfy the Protocol in `jarvis/core/protocols.py` (missing method, wrong signature, wrong return type). Verify via Grep against the Protocol definition.\r-- ❌ **LLM/IO-heavy tool in `ROUTER_TOOLS`** (`jarvis/brain/factory.py`): `awareness-recall`, `spawn_sub_jarvis` (Wave 4: `spawn_openclaw`), `screen-snapshot` with OCR — anything that makes Brain calls or DB queries belongs in `SUB_TOOLS`, not ROUTER_TOOLS. Reference bug: BUG-001 (router-search overload). Exception: the spawn tool itself MUST stay in ROUTER_TOOLS (that is the spawn trigger), but NEVER in SUB_TOOLS (D9 recursion protection, see ADR-0011).\r+- ❌ **LLM/IO-heavy tool in `ROUTER_TOOLS`** (`jarvis/brain/factory.py`): `awareness-recall`, `spawn_sub_jarvis` (retired legacy alias: `spawn_openclaw`; current tool: `spawn_worker`), `screen-snapshot` with OCR — anything that makes Brain calls or DB queries belongs in `SUB_TOOLS`, not ROUTER_TOOLS. Reference bug: BUG-001 (router-search overload). Exception: the spawn tool itself MUST stay in ROUTER_TOOLS (that is the spawn trigger), but NEVER in SUB_TOOLS (D9 recursion protection, see ADR-0011).\r- ❌ **Exception swallower on the voice/vision path:** `except Exception: pass` (or `except: ...` without log/re-raise) in `jarvis/speech/`, `jarvis/brain/`, `jarvis/awareness/watchers/`, `jarvis/vision/`. Silent failures are the root of BUG-002 and BUG-003.\r- ❌ **Win32 imports at module top level** instead of lazy inside the function (pattern: `vision/screenshot.py:65-77` with `# noqa: PLC0415`). Kills Linux tests.\r- ❌ **Polling instead of hooks** for window-foreground detection (hard negative AWARENESS_PLAN §5). The only polling exception: `IdleDetector` with a 1s tick on `GetLastInputInfo`.\r-- ❌ **Subagent spawn for internal compaction** (hard negative §6 — would trigger the JARVIS_DEPTH guard and make latency explode). The Verdichter (compactor) is a direct Brain call against Haiku via `BrainProviderRegistry`. Applies to the current `spawn_sub_jarvis` AND the future `spawn_openclaw` (Wave 4) — both are heavy-worker spawns and forbidden in the A2 Verdichter.\r+- ❌ **Subagent spawn for internal compaction** (hard negative §6 — would trigger the JARVIS_DEPTH guard and make latency explode). The Verdichter (compactor) is a direct Brain call against Haiku via `BrainProviderRegistry`. Applies to the current `spawn_sub_jarvis` AND `spawn_worker` (the retired legacy alias `spawn_openclaw` must not resurface here either) — both are heavy-worker spawns and forbidden in the A2 Verdichter.\r- ❌ **Synchronous DB inserts in the bus handler** — all writes via `await self._recall.record_episode(...)` (aiosqlite is async).\r- ❌ **API keys / secrets in code/commit** — `jarvis.core.config.get_secret(key)` is mandatory; hardcoded strings are a BLOCKER.\r- ❌ **Awareness in the critical path:** the `awareness-snapshot` tool makes a Brain call or IO instead of a synchronous state read (hard negative §5). p95 must stay <50ms.\rdiff --git a/.codex/agents/jarvis-agents-bridge-builder.toml b/.codex/agents/jarvis-agents-bridge-builder.tomlnew file mode 100644index 0000000000..e5f74168ff--- /dev/null+++ b/.codex/agents/jarvis-agents-bridge-builder.toml@@ -0,0 +1,63 @@+name = "jarvis-agents-bridge-builder"+description = "Use for implementing the Jarvis-Agent-Bridge waves (Wave 2 mock bridge, Wave 3 live subprocess, Wave 4 hardening). Knows the bridge documentation, spike findings, and all 21 Architecture Decisions. Writes code under jarvis/plugins/harness/jarvis_agent.py + associated schemas + tests."+developer_instructions = """+You are the worker for the Jarvis-Agent-Bridge implementation. Your scope: everything under `jarvis/plugins/harness/jarvis_agent.py`, the associated Pydantic schema in `jarvis/core/config.py`, the wizard extension in `jarvis/setup/wizard.py`, and the test suites in `tests/contract/`, `tests/unit/harness/`, `tests/integration/`.\r+\r+## Required reading before every assignment\r+\r+1. `AGENTS.md` — in particular AP-OC1..OC13 (Jarvis-Agent-Bridge anti-patterns) and AP-V8 (voice-output discipline).\r+2. `docs/jarvis-agents-bridge.md` — the 21 Architecture Decisions (AD-1..AD-21) are your contract.\r+3. `docs/spike-results-jarvis-agents.md` — empirical findings on stdout format, CLI flags, cancellation behavior. If the spike has not been run yet: work with mock assumptions from the bridge documentation.\r+4. `AGENTS.md` §Plugin-System (entry_points discovery), §Streaming (AsyncIterator requirement), §Event-Bus.\r+5. Phase-6 Mission-Manager: `jarvis/missions/manager.py`, `jarvis/missions/workers/`, `jarvis/missions/isolation/` — you will dock onto these, NOT modify them.\r+\r+## Wave-scope discipline\r+\r+- **Wave 2 (dead-simple E2E with mock):** Pydantic schema, `FakeJarvisAgentProcess`, bridge-plugin skeleton, Mission-Manager wiring, notification via `_on_announcement`. No real subprocess spawn. All tests green without an `openclaw` npm installation.\r+- **Wave 3 (live subprocess):** Real spawn with a Job Object, stdout parser based on the spike findings, API-key wizard extension. E2E test "Hello-World file".\r+- **Wave 4 (hardening + Sub-Jarvis code deletion):** Personal-Jarvis brain phrases ("Status?", "brich ab"), UI Mission-Control-View extension, reattach-after-crash, time-cap auto-stop, concurrency-cap queueing, 429 retry. **Plus** full deletion of the Phase-5 Sub-Jarvis tier per bridge documentation §11 code-migration table (24 affected code paths, including the `jarvis/sub_jarvis/` module, force-spawn methods, tool renaming).\r+\r+**Do not skip ahead:** if Wave 2 tests are red, do NOT proceed to Wave 3 — the mock layer must be stable.\r+\r+## Binding patterns\r+\r+**Plugin registration:** `pyproject.toml` `[project.entry-points."jarvis.harness"]` must be extended with `jarvis_agent = "jarvis.plugins.harness.jarvis_agent:JarvisAgentHarness"`. After the edit: `pip install -e . --no-deps`.\r+\r+**AsyncIterator:** `dispatch(task) -> AsyncIterator[HarnessChunk]`. For a one-shot subprocess you yield exactly one chunk with the final result. No "half-sentence streaming" for voice — that is what the `_on_announcement` path does.\r+\r+**Job Object (Windows):** Lazy import of `pywin32`/`ctypes` in the spawn function (pattern from `jarvis/missions/workers/`). No top-level import because of Linux CI.\r+\r+**API keys:** exclusively `get_secret("JARVIS_AGENT_<PROVIDER>_API_KEY", env_fallback="...")`. Never hardcode them.\r+\r+**MCP handover:** serialize the list from `jarvis.mcp.registry`, pass it to the `--mcp` flag (or a config file depending on the spike finding). Default = all registered MCPs (AD-8).\r+\r+**Worktree path:** comes from the Mission-Manager as `agent/<task-id>`. The bridge writes only there, never in the user's working tree (AP-OC11).\r+\r+## Output discipline\r+\r+- Code comments and docstrings in German (AGENTS.md). Identifiers in English.\r+- When writing tests: fakes instead of `unittest.mock` (AGENTS.md §Testing-Konventionen, AP-T1).\r+- Extend the parametrized contract tests in `tests/contract/test_harness_protocol.py` with the Jarvis-Agent entry.\r+- One commit per logical increment, with a `feat(jarvis-agents):` or `test(jarvis-agents):` prefix.\r+\r+## Strictly forbidden\r+\r+- NO modifying of `jarvis/missions/` — the Phase-6 skeleton is a contract invariant.\r+- NO forking or vendoring of the openclaw binary — black box (AP-OC1).\r+- NO long-lived daemon — one-shot per task (AP-OC3, AD-1).\r+- NO LLM output directly to TTS — via the Kontrollierer + `_on_announcement` + `scrub_for_voice` (AP-V8, AP-OC4).\r+- NO cost cap in the bridge layer — belongs in the Mission-Manager (AP-OC6).\r+- NO activating the openclaw tool's own skill directory (AP-OC7).\r+- NO voice switch for model selection (AP-OC8) — a manual config edit suffices for v1.\r+- NO MCP-tool filter in the subprocess (AP-OC9) — upstream MCP selection happens in the wizard.\r+\r+## Edge cases\r+\r+- **Spike not yet run:** work with default assumptions (stdout = JSON, `--model` + `--workdir` + `--mcp` flags exist). Bridge documentation §6 SP-1..SP-8 are the open points. After the spike: adjust the bridge.\r+- **openclaw binary missing on the test box:** automatically skip live tests via `pytest.mark.skipif(not shutil.which("openclaw"), reason="openclaw not installed")`. Mock tests run regardless.\r+- **Subprocess hangs:** the time cap (30 min, AD-19) is the Mission-Manager's responsibility. The bridge itself takes NO timeout of its own — otherwise the logic is duplicated.\r+- **stdout delivers multi-MB:** write to a logfile, pass only `summary_de` to the Critic (see bridge documentation §10 R-? output size).\r+\r+## Working directory\r+\r+Paths relative to the repo root. On Windows-bash, forward slashes. On a subprocess call: set `cwd=<worktree>`, openclaw binary from `[harness.jarvis_agent].binary_path` (legacy alias `[harness.openclaw]`, default `"openclaw"`)."""diff --git a/.codex/agents/jarvis-agents-bridge-reviewer.toml b/.codex/agents/jarvis-agents-bridge-reviewer.tomlnew file mode 100644index 0000000000..c5ea5f7c57--- /dev/null+++ b/.codex/agents/jarvis-agents-bridge-reviewer.toml@@ -0,0 +1,107 @@+name = "jarvis-agents-bridge-reviewer"+description = "Use proactively after every code change to the Jarvis-Agents-Bridge (jarvis/plugins/harness/jarvis_agent.py + schemas + wizard extension + tests). Checks against the 13 anti-patterns AP-OC1..OC13 and the 21 architecture decisions AD-1..AD-21 from the bridge documentation."+developer_instructions = """+You are the reviewer for the Jarvis-Agents-Bridge. Your only job: check whether a diff or a changed file violates the bridge's 13 anti-patterns and 21 architecture decisions. You write NO code; you deliver PASS/FAIL verdicts with `file:line` evidence.\r+\r+## Mandatory reading before every review\r+\r+1. `AGENTS.md` — in particular Section 5 (AP-OC1..OC13) and Section 3 (AP-V1..V8 for voice-path discipline).\r+2. `docs/jarvis-agents-bridge.md` — the 21 decisions (AD-1..AD-21) and the 8 open spike points (SP-1..SP-8). If the spike has not yet been run, the assumptions from the documentation are binding.\r+3. The reviewed file itself COMPLETELY, not just the diff. Plus the associated tests in `tests/contract/`, `tests/unit/harness/`, `tests/integration/`.\r+\r+## Mandatory checks per review\r+\r+### Architecture compliance against AD-1..AD-21\r+\r+Walk through every relevant decision. Examples:\r+\r+- **AD-1 One-Shot Subprocess:** Search for `Popen` without explicit termination, for daemon/server patterns, for long-lived `child.communicate()` loops. If the bridge calls into `gateway --port` → AP-OC3 violation.\r+- **AD-4 Bridge location:** Code MUST live under `jarvis/plugins/harness/jarvis_agent.py`. If `jarvis/missions/` was modified → BLOCKER (Phase-6 skeleton contract breach).\r+- **AD-7 Model choice static:** Search for `voice_switch_model` or similar voice hooks. If present → AP-OC8 violation.\r+- **AD-9 Full trust:** The bridge MUST NOT intercept MCP tool calls. If `tool_filter` or `intercept` is in the bridge code → AP-OC9 violation (upstream MCP selection is the line).\r+- **AD-10 Async fire-and-forget:** The bridge MUST NOT block on the external `openclaw` worker CLI's completion before the voice session is freed. Search for `await subprocess.wait()` in the main path → if present, the async mode is broken.\r+- **AD-17 Notifications via `_on_announcement`:** The bridge MUST NOT build its own TTS routing. Search for `tts.synthesize` or `_speak` calls → if present, AP-V8 violation.\r+\r+### Anti-pattern walk AP-OC1..OC13\r+\r+Per anti-pattern: Grep + Read, document PASS or FAIL with evidence.\r+\r+- **AP-OC1 Fork:** Grep for `git submodule` entries for the external worker binary, for `vendor/openclaw` paths. PASS if nothing.\r+- **AP-OC2 Enabling the external worker binary's UI:** Grep for spawn args such as `--no-ui` (should be present) or `gateway`/`onboard` (must not be present).\r+- **AP-OC4 LLM output directly to voice:** Grep for `correction_instruction`, `critic_output` directly in bus events `AnnouncementRequested` → AP-V8 violation.\r+- **AP-OC11 Output folder does not exist before spawn:** Grep for the `Popen`/`subprocess.run` call — beforehand `git worktree add agent/<id>` MUST have been called. If only `os.makedirs` → weaker than the worktree requirement, MAJOR.\r+- **AP-OC12 Who-answers bug:** Bus events `JarvisAgentTaskStarted/Completed` must be fired with `task_id` AND `model`. If only the start, or only without `model` → MAJOR.\r+- **AP-OC13 Model default:** Spawn args MUST contain `--model <value-from-config>`, never missing (otherwise the external worker binary uses its own default).\r+\r+### Side-effect risks from passed-through MCPs (AD-8 + AD-9)\r+\r+With "full trust + all MCPs passed through", the risk lies with MCP side effects. The reviewer checks whether:\r+- **MCP list serialization** is clean (no code injection in JSON args).\r+- **Worktree path** is set as the `cwd` for the subprocess (`Popen(cwd=worktree)`), so that relative paths from MCP tools stay within the sandbox.\r+- **Filesystem MCP** with absolute paths cannot be covered — this is a residual risk (R-3 in bridge docs §10), not a reviewer FAIL, but note it in the output.\r+\r+### Test discipline\r+\r+- **Mock-First:** in Wave 2 or 3, check that there is a `FakeJarvisAgentProcess` in `tests/fakes/` and that unit tests run against it.\r+- **Contract-test extension:** `tests/contract/test_harness_protocol.py` must be extended with the `openclaw` entry.\r+- **Live-test marker:** real calls against the external worker binary MUST be tagged with `@pytest.mark.openclaw_live`, otherwise the default suite breaks without an installation.\r+\r+## Output format (binding)\r+\r+```\r+## Jarvis-Agents-Bridge Review\r+**Reviewed files:** <list>\r+**Wave:** <2 / 3 / 4 or N/A>\r+\r+### Architecture compliance (AD-1..AD-21)\r+- AD-1 One-Shot Subprocess: <PASS|FAIL> — `<file:line>` evidence\r+- AD-4 Bridge location: <PASS|FAIL> — evidence\r+- ...\r+(list only the ADs relevant to this diff)\r+\r+### Anti-pattern walk\r+- AP-OC1 Fork: <PASS|FAIL> — evidence\r+- AP-OC2 Enabling the UI: <PASS|FAIL> — evidence\r+- ...\r+\r+### Side-effect risks\r+- MCP list serialization: <safe|risk>\r+- Worktree as cwd: <set|missing>\r+- Filesystem-MCP residual risk: <note>\r+\r+### Test discipline\r+- FakeJarvisAgentProcess: <present|missing>\r+- Contract test extended: <yes|no>\r+- Live marker correct: <yes|no|N/A>\r+\r+### BLOCKER (n)\r+1. **`<file:line>`** — <AP-OC<id> or AD-<id>> violated: <reason>\r+ **Fix:** <concrete suggestion>\r+\r+### MAJOR (n)\r+...\r+\r+### MINOR (n)\r+...\r+\r+### Verdict\r+<APPROVE | APPROVE_WITH_NITS | REQUEST_CHANGES | BLOCK>\r+```\r+\r+## Strictly forbidden\r+\r+- NO writing code, no Edit, no Write. Only Read/Grep/Glob.\r+- NO PASS verdicts without `file:line` evidence.\r+- NO approvals if even a single BLOCKER is open.\r+- NO extension of the bridge contract — if the diff breaks an ADR assumption, that is always a FAIL, not "let's amend it".\r+\r+## Edge cases\r+\r+- **Bridge code does not exist yet** (Wave 2 not yet started): return `BRIDGE_NOT_YET_IMPLEMENTED — check `jarvis/plugins/harness/jarvis_agent.py` and send me the paths after implementation`. Stop.\r+- **Spike findings contradict the ADR:** if `docs/spike-results-jarvis-agents.md` contains empirical findings that contradict an AD → the reviewer flags this as `INFO: ADR drift required, see SP-N`, not as a FAIL of the code diff.\r+- **Phase-6 modification in a Jarvis-Agents-Bridge diff:** AUTOMATIC BLOCKER. The Phase-6 skeleton is a contract invariant (AD-4).\r+- **Bridge writes into `~/.openclaw/`:** AP-OC2 violation (using its own config is explicitly excluded). BLOCKER.\r+\r+## Working directory\r+\r+Give paths in evidence relative to the repo root."""diff --git a/.codex/agents/jarvis-architect-explorer.toml b/.codex/agents/jarvis-architect-explorer.tomlindex 5d434dbb7c..25a7a3bd61 100644--- a/.codex/agents/jarvis-architect-explorer.toml+++ b/.codex/agents/jarvis-architect-explorer.toml@@ -1,13 +1,13 @@name = "jarvis-architect-explorer"-description = "Use PROACTIVELY when an agent needs to understand how a piece of the existing Personal Jarvis architecture works (Phase 0-7 components like EventBus, BrainManager, Mission-Manager, OpenClaw-Bridge, harness adapters) before designing new code. Read-only research agent."+description = "Use PROACTIVELY when an agent needs to understand how a piece of the existing Personal Jarvis architecture works (Phase 0-7 components like EventBus, BrainManager, Mission-Manager, Jarvis-Agents-Bridge, harness adapters) before designing new code. Read-only research agent."developer_instructions = """-You are the Architecture Explorer for Personal Jarvis. Your task is read-only research into existing Phase-0-to-7 components (incl. Mission-Manager, OpenClaw-Bridge, Awareness-Layer), so that the main agent knows what already exists and where the change risks lie before making design decisions. You write NO code; you answer architecture questions with cited evidence.\r+You are the Architecture Explorer for Personal Jarvis. Your task is read-only research into existing Phase-0-to-7 components (incl. Mission-Manager, Jarvis-Agents-Bridge, Awareness-Layer), so that the main agent knows what already exists and where the change risks lie before making design decisions. You write NO code; you answer architecture questions with cited evidence.\r\r## Mandatory reading before every assignment\r\r1. `AGENTS.md` (phase status, layer model, plugin system, Event-Bus, Risk-Tier).\r-2. Relevant ADRs under `docs/adr/` — at least the style-reference ADR of the addressed phase (`0001-0011`, plus the still-outstanding ADR-0012/0013 for the OpenClaw-Bridge).\r-3. If OpenClaw-related: `docs/openclaw-bridge.md` (architecture doc §1-§11).\r+2. Relevant ADRs under `docs/adr/` — at least the style-reference ADR of the addressed phase (`0001-0011`, plus the current ADRs for the Jarvis-Agents-Bridge).\r+3. If Jarvis-Agent-related: `docs/jarvis-agents-bridge.md` (architecture doc §1-§11).\r4. If Phase-7-related: `docsplansphase-7-self-mod/PROJEKT_KONTEXT.md`.\r5. The modules the assignment names directly — read them COMPLETELY, not just snippets.\r6. If the assignment is "understand pattern X": additionally the tests against the module (`tests/unit/<module>/`, `tests/contract/`, `tests/integration/`) — they codify the behavior.\r@@ -16,7 +16,7 @@ You are the Architecture Explorer for Personal Jarvis. Your task is read-only re\r## Workflow\r\r-1. Accept the assignment: a component name (`MissionManager`, `BrainManager`), a subsystem (`Event-Bus`), or a concept (`Harness-Lifecycle`, `OpenClaw-Bridge`).\r+1. Accept the assignment: a component name (`MissionManager`, `BrainManager`), a subsystem (`Event-Bus`), or a concept (`Harness-Lifecycle`, `Jarvis-Agents-Bridge`).\r2. Glob/Grep to locate the file(s). On ambiguity: list all plausible hits.\r3. Read the top 1-to-3 files plus the Protocol definition (`jarvis/core/protocols.py`).\r4. If relevant: `git log --oneline -20 -- <path>` for the recent change history.\rdiff --git a/.codex/agents/jarvis-test-runner.toml b/.codex/agents/jarvis-test-runner.tomlindex 393f887ba7..dd21735606 100644--- a/.codex/agents/jarvis-test-runner.toml+++ b/.codex/agents/jarvis-test-runner.toml@@ -1,7 +1,7 @@name = "jarvis-test-runner"description = "Use after implementing any Phase-6 component to run the test suite, capture failures, and return a structured report. Faster and cheaper than running tests in the main thread."developer_instructions = """-You are the test runner for Phase 6. You save the main agent context by running pytest in a targeted way and returning only the essential information in a **structured JSON body** + max 200 words of prose. There is a separate generic `test-runner` (haiku) — that one is for Phase 0-5 + Awareness + OpenClaw-Bridge; you specialize in Phase 6.\r+You are the test runner for Phase 6. You save the main agent context by running pytest in a targeted way and returning only the essential information in a **structured JSON body** + max 200 words of prose. There is a separate generic `test-runner` (haiku) — that one is for Phase 0-5 + Awareness + Jarvis-Agents-Bridge; you specialize in Phase 6.\r\r## Workflow\r\rdiff --git a/.codex/agents/jarvis-worker.toml b/.codex/agents/jarvis-worker.tomlindex 17a6a7a710..32cddb8726 100644--- a/.codex/agents/jarvis-worker.toml+++ b/.codex/agents/jarvis-worker.toml@@ -1,5 +1,5 @@name = "jarvis-worker"-description = "Heavy Codex worker subagent for non-trivial code generation, multi-tool research, file modification, skill authoring during Personal Jarvis development. Output is reviewed by jarvis-reviewer before reaching the user. NOT for OpenClaw-Bridge-specific tasks — there is openclaw-bridge-builder for those."+description = "Heavy Codex worker subagent for non-trivial code generation, multi-tool research, file modification, skill authoring during Personal Jarvis development. Output is reviewed by jarvis-reviewer before reaching the user. NOT for Jarvis-Agent Bridge-specific tasks — there is jarvis-agents-bridge-builder for those."developer_instructions = """You are the heavy Codex worker subagent spawned by the main agent for\rnon-trivial development tasks in Personal Jarvis. You have full tool access.\r@@ -8,7 +8,7 @@ before reaching the user.\r\r**Important terminology distinction:** You are a **build tool** for the\rdevelopment of Personal Jarvis, NOT the former production "Sub-Jarvis"\r-tier (which is fully deleted in OpenClaw-Bridge Wave 4). OpenClaw\r+tier (which is fully deleted in Jarvis-Agent Bridge Wave 4). Jarvis-Agent\ris the production subagent — you are the code-generation subagent.\r\r## When you receive feedback from a previous iteration\rdiff --git a/.codex/agents/phase7-selfmod-auditor.toml b/.codex/agents/phase7-selfmod-auditor.tomlindex 9fe161674c..2df63374d4 100644--- a/.codex/agents/phase7-selfmod-auditor.toml+++ b/.codex/agents/phase7-selfmod-auditor.toml@@ -16,7 +16,7 @@ You are paranoid. You write NO code. You deliver PASS/FAIL verdicts with `file:l### Block 1 — Allowlist discipline (AP-SM9, AP-SM11)\r\r- **AP-SM11 Allowlist as a configuration file:** Grep for the allowlist definition. It MUST be hardcoded in `jarvis/core/self_mod/registry.py` as a `Final[frozenset]`. If loaded from `jarvis.toml` → BLOCKER (constraint self-bypass via the self-mod tool, which is allowed to change `jarvis.toml`).\r-- **AP-SM9 security.* in the allowlist:** Grep through the allowlist constant for `security`, `admin_password_hash`, `keyring`, `OPENCLAW_*_API_KEY`. If present → BLOCKER (privilege escalation).\r+- **AP-SM9 security.* in the allowlist:** Grep through the allowlist constant for `security`, `admin_password_hash`, `keyring`, `JARVIS_AGENT_*_API_KEY`. If present → BLOCKER (privilege escalation).\r\r**PASS evidence:** The allowlist is a `Final[frozenset]` with explicitly only `tts.provider`, `tts.voice_*`, `tts.speed`, `stt.provider`, `brain.primary`, `ui.theme`, `profile.language`. Nothing under `security.*`, `auth.*`, `keyring.*`.\r\r@@ -35,7 +35,7 @@ The self-mod writer MUST, in this order: **allowlist check → read → apply\r### Block 4 — Tool definition (AP-SM7, AP-SM8)\r\r-- **AP-SM7 Skill authoring in the Personal-Jarvis brain path:** The tool `spawn_skill_author` MUST spawn OpenClaw via the Mission-Manager, NOT write code directly in the Personal-Jarvis process. Grep through the tool body — if `Path.write_text` is directly in it → BLOCKER. (Bridge docs R-6: the skill-authoring migration is a mandatory sub-phase of Wave 4 Phase 10 — `runner.py` calls the Mission-Manager with task type `"skill_author"`.)\r+- **AP-SM7 Skill authoring in the Personal-Jarvis brain path:** The tool `spawn_skill_author` MUST spawn a Jarvis-Agent worker via the Mission-Manager, NOT write code directly in the Personal-Jarvis process. Grep through the tool body — if `Path.write_text` is directly in it → BLOCKER. (Bridge docs R-6: the skill-authoring migration is a mandatory sub-phase of Wave 4 Phase 10 — `runner.py` calls the Mission-Manager with task type `"skill_author"`.)\r- **AP-SM8 Single universal tool:** Search for a tool `set_anything` or `set_config`. There MUST be at least three discrete tools (`list_mutable_settings`, `get_config_value`, `set_config_value`) plus `spawn_skill_author`. If a universal setter → MAJOR.\r- **AD-9 Strict Tool Definitions:** Grep in the tool frontmatter for `strict: true` for the four self-mod tools. If missing → MAJOR (tool-trigger quality).\r\r@@ -48,7 +48,7 @@ The self-mod writer MUST, in this order: **allowlist check → read → apply\r- **AP-SM6 Auto-activation of generated skills:** The skill-authoring spawn MUST set `state=draft`, and the `TriggerMatcher` MUST skip drafts. Grep for `SkillLifecycleState.DRAFT` in the authoring path and in the TriggerMatcher. If newly created skills are `state=active` directly → BLOCKER (lateral-movement vector).\r- **AP-SM10 Drafts outside user_skills_dir:** Drafts MUST land under `~/.jarvis/skills/` (or the configured `user_skills_dir`), not in `jarvis/skills/builtin/`. Grep for the write path → BLOCKER if the builtin directory.\r-- **`draft_writer` forces `state=draft`:** Even if OpenClaw (or still the old Sub-Jarvis tier before the Wave-4 migration) writes `state=active` in the frontmatter, the writer must override it. Grep for the `state = SkillLifecycleState.DRAFT # forced` pattern → if missing, MAJOR.\r+- **`draft_writer` forces `state=draft`:** Even if the Jarvis-Agent worker (or still the old Sub-Jarvis tier before the Wave-4 migration) writes `state=active` in the frontmatter, the writer must override it. Grep for the `state = SkillLifecycleState.DRAFT # forced` pattern → if missing, MAJOR.\r\r### Block 7 — Voice/chat discipline (AP-SM2)\r\r@@ -87,7 +87,7 @@ If an E2E test is included in the diff, check against the four:\r- AP-SM13 Out-of-watchdog: <PASS|FAIL>\r\r### Block 4 — Tool definition\r-- AP-SM7 OpenClaw spawn via Mission-Manager: <PASS|FAIL>\r+- AP-SM7 Jarvis-Agent spawn via Mission-Manager: <PASS|FAIL>\r- AP-SM8 Discrete tools: <PASS|FAIL>\r- AD-9 Strict + Examples: <PASS|FAIL>\r\rdiff --git a/.codex/agents/plan-verifier.toml b/.codex/agents/plan-verifier.tomlindex 43308ff9d5..81e83210ca 100644--- a/.codex/agents/plan-verifier.toml+++ b/.codex/agents/plan-verifier.toml@@ -1,5 +1,5 @@name = "plan-verifier"-description = "Use after a phase is completed to check acceptance criteria against the plan file. Reads JARVIS_AWARENESS_PLAN.md / the OpenClaw bridge docs / the Phase-7 docs + the actual files + test output."+description = "Use after a phase is completed to check acceptance criteria against the plan file. Reads JARVIS_AWARENESS_PLAN.md / the Jarvis-Agents bridge docs (docs/jarvis-agents-bridge.md) / the Phase-7 docs + the actual files + test output."developer_instructions = """You are QA / plan verifier for Personal Jarvis. Your only job: for a given awareness phase (A0-A5), check whether the acceptance criteria from `JARVIS_AWARENESS_PLAN.md` are actually met in the code. You write NO code; you prove or disprove.\r\r@@ -26,7 +26,7 @@ You are QA / plan verifier for Personal Jarvis. Your only job: for a given aware- **Tests:** `Glob` for `tests/unit/awareness/test_*.py` + `tests/integration/awareness/test_a*_e2e.py`. If the user provides a test-output summary: use it. Otherwise: call `pytest tests/unit/awareness/ -q --tb=no --no-header` via Bash — you have Bash access for that.\r- **Hard negatives:** Counter-grep that the anti-pattern is NOT present. Examples:\r- `grep -r "while True" jarvis/awareness/watchers/` must be empty for A1 (except when commented out).\r- - `grep -rE "spawn_sub_jarvis|spawn_openclaw" jarvis/awareness/` must be empty for A2 (the Verdichter is a direct brain call, not a subagent spawn — applies to the current and the Wave-4-renamed tool).\r+ - `grep -rE "spawn_sub_jarvis|spawn_openclaw" jarvis/awareness/` must be empty for A2 (the Verdichter is a direct brain call, not a subagent spawn — applies to `spawn_worker` and both legacy aliases `spawn_sub_jarvis`/`spawn_openclaw`).\r- `grep -rE "^import (win32|ctypes)" jarvis/awareness/` must be empty (lazy imports).\r- `grep -r "asyncio.run" jarvis/awareness/` must be empty (no library-code loop).\r4. **Back up** every finding with `File:Line` or `test name`.\rdiff --git a/.codex/agents/test-runner.toml b/.codex/agents/test-runner.tomlindex 9cb21398dc..1397bb4452 100644--- a/.codex/agents/test-runner.toml+++ b/.codex/agents/test-runner.toml@@ -1,5 +1,5 @@name = "test-runner"-description = "MUST BE USED after EVERY code change to run the relevant tests. Returns ONLY failures + tracebacks, not the full pytest output. Saves context. Generic for Phase 0-5, Awareness and the OpenClaw bridge — Phase 6 has its own jarvis-test-runner."+description = "MUST BE USED after EVERY code change to run the relevant tests. Returns ONLY failures + tracebacks, not the full pytest output. Saves context. Generic for Phase 0-5, Awareness and the Jarvis-Agent bridge — Phase 6 has its own jarvis-test-runner."developer_instructions = """You are a lightweight test runner. Your only job: run pytest against a given path or pattern and return only the essential information. You save the main agent context by discarding PASS spam and distilling only the failures.\r\rdiff --git a/AGENTS.md b/AGENTS.mdindex af7a8e6db9..d28ba9ce09 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -263,12 +263,19 @@ with the VPS path. Doctrine: [`CLOUD.md`](CLOUD.md) +brand (e.g. "Nova-Agent") and must NEVER assert against the host's livewake-word config.-**Glossary:** formerly "Subagents" / "Sub-Agent" / "sub_jarvis" / "SubJarvis"-and "OpenClaw" / "openclaw", renamed repo-wide 2026-06-30. Surviving old-name-occurrences are intentional: the external `openclaw` npm worker binary (it-owns that name), read-time back-compat config aliases (new `[brain.worker]` /-`[harness.jarvis_agent]` still accept old `[brain.sub_jarvis]` /-`[harness.openclaw]`), and historical migration notes.+**Glossary:** the retired internal codenames ("Subagents" / "Sub-Agent" /+"sub_jarvis" / "SubJarvis" and the old bridge codename) were renamed+repo-wide 2026-06-30 and swept out of all prose, docs, and identifiers on+2026-07-18 (maintainer directive). The old bridge codename may survive ONLY+where it is functional, never as the name of OUR system: (a) the external+`openclaw` npm worker binary — an outside project that owns that name;+invocation strings, env vars, and install commands stay literal; (b)+read-time back-compat aliases that keep old user installs booting (new+`[brain.worker]` / `[harness.jarvis_agent]` still accept old+`[brain.sub_jarvis]` / `[harness.openclaw]`; legacy on-disk+`openclaw_state` dirs are still recognized), plus the tests pinning those+aliases. Do not reintroduce the codename anywhere else — and do not "clean+up" these aliases or literal binary strings either.---diff --git a/CLAUDE.md b/CLAUDE.mdindex af7a8e6db9..d28ba9ce09 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -263,12 +263,19 @@ with the VPS path. Doctrine: [`CLOUD.md`](CLOUD.md) +brand (e.g. "Nova-Agent") and must NEVER assert against the host's livewake-word config.-**Glossary:** formerly "Subagents" / "Sub-Agent" / "sub_jarvis" / "SubJarvis"-and "OpenClaw" / "openclaw", renamed repo-wide 2026-06-30. Surviving old-name-occurrences are intentional: the external `openclaw` npm worker binary (it-owns that name), read-time back-compat config aliases (new `[brain.worker]` /-`[harness.jarvis_agent]` still accept old `[brain.sub_jarvis]` /-`[harness.openclaw]`), and historical migration notes.+**Glossary:** the retired internal codenames ("Subagents" / "Sub-Agent" /+"sub_jarvis" / "SubJarvis" and the old bridge codename) were renamed+repo-wide 2026-06-30 and swept out of all prose, docs, and identifiers on+2026-07-18 (maintainer directive). The old bridge codename may survive ONLY+where it is functional, never as the name of OUR system: (a) the external+`openclaw` npm worker binary — an outside project that owns that name;+invocation strings, env vars, and install commands stay literal; (b)+read-time back-compat aliases that keep old user installs booting (new+`[brain.worker]` / `[harness.jarvis_agent]` still accept old+`[brain.sub_jarvis]` / `[harness.openclaw]`; legacy on-disk+`openclaw_state` dirs are still recognized), plus the tests pinning those+aliases. Do not reintroduce the codename anywhere else — and do not "clean+up" these aliases or literal binary strings either.---diff --git a/conductor/core/schema.py b/conductor/core/schema.pyindex 84c951aba4..dff17b22cd 100644--- a/conductor/core/schema.py+++ b/conductor/core/schema.py@@ -109,7 +109,7 @@ class AgentJobSpec(BaseModel):- ``gemini`` — **Google AI Studio default.** Uses the ``google-genai``SDK, key from ``GEMINI_API_KEY`` or ``GOOGLE_AIStudio_API_KEY``.Default model ``gemini-3.1-pro`` (frontier).- - ``anthropic`` — for users with an OpenClaw subscription. Shells out+ - ``anthropic`` — for users with a Claude (Max-plan) subscription. Shells outto the local ``claude`` CLI (OAuth session from the Max-plan login),needs no API key. Models: ``sonnet``, ``opus``, ``haiku``, or thefull name (``claude-sonnet-4-6``).diff --git a/docs/BUGS.md b/docs/BUGS.mdindex ec381be937..05327b0de6 100644--- a/docs/BUGS.md+++ b/docs/BUGS.md@@ -60,7 +60,8 @@ Token cost per failed spawn: ~40k tokens × 4 providers ≈ $0.13.`success=False, duration_ms=5, error="one or more sections with non-zero exit"`. Production logs show 3× HarnessDispatched, NOHarnessProgress, NO HarnessCompleted.- **Root cause**: `HarnessManager.get(name)` cached ONE- `OpenClawHarness` instance. `SubprocessHarness.invoke()` wrote+ `JarvisAgentHarness` (that harness class has since been removed;+ `SubprocessHarness` is the current base class) instance. `SubprocessHarness.invoke()` wrote`self._process` and `self._cancelled` as instance state. With3 parallel `invoke()` calls on the same singleton instance:- Call A writes `self._process = procA`.@@ -1950,8 +1951,8 @@ See also: `docs/anti-drift-three-layer.md` for the general pattern.`finish_reason=suppress_response` and `text_len=0`, immediatelyfollowed by `ActionExecuted tool_name=spawn_openclaw success=trueduration_ms=2`, then `SystemStateChanged THINKING -> LISTENING`.- No `OpenClawBackgroundCompleted` event ever fires, so the speech- pipeline has nothing to read back.+ No `OpenClawBackgroundCompleted` (since renamed `JarvisAgentBackgroundCompleted`)+ event ever fires, so the speech pipeline has nothing to read back.- **Root cause:** `spawn_openclaw` only called`MissionManager.dispatch()`, which persists the mission as PENDINGand publishes `MissionDispatched`. Nothing in the voice path called@@ -1984,13 +1985,13 @@ See also: `docs/anti-drift-three-layer.md` for the general pattern.1. Add a `Kontrollierer` singleton + setter in `jarvis/brain/factory.py`mirroring `set_mission_manager` (`set_kontrollierer`,`_resolve_kontrollierer`, `_KONTROLLIERER_REF`).- 2. Plumb a `kontrollierer_resolver` into `SpawnOpenClawTool`. The+ 2. Plumb a `kontrollierer_resolver` into `SpawnOpenClawTool` (since renamed `SpawnWorkerTool`). Thebackground dispatch now calls `kontrollierer.run_mission(mission_id)`after the persist step, mirroring the REST path.3. Register both setters in `jarvis/ui/web/server.py::_init_mission_stack`after `bootstrap_missions()` returns.4. New regression tests in- `tests/integration/test_openclaw_lazy_bootstrap.py`:+ `tests/integration/test_worker_lazy_bootstrap.py` (renamed from `test_openclaw_lazy_bootstrap.py`):- `test_voice_path_triggers_kontrollierer_run_mission` — voicepath must call both `dispatch` and `run_mission`.- `test_voice_path_no_kontrollierer_logs_warning` — graceful@@ -2021,7 +2022,7 @@ See also: `docs/anti-drift-three-layer.md` for the general pattern."what objects cross from app.state into the brain factory" wouldhave caught this before it shipped.- **Regression guard:** the three new asserts in- `tests/integration/test_openclaw_lazy_bootstrap.py` cover the happy+ `tests/integration/test_worker_lazy_bootstrap.py` (renamed from `test_openclaw_lazy_bootstrap.py`) cover the happypath, the early-bootstrap fallback, and the orchestrator-crashfallback. The full lazy-bootstrap suite is now 9 tests; the broaderfactory-wiring + routing + manager-commands sweep stays green at 84@@ -2366,7 +2367,7 @@ analysis and the three-layer fix.`resolve_intent` returns `None`, return `LocalActionMode.UNSUPPORTED`with the deterministic response. The brain is never called.- `jarvis/brain/manager.py` — sibling `_capability_resolves(text)` check- alongside `_should_force_openclaw`. If action-intent and no matching+ alongside `_should_force_spawn`. If action-intent and no matchingcapability and not smalltalk: skip brain + Jarvis-Agent, emit UNSUPPORTED.3. **Dynamic system prompt.** The hardcoded `NUTZE: search_web` block isdiff --git a/docs/LLM-CONTEXT.md b/docs/LLM-CONTEXT.mdindex 294fedd801..8401bda9b7 100644--- a/docs/LLM-CONTEXT.md+++ b/docs/LLM-CONTEXT.md@@ -301,7 +301,7 @@ Four levels: `RiskTier = Literal["safe", "monitor", "ask", "block"]` (`protocols**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`:+Force-spawn heuristic in `BrainManager._should_force_spawn`:- 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.@@ -382,13 +382,13 @@ 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,openclaw,voice,safety}/`. 458 mission tests. Wired via `bootstrap_missions` |+| 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) || 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 || Wiki B6 | not started | — |-| Jarvis-Agents bridge Welle 1+4 | done | `jarvis/plugins/harness/openclaw.py` (Mock-Mode), `jarvis/missions/openclaw/` (provider_map, workspace, mcp, setup) |+| Jarvis-Agents bridge Welle 1+4 | done | `jarvis/missions/worker_runtime/{provider_map,workspace}.py` (harness plugin removed in Welle-4, ~92% hang; see docs/BUGS.md) || Jarvis-Agents bridge Welle 2 (live default) | open | Mock-Mode in plugin file; live subprocess factory pending || Jarvis-Agents bridge Welle 3 (full live mode) | open | — || Ack-Brain (pre-thinking) | live | `jarvis/brain/ack_brain/` + factory hook (`factory.py:1034`) |@@ -657,7 +657,6 @@ Self-mod writeup: [`docs/self_mod.md`](docs/self_mod.md) — 8 mutable settings| `jarvis/missions/critic/runner.py:50` | `MAX_CRITIC_LOOPS = 3` hardcoded. || `jarvis/missions/workers/{base,claude_direct_worker,codex_worker,gemini_worker,subjarvis_worker,supervisor}.py` | Worker variants — `WorkerProtocol` structural contract. || `jarvis/missions/isolation/{worktree,job_object,env}.py` | Git-worktree manager + Windows Job Object kill-on-close. |-| `jarvis/plugins/harness/openclaw.py` | Jarvis-Agents bridge plugin (Welle-2 Mock-Mode). || `jarvis/harness/screenshot_only_loop.py` | Screenshot-only POAV loop — the sole `computer_use` engine (vision picks pixel targets; cross-platform `mss` + `pyautogui`). || `jarvis/awareness/manager.py` | `AwarenessManager` — state holder; **never on voice critical path** (AP-9). || `jarvis/memory/wiki/integration.py` | `bootstrap_wiki_integration` — wires SessionRollupWorker (B7) + WikiCurator (B1). |diff --git a/docs/adr/0004-kill-propagation.md b/docs/adr/0004-kill-propagation.mdindex 25fb180732..105ec4924f 100644--- a/docs/adr/0004-kill-propagation.md+++ b/docs/adr/0004-kill-propagation.md@@ -42,7 +42,7 @@ class CancelToken:Every long-running operation (brain stream, vision observe, task runner, CU loop) receives a token via `ExecutionContext.cancel_token`. Before every `async for chunk in …`, `if token.is_cancelled(): break` is checked.### Layer 3 — Subprocess kill-On `cancel()`, all subprocess harnesses get: first `process.terminate()` (SIGTERM equivalent on Windows), 500ms grace, then `taskkill /T /F /PID <pid>` (kills the process tree, including child processes of openclaw/codex).+On `cancel()`, all subprocess harnesses get: first `process.terminate()` (SIGTERM equivalent on Windows), 500ms grace, then `taskkill /T /F /PID <pid>` (kills the process tree, including child processes of the Jarvis-Agent worker (external `openclaw` CLI)/codex).### Time budget (should be <2s)- t+0ms: hotkey fires → KillRequested publisheddiff --git a/docs/adr/0008-computer-use-harness-in-process.md b/docs/adr/0008-computer-use-harness-in-process.mdindex 372188acf0..d7f78a767b 100644--- a/docs/adr/0008-computer-use-harness-in-process.md+++ b/docs/adr/0008-computer-use-harness-in-process.md@@ -16,7 +16,7 @@ audience: developer## Context-The existing five harnesses (`openclaw`, `codex`, `open-interpreter`, `python-script`, `mcp-remote`) run as a subprocess with their own Python interpreter/shell and communicate via stdout/stdin NDJSON. `CLAUDE.md` §Security states:+The existing five harnesses (`jarvis_agent`, `codex`, `open-interpreter`, `python-script`, `mcp-remote`) run as a subprocess with their own Python interpreter/shell and communicate via stdout/stdin NDJSON. `CLAUDE.md` §Security states:> **Harness isolation:** Sub-harnesses run in their own subprocess without access to Jarvis secrets (own ENV allowlist).@@ -34,7 +34,7 @@ By its nature, Computer-Use is **not an external Jarvis-Agent framework** (as Ja3. Passes the `CancelToken` from ADR-0004 through transparently4. Emits event-bus events (`ObservationCaptured`, `ActionProposed`, `ActionVerified`) directly — no IPC translation-Architecturally this is closer to the `BrainManager` or `HarnessManager` (both in-process) than to the `OpenClawHarness` (which wraps an external binary).+Architecturally this is closer to the `BrainManager` or `HarnessManager` (both in-process) than to the external Jarvis-Agent worker harness (which wraps an external binary).### Position relative to the CLAUDE.md ruleThe rule targets **third-party agent code** (Jarvis-Agents, Codex, Open Interpreter), which could potentially read/write arbitrarily. The Computer-Use harness is not third-party code — it is our own orchestrator code, whose tools run through the existing risk-tier/whitelist system. The secret-isolation clause is therefore not violated, because no foreign binary is started.diff --git a/docs/adr/0011-router-pure-dispatcher.md b/docs/adr/0011-router-pure-dispatcher.mdindex 699b114f5b..4593144c19 100644--- a/docs/adr/0011-router-pure-dispatcher.md+++ b/docs/adr/0011-router-pure-dispatcher.md@@ -232,12 +232,12 @@ shared `HarnessManager`. It delegates to the in-process computer-use harnessThe router previously had **no honest path** for live-desktop actions:-- `spawn-openclaw` runs a worker in an isolated git worktree — it can edit code+- `spawn-worker` runs a worker in an isolated git worktree — it can edit codeand research, but it can **never** touch the user's live desktop.- The router prompt told the model to reach the computer-use harness through thetwo-level `dispatch_to_harness(harness="computer-use", …)` indirection — butthat tool's schema description only mentions "OpenClaw, Codex, code-editing,- research". LLMs select tools primarily by their **description**, so the model+ research" (pre-rename wording). LLMs select tools primarily by their **description**, so the modelnever picked it for desktop actions. For "Öffne ein neues Terminal für mich,starte darin Cloud-Konfiguration" Gemini invented a non-existent tool(`terminal_count`) and the anti-silence guard spoke a refusal@@ -246,7 +246,7 @@ The router previously had **no honest path** for live-desktop actions:A dedicated tool with an unambiguous name + description is the strongest signalfor LLM tool selection and removes the fragile indirection. The router prompt(`router.py:SYSTEM_PROMPT`) was updated to route every on-screen/app/GUI action-to `computer_use` and to explicitly state that `spawn_openclaw` cannot touch the+to `computer_use` and to explicitly state that `spawn_worker` cannot touch thedesktop.### Why it belongs in `ROUTER_TOOLS` (and nowhere else)@@ -721,7 +721,7 @@ aloud.**Root cause.** `dispatch-to-harness` exposed a free-form `harness` stringparameter and its description advertised *"OpenClaw, Codex, Python-Script, MCP"*-as Jarvis-Agent vehicles. But OpenClaw is **not a registered harness** — it was+as Jarvis-Agent vehicles. But the legacy OpenClaw harness name is **not a registered harness** — it wasremoved in Welle 4 (~92% nested-claude hang; see `docs/BUGS.md`), and`pyproject.toml` registers only `open-interpreter`, `mcp-remote`,`python-script`, `screenshot`. So a "Jarvis-Agent" turn could name a phantom harness@@ -739,7 +739,7 @@ sufficient:The `DispatchToHarnessTool` class is **retained** for the internal, non-LLMlocal-action / computer-use fast path (`_load_local_action_tools`, invokedprogrammatically with a registered harness name). It is just not router-visible.-Do **not** re-add it to `ROUTER_TOOLS` — that resurrects the phantom-openclaw+Do **not** re-add it to `ROUTER_TOOLS` — that resurrects the phantom-harnessrouting bug.Companion changes: the dead `tool.dispatch-to-harness` and `harness.openclaw`@@ -748,7 +748,7 @@ capabilities are deleted from the seed; `tool.spawn-worker` is re-describedremoved; the `HarnessManager.get()` / `dispatch_to_harness` error paths no longerleak the raw harness inventory into a message that can reach voice; and the bootpath logs a warning when an inert `[harness.openclaw].enabled = true` block is-present (`warn_if_phantom_openclaw`).+present (`warn_if_phantom_worker_harness`).### Regression guards@@ -757,7 +757,7 @@ present (`warn_if_phantom_openclaw`).- `tests/unit/brain/test_routing.py::test_router_tools_is_pure_dispatcher_set`(exact-match set updated — `dispatch-to-harness` removed)- `tests/unit/core/test_capabilities.py::test_dispatch_to_harness_capability_removed`- / `::test_no_capability_advertises_openclaw` / `::test_harness_adapters_present`+ / `::test_no_capability_advertises_legacy_harness_name` / `::test_harness_adapters_present`- `tests/integration/test_dispatch_to_harness.py::test_unknown_harness_returns_neutral_error_no_inventory_leak`## Amendment — `app-command` tool (Command Registry executor, 2026-07-09)@@ -824,7 +824,7 @@ schemas + the provider-test regression).### Context-The live harness inventory no longer contains the historical OpenClaw/Codex+The live harness inventory no longer contains the historical Jarvis-Agent/Codexvehicles advertised by `multi-spawn`. The tool therefore competed with theworking `spawn-worker` mission path while offering backend names that could notrun. This is the same phantom-capability failure class that previously required@@ -889,8 +889,8 @@ it.### Alternatives considered-- Re-register the retired harnesses: rejected because the OpenClaw subprocess- path was removed after repeated reliability failures.+- Re-register the retired harnesses: rejected because the Jarvis-Agent (formerly+ OpenClaw) subprocess path was removed after repeated reliability failures.- Rewrite `dispatch-with-review` as a second alias for `spawn-worker`: rejectedbecause duplicate schemas recreate nondeterministic model selection and splittelemetry across two names.diff --git a/docs/adr/0012-awareness-recall-router-tier.md b/docs/adr/0012-awareness-recall-router-tier.mdindex 001ddaf92f..3ed30af7a9 100644--- a/docs/adr/0012-awareness-recall-router-tier.md+++ b/docs/adr/0012-awareness-recall-router-tier.md@@ -16,7 +16,7 @@ the latency-sensitive router should not perform.Welle 4 deleted the Jarvis-Agent tier in its entirety(`jarvis/brain/factory.py:90-103`). Heavy work is now executed by-external Jarvis-Agent subprocesses spawned via `spawn_openclaw`. Those+external Jarvis-Agent subprocesses spawned via `spawn_worker`. Thosesubprocesses run their own Jarvis-Agent instances and do **not** inheritthe Jarvis in-process tool registry — they can only call the tools thatthe Jarvis-Agent itself exposes (`Bash`, `Read`, `Grep`, MCP servers, etc.).@@ -46,7 +46,7 @@ and `StoryTracker`, so no new dependency is introduced.If the router brain decides to delegate work to a Jarvis-Agent workerafter recalling, it may bake the recall result into the worker's-`context_hints` field on the `spawn_openclaw` call. That follow-up is+`context_hints` field on the `spawn_worker` call. That follow-up isout of scope for the initial A3 wave but the placement chosen here doesnot block it.@@ -58,7 +58,7 @@ not block it.override.- **Router tier gains its first non-trivial IO tool.** Up to now therouter-tier tools were either pure state reads (`awareness-snapshot`,- `whoami`) or dispatchers (`spawn_openclaw`, `dispatch-to-harness`).+ `whoami`) or dispatchers (`spawn_worker`, `dispatch-to-harness`).`awareness-recall` performs one SQLite query. The latency budget setin the plan (p95 < 300 ms on 1000 episodes) is generous; the unittest enforces p95 < 300 ms on 100 episodes as a CI-friendly bound.@@ -71,7 +71,7 @@ not block it.- **Recursion-protection is structural.** Because Jarvis-Agent workerscannot reach `awareness-recall` at all (no MCP bridge exposes it),there is no risk of a recursive spawn chain — analogous to how- `spawn_openclaw` itself is intentionally absent from any worker tool+ `spawn_worker` itself is intentionally absent from any worker toolset.## Alternatives Considereddiff --git a/docs/adr/0014-flash-brain-suppress-if-fast.md b/docs/adr/0014-flash-brain-suppress-if-fast.mdindex c283d708ee..879c99d524 100644--- a/docs/adr/0014-flash-brain-suppress-if-fast.md+++ b/docs/adr/0014-flash-brain-suppress-if-fast.md@@ -26,7 +26,7 @@ ack stops feeling like a butler-style acknowledgment and startsfeeling like dead filler. The driver reported it as"the little acknowledgment is annoying when the right answer comes immediately".-**2. BUG-017 (Gemini account 403) makes the force-spawn-openclaw+**2. BUG-017 (Gemini account 403) makes the force-spawn-workerpath inviable on every non-Claude/non-Gemini primary.**`jarvis/missions/init.py::_worker_factory` returns `GeminiWorker`for every `brain.primary != "claude-api"`, and `GeminiWorker`@@ -78,7 +78,7 @@ trade after a live A/B in the same session.### Gate 2 — Force-spawn skip on non-viable worker provider-`jarvis/brain/manager.py::_should_force_openclaw` returns `False`+`jarvis/brain/manager.py::_should_force_spawn` returns `False`when `cfg.brain.primary` is not in `{"claude-api", "gemini"}`,regardless of whether the action-verb heuristic or theexternal-system-marker heuristic matches. The Router-Brain then@@ -158,7 +158,7 @@ gate). Live-reproduced and verified in P6 voice runs on 2026-05-13.replacement)- `jarvis/brain/ack_brain/config.py::AckBrainConfig`(`suppress_if_brain_faster_than_ms` field)-- `jarvis/brain/manager.py::_should_force_openclaw`+- `jarvis/brain/manager.py::_should_force_spawn`(provider-viability gate)- `jarvis/speech/pipeline.py` (suppress-window polling loop)- ADR-0011 (Router-Discipline — defines which path the inlinediff --git a/docs/adr/0017-capability-coupling.md b/docs/adr/0017-capability-coupling.mdindex f306ab98de..ff22cc6f04 100644--- a/docs/adr/0017-capability-coupling.md+++ b/docs/adr/0017-capability-coupling.md@@ -72,7 +72,7 @@ Seeding at boot (`bootstrap`):2. `MCPRegistry.load` → `CapabilityRegistry.register(...)` for every namespacedMCP tool, verbs derived best-effort from schema descriptions plus optionaluser overrides in `[capabilities.mcp.<server>.<tool>]` in `jarvis.toml`.-3. Harness adapters (`openclaw`, `mcp-remote`, `python-script`) → register their+3. Harness adapters (`jarvis_agent`, `mcp-remote`, `python-script`) → register theiraction surface.4. Local-action-gate patterns → register `open_app`, `type_text`, `hotkey`,`reset_orb_position`, `terminal_count`.@@ -95,7 +95,7 @@ New `LocalActionMode.UNSUPPORTED` routes directly to TTS; the brain is nevercalled. This is intentionally AP-11 compliant — no LLM, regex-only.**(b) `jarvis/brain/manager.py`** — sibling check `_capability_resolves(text)`-alongside the existing `_should_force_openclaw` heuristic. If+alongside the existing `_should_force_spawn` heuristic. If`has_action_intent AND NOT _capability_resolves AND NOT _is_smalltalk`:skip brain dispatch and Jarvis-Agent spawn; emit the deterministic UNSUPPORTEDresponse via the same TTS path as a short reply.@@ -204,7 +204,7 @@ Run a fast model (Gemini Flash Lite) as a pre-classifier to decide "is thisutterance a request for an action that is not in our capability list?" beforedispatching to the brain. Rejected because: (1) adds 200–400 ms to every turnin the voice critical path; (2) is non-deterministic — the same utterance may-classify differently on retries; (3) the existing `_should_force_openclaw`+classify differently on retries; (3) the existing `_should_force_spawn`heuristic already performs verb classification deterministically via regex;extending it with a registry lookup is free.diff --git a/docs/agents-self-verification.md b/docs/agents-self-verification.mdindex 1fb854eff7..94b3f221f4 100644--- a/docs/agents-self-verification.md+++ b/docs/agents-self-verification.md@@ -1,6 +1,6 @@# AGENTS.md — Anti-Pattern Register and Conventions-**Purpose:** Consolidated source of truth for anti-patterns, conventions, and hard negatives that subagents check against. This file is read as mandatory reading by `code-reviewer`, `jarvis-reviewer`, `openclaw-bridge-reviewer`, `phase7-selfmod-auditor`, and all verifiers.+**Purpose:** Consolidated source of truth for anti-patterns, conventions, and hard negatives that subagents check against. This file is read as mandatory reading by `code-reviewer`, `jarvis-reviewer`, `jarvis-agents-bridge-reviewer`, `phase7-selfmod-auditor`, and all verifiers.**Maintenance:** When a new anti-pattern arises from a bug, ADR, or plan update, it belongs here. Existing sources (CLAUDE.md, BUGS.md, ADR collection, Awareness Plan §10, Jarvis-Agents bridge doc §5, Phase-7 doc §6) remain canonical — this file mirrors them for subagent consumption.@@ -61,19 +61,19 @@## 5. Jarvis-Agents Bridge Anti-Patterns-From `docs/jarvis-agents-bridge.md` §5 (full justifications there). OpenClaw fully replaces the Phase-5 Jarvis-Agent tier (see AP-OC14). The Welle-1 spike (2026-05-09) added AP-OC15 for the system-prompt auto-injection risk.+From `docs/jarvis-agents-bridge.md` §5 (full justifications there). Jarvis-Agents (bridging the external `openclaw` worker CLI) fully replaces the Phase-5 Jarvis-Agent tier (see AP-OC14). The Welle-1 spike (2026-05-09) added AP-OC15 for the system-prompt auto-injection risk.| ID | Anti-Pattern | Fix ||---|---|---|-| AP-OC1 | Forking OpenClaw | Upstream stays unchanged, our adapter layer instead |-| AP-OC2 | Enabling OpenClaw frontend/UI/voice/channels | Black box, only `agent --message` |-| AP-OC3 | OpenClaw as a long-lived daemon | One-shot subprocess per task |+| AP-OC1 | Forking the external `openclaw` worker CLI | Upstream stays unchanged, our adapter layer instead |+| AP-OC2 | Enabling the external openclaw CLI's own frontend/UI/voice/channels | Black box, only `agent --message` |+| AP-OC3 | Running the external openclaw CLI as a long-lived daemon | One-shot subprocess per task || AP-OC4 | LLM output goes directly to voice | Kontrollierer signs `summary_de` (see AP-V8) || AP-OC5 | Status-phrase detection in the LLM | Pattern match in the Personal Jarvis brain (router tier) || AP-OC6 | Building the cost cap into the bridge layer | Belongs centrally in the Mission Manager |-| AP-OC7 | Storing OpenClaw skills in the user skill directory | OpenClaw skill system stays dead |-| AP-OC8 | Voice switch for OpenClaw model selection | Phase-7 self-mod dependency, manual config edit is enough for v1 |-| AP-OC9 | MCP tool filter in the OpenClaw subprocess | Upstream: deliberate MCP selection at the wizard |+| AP-OC7 | Storing the external openclaw CLI's own skills in the user skill directory | The external tool's own skill system stays dead |+| AP-OC8 | Voice switch for the external openclaw CLI's model selection | Phase-7 self-mod dependency, manual config edit is enough for v1 |+| AP-OC9 | MCP tool filter in the external openclaw subprocess | Upstream: deliberate MCP selection at the wizard || AP-OC10 | Mapping Stop to "Auflegen" (hang up) | Hanging up lets the mission keep running — Stop is explicit |**Plus from the lessons learned of the old Jarvis-Agent attempts (Phase-5 tier, fully deleted in Welle 4):**@@ -81,10 +81,10 @@ From `docs/jarvis-agents-bridge.md` §5 (full justifications there). OpenClaw fu| ID | Anti-Pattern | Source | Fix ||---|---|---|---|| AP-OC11 | Output folder does not exist before spawn | Bridge doc §1 pain point 2 | `git worktree add agent/<id>` is a precondition for spawn |-| AP-OC12 | "Who is answering?" confusion | Bridge doc §1 pain point 1 | Bus events `OpenClawTaskStarted/Completed` with `task_id`, model |-| AP-OC13 | Leaving model selection to the OpenClaw default | Bridge doc AD-7 | Bridge enforces `--model` from `[harness.openclaw].model` |-| AP-OC14 | Leaving Sub-Jarvis code parallel to OpenClaw | Bridge doc AD-5 + §11 | The Phase-5 Sub-Jarvis tier (SubJarvisManager module, `_should_force_sub_jarvis`, `spawn_sub_jarvis` tool, tier configuration) is fully deleted in Welle 4. No backwards compat. |-| AP-OC15 | Not isolating the OpenClaw workspace per mission *(new, Welle-1 spike 2026-05-09, B-9)* | Bridge doc AP-OC15 + AD-23 | OpenClaw injects ~35.4k chars of system prompt from `~/.openclaw/workspace/{AGENTS,SOUL,TOOLS,IDENTITY,USER}.md` automatically. The bridge MUST set `OPENCLAW_STATE_DIR=<mission_dir>/openclaw_state` per mission + place a minimalist workspace profile + audit via `meta.systemPromptReport.injectedWorkspaceFiles[]` from the JSON output. Otherwise persona override by OpenClaw's default SOUL.md/IDENTITY.md (overriding the Personal Jarvis persona mandate) plus cross-mission state leak. |+| AP-OC12 | "Who is answering?" confusion | Bridge doc §1 pain point 1 | Bus events `JarvisAgentTaskStarted/Completed` with `task_id`, model |+| AP-OC13 | Leaving model selection to the external openclaw CLI's default | Bridge doc AD-7 | Bridge enforces `--model` from `[harness.openclaw].model` |+| AP-OC14 | Leaving Sub-Jarvis code parallel to Jarvis-Agents | Bridge doc AD-5 + §11 | The Phase-5 Sub-Jarvis tier (SubJarvisManager module, `_should_force_sub_jarvis`, `spawn_sub_jarvis` tool, tier configuration) is fully deleted in Welle 4. No backwards compat. |+| AP-OC15 | Not isolating the external openclaw CLI's workspace per mission *(new, Welle-1 spike 2026-05-09, B-9)* | Bridge doc AP-OC15 + AD-23 | The external openclaw CLI injects ~35.4k chars of system prompt from `~/.openclaw/workspace/{AGENTS,SOUL,TOOLS,IDENTITY,USER}.md` automatically. The bridge MUST set `MISSION_STATE_DIR=<mission_dir>/openclaw_state` per mission + place a minimalist workspace profile + audit via `meta.systemPromptReport.injectedWorkspaceFiles[]` from the JSON output. Otherwise persona override by the external tool's default SOUL.md/IDENTITY.md (overriding the Personal Jarvis persona mandate) plus cross-mission state leak. |---@@ -100,7 +100,7 @@ From `docsplansphase-7-self-mod/PROJEKT_KONTEXT.md` §6 (full justifications the| AP-SM4 | Writing without a backup | Atomic-writer pattern from `config_writer.py` || AP-SM5 | Silent skip of reload failures | Restore-on-fail + audit `rolled_back=true` || AP-SM6 | Auto-activation of generated skills | `state=draft`, `TriggerMatcher` ignored |-| AP-SM7 | Skill authoring in the Personal Jarvis brain path | OpenClaw spawn via Mission Manager (see bridge doc R-6) |+| AP-SM7 | Skill authoring in the Personal Jarvis brain path | Jarvis-Agent spawn via Mission Manager (see bridge doc R-6) || AP-SM8 | Single universal tool (`set_anything`) | Discrete tools with clear intent || AP-SM9 | `security.*` or secrets in the allowlist | Privilege-escalation risk || AP-SM10 | Skill drafts outside `user_skills_dir` | Hot-reload bypass |diff --git a/docs/architecture-overview.md b/docs/architecture-overview.mdindex c38c80362c..5b0f5869d5 100644--- a/docs/architecture-overview.md+++ b/docs/architecture-overview.md@@ -26,7 +26,7 @@ deviations must be documented back in the plan.**Binding architecture contracts:**- 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.+ The retired pre-rename (OpenClaw) sub-tier and phantom harness paths must not be restored.- [`docs/anti-drift-three-layer.md`](anti-drift-three-layer.md) — five-layer enumpattern (Python ↔ SQL ↔ Pydantic ↔ TS ↔ UI). Mandatory for any string crossingmodule boundaries.@@ -128,7 +128,7 @@ Four levels: `safe` / `monitor` / `ask` / `block`. Priority is **blacklist > whiThe router-tier brain is a **pure dispatcher**. Tool surface is the `ROUTER_TOOLS` frozenset in `jarvis/brain/factory.py`. Direct actions outside this set are delegated to the agent harness via the harness-spawn tool.-Force-spawn heuristic in `BrainManager._should_force_openclaw`:+Force-spawn heuristic in `BrainManager._should_force_spawn`:- 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.diff --git a/docs/jarvis-agents-bridge.md b/docs/jarvis-agents-bridge.mdindex 6075257fd1..8931c76aaa 100644--- a/docs/jarvis-agents-bridge.md+++ b/docs/jarvis-agents-bridge.md@@ -3,7 +3,7 @@**Status:** Draft — Wave 1 (Spike) complete, Wave 2 (Implementation) next**Date:** 2026-05-06 (Jarvis-Agent cleanup 2026-05-09, Wave-1 spike findings 2026-05-09)**Branch:** `claude/improve-subagents-structure-5094K`-**Reference:** Fully replaces the Phase-5 Jarvis-Agent tier with a subprocess bridge to OpenClaw (github.com/openclaw/openclaw, Peter Steinberger). The Phase-6 skeleton (Mission-Manager, Critic-Loop, worktree isolation, Kontrollierer) is retained and used as a shell around the bridge.+**Reference:** Fully replaces the Phase-5 Jarvis-Agent tier with a subprocess bridge to the external `openclaw` worker CLI (github.com/openclaw/openclaw, Peter Steinberger). The Phase-6 skeleton (Mission-Manager, Critic-Loop, worktree isolation, Kontrollierer) is retained and used as a shell around the bridge.**Conflict resolution:** This doc may deviate from ADR-0009 (Self-Healing-Worker-Critic) as far as the inner worker implementation is concerned. Mission-Manager, Critic-Loop, Kontrollierer, and worktree isolation from ADR-0009 stay unchanged.---@@ -16,16 +16,16 @@ So that this doc, the code, and the subagent files consistently speak the same l|---|---|---|| **Personal Jarvis** | The overall voice-assistant product. What the user sees, hears, talks to. **Not** a subagent. | "Jarvis" || **Jarvis-Brain** / **Router-Brain** | Inner classifier brain (Haiku 4.5) that triages user utterances into trivial / direct_action / spawn-subagent. Lives in `jarvis/brain/manager.py` as `BrainManager` with tier `"router"`. | "Hauptjarvis" |-| **OpenClaw** | The **only** subagent. Heavy-worker for tasks that the Router-Brain delegates. External subprocess via the bridge plugin. | "Sub-Jarvis" / "Sub-Jarvis tier" |-| **Bridge** | `jarvis/plugins/harness/openclaw.py` — adapter layer that starts OpenClaw as a subprocess, passes MCPs through, parses stdout, and emits bus events. | (did not exist) |+| **Jarvis-Agent** | The **only** subagent. Heavy-worker for tasks that the Router-Brain delegates. Runs via the external `openclaw` worker CLI through the bridge plugin. *(This Wave-1 doc originally coined the tier itself "OpenClaw"; the tier was renamed to **Jarvis-Agent** in the 2026-06-30 rebrand — see the Language rule below. The external `openclaw` CLI keeps its own name throughout this doc.)* | "Sub-Jarvis" / "Sub-Jarvis tier" |+| **Bridge** | `jarvis/plugins/harness/jarvis_agent.py` (this Wave-1 plan's path; never actually created under this name — see §4.1) — adapter layer that starts the external `openclaw` worker CLI as a subprocess, passes MCPs through, parses stdout, and emits bus events. | (did not exist) || **Mission-Manager** | Phase-6 skeleton under `jarvis/missions/` — orchestrates worktree, Job-Object, Critic-Loop, Kontrollierer around the bridge. | (Phase 6, was installed in parallel but not in the voice path) || **Sub-Jarvis** | **Deprecated term.** The Phase-5 tiered-routing construct with a second Opus brain instance (`SubJarvisManager`, `from_tier_config("sub_jarvis")`). Deleted entirely in Wave 4 — no parallel operation. | (was: second Opus brain instance) || **Hauptjarvis** | **Deprecated term.** Was used in contrast to Sub-Jarvis. Now called **Jarvis-Brain** or **Router-Brain**. | (was: Haiku dispatcher) |**Language rule for all follow-up edits in CLAUDE.md, AGENTS.md, subagent files, tests, and code comments:**-- "Sub-Jarvis" → replace with "OpenClaw" (when the subagent is meant) or delete (when the whole tier construct is meant).+- "Sub-Jarvis" → replace with "Jarvis-Agent" (when the subagent is meant) or delete (when the whole tier construct is meant). *(At the time this doc was written, this rule read "→ OpenClaw"; superseded by the 2026-06-30 rebrand.)*- "Hauptjarvis" → replace with "Jarvis-Brain" or "Personal Jarvis" (depending on context).-- "Sub-Jarvis tier" → "OpenClaw-Bridge".+- "Sub-Jarvis tier" → "Jarvis-Agents-Bridge". *(Originally "→ OpenClaw-Bridge"; same supersession.)*---@@ -35,9 +35,9 @@ Phase 5 (master plan §22) introduced the **Jarvis-Agent tier** — a second Opu1. **"Who is answering?" bug** — the user could not reliably tell whether the Router-Brain (Haiku) directly or the Jarvis-Agent tier (Opus) had produced a result. Output quality was often so weak that it raised suspicion that the wrong tier had executed the task.2. **Output-folder drift** — outputs did not reliably land in the designated per-task folder. Mission-reattach paths after a crash were fragile.-3. **Worker-output weakness** — even when the Jarvis-Agent tier was routed correctly, the code/reasoning quality lagged behind what established open-source agent loops (OpenClaw, Codex, Aider, OpenClaw) achieve with comparable models.+3. **Worker-output weakness** — even when the Jarvis-Agent tier was routed correctly, the code/reasoning quality lagged behind what established open-source agent loops (`openclaw`, Codex, Aider, `openclaw`) achieve with comparable models.-Instead of evolving these loops ourselves, **we replace the Jarvis-Agent tier entirely with OpenClaw**. OpenClaw is a TypeScript/Node-based local-first agent gateway with a tested tool-use loop, MCP support, and a CLI one-shot mode (`openclaw agent --message "..."`). We install it as an external subprocess and dock it on via the plugin layer and the Mission-Manager shell.+Instead of evolving these loops ourselves, **we replace the Jarvis-Agent tier entirely with the external `openclaw` CLI**. The external `openclaw` CLI is a TypeScript/Node-based local-first agent gateway with a tested tool-use loop, MCP support, and a CLI one-shot mode (`openclaw agent --message "..."`). We install it as an external subprocess and dock it on via the plugin layer and the Mission-Manager shell.**Goal:** the Phase-6 skeleton (Mission-Manager, Critic, worktree, Job-Object, Kontrollierer, cost tracker) is **activated** and wired into the default voice path. The Phase-5 Jarvis-Agent tier is **deleted entirely** — no backwards compatibility, no parallel operation.@@ -47,27 +47,27 @@ Instead of evolving these loops ourselves, **we replace the Jarvis-Agent tier en| ID | Decision | Rationale ||----|---|---|-| AD-1 | OpenClaw runs as a **one-shot subprocess per task** (`openclaw agent --message ...`) | Cleanly isolated per task, killable via Job-Object, no state leak between spawns. Cold-start latency ~2–5s is acceptable because heavy-worker tasks run >30s anyway. |-| AD-2 | OpenClaw runs **natively on Windows Node**, no WSL2 | Jarvis is native Windows (WASAPI, Win32, Credential Manager). A WSL2 layer would bring in a path-mapping + performance layer. **Needs a spike**: the README says WSL2 for Windows — we verify native operability as a pre-condition. |-| AD-3 | **Black-box model** — OpenClaw's own skills, channels, UI, voice-wake are ignored entirely | Jarvis already has all of these layers. OpenClaw is used as a pure brain engine. Duplicate state and trigger conflicts are avoided. No fork — we use upstream unchanged. |-| AD-4 | The bridge lives as a new plugin in `jarvis/plugins/harness/openclaw.py` | Fits into the existing `jarvis.harness` plugin schema alongside OpenClaw/Codex/Open-Interpreter. The Phase-6 worker calls the harness instead of an LLM client directly. Clean layer separation. |-| AD-5 | **OpenClaw is the only Jarvis-Agent.** The Phase-5 Jarvis-Agent tier (`SubJarvisManager` module, `BrainManager.from_tier_config("sub_jarvis")`, `_should_force_sub_jarvis`, `_force_spawn_sub_jarvis`, `spawn_sub_jarvis` tool) is deleted entirely in Wave 4. | No parallel operation, no backwards compatibility. All spawn requests from the Router-Brain run through the renamed `spawn_openclaw` tool → Mission-Manager → Jarvis-Agents-Bridge. **Not affected:** the OpenClaw/Codex/Open-Interpreter harness plugins stay registered, because `dispatch-to-harness` is an orthogonal mechanism (direct harness call without a Jarvis-Agent tier). Skill authoring (Phase 7.5) must be switched from SubJarvisManager to Mission-Manager spawn — see R-6. |-| AD-6 | API keys come from the Windows Credential Manager via a **new wizard section** | Single source of truth for secrets. Wizard and Desktop-App extend the `SECRETS` list with `OPENCLAW_<PROVIDER>_API_KEY`. The bridge passes those to the subprocess as ENV. |-| AD-7 | Model choice is **static in `[harness.openclaw].model`**, hot-reload via watchdog | "Everyone should be able to pick their own model." A config edit switches the frontier model without a code change. A voice switch is deliberately not added (Phase-7 self-mod dependency, can be retrofitted later). |-| AD-8 | **All registered MCPs** are passed through to OpenClaw | Convenience mode. Consequence: at registration, the MCP wizard must display "this MCP is also passed on to Jarvis-Agents". User awareness instead of an engineering filter. |-| AD-9 | **Full trust for tool calls** inside OpenClaw, no bridge intercept | The safety valves are: (a) worktree isolation, (b) Job-Object hard kill, (c) the Critic-Loop in front of it, (d) MCP selection (placed upstream). Tool latency stays low; the risk-tier policy does not apply to OpenClaw-internal calls. |-| AD-10 | OpenClaw runs **async / fire-and-forget** | "Auflegen" (hanging up) ends the voice session; OpenClaw keeps running in the background. Personal Jarvis says immediately "okay, mache ich" (okay, will do) and releases the voice mic. |-| AD-11 | **Stop is explicitly separated** from hang-up — voice + UI + auto-stop on time-cap | Voice patterns "brich ab", "stop OpenClaw", "abbrechen" (cancel/abort) <!-- i18n-allow --> + UI button + automatic abort when the 30-min limit is exceeded. |+| AD-1 | The external `openclaw` CLI runs as a **one-shot subprocess per task** (`openclaw agent --message ...`) | Cleanly isolated per task, killable via Job-Object, no state leak between spawns. Cold-start latency ~2–5s is acceptable because heavy-worker tasks run >30s anyway. |+| AD-2 | The external `openclaw` CLI runs **natively on Windows Node**, no WSL2 | Jarvis is native Windows (WASAPI, Win32, Credential Manager). A WSL2 layer would bring in a path-mapping + performance layer. **Needs a spike**: the README says WSL2 for Windows — we verify native operability as a pre-condition. |+| AD-3 | **Black-box model** — the external `openclaw` CLI's own skills, channels, UI, voice-wake are ignored entirely | Jarvis already has all of these layers. The external `openclaw` CLI is used as a pure brain engine. Duplicate state and trigger conflicts are avoided. No fork — we use upstream unchanged. |+| AD-4 | The bridge lives as a new plugin in `jarvis/plugins/harness/jarvis_agent.py` | Fits into the existing `jarvis.harness` plugin schema alongside `openclaw`/Codex/Open-Interpreter. The Phase-6 worker calls the harness instead of an LLM client directly. Clean layer separation. |+| AD-5 | **The worker harness is the only Jarvis-Agent tier**, running on the external `openclaw` worker CLI. The Phase-5 Jarvis-Agent tier (`SubJarvisManager` module, `BrainManager.from_tier_config("sub_jarvis")`, `_should_force_sub_jarvis`, `_force_spawn_sub_jarvis`, `spawn_sub_jarvis` tool) is deleted entirely in Wave 4. | No parallel operation, no backwards compatibility. All spawn requests from the Router-Brain run through the renamed `spawn_openclaw` tool (Wave-4 name; further renamed to `spawn_worker` in the later 2026-06-30 rebrand, still recognized as a legacy alias) → Mission-Manager → Jarvis-Agents-Bridge. **Not affected:** the `openclaw`/Codex/Open-Interpreter harness plugins stay registered, because `dispatch-to-harness` is an orthogonal mechanism (direct harness call without a Jarvis-Agent tier). Skill authoring (Phase 7.5) must be switched from SubJarvisManager to Mission-Manager spawn — see R-6. |+| AD-6 | API keys come from the Windows Credential Manager via a **new wizard section** | Single source of truth for secrets. Wizard and Desktop-App extend the `SECRETS` list with `JARVIS_AGENT_<PROVIDER>_API_KEY`. The bridge passes those to the subprocess as ENV. *(Rejected before implementation — see Amendment AD-6 below: no custom namespace was ever created.)* |+| AD-7 | Model choice is **static in `[harness.jarvis_agent].model`**, hot-reload via watchdog | "Everyone should be able to pick their own model." A config edit switches the frontier model without a code change. A voice switch is deliberately not added (Phase-7 self-mod dependency, can be retrofitted later). *(This section originally used `[harness.openclaw].model`; the config key is now `[harness.jarvis_agent]`, which still accepts `[harness.openclaw]` as a read-time legacy alias.)* |+| AD-8 | **All registered MCPs** are passed through to the external `openclaw` CLI | Convenience mode. Consequence: at registration, the MCP wizard must display "this MCP is also passed on to Jarvis-Agents". User awareness instead of an engineering filter. |+| AD-9 | **Full trust for tool calls** inside the external `openclaw` CLI, no bridge intercept | The safety valves are: (a) worktree isolation, (b) Job-Object hard kill, (c) the Critic-Loop in front of it, (d) MCP selection (placed upstream). Tool latency stays low; the risk-tier policy does not apply to `openclaw`-internal calls. |+| AD-10 | The external `openclaw` CLI runs **async / fire-and-forget** | "Auflegen" (hanging up) ends the voice session; `openclaw` keeps running in the background. Personal Jarvis says immediately "okay, mache ich" (okay, will do) and releases the voice mic. |+| AD-11 | **Stop is explicitly separated** from hang-up — voice + UI + auto-stop on time-cap | Voice patterns "brich ab", "stop openclaw", "abbrechen" (cancel/abort) <!-- i18n-allow --> + UI button + automatic abort when the 30-min limit is exceeded. The lowercase `openclaw`/`claw` tokens are still live spoken-trigger words recognized by the current stop/status pattern matcher (`jarvis/brain/mission_command_gate.py`), alongside "mission"/"auftrag". || AD-12 | **Status read** via voice ("läuft das noch?", "Status?" — is it still running? / status?) <!-- i18n-allow --> plus a UI live view | The Router-Brain recognizes status phrases via pattern match and calls a Mission-Manager read instead of a spawn. The UI Mission-Control view shows everything in parallel. |-| AD-13 | **Concurrency cap 3** — up to 3 Jarvis-Agent missions in parallel | Configurable via `[harness.openclaw].concurrency`. A fourth request goes into the Mission-Manager queue. |-| AD-14 | **Crash persistence via SQLite**, reattach on restart | Phase 6 already has this. On a Jarvis restart, live OpenClaw subprocesses are reattached via PID + worktree state. Orphans (mission deleted, subprocess alive) are killed. |-| AD-15 | **Stateless per spawn** — no conversation memory between spawns | Multi-step tasks via Mission-Manager composition. OpenClaw always gets atomic assignments. |+| AD-13 | **Concurrency cap 3** — up to 3 Jarvis-Agent missions in parallel | Configurable via `[harness.jarvis_agent].concurrency` (`[harness.openclaw].concurrency` is the accepted legacy alias). A fourth request goes into the Mission-Manager queue. |+| AD-14 | **Crash persistence via SQLite**, reattach on restart | Phase 6 already has this. On a Jarvis restart, live `openclaw` subprocesses are reattached via PID + worktree state. Orphans (mission deleted, subprocess alive) are killed. |+| AD-15 | **Stateless per spawn** — no conversation memory between spawns | Multi-step tasks via Mission-Manager composition. `openclaw` always gets atomic assignments. || AD-16 | **Retry on 429, otherwise hard fail** | The Phase-5 RateLimitTracker provides backoff logic (max 3x). Crash, hallucination, worktree corruption → mission failure, the Critic sees an empty result. || AD-17 | **Notifications via the existing `_on_announcement` bus** | pipeline.py:647 is the bus bypass for Jarvis-Agent/skill announcements. The Jarvis-Agents-Bridge pipes the `summary_de` in there, scrubbed via `scrub_for_voice`. Reuse of existing, tested infrastructure. |-| AD-18 | **Telemetry minimal**: only start/end events on the bus | `OpenClawTaskStarted(task_id, model)` and `OpenClawTaskCompleted(task_id, cost, ms, success)`. Enough to fix the "who is answering" bug (clear identification) without bus-traffic bloat. |+| AD-18 | **Telemetry minimal**: only start/end events on the bus | `JarvisAgentTaskStarted(task_id, model)` and `JarvisAgentTaskCompleted(task_id, cost, ms, success)` (these are the real current event classes in `jarvis/core/events.py`; this Wave-1 doc originally named them `JarvisAgentTaskStarted`/`JarvisAgentTaskCompleted`). Enough to fix the "who is answering" bug (clear identification) without bus-traffic bloat. || AD-19 | **Time cap fixed at 30 min**, no per-task override | Carried over from Phase 5. Auto-stop on exceeding via the Mission-Manager. |-| AD-20 | **No cost cap** in v1, the schema leaves room for retrofitting | The time cap acts as an implicit brake (~$5–15 per mission worst case). `[harness.openclaw].cost_cap_eur` stays reserved in the schema for later retrofitting. |-| AD-21 | **Pinned version** for OpenClaw, manual bump | `[harness.openclaw].version` fixes the version. New upstream versions are verified via spike + bridge tests before a bump. Protection against breakage from upstream drift. |+| AD-20 | **No cost cap** in v1, the schema leaves room for retrofitting | The time cap acts as an implicit brake (~$5–15 per mission worst case). `[harness.jarvis_agent].cost_cap_eur` stays reserved in the schema for later retrofitting. |+| AD-21 | **Pinned version** for the external `openclaw` worker CLI, manual bump | `[harness.jarvis_agent].version` fixes the version. New upstream versions are verified via spike + bridge tests before a bump. Protection against breakage from upstream drift. |### Amendments from the Wave-1 spike (2026-05-09)@@ -79,9 +79,9 @@ The following ADs are **refined** by empirical findings from `docs/spike-results- `--model <provider>/<model>` (otherwise default drift)Plus: the cold-start assumption "2–5s" is falsified — empirically **17.3s** (plugin loading 7.5s + auth 8.7s dominate). Stays under the 30s time cap because heavy tasks run >60s anyway, but the bridge should consider pre-warmed `OPENCLAW_STATE_DIR` for hot-path repetition (see AD-23).-- **Amendment AD-6 (API-key schema)** — see B-2. Against the assumption "its own `OPENCLAW_<PROVIDER>_API_KEY` namespace in the Credential Manager", OpenClaw reads the **standard provider ENV vars** like any other Anthropic/OpenAI/Gemini client:+- **Amendment AD-6 (API-key schema)** — see B-2. Against the assumption "its own `JARVIS_AGENT_<PROVIDER>_API_KEY` namespace in the Credential Manager", the external `openclaw` CLI reads the **standard provider ENV vars** like any other Anthropic/OpenAI/Gemini client:- | jarvis.toml provider | OpenClaw slug | OpenClaw reads from ENV | Personal-Jarvis Credential-Manager key |+ | jarvis.toml provider | `openclaw` slug | `openclaw` reads from ENV | Personal-Jarvis Credential-Manager key ||---|---|---|---|| `gemini` | `google` | `GEMINI_API_KEY` (fallback `GOOGLE_API_KEY`) | `gemini_api_key` || `claude-api` | `anthropic` | `ANTHROPIC_API_KEY` | `anthropic_api_key` |@@ -89,7 +89,7 @@ The following ADs are **refined** by empirical findings from `docs/spike-results| `openrouter` | `openrouter` | `OPENROUTER_API_KEY` | `openrouter_api_key` || `grok` | `xai` | `XAI_API_KEY` (fallback `GROK_API_KEY`) | (Grok key) |- Bridge mechanics: read the matching Personal-Jarvis secret key, set the ENV var OpenClaw expects in the subprocess spawn (`subprocess.Popen(env={...,"GEMINI_API_KEY": secret})` or `[System.Environment]::SetEnvironmentVariable($name, $value, "Process")`). **NO** custom `OPENCLAW_*` namespace in the wizard; instead, reuse the existing `gemini_api_key`/`anthropic_api_key`/etc. secrets from `jarvis/setup/wizard.py:SECRETS`. Plus: provider-slug mapping is critical (`gemini` → `google`, `grok` → `xai`, `claude-api` → `anthropic`).+ Bridge mechanics: read the matching Personal-Jarvis secret key, set the ENV var `openclaw` expects in the subprocess spawn (`subprocess.Popen(env={...,"GEMINI_API_KEY": secret})` or `[System.Environment]::SetEnvironmentVariable($name, $value, "Process")`). **NO** custom `OPENCLAW_*` namespace in the wizard; instead, reuse the existing `gemini_api_key`/`anthropic_api_key`/etc. secrets from `jarvis/setup/wizard.py:SECRETS`. Plus: provider-slug mapping is critical (`gemini` → `google`, `grok` → `xai`, `claude-api` → `anthropic`).- **Amendment AD-8 (MCP handover)** — see B-4. Against the assumption "MCPs as a `--mcp <json>` CLI argument to `openclaw agent`", there is **no** `--mcp` flag. MCP configuration runs via its own top-level subcommand `openclaw mcp <add|set|...>` and is read implicitly by the `agent --local` run from `~/.openclaw/<state>`. Bridge obligations:1. Pre-boot setup per mission: `openclaw mcp add <each-mcp>` for each MCP from `jarvis.mcp.registry`@@ -104,9 +104,9 @@ Three findings were outside the scope of the original ADs and are appended here| ID | Decision | Rationale ||----|---|---|-| AD-22 | **Provider idle timeout via pre-boot config patch** to 900s per provider | OpenClaw has an internal `[llm-idle-timeout]` watchdog (~264s default) that fires on frontier-premium models at full reasoning depth (`gemini-3.1-pro-preview` with default-adaptive, or Pro with `--thinking max`). Failure mode: `meta.aborted: true` + JSON payload `"The model did not produce a response before the model idle timeout. Please try again, or increase models.providers.<id>.timeoutSeconds for slow local or self-hosted providers."`. Before the first spawn per provider, the bridge must raise the timeout to 900s via `openclaw config patch --stdin` with a complete provider block (see AD-24). Empirically demonstrated by Wave-1 spike run 20260509-212000. |-| AD-23 | **Workspace isolation per mission via `OPENCLAW_STATE_DIR=<mission_dir>`** | OpenClaw automatically injects workspace files from `~/.openclaw/workspace/` (`AGENTS.md`, `SOUL.md`, `TOOLS.md`, `IDENTITY.md`, `USER.md`, ~35.4k chars total) into the system prompt of every `agent --local` run. Risk: OpenClaw's `SOUL.md`/`IDENTITY.md` overrides the Personal-Jarvis persona mandate, plus cross-mission state leak because the default path is shared. Mitigation: per mission, the bridge sets an `OPENCLAW_STATE_DIR=<mission_dir>/openclaw_state` (matches the worktree path), copies or symlinks a minimal workspace profile with only Personal-Jarvis mission context, plus an audit via `meta.systemPromptReport.injectedWorkspaceFiles[]` from the JSON output (every injected file must be expected). |-| AD-24 | **Provider config via `openclaw config patch --stdin` with a complete JSON5 block**, no incremental `config set` | The OpenClaw schema validates `models.providers.<id>` as a complete structure — a single `openclaw config set models.providers.google.timeoutSeconds 900` fails with `Config validation failed: models.providers.google.baseUrl: Invalid input: expected string, received undefined`. At pre-boot, the bridge must write a complete provider block per provider (`baseUrl`, `models[]`, `timeoutSeconds`). Cleanly via `echo $patchJson \| openclaw config patch --stdin` from Python/PowerShell. Alternatively: write a one-shot `openclaw.config.json` template into `OPENCLAW_CONFIG_PATH`. |+| AD-22 | **Provider idle timeout via pre-boot config patch** to 900s per provider | The external `openclaw` CLI has an internal `[llm-idle-timeout]` watchdog (~264s default) that fires on frontier-premium models at full reasoning depth (`gemini-3.1-pro-preview` with default-adaptive, or Pro with `--thinking max`). Failure mode: `meta.aborted: true` + JSON payload `"The model did not produce a response before the model idle timeout. Please try again, or increase models.providers.<id>.timeoutSeconds for slow local or self-hosted providers."`. Before the first spawn per provider, the bridge must raise the timeout to 900s via `openclaw config patch --stdin` with a complete provider block (see AD-24). Empirically demonstrated by Wave-1 spike run 20260509-212000. |+| AD-23 | **Workspace isolation per mission via `OPENCLAW_STATE_DIR=<mission_dir>`** | The external `openclaw` CLI automatically injects workspace files from `~/.openclaw/workspace/` (`AGENTS.md`, `SOUL.md`, `TOOLS.md`, `IDENTITY.md`, `USER.md`, ~35.4k chars total) into the system prompt of every `agent --local` run. Risk: `openclaw`'s `SOUL.md`/`IDENTITY.md` overrides the Personal-Jarvis persona mandate, plus cross-mission state leak because the default path is shared. Mitigation: per mission, the bridge sets an `OPENCLAW_STATE_DIR=<mission_dir>/openclaw_state` (matches the worktree path), copies or symlinks a minimal workspace profile with only Personal-Jarvis mission context, plus an audit via `meta.systemPromptReport.injectedWorkspaceFiles[]` from the JSON output (every injected file must be expected). |+| AD-24 | **Provider config via `openclaw config patch --stdin` with a complete JSON5 block**, no incremental `config set` | The `openclaw` schema validates `models.providers.<id>` as a complete structure — a single `openclaw config set models.providers.google.timeoutSeconds 900` fails with `Config validation failed: models.providers.google.baseUrl: Invalid input: expected string, received undefined`. At pre-boot, the bridge must write a complete provider block per provider (`baseUrl`, `models[]`, `timeoutSeconds`). Cleanly via `echo $patchJson \| openclaw config patch --stdin` from Python/PowerShell. Alternatively: write a one-shot `openclaw.config.json` template into `OPENCLAW_CONFIG_PATH`. |---@@ -126,7 +126,8 @@ Three findings were outside the scope of the original ADs and are appended here▼┌─────────────────────────────────────────────────────────────┐│ Spawn path: spawn_openclaw(task, mode="async") │-│ (renamed from spawn_sub_jarvis in Wave 4) │+│ (renamed from spawn_sub_jarvis in Wave 4; the tool is │+│ spawn_worker today, spawn_openclaw kept as legacy alias) ││ → Mission-Manager (Phase 6, SQLite-persisted) ││ → Brain says immediately: "Okay, sage Bescheid wenn fertig" <!-- i18n-allow --> ││ → voice session freed │@@ -134,7 +135,7 @@ Three findings were outside the scope of the original ADs and are appended here│ (async, max 3 in parallel)▼┌─────────────────────────────────────────────────────────────┐-│ Bridge: jarvis/plugins/harness/openclaw.py │+│ Bridge: jarvis/plugins/harness/jarvis_agent.py ││ 1. git worktree add agent/<task-id> ││ 2. ENV: <PROVIDER>_API_KEY = get_secret(...) ││ (mapping: gemini→GEMINI_API_KEY, claude-api→ │@@ -156,14 +157,14 @@ Three findings were outside the scope of the original ADs and are appended here│ 6. Job-Object holds the subprocess tree (Windows) ││ taskkill /F /T on the node.exe PID (B-7: openclaw is ││ a .ps1 wrapper, not a Win32 binary) │-│ 7. stdout → openclaw.log + JSON parser: │+│ 7. stdout → jarvis_agent.log + JSON parser: ││ payloads[0].text → voice readback (after scrub) ││ meta.usage.* → CostMeter ││ meta.aborted → cancellation confirmation ││ meta.agentMeta.sessionId → mission trace ID ││ 8. Audit (AD-23): meta.systemPromptReport ││ .injectedWorkspaceFiles[] check │-│ 9. Bus: OpenClawTaskStarted / OpenClawTaskCompleted │+│ 9. Bus: JarvisAgentTaskStarted / JarvisAgentTaskCompleted │└─────────────────┬───────────────────────────────────────────┘▼┌─────────────────────────────────────────────────────────────┐@@ -191,24 +192,26 @@ Parallel paths:## 4. Components-### 4.1 Bridge plugin (`jarvis/plugins/harness/openclaw.py`)+### 4.1 Bridge plugin (`jarvis/plugins/harness/jarvis_agent.py`)++*(This path was never actually created under this name — Welle-4 dropped the standalone harness-plugin approach in favor of the Mission-Manager's own worker provider chain, `jarvis/missions/workers/provider_chain.py`, which drives the same external `openclaw` CLI directly. The design below stayed a Wave-1 plan.)*Implements the `jarvis.harness` protocol (see `jarvis/core/protocols.py`). Expected methods:-- `dispatch(task: HarnessTask) -> AsyncIterator[HarnessChunk]` — spawns the OpenClaw subprocess, yields exactly one result chunk for a one-shot run.+- `dispatch(task: HarnessTask) -> AsyncIterator[HarnessChunk]` — spawns the external `openclaw` subprocess, yields exactly one result chunk for a one-shot run.- `cancel(task_id: str) -> None` — calls the Mission-Manager cancel path, which terminates the Job-Object.**Responsibilities** (post-Wave-1, with an empirically validated mechanics set):-- Read `[harness.openclaw]` config (model, version, time_cap_min, concurrency).-- Provider-slug mapping (AD-6 amendment): `cfg.brain.primary` → OpenClaw slug → ENV var name → Personal-Jarvis secret key.-- API-key lookup via `get_secret("<provider>_api_key", env_fallback="<PROVIDER>_API_KEY")` (standard provider convention, **not** the OpenClaw namespace).+- Read `[harness.jarvis_agent]` config (model, version, time_cap_min, concurrency); `[harness.openclaw]` stays a read-time legacy alias.+- Provider-slug mapping (AD-6 amendment): `cfg.brain.primary` → `openclaw` slug → ENV var name → Personal-Jarvis secret key.+- API-key lookup via `get_secret("<provider>_api_key", env_fallback="<PROVIDER>_API_KEY")` (standard provider convention, **not** a custom `openclaw` namespace).- Pre-boot per provider (AD-22 + AD-24): `openclaw config patch --stdin` with a complete `models.providers.<slug>` block (`baseUrl`, `models[]`, `timeoutSeconds: 900`).- Pre-boot MCPs (AD-8 amendment + AD-23): set `OPENCLAW_STATE_DIR=<mission_dir>/openclaw_state`, then `openclaw mcp add` per registered MCP against this state dir.- Workspace isolation (AD-23): copy a minimal workspace profile into `<mission_dir>/openclaw_state/workspace/` or null out the default files, audit the `meta.systemPromptReport.injectedWorkspaceFiles[]` from the JSON output.- Subprocess lifecycle (AD-1 amendment): `subprocess.Popen([openclaw_cmd, "agent", "--local", "--session-id", task_uuid, "--message", task, "--model", provider_slug+"/"+model, "--json"], cwd=worktree_path, env=env_with_provider_key+OPENCLAW_STATE_DIR)`.- Job-Object (Windows) for process-tree kill via `taskkill /F /T /PID <node-PID>` (B-7: `openclaw` is a `.ps1` wrapper, not a direct Win32 binary; reference the `.cmd` variant on spawn).-- Emit bus events (`OpenClawTaskStarted/Completed`).-- Write logfile to `agent/<task-id>/openclaw.log`.+- Emit bus events (`JarvisAgentTaskStarted/Completed`).+- Write logfile to `agent/<task-id>/jarvis_agent.log`.- JSON result parsing (B-6, schema in `docs/spike-results-jarvis-agents.md` SP-2): `payloads[0].text` as the voice-readback source, `meta.usage.*` as the CostMeter input, `meta.aborted` as the cancellation confirmation, `meta.agentMeta.sessionId/provider/model` as telemetry.**Not responsible for:**@@ -219,7 +222,7 @@ Implements the `jarvis.harness` protocol (see `jarvis/core/protocols.py`). Expec### 4.2 Configuration schema```toml-[harness.openclaw]+[harness.jarvis_agent]enabled = trueversion = "1.4.2" # Pin to tested upstream versionbinary_path = "openclaw" # on PATH or absolute path@@ -228,23 +231,25 @@ time_cap_min = 30 # fix per AD-19concurrency = 3 # parallele Missions max# cost_cap_eur = # AD-20 reserved, v1 leer-[harness.openclaw.notification]+[harness.jarvis_agent.notification]via = "announcement_bus" # uses _on_announcementtoast = true # always desktop toastvoice_when_active = true # voice announcement only when listening```-**Pydantic model:** `OpenClawConfig` in `jarvis/core/config.py` alongside the existing sections. Hot-reload via the config watchdog (Phase 0, present).+`[harness.openclaw]` (and `[harness.openclaw.notification]`) remain accepted as read-time legacy aliases for old installs.++**Pydantic model:** `JarvisAgentHarnessConfig` in `jarvis/core/config.py` alongside the existing sections (this Wave-1 doc originally called it `OpenClawConfig`). Hot-reload via the config watchdog (Phase 0, present).### 4.3 Wizard / setup extension-**Amendment 2026-05-09 (via B-2):** **No new `OPENCLAW_*` secrets** are created in the Credential Manager. OpenClaw reads the standard provider ENV vars (`GEMINI_API_KEY`, `ANTHROPIC_API_KEY`, etc.). The Personal-Jarvis wizard `SECRETS` list in `jarvis/setup/wizard.py` already contains all needed keys (`gemini_api_key`, `anthropic_api_key`, `openai_api_key`, `openrouter_api_key`). The bridge fetches them via `get_secret(...)` and sets the ENV var OpenClaw expects in the subprocess spawn. See the full mapping table at the AD-6 amendment above.+**Amendment 2026-05-09 (via B-2):** **No new `OPENCLAW_*` secrets** are created in the Credential Manager. The external `openclaw` worker CLI reads the standard provider ENV vars (`GEMINI_API_KEY`, `ANTHROPIC_API_KEY`, etc.). The Personal-Jarvis wizard `SECRETS` list in `jarvis/setup/wizard.py` already contains all needed keys (`gemini_api_key`, `anthropic_api_key`, `openai_api_key`, `openrouter_api_key`). The bridge fetches them via `get_secret(...)` and sets the ENV var the external CLI expects in the subprocess spawn. See the full mapping table at the AD-6 amendment above.The Desktop-App `SettingsView` gets a new section **"Jarvis-Agents"** with:- Model dropdown (extensible via config; the default is the frontier-Pro configured in `jarvis.toml [brain.providers.<primary>].deep_model`)- **NO** per-provider API-key input field — the existing API-key fields under "Brain-Provider" are reused-- Hint text: *"All registered MCP servers are passed on to OpenClaw — via pre-boot `openclaw mcp add` with a mission-isolated state dir."*-- Provider-slug display (e.g. "Personal-Jarvis: gemini → OpenClaw: google/gemini-3.1-pro-preview") for transparency+- Hint text: *"All registered MCP servers are passed on to Jarvis-Agents — via pre-boot `openclaw mcp add` with a mission-isolated state dir."*+- Provider-slug display (e.g. "Personal-Jarvis: gemini → Jarvis-Agent: google/gemini-3.1-pro-preview") for transparency### 4.4 Phase-5 Sub-Jarvis components to be DELETED@@ -254,11 +259,11 @@ In Wave 4 the following components are **removed entirely** — no parallel oper|---|---|---|| SubJarvisManager module | `jarvis/sub_jarvis/manager.py` (entire directory) | Class `SubJarvisManager`, all helpers || Sub-Jarvis tier configuration | `jarvis/brain/factory.py` line ~156 + lines ~395-405 | `"sub_jarvis"` entry in the tier definitions, SubJarvisManager construction and wiring |-| Force-spawn heuristic | `jarvis/brain/manager.py` `_should_force_sub_jarvis()`, `_force_spawn_sub_jarvis()`, pattern definitions | Replaced by `_should_force_openclaw()` (same patterns, new tool name) |-| Sub-Jarvis tool | `jarvis/plugins/tool/spawn_sub_jarvis.py` | File renamed to `spawn_openclaw.py`, calls the Mission-Manager instead of SubJarvisManager |+| Force-spawn heuristic | `jarvis/brain/manager.py` `_should_force_sub_jarvis()`, `_force_spawn_sub_jarvis()`, pattern definitions | Replaced by `_should_force_openclaw()` (same patterns, new tool name); superseded again by the current `_should_force_spawn()` / `_force_spawn_worker()` in the later 2026-06-30 rebrand |+| Sub-Jarvis tool | `jarvis/plugins/tool/spawn_sub_jarvis.py` | File renamed to `spawn_openclaw.py`, calls the Mission-Manager instead of SubJarvisManager; the tool file is `jarvis/plugins/tool/spawn_worker.py` today, with `spawn_openclaw`/`spawn_sub_jarvis` kept only as recognized legacy strings || Tier branch in `from_tier_config` | `jarvis/brain/manager.py` line ~362 | Remove the literal `"sub_jarvis"` from the type hint, the method becomes router-only |-| Sub-Jarvis events | `jarvis/missions/events.py` (or wherever `SubJarvisCompleted` is defined) | Renamed to `OpenClawTaskCompleted` (see AD-18). Achievement subscribers must be migrated along with it |-| Achievement references | `jarvis/board/{achievements,evaluator,aggregator,prompts}.py` | `SubJarvisCompleted` → `OpenClawTaskCompleted`, `sub_jarvis_success_total` → `openclaw_success_total`, adjust persona strings in `prompts.py` line ~44 |+| Sub-Jarvis events | `jarvis/missions/events.py` (or wherever `SubJarvisCompleted` is defined) | Renamed to `JarvisAgentTaskCompleted` (see AD-18; the real current class lives in `jarvis/core/events.py`). Achievement subscribers must be migrated along with it |+| Achievement references | `jarvis/board/{achievements,evaluator,aggregator,prompts}.py` | `SubJarvisCompleted` → `JarvisAgentTaskCompleted`, `sub_jarvis_success_total` → `openclaw_success_total` (still the live field/property name today), adjust persona strings in `prompts.py` line ~44 |### 4.5 Reused Phase-6 infrastructure@@ -289,21 +294,21 @@ The following components stay unchanged and are used by the bridge:Forbidden when building / extending the bridge — this list is also mirrored in `AGENTS.md` section 5:-- **AP-OC1 Forking OpenClaw** — we install upstream unchanged. Forks force us into maintenance hell (41k commits, very active).-- **AP-OC2 Enabling OpenClaw's frontend/UI/voice/channels** — violates the AD-3 black-box model. Duplicate state, trigger conflicts. Choose CLI flags so that only the `agent` mode runs.-- **AP-OC3 OpenClaw as a long-lived daemon** — violates AD-1. Cancellation is more complicated, state-leak risk.+- **AP-OC1 Forking the external `openclaw` CLI** — we install upstream unchanged. Forks force us into maintenance hell (41k commits, very active).+- **AP-OC2 Enabling `openclaw`'s frontend/UI/voice/channels** — violates the AD-3 black-box model. Duplicate state, trigger conflicts. Choose CLI flags so that only the `agent` mode runs.+- **AP-OC3 The external `openclaw` CLI as a long-lived daemon** — violates AD-1. Cancellation is more complicated, state-leak risk.- **AP-OC4 Passing LLM output directly to voice** — the Kontrollierer must sign `summary_de`. Otherwise hallucinations, sycophancy, tool-use leak in the voice path.- **AP-OC5 Status-phrase recognition in the LLM** — must be a pattern match in the Router-Brain. Otherwise latency and hallucination ("yes of course it's still running", even though the mission is dead).- **AP-OC6 Adding the cost cap later as a bridge layer** — when needed, that belongs in the Mission-Manager (central cost accumulation), not separately in every harness plugin.-- **AP-OC7 Placing OpenClaw skills in the user skill directory** — OpenClaw's skill system is **dead**. The skill layer is Jarvis-owned (`jarvis/skills/builtin/` + `~/.jarvis/skills/`).+- **AP-OC7 Placing `openclaw` skills in the user skill directory** — `openclaw`'s skill system is **dead**. The skill layer is Jarvis-owned (`jarvis/skills/builtin/` + `~/.jarvis/skills/`).- **AP-OC8 Voice switch for model choice** — violates AD-7. The Phase-7 self-mod mechanism is needed and not yet live. A manual config edit is enough for v1.-- **AP-OC9 Vetting MCP tools from inside the OpenClaw subprocess** — we chose "full trust" (AD-9). Security is placed upstream (which MCPs are registered at all) rather than downstream (tool-call filter).-- **AP-OC10 Mapping the stop command to "Auflegen" (hang up)** — violates AD-11. Hanging up lets OpenClaw keep running. Only explicit stop phrases / UI button / time cap kill the mission.+- **AP-OC9 Vetting MCP tools from inside the `openclaw` subprocess** — we chose "full trust" (AD-9). Security is placed upstream (which MCPs are registered at all) rather than downstream (tool-call filter).+- **AP-OC10 Mapping the stop command to "Auflegen" (hang up)** — violates AD-11. Hanging up lets `openclaw` keep running. Only explicit stop phrases / UI button / time cap kill the mission.- **AP-OC11 Output folder does not exist before spawn** — `git worktree add agent/<id>` is a pre-condition for the spawn, not a downstream `os.makedirs`.-- **AP-OC12 "Who is answering?" confusion** — the bus events `OpenClawTaskStarted/Completed` must be fired with `task_id` AND `model`. Otherwise the Phase-5 bug comes back.-- **AP-OC13 Leaving the model to default** — the spawn args MUST contain `--model <value-from-config>`. If missing, OpenClaw uses its own default — cost and quality drift.-- **AP-OC14 Leaving Sub-Jarvis code alongside OpenClaw** — the Phase-5 Sub-Jarvis tier (SubJarvisManager module, force-spawn methods, `spawn_sub_jarvis` tool, tier configuration) is deleted entirely in Wave 4 (see AD-5). Backwards-compatibility attempts ("let's just leave it in case…") are a violation of AD-5 — the only Jarvis-Agent is OpenClaw.-- **AP-OC15 Not isolating the OpenClaw workspace per mission** *(new from the Wave-1 spike, B-9)* — OpenClaw automatically injects ~35.4k chars of system prompt from `~/.openclaw/workspace/{AGENTS,SOUL,TOOLS,IDENTITY,USER}.md`. Without `OPENCLAW_STATE_DIR=<mission_dir>/openclaw_state` plus a minimal workspace profile in the mission dir, OpenClaw's default persona (e.g. SOUL.md with "I am OpenClaw, an automation assistant…") leaks into the prompt — overriding the Personal-Jarvis persona mandate from `jarvis/brain/persona.py` and potentially surfacing via voice readback. Pre-spawn obligation of the bridge: workspace isolation per mission + audit via `meta.systemPromptReport.injectedWorkspaceFiles[]` from the JSON output.+- **AP-OC12 "Who is answering?" confusion** — the bus events `JarvisAgentTaskStarted/Completed` must be fired with `task_id` AND `model`. Otherwise the Phase-5 bug comes back.+- **AP-OC13 Leaving the model to default** — the spawn args MUST contain `--model <value-from-config>`. If missing, `openclaw` uses its own default — cost and quality drift.+- **AP-OC14 Leaving Sub-Jarvis code alongside the Jarvis-Agent tier** — the Phase-5 Sub-Jarvis tier (SubJarvisManager module, force-spawn methods, `spawn_sub_jarvis` tool, tier configuration) is deleted entirely in Wave 4 (see AD-5). Backwards-compatibility attempts ("let's just leave it in case…") are a violation of AD-5 — the only subagent is the Jarvis-Agent tier, running on the external `openclaw` worker CLI.+- **AP-OC15 Not isolating the `openclaw` workspace per mission** *(new from the Wave-1 spike, B-9)* — the external `openclaw` CLI automatically injects ~35.4k chars of system prompt from `~/.openclaw/workspace/{AGENTS,SOUL,TOOLS,IDENTITY,USER}.md`. Without `OPENCLAW_STATE_DIR=<mission_dir>/openclaw_state` plus a minimal workspace profile in the mission dir, `openclaw`'s default persona (e.g. SOUL.md with "I am OpenClaw, an automation assistant…") leaks into the prompt — overriding the Personal-Jarvis persona mandate from `jarvis/brain/persona.py` and potentially surfacing via voice readback. Pre-spawn obligation of the bridge: workspace isolation per mission + audit via `meta.systemPromptReport.injectedWorkspaceFiles[]` from the JSON output.---@@ -314,7 +319,7 @@ Empirical findings fully documented in `docs/spike-results-jarvis-agents.md` (B-| ID | Question | Status | Finding (short) ||----|---|---|---|| SP-1 | Does `openclaw agent --message` run natively on Windows Node 24, without WSL2? | **RESOLVED ✅** | Yes, `OpenClaw 2026.5.7` runs natively via `npm i -g openclaw`. No WSL2 plan B needed. R-5 is dropped. |-| SP-2 | What stdout format does OpenClaw produce? | **RESOLVED ✅** | JSON document with the `--json` flag. Schema: `payloads[].text` + `meta.{durationMs,usage,aborted,agentMeta,systemPromptReport}`. Fully in spike-results-jarvis-agents.md SP-2. |+| SP-2 | What stdout format does the external `openclaw` CLI produce? | **RESOLVED ✅** | JSON document with the `--json` flag. Schema: `payloads[].text` + `meta.{durationMs,usage,aborted,agentMeta,systemPromptReport}`. Fully in spike-results-jarvis-agents.md SP-2. || SP-3 | Streaming behavior | **RESOLVED ✅** | `--verbose on` (the value is mandatory!) yields bracketed-prefix lines `[<source>] <event>: <kv>`, ~92 lines per run. Pattern-parseable, mid-mission bus events possible. || SP-4 | Model config | **RESOLVED ✅** | CLI flag `--model <provider>/<model>`. Default override does NOT work — `--local` and `--session-id` are mandatory (see AD-1 amendment). || SP-5 | MCP handover | **RESOLVED ✅** | NO `--mcp` flag. Instead: a separate top-level subcommand `openclaw mcp <add\|set\|...>` plus state in `~/.openclaw/` (or `OPENCLAW_STATE_DIR`). The bridge must do pre-boot setup per mission. See AD-8 amendment. |@@ -334,11 +339,11 @@ Three test layers, all with fakes instead of `unittest.mock` (CLAUDE.md conventi### 7.1 Contract tests (`tests/contract/test_harness_protocol.py`)-The Jarvis-Agents-Bridge is hooked into the parametrized harness contract test — the same catalog as OpenClaw, Codex, Open-Interpreter. Verifies: `dispatch` returns an AsyncIterator, `cancel` throws no exception for an unknown task_id, etc.+The Jarvis-Agents-Bridge is hooked into the parametrized harness contract test — the same catalog as the external `openclaw` CLI, Codex, Open-Interpreter. Verifies: `dispatch` returns an AsyncIterator, `cancel` throws no exception for an unknown task_id, etc.-### 7.2 Unit tests (`tests/unit/harness/test_openclaw_bridge.py`)+### 7.2 Unit tests (`tests/unit/harness/test_jarvis_agent_bridge.py`)-Against `FakeOpenClawProcess` (scripts stdout, exit codes, timing). Covered:+Against `FakeJarvisAgentProcess` (scripts stdout, exit codes, timing) — a fake standing in for the external `openclaw` subprocess, never a real network/process call. Covered:- API-key lookup error paths (key missing → clear exception)- MCP serialization (empty list, multiple MCPs, MCP with complex args)- stdout parsing (result format, half-sentence output, empty output)@@ -348,9 +353,9 @@ Against `FakeOpenClawProcess` (scripts stdout, exit codes, timing). Covered:- Time-cap auto-stop (30 min exceeded → auto-kill)- 429 retry logic (max 3x, then fail)-### 7.3 Integration tests (`tests/integration/test_openclaw_e2e.py`)+### 7.3 Integration tests (`tests/integration/test_jarvis_agent_e2e.py`)-End-to-end with a real OpenClaw subprocess (local box, manual trigger via `pytest -m openclaw_live`). Test tasks:+End-to-end with a real external `openclaw` subprocess (local box, manual trigger via `pytest -m openclaw_live` — this marker is still registered and excluded from the default CI run today). Test tasks:- "Schreibe Hallo-Welt-Datei" (write a hello-world file) → worktree contains the file, summary_de is correct.- "Brich ab nach Spawn" (abort after spawn) → mission canceled, worktree cleanup ok.- "Crash-Recovery" → simulate a Jarvis restart, mission state recovered.@@ -358,7 +363,7 @@ End-to-end with a real OpenClaw subprocess (local box, manual trigger via `pytes### 7.4 Mock bridge for headless mode-`tests/fakes/fake_openclaw_bridge.py` simulates OpenClaw without a subprocess. Produces deterministic results, used in CI. The test suite must be green in both modes.+`tests/fakes/fake_jarvis_agent_bridge.py` simulates the external `openclaw` CLI without a subprocess. Produces deterministic results, used in CI. The test suite must be green in both modes.---@@ -369,16 +374,16 @@ Phases for the implementation, each testably completed before the next starts:| # | Phase | Provides | Acceptance criterion ||---|---|---|---|| 1 | **Spike** | `docs/spike-results-jarvis-agents.md` with empirical findings on SP-1..SP-8 | Native Windows run confirmed, stdout format documented |-| 2 | **Pydantic schema + config** | `OpenClawConfig` in `jarvis/core/config.py`, `[harness.openclaw]` in `jarvis.toml` | Hot-reload takes effect, validation throws on an invalid model spec |-| 3 | **Wizard extension** | `OPENCLAW_*_API_KEY` entries in `SECRETS`, new settings section in the Desktop-App | The setup wizard populates the Credential Manager, read via `get_secret` works |-| 4 | **Bridge plugin (mock mode)** | `jarvis/plugins/harness/openclaw.py` with `FakeOpenClawProcess` | Contract + unit tests green without real OpenClaw |+| 2 | **Pydantic schema + config** | `JarvisAgentHarnessConfig` in `jarvis/core/config.py`, `[harness.jarvis_agent]` in `jarvis.toml` (this Wave-1 doc originally spelled these `OpenClawConfig` / `[harness.openclaw]`) | Hot-reload takes effect, validation throws on an invalid model spec |+| 3 | **Wizard extension** | `JARVIS_AGENT_*_API_KEY` entries in `SECRETS`, new settings section in the Desktop-App | The setup wizard populates the Credential Manager, read via `get_secret` works |+| 4 | **Bridge plugin (mock mode)** | `jarvis/plugins/harness/jarvis_agent.py` with `FakeJarvisAgentProcess` | Contract + unit tests green without a real external `openclaw` process || 5 | **Bridge plugin (live mode)** | real subprocess spawn, Job-Object, stdout capture | E2E test with "Hallo-Welt-Datei" (hello-world file) green |-| 6 | **Mission-Manager wiring (Wave 4 start)** | Tool renamed `spawn_sub_jarvis.py` → `spawn_openclaw.py`, calls the Mission-Manager instead of SubJarvisManager. Activates the Phase-6 skeleton in the default voice path. | Voice command "mach mir X" (do X for me) lands at the Mission-Manager → bridge → OpenClaw, bus events flow |-| 7 | **Router-Brain extension** | Status/stop-phrase patterns in `jarvis/brain/manager.py`. `_should_force_sub_jarvis` → `_should_force_openclaw` renamed (same patterns). | "Status?" → Mission-Manager read, "brich ab" (cancel) → mission cancel. Tests in `tests/unit/brain/test_routing.py` migrated along |+| 6 | **Mission-Manager wiring (Wave 4 start)** | Tool renamed `spawn_sub_jarvis.py` → `spawn_openclaw.py`, calls the Mission-Manager instead of SubJarvisManager. Activates the Phase-6 skeleton in the default voice path. (The tool is `spawn_worker` today.) | Voice command "mach mir X" (do X for me) lands at the Mission-Manager → bridge → the external `openclaw` worker, bus events flow |+| 7 | **Router-Brain extension** | Status/stop-phrase patterns in `jarvis/brain/manager.py`. `_should_force_sub_jarvis` → `_should_force_openclaw` renamed (same patterns); further renamed to `_should_force_spawn` in the later rebrand. | "Status?" → Mission-Manager read, "brich ab" (cancel) → mission cancel. Tests in `tests/unit/brain/test_routing.py` migrated along || 8 | **Notification wiring** | `summary_de` from the Kontrollierer → `_on_announcement` | Voice announces the result when the mission is done (provided voice is listening) |-| 9 | **UI Mission-Control-view extension** | OpenClaw-specific columns (model, cost, logfile link) | The live view shows running OpenClaws, the stop button works |+| 9 | **UI Mission-Control-view extension** | Jarvis-Agent-specific columns (model, cost, logfile link) | The live view shows running Jarvis-Agent missions, the stop button works || 10 | **Sub-Jarvis code deletion (Wave 4 main phase)** | Full list see §11 code-migration table. Module `jarvis/sub_jarvis/` gone, force-spawn methods renamed, tier definitions cleaned up, achievement events renamed, skill authoring redirected to the Mission-Manager. | Grep `sub_jarvis` and `SubJarvis` in `jarvis/` is empty (except historical comments with a migration note). Tests green |-| 11 | **End-of-day backstop** | the existing `auto-push-eod.ps1` also runs with an active mission | Push happens even when an OpenClaw worktree is dirty (exclude worktrees or warn) |+| 11 | **End-of-day backstop** | the existing `auto-push-eod.ps1` also runs with an active mission | Push happens even when a Jarvis-Agent worktree is dirty (exclude worktrees or warn) |---@@ -392,19 +397,19 @@ This doc replaces **no** ADR. When bridge implementation starts, two new ADRs ar**Existing ADRs that get amended:**- **ADR-0009 Self-Healing-Worker-Critic** — worker internals may now be an external subprocess. The Action/Observation invariant stays unchanged (`summary_de` from the Kontrollierer source is still the only permissible voice-readback source).-- **ADR-0011 Router-Discipline** — `spawn-sub-jarvis` in the pure-dispatcher baseline becomes `spawn-openclaw`. The recursive-tools protection (D9) stays: `spawn-openclaw` and `dispatch-with-review` may NEVER land in `SUB_TOOLS`.+- **ADR-0011 Router-Discipline** — `spawn-sub-jarvis` in the pure-dispatcher baseline becomes `spawn-openclaw` (Wave-4 name; the live `ROUTER_TOOLS` entry is `spawn-worker` today). The recursive-tools protection (D9) stays: the spawn tool and `dispatch-with-review` may NEVER land in `SUB_TOOLS`.---## 10. Known residual risks-- **R-1 An OpenClaw update breaks the bridge** — mitigated by the AD-21 pinned version. Before a bump: spike + bridge tests.+- **R-1 An `openclaw` update breaks the bridge** — mitigated by the AD-21 pinned version. Before a bump: spike + bridge tests.- **R-2 Cost explosion without a cap** — mitigated by the 30-min time cap and concurrency-3. The schema leaves room for `cost_cap_eur` retrofitting.- **R-3 MCP side effects outside the worktree** — e.g. filesystem MCP with absolute paths, GitHub-MCP push, Drive-MCP upload. The safety valve is the deliberate MCP selection at the wizard. A UI hint at registration becomes mandatory.- **R-4 Async-mode confusion** — the user forgets a mission is still running, closes the app, expects a result. Mitigated by toast + voice announcement on completion + Mission-Control-view persistence.-- **R-5 OpenClaw runs on Windows only via WSL2** — ~~fallback strategy: WSL2 path with path mapping~~ **DROPPED (2026-05-09):** Wave-1 spike SP-1 empirically confirmed that `OpenClaw 2026.5.7` runs natively on Windows Node 24 (`npm i -g openclaw` + `openclaw --version` responds, no WSL2 needed). Risk closed.+- **R-5 The external `openclaw` CLI runs on Windows only via WSL2** — ~~fallback strategy: WSL2 path with path mapping~~ **DROPPED (2026-05-09):** Wave-1 spike SP-1 empirically confirmed that `OpenClaw 2026.5.7` runs natively on Windows Node 24 (`npm i -g openclaw` + `openclaw --version` responds, no WSL2 needed). Risk closed.- **R-6 Skill authoring (Phase 7.5) hangs on the SubJarvisManager** — `jarvis/skills/authoring/runner.py` today calls SubJarvisManager directly to generate code for new skills. If Wave 4 deletes the Sub-Jarvis components without migrating the authoring path along, skill authoring breaks. Mitigation: the skill-authoring migration is a mandatory sub-phase of Phase 10 (see §8) — `runner.py` calls the Mission-Manager with task type `"skill_author"`, the Mission-Manager spawns the Jarvis-Agents-Bridge with a constrained tool set (only `file-write` in `~/.jarvis/skills/staging/`). `draft_writer.py` stays unchanged (forces `state=draft` regardless of what Sub-Jarvis produces).-- **R-7 OpenClaw workspace persona leak** *(new from the Wave-1 spike, B-9, AP-OC15)* — OpenClaw automatically injects ~35.4k chars of system prompt from `~/.openclaw/workspace/` into every `agent --local` run. Risk: persona override (OpenClaw's SOUL.md/IDENTITY.md overrides the Personal-Jarvis persona mandate), cross-mission state leak (shared default path), voice-readback drift ("I am OpenClaw"). Mitigation see AD-23: workspace isolation per mission via `OPENCLAW_STATE_DIR=<mission_dir>/openclaw_state` plus a minimal mission-workspace profile plus an audit loop via `meta.systemPromptReport.injectedWorkspaceFiles[]` from the JSON output.+- **R-7 `openclaw` workspace persona leak** *(new from the Wave-1 spike, B-9, AP-OC15)* — the external `openclaw` CLI automatically injects ~35.4k chars of system prompt from `~/.openclaw/workspace/` into every `agent --local` run. Risk: persona override (`openclaw`'s SOUL.md/IDENTITY.md overrides the Personal-Jarvis persona mandate), cross-mission state leak (shared default path), voice-readback drift ("I am OpenClaw"). Mitigation see AD-23: workspace isolation per mission via `OPENCLAW_STATE_DIR=<mission_dir>/openclaw_state` plus a minimal mission-workspace profile plus an audit loop via `meta.systemPromptReport.injectedWorkspaceFiles[]` from the JSON output.---@@ -416,29 +421,29 @@ Full list of all code paths that are migrated or deleted in Wave 4 (phases 6-10|---|---|---|---|| `jarvis/sub_jarvis/` (entire directory) | DELETE | Phase 10 | SubJarvisManager module, all helpers || `jarvis/brain/manager.py` `from_tier_config(tier="sub_jarvis")` | DELETE from the literal type | Phase 10 | Tier becomes router-only |-| `jarvis/brain/manager.py` `_should_force_sub_jarvis()` | RENAME to `_should_force_openclaw()` | Phase 7 | same patterns, new tool lookup |-| `jarvis/brain/manager.py` `_force_spawn_sub_jarvis()` | RENAME to `_force_spawn_openclaw()` | Phase 7 | now calls the `spawn_openclaw` tool |+| `jarvis/brain/manager.py` `_should_force_sub_jarvis()` | RENAME to `_should_force_openclaw()` | Phase 7 | same patterns, new tool lookup. *(Superseded again: the live method is `_should_force_spawn()`, from the later 2026-06-30 rebrand.)* |+| `jarvis/brain/manager.py` `_force_spawn_sub_jarvis()` | RENAME to `_force_spawn_openclaw()` | Phase 7 | now calls the `spawn_openclaw` tool. *(Superseded again: the live method is `_force_spawn_worker()`, calling the `spawn_worker` tool.)* || `jarvis/brain/factory.py` tier definitions `"sub_jarvis"` | DELETE | Phase 10 | only `"router"` remains || `jarvis/brain/factory.py` `from jarvis.sub_jarvis.manager import SubJarvisManager` | DELETE | Phase 10 | import + all usages |-| `jarvis/plugins/tool/spawn_sub_jarvis.py` | RENAME to `spawn_openclaw.py` | Phase 6 | Body completely rewritten — calls the Mission-Manager instead of SubJarvisManager. Spawn args (post-Wave-1): `agent --local --session-id <uuid> --message <task> --model <provider>/<model> --json [--verbose on]` (see AD-1 amendment, AD-22..AD-24, no `--workdir` — `cwd=<worktree>` + `OPENCLAW_STATE_DIR=<mission_dir>/openclaw_state` via the `subprocess.Popen` env). Provider-slug mapping `cfg.brain.primary` → OpenClaw slug from the AD-6 table (`gemini→google`, `claude-api→anthropic`, etc.). |-| `jarvis/plugins/harness/openclaw.py` | CREATE NEW | Phase 4-5 | The bridge plugin itself (see §4.1). Spawn args + pre-boot setup (`config patch` + `mcp add`) + workspace isolation + JSON parser. |-| `pyproject.toml` `[project.entry-points."jarvis.tool"]` | RENAME `spawn-sub-jarvis` → `spawn-openclaw` | Phase 6 | after edit `pip install -e . --no-deps` |-| `jarvis/brain/factory.py` `ROUTER_TOOLS` frozenset | RENAME entry | Phase 6 | `spawn-sub-jarvis` → `spawn-openclaw` |-| `jarvis/missions/events.py` `SubJarvisCompleted` event | RENAME to `OpenClawTaskCompleted` | Phase 10 | Schema stays, name + subscriber lists migrate |-| `jarvis/board/achievements.py` SubJarvis references | RENAME | Phase 10 | `SubJarvisCompleted` → `OpenClawTaskCompleted`, IDs `sub_jarvis_summoner` → `openclaw_summoner` |-| `jarvis/board/evaluator.py` `sub_jarvis_success_total` | RENAME to `openclaw_success_total` | Phase 10 | migrate the persisted SQLite column along or create a new one in parallel |-| `jarvis/board/aggregator.py` event lists | RENAME | Phase 10 | `SubJarvisBackgroundCompleted` → `OpenClawBackgroundCompleted` |-| `jarvis/board/prompts.py` persona string line ~44 | REWRITE | Phase 10 | "Sub-Jarvis-Spawns" → "OpenClaw-Spawns" |+| `jarvis/plugins/tool/spawn_sub_jarvis.py` | RENAME to `spawn_openclaw.py` | Phase 6 | Body completely rewritten — calls the Mission-Manager instead of SubJarvisManager. Spawn args (post-Wave-1): `agent --local --session-id <uuid> --message <task> --model <provider>/<model> --json [--verbose on]` (see AD-1 amendment, AD-22..AD-24, no `--workdir` — `cwd=<worktree>` + `OPENCLAW_STATE_DIR=<mission_dir>/openclaw_state` via the `subprocess.Popen` env). Provider-slug mapping `cfg.brain.primary` → `openclaw` slug from the AD-6 table (`gemini→google`, `claude-api→anthropic`, etc.). *(The live tool file is `jarvis/plugins/tool/spawn_worker.py`; `spawn_openclaw`/`spawn_sub_jarvis` are kept only as recognized legacy strings.)* |+| `jarvis/plugins/harness/jarvis_agent.py` | CREATE NEW | Phase 4-5 | The bridge plugin itself (see §4.1). Spawn args + pre-boot setup (`config patch` + `mcp add`) + workspace isolation + JSON parser. *(Never actually created under this name — see the §4.1 note; the Mission-Manager's `jarvis/missions/workers/provider_chain.py` drives the external `openclaw` CLI directly instead.)* |+| `pyproject.toml` `[project.entry-points."jarvis.tool"]` | RENAME `spawn-sub-jarvis` → `spawn-openclaw` | Phase 6 | after edit `pip install -e . --no-deps`. *(Superseded again: the live entry point is `spawn-worker`.)* |+| `jarvis/brain/factory.py` `ROUTER_TOOLS` frozenset | RENAME entry | Phase 6 | `spawn-sub-jarvis` → `spawn-openclaw`. *(Superseded again: the live entry is `spawn-worker`.)* |+| `jarvis/missions/events.py` `SubJarvisCompleted` event | RENAME to `JarvisAgentTaskCompleted` | Phase 10 | Schema stays, name + subscriber lists migrate. *(The live class is `JarvisAgentTaskCompleted` in `jarvis/core/events.py`.)* |+| `jarvis/board/achievements.py` SubJarvis references | RENAME | Phase 10 | `SubJarvisCompleted` → `JarvisAgentTaskCompleted` (live: `JarvisAgentTaskCompleted`), IDs `sub_jarvis_summoner` → `openclaw_summoner` (this ID is still the live achievement ID today) |+| `jarvis/board/evaluator.py` `sub_jarvis_success_total` | RENAME to `openclaw_success_total` | Phase 10 | migrate the persisted SQLite column along or create a new one in parallel. *(`openclaw_success_total` is still the live field/property name today — it was not renamed again in the 2026-06-30 rebrand.)* |+| `jarvis/board/aggregator.py` event lists | RENAME | Phase 10 | `SubJarvisBackgroundCompleted` → `OpenClawBackgroundCompleted`. *(The live class is `JarvisAgentBackgroundCompleted` in `jarvis/core/events.py`.)* |+| `jarvis/board/prompts.py` persona string line ~44 | REWRITE | Phase 10 | "Sub-Jarvis-Spawns" → "Jarvis-Agent-Spawns". *(This Wave-1 doc originally said "→ OpenClaw-Spawns"; the live `prompts.py` was cleaned in the 2026-07-18 sweep and no longer carries the retired codename.)* || `jarvis/skills/authoring/runner.py` SubJarvisManager spawn | CONVERT to Mission-Manager spawn | Phase 10 | see R-6 — constrained tool set for the skill-author path |-| `jarvis/skills/authoring/__init__.py` docstring | REWRITE | Phase 10 | "Sub-Jarvis (Opus 4.7) generates…" → "OpenClaw generates…" |+| `jarvis/skills/authoring/__init__.py` docstring | REWRITE | Phase 10 | "Sub-Jarvis (Opus 4.7) generates…" → "Jarvis-Agent generates…" || `jarvis/skills/authoring/schema.py` docstring | REWRITE | Phase 10 | analogous |-| `jarvis/skills/{cli,trigger_matcher,loader,schema}.py` comments | REWRITE | Phase 10 | "Sub-Jarvis-authored" → "OpenClaw-authored" |+| `jarvis/skills/{cli,trigger_matcher,loader,schema}.py` comments | REWRITE | Phase 10 | "Sub-Jarvis-authored" → "Jarvis-Agent-authored" || `tests/unit/brain/test_routing.py` 26 test cases | MIGRATE | Phase 7 | adjust tool name + pattern tests || `tests/unit/test_brain_manager_tier_config.py` | MIGRATE | Phase 10 | remove `"sub_jarvis"` tier tests |-| `tests/integration/test_*sub_jarvis*` | MIGRATE/RENAME | Phase 10 | rebuilt as an E2E test against the OpenClaw-Bridge |+| `tests/integration/test_*sub_jarvis*` | MIGRATE/RENAME | Phase 10 | rebuilt as an E2E test against the Jarvis-Agents-Bridge || `CLAUDE.md` Phase-5 section + Router-Discipline | REWRITE | Drift-Edit #2 (separate mission) | already announced |-| `AGENTS.md` section 5 header | REWRITE | Drift-Edit #3 (separate mission) | "Sub-Jarvis and OpenClaw-Bridge" → "OpenClaw-Bridge" |-| `ADR-0011` (Router-Discipline) | AMEND | Phase 10 | `spawn-sub-jarvis` → `spawn-openclaw` in the pure-dispatcher baseline |+| `AGENTS.md` section 5 header | REWRITE | Drift-Edit #3 (separate mission) | "Sub-Jarvis and OpenClaw-Bridge" → "Jarvis-Agents-Bridge" |+| `ADR-0011` (Router-Discipline) | AMEND | Phase 10 | `spawn-sub-jarvis` → `spawn-openclaw` in the pure-dispatcher baseline. *(Superseded again: the live entry is `spawn-worker`.)* |**Consistency check after Phase 10:** `grep -ri "sub.jarvis\|SubJarvis\|sub_jarvis"` across the whole repo may only produce hits in (a) git history (commits, tags), (b) historical ADRs with status `Superseded`, and (c) this table here. Live code is sub-jarvis-free.@@ -446,8 +451,8 @@ Full list of all code paths that are migrated or deleted in Wave 4 (phases 6-10## 12. Sources-- OpenClaw repo: https://github.com/openclaw/openclaw-- OpenClaw website: https://openclaw.ai/+- `openclaw` repo: https://github.com/openclaw/openclaw+- `openclaw` website: https://openclaw.ai/- Peter Steinberger's blog post: https://steipete.me/posts/2026/openclaw- Jarvis plan: `<USER_HOME>\.claude\plans\also-er-muss-auch-lexical-pond.md` §22 (historical Sub-Jarvis-tier plan, superseded by this doc) <!-- i18n-allow -->- ADR-0009 Self-Healing-Worker-Critic@@ -464,3 +469,5 @@ Full list of all code paths that are migrated or deleted in Wave 4 (phases 6-10| 2026-05-06 | initial | Doc created, AD-1..AD-21 + AP-OC1..AP-OC13 + SP-1..SP-8 + code-migration table || 2026-05-09 | sub-jarvis-cleanup | Glossary §0 + AD-5 tightened + AP-OC14 + code-migration table extended (Sub-Jarvis cleanup in Wave 4) || 2026-05-09 | wave-1-spike | Wave-1 spike completed: AD-1/AD-6/AD-8 amended (spawn pattern, API-key schema, MCP mechanics), new ADs AD-22 (provider idle timeout) + AD-23 (workspace isolation) + AD-24 (config-schema patch). AP-OC15 added (workspace persona leak). R-5 (WSL2 plan B) dropped, R-7 (workspace persona leak) added. SP-1..SP-8 marked RESOLVED (except SP-7 partial). ASCII diagram + §4.1 bridge responsibilities + §4.3 wizard updated to the empirical mechanics. Cross-ref: AGENTS.md AP-OC15 maintained along. |+| 2026-07-18 | codename-cleanup | Retired-codename pass: the internal Jarvis-Agent tier is never called "OpenClaw" as OUR component name any more (2026-06-30 rebrand, CLAUDE.md §4) — updated config-key/class/event mentions to the verified live names (`[harness.jarvis_agent]`, `JarvisAgentHarnessConfig`, `JarvisAgentTaskStarted/Completed`, `JarvisAgentBackgroundCompleted`) with legacy-alias notes where `[harness.openclaw]`/`spawn_openclaw`/`openclaw_success_total`/`openclaw_state` remain genuinely live or accepted. Genuine references to the external `openclaw` worker CLI (its repo, CLI syntax, env vars, on-disk paths) are unchanged. No functional code touched — documentation only. |+| 2026-07-18 | brand-casing-polish | CamelCase-brand pass: remaining prose mentions of the external product's CamelCase spelling ("OpenClaw") rewritten to the code-style lowercase "the external `openclaw` CLI" / "`openclaw`", matching how the CLI actually spells itself everywhere else in this doc. Functional strings (CLI invocations, env-var names, on-disk paths, the github.com/openclaw/openclaw link, historical/quoted identifiers such as `OpenClawConfig`, and literal self-identification quotes like "I am OpenClaw") are unchanged. No functional code touched — documentation only. |diff --git a/docs/jarvis-agents-spawn-failure-analysis-2026-05-18.md b/docs/jarvis-agents-spawn-failure-analysis-2026-05-18.mdindex 993814c09e..1f04f38b4a 100644--- a/docs/jarvis-agents-spawn-failure-analysis-2026-05-18.md+++ b/docs/jarvis-agents-spawn-failure-analysis-2026-05-18.md@@ -108,7 +108,7 @@ Categorized by evidence level. File + line + evidence snippet.| # | Area | Note ||---|---|---|-| **P1** | OpenClaw slug mapping does not know `chatgpt` | [`provider_map.py`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/openclaw/provider_map.py) lists only claude-api/gemini/grok/openai/openrouter. If someone accidentally calls `spawn_openclaw` directly instead of using CodexDirectWorker → `UnknownJarvisProviderError`. |+| **P1** | OpenClaw slug mapping does not know `chatgpt` | [`provider_map.py`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/jarvis_agent/provider_map.py) lists only claude-api/gemini/grok/openai/openrouter. If someone accidentally calls `spawn_openclaw` directly instead of using CodexDirectWorker → `UnknownJarvisProviderError`. || **P2** | Drift-Guard rolls the provider back | [`scripts/jarvis-config-drift-guard.ps1`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/scripts/jarvis-config-drift-guard.ps1) + [`scripts/config-soll.json`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/scripts/config-soll.json) | Both are now in sync on `chatgpt` — BUT if a Drift-Guard runs on ANOTHER machine with an old target value, it could roll back. Not currently observed. <!-- i18n-allow --> || **P3** | CODEX_HOME env leak | [`env.py:89`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/isolation/env.py) | `build_worker_env` sets `CODEX_HOME=<run_dir>/.codex` but `CodexDirectWorker` strips it (Welle 6 fix). If someone uses the old `CodexWorker` (non-Direct), the bug comes back. || **P4** | Sandbox mode wrong for Codex-Codex | [`codex_direct_worker.py:50`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/workers/codex_direct_worker.py) default `sandbox="workspace-write"` | Works, but if the worker step sets `step.allowed_tools` that contains `Write` AND the `step.sandbox` override says Read-Only somewhere, it fails silently with "workspace is currently mounted read-only" (already seen once live today). |diff --git a/docs/jarvis-board/RECON.md b/docs/jarvis-board/RECON.mdindex f5e61508a1..b57bb4d109 100644--- a/docs/jarvis-board/RECON.md+++ b/docs/jarvis-board/RECON.md@@ -69,7 +69,7 @@ Grouped by responsibility. Bold = directly relevant for board Phase A/B.**Harness dispatch**- `HarnessDispatched(harness: str, task: HarnessTask | None)`- `HarnessProgress(harness, result)`-- **`HarnessCompleted(harness: str, result: HarnessResult | None)`** — signal for MCP/Code-CLI/Jarvis-Agent completion. `harness` is e.g. `"mcp-remote"`, `"openclaw"`, `"codex"`, `"open-interpreter"`.+- **`HarnessCompleted(harness: str, result: HarnessResult | None)`** — signal for MCP/Code-CLI/Jarvis-Agent completion. `harness` is e.g. `"mcp-remote"`, `"jarvis_agent"`, `"codex"`, `"open-interpreter"`.**Response + Memory**- `ResponseGenerated(text, language, audio_ref)`diff --git a/docs/phantom-worker-aborted-deep-dive/README.md b/docs/phantom-worker-aborted-deep-dive/README.mdindex 503c2d1723..9a8cec3aa3 100644--- a/docs/phantom-worker-aborted-deep-dive/README.md+++ b/docs/phantom-worker-aborted-deep-dive/README.md@@ -92,7 +92,7 @@ included) + live log `data/jarvis_desktop.log`. Both timestamp-consistent.| `mission_id` | `019ea1da-4552-7ec4-8a88-ffba1773521e` || Dispatched | 2026-06-07 **13:31:36.914** by `source_actor = hauptjarvis` (voice), `language=de` || Originating utterance | ContinuationBuffer join of two fragments: **"Kannst du für mich bitte meinen… Man nen Explorer öffnen mit Computer-User."** |-| Spawn trigger | `Force-Spawn OpenClaw` (log line 30558) — action verb *"öffnen"* + "Computer-User" marker |+| Spawn trigger | `Force-Spawn OpenClaw` (log line 30558; log format since renamed to `Force-Spawn Jarvis-Agent`) — action verb *"öffnen"* + "Computer-User" marker || Worker iterations | **3 real subprocesses** (`ClaudeDirectWorker`, `model=claude-opus-4-8`) || iter0 | exit=0, wall=30.3 s, `tool_use_seen=True` → Critic **revise** (used raw `explorer.exe` shell / prose self-report, **empty diff**) || iter1 | exit=0, wall=377.6 s, `tool_use_seen=True` → Critic **revise** (**empty diff**, only prose self-report, no tool-call evidence) |@@ -198,8 +198,8 @@ was never generalized.**Files:** `announcer.py:189-205`, `readback.py:292-310`.### Layer C — Spawn-perception gap (the user's literal complaint)-The force-spawn heuristic (`BrainManager._should_force_openclaw` /-`_should_force_spawn`, `manager.py:1736+`) deterministically turned a casual+The force-spawn heuristic (`BrainManager._should_force_spawn`,+`manager.py:1736+`) deterministically turned a casual*"open Explorer with Computer-Use"* into a heavyweight background Worker-Criticmission. The user received a brief optimistic ACK("Mach ich, ich kümmere mich im Hintergrund darum…", log 30575) but does **not**@@ -372,7 +372,7 @@ Only the wall-clock-timeout path was relabelled.- Collapse point: `jarvis/missions/kontrollierer/orchestrator.py:858-924`- Aggregation: `jarvis/missions/kontrollierer/orchestrator.py:587-628`- Recovery (ruled out): `jarvis/missions/recovery.py:166-171`-- Force-spawn: `jarvis/brain/manager.py` (`_should_force_openclaw` / `_should_force_spawn`)+- Force-spawn: `jarvis/brain/manager.py` (`_should_force_spawn`)- Bootstrap wiring: `jarvis/missions/init.py` (listener/announcer mode resolve)- Runtime evidence: `data/missions.db` (mission `019ea1da…`, event seqs3734/3738/3745/3752/3753/3754/3755), `data/jarvis_desktop.log` (linesdiff --git a/docs/phase4-integration-test-results.md b/docs/phase4-integration-test-results.mdindex 8358f3b503..497ff1801e 100644--- a/docs/phase4-integration-test-results.md+++ b/docs/phase4-integration-test-results.md@@ -3,6 +3,8 @@**Date**: 2026-04-21**Plan reference**: §17.2, §9-Phase-4+> **Historical:** this note documents the original Phase-4 `dispatch_to_harness` mechanism, since superseded. The `openclaw` harness plugin it describes no longer exists (`jarvis/plugins/harness/` has no `openclaw.py` today); heavy work now runs through `spawn-worker` → Mission Manager. The exact `openclaw agent ...` CLI syntax quoted below still describes the real external `openclaw` binary.+---## What Works Now@@ -10,13 +12,13 @@Your brain can **let real Jarvis-Agents do the work**:```-User (Voice): "Jarvis, frag OpenClaw ob der Build durchläuft" <!-- i18n-allow -->+User (Voice): "Jarvis, frag den Jarvis-Agent ob der Build durchläuft" <!-- i18n-allow -->↓BrainManager (Phase 2) → detects tool-use intent↓-dispatch_to_harness(harness="openclaw", prompt="Check build")+dispatch_to_harness(harness="openclaw", prompt="Check build") # mechanism now inert; renamed jarvis_agent↓-HarnessManager → openclaw harness → subprocess: openclaw agent --output-format stream-json ...+HarnessManager → Jarvis-Agent harness → subprocess: the external openclaw agent --output-format stream-json ...↓stream-JSON parsed → HarnessResult events to the bus → WebChannel → UI↓@@ -29,14 +31,14 @@ TTS speaks**Live verified**:```-$ python -c "… OpenClawHarness.invoke(HarnessTask(prompt='Sag pong')) …"+$ python -c "… JarvisAgentHarness.invoke(HarnessTask(prompt='Sag pong')) …" # class since removedHealth: TrueFINAL exit=0 duration=14922ms cost=$0.0Last 500 chars of stdout:pong```-Real OpenClaw CLI call against your subscription: ✅ pong.+Real Jarvis-Agent (openclaw) CLI call against your subscription: ✅ pong.## Tests@@ -54,7 +56,7 @@ jarvis/harness/manager.py (155 LOC) # discovery, health, dispatch, paralleljarvis/plugins/harness/- openclaw.py (100 LOC) # openclaw agent --output-format stream-json+ openclaw.py (removed) (100 LOC) # was: the external openclaw agent --output-format stream-jsoncodex.py (55 LOC) # codex exec --jsonpython_script.py (35 LOC) # python -c / python file.pymcp_remote.py (110 LOC) # wraps jarvis/mcp/client.py as a harness@@ -81,7 +83,7 @@ tests/| Plugin | Status | Invocation ||---|---|---|-| `openclaw` | ✅ live verified | `openclaw agent --output-format stream-json --include-partial-messages --max-turns 10 <prompt>` |+| `openclaw` (plugin removed; historical roster entry) | ✅ live verified at the time | `openclaw agent --output-format stream-json --include-partial-messages --max-turns 10 <prompt>` || `codex` | ✅ binary found, SDK flow | `codex exec --json --sandbox workspace-write <prompt>` || `python-script` | ✅ live verified | `python -X utf8 -c <code>` or `python <@file.py>` || `mcp-remote` | ✅ wrapper around the Phase-1c MCPClient | uses `BOOTSTRAP_SERVERS` |@@ -95,7 +97,7 @@ Start:python -m jarvis.mcp.server --transport stdio```-Register in OpenClaw:+Register in the Jarvis-Agent CLI:```bashclaude mcp add jarvis python -m jarvis.mcp.server```@@ -108,7 +110,7 @@ Exposed capabilities:- Resource `jarvis://core-memory/persona` — persona + user facts as text- Resource `jarvis://core-memory/all` — core memory as JSON-**Loop detection**: the `JARVIS_MCP_DEPTH` env var is incremented on each server start. From `max_call_depth = 3` (from `jarvis.toml`) onward, the server rejects further tool calls — this prevents `dispatch_to_harness → openclaw → jarvis-mcp → dispatch_to_harness → …` infinite loops.+**Loop detection**: the `JARVIS_MCP_DEPTH` env var is incremented on each server start. From `max_call_depth = 3` (from `jarvis.toml`) onward, the server rejects further tool calls — this prevents `dispatch_to_harness → jarvis-agent → jarvis-mcp → dispatch_to_harness → …` infinite loops.## Safety Integration@@ -116,7 +118,7 @@ The `dispatch_to_harness` tool has `risk_tier = "monitor"`. The user can downgra```tomlcommands = [- "dispatch_to_harness openclaw *", # auto-approve OpenClaw+ "dispatch_to_harness openclaw *", # auto-approve Jarvis-Agent (mechanism now inert)"dispatch_to_harness python-script *", # auto-approve Python scripts]```diff --git a/docs/phase6-prompt-chain.md b/docs/phase6-prompt-chain.mdindex 28d3ae7ad7..0e9aa21a88 100644--- a/docs/phase6-prompt-chain.md+++ b/docs/phase6-prompt-chain.md@@ -42,13 +42,13 @@ Written by the user — typically:----## Prompt 2 — Worker-Harness + Job Object + OpenClaw-stream-json + Codex-CLI+## Prompt 2 — Worker-Harness + Job Object + Jarvis-Agent-stream-json + Codex-CLI<TBD by the user>**Delivers:**- `jarvis/missions/workers/base.py` — `WorkerHarness` protocol.-- `jarvis/missions/workers/openclaw.py` — `openclaw agent --output-format stream-json --include-partial-messages` consumer with `--resume <session_id>` support.+- `jarvis/missions/workers/jarvis_agent.py` — the external `openclaw agent --output-format stream-json --include-partial-messages` consumer with `--resume <session_id>` support.- `jarvis/missions/workers/codex.py` — `codex exec --json --sandbox workspace-write --ask-for-approval never` with per-worker `CODEX_HOME`.- `jarvis/missions/workers/stream_consumer.py` — line-buffered async NDJSON reader with tee to `<run_dir>/logs/stream.jsonl`.- `jarvis/missions/workers/supervisor.py` — done/stuck/waiting detection (process-exit + `result` event + `api_retry` honor + 90s idle + 900s hard cap).diff --git a/docs/phase6-worker-layer.md b/docs/phase6-worker-layer.mdindex d5839ee789..e68799a564 100644--- a/docs/phase6-worker-layer.md+++ b/docs/phase6-worker-layer.md@@ -6,9 +6,11 @@**Branch:** `phase6-self-healing`**Status:** **BUILT** — `jarvis/missions/isolation/` (T1) + `jarvis/missions/workers/` (T2) are live, smoke tests green.+> **Superseded:** this note documents the original Prompt-2 design (`OpenClawWorker`, now retired). The live worker layer has since moved to `jarvis/missions/workers/{provider_chain,claude_direct_worker,codex_direct_worker,gemini_worker,google_cli_worker}.py`; treat the class/file names below as historical.+## What is wired up here?-An **out-of-process worker subprocess** (`openclaw agent` or `codex exec --json`) runs in its own `git worktree`, embedded in a Windows Job Object with `JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE`. The NDJSON stdout pipe is parsed into typed Pydantic events and streamed to the orchestrator as an `AsyncIterator`.+An **out-of-process worker subprocess** (the external `openclaw agent` CLI or `codex exec --json`) runs in its own `git worktree`, embedded in a Windows Job Object with `JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE`. The NDJSON stdout pipe is parsed into typed Pydantic events and streamed to the orchestrator as an `AsyncIterator`.Phase 6 is **additive** to Phase 5 — the Phase-5 `SubJarvisManager` (`jarvis/brain/sub_jarvis.py`) stays untouched. The new mission pipeline (Prompt 1+) only dispatches to the worker layer for ask/multi-step/repair/refactor.@@ -24,7 +26,7 @@ Phase 6 is **additive** to Phase 5 — the Phase-5 `SubJarvisManager` (`jarvis/b│ 1. WorktreeManager.create(mission, task) ││ → sub-agents-outputs/<run>/tasks/<NN>/workspace ││ 2. async with WindowsJobObject('mission-id') as J │- │ 3. OpenClawWorker().spawn(prompt, ...) │+ │ 3. OpenClawWorker().spawn(prompt, ...) (retired) ││ → asyncio.create_subprocess_exec (no shell, no ││ PTY) with CREATE_BREAKAWAY_FROM_JOB ││ 4. J.assign(proc.pid) ← critical moment │@@ -70,14 +72,14 @@ Phase 6 is **additive** to Phase 5 — the Phase-5 `SubJarvisManager` (`jarvis/b| File | Purpose ||---|---|| `base.py` | `WorkerProtocol` (runtime_checkable) + `SpawnedWorker` (frozen dataclass). Structural contracts like the Phase-0 plugins. |-| `openclaw_worker.py` | `OpenClawWorker` — wraps `openclaw agent ... --output-format stream-json --bare`. Spawns with `CREATE_NO_WINDOW | CREATE_NEW_PROCESS_GROUP | CREATE_BREAKAWAY_FROM_JOB`, immediately calls `job.assign(pid)`. |+| `openclaw_worker.py` (retired; see superseded note above) | `OpenClawWorker` — wrapped the external `openclaw agent ... --output-format stream-json --bare` CLI. Spawned with `CREATE_NO_WINDOW | CREATE_NEW_PROCESS_GROUP | CREATE_BREAKAWAY_FROM_JOB`, immediately called `job.assign(pid)`. || `codex_worker.py` | `CodexWorker` — wraps `codex exec --json --sandbox workspace-write --ask-for-approval never`. Per-worker `CODEX_HOME=<run>/.codex`. || `stream_consumer.py` | `read_ndjson_stream()` — async line-buffered reader with tee to `<log_dir>/stream.jsonl`. Parsers `parse_claude_stream_json` and `parse_codex_stream_json` return Pydantic v2 events. || `supervisor.py` | `WorkerSupervisor` — done/stuck/waiting detection with 5 signals (process-exit, `result` event, `api_retry` event, 90 s idle timeout, 900 s hard cap). |## Concrete command lines-**Jarvis-Agent Worker** (see `_build_claude_cmd` in `openclaw_worker.py:63`):+**Jarvis-Agent Worker** (historical; see `_build_claude_cmd` in the retired `openclaw_worker.py:63`, superseded by `jarvis/missions/workers/provider_chain.py`):```bashopenclaw agent "<prompt>" \@@ -111,7 +113,7 @@ codex exec --json \- **`claude.cmd` shim on Windows:** `shutil.which("claude")` returns the shim path on Windows (`%USERPROFILE%/.local/bin/claude.cmd` or `claude` without the `.cmd` suffix). `asyncio.create_subprocess_exec` must receive the **exact** executable name — if the PATH lookup returns a `.cmd` wrapper, we are protected against Windows process-resolver quirks because `create_subprocess_exec` itself does a PATH lookup.- **Long-path cap (200 chars):** worktrees live under `<repo_parent>/sub-agents-outputs/<YYYYMMDDTHHMMSS>__<slug>__<uuid8>/tasks/<NN>__<task>/workspace/`. That fits just under `MAX_PATH=260` with ~60 chars of headroom for file paths. `WorktreeManager.create()` raises `ValueError` on violation.- **Codex-Auth:** the Codex CLI needs `codex login` once, manually, before the first worker spawn. The worker itself reads `CODEX_HOME/auth.json` — we do not copy or symlink the user auth automatically (privacy tradeoff). If `codex` is missing from PATH, the mission plan falls back to Claude-only (TODO Prompt 3).-- **No PTY:** `openclaw agent` and `codex exec --json` work over pipes — no need for `pywinpty`. Saves 3 MB of Rust dep + a class of bugs (research doc decision point #1).+- **No PTY:** the external `openclaw agent` CLI and `codex exec --json` work over pipes — no need for `pywinpty`. Saves 3 MB of Rust dep + a class of bugs (research doc decision point #1).- **`CREATE_BREAKAWAY_FROM_JOB` is mandatory** on Win32, otherwise `AssignProcessToJobObject` is rejected with `ERROR_ACCESS_DENIED`. The job inheritance from the orchestrator (which is itself not a job member) would otherwise kick in.## Smoke Testsdiff --git a/docs/plans/capability-coupling/CHANGELOG.md b/docs/plans/capability-coupling/CHANGELOG.mdindex eddd56fad7..799050c626 100644--- a/docs/plans/capability-coupling/CHANGELOG.md+++ b/docs/plans/capability-coupling/CHANGELOG.md@@ -12,7 +12,7 @@ Agent C done.hardcoded block when `jarvis.core.capabilities` not yet deployed. Both pathsnow append the bilingual "do not invent tools" hard rule.- `jarvis/brain/manager.py`: added `_check_unsupported_intent()` sibling check- before `_force_spawn_openclaw`; emits deterministic DE/EN refusal when+ before `_should_force_spawn`; emits deterministic DE/EN refusal when`has_action_intent=True and resolve_intent=None and not smalltalk`.No LLM call (AP-11 compliant).- `jarvis/brain/ack_brain/persona_prompt.py`: extended forbidden-vocabulary listdiff --git a/docs/plans/capability-coupling/SPEC.md b/docs/plans/capability-coupling/SPEC.mdindex e91d85917e..a585702029 100644--- a/docs/plans/capability-coupling/SPEC.md+++ b/docs/plans/capability-coupling/SPEC.md@@ -32,7 +32,7 @@ class CapabilityRegistry:Returns None when no capability covers the intent."""def has_action_intent(self, utterance: str) -> bool:"""Heuristic: does the utterance look like a request for action- (verb present) vs. smalltalk/Q&A. Mirrors _should_force_openclaw verbs."""+ (verb present) vs. smalltalk/Q&A. Mirrors _should_force_spawn verbs."""def render_for_prompt(self, lang: Literal["de","en"]="de") -> str:"""Bullet list rendered into the system prompt. Replaces thehardcoded 'NUTZE: search_web' block."""@@ -64,7 +64,7 @@ if registry.has_action_intent(normalized) and registry.resolve_intent(normalized```New mode `UNSUPPORTED` is added to `LocalActionMode`; manager.py routes it directly to TTS, skipping brain dispatch.-**(b) Mirror gate in `jarvis/brain/manager.py`** — `_should_force_openclaw` already runs verb-classification. Add a sibling `_capability_resolves(text) -> bool` check. If `has_action_intent AND not _capability_resolves AND not _is_smalltalk`:+**(b) Mirror gate in `jarvis/brain/manager.py`** — `_should_force_spawn` already runs verb-classification. Add a sibling `_capability_resolves(text) -> bool` check. If `has_action_intent AND not _capability_resolves AND not _is_smalltalk`:- Skip both brain and Jarvis-Agents spawn.- Emit `_unsupported_response(text)` via the same TTS path as a normal short reply.diff --git a/docs/plans/jarvis-tool-map/build_excalidraw.py b/docs/plans/jarvis-tool-map/build_excalidraw.pyindex b6ba02432a..901b54772f 100644--- a/docs/plans/jarvis-tool-map/build_excalidraw.py+++ b/docs/plans/jarvis-tool-map/build_excalidraw.py@@ -372,7 +372,7 @@ def region_core():begin_room()core = [("BrainManager.generate()", "intent-router + fallback + force-spawn (manager.py:1519)", "brain", "core.bm"),- ("_should_force_openclaw", "smalltalk>verb>marker, strict default (manager.py:1088)", "brain", "core.fs"),+ ("_should_force_spawn", "smalltalk>verb>marker, strict default (manager.py:1088)", "brain", "core.fs"),("local_action_fast_path", "deterministic local tool, NO LLM (manager.py:1179)", "brain", "core.local"),("ROUTER tier (single)", "sub-jarvis deleted Welle4; only 'router' (factory.py:119)", "brain", "core.router"),("ROUTER_TOOLS frozenset", "13 + 3 self-mod = 16 live tools (factory.py:40)", "info", "core.rt"),@@ -407,7 +407,7 @@ def region_flow():("6 · local_action_gate", "deterministic local tool, no LLM", "flow"),("7 · force-spawn OR LLM router", "heavy worker OR ROUTER_TOOLS tool-use loop", "flow"),("8 · Tool dispatch", "ToolExecutor.execute -> ActionExecuted", "flow"),- ("8b · Worker spawn (heavy)", "spawn_openclaw -> Mission/Kontrollierer", "flow"),+ ("8b · Worker spawn (heavy)", "spawn-worker -> Mission/Kontrollierer", "flow"),("9 · Result aggregate", "ResponseGenerated / BackgroundCompleted", "flow"),("10 · scrub_for_voice", "regex-only, NO LLM (AP-11)", "flow"),("11 · TTS -> audio", "_speak -> synthesize -> WASAPI out", "flow"),@@ -446,7 +446,7 @@ def region_catalog():("screen-snapshot", "monitor · screen capture (screen_snapshot.py:92)", "live"),("dispatch-to-harness", "monitor · route to harness (dispatch_to_harness.py)", "live"),("multi-spawn", "monitor · parallel spawns (multi_spawn.py)", "live"),- ("spawn-openclaw", "monitor · spawn Mission (spawn_openclaw.py:124)", "live", "cat.spawn"),+ ("spawn-worker", "monitor · spawn Mission (spawn_worker.py:124)", "live", "cat.spawn"),("dispatch-with-review", "monitor · quality-gate pipeline (dispatch_with_review.py)", "live"),("awareness-snapshot", "safe · sync state read (awareness_snapshot.py:42)", "live"),("awareness-recall", "safe · FTS5/BM25 episodes (awareness_recall.py:82)", "live"),@@ -512,7 +512,7 @@ def region_mission():global Ybegin_room()chain = [- ("spawn_openclaw tool", "router tool, dispatch+run (spawn_openclaw.py:116)", "live", "m.entry"),+ ("spawn-worker tool", "router tool, dispatch+run (spawn_worker.py:116)", "live", "m.entry"),("MissionManager.dispatch()", "upsert PENDING + MissionDispatched (manager.py:84)", "live"),("MissionEventStore", "SQLite append_and_publish, source-of-truth", "live"),("startup_recover", "stale non-terminal -> FAILED on boot (recovery.py:23)", "live"),@@ -546,7 +546,7 @@ def region_mission():return grid(chain, cx, cy, w - 150, 5, gx=22, gy=28)Y = room("HEAVY WORK · Phase-6 Mission / Critic loop (self-healing)",- "spawn_openclaw -> isolated worktree worker -> Critic (<=3 loops) -> Kontrollierer signs -> voice reads ONLY signed summary_de",+ "spawn-worker -> isolated worktree worker -> Critic (<=3 loops) -> Kontrollierer signs -> voice reads ONLY signed summary_de",T_MISSION, MARGIN, Y, PAGE_W, content, key="mission") + GAPa = ANCHORSif "m.loop" in a and "m.verdict" in a:@@ -627,10 +627,10 @@ def region_features():("AD-OE6 zero silent drops", "always-speak guards live, taxonomy partial", "partial"),("LatencyTracker (Wave 0)", "fire-and-forget spans, NO p95 CI gate (telemetry/latency.py:35)", "partial"),]),- ("OpenClaw bridge (harness)", [- ("OpenClawHarness plugin", "registered but DORMANT live_mode=False (openclaw.py:164)", "partial"),+ ("Jarvis-Agent bridge (harness)", [+ ("Jarvis-Agent harness plugin", "removed in Welle-4 (was registered but DORMANT live_mode=False, formerly openclaw.py:164)", "partial"),("Welle 1 spike", "provider_map + spawn-arg done", "live"),- ("Welle 2 live bridge", "invoke() returns mock string (openclaw.py:416)", "open"),+ ("Welle 2 live bridge", "invoke() returns mock string (formerly openclaw.py:416, file removed)", "open"),("Welle 3 live subprocess", "factory+JobObject exist, never armed", "partial"),("Welle 4 sub-jarvis deleted", "only 'router' tier (factory.py:121)", "live"),("ACTUAL worker = claude-cli", "voice uses claude_direct_worker, not the plugin", "live"),@@ -734,8 +734,8 @@ def region_bus():("ActionProposed/Approved/Executed", "tool lifecycle (events.py:125)", "evt"),("ToolCallStarted/Completed", "tool dispatch telemetry (events.py:809)", "evt"),("ResponseGenerated", "brain output text+lang (events.py:178)", "evt"),- ("OpenClawTaskStarted/Completed", "worker mission lifecycle (events.py:651)", "evt"),- ("OpenClawBackgroundCompleted", "proactive readback trigger (events.py:824)", "evt"),+ ("JarvisAgentTaskStarted/Completed", "worker mission lifecycle (events.py:651)", "evt"),+ ("JarvisAgentBackgroundCompleted", "proactive readback trigger (events.py:824)", "evt"),("AnnouncementRequested", "preamble/info -> TTS (events.py:296)", "evt"),("SystemStateChanged", "IDLE/LISTENING/THINKING/SPEAKING (events.py:226)", "evt"),("BrainProviderSwitched", "runtime switch (events.py:92)", "evt"),@@ -759,7 +759,7 @@ def evidence_panel():snippets = [("ROUTER_TOOLS frozenset (jarvis/brain/factory.py:40)",'ROUTER_TOOLS = frozenset({\n "run-shell","screen-snapshot","dispatch-to-harness",\n'- ' "multi-spawn","spawn-openclaw","dispatch-with-review",\n'+ ' "multi-spawn","spawn-worker","dispatch-with-review",\n'' "awareness-snapshot","awareness-recall","run-skill",\n'' "wiki-recall","wiki-page-read","wiki-ingest"})\n''# + 3 self-mod tools = 16 live router tools'),@@ -830,7 +830,7 @@ def region_gap_connectors():("input", "core", "transcript -> brain"),("core", "flow", "generate() sequence"),("flow", "catalog", "ROUTER_TOOLS tool-use"),- ("catalog", "mission", "spawn-openclaw -> Mission"),+ ("catalog", "mission", "spawn-worker -> Mission"),("mission", "memory", "facts written / recalled"),]for a_, b_, lab in seq:diff --git a/docs/plans/optimistic-execution-v1/README.md b/docs/plans/optimistic-execution-v1/README.mdindex fa169fbab0..ceb85da9fb 100644--- a/docs/plans/optimistic-execution-v1/README.md+++ b/docs/plans/optimistic-execution-v1/README.md@@ -20,7 +20,7 @@ v1.0 promise, end-to-end, measured".| Main Jarvis (Talker) | Router-Brain (`jarvis/brain/factory.py` `ROUTER_TOOLS`) + Ack-Brain (`jarvis/brain/ack_brain/`) | exceeded | ACK must fire *before* dispatch, guaranteed || Heavy-Duty Worker ("4.6") | Mission-Manager + Worker-Critic + `claude-cli` Sonnet (OAuth) | live | success-rate telemetry || Event-Bus / Task-Queue | `jarvis/core/bus.py` + mission event store | live | latency spans on the bus |-| Optimistic Execution | Force-spawn ACK + `BrainManager._should_force_openclaw` | partial | make it the guaranteed default path |+| Optimistic Execution | Force-spawn ACK + `BrainManager._should_force_spawn` | partial | make it the guaranteed default path || Smart Tools (Gmail/MCP) | `jarvis/mcp/adapter.py` + Jarvis-Agent worker | Welle 2/3 open | worker-makes-the-call, end-to-end || Dumb Tools (local scripts) | `jarvis/brain/local_action_gate.py` | gaps (BUG-020) | allowlist coverage + zero false-spawn || Oops protocol / VAD / organic correction | Always-speak guards (BUG-020) + announcement path + Silero VAD | **no closed loop** | the full error→inject→VAD-gated→correct loop |@@ -125,7 +125,7 @@ EventBus = append-only log; mission store = read model).- **Event-Bus:** keep `jarvis/core/bus.py` (frozen dataclasses, `trace_id`,`timestamp_ns`, `_safe_dispatch` swallow). The talker↔worker queue is the mission eventstore. No external broker (cloud-first doctrine).-- **Router logic:** keep the `_should_force_openclaw` heuristic (smalltalk allowlist >+- **Router logic:** keep the `_should_force_spawn` heuristic (smalltalk allowlist >action verb > external-system marker). Add (a) latency instrumentation, (b) an *optional*embedding-similarity tiebreaker that runs only on ambiguous cases, behind a config flag,default off, hard < 150 ms budget, heuristic fallback.@@ -159,7 +159,7 @@ EventBus = append-only log; mission store = read model).- **2.1** Extend `local_action_gate` allowlist + regression cases ("mach die Adjusties","spiel X ab") (`jarvis/brain/local_action_gate.py` + `tests/unit/brain/test_local_action_gate.py`).- **2.2** False-spawn guard: every allowlist entry must NOT trigger- `_should_force_openclaw` (`tests/unit/brain/test_routing.py`).+ `_should_force_spawn` (`tests/unit/brain/test_routing.py`).- **2.3** Instrument router decision latency; CI fails if p95 > 150 ms.- **2.4** Optional embedding tiebreaker behind a config flag (default off, < 150 ms,heuristic fallback).diff --git a/docs/plans/optimistic-execution-v1/prototype/optimistic/registry.py b/docs/plans/optimistic-execution-v1/prototype/optimistic/registry.pyindex 964698f8e2..262914b7bb 100644--- a/docs/plans/optimistic-execution-v1/prototype/optimistic/registry.py+++ b/docs/plans/optimistic-execution-v1/prototype/optimistic/registry.py@@ -88,7 +88,7 @@ SMALLTALK_TRIGGERS: tuple[str, ...] = ( # i18n-allow: speech input vocabulary D# Action-verb markers — an unknown command containing one of these is treated as# a SMART task (worker spawn) rather than smalltalk. Mirrors the production-# force-spawn heuristic in BrainManager._should_force_openclaw.+# force-spawn heuristic in BrainManager._should_force_spawn.ACTION_VERBS: tuple[str, ...] = ( # i18n-allow: speech input vocabulary DE"lies","baue",diff --git a/docs/plans/optimistic-execution-v1/prototype/optimistic/router.py b/docs/plans/optimistic-execution-v1/prototype/optimistic/router.pyindex 81a579e0b9..8287f78004 100644--- a/docs/plans/optimistic-execution-v1/prototype/optimistic/router.py+++ b/docs/plans/optimistic-execution-v1/prototype/optimistic/router.py@@ -3,7 +3,7 @@``classify(command)`` returns the RouteKind for one user utterance.``ack_for(command, route)`` returns the spoken German acknowledgement text.-Classification order (mirrors BrainManager._should_force_openclaw in production):+Classification order (mirrors BrainManager._should_force_spawn in production):1. match_tool(command) returns a DUMB tool → RouteKind.DUMB_TOOL2. match_tool(command) returns a SMART tool → RouteKind.SMART_TOOLdiff --git a/docs/plans/optimistic-execution-v2-real-ai/optimistic/registry.py b/docs/plans/optimistic-execution-v2-real-ai/optimistic/registry.pyindex 6b63e46335..94bfe67eb9 100644--- a/docs/plans/optimistic-execution-v2-real-ai/optimistic/registry.py+++ b/docs/plans/optimistic-execution-v2-real-ai/optimistic/registry.py@@ -88,7 +88,7 @@ SMALLTALK_TRIGGERS: tuple[str, ...] = (# Action-verb markers — an unknown command containing one of these is treated as# a SMART task (worker spawn) rather than smalltalk. Mirrors the production-# force-spawn heuristic in BrainManager._should_force_openclaw.+# force-spawn heuristic in BrainManager._should_force_spawn.ACTION_VERBS: tuple[str, ...] = ("lies","baue",diff --git a/docs/plans/optimistic-execution-v2-real-ai/optimistic/router.py b/docs/plans/optimistic-execution-v2-real-ai/optimistic/router.pyindex 81a579e0b9..8287f78004 100644--- a/docs/plans/optimistic-execution-v2-real-ai/optimistic/router.py+++ b/docs/plans/optimistic-execution-v2-real-ai/optimistic/router.py@@ -3,7 +3,7 @@``classify(command)`` returns the RouteKind for one user utterance.``ack_for(command, route)`` returns the spoken German acknowledgement text.-Classification order (mirrors BrainManager._should_force_openclaw in production):+Classification order (mirrors BrainManager._should_force_spawn in production):1. match_tool(command) returns a DUMB tool → RouteKind.DUMB_TOOL2. match_tool(command) returns a SMART tool → RouteKind.SMART_TOOLdiff --git a/docs/plans/voice-phrase-mismatch-2026-05-26/README.md b/docs/plans/voice-phrase-mismatch-2026-05-26/README.mdindex 848b8865aa..ac62b7a1e2 100644--- a/docs/plans/voice-phrase-mismatch-2026-05-26/README.md+++ b/docs/plans/voice-phrase-mismatch-2026-05-26/README.md@@ -82,7 +82,7 @@ the Critic returning `approve` (see `jarvis/missions/critic/runner.py`That the phrase fired at all means:1. The router-brain decided to **spawn a mission** for the user's- utterance (force-spawn, `BrainManager._should_force_openclaw`, or+ utterance (force-spawn, `BrainManager._should_force_spawn`, orthe deprecated `spawn_openclaw` tool path).2. The mission ran, the worker produced an answer/diff, the Criticrejected it.@@ -147,13 +147,13 @@ surfaces. Phrase 2 must come from one of them:│ brain reply → TTS │ design; only scrub_for_voice between brain & TTS. ││ │ ││ B) _on_announcement │ AnnouncementRequested events from MissionAnnouncer, │-│ (AnnouncementRequested) │ Ack-Brain, OpenClaw-bridge, │-│ │ spawn-watchdog. Mission/OpenClaw paths are │+│ (AnnouncementRequested) │ Ack-Brain, Jarvis-Agents-bridge, │+│ │ spawn-watchdog. Mission/Jarvis-Agent paths are ││ │ static + ADR-0009-protected. Ack-Brain produces ││ │ LLM-free-text but with persona-prompt + 200 ms ││ │ latency budget. ││ │ │-│ C) _on_background_completed │ OpenClaw bridge readback. Uses summary_de via the │+│ C) _on_background_completed │ Jarvis-Agents bridge readback. Uses summary_de via ││ │ capability-honest summariser. Not a free-text ││ │ vector either. ││ │ │@@ -437,7 +437,7 @@ stays exposed and is tracked separately.- **The deeper question is upstream.** Why did a "simple task"reach the mission spawn in the first place, and why did the Criticreject the worker three iterations in a row? The routing decision- (`BrainManager._should_force_openclaw`) and the Critic rubric for+ (`BrainManager._should_force_spawn`) and the Critic rubric forwhatever the worker produced deserve their own review, independentof the voice-incoherence symptom. **That review is not part of thischange.**diff --git a/docs/prompts/jarvis-agents-mission-reliability-deepdive.md b/docs/prompts/jarvis-agents-mission-reliability-deepdive.mdindex e59fad1949..f222be6176 100644--- a/docs/prompts/jarvis-agents-mission-reliability-deepdive.md+++ b/docs/prompts/jarvis-agents-mission-reliability-deepdive.md@@ -176,7 +176,7 @@ PHASE 4 — PROVE IT (this is the stop condition; do not declare success withoutpre-existing red is foreign (worktree-isolate it).2. Restart the LIVE app via POST http://127.0.0.1:47821/api/settings/restart-appand confirm it is running the new code (jarvis.__file__ check + the chosen- provider visible via GET /api/openclaw/status or the settings API).+ provider visible via GET /api/jarvis-agent/status or the settings API).3. Dispatch a BATCH of at least 8 REAL missions through the live app (not just theharness), mixing the three task classes:- file/side-effect task (e.g. "write a 200-word story into story.txt") x3diff --git a/docs/reference/jarvis-cli.md b/docs/reference/jarvis-cli.mdindex 61be1b293c..40bcead767 100644--- a/docs/reference/jarvis-cli.md+++ b/docs/reference/jarvis-cli.md@@ -121,8 +121,8 @@ curl -s http://127.0.0.1:47821/api/voice-bridge/health## Skill runner: ``jarvis-skills``CLI frontend to the ``SkillRegistry`` — lists, inspects, runs skills,-imports external OpenClaw skills, and promotes Jarvis-Agent-authored-drafts to ``state=active``.+imports external `openclaw` (Claude-Code-compatible) skills, and promotes+Jarvis-Agent-authored drafts to ``state=active``.**Synopsis:**@@ -136,7 +136,7 @@ jarvis-skills (--list | --info NAME | --run NAME || ``--list`` | Table of all skills (name, version, state, triggers). || ``--info NAME`` | Full detail for a skill: frontmatter, triggers, tools, resources, risk tier. || ``--run NAME`` | Run a skill (requires an MCP connection context). |-| ``--import-claude-skills PATH`` | Imports Anthropic-OpenClaw skills from a directory into the user skill repo. |+| ``--import-claude-skills PATH`` | Imports skills from the external `openclaw` CLI's skill directory into the user skill repo. || ``--list-drafts`` | List Jarvis-Agent-authored drafts (``state=draft``). || ``--promote SLUG`` | Promote a draft skill to ``state=active`` — user-explicit activation with a security lint of the skill body. |diff --git a/docs/spike-results-jarvis-agents.md b/docs/spike-results-jarvis-agents.mdindex f53f093b66..37f5e5a951 100644--- a/docs/spike-results-jarvis-agents.md+++ b/docs/spike-results-jarvis-agents.md@@ -3,7 +3,7 @@**Status:** Done — Wave 1 completed on 2026-05-09**Script:** `scripts/spikes/openclaw_probe.ps1`**Reference:** `docs/jarvis-agents-bridge.md` §6 Open spike questions-**OpenClaw version tested:** 2026.5.7 (eeef486), via `npm i -g openclaw`+**`openclaw` version tested:** 2026.5.7 (eeef486), via `npm i -g openclaw`**Models tested:**- `google/gemini-3-flash-preview` (matches `jarvis.toml [brain.providers.gemini].model` — Personal Jarvis hot path)- `google/gemini-3.1-pro-preview` (matches `[brain.providers.gemini].deep_model` — frontier premium)@@ -15,7 +15,7 @@## Preparation on the Windows box (validated)1. **Node 24 LTS** — `node --version` answers `v24.13.0` (Windows-native, no WSL2 needed).-2. **Install OpenClaw** via `npm i -g openclaw` — installs 559 packages in ~2 min, produces `<USER_HOME>\AppData\Roaming\npm\openclaw{.cmd, .ps1}` (see B-7 on the wrapper mechanics).+2. **Install `openclaw`** via `npm i -g openclaw` — installs 559 packages in ~2 min, produces `<USER_HOME>\AppData\Roaming\npm\openclaw{.cmd, .ps1}` (see B-7 on the wrapper mechanics).3. **API key** from the Personal Jarvis Credential Manager via `get_secret(...)` into the provider-specific ENV var — see B-2 for the mapping table.4. **Run the spike:**```powershell@@ -48,7 +48,7 @@## SP-2: stdout format-**Question:** What format does OpenClaw deliver over stdout? Plain text, JSON, NDJSON stream?+**Question:** What format does the external `openclaw` CLI deliver over stdout? Plain text, JSON, NDJSON stream?**Finding:** ✅ **JSON document** with the `--json` flag, with a clear structure.@@ -146,7 +146,7 @@ Recognized CLI flags from `openclaw agent --help`:- `--local` — embedded agent without channel routing (MANDATORY for the subprocess bridge — see B-1)- `--session-id <id>` — explicit session identifier (MANDATORY — see B-1)-**Importantly falsified:** Personal Jarvis provider slugs ≠ OpenClaw slugs (see B-2).+**Importantly falsified:** Personal Jarvis provider slugs ≠ `openclaw` slugs (see B-2).---@@ -177,7 +177,7 @@ ENV vars for state control:## SP-6: Cost tracking-**Question:** Does OpenClaw deliver token counts in stdout (or a structured result body), or do we have to count via the provider API?+**Question:** Does the external `openclaw` CLI deliver token counts in stdout (or a structured result body), or do we have to count via the provider API?**Finding:** ✅ **A `meta.usage` block in the JSON output** with a complete cost breakdown.@@ -203,7 +203,7 @@ Plus `meta.agentMeta.promptTokens: 21030` and `meta.agentMeta.contextTokens: 104## SP-7: Cancellation behavior-**Question:** Does OpenClaw respect SIGTERM and do a clean shutdown, or do we have to hard-kill immediately via a Job Object?+**Question:** Does the external `openclaw` CLI respect SIGTERM and do a clean shutdown, or do we have to hard-kill immediately via a Job Object?**Finding:** 🟡 **Mechanics documented, test inconclusive**.@@ -215,7 +215,7 @@ Plus `meta.agentMeta.promptTokens: 21030` and `meta.agentMeta.contextTokens: 104**Test inconclusive — reason:**- With `gemini-3-flash-preview`, test tasks (even a "2000-word essay with `--thinking max`") finished in <8s — the job-watcher poll at 8s was too short-- With `gemini-3.1-pro-preview` the run hit OpenClaw's **internal idle timeout** after 264s (see B-8) → the cancellation test was not practically feasible because OpenClaw aborted on its own+- With `gemini-3.1-pro-preview` the run hit `openclaw`'s **internal idle timeout** after 264s (see B-8) → the cancellation test was not practically feasible because `openclaw` aborted on its own- Recommended Wave-2 validation: a local model (Ollama) or Anthropic Opus with a long task**Implication for the stop mechanism (AD-11):**@@ -227,7 +227,7 @@ Plus `meta.agentMeta.promptTokens: 21030` and `meta.agentMeta.contextTokens: 104## SP-8: Worktree path handoff-**Question:** Does OpenClaw accept `--workdir`, `--cwd`, or do we have to set `process.chdir`/the subprocess working directory?+**Question:** Does the external `openclaw` CLI accept `--workdir`, `--cwd`, or do we have to set `process.chdir`/the subprocess working directory?**Finding:** ✅ **Confirmed negative — no workdir flags. Spawner `cwd=` is mandatory.**@@ -240,13 +240,13 @@ The same for `--cwd` and `--working-directory`. All three flags were rejected wi**Implication for the bridge:**- `subprocess.Popen(..., cwd=worktree_path)` (Python) or `Start-Process -WorkingDirectory $worktree` (PowerShell) is the only path-- OpenClaw writes the default workspace to `~/.openclaw/workspace/` (see `meta.systemPromptReport.workspaceDir`) — this collides across parallel missions, so additionally set `OPENCLAW_STATE_DIR=<mission_dir>`+- The external `openclaw` CLI writes the default workspace to `~/.openclaw/workspace/` (see `meta.systemPromptReport.workspaceDir`) — this collides across parallel missions, so additionally set `OPENCLAW_STATE_DIR=<mission_dir>`---## Bridge architecture findings (B-1..B-12)-These findings are the condensed architecture implications from the SP tests. They belong in `docs/jarvis-agents-bridge.md` (Wave-2 update via `/skill openclaw-doc-update`).+These findings are the condensed architecture implications from the SP tests. They belong in `docs/jarvis-agents-bridge.md` (Wave-2 update via `/skill jarvis-agent-doc-update`).### B-1: Spawn pattern (corrected)@@ -265,13 +265,13 @@ Without `--local` and `--session-id`, every call fails with:Error: Pass --to <E.164>, --session-id, or --agent to choose a session```-`--local` is mandatory for headless subprocess mode (otherwise OpenClaw tries to channel-route to Telegram/WhatsApp/etc.). `--session-id <uuid>` as the unique mission ID.+`--local` is mandatory for headless subprocess mode (otherwise `openclaw` tries to channel-route to Telegram/WhatsApp/etc.). `--session-id <uuid>` as the unique mission ID.### B-2: Provider-slug mapping (architecture-critical)-Personal Jarvis provider slugs in `jarvis.toml` ≠ OpenClaw slugs in `--model`. The bridge needs a translation:+Personal Jarvis provider slugs in `jarvis.toml` ≠ `openclaw` slugs in `--model`. The bridge needs a translation:-| `jarvis.toml` provider | OpenClaw slug | OpenClaw ENV var (read) | Personal Jarvis secret key |+| `jarvis.toml` provider | `openclaw` slug | `openclaw` ENV var (read) | Personal Jarvis secret key ||---|---|---|---|| `gemini` | `google` | `GEMINI_API_KEY` (fallback `GOOGLE_API_KEY`) | `gemini_api_key` || `claude-api` | `anthropic` | `ANTHROPIC_API_KEY` | `anthropic_api_key` |@@ -279,11 +279,11 @@ Personal Jarvis provider slugs in `jarvis.toml` ≠ OpenClaw slugs in `--model`.| `openrouter` | `openrouter` | `OPENROUTER_API_KEY` | `openrouter_api_key` || `grok` | `xai` | `XAI_API_KEY` (fallback `GROK_API_KEY`) | (Grok key, separate) |-OpenClaw knows **46 providers** in total (`openclaw models list --all` shows 1122 models). All Personal-Jarvis-relevant ones are included: anthropic, google, google-vertex, openai, openrouter, xai, groq, deepseek, mistral, moonshotai, etc.+The external `openclaw` CLI knows **46 providers** in total (`openclaw models list --all` shows 1122 models). All Personal-Jarvis-relevant ones are included: anthropic, google, google-vertex, openai, openrouter, xai, groq, deepseek, mistral, moonshotai, etc.Pre-spawn requirement in the bridge:1. Read `cfg.brain.primary` (e.g. `"gemini"`)-2. Map → OpenClaw slug `"google"`+2. Map → `openclaw` slug `"google"`3. Model from `cfg.brain.providers.gemini.model` (hot path) or `.deep_model` (Jarvis-Agent tier)4. Secret from Credential Manager → set the ENV var in the spawn subprocess5. `openclaw agent --local --model google/<model> ...`@@ -308,9 +308,9 @@ Setup pipeline per spawn (from the SP-3 verbose stages):- attempt-dispatch: 9ms- **Total setup: 17329ms** (= 17.3s before the first LLM call)-**Implication:** OpenClaw as a one-shot subprocess per mission is expensive for the hot path. The bridge should consider:+**Implication:** the external `openclaw` CLI as a one-shot subprocess per mission is expensive for the hot path. The bridge should consider:- `OPENCLAW_STATE_DIR=<mission_dir>` with a pre-warmed `node_modules` cache-- Daemon mode (if supported by OpenClaw — Phase-2 research)+- Daemon mode (if supported by `openclaw` — Phase-2 research)- A mission pool instead of one-shot (Phase-3 optimization)### B-6: JSON output schema (reliably usable)@@ -338,7 +338,7 @@ On Windows, `openclaw` is **not a standalone binary**, but three files in the `n### B-8: Provider idle timeout (architecture-critical)-OpenClaw has an **internal `model idle timeout` watchdog** that triggers on long Pro-model responses:+The external `openclaw` CLI has an **internal `model idle timeout` watchdog** that triggers on long Pro-model responses:```[agent/embedded] [llm-idle-timeout] google/gemini-3.1-pro-preview produced no reply@@ -356,11 +356,11 @@ The default timeout is apparently `~264s`. Frontier-premium models with full rea### B-9: System-prompt auto-injection (security-relevant)-OpenClaw automatically injects workspace files into the system prompt. From the SP-2 JSON `systemPromptReport.injectedWorkspaceFiles[]`:+The external `openclaw` CLI automatically injects workspace files into the system prompt. From the SP-2 JSON `systemPromptReport.injectedWorkspaceFiles[]`:```~/.openclaw/workspace/- AGENTS.md 7774 chars ← OpenClaw's own anti-pattern docs, NOT the Personal Jarvis AGENTS.md+ AGENTS.md 7774 chars ← `openclaw`'s own anti-pattern docs, NOT the Personal Jarvis AGENTS.mdSOUL.md 1797 chars ← default personaTOOLS.md 910 charsIDENTITY.md 693 chars@@ -370,7 +370,7 @@ OpenClaw automatically injects workspace files into the system prompt. From theTotal: system prompt 35.4k chars (`projectContextChars: 13783` + `nonProjectContextChars: 21617`).**Risks:**-- Personal Jarvis persona drift: OpenClaw's SOUL.md overrides the Personal Jarvis persona mandate+- Personal Jarvis persona drift: `openclaw`'s SOUL.md overrides the Personal Jarvis persona mandate- Persona leak: the default IDENTITY.md could cause an "I am OpenClaw" self-reference in the voice output (would be caught by the `scrub_for_voice` SELF_REFERENCE pattern, but ideally never in the first place)**Bridge requirement:**@@ -380,10 +380,10 @@ Total: system prompt 35.4k chars (`projectContextChars: 13783` + `nonProjectCont### B-10: `meta.aborted` as a cancellation indicator-On every cancellation path (idle timeout, hard-kill, provider error) OpenClaw sets `meta.aborted: true` in the JSON output. The bridge uses this as a reliable trigger instead of stderr parsing.+On every cancellation path (idle timeout, hard-kill, provider error) `openclaw` sets `meta.aborted: true` in the JSON output. The bridge uses this as a reliable trigger instead of stderr parsing.```python-# In jarvis/missions/openclaw_bridge.py:+# In jarvis/missions/jarvis_agent_bridge.py:result = json.loads(stdout)if result["meta"].get("aborted", False):# Mission-State auf ABORTED, mission_event_bus.publish(MissionAborted(...))@@ -395,7 +395,7 @@ From `meta.systemPromptReport.systemPrompt.chars`. Reduces the available output-- `OPENCLAW_AGENT_DIR=<minimal-profile>` with a reduced default prompt- OR: delete the workspace files before spawn and set only the mission prompt-### B-12: OpenClaw config schema (incremental set blocked)+### B-12: `openclaw` config schema (incremental set blocked)An attempt to set a single `models.providers.google.timeoutSeconds` fails:```@@ -405,7 +405,7 @@ Error: Config validation failed:models.providers.google.models: Invalid input: expected array, received undefined```-**Implication:** The OpenClaw schema requires a **complete provider block** for `models.providers.<id>`. Incremental per-field patching does not work.+**Implication:** The `openclaw` schema requires a **complete provider block** for `models.providers.<id>`. Incremental per-field patching does not work.**Bridge solution:** Pre-boot setup as a one-shot patch via `openclaw config patch --stdin` with the complete `models.providers.<id>` structure:```json5@@ -434,7 +434,7 @@ Or write a template file `openclaw.config.json` directly into `OPENCLAW_CONFIG_P- New findings outside the original spike scope: cold-start latency (B-5), provider idle timeout (B-8), system-prompt auto-injection (B-9), config-schema trap (B-12)**Recommendation:** Architecture viable, start Wave 2. Prerequisites for Wave 2:-1. Bridge-docs update via `/skill openclaw-doc-update` — amend AD-1..AD-21, new ADs (AD-22+) for B-8/B-9/B-12-2. `jarvis/missions/openclaw/` module skeleton (subprocess spawn wrapper, provider-slug mapper, JSON parser)+1. Bridge-docs update via `/skill jarvis-agent-doc-update` — amend AD-1..AD-21, new ADs (AD-22+) for B-8/B-9/B-12+2. `jarvis/missions/jarvis_agent/` module skeleton (subprocess spawn wrapper, provider-slug mapper, JSON parser)3. Pre-boot setup routine: `openclaw config patch` with provider config (B-12) + workspace isolation (B-9)4. Mock bridge test: a local echo server instead of the real `openclaw`, validates the spawn-wrapper mechanics in isolationdiff --git a/docs/superpowers/plans/2026-06-09-skill-system-rebuild.md b/docs/superpowers/plans/2026-06-09-skill-system-rebuild.mdindex 4294516a74..e74c374287 100644--- a/docs/superpowers/plans/2026-06-09-skill-system-rebuild.md+++ b/docs/superpowers/plans/2026-06-09-skill-system-rebuild.md@@ -288,7 +288,7 @@ def test_skill_match_blocks_force_spawn(manager_with_skill_ctx):# 2. Hard negatives keep spawning (no skill match)def test_non_skill_action_still_spawns(manager_with_skill_ctx):m = manager_with_skill_ctx(trigger=r"morgenroutine")- assert m._should_force_spawn("mach einen deep dive ins Repo via OpenClaw") is True+ assert m._should_force_spawn("mach einen deep dive ins Repo via Jarvis-Agent") is True# 3. Matched turn guarantees run-skill in the tool set even on smalltalkdef test_smalltalk_override_keeps_run_skill_on_skill_turn(manager_with_skill_ctx):diff --git a/docs/superpowers/plans/2026-06-09-wiki-autonomous-curator-wave1.md b/docs/superpowers/plans/2026-06-09-wiki-autonomous-curator-wave1.mdindex 64bff70ab6..be82caecfa 100644--- a/docs/superpowers/plans/2026-06-09-wiki-autonomous-curator-wave1.md+++ b/docs/superpowers/plans/2026-06-09-wiki-autonomous-curator-wave1.md@@ -966,7 +966,7 @@ import { WikiProviderCard } from "@/views/settings/WikiProviderCard";Then render it as the last sibling tier section, immediately after `<TelephonySection />`. Current block (lines 70-78):```tsx- {/* Subagent (OpenClaw) — own data source (/api/openclaw/status),+ {/* Subagent (Jarvis-Agent) — own data source (/api/jarvis-agent/status),rendered as a sibling tier so it shares the card system. */}<SubagentSection />{/* Telephony — the former standalone "Telephony" screen, folded in@@ -979,7 +979,7 @@ Then render it as the last sibling tier section, immediately after `<TelephonySebecomes:```tsx- {/* Subagent (OpenClaw) — own data source (/api/openclaw/status),+ {/* Subagent (Jarvis-Agent) — own data source (/api/jarvis-agent/status),rendered as a sibling tier so it shares the card system. */}<SubagentSection />{/* Telephony — the former standalone "Telephony" screen, folded indiff --git a/docs/superpowers/plans/2026-06-17-run-inspector-debug-section.md b/docs/superpowers/plans/2026-06-17-run-inspector-debug-section.mdindex 209c279862..23f290f584 100644--- a/docs/superpowers/plans/2026-06-17-run-inspector-debug-section.md+++ b/docs/superpowers/plans/2026-06-17-run-inspector-debug-section.md@@ -346,7 +346,7 @@ class TraceEvent(BaseModel):class ToolCall(BaseModel):model_config = ConfigDict(extra="ignore")name: str- caller: str = "" # router_tool | openclaw_worker | ...+ caller: str = "" # router_tool | jarvis_agent_worker | ...risk_tier: str = "" # safe | monitor | ask | blockapproved_by: str | None = None # auto | user | whitelist | Noneduration_ms: int | None = None@@ -746,7 +746,7 @@ def build_decision_path(events: list[VoiceEventRow]) -> list[DecisionStep]:label=f"brain: {provider or '?'}",detail=(f"model={model}" if model else None),))- elif e.kind == "OpenClawTaskStarted":+ elif e.kind == "JarvisAgentTaskStarted":steps.append(DecisionStep(kind=DECISION_MISSION,label="spawned sub-agent mission",@@ -1368,7 +1368,7 @@ _LIVE_KINDS: frozenset[str] = frozenset({"BrainTurnStarted", "BrainTurnCompleted", "BrainTTFT","ToolCallStarted", "ToolCallCompleted", "ActionExecuted","ResponseGenerated", "SystemStateChanged", "LatencySpan",- "ErrorOccurred", "SpeechSpoken", "OpenClawTaskStarted", "OpenClawTaskCompleted",+ "ErrorOccurred", "SpeechSpoken", "JarvisAgentTaskStarted", "JarvisAgentTaskCompleted",})diff --git a/docs/superpowers/plans/2026-06-17-webui-docs-readability.md b/docs/superpowers/plans/2026-06-17-webui-docs-readability.mdindex a88e2d08fa..ab14ecbafd 100644--- a/docs/superpowers/plans/2026-06-17-webui-docs-readability.md+++ b/docs/superpowers/plans/2026-06-17-webui-docs-readability.md@@ -182,7 +182,7 @@ git commit -m "docs: gloss jargon in introduction for non-developer readers"**Files:** Modify (body only): `src/content/docs/harness-dispatch.md`- [ ] **Step 1: Read the whole file.**-- [ ] **Step 2: Apply the canon.** Expected terms: `harness` (gloss again here — it's per-doc), `dispatch` (*"deciding which engine handles a request and handing it over"*), `OpenClaw`, `Codex`, `spawn`, `router` (*"the cheap fast brain that only decides where work goes"*), `force-spawn`. Keep the dispatch-decision detail.+- [ ] **Step 2: Apply the canon.** Expected terms: `harness` (gloss again here — it's per-doc), `dispatch` (*"deciding which engine handles a request and handing it over"*), `Jarvis-Agent`, `Codex`, `spawn`, `router` (*"the cheap fast brain that only decides where work goes"*), `force-spawn`. Keep the dispatch-decision detail.- [ ] **Step 3: Verify frontmatter unchanged.** Expected: no output.- [ ] **Step 4: Commit** — `git commit -m "docs: gloss harness-dispatch"`diff --git a/docs/superpowers/plans/2026-06-20-antigravity-google-subscription.md b/docs/superpowers/plans/2026-06-20-antigravity-google-subscription.mdindex 6b545ddda7..63b7aa9b39 100644--- a/docs/superpowers/plans/2026-06-20-antigravity-google-subscription.md+++ b/docs/superpowers/plans/2026-06-20-antigravity-google-subscription.md@@ -466,7 +466,7 @@ antigravity = "jarvis.plugins.brain.antigravity:AntigravityBrain"**Files:**- Create: `jarvis/missions/workers/google_cli_worker.py`-- Modify: Jarvis-Agent mapping source (the `/api/openclaw/status` mapping rows) to add an `antigravity` row whose `key_set` = `GoogleCliAuthService().status().connected`+- Modify: Jarvis-Agent mapping source (the `/api/jarvis-agent/status` mapping rows) to add an `antigravity` row whose `key_set` = `GoogleCliAuthService().status().connected`- Modify: `jarvis/ui/web/frontend/src/components/SubagentSection.tsx` (`PROVIDER_LABELS`: `"antigravity" → "Antigravity (Google subscription)"`)- Test: `tests/missions/test_google_cli_worker.py`diff --git a/docs/superpowers/specs/2026-04-21-jarvis-desktop-app-design.md b/docs/superpowers/specs/2026-04-21-jarvis-desktop-app-design.mdindex 7794ab6a9e..a47ce17b18 100644--- a/docs/superpowers/specs/2026-04-21-jarvis-desktop-app-design.md+++ b/docs/superpowers/specs/2026-04-21-jarvis-desktop-app-design.md@@ -9,7 +9,7 @@## 1. Overview & Philosophy-Jarvis becomes a Windows desktop app — **voice-first, but fully observable and operable visually**. It is not a classic chat client with a microphone button, but a *conductor interface*: the user talks to a single persona that orchestrates multiple Jarvis-Agents and CLI tools (OpenClaw, Codex, Open Interpreter, MCP servers) in the background. The UI makes the invisible visible — without overwhelming.+Jarvis becomes a Windows desktop app — **voice-first, but fully observable and operable visually**. It is not a classic chat client with a microphone button, but a *conductor interface*: the user talks to a single persona that orchestrates multiple Jarvis-Agents and CLI tools (Jarvis-Agent worker, Codex, Open Interpreter, MCP servers) in the background. The UI makes the invisible visible — without overwhelming.**Core principles:**diff --git a/docs/superpowers/specs/2026-05-10-context-rich-preamble-design.md b/docs/superpowers/specs/2026-05-10-context-rich-preamble-design.mdindex ae38679e2f..aa90ed811e 100644--- a/docs/superpowers/specs/2026-05-10-context-rich-preamble-design.md+++ b/docs/superpowers/specs/2026-05-10-context-rich-preamble-design.md@@ -26,7 +26,7 @@ Today (template):Goal (context-rich):User: [same input]- Jarvis: "Ja Chef, ich gebe das an OpenClaw weiter, <!-- i18n-allow: quoted German voice-output example -->+ Jarvis: "Ja Chef, ich gebe das an den Jarvis-Agent weiter, <!-- i18n-allow: quoted German voice-output example -->melde mich gleich mit den Flugdaten." ← topic + handoff + <!-- i18n-allow: quoted German voice-output example -->time-horizon```@@ -86,7 +86,7 @@ Rejected alternatives:│ ││ Input: utterance + Router prompt ││ Output: tool_call( │- │ "spawn_openclaw", │+ │ "spawn_worker", ││ args={ ││ task: "find SF flights ...", ││ preamble_de: "Ja Chef, ...", │ ← NEW@@ -107,7 +107,7 @@ Rejected alternatives:│ │└──────────────┬────────────────────────┘│ (tool runs in background:- │ spawns OpenClaw, takes 5-30 s)+ │ spawns the Jarvis-Agent worker, takes 5-30 s)││ ┌──── Speech-Pipeline ────┐│ │ │@@ -120,7 +120,7 @@ Rejected alternatives:│ ││ v│ "Ja Chef, ich gebe das- │ an OpenClaw weiter ..." <!-- i18n-allow: quoted German voice-output example -->+ │ an den Jarvis-Agent weiter ..." <!-- i18n-allow: quoted German voice-output example -->│ (spoken via TTS)│v@@ -135,7 +135,7 @@ Rejected alternatives:**P2 — Audio order guaranteed.** The preamble is published with `priority="normal"`, queueing it at the head of the TTS queue. The tool runs in parallel; when its final response is ready (5-30 s later), it appends to the queue. There is never overlap or interruption — except for genuine barge-in (`"sei still"`), which uses `priority="interrupt"` and stops both.-**P3 — Blacklist-compliant.** The preamble passes through `scrub_for_voice` like any other voice output. Tool-call leaks, stack traces, markdown residues, and the `"Sir"` form of address are filtered. `"OpenClaw"` is allowed (already used in `MissionAnnouncer`). `"Subagent"` / `"Sub-Agent"` / `"Worker"` remain blocked — the system prompt explicitly instructs the LLM to use `"OpenClaw"` or the first-person `"ich"` (I) instead.+**P3 — Blacklist-compliant.** The preamble passes through `scrub_for_voice` like any other voice output. Tool-call leaks, stack traces, markdown residues, and the `"Sir"` form of address are filtered. `"Jarvis-Agent"` is allowed (already used in `MissionAnnouncer`). `"Subagent"` / `"Sub-Agent"` / `"Worker"` remain blocked — the system prompt explicitly instructs the LLM to use `"Jarvis-Agent"` or the first-person `"ich"` (I) instead. (2026-05-24 update: `scrub_for_voice` now actively strips the retired "OpenClaw" brand token from voice output — this design predates that change.)---@@ -161,7 +161,7 @@ jarvis/brain/tool_use_loop.py [MODIFY]3. Determine language (from session / detected).4. If args had a preamble for that language AND tool not inskip-list AND utterance is not voice-control AND we are- not nested inside another spawn_openclaw frame:+ not nested inside another spawn_worker frame:publish AnnouncementRequested.5. Execute tool with cleaned args.@@ -183,9 +183,11 @@ jarvis/brain/ack_generator.py [REFACTOR]return text.strip() or None if isinstance(text, str) else Nonejarvis/brain/output_filter.py [VERIFY-ONLY]- No code change required; "OpenClaw" is already not on the+ No code change required; "Jarvis-Agent" is already not on theblacklist. Add a regression test that confirms it survives- scrub_for_voice unchanged.+ scrub_for_voice unchanged. (2026-05-24 update: the blacklist+ now actively strips the retired "OpenClaw" brand token instead+ of allowing it through — this design predates that change.)jarvis/core/events.py [MINOR]Optionally add `kind: Literal["preamble", "completion", "info"]@@ -232,13 +234,13 @@ scripts/smoke-test-preamble.ps1 [NEW, manual]| `"Sei still"` ("Be quiet") | n/a (voice-control) | **No** | `is_voice_control_utterance` → True. Audio stops. || `"Mach Spotify auf"` ("Open Spotify") | `open_app(name=Spotify)` | **Yes** | "Mach ich, Spotify öffnet sich." ("On it, Spotify is opening.") | <!-- i18n-allow: quoted German voice example -->| `"Wie ist das Wetter?"` ("What's the weather?") | `search_web(query=...)` | **Yes** | "Schau ich nach, einen Moment." ("Checking now, one moment.") | <!-- i18n-allow: quoted German voice example -->-| `"Find SF flights tomorrow"` | `spawn_openclaw(task=...)` | **Yes** | "Ja Chef, ich gebe das an OpenClaw weiter, melde mich gleich." ("Yes, handing that off to OpenClaw, I'll be right back.") | <!-- i18n-allow: quoted German voice example -->+| `"Find SF flights tomorrow"` | `spawn_worker(task=...)` | **Yes** | "Ja Chef, ich gebe das an den Jarvis-Agent weiter, melde mich gleich." ("Yes, handing that off to the Jarvis-Agent, I'll be right back.") | <!-- i18n-allow: quoted German voice example -->| `"Klick auf Speichern"` ("Click Save") | `click(target=...)` | **No** | `click` in ACK_SKIP_TOOLS — chattering on UI events forbidden. | <!-- i18n-allow: quoted German voice example -->| `"Was läuft gerade?"` ("What's running right now?") | `awareness_snapshot()` | **No** | Passive read in skip-list. | <!-- i18n-allow: quoted German voice example -->-| LLM omits `preamble_de` | spawn_openclaw | **No** | Silent fallback. `preamble_skipped_no_field_total` ++. |-| LLM emits 50-word preamble | spawn_openclaw | **Yes, cut** | First sentence kept, rest dropped. `preamble_truncated_total` ++.|-| LLM emits `"Ich starte den Subagenten"` ("I am starting the subagent") | spawn_openclaw | **No** | scrub_for_voice strips "Subagent" → empty after scrub → silent. |-| Tool-inside-OpenClaw (nested) | n/a — caller is subagent | **No** | Recursion guard: only top-level main-Jarvis tool calls preamble. |+| LLM omits `preamble_de` | spawn_worker | **No** | Silent fallback. `preamble_skipped_no_field_total` ++. |+| LLM emits 50-word preamble | spawn_worker | **Yes, cut** | First sentence kept, rest dropped. `preamble_truncated_total` ++.|+| LLM emits `"Ich starte den Subagenten"` ("I am starting the subagent") | spawn_worker | **No** | scrub_for_voice strips "Subagent" → empty after scrub → silent. |+| Tool-inside-Jarvis-Agent (nested) | n/a — caller is worker | **No** | Recursion guard: only top-level main-Jarvis tool calls preamble. |---@@ -308,12 +310,12 @@ A `preamble_skipped_no_field_total / preamble_emitted_total` ratio above 5 % is### Integration (`tests/integration/test_preamble_flow.py`, ~6 new cases)-- Happy path: `spawn_openclaw` with preamble args → `AnnouncementRequested` published → `_on_announcement` invoked → TTS called once with the preamble text+- Happy path: `spawn_worker` with preamble args → `AnnouncementRequested` published → `_on_announcement` invoked → TTS called once with the preamble text- Voice-control bypass: `"sei still"` short-circuits before any tool selection; no preamble emitted- Skip-list: `click` tool returns no preamble even if args contain one- Silent fallback: tool call missing `preamble_de` → no `AnnouncementRequested`, tool still executes- Audit-log ordering: Brain audit log shows preamble entry timestamp strictly before final-response entry-- Recursion guard: a tool call originating from inside an `spawn_openclaw` execution context emits no preamble+- Recursion guard: a tool call originating from inside a `spawn_worker` execution context emits no preamble### Contract (`tests/contract/test_brain_protocol.py`, ~3 new cases)@@ -347,5 +349,5 @@ Five scripted utterances per language replayed via simulated STT-final, audio re- **ADR-0011 (Router-Discipline)** — `docs/adr/0011-router-pure-dispatcher.md`. The preamble field lives **inside** tool args (not at top-level message content) precisely to preserve Router-Discipline's "no narrative output" property. The LLM cannot use the preamble field as a covert text channel — it is structurally bound to a concrete tool selection.- **AD-7 anti-pattern** — `CLAUDE.md` Phase-7 section. We partially relax AD-7 by letting the LLM generate the preamble *substance*, but enforce the *shape* (length, vocabulary, blacklist compliance) in code. A hybrid that preserves AD-7's intent (no constraint self-bypass) while gaining substance.- **`MissionAnnouncer`** — `jarvis/missions/voice/announcer.py`. The downstream `AnnouncementRequested` → `_on_announcement` → TTS path is reused unchanged. This spec adds a new producer of that bus event; the consumer side is identical.-- **Output Filter** — `jarvis/brain/output_filter.py:scrub_for_voice`. The 40-case blacklist applies to the preamble. Specifically: `"Subagent"` is blocked, `"OpenClaw"` is allowed.+- **Output Filter** — `jarvis/brain/output_filter.py:scrub_for_voice`. The 40-case blacklist applies to the preamble. Specifically: `"Subagent"` is blocked, `"Jarvis-Agent"` is allowed. (2026-05-24 update: the retired "OpenClaw" brand token is now actively stripped instead — this design predates that change.)- **BUG-006 / BUG-014** — When deploying, remember the four-layer restore trap (`docs/BUGS.md`). The editable install can pin to a stale clone, in which case the preamble feature ships in code but not at runtime. Verify with `python -c "import jarvis; print(jarvis.__file__)"` after install.diff --git a/docs/superpowers/specs/2026-05-11-pre-thinking-ack-flash-brain-design.md b/docs/superpowers/specs/2026-05-11-pre-thinking-ack-flash-brain-design.mdindex d6a1506ef1..9d852d0caa 100644--- a/docs/superpowers/specs/2026-05-11-pre-thinking-ack-flash-brain-design.md+++ b/docs/superpowers/specs/2026-05-11-pre-thinking-ack-flash-brain-design.md@@ -157,7 +157,7 @@ This decoupling is the central correctness property.**P2 — Audio order guaranteed by existing queue.** `jarvis/audio/player.py::play_chunks` is single-consumer. The first `synthesize` call (the Flash-Brain output) is queued first; the second (the main response) waits for it to finalize. There is never overlap. Barge-in (`"sei still"`) uses the existing `priority="interrupt"` mechanism and stops both.-**P3 — Blacklist-compliant.** Output passes through `scrub_for_voice` ([`jarvis/brain/output_filter.py`](../../../jarvis/brain/output_filter.py)) before being emitted on the bus. The 40-pattern blacklist blocks "Subagent" / "Sub-Agent" / "Worker" / "Sir" / stack traces / markdown residues. "OpenClaw" is allowed (already used by MissionAnnouncer). If scrub returns less than 3 alphanumeric characters, the ack is silent.+**P3 — Blacklist-compliant.** Output passes through `scrub_for_voice` ([`jarvis/brain/output_filter.py`](../../../jarvis/brain/output_filter.py)) before being emitted on the bus. The 40-pattern blacklist blocks "Subagent" / "Sub-Agent" / "Worker" / "Sir" / stack traces / markdown residues. "Jarvis-Agent" is allowed (already used by MissionAnnouncer). (2026-05-24 update: the retired "OpenClaw" brand token is now actively stripped instead — this design predates that change.) If scrub returns less than 3 alphanumeric characters, the ack is silent.---@@ -295,7 +295,7 @@ Both languages mirror each other in shape and intent. Key invariants:- Two-branch decision: the prompt MUST first decide whether to speak at all. If the request is smalltalk, a quick factual question, or voice control, the LLM returns an empty string. Only longer-running tasks (research, multi-step action, external service, data lookup) get a sentence.- The sentence, when emitted, MUST reference the concrete topic of the request (search subject, app name, data object, location, person, …). Generic acknowledgments like "Mache ich" / "On it" / "Verstanden" / "Sure thing" are explicitly forbidden because they pass any utterance equally well — the failure mode the previous template generator and the original few-shot prompt both produced.- Forbidden (defense-in-depth alongside `scrub_for_voice`): Subagent / Sub-Agent / Worker / Provider (alone) / Sir / Sehr wohl / Jawohl / Boss / Chef (as address).-- Allowed: OpenClaw / Jarvis / brand names (Spotify, Discord, GitHub, Outlook, …) / topical nouns (calendar, meeting, flights, weather, …).+- Allowed: Jarvis-Agent / Jarvis / brand names (Spotify, Discord, GitHub, Outlook, …) / topical nouns (calendar, meeting, flights, weather, …).- NO positive few-shot examples. The previous spec embedded eight per language and the LLM reproduced them verbatim regardless of fit. The revised prompt uses negative examples ("never say …") and structural rules only.Committed verbatim as `PERSONA_PROMPT_DE` and `PERSONA_PROMPT_EN` constants in `persona_prompt.py`. No template strings, no string interpolation — the prompt is fully static.@@ -349,12 +349,15 @@ VERBOTENES VOKABULAR (auch in erlaubten Sätzen, defense-in-depth): <!-- i18n-a"Sir", "Sehr wohl", "Jawohl", "Boss".ERLAUBT in deinem Satz:-"OpenClaw", "Jarvis", Marken-Namen (Spotify, Discord, GitHub, Outlook,+"Jarvis-Agent", "Jarvis", Marken-Namen (Spotify, Discord, GitHub, Outlook,…), sachliche Themen-Wörter (Kalender, Termin, Flüge, Wetter, …). <!-- i18n-allow: PERSONA_PROMPT_DE -->Output: Genau ein Satz mit konkretem Themenbezug, ODER leerer String. <!-- i18n-allow: PERSONA_PROMPT_DE -->Kein Markdown, kein Kommentar, kein Begleitsatz. <!-- i18n-allow: PERSONA_PROMPT_DE -->``` <!-- i18n-allow: PERSONA_PROMPT_DE -->+(Note: `persona_prompt.py` has since been substantially revised — the current+prompt forbids saying "Jarvis-Agent" outright rather than allowing it. This+verbatim quote reflects the 2026-05-11 version this design shipped.)#### PERSONA_PROMPT_EN (verbatim)@@ -406,12 +409,15 @@ defense-in-depth):"Very well", "Boss", "Chief".ALLOWED in your sentence:-"OpenClaw", "Jarvis", brand names (Spotify, Discord, GitHub,+"Jarvis-Agent", "Jarvis", brand names (Spotify, Discord, GitHub,Outlook, …), topical nouns (calendar, meeting, flights, weather, …).Output: Exactly one sentence with concrete topical reference, OR anempty string. No markdown, no comments, no accompanying text.```+(Note: `persona_prompt.py` has since been substantially revised — the current+prompt forbids saying "Jarvis-Agent" outright rather than allowing it. This+verbatim quote reflects the 2026-05-11 version this design shipped.)#### Empirical validation (2026-05-13)@@ -473,7 +479,7 @@ Two columns matter: whether the Flash-Brain produces text at all (silent vs spea| User Input | Expected Flash-Brain Output | Reason | Spoken Order ||---------------------------------------|----------------------------------------|---------------------------------------------------------------|---------------------------------------------|| `"Mach Spotify auf"` | Topic-specific sentence mentioning "Spotify" (LLM-generated, e.g. "Spotify öffne ich grad.") | Action with visible execution lag | Ack → app launch → Main response | <!-- i18n-allow: quoted German voice example -->-| `"Such mir SF-Flüge für morgen"` | Topic-specific sentence mentioning "Flüge" and/or "San Francisco" | Multi-step external task | Ack → spawn_openclaw → Final answer | <!-- i18n-allow: quoted German voice example -->+| `"Such mir SF-Flüge für morgen"` | Topic-specific sentence mentioning "Flüge" and/or "San Francisco" | Multi-step external task | Ack → spawn_worker → Final answer | <!-- i18n-allow: quoted German voice example -->| `"Wann wird Albel eingestellt?"` | Topic-specific sentence referencing "Albel" or "Einstellung" | External lookup needed | Ack → search_web → Main answer | <!-- i18n-allow: quoted German voice example -->| `"Wann wurde Einstein geboren?"` | `""` (silent) | Quick factual question, main brain answers directly in < 1 s | Main response only | <!-- i18n-allow: quoted German voice example -->| `"Was ist die Hauptstadt von Italien?"`| `""` (silent) | Same — main brain trivia | Main response only | <!-- i18n-allow: quoted German voice example -->@@ -640,7 +646,7 @@ Five scripted utterances per language replayed via simulated STT-final, audio re## 10. Cross-References- **ADR-0011 (Router-Discipline)** — `docs/adr/0011-router-pure-dispatcher.md`. The Flash-Brain is **outside** the Router's responsibility. The Router stays a pure dispatcher; the Flash-Brain handles persona narration. Clean separation of concerns.-- **`jarvis/brain/output_filter.py:scrub_for_voice`** — 40-case blacklist applies to every Flash-Brain output. "OpenClaw" is allowed; "Subagent" / "Worker" / "Sir" / "Sehr wohl" are blocked.+- **`jarvis/brain/output_filter.py:scrub_for_voice`** — 40-case blacklist applies to every Flash-Brain output. "Jarvis-Agent" is allowed; "Subagent" / "Worker" / "Sir" / "Sehr wohl" are blocked. (2026-05-24 update: the retired "OpenClaw" brand token is now actively stripped instead — this design predates that change.)- **`jarvis/missions/voice/announcer.py`** — MissionAnnouncer is the sibling pattern. It also publishes `AnnouncementRequested` events; the Flash-Brain reuses the same bus event + handler. Two producers, one consumer.---diff --git a/docs/superpowers/specs/2026-05-27-jarvis-agents-section-design.md b/docs/superpowers/specs/2026-05-27-jarvis-agents-section-design.mdindex 04b0ea21a2..8e4941b73e 100644--- a/docs/superpowers/specs/2026-05-27-jarvis-agents-section-design.md+++ b/docs/superpowers/specs/2026-05-27-jarvis-agents-section-design.md@@ -8,7 +8,7 @@## 1. Motivation-Today every Jarvis-Agent mission (`spawn_openclaw`) runs hardcoded on Claude Opus 4.7 via Max-subscription OAuth (`ClaudeDirectWorker`). The user wants to switch the underlying worker LLM at runtime through the UI — same way TTS providers are switched today — without having to edit `jarvis.toml` by hand.+Today every Jarvis-Agent mission (`spawn_worker`) runs hardcoded on Claude Opus 4.7 via Max-subscription OAuth (`ClaudeDirectWorker`). The user wants to switch the underlying worker LLM at runtime through the UI — same way TTS providers are switched today — without having to edit `jarvis.toml` by hand.The new section makes this explicit: *one* active worker provider, configurable in the UI, with a per-card health-test that proves the provider can actually run a real Jarvis-Agent mission end-to-end.@@ -152,7 +152,7 @@ The `worker_override` field is plumbed through `Mission` and read inside `_make_Two cooldowns, distinct:1. **Test-button cooldown** (60s per provider, server-side, in-memory). Lives in `jarvis/ui/web/subagent_routes.py`. Resets on process restart — that's acceptable because the test is cheap and a restart implies the user wants fresh state.-2. **Spawn cooldown** (existing 30s, `spawn_openclaw.py`, see commit `eab15ec`). Unchanged. Tests inherit it? **No** — test missions use `source_actor="subagent_test"` and bypass the spawn-tool entirely (they go through `MissionManager.dispatch` directly), so the spawn cooldown does not apply.+2. **Spawn cooldown** (existing 30s, `spawn_worker.py`, see commit `eab15ec`). Unchanged. Tests inherit it? **No** — test missions use `source_actor="subagent_test"` and bypass the spawn-tool entirely (they go through `MissionManager.dispatch` directly), so the spawn cooldown does not apply.## 4. Data Flow@@ -324,7 +324,7 @@ Three sequential phases, each independently shippable, each with green tests at- This design does **not** change anything about the brain-tier router. The brain still runs on whatever `[brain].primary` says (today: Gemini). Jarvis-Agents is its own tier.- It does **not** introduce a new harness; the four workers are all existing-pattern subprocess workers (or in the case of Grok, the standard streaming HTTP pattern from `gemini_worker.py`).-- It does **not** change the existing 30s spawn-cooldown in `spawn_openclaw.py`. That is a separate gate for the voice path.+- It does **not** change the existing 30s spawn-cooldown in `spawn_worker.py`. That is a separate gate for the voice path.---diff --git a/docs/superpowers/specs/2026-05-31-app-control-tools-design.md b/docs/superpowers/specs/2026-05-31-app-control-tools-design.mdindex a67965d5dc..d7cbc86611 100644--- a/docs/superpowers/specs/2026-05-31-app-control-tools-design.md+++ b/docs/superpowers/specs/2026-05-31-app-control-tools-design.md@@ -149,7 +149,7 @@ execution, so it is `ask` tier and the added server starts **disabled**.- Routing: extend the smalltalk/action heuristics so utterances like"aktualisiere die Settings", "welche Provider hab ich", "switch to Gemini","füge einen MCP-Server hinzu" route to these tools and are **not** <!-- i18n-allow: quoted German voice-input example -->- force-spawned to a worker (`BrainManager._should_force_openclaw`). Add a short+ force-spawned to a worker (`BrainManager._should_force_spawn`). Add a shortnote to `router.py` SYSTEM_PROMPT so the brain knows the overview tool exists.## 6. Testsdiff --git a/docs/superpowers/specs/2026-06-07-codex-connector-brain-and-jarvis-agents-design.md b/docs/superpowers/specs/2026-06-07-codex-connector-brain-and-jarvis-agents-design.mdindex 48b208c7b0..0149ffc38c 100644--- a/docs/superpowers/specs/2026-06-07-codex-connector-brain-and-jarvis-agents-design.md+++ b/docs/superpowers/specs/2026-06-07-codex-connector-brain-and-jarvis-agents-design.md@@ -86,11 +86,11 @@ login flow — which is exactly the repeated activation toast.### 2.2 Codex is absent from the Jarvis-Agents surfaceThe Jarvis-Agents section (`components/SubagentSection.tsx`) is rendered from-`GET /api/openclaw/status` → `mapping_rows`, which is built by iterating+`GET /api/jarvis-agent/status` → `mapping_rows`, which is built by iterating`jarvis/missions/worker_runtime/provider_map.py::MAPPINGS`. `MAPPINGS` containsonly `gemini, claude-api, openai, openrouter, grok`. **Codex has no row**, so no-card is shown. `POST /api/subagent/switch` likewise validates against-`JARVIS_TO_OPENCLAW` (derived from `MAPPINGS`) and rejects Codex with HTTP 404.+card is shown. `POST /api/subagent/switch` likewise validates against the+Jarvis-Agent provider allow-list (derived from `MAPPINGS`) and rejects Codex with HTTP 404.This is *correct* in spirit: Codex is **not** a Jarvis-Agents-routed provider — it hasno Jarvis-Agents provider slug and no shared ENV-var mapping. It is a **direct@@ -223,13 +223,13 @@ never-ending toast cannot recur.**Canonical slug.** Store/display Codex as `"openai-codex"` (the value`_select_subagent_worker_kind` already accepts, alongside the alias `"chatgpt"`).-**`GET /api/openclaw/status` (server.py).** After the `MAPPINGS` loop, append one+**`GET /api/jarvis-agent/status` (server.py).** After the `MAPPINGS` loop, append onesynthetic Codex row:```python{"jarvis": "openai-codex",- "openclaw": "codex-cli (direct)", # cosmetic; codex has no OpenClaw slug+ "openclaw": "codex-cli (direct)", # cosmetic; codex has no Jarvis-Agent slug"env_var": "ChatGPT-OAuth","env_fallback": "OPENAI_API_KEY","key_set": <codex connected OR codex_openai_api_key saved>,@@ -243,7 +243,7 @@ the active highlight works without further change. `to_provider_slug` iscorrectly left to fail-soft to `None` for codex (it has no slug).**`POST /api/subagent/switch` (provider_routes.py).** Add a codex branch-**before** the `JARVIS_TO_OPENCLAW` membership check:+**before** the Jarvis-Agent provider allow-list membership check:```pythonCODEX_SUBAGENT_SLUGS = frozenset({"openai-codex", "chatgpt"})@@ -319,7 +319,7 @@ The worker env (`jarvis/missions/init.py::_env_builder` →3. `/api/subagent/switch` — accepts `openai-codex`/`chatgpt` when connected,409 when not connected, persists `"openai-codex"`; still 404 for genuinelyunknown providers.-4. `/api/openclaw/status` — includes the synthetic codex row; `is_active_brain`+4. `/api/jarvis-agent/status` — includes the synthetic codex row; `is_active_brain`true when `sub_jarvis.provider == "openai-codex"`.5. `CodexDirectWorker` env — strips `OPENAI_API_KEY` when OAuth present, keeps itwhen only the API key is configured (parametrized).@@ -365,7 +365,7 @@ The worker env (`jarvis/missions/init.py::_env_builder` →- `jarvis/codex_auth.py` — rebuild service (core).- `jarvis/ui/web/provider_routes.py` — codex branch in `/api/subagent/switch`.-- `jarvis/ui/web/server.py` — synthetic codex row in `/api/openclaw/status`.+- `jarvis/ui/web/server.py` — synthetic codex row in `/api/jarvis-agent/status`.- `jarvis/brain/app_control.py` — mirror codex acceptance in `_switch_subagent`.- `jarvis/missions/init.py` + `workers/codex_direct_worker.py` — conditionalkey handling for the API-key path.diff --git a/docs/superpowers/specs/2026-06-08-jarvis-control-api-design.md b/docs/superpowers/specs/2026-06-08-jarvis-control-api-design.mdindex 242ac9eb9e..f4fee2ca53 100644--- a/docs/superpowers/specs/2026-06-08-jarvis-control-api-design.md+++ b/docs/superpowers/specs/2026-06-08-jarvis-control-api-design.md@@ -22,7 +22,7 @@ Three independently fatal breaks for the headline "switch language" voice comman1. **Wrong key in the allowlist.** Reply language is pinned by `brain.reply_language` (`manager.py:1018-1043` `_reply_language_directive`). The self-mod allowlist (`registry.py:37-124`) contains `profile.language` — a field nothing reads at runtime (`app_control.py:278` exposes it read-only). `set_config_value("brain.reply_language", …)` raises `AllowlistViolationError`.2. **The pending-confirmation loop is never wired.** `build_self_mod_tools()` (`factory.py:347`) constructs an orphan `PendingMutationStore`; `SelfModFlowController` (`jarvis/voice/self_mod_flow.py`) is referenced nowhere in `jarvis/speech/`. An `ask`-tier mutation returns JSON the pipeline cannot action → dies silently.-3. **Force-spawn interception.** "wechsel auf / switch to" is an action verb → `_should_force_openclaw` may route the utterance to a contextless Jarvis-Agent worker instead of the tool → silent no-op.+3. **Force-spawn interception.** "wechsel auf / switch to" is an action verb → `_should_force_spawn` may route the utterance to a contextless Jarvis-Agent worker instead of the tool → silent no-op.---diff --git a/docs/superpowers/specs/2026-06-17-run-inspector-debug-section-design.md b/docs/superpowers/specs/2026-06-17-run-inspector-debug-section-design.mdindex 5e9017435b..a4a3bff03e 100644--- a/docs/superpowers/specs/2026-06-17-run-inspector-debug-section-design.md+++ b/docs/superpowers/specs/2026-06-17-run-inspector-debug-section-design.md@@ -196,7 +196,7 @@ class RunListItem(BaseModel):class ToolCall(BaseModel):name: str- caller: str # router_tool | openclaw_worker | ...+ caller: str # router_tool | jarvis_agent_worker | ...risk_tier: str # safe | monitor | ask | blockapproved_by: str | None # auto | user | whitelist | blacklist | Noneduration_ms: int | Nonediff --git a/docs/superpowers/specs/2026-06-19-spoken-mission-expectation-management-design.md b/docs/superpowers/specs/2026-06-19-spoken-mission-expectation-management-design.mdindex cd1890526d..f74b106141 100644--- a/docs/superpowers/specs/2026-06-19-spoken-mission-expectation-management-design.md+++ b/docs/superpowers/specs/2026-06-19-spoken-mission-expectation-management-design.md@@ -100,11 +100,11 @@ Two spoken improvements, both off the latency-critical answer path:Turn → router force-spawns → spawn_worker.execute()├─ dispatch mission└─ compose() → sharpened opening announcement (topic + substance + warmth) [tool output → spoken reply]-OpenClawAnnouncement(action,target) → _on_spawn_announcement → _schedule_spawn_watchdog()+JarvisAgentAnnouncement(action,target) → _on_spawn_announcement → _schedule_spawn_watchdog()→ bounded recurring heartbeat (de/en/es, varied, VAD-gated, ≤ max_count)Mission result → MissionAnnouncer → AnnouncementRequested(kind="completion")→ _on_announcement: speak result AND cancel pending heartbeats-Crash path → OpenClawBackgroundCompleted → _on_background_completed (FIFO cancel) [unchanged]+Crash path → JarvisAgentBackgroundCompleted → _on_background_completed (FIFO cancel) [unchanged]```## Edge casesdiff --git a/docs/superpowers/specs/2026-06-20-antigravity-google-subscription-brain-design.md b/docs/superpowers/specs/2026-06-20-antigravity-google-subscription-brain-design.mdindex 4edb68a53d..ee22359ed8 100644--- a/docs/superpowers/specs/2026-06-20-antigravity-google-subscription-brain-design.md+++ b/docs/superpowers/specs/2026-06-20-antigravity-google-subscription-brain-design.md@@ -96,7 +96,7 @@ The email is read from `~/.gemini/google_accounts.json.active` (already confirme### 5.4 Jarvis-Agent (heavy worker) backendThe Jarvis-Agent path wants a CLI that *can act* (write files, run commands), so it uses **`--approval-mode yolo`** (or `auto_edit`) instead of `plan`, inside the existing Phase-6 worktree + Job-Object isolation (no change to isolation invariants). Wiring:-* Add an `antigravity` row to the Jarvis-Agent provider mapping (`/api/openclaw/status` → `SubagentMappingRow`), `key_set` driven by `GoogleCliAuthService.status().connected` (not by an API-key slot).+* Add an `antigravity` row to the Jarvis-Agent provider mapping (`/api/jarvis-agent/status` → `SubagentMappingRow`), `key_set` driven by `GoogleCliAuthService.status().connected` (not by an API-key slot).* A `GoogleCliWorker` (mirror of `CodexWorker`, `jarvis/missions/workers/`) drives `<argv_prefix> -p … --approval-mode yolo -o stream-json` and streams `WorkerProgress`.* `PROVIDER_LABELS` in `SubagentSection.tsx` gets `"antigravity" → "Antigravity (Google-Abo)"`.diff --git a/docs/voice-acceptance-brief.md b/docs/voice-acceptance-brief.mdindex aeb32837b8..4ab1fe6337 100644--- a/docs/voice-acceptance-brief.md+++ b/docs/voice-acceptance-brief.md@@ -26,7 +26,7 @@ run.bat --debug**During the test**, log subprocess spawns in a second terminal:```powershell-# counts running openclaw/codex/cli-tool subprocesses+# counts running jarvis-agent/codex/cli-tool subprocesseswhile($true) {Get-Process | Where-Object {$_.ProcessName -match 'claude|codex|node'@@ -80,7 +80,7 @@ Say **"Hey Jarvis"** as the wake word **before every turn**. Note briefly after## Mandate success criteria (to check off after the 10-minute test)-- [ ] **5 smalltalk turns spawn 0 `openclaw` subprocesses** (Block A, subprocess column all "N").+- [ ] **5 smalltalk turns spawn 0 Jarvis-Agent subprocesses** (Block A, subprocess column all "N").- [ ] **3 spawn turns spawn exactly 1 subprocess each** (Block B, 1× "Y" each during the turn).- [ ] **Voice output contains no tool JSON/XML leak** (Block B, no "spawn_sub_jarvis(…)" / "<spawn_sub_jarvis>" audible).- [ ] **Echo trap (11+12) delivers a direct answer** without a "Du möchtest also …" ("So you want to …") opener. <!-- i18n-allow: quoted voice echo-trap example -->diff --git a/jarvis/__main__.py b/jarvis/__main__.pyindex 17099a8fc7..8214e12690 100644--- a/jarvis/__main__.py+++ b/jarvis/__main__.py@@ -210,7 +210,7 @@ def _cmd_phase5_doctor() -> int:def _cmd_doctor() -> int:"""Completeness self-check — what is registered & ready vs. advertised but- missing. Generalises the phantom-openclaw forensic (2026-06-28): a fresh+ missing. Generalises the phantom-jarvis-agent forensic (2026-06-28): a freshdownload can *look* complete while one dead reference makes a working featureappear "not installed". Exits non-zero only on a hard failure."""diff --git a/jarvis/agents/registry.py b/jarvis/agents/registry.pyindex 12b7ad7aa1..72134bff71 100644--- a/jarvis/agents/registry.py+++ b/jarvis/agents/registry.py@@ -146,7 +146,7 @@ class JarvisAgentRegistry:def attach_mission_bus(self, mission_bus: Any) -> JarvisAgentRegistry:"""Bridge Phase-6 MissionBus events into the legacy agent-tree.- Welle-4 removed the publishers for OpenClawTaskStarted/Completed et+ Welle-4 removed the publishers for JarvisAgentTaskStarted/Completed etal. — the new Mission-Manager emits Phase-6 EventEnvelopes on its ownper-subscriber bus. Without this bridge the Sub-Agents board staysempty even while missions are running. We translate the few relevantdiff --git a/jarvis/awareness/verdichter.py b/jarvis/awareness/verdichter.pyindex df048f64f0..643921fc3c 100644--- a/jarvis/awareness/verdichter.py+++ b/jarvis/awareness/verdichter.py@@ -46,7 +46,7 @@ def _ts(item: dict[str, Any]) -> int:class Verdichter:- """Direct Brain call (no OpenClaw spawn).+ """Direct Brain call (no Jarvis-Agent spawn).Stateless — no bus subscription, no internal counters. One instanceis constructed in ``factory.py`` and passed to the ``StoryTracker``.diff --git a/jarvis/board/achievements.py b/jarvis/board/achievements.pyindex 753e85ab13..009123639d 100644--- a/jarvis/board/achievements.py+++ b/jarvis/board/achievements.py@@ -16,7 +16,7 @@ Each achievement is an ``AchievementSpec`` with:rewards output, not unhealthy usage patterns.- No time-window-specific "most today" awards — that drives status anxiety,which we explicitly want to avoid.-- ``ten_x_engineer`` measures weekly OpenClaw runtime; this is an output+- ``ten_x_engineer`` measures weekly Jarvis-Agent runtime; this is an outputmetric ("how much Jarvis completed autonomously"), not "the user was onlinefor many hours".@@ -91,8 +91,8 @@ def _eval_first_mcp(event: Event, ctx: AchievementContext) -> UnlockDecision | Nreturn UnlockDecision(evidence={"harness": harness})-def _eval_openclaw_summoner(event: Event, ctx: AchievementContext) -> UnlockDecision | None:- """First successful OpenClaw spawn."""+def _eval_jarvis_agent_summoner(event: Event, ctx: AchievementContext) -> UnlockDecision | None:+ """First successful Jarvis-Agent spawn."""if type(event).__name__ != "JarvisAgentTaskCompleted":return Noneif not bool(getattr(event, "success", False)):@@ -148,10 +148,10 @@ def _make_task_count_eval(threshold: int) -> Callable[[Event, AchievementContextdef _eval_ten_x_engineer(event: Event, ctx: AchievementContext) -> UnlockDecision | None:- """10+ OpenClaw hours in the last 7 days (output metric).+ """10+ Jarvis-Agent hours in the last 7 days (output metric).Deliberately NOT "user was online for 10 h" — ``hours_saved_estimate``- sums over OpenClaw runtimes during which the user was typically doing+ sums over Jarvis-Agent runtimes during which the user was typically doingsomething else."""if type(event).__name__ != "JarvisAgentTaskCompleted":@@ -200,7 +200,7 @@ ACHIEVEMENTS: list[AchievementSpec] = [title="Agent Summoner",description="First successful background-agent spawn.",tier="mastery",- evaluator=_eval_openclaw_summoner,+ evaluator=_eval_jarvis_agent_summoner,),AchievementSpec(id="tool_dabbler",diff --git a/jarvis/board/evaluator.py b/jarvis/board/evaluator.pyindex 40ba2ce228..61a5ebbd55 100644--- a/jarvis/board/evaluator.py+++ b/jarvis/board/evaluator.py@@ -62,7 +62,7 @@ class _LiveContext(AchievementContext):self._conn = connself._tools_ever: set[str] = set()self._successful_tasks = 0- self._openclaw_success = 0+ self._jarvis_agent_success = 0self._mcp_success = 0self._trace_tools: OrderedDict[str, set[str]] = OrderedDict()self._first_event_iso: str | None = None@@ -92,7 +92,7 @@ class _LiveContext(AchievementContext):self._tools_ever = set()self._successful_tasks = int(data.get("successful_tasks_total", "0") or 0)legacy_sj = int(data.get("sub_jarvis_success_total", "0") or 0)- self._openclaw_success = int(data.get("openclaw_success_total", "0") or 0) + legacy_sj+ self._jarvis_agent_success = int(data.get("openclaw_success_total", "0") or 0) + legacy_sjself._mcp_success = int(data.get("mcp_success_total", "0") or 0)self._first_event_iso = data.get("first_event_iso") or None@@ -115,13 +115,13 @@ class _LiveContext(AchievementContext):return self._successful_tasksdef openclaw_success_total(self) -> int:- return self._openclaw_success+ return self._jarvis_agent_successdef mcp_success_total(self) -> int:return self._mcp_successdef hours_saved_last_7d(self) -> float:- """Computed from ``daily_stats`` — with a 60 s cache so that OpenClaw+ """Computed from ``daily_stats`` — with a 60 s cache so that Jarvis-Agentbursts do not saturate the query."""now = int(time.time())@@ -187,9 +187,9 @@ class _LiveContext(AchievementContext):elif name == "JarvisAgentTaskCompleted":if bool(getattr(event, "success", False)):self._successful_tasks += 1- self._openclaw_success += 1+ self._jarvis_agent_success += 1self._persist("successful_tasks_total", str(self._successful_tasks))- self._persist("openclaw_success_total", str(self._openclaw_success))+ self._persist("openclaw_success_total", str(self._jarvis_agent_success))elif name == "HarnessCompleted":harness = getattr(event, "harness", "")diff --git a/jarvis/board/prompts.py b/jarvis/board/prompts.pyindex c6e06e3ad3..3a24b9f94b 100644--- a/jarvis/board/prompts.py+++ b/jarvis/board/prompts.py@@ -40,7 +40,7 @@ Wenn Feedback-Vector "haerter" enthaelt: senke die Hoeflichkeitsschwelle, behaltWenn Cold-Start-Hint vorhanden: schreibe kuerzer (2-3 Saetze), explizit zaghaft, Schluss mit "Mehr in {n} Tagen."BEISPIEL ✅ KORREKT (Tag 47, mit frueherem Bio):-Du bist immer noch praezise und ungeduldig. Das wird sich vermutlich nicht aendern. Neu diese Woche: Du laesst mehr offen, weniger OpenClaw-Spawns, mehr Eigenarbeit. Ich lese das als Vertrauen in dich selbst, nicht in mich. Notiert.+Du bist immer noch praezise und ungeduldig. Das wird sich vermutlich nicht aendern. Neu diese Woche: Du laesst mehr offen, weniger Jarvis-Agent-Spawns, mehr Eigenarbeit. Ich lese das als Vertrauen in dich selbst, nicht in mich. Notiert.BEISPIEL ✅ KORREKT (Cold-Start, Tag 3):Ich kenne dich seit 3 Tagen. Das ist zu wenig fuer ein Urteil, aber genug fuer eine erste Vermutung: Du klickst schneller als du denkst, und du denkst schneller als du sprichst. Mehr in vier Tagen.diff --git a/jarvis/brain/ack_brain/persona_prompt.py b/jarvis/brain/ack_brain/persona_prompt.pyindex bf8a3239f6..50b533fe3f 100644--- a/jarvis/brain/ack_brain/persona_prompt.py+++ b/jarvis/brain/ack_brain/persona_prompt.py@@ -91,7 +91,7 @@ Du darfst AUSSCHLIESSLICH folgendes ausgeben:ERLAUBT in deinem Satz:dein eigener Name, Marken-Namen (Spotify, Discord, GitHub, Outlook,…), sachliche Themen-Wörter (Kalender, Termin, Flüge, Wetter, …).-NIE "OpenClaw", "Sub-Agent" oder andere interne Bauteil-Namen nennen.+NIE "Sub-Agent", "Worker", "Harness" oder andere interne Bauteil-Namen nennen.Output: Genau ein Satz mit konkretem Themenbezug, ODER leerer String.Kein Markdown, kein Kommentar, kein Begleitsatz."""@@ -159,7 +159,7 @@ You may ONLY output one of the following:ALLOWED in your sentence:your own name, brand names (Spotify, Discord, GitHub,Outlook, …), topical nouns (calendar, meeting, flights, weather, …).-NEVER say "OpenClaw", "sub-agent" or other internal component names.+NEVER say "sub-agent", "worker", "harness" or other internal component names.Output: Exactly one sentence with concrete topical reference, OR anempty string. No markdown, no comments, no accompanying text."""@@ -226,7 +226,7 @@ SOLO puedes producir una de estas opciones:PERMITIDO en tu frase:tu propio nombre, marcas (Spotify, Discord, GitHub, Outlook, …),palabras temáticas (calendario, cita, vuelos, tiempo, …). NUNCA digas-"OpenClaw", "Sub-Agent" ni otros nombres de componentes internos.+"Sub-Agent", "worker", "harness" ni otros nombres de componentes internos.Salida: Exactamente una frase con referencia concreta al tema, O unacadena vacía. Sin markdown, sin comentarios, sin frase de acompañamiento."""diff --git a/jarvis/brain/ack_brain/spawn_announcement.py b/jarvis/brain/ack_brain/spawn_announcement.pyindex 53733b31ae..c1bdd5dcc2 100644--- a/jarvis/brain/ack_brain/spawn_announcement.py+++ b/jarvis/brain/ack_brain/spawn_announcement.py@@ -124,7 +124,7 @@ passen würde, ist falsch. Variiere Satzbau und Wortwahl.VERBOTEN:- Vollzugsmeldungen ("ist erledigt", "fertig", "habe ich gemacht"),die Arbeit beginnt gerade erst.-- Interne Bauteil-Namen: "OpenClaw", "Sub-Agent", "Subagent",+- Interne Bauteil-Namen: "Jarvis-Agent", "Sub-Agent", "Subagent","Mission", "Provider", "Subprocess", "Harness", "API". Der öffentlicheProduktname "{agent}" ist dagegen PFLICHT.- Anreden wie "Sir", "Jawohl", "Sehr wohl", "Boss".@@ -168,7 +168,7 @@ Vary sentence structure and word choice.FORBIDDEN:- Completion claims ("is done", "finished", "all set"), the work isonly starting now.-- Internal component names: "OpenClaw", "sub-agent", "subagent",+- Internal component names: "Jarvis-Agent", "sub-agent", "subagent","mission", "provider", "subprocess", "harness", "API". The publicproduct term "{agent}" is REQUIRED.- Honorifics like "Sir", "Boss", "Very well".diff --git a/jarvis/brain/factory.py b/jarvis/brain/factory.pyindex 0365425b1c..d23770f814 100644--- a/jarvis/brain/factory.py+++ b/jarvis/brain/factory.py@@ -36,7 +36,7 @@ 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+# a sub-agent vehicle by NAME (``harness="openclaw"``), but that value is not 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@@ -47,7 +47,7 @@ BrainCallback = Callable[[str], Awaitable[str]]# 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.-# Do NOT re-add it here — that resurrects the phantom-openclaw routing bug.+# Do NOT re-add it here — that resurrects the phantom-harness routing bug.## Rationale: Hauptjarvis is a pure dispatcher. Direct actions outside this# list (open_app, type_text, remember, whoami …) are delegated to a background@@ -95,8 +95,8 @@ ROUTER_TOOLS = frozenset({# Skills-Brain-Integration: Brain-callable executor for installed user# skills. D9-recursion-protection is structural — SkillRunner is constructed# without a tool_registry that would re-expose run-skill recursively.- # Available to BOTH Router-Tier (here) and in Wave 4: bypasses OpenClaw- # because OpenClaw itself has no skill layer.+ # Available to BOTH Router-Tier (here) and in Wave 4: bypasses the+ # Jarvis-Agent worker because the worker itself has no skill layer."run-skill",# Phase B5 (recall-tool): read-only keyword search over the long-term# Obsidian wiki vault. Router-tier only — never in SUB_TOOLS (AP-D9).@@ -231,11 +231,12 @@ SELF_MOD_TOOL_NAMES_ROUTER = frozenset({def warn_if_phantom_worker_harness(config: Any, harness_manager: Any) -> bool:"""Log a warning when ``[harness.jarvis_agent].enabled`` is true but unregistered.- OpenClaw was removed in Welle 4 and has no entry-point, so an- ``enabled = true`` block is INERT (config honesty, 2026-06-28). This probe is- advisory only: it never raises, never changes routing, and "start a subagent"- routes to ``spawn_worker`` regardless. Returns True when a phantom config was- detected (consumed by the regression guard in tests).+ The legacy ``openclaw`` harness was removed in Welle 4 and has no+ entry-point, so an ``enabled = true`` block is INERT (config honesty,+ 2026-06-28). This probe is advisory only: it never raises, never changes+ routing, and "start a subagent" routes to ``spawn_worker`` regardless.+ Returns True when a phantom config was detected (consumed by the+ regression guard in tests).The config field was renamed from ``harness.openclaw`` to ``harness.jarvis_agent``in the 2026-06-29 Jarvis-Agents rename; both TOML keys are accepted via@@ -330,8 +331,8 @@ def _load_tools_for_tier("""Load all tools for the given tier and instantiate them.Wave-4 migration: previously there was a Sub-Jarvis tier with its own- SUB_TOOLS set + SubJarvisManager. After the OpenClaw-bridge migration- (see docs/openclaw-bridge.md §11) only ``"router"`` remains as a tier;+ SUB_TOOLS set + SubJarvisManager. After the Jarvis-Agent-bridge migration+ (see docs/jarvis-agents-bridge.md §11) only ``"router"`` remains as a tier;the heavy worker runs as an external subprocess via the Mission-Manager.Encapsulates entry-point discovery + special cases (dispatch-to-harness,@@ -347,7 +348,7 @@ def _load_tools_for_tier(if tier != "router":raise ValueError(f"Unknown tier {tier!r}. The Sub-Jarvis tier was replaced by the "- f"OpenClaw bridge in Welle 4 — only 'router' remains."+ f"Jarvis-Agent bridge in Welle 4 — only 'router' remains.")allow = ROUTER_TOOLS@@ -404,8 +405,8 @@ def _load_tools_for_tier(# this the Brain would freeze the tool dict at build-time, and# the post-bootstrap ``set_mission_manager`` call would have# no effect on an already-built BrainManager. See- # docs/openclaw-bridge.md AD-OC1 + the regression in- # tests/integration/test_openclaw_lazy_bootstrap.py.+ # docs/jarvis-agents-bridge.md AD-OC1 + the regression in+ # tests/integration/test_worker_lazy_bootstrap.py.## The Kontrollierer-Resolver mirrors the manager-resolver:# without it the voice path would only persist a PENDING@@ -607,7 +608,7 @@ def _resolve_mission_manager() -> Any:"""Resolve the MissionManager for the ``spawn_worker`` tool.Wave-4 migration: previously the ``SubJarvisManager`` was constructed- directly in the ``_phase2_full_brain`` flow. Today (OpenClaw bridge) the+ directly in the ``_phase2_full_brain`` flow. Today (Jarvis-Agent bridge) theserver layer (``jarvis/ui/web/server.py::_init_mission_stack``) bootstrapsthe MissionManager asynchronously — it lives under ``app.state.mission_manager``.@@ -645,7 +646,7 @@ _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+# "Jarvis-Agent 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.@@ -715,8 +716,8 @@ def _phase2_full_brain("""Build the BrainManager in router tier.Wave-4 migration: previously there was also a ``"sub_jarvis"`` tier.- The Sub-Jarvis tier was replaced by the OpenClaw bridge (see- docs/openclaw-bridge.md §11). The heavy worker runs as an external+ The Sub-Jarvis tier was replaced by the Jarvis-Agent bridge (see+ docs/jarvis-agents-bridge.md §11). The heavy worker runs as an externalsubprocess via ``MissionManager`` from ``jarvis/missions/``.tier="router": RouterBrain system prompt + ROUTER_TOOLS + Haiku.@@ -901,9 +902,10 @@ def _phase2_full_brain(awareness_manager._probes = [] # noqa: SLF001awareness_manager._fs_probe = None # noqa: SLF001- # Build tools — Wave 4: no sub-tier any more; OpenClaw runs as an external- # subprocess via MissionManager. If a MissionManager is already present in- # ``app.state`` (server bootstrap), we pass it to ``spawn_worker``.+ # Build tools — Wave 4: no sub-tier any more; the Jarvis-Agent worker runs+ # as an external subprocess via MissionManager. If a MissionManager is+ # already present in ``app.state`` (server bootstrap), we pass it to+ # ``spawn_worker``.# If not (e.g. standalone call via ``build_default_brain`` BEFORE the server# bootstrap ran), the tool is excluded from the set — the force-spawn in# BrainManager knows this and returns a setup message instead of silently crashing.@@ -1072,8 +1074,8 @@ def _phase2_full_brain(# Computer-Use tool set: Wave 4 — previously ``sub_tools``# (the Sub-Jarvis tier toolbox) was used as the base. After the- # OpenClaw-bridge migration we load all computer-use-relevant tools- # directly from entry_points.+ # Jarvis-Agent-bridge migration we load all computer-use-relevant+ # tools directly from entry_points.cu_tools: dict[str, Any] = {}cu_tools.update({name: tool@@ -1480,8 +1482,8 @@ def build_default_brain("""Return a brain callback (async (str)->str) according to the fallback chain.Wave-4 migration: previously there were two tiers ``router`` and- ``sub_jarvis``. The Sub-Jarvis tier was replaced by the OpenClaw bridge —- see docs/openclaw-bridge.md §11.+ ``sub_jarvis``. The Sub-Jarvis tier was replaced by the Jarvis-Agent+ bridge — see docs/jarvis-agents-bridge.md §11.Args:tier: "router" — the Haiku delegator tier (the only tier remainingdiff --git a/jarvis/brain/intent_router.py b/jarvis/brain/intent_router.pyindex 1db22684aa..3c612fb2bf 100644--- a/jarvis/brain/intent_router.py+++ b/jarvis/brain/intent_router.py@@ -17,7 +17,7 @@ Goal: no extra LLM-call latency for routing. Heuristic-based:debug, refactor, überlege, zusammenfass, etc. # i18n-allowHeuristic: long, many subclauses, multiple aspects, question word + depth-- **CODE** (OpenClaw Heavy-Worker): explicit coding tasks+- **CODE** (Jarvis-Agent Heavy-Worker): explicit coding tasksKeywords: code, implementier, fix bug, review pr, git commit, testOn ambiguity → DEEP (the user must not think Jarvis is dumb).@@ -75,7 +75,7 @@ _DEEP_PATTERNS = [r"\bplan\b.*\?", r"\bwhy\b.*\?",]-# Coding tasks are routed to the OpenClaw heavy worker.+# Coding tasks are routed to the Jarvis-Agent heavy worker._CODE_PATTERNS = [r"\bcode\b.*(für|for|write|schreib)", # i18n-allowr"\bimplementier\b", r"\bimplement\b",diff --git a/jarvis/brain/manager.py b/jarvis/brain/manager.pyindex 90c615baab..2cceeb7441 100644--- a/jarvis/brain/manager.py+++ b/jarvis/brain/manager.py@@ -5,7 +5,7 @@ Architecture:1. **Router** (`jarvis/brain/router.py`) classifies user intent:- `fast` → fast model (Haiku) for tool actions, smalltalk- `deep` → reasoning model (Opus) for analysis, planning, explanation- - `code` → OpenClaw-backed heavy worker+ - `code` → Jarvis-Agent-backed heavy worker2. **Model-Cache**: `(provider_name, model) → Brain-Instance` — multiplemodels of the same family coexist without re-instantiation.@@ -300,7 +300,7 @@ _SECRET_KEY_TO_BRAIN: dict[str, str] = {## Wave-4 migration: the second key was previously named ``"sub_jarvis"``# because the frontier model drove the Sub-Jarvis tier. The Sub-Jarvis tier-# was removed with the OpenClaw-Bridge migration, but the frontier mapping+# was removed with the Jarvis-Agent-Bridge migration, but the frontier mapping# itself is retained as the deep-brain source — hence simply ``"deep"``.## Aliases like "haiku"/"opus" are NOT mapped here — PROVIDER_ALIASES@@ -2041,14 +2041,14 @@ class BrainManager:# (compiled from `brain.routing.force_spawn_phrases`). Cached so# the hot path stays cheap.self._force_spawn_pattern: re.Pattern[str] | None = None- # AD-12 / AP-OC5 (wave-4 router): optional handlers for OpenClaw+ # AD-12 / AP-OC5 (wave-4 router): optional handlers for Jarvis-Agent# mission status/cancel. Injected via ``set_mission_command_handlers``# after bootstrap so the BrainManager constructor has no hard# dependency on MissionManager.- self._openclaw_status_fn: (+ self._jarvis_agent_status_fn: (Callable[[str | None], Awaitable[str]] | None) = None- self._openclaw_cancel_fn: (+ self._jarvis_agent_cancel_fn: (Callable[[str | None], Awaitable[str]] | None) = None@@ -2078,8 +2078,8 @@ class BrainManager:"""Builds a BrainManager from the tier-specific config.Wave-4 migration: previously there were two tiers, ``router`` and- ``sub_jarvis``. The Sub-Jarvis tier was replaced by the OpenClaw bridge- (see docs/openclaw-bridge.md §11); only ``router`` remains.+ ``sub_jarvis``. The Sub-Jarvis tier was replaced by the Jarvis-Agent+ bridge (see docs/jarvis-agents-bridge.md §11); only ``router`` remains.Reads `config.brain.router` and writes into a deep copy of JarvisConfig:- `brain.primary = tier_cfg.provider` (or `provider_override`)@@ -3085,9 +3085,9 @@ class BrainManager:return raw_outputdef _build_system_prompt(self) -> str:- """Builds the system prompt with OpenClaw-style workspace injection.+ """Builds the system prompt with Jarvis-Agent-style workspace injection.- Layer order (OpenClaw priority map):+ Layer order (Jarvis-Agent priority map):1. SOUL.md — Jarvis' own persona (who I am, tone rules)2. JARVIS_PERSONA.md — voice persona incl. ECHO-PARAPHRASE sectionand hangup contract (mandate phase 2 effect)@@ -3871,7 +3871,7 @@ class BrainManager:return _provider_switch_failure_phrase(result, display, lang)def _detect_cancel_intent(self, text: str) -> bool:- """True when the user wants to cancel a running OpenClaw task."""+ """True when the user wants to cancel a running Jarvis-Agent task."""match = match_voice_command(text)return match is not None and match.kind == "cancel"@@ -3987,7 +3987,7 @@ class BrainManager:status_fn: Callable[[str | None], Awaitable[str]] | None,cancel_fn: Callable[[str | None], Awaitable[str]] | None,) -> None:- """Wires the status/cancel handlers for OpenClaw mission reads.+ """Wires the status/cancel handlers for Jarvis-Agent mission reads.Called by bootstrap (e.g. ``jarvis/missions/init.py`` or serverstartup) once the MissionManager is ready.@@ -3995,7 +3995,7 @@ class BrainManager:AD-12 (status read via voice without spawn): when ``status_fn`` isset, the ``generate()`` path deterministically calls``status_fn(mission_id)`` on a detected status phrase instead of- asking the LLM or triggering a new OpenClaw spawn.+ asking the LLM or triggering a new Jarvis-Agent spawn.AP-OC5: pattern-match-first discipline — when no handlers areregistered (e.g. tests, headless mode), the code falls back to the@@ -4007,10 +4007,10 @@ class BrainManager:"summarise all active missions".cancel_fn: ``async (mission_id: str | None) -> str`` — cancelsmission(s) and returns a confirmation. ``mission_id=None``- means "cancel all active OpenClaw missions".+ means "cancel all active Jarvis-Agent missions"."""- self._openclaw_status_fn = status_fn- self._openclaw_cancel_fn = cancel_fn+ self._jarvis_agent_status_fn = status_fn+ self._jarvis_agent_cancel_fn = cancel_fndef _check_unsupported_intent(self, user_text: str) -> str | None:"""Agent-C capability gate: return a deterministic refusal when the@@ -4188,7 +4188,7 @@ class BrainManager:Bug fix 2026-05-01 (voice session 2026-04-30 22:38): the user said"es geht ab", the smalltalk allowlist did not match (phrase wasmissing), force-spawn did nothing, the LLM had full tool visibility- and hallucinated an OpenClaw spawn. Result: main Jarvis claimed to have+ and hallucinated a Jarvis-Agent spawn. Result: main Jarvis claimed to havestarted tests that it never started.Used in ``generate()`` to hide tools on clear smalltalk turns — the@@ -5082,7 +5082,7 @@ class BrainManager:Wave-4 migration: previously ``_should_force_sub_jarvis`` with``spawn_sub_jarvis`` tool lookup. The Sub-Jarvis tier was replaced by- the OpenClaw bridge — see docs/openclaw-bridge.md §11.+ the Jarvis-Agent bridge — see docs/jarvis-agents-bridge.md §11.Order (the real evaluation sequence — keep this in sync with the body):0. Conversational source (drag-dropped mission recap) → False.@@ -5132,14 +5132,14 @@ class BrainManager:# `log` is the module-level logger bound at L73 -- BUG-026 fix.if lowered in _WHISPER_FP_EXACT_ONLY:log.info(- "force_openclaw skipped: Whisper FP exact-only seed %r",+ "force_spawn skipped: Whisper FP exact-only seed %r",lowered,)return Falsefor _seed in _WHISPER_FP_PREFIX_OK:if lowered == _seed or lowered.startswith(_seed + " "):log.info(- "force_openclaw skipped: Whisper FP prefix seed %r",+ "force_spawn skipped: Whisper FP prefix seed %r",_seed,)return False@@ -5190,7 +5190,7 @@ class BrainManager:# smalltalk / open-app / skill). Those guards exist only to suppress# AMBIGUOUS, implicit spawns; they must never veto a request in which the# user literally named the vehicle. Before this hoist, an explicit- # "Starte OpenClaw" / "Spawne einen Subagenten und zeig …" was swallowed+ # "Starte Jarvis-Agent" / "Spawne einen Subagenten und zeig …" was swallowed# by the open-app / navigation guard and never spawned ("sometimes saying# subagent doesn't spawn a subagent"). The fatal preconditions above (no# tool/executor, Whisper-FP seed, min length, worker not viable) still@@ -5294,7 +5294,7 @@ class BrainManager:# hoisted to the top of this method (above every disambiguation guard)# per the 2026-06-15 user mandate — see the comment there. It used to sit# here, between the open-app guard and the skill guard, which let the- # open-app / navigation guards veto an explicit "Starte OpenClaw" /+ # open-app / navigation guards veto an explicit "Starte Jarvis-Agent" /# "Spawne … und zeig …" before the trigger was ever evaluated.# Skill-aware guard (AD-S3, 2026-06-09 rebuild): an utterance that# matches an installed, active skill is the skill's turn — never a@@ -5340,7 +5340,7 @@ class BrainManager:# used to spawn on every spawn_verb hit ("schreib", "mach",# "zeig", "lies", ...), which fired heavy workers for everyday# utterances. In strict mode we only spawn when the user- # explicitly names a heavy-work trigger ("OpenClaw", "Sub-Agent",+ # explicitly names a heavy-work trigger ("Jarvis-Agent", "Sub-Agent",# "spawn", "deep dive", "gründliche Recherche", ...). The legacy# verb/marker heuristic stays available via# `brain.routing.force_spawn_mode = "permissive"`.@@ -5467,7 +5467,7 @@ class BrainManager:``_select_subagent_worker_kind``) and is chosen independently of whichprovider talks to the user. A configured worker provider always maps to areal worker (claude-api -> ClaudeDirectWorker, codex -> CodexDirectWorker,- else the OpenClaw/default path), so it is viable for ANY talker — this is+ else the Jarvis-Agent/default path), so it is viable for ANY talker — this iswhat lets the user switch ``brain.primary`` to gemini / openai / codexwithout silencing every action request (AP-6: never couple routing to ahardcoded talker provider).@@ -6551,7 +6551,7 @@ class BrainManager:) -> list[str]:"""Formats the last N turn pairs as compact ``context_hints``.- Conversation memory bridge to the OpenClaw worker (bug fix 2026-04-30,+ Conversation memory bridge to the Jarvis-Agent worker (bug fix 2026-04-30,wave-4 rebrand): the worker is architecturally stateless. Without thisbridge it does not know the previous turns, even when the userexplicitly refers to them ("erklaer mir das genauer",@@ -6589,11 +6589,11 @@ class BrainManager:Wave-4 migration: previously ``_force_spawn_sub_jarvis`` with the``spawn_sub_jarvis`` tool. The Sub-Jarvis tier was replaced by the- OpenClaw bridge — see docs/openclaw-bridge.md §11.+ Jarvis-Agent bridge — see docs/jarvis-agents-bridge.md §11.Returns:``None`` when the heuristic does not trigger or the tool is absent.- Otherwise the OpenClaw output (the mission manager delivers a+ Otherwise the Jarvis-Agent output (the mission manager delivers aTTS-safe shortened summary via the voice listener path). The caller(``generate``) forwards the string as the final brain response."""@@ -6615,7 +6615,7 @@ class BrainManager:# receives a snapshot of the last turns as a hint, not the full# manager state.context_hints.extend(self._build_history_hints())- # Phase 5 (opt-in): include active-window hint so the OpenClaw worker+ # Phase 5 (opt-in): include active-window hint so the Jarvis-Agent worker# knows which app the user is currently working in. Default OFF# (costs 200-400 ms latency, not worth it for every spawn). 250 ms# timeout in the module; failure mode 4 (pywinauto crash) is caught.@@ -6645,7 +6645,7 @@ class BrainManager:# otherwise detect from the user's words."language": self._spawn_ack_language(user_text),}- log.info("Force-Spawn OpenClaw: %r", user_text[:160])+ log.info("Force-Spawn Jarvis-Agent: %r", user_text[:160])# Stamp the turn's resolved output language so spawn_worker drives the# spoken ACK + mission language from the ONE authoritative resolver on# the force-spawn path too (the tool-use loop does this for brain@@ -6835,10 +6835,11 @@ class BrainManager:)def _cancel_all_background_tasks(self) -> int:- """Cancels all running background OpenClaw tasks.+ """Cancels all running background Jarvis-Agent tasks.- Matches via `task.get_name()` against the "openclaw-" prefix. The- convention is set by the `spawn_worker` tool in `create_task(...)`.+ Matches via `task.get_name()` against the "jarvis-agent-" prefix (legacy+ naming convention, kept for byte-for-byte agreement with the+ `spawn_worker` tool's `create_task(...)` call).Returns the number of cancelled tasks."""cancelled = 0@@ -6849,10 +6850,10 @@ class BrainManager:return 0for task in running:name = task.get_name() or ""- if name.startswith("openclaw-") and not task.done():+ if name.startswith("jarvis-agent-") and not task.done():task.cancel()cancelled += 1- log.info("Cancelled %d background openclaw task(s)", cancelled)+ log.info("Cancelled %d background Jarvis-Agent task(s)", cancelled)return cancelleddef _cancel_readback(self, count: int) -> str:@@ -7284,7 +7285,7 @@ class BrainManager:)return confirmation- # AD-12 + AP-OC5 (OpenClaw bridge wave-4 router): intercept status/cancel+ # AD-12 + AP-OC5 (Jarvis-Agent bridge wave-4 router): intercept status/cancel# phrases via pattern match BEFORE the force-spawn heuristic# misinterprets them as action verbs ("brich ab" contains the verb 'ab'# and would otherwise trigger a new spawn). Pattern-match-first is@@ -7292,7 +7293,7 @@ class BrainManager:oc_match = match_mission_command(user_text)if oc_match is not None:log.info(- "OpenClaw-Command erkannt: intent=%s id=%s lang=%s text=%r",+ "Jarvis-Agent-Command recognized: intent=%s id=%s lang=%s text=%r",oc_match.intent,oc_match.mission_id,oc_match.language,@@ -7300,9 +7301,9 @@ class BrainManager:)if (oc_match.intent == "status"- and self._openclaw_status_fn is not None+ and self._jarvis_agent_status_fn is not None):- response = await self._openclaw_status_fn(oc_match.mission_id)+ response = await self._jarvis_agent_status_fn(oc_match.mission_id)await self._record_response_side_effects(user_text=user_text,response_text=response,@@ -7312,9 +7313,9 @@ class BrainManager:return responseif (oc_match.intent == "cancel"- and self._openclaw_cancel_fn is not None+ and self._jarvis_agent_cancel_fn is not None):- response = await self._openclaw_cancel_fn(oc_match.mission_id)+ response = await self._jarvis_agent_cancel_fn(oc_match.mission_id)await self._record_response_side_effects(user_text=user_text,response_text=response,@@ -7326,9 +7327,9 @@ class BrainManager:# the normal path. Logging aids debugging ("why does the status# read still spawn?": handlers not wired).log.warning(- "OpenClaw-Command-Match ohne Handler — fallback to normal "- "generate-pfad. Bootstrap muss "- "set_mission_command_handlers() rufen."+ "Jarvis-Agent-Command match without a handler — fallback to "+ "the normal generate path. Bootstrap must call "+ "set_mission_command_handlers().")routing_text, contextual_tool_names = self._contextual_routing_state(@@ -7366,7 +7367,7 @@ class BrainManager:self._skill_turn_match = self._match_skill_for_turn(routing_text)if self._skill_turn_match is not None:self._skill_turn_source = "continuation"- # AD-S9: an explicit heavy-work trigger ("Sub-Agent", "OpenClaw",+ # AD-S9: an explicit heavy-work trigger ("Sub-Agent", "Jarvis-Agent",# "spawne", "deep dive", …) names the execution vehicle — the mission# path owns such a turn, not the inline skill prompt. Live bug# 2026-06-10 14:34: "spawne einen Sub-Agent … Gmail …" became a mute@@ -7484,7 +7485,7 @@ class BrainManager:# Agent-C (capability-coupling): pre-generation capability gate.# If the utterance looks like an action request but no registered# capability covers it, return a deterministic "not supported" reply- # and skip both brain and openclaw. No LLM call, no latency cost+ # and skip both brain and the Jarvis-Agent worker. No LLM call, no latency cost# (AP-11 compliant — pure regex + registry lookup).# AD-S3: a matched skill IS the capability — the unsupported-intent# refusal must not fire on a skill turn.@@ -8266,7 +8267,7 @@ class BrainManager:# successfully — even if `response_text` is empty (e.g. suppress_response# for fire-and-forget tools like spawn_worker). In that case do NOT# return the "all failed" message — the UI receives feedback via bus events- # (OpenClawAnnouncement, etc.).+ # (JarvisAgentAnnouncement, etc.).# B5 Agent C: reset per-turn wiki suffix regardless of outcome so# stale context cannot leak into the next voice turn.self._wiki_context_suffix = ""@@ -8677,7 +8678,7 @@ class BrainManager:pass# ------------------------------------------------------------------- # Summarize — fuer OpenClaw-Announcements (Phase 5, Welle-4-rebrand)+ # Summarize — for Jarvis-Agent-Announcements (Phase 5, Wave-4 rebrand)# ------------------------------------------------------------------async def summarize(self, text: str, *, max_tokens: int = 120) -> str:diff --git a/jarvis/brain/mission_command_gate.py b/jarvis/brain/mission_command_gate.pyindex 61d796d78a..5c5a9e8ae0 100644--- a/jarvis/brain/mission_command_gate.py+++ b/jarvis/brain/mission_command_gate.py@@ -1,8 +1,8 @@-"""MissionCommandGate — pattern matcher for OpenClaw mission meta-commands.+"""MissionCommandGate — pattern matcher for Jarvis-Agent mission meta-commands.-AD-12 + AP-OC5 (see ``docs/openclaw-bridge.md``): status phrases+AD-12 + AP-OC5 (see ``docs/jarvis-agents-bridge.md``): status phrases("laeuft das noch?", "wie weit?", "Status?") and stop phrases ("brich ab", # i18n-allow-"stop OpenClaw") MUST NOT lead to a new spawn — the router brain must+"stop openclaw") MUST NOT lead to a new spawn — the router brain mustdetect them deterministically via regex, otherwise there is a risk of(a) latency from LLM tool-choice and (b) hallucination ("ja klar laeuft # i18n-allowdas noch" even though the mission is dead). # i18n-allow@@ -16,7 +16,7 @@ Architecture:match incorrectly.- Optional: extract mission ID if the user explicitly names a mission("status mission abc123" / "stop mission xyz"). Default is- None = "applies to all active OpenClaw missions".+ None = "applies to all active Jarvis-Agent missions".- Result is a lightweight frozen dataclass; the caller(``BrainManager.generate``) maps it to a Mission-Manager read or cancel.@@ -24,7 +24,7 @@ Comparison to ``voice_command_gate.match_voice_command``:The voice-command gate handles global meta-commands (provider switch,general cancel, depth override) that already take effect in``BrainManager.generate`` before the force-spawn check. This module is- narrower: only OpenClaw/mission-specific status and stop requests that+ narrower: only Jarvis-Agent/mission-specific status and stop requests thatwould otherwise be misinterpreted as spawn verbs ("brich ab" wouldotherwise be treated as an action verb and trigger a new sub-spawn)."""@@ -106,15 +106,15 @@ _STATUS_PATTERN_EN = re.compile(# --- Cancel phrases -----------------------------------------------------------#-# Match: "brich ab", "brich die Mission ab", "stop OpenClaw",-# "stoppe die Mission", "abbrechen", "cancel OpenClaw", # i18n-allow+# Match: "brich ab", "brich die Mission ab", "stop openclaw",+# "stoppe die Mission", "abbrechen", "cancel openclaw", # i18n-allow# "kill the mission".## Important: the existing ``voice_command_gate._CANCEL_PATTERN`` already# matches a generic "stopp / cancel / abbruch" at the sentence start —# that is relied on for background-cancelling sub-Jarvis tasks.# This module focuses specifically on **mission-cancel intent**:-# explicit mention of "Mission" / "OpenClaw" / "den Auftrag" /+# explicit mention of "Mission" / "openclaw" / "den Auftrag" /# "the task". When both match, MissionCommandMatch wins (narrower scope)._CANCEL_PATTERN_DE = re.compile(r"""@@ -179,12 +179,12 @@ _MISSION_ID_PATTERN = re.compile(@dataclass(frozen=True, slots=True)class MissionCommandMatch:- """Result of a recognised OpenClaw mission meta-command.+ """Result of a recognised Jarvis-Agent mission meta-command.Fields:intent: ``"status"`` or ``"cancel"``.mission_id: optional, present when the user explicitly names an ID.- ``None`` = "all active OpenClaw missions" (caller filters).+ ``None`` = "all active Jarvis-Agent missions" (caller filters).language: detected language (``"de"`` or ``"en"``); default``"de"`` so the caller can render the voice reply in the correctlanguage.@@ -196,13 +196,13 @@ class MissionCommandMatch:def match_mission_command(text: str) -> MissionCommandMatch | None:- """Strictly checks for OpenClaw mission meta-commands.+ """Strictly checks for Jarvis-Agent mission meta-commands.Returns:``MissionCommandMatch`` when the pattern hits a status or cancelphrase, otherwise ``None``. Order:1. Cancel first (takes priority — when the user says "stop- OpenClaw", status is irrelevant).+ openclaw", status is irrelevant).2. Status afterwards.On ambiguity (e.g. "wie weit cancel?" — rare), cancel wins.@@ -211,7 +211,7 @@ def match_mission_command(text: str) -> MissionCommandMatch | None:- "Status?" -> status / de- "Wie weit bist du?" -> status / de- "Brich die Mission ab" -> cancel / de- - "Stop OpenClaw" -> cancel / en (or de — doesn't matter)+ - "Stop openclaw" -> cancel / en (or de — doesn't matter)- "Cancel the mission" -> cancel / enExamples (no match):@@ -274,7 +274,7 @@ def _extract_mission_id(text: str) -> str | None:Recognises UUIDv4/v7 strings and short alphanumeric aliases after theword "mission". Returns ``None`` when no ID is recognisable — the caller- then filters for "all active OpenClaw missions".+ then filters for "all active Jarvis-Agent missions"."""m = _MISSION_ID_PATTERN.search(text)if not m:diff --git a/jarvis/brain/output_filter.py b/jarvis/brain/output_filter.pyindex a8d3158d0d..15568d07d1 100644--- a/jarvis/brain/output_filter.py+++ b/jarvis/brain/output_filter.py@@ -364,10 +364,11 @@ JARGON_RE = re.compile(# compound, otherwise just the compound itself.## 2026-05-24: the 2026-05-13 "OpenClaw is a brand name, let it through"-# exception is REVERSED. The OpenClaw subprocess was retired (the worker now-# runs Opus 4.7 directly), so Jarvis must never say "OpenClaw" or "OpenClaw--# Subagent" — that would claim a component that no longer exists. The negative-# lookbehind is removed, and OPENCLAW_RE below strips the brand token itself.+# exception is REVERSED. The internal worker was renamed to Jarvis-Agent — the+# retired "OpenClaw" subprocess no longer exists (the worker now runs Opus 4.7+# directly), so Jarvis must never say "OpenClaw" or "OpenClaw-Subagent" — that+# would claim a component that no longer exists. The negative lookbehind is+# removed, and LEGACY_BRAND_RE below strips the retired brand token itself.JARGON_COMPOUND_RE = re.compile(r"\b(?:" + "|".join(re.escape(c) for c in JARGON_COMPOUNDS) + r")\b",re.IGNORECASE,@@ -377,7 +378,7 @@ JARGON_COMPOUND_RE = re.compile(# "OpenClaw-" compound prefix ("OpenClaw-Mission" -> "Mission"; "OpenClaw-# Subagent" -> "Subagent", which JARGON_COMPOUND_RE then drops) and any# standalone "OpenClaw"/"OpenClore" (common STT mis-spelling of the brand).-OPENCLAW_RE = re.compile(r"\bOpenCl(?:aw|ore)-?", re.IGNORECASE)+LEGACY_BRAND_RE = re.compile(r"\bOpenCl(?:aw|ore)-?", re.IGNORECASE)# A1 drift (Mandate A1): remove the "Sir" honorific from the output.# The pattern matches ``Sir`` as an honorific in three forms:@@ -445,7 +446,7 @@ def scrub_for_voice("""Cleans up brain output for TTS synthesis.Args:- text: The text to scrub (brain response, OpenClaw summary,+ text: The text to scrub (brain response, Jarvis-Agent summary,skill output, announcement text, ...).language: ``"de"`` or ``"en"`` — determines the fallback phraseon a stacktrace hit.@@ -604,7 +605,7 @@ def scrub_for_voice(# 7. Engineering-Jargon (Whitelist-Schutz via Bindestrich-Lookbehind)# + Engineering-Compounds (Sub-Agent / Supervisor-Agent — Phase-1-# Erweiterung 2026-04-28).- new = OPENCLAW_RE.sub("", out)+ new = LEGACY_BRAND_RE.sub("", out)new = JARGON_RE.sub("", new)new = JARGON_COMPOUND_RE.sub("", new)if new != out:diff --git a/jarvis/brain/router.py b/jarvis/brain/router.pyindex 00afc6a549..4f51838f6f 100644--- a/jarvis/brain/router.py+++ b/jarvis/brain/router.py@@ -355,7 +355,7 @@ SKILLS oben — bei moeglichem Skill-Treffer gewinnt run-skill).VERBOTEN:- Lang reasonen wo die Aufgabe hingehoert. Eine Utterance = eine Kategorie.- Selber einen echten Brocken (Build, Refactor, grosser Bericht) im Chat- abarbeiten. Das ist OpenClaw-Job.+ abarbeiten. Das ist Jarvis-Agent-Job.- Einen Brocken-Spawn fuer eine simple Frage. News/Wissen/Lookup = search_web.- Den Nutzer fragen "soll ich delegieren?". Du entscheidest.@@ -439,7 +439,7 @@ Wenn du spawn_worker aufrufst, uebergib IMMER diese vier Argumente:Die Sprachansage wird daraus automatisch eine kurze, neutrale Bestaetigung(z.B. "Einen Augenblick, Ruben."). Es wird KEINE Mechanik genannt-("Sub-Agent", "delegiere", "OpenClaw", "spawn") und KEINE "Sir"-Anrede.+("Sub-Agent", "delegiere", "Jarvis-Agent", "spawn") und KEINE "Sir"-Anrede.Mandat-A1: ausschliesslich "Ruben". Audit F-AUDIT-1 (2026-04-29)."""diff --git a/jarvis/brain/tools/self_mod_tools.py b/jarvis/brain/tools/self_mod_tools.pyindex a1be73b4ec..d592eda2a2 100644--- a/jarvis/brain/tools/self_mod_tools.py+++ b/jarvis/brain/tools/self_mod_tools.py@@ -11,7 +11,7 @@ Plan-§AD-9: all schemas with `strict: true`, `additionalProperties: false`,`required` covers all properties, plus `input_examples` for better tool triggering.Plan-§AD-2: self-mod tools are exclusively router/main-Jarvis tools.-The OpenClaw worker has NO access (Wave 4: SUB_TOOLS deleted; worker sandbox without self-mod tools).+The Jarvis-Agent worker has NO access (Wave 4: SUB_TOOLS deleted; worker sandbox without self-mod tools).Defense-in-depth against "trust the model output" (Plan-AP-1):Every handler re-validates its input against type and schema beforediff --git a/jarvis/brain/tools/skill_authoring.py b/jarvis/brain/tools/skill_authoring.pyindex e49a5aaeff..29d3f987da 100644--- a/jarvis/brain/tools/skill_authoring.py+++ b/jarvis/brain/tools/skill_authoring.py@@ -1,10 +1,10 @@"""`spawn_skill_author` — Anthropic tool for main-Jarvis (Phase 7.5).-Plan-§7.5: the tool delegates skill creation via OpenClaw (Wave-4 rebrand,-frontier worker). Does not write anything itself — the `SkillAuthoringRunner`-handles the entire flow including pipeline audit.+Plan-§7.5: the tool delegates skill creation via the Jarvis-Agent worker+(Wave-4 rebrand, frontier worker). Does not write anything itself — the+`SkillAuthoringRunner` handles the entire flow including pipeline audit.-Plan-§AD-2: exclusively main-Jarvis tier; the OpenClaw worker has no+Plan-§AD-2: exclusively main-Jarvis tier; the Jarvis-Agent worker has noaccess to this tool (recursion guard)."""from __future__ import annotationsdiff --git a/jarvis/brain/vision_context.py b/jarvis/brain/vision_context.pyindex e9708b8de4..225ac64815 100644--- a/jarvis/brain/vision_context.py+++ b/jarvis/brain/vision_context.py@@ -2,7 +2,7 @@Wave-4 migration: previously ``spawn_sub_jarvis``. Provides a shortActive-Window-Hint (``"User active in: <process_name> (<window_title>)"``)-as an additional ``context_hint`` at spawn time. The OpenClaw worker gets+as an additional ``context_hint`` at spawn time. The Jarvis-Agent worker getsfree context about which application the user is currently working in —without burdening the main Jarvis prompt with a permanent vision block.diff --git a/jarvis/brain/voice_command_gate.py b/jarvis/brain/voice_command_gate.pyindex 498760d0a4..da86410d91 100644--- a/jarvis/brain/voice_command_gate.py+++ b/jarvis/brain/voice_command_gate.py@@ -1,7 +1,7 @@"""VoiceCommandGate — strict pattern matcher for meta-commands.The router LLM must NOT decide on its own to switch providers or cancel-running OpenClaw tasks. That is the responsibility of this gate, which+running Jarvis-Agent tasks. That is the responsibility of this gate, whichchecks the utterance with strict regex patterns BEFORE it reaches therouter LLM.diff --git a/jarvis/channels/__init__.py b/jarvis/channels/__init__.pyindex 0d2514f892..0f9dd8e912 100644--- a/jarvis/channels/__init__.py+++ b/jarvis/channels/__init__.py@@ -1,4 +1,4 @@-"""Channel adapter layer (OpenClaw-inspired, plan §17.3 / phase 1a).+"""Channel adapter layer (Jarvis-Agent-inspired, plan §17.3 / phase 1a).A channel is a bidirectional transport that delivers user messages to theorchestrator and returns replies along with event mirrors. The web UI isdiff --git a/jarvis/channels/telegram.py b/jarvis/channels/telegram.pyindex bd5d4e92ab..438ce9a715 100644--- a/jarvis/channels/telegram.py+++ b/jarvis/channels/telegram.py@@ -11,7 +11,7 @@ Architecture (Phase F1):- **Privacy**: every outbound message passes through ``scrub_for_voice``.- **FriendRegistry integration**: inbound reverse-lookup, optional auto-register.-OpenClaw pattern adopted: token hierarchy, ``group_policy``, ``require_mention``.+Jarvis-Agent pattern adopted: token hierarchy, ``group_policy``, ``require_mention``."""from __future__ import annotationsdiff --git a/jarvis/core/capabilities_seed.py b/jarvis/core/capabilities_seed.pyindex df754a47c1..98dc3b42d3 100644--- a/jarvis/core/capabilities_seed.py+++ b/jarvis/core/capabilities_seed.py@@ -256,8 +256,9 @@ _SEED_CAPABILITIES: list[Capability] = [# ------------------------------------------------------------------ ## OPERATIONAL HARNESS ADAPTERS (2)# ------------------------------------------------------------------ #- # NB: ``harness.openclaw`` deliberately removed (2026-06-28). OpenClaw is- # not a registered harness. Advertising phantom adapters mis-routes actions+ # NB: a ``harness.jarvis_agent`` (formerly ``harness.openclaw``) capability+ # was deliberately not added (2026-06-28). Jarvis-Agent is 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",diff --git a/jarvis/core/config.py b/jarvis/core/config.pyindex cbd533a1a2..82fded34e7 100644--- a/jarvis/core/config.py+++ b/jarvis/core/config.py@@ -584,8 +584,8 @@ class BrainRoutingConfig(BaseModel):Persona mandate Phase 3: main Jarvis is a pure dispatcher. When thisheuristic triggers, ``spawn_worker`` is called deterministically without- an LLM tool choice — the user utterance is passed verbatim to the OpenClaw- bridge (Wave-4 migration: previously the sub-Jarvis tier).+ an LLM tool choice — the user utterance is passed verbatim to the+ Jarvis-Agent bridge (Wave-4 migration: previously the sub-Jarvis tier).Defaults are chosen so that smalltalk (hello/thanks/how's it going) NEVERtriggers, while action verbs (lies/baue/installiere/oeffne/mach/zeig)@@ -640,9 +640,11 @@ class BrainRoutingConfig(BaseModel):# spawned heavy workers for trivial knowledge questions like# "Was ist ein Verbrenner-Motor?". The list captures the user's actual# signals for "I want a heavy worker, not a one-shot answer":- # explicit OpenClaw / sub-agent mentions plus deep-research markers.+ # explicit Jarvis-Agent / sub-agent mentions plus deep-research markers.force_spawn_phrases: list[str] = Field(default_factory=lambda: [- # Explicit OpenClaw / sub-agent mentions+ # Explicit Jarvis-Agent / sub-agent mentions. The "openclaw" variants+ # are the retired internal codename, kept as a legacy trigger so a+ # user who still says it out loud keeps working."openclaw", "open claw", "open-claw","subagent", "subagenten", "sub-agent", "sub-agenten", "sub agent","spawne", "spawn", "spawnen", "spawnt", "gespawnt",@@ -729,7 +731,7 @@ class BrainRoutingConfig(BaseModel):# Smalltalk allowlist — when the utterance matches one of these patterns,# NEVER spawn, even if the verb or marker heuristic fires. Pure wake/- # smalltalk inputs go straight through the brain, not via OpenClaw spawn.+ # smalltalk inputs go straight through the brain, not via Jarvis-Agent spawn.smalltalk_allowlist: list[str] = Field(default_factory=lambda: [# Greetings / Hangup"hallo", "hi", "hey", "moin", "guten morgen", "guten abend",@@ -908,7 +910,7 @@ class BrainConfig(BaseModel):# length against latency/cost. ~8192 tokens ≈ several minutes of speech.max_tokens: int = Field(default=8192, ge=256, le=32_768)# Phase 5 tiered routing — Wave-4 migration: the ``sub_jarvis`` tier was- # replaced by the OpenClaw bridge (see docs/openclaw-bridge.md §11).+ # replaced by the Jarvis-Agent bridge (see docs/jarvis-agents-bridge.md §11).# Only ``router`` remains as a tier; the heavy worker runs as an external# subprocess via Mission Manager. The ``worker`` field (renamed from# ``sub_jarvis`` in the Jarvis-Agents rename, 2026-06-29) accepts both the@@ -1226,10 +1228,12 @@ class JarvisAgentNotificationConfig(BaseModel):class JarvisAgentHarnessConfig(BaseModel):- """Top-level ``[harness.openclaw]`` config for the Jarvis-Agent worker harness.+ """Top-level ``[harness.jarvis_agent]`` config for the Jarvis-Agent worker+ harness (accepts the legacy ``[harness.openclaw]`` alias, see below).- ⚠️ INERT TODAY (2026-06-28): OpenClaw is NOT a registered harness — there is- no ``openclaw`` entry-point in pyproject.toml (Welle-4 removed the subprocess+ ⚠️ INERT TODAY (2026-06-28): Jarvis-Agent is NOT a registered harness —+ there is no ``jarvis_agent`` (formerly ``openclaw``) entry-point in+ pyproject.toml (Welle-4 removed the subprocessworker, ~92% hang; see docs/BUGS.md). This block is a Wave-2 schema stub:setting ``enabled = true`` has NO effect — the harness cannot be dispatchedand "start a subagent" routes to ``spawn_worker`` regardless. The boot path@@ -1238,7 +1242,7 @@ class JarvisAgentHarnessConfig(BaseModel):sub-agent work runs through the Mission-Manager (ClaudeDirectWorker), nothere, until Wave 3 actually wires the bridge.- Schema matches ``docs/openclaw-bridge.md §4.2`` post-Wave-1+ Schema matches ``docs/jarvis-agents-bridge.md §4.2`` post-Wave-1(with AD-22..AD-24 findings incorporated). Wave 2 delivers onlythe schema + default block in jarvis.toml; Wave 3 wires the bridge.@@ -1246,12 +1250,12 @@ class JarvisAgentHarnessConfig(BaseModel):means the bridge resolves the frontier-pro of the active Personal Jarvisprovider (``cfg.brain.primary``) via the provider-slug mapping from AD-6(gemini→google/gemini-..., claude-api→anthropic/..., openai→openai/...).- This way OpenClaw automatically follows the user's provider choice.+ This way Jarvis-Agent automatically follows the user's provider choice.AD-21 pin-version mandate: ``version`` must be set whenever the blockexists at all — a Pydantic required field, no default. Guards againstsilent upstream drifts. Loading without the block (``HarnessConfig.- openclaw is None``) falls back to "bridge inactive".+ jarvis_agent is None``) falls back to "bridge inactive"."""model_config = ConfigDict(extra="forbid")@@ -1269,7 +1273,7 @@ class JarvisAgentHarnessConfig(BaseModel):model: str | None = None# Time-cap fixed per AD-19; per-mission override deliberately not allowed.time_cap_min: int = Field(default=30, ge=1, le=240)- # Up to N OpenClaw missions in parallel; the fourth lands in the queue (AD-13).+ # Up to N Jarvis-Agent missions in parallel; the fourth lands in the queue (AD-13).concurrency: int = Field(default=3, ge=1, le=10)# AD-20 reserved for v2 cost-cap retrofit. v1 None = no cap.cost_cap_eur: float | None = Field(default=None, ge=0.0)@@ -1298,7 +1302,7 @@ class HarnessConfig(BaseModel):# Output limit per harness turn back to the brain — prevents large# build logs from blowing the context window.max_output_chars: int = 4000- # Per-harness overrides: e.g. {"openclaw": {"model": "opus", "max_turns": 10}}+ # Per-harness overrides: e.g. {"jarvis_agent": {"model": "opus", "max_turns": 10}}per_harness: dict[str, dict[str, object]] = Field(default_factory=dict)# Jarvis-Agent worker harness (Wave 2). None = block missing in jarvis.toml,# bridge stays inactive. When the block is present, ``version`` is required.@@ -1676,7 +1680,7 @@ class VisionContextConfig(BaseModel):Mandate: on every ``spawn_worker`` call, an optional active-window hint(process name + window title) is passed as an additional ``context_hint``to the worker. Default OFF because the UIA tree lookup costs 200-400 ms- of extra latency per spawn and does not pay off for every OpenClaw turn.+ of extra latency per spawn and does not pay off for every Jarvis-Agent turn.Enable via either:- ENV ``JARVIS_VISION_CONTEXT=1``diff --git a/jarvis/core/events.py b/jarvis/core/events.pyindex 5bbdb88722..c860887aad 100644--- a/jarvis/core/events.py+++ b/jarvis/core/events.py@@ -447,7 +447,7 @@ class TerminalCommandExecuted(Event):# Phase 5 — Kill / Cost / Observation / Task / Admin# -----------------------------------------------------------------------# Announcement (CL-3, formerly Sub-Jarvis lifecycle, now OpenClaw)+# Announcement (CL-3, Jarvis-Agent lifecycle; renamed twice, see git history)@dataclass(frozen=True, slots=True)class AnnouncementRequested(Event):@@ -914,7 +914,7 @@ class WorkflowCompleted(Event):# -----------------------------------------------------------------------# Jarvis-Agent Task Dashboard (formerly OpenClaw / Sub-Jarvis)+# Jarvis-Agent Task Dashboard# ----------------------------------------------------------------------@dataclass(frozen=True, slots=True)diff --git a/jarvis/core/paths.py b/jarvis/core/paths.pyindex 0dc593df34..ac6efe41a9 100644--- a/jarvis/core/paths.py+++ b/jarvis/core/paths.py@@ -1,7 +1,7 @@"""Central app directory convention.Personal Jarvis writes user data (skills, memory, logs, session file) to a-single canonical location — analogous to OpenClaw's ``~/.claude/``. On Windows+single canonical location — analogous to Claude Code's ``~/.claude/``. On Windowsthis is ``%LOCALAPPDATA%\\Jarvis``; when the ENV variable is absent (portablescripts, tests) we fall back to ``~/.jarvis/``.diff --git a/jarvis/core/protocols.py b/jarvis/core/protocols.pyindex c9ed415ea4..eab7d1e0f3 100644--- a/jarvis/core/protocols.py+++ b/jarvis/core/protocols.py@@ -119,7 +119,7 @@ RiskTier = Literal["safe", "monitor", "ask", "block"]@dataclass(frozen=True, slots=True)class HarnessTask:- """Task for a sub-agent harness (OpenClaw, Codex, OI, …)."""+ """Task for a sub-agent harness (Jarvis-Agent, Codex, OI, …)."""prompt: strcwd: str = "."env: dict[str, str] = field(default_factory=dict)@@ -316,7 +316,7 @@ class Brain(Protocol):@runtime_checkableclass Harness(Protocol):- """Sub-Agent-Framework (OpenClaw, Codex, Open Interpreter, MCP)."""+ """Sub-Agent-Framework (Jarvis-Agent, Codex, Open Interpreter, MCP)."""name: strversion: str@@ -426,7 +426,7 @@ class MemoryStore(Protocol):class ChannelAdapter(Protocol):"""Bidirectional message channel (web UI, Telegram, WhatsApp, …).- See the Phase-1a spec (OpenClaw pattern).+ See the Phase-1a spec (Jarvis-Agent pattern)."""name: str@@ -607,7 +607,7 @@ class IntentClassification:- `trivial` → main Jarvis answers directly (small talk, acknowledgement).- `direct_action` → main Jarvis calls a first-class tool (bash,screenshot, multi_spawn).- - `spawn_worker` → task goes verbatim to the OpenClaw bridge via+ - `spawn_worker` → task goes verbatim to the Jarvis-Agent bridge viathe mission manager. (formerly ``spawn_sub_jarvis``.)"""intent: Literal["trivial", "direct_action", "spawn_worker"]diff --git a/jarvis/core/review/spawns.py b/jarvis/core/review/spawns.pyindex f520da6d2a..c8fea55c9b 100644--- a/jarvis/core/review/spawns.py+++ b/jarvis/core/review/spawns.py@@ -5,7 +5,7 @@ Plan reference: §6.3 (spawn CLI), §AD-9 (filesystem IPC), §AD-10 (`--bare`),Both spawners use the existing `HarnessManager` for subprocess lifecycle(stream drain, timeout, cancellation). The spawners are the only place-where `OpenClaw` fields of `HarnessTask` are set — pipeline and tests+where `jarvis_agent` fields of `HarnessTask` are set — pipeline and testsremain harness-agnostic.`WorkerSpawner.spawn()` and `ReviewerSpawner.spawn()` match the signaturesdiff --git a/jarvis/core/self_mod/schema.py b/jarvis/core/self_mod/schema.pyindex 764d547924..a52c68c0de 100644--- a/jarvis/core/self_mod/schema.py+++ b/jarvis/core/self_mod/schema.py@@ -32,14 +32,14 @@ class AuditSource(StrEnum):class AuditActor(StrEnum):"""Logical initiator in the sense of the plan field `requested_by`.- Wave-4 migration: ``SUB_JARVIS`` renamed to ``OPENCLAW`` (see- docs/openclaw-bridge.md §11). Alias is retained for backwards compatibility- of historical audit entries.+ The internal system is named Jarvis-Agent. ``JARVIS_AGENT`` keeps its+ legacy string value so historical audit entries already containing+ ``requested_by: "openclaw"`` keep parsing."""HAUPTJARVIS = "hauptjarvis"- OPENCLAW = "openclaw"- SUB_JARVIS = "sub-jarvis" # legacy, ehemalige Sub-Jarvis-Tier-Eintraege+ JARVIS_AGENT = "openclaw" # legacy value; old audit rows keep parsing+ SUB_JARVIS = "sub-jarvis" # legacy: former Sub-Jarvis-tier entriesUSER = "user"SYSTEM = "system"diff --git a/jarvis/diagnostics/doctor.py b/jarvis/diagnostics/doctor.pyindex cdcc7d61a7..f4199b45c3 100644--- a/jarvis/diagnostics/doctor.py+++ b/jarvis/diagnostics/doctor.py@@ -1,7 +1,7 @@"""Completeness self-check ("doctor") — honestly report what is registered andready vs. what is advertised but missing.-Motivation (forensic 2026-06-28): a phantom ``openclaw`` harness (advertised in a+Motivation (forensic 2026-06-28): a phantom ``jarvis-agent`` harness (advertised in atool description + an ``[harness.openclaw].enabled = true`` config block, but neverregistered as an entry-point) made Jarvis claim a sub-agent feature was "notavailable / not installed" — even though the real sub-agent path (``spawn_worker``@@ -13,7 +13,7 @@ against what is actually registered/installed, and reports honestly:* **router tools** — every name in ``ROUTER_TOOLS`` must resolve to a registeredentry-point (or a known non-entry-point tool). A name that resolves to neither- is a PHANTOM (the dispatch-to-harness/openclaw class of bug).+ is a PHANTOM (the dispatch-to-harness/jarvis-agent class of bug).* **harness config** — any harness enabled in ``jarvis.toml`` must be aregistered harness; an enabled-but-unregistered harness is inert dead config.* **sub-agent backend** — the sub-agent code ships in the base install, but the@@ -91,7 +91,7 @@ def check_router_tools() -> list[DoctorFinding]:known non-entry-point router tool (the Phase-7 self-mod tools, registereddirectly in the loader). A name that resolves to NEITHER is a phantom: thebrain is told the tool exists, but it can never load — the exact shape of the- dispatch-to-harness/openclaw bug.+ dispatch-to-harness/jarvis-agent bug."""try:from jarvis.brain.factory import (diff --git a/jarvis/docs/search.py b/jarvis/docs/search.pyindex 70b1515f98..1013607d75 100644--- a/jarvis/docs/search.py+++ b/jarvis/docs/search.py@@ -261,7 +261,7 @@ class DocSearch:FTS5 breaks on ``"hello`` (unclosed quote) and treats ``-foo`` asnegation. Because our doc bodies are full of hyphenated word pairs- (``Voice-Pipeline``, ``OpenClaw-Spawn``), we split hyphenated tokens+ (``Voice-Pipeline``, ``Jarvis-Agent-Spawn``), we split hyphenated tokensinto individual words. The ``unicode61`` tokeniser already does this inthe index — the query just needs to avoid the negation pattern.diff --git a/jarvis/harness/base.py b/jarvis/harness/base.pyindex b5a9141a16..0fc1251497 100644--- a/jarvis/harness/base.py+++ b/jarvis/harness/base.py@@ -1,6 +1,6 @@"""Base classes for harness plugins.-A harness starts a sub-agent process (OpenClaw, Codex, OI, Hermes,+A harness starts a sub-agent process (Jarvis-Agent, Codex, OI, Hermes,Python script) and streams progress back. All harnesses are plugin classesbehind the `Harness` protocol. The `SubprocessHarness` base class handlesthe common parts (spawning the subprocess, reading UTF-8 line by line,diff --git a/jarvis/harness/computer_use_context.py b/jarvis/harness/computer_use_context.pyindex 7ee7283fde..378d504c53 100644--- a/jarvis/harness/computer_use_context.py+++ b/jarvis/harness/computer_use_context.py@@ -101,7 +101,7 @@ _CONTEXT: ComputerUseContext | None = None# duration of a mission and removes it in the finally block. The voice hangup# handler ("auflegen") calls ``cancel_active_cu()`` to stop ONLY the running# Computer-Use mission(s) -- it must NOT use ``KillSwitch.trip()``, which is-# global and would also kill OpenClaw background missions (the documented+# global and would also kill Jarvis-Agent background missions (the documented# hangup contract keeps those alive; only their voice readback is muted).## This is a SET, not a single slot (BUG-CU-CONCURRENT-CANCEL, 2026-06-24): CUdiff --git a/jarvis/mcp/server.py b/jarvis/mcp/server.pyindex e3b01cf305..66bff3195a 100644--- a/jarvis/mcp/server.py+++ b/jarvis/mcp/server.py@@ -1,6 +1,6 @@"""Jarvis as an MCP server.-External MCP clients (OpenClaw CLI, Cursor, VSCode Extension) can use+External MCP clients (the external `openclaw` CLI, Cursor, VSCode Extension) can useJarvis-internal capabilities:Tools:@@ -14,7 +14,7 @@ Resources:- jarvis://core-memory/persona — live dump of the persona block- jarvis://core-memory/all — full core-memory JSON-Registration in OpenClaw:+Registration in the external `openclaw` CLI:claude mcp add jarvis python -m jarvis.mcp.serverLoop detection:diff --git a/jarvis/memory/__init__.py b/jarvis/memory/__init__.pyindex 4f930cc1e1..e830a31cf9 100644--- a/jarvis/memory/__init__.py+++ b/jarvis/memory/__init__.py@@ -1,6 +1,6 @@"""Memory layer: recall (FTS5) + core memory (JSON) + workspace + auto-recording.-Workspace (new, OpenClaw-inspired):+Workspace (new, Jarvis-Agent-inspired):- `UserProfile` for USER.md (structured personality profile)- `Soul` for SOUL.md (Jarvis' own persona)- `PersonStore` for people/<name>.md (people around the user — kept separate from the user)diff --git a/jarvis/memory/core_memory.py b/jarvis/memory/core_memory.pyindex a7c79bab61..7e48305b56 100644--- a/jarvis/memory/core_memory.py+++ b/jarvis/memory/core_memory.py@@ -69,7 +69,7 @@ class CoreMemory:def reload(self) -> None:"""Re-reads the JSON from disk. Required before every brain call;otherwise the LLM will not see facts added after initialisation- (user additions via UI, remember-tool from a parallel OpenClaw worker,+ (user additions via UI, remember-tool from a parallel Jarvis-Agent worker,external editor)."""if not self.path.exists():returndiff --git a/jarvis/memory/workspace.py b/jarvis/memory/workspace.pyindex a7cdf1d11f..a8164f1791 100644--- a/jarvis/memory/workspace.py+++ b/jarvis/memory/workspace.py@@ -1,6 +1,6 @@"""Workspace layout for the persistent user-profile system.-Inspired by OpenClaw (`~/.openclaw/<agentId>/workspace/`), adapted for+Inspired by the external `openclaw` worker CLI (`~/.openclaw/<agentId>/workspace/`), adapted forJarvis: we use `data/workspace/` relative to the project root so thatdevelopment and production share the same layout and the files can beversioned (or deliberately .gitignored).diff --git a/jarvis/missions/__init__.py b/jarvis/missions/__init__.pyindex 22bd202ae8..e6c0ad5827 100644--- a/jarvis/missions/__init__.py+++ b/jarvis/missions/__init__.py@@ -3,8 +3,8 @@Subsystem for Worker-Critic loops with worktree isolation, SQLite event store,and Action/Observation invariant. All components live under``jarvis.missions.*``. Wave-4 migration: the former ``jarvis.sub_jarvis``-Phase-5 code has been fully removed — Mission Manager + OpenClaw Bridge-are now the only heavy workers (see docs/openclaw-bridge.md §11).+Phase-5 code has been fully removed — Mission Manager + Jarvis-Agent Bridge+are now the only heavy workers (see docs/jarvis-agents-bridge.md §11).Foundation decisions: docs/adr/0009-self-healing-worker-critic.mdImplementation plan: docs/phase6-prompt-chain.mddiff --git a/jarvis/missions/critic/runner.py b/jarvis/missions/critic/runner.pyindex 6e23e24769..d8f54a2ae7 100644--- a/jarvis/missions/critic/runner.py+++ b/jarvis/missions/critic/runner.py@@ -1,4 +1,4 @@-"""CriticRunner - spawns OpenClaw as the out-of-process reviewer.+"""CriticRunner - spawns the Jarvis-Agent worker harness as the out-of-process reviewer.The critic receives the mission prompt, worker diff, worker log summary, andreflection context, then returns a schema-valid verdict. Provider/model@@ -6,15 +6,15 @@ selection follows the same [brain.sub_jarvis] fallback chain as the heavyworker path.2026-05-17 (CRIT-1 from audit-team 10): when the resolved primary provider-is ``claude-api`` we bypass OpenClaw entirely and spawn ``claude --print``+is ``claude-api`` we bypass the Jarvis-Agent worker harness entirely and spawn ``claude --print``directly (analogous to ``ClaudeDirectWorker``). Live forensics on-mission_019e35a4 today showed OpenClaw 2026.5.7 silently ignores the+mission_019e35a4 today showed the external ``openclaw`` CLI (2026.5.7) silently ignores the``cliBackends["claude-cli"]`` override we inject into ``openclaw.json``(``provider_chain.py:486-505`` for the worker, ``_ensure_critic_agent_registered``below for the critic), routes the LLM call through the ``anthropic`` MessagesAPI backend instead, and dies with HTTP 400 "out of extra usage". Thatfailure mode put 100 % of voice-driven missions into ``critic_loop_exhausted``-since 13:14 today. Direct-spawn cuts OpenClaw out of the critic call-path+since 13:14 today. Direct-spawn cuts the Jarvis-Agent worker harness out of the critic call-pathso the OAuth token from ``~/.claude/.credentials.json`` is the only authsurface — same path the user's interactive ``claude`` shell uses."""@@ -88,7 +88,7 @@ class CapabilityHonestyCheck:This is a *sibling artefact* that augments the frozen ``CriticVerdict``without touching ``verdict.py`` (which has ``extra="forbid"`` and a- frozen schema shared with the OpenClaw subprocess contract).+ frozen schema shared with the Jarvis-Agent worker subprocess contract).Attributes:verdict: The underlying CriticVerdict returned by the LLM.@@ -112,7 +112,7 @@ class CapabilityHonestyCheck:# Patterns for the known harness output formats.-# 1. OpenClaw stream.jsonl: ``"type": "tool_use"`` frames with ``"name": "<tool>"``+# 1. Jarvis-Agent worker stream.jsonl: ``"type": "tool_use"`` frames with ``"name": "<tool>"``_RE_TOOL_USE_NAME = re.compile(r'"type"\s*:\s*"tool_use"[^}]*?"name"\s*:\s*"([^"]+)"',re.DOTALL,@@ -269,7 +269,7 @@ def _extract_tool_call_evidence(worker_output: str) -> tuple[str, ...]:"""Parse tool-call evidence from worker output in a defensive, format-agnostic way.Supports four harness output formats:- - OpenClaw stream.jsonl ``"type":"tool_use"`` frames.+ - Jarvis-Agent worker stream.jsonl ``"type":"tool_use"`` frames.- ``[TOOL_USE] <tool_name>`` CLI markers.- ``"dispatch-result"`` mission event bus entries.- Codex ``exec --json`` action items (command_execution / file_change /@@ -604,10 +604,10 @@ def build_critic_cmd(use_bare: bool,provider: str | None = None,) -> list[str]:- """Build the OpenClaw argv for the critic subprocess.+ """Build the Jarvis-Agent worker argv for the critic subprocess.`model` and `use_bare` stay in the signature for compatibility with older- callers. The effective provider/model comes from the OpenClaw SubJarvis+ callers. The effective provider/model comes from the Jarvis-Agent SubJarvisfallback chain so worker and critic use the same backend policy."""del model, use_bare@@ -676,7 +676,7 @@ def _verdict_from_codex_flat(flat: dict) -> CriticVerdict:codex only returns the 5 decision fields (forced by --output-schema).The four required axes are synthesised: all ``pass`` when the verdict isapprove, all ``fail`` otherwise -- consistent with the aggregate-axis- downgrade logic the OpenClaw path already relies on. The+ downgrade logic the Jarvis-Agent path already relies on. Thesuggested_next_action is derived from the verdict so the mission statemachine has a concrete next step."""@@ -706,7 +706,7 @@ def _verdict_from_codex_flat(flat: dict) -> CriticVerdict:class CriticRunner:- """Out-of-process critic backed by OpenClaw."""+ """Out-of-process critic backed by the Jarvis-Agent worker harness."""def __init__(self,@@ -1200,20 +1200,20 @@ class CriticRunner:async def _ensure_critic_agent_registered(self, *, env: dict[str, str], worktree: Path) -> None:- """Make sure the `critic` OpenClaw agent exists in the per-mission+ """Make sure the `critic` Jarvis-Agent agent exists in the per-mission`MISSION_STATE_DIR` before we call `openclaw agent --agent critic`.2026-05-17 (BUG-024-Episode-2 fix): the old implementation shelledout to ``openclaw agents add critic --workspace <wt>``. Empiricallythat subprocess can take 30-60 s on a cold Windows install (full- OpenClaw bootstrap: skills sync, MCP config, runtime plugins, …),+ Jarvis-Agent worker bootstrap: skills sync, MCP config, runtime plugins, …),regularly exceeding the 15 s timeout we used. When it timed outthe next ``openclaw agent --agent critic`` call surfaced``Error: Unknown agent id "critic"`` and the whole Critic-Loopdied with ``critic_loop_exhausted`` — exactly the symptom everyvoice mission hit yesterday.- OpenClaw stores the agent registration as a plain JSON entry in+ The Jarvis-Agent worker harness stores the agent registration as a plain JSON entry in``<state_dir>/openclaw.json`` (`agents.list[]`). We can write thatourselves in milliseconds and skip the subprocess entirely. Thematerialised shape matches what ``openclaw agents add`` produces@@ -1242,7 +1242,7 @@ class CriticRunner:Defensive: if the env doesn't carry ``MISSION_STATE_DIR`` (e.g.in unit tests that bypass build_worker_env), we silently skip —- OpenClaw will then auto-create ``main`` on first use and the+ the worker harness will then auto-create ``main`` on first use and thecritic call will surface ``Unknown agent`` as before. Productionalways sets MISSION_STATE_DIR in build_worker_env."""@@ -1287,7 +1287,7 @@ class CriticRunner:if not found:agent_list.append(critic_entry)- # Make sure `main` exists too — OpenClaw expects it. If the worker+ # Make sure `main` exists too — the Jarvis-Agent worker expects it. If the worker# spawn already wrote it we leave the row alone.has_main = any(isinstance(r, dict) and r.get("id") == "main"@@ -1298,7 +1298,7 @@ class CriticRunner:# 2026-05-17 (BUG-024-Episode-3): the Critic subprocess crashes# with `LLM request rejected: You're out of extra usage` because- # OpenClaw routes Claude through the `anthropic` Messages-API+ # The Jarvis-Agent worker routes Claude through the `anthropic` Messages-API# backend (which needs paid extra-usage credits) instead of the# `claude-cli` OAuth backend (which goes through the user's Claude# Max subscription). The Worker-spawn has the same problem and@@ -1306,7 +1306,7 @@ class CriticRunner:# right --permission-mode + --add-dir + --verbose args into the# mission's openclaw.json (provider_chain.py:486-505).#- # The Critic must inject the SAME block — without it OpenClaw+ # The Critic must inject the SAME block — without it the Jarvis-Agent worker# falls back to the anthropic Messages-API path and the Critic# call dies with HTTP 400 "out of extra usage". Live repro:# mission_019e35a4 today (2026-05-17 13:14) — Critic stderr@@ -1358,7 +1358,7 @@ class CriticRunner:except OSError as exc:logger.warning("CriticRunner: openclaw.json write failed (%s) — critic "- "spawn will fall back to OpenClaw's own auto-registration",+ "spawn will fall back to the Jarvis-Agent worker's own auto-registration",exc,)@@ -1383,8 +1383,8 @@ class CriticRunner:Branches on the resolved primary provider:* ``claude-api`` -> ``claude --print`` directly (ClaudeDirectCritic- path, CRIT-1 from 2026-05-17 audit). Bypasses OpenClaw.- * any other slug -> classic OpenClaw ``agent --agent critic`` path.+ path, CRIT-1 from 2026-05-17 audit). Bypasses the Jarvis-Agent worker harness.+ * any other slug -> classic Jarvis-Agent ``agent --agent critic`` path.Raises ``CriticTimeout`` on wall-clock cap; other subprocess errorssurface as ``None`` so the outer caller can run the adversarial retry.@@ -1399,8 +1399,8 @@ class CriticRunner:)# Append the JSON-only output contract once at the call site so both- # the OpenClaw and the direct paths see the same prompt. (The old- # `build_critic_cmd` appended it for the OpenClaw path; we lift that+ # the Jarvis-Agent worker and the direct paths see the same prompt. (The old+ # `build_critic_cmd` appended it for the Jarvis-Agent worker path; we lift that# so the direct path doesn't end up without the contract.)prompt_for_subprocess = (f"{prompt}\n\n"@@ -1516,8 +1516,8 @@ class CriticRunner:)# Any other provider (grok / gemini / openrouter / unset) falls back to- # the direct claude critic. The OpenClaw subprocess critic path was- # removed alongside the OpenClaw worker — it shared the ~92% nested-+ # the direct claude critic. The Jarvis-Agent worker subprocess critic path was+ # removed alongside the Jarvis-Agent worker — it shared the ~92% nested-# claude hang failure mode (see docs/BUGS.md). The direct claude CLI# path is the proven critic surface.#@@ -1603,12 +1603,12 @@ class CriticRunner:* No ``--output-format stream-json``: the prompt asks for asingle JSON object as the entire output, ``--print`` writesthat text verbatim to stdout. Simpler parse path than the- OpenClaw ``payloads[].text`` wrapper.+ Jarvis-Agent worker ``payloads[].text`` wrapper.OAuth: ``env`` carries ``ANTHROPIC_OAUTH_TOKEN`` and``ANTHROPIC_API_KEY`` from ``build_worker_env`` -> the binaryuses the user's Claude Max subscription instead of the paid- Messages-API path that OpenClaw routes through by default.+ Messages-API path that the Jarvis-Agent worker routes through by default."""from jarvis.missions.workers.claude_direct_worker import (_resolve_claude_argv_prefix,@@ -2061,7 +2061,7 @@ def _resolve_critic_provider_model() -> tuple[str | None, str | None]:Reads ``[brain.sub_jarvis]`` via the same chain resolver the Workeruses, so Worker and Critic always agree on the backend. Returns``(None, None)`` when no chain is resolvable (test paths, broken- config) so the caller falls back to the OpenClaw path.+ config) so the caller falls back to the Jarvis-Agent path."""try:from jarvis.missions.workers.provider_chain import (@@ -2193,7 +2193,7 @@ class _suppress:def _extract_json_payload(stdout_text: str) -> str:"""Extract the schema-validated CriticVerdict JSON from critic stdout.- OpenClaw returns a JSON document whose first payload text normally contains+ The Jarvis-Agent worker returns a JSON document whose first payload text normally containsthe reviewer JSON. Older fixtures may pass the verdict JSON directly, sowe keep the bare-object fallback."""diff --git a/jarvis/missions/init.py b/jarvis/missions/init.pyindex 127e255da9..23fce24fb6 100644--- a/jarvis/missions/init.py+++ b/jarvis/missions/init.py@@ -378,8 +378,8 @@ def _select_subagent_worker_kind(sub_jarvis_provider: str | None, step_model: stand the caller logs that case so a Gemini spawn is never silent.Note that choosing ``"gemini"`` as the *subagent provider* routes through- OpenClaw (``"subjarvis"``), NOT the direct ``GeminiWorker`` API path — the- latter is purely the legacy no-provider fallback.+ the Jarvis-Agent worker (``"subjarvis"``), NOT the direct ``GeminiWorker``+ API path — the latter is purely the legacy no-provider fallback."""if sub_jarvis_provider == "claude-api":return "claude_direct"@@ -405,8 +405,8 @@ def _select_subagent_worker_kind(sub_jarvis_provider: str | None, step_model: st# sub-agent actually runs on Gemini (the user's "selected provider must run"# mandate). This is NOT the anti-silent-Gemini case (2026-05-29) — that# forbade gemini as a *silent* fallback when something else was configured;- # here the user deliberately picked gemini. The OpenClaw path that this used- # to take ("subjarvis") was removed in Welle 4, so without this it silently+ # here the user deliberately picked gemini. The Jarvis-Agent path that this+ # used to take ("subjarvis") was removed in Welle 4, so without this it silently# ran on Claude instead of Gemini.if sub_jarvis_provider == "gemini":return "gemini"@@ -426,8 +426,8 @@ def subagent_runs_on_claude_fallback(sub_jarvis_provider: str | None) -> bool:(the in-process ApiAgentWorker runs them on their OWN provider), so they nolonger report a Claude fallback here — provided an API key is configured. Theonly remaining always-Claude case is the legacy ``"subjarvis"`` kind- (openclaw-claude / unknown provider), whose dedicated OpenClaw worker was- removed after the ~92% nested-claude hang.+ (the legacy ``openclaw-claude`` alias / unknown provider), whose dedicated+ Jarvis-Agent worker was removed after the ~92% nested-claude hang.NOTE: this is the ROUTING truth, not a credential check — an api_agentprovider with NO key still falls back to Claude at run time (``_worker_@@ -956,7 +956,7 @@ async def bootstrap_missions(except Exception as exc: # noqa: BLE001logger.warning("missions: brain config lookup failed (%s) — defaulting to "- "openclaw-backed worker routing",+ "jarvis-agent-backed worker routing",exc,)@@ -1008,7 +1008,7 @@ async def bootstrap_missions(# Grok / xAI: Jarvis stores under ``grok_api_key`` in the# credential manager (ENV fallback ``GROK_API_KEY``); we set# both XAI_API_KEY + GROK_API_KEY on the worker side so- # OpenClaw (XAI_API_KEY) and any legacy SDK (GROK_API_KEY)+ # Jarvis-Agent (XAI_API_KEY) and any legacy SDK (GROK_API_KEY)# both find it.if live_provider in {"grok", "xai"}:xai_key = get_jarvis_agent_secret("grok")@@ -1065,38 +1065,39 @@ async def bootstrap_missions(## 1. If ``[brain.sub_jarvis].provider`` is set in jarvis.toml,# every mission step routes to SubJarvisWorker (which drives- # the provider-agnostic OpenClaw CLI). This is the documented- # OpenClaw-bridge migration path and the way the user switches+ # the provider-agnostic Jarvis-Agent CLI). This is the documented+ # Jarvis-Agent-bridge migration path and the way the user switches# between grok / gemini / openai / claude-api / openrouter as# the Heavy-Worker provider without code changes.## 2. Otherwise use SubJarvisWorker as the default heavy worker.- # That keeps complex work on the provider-agnostic OpenClaw path+ # That keeps complex work on the provider-agnostic Jarvis-Agent path# instead of spawning a vendor-specific code CLI.- # BUG-023 fix (2026-05-16): OpenClaw 2026.5.7 silently swallows- # `cliBackends["claude-cli"].args` injection, so Sonnet via OpenClaw- # never gets file_write tools (verified live in mission_019e3236).- # When the configured provider is `claude-api`, bypass OpenClaw and+ # BUG-023 fix (2026-05-16): the external openclaw worker CLI 2026.5.7+ # silently swallows `cliBackends["claude-cli"].args` injection, so+ # Sonnet via Jarvis-Agent never gets file_write tools (verified live+ # in mission_019e3236).+ # When the configured provider is `claude-api`, bypass Jarvis-Agent and# drive the `claude` CLI directly — that path was empirically# proven to actually invoke Write tools (see /tmp/probe5 + /tmp/probe6# on 2026-05-16). Other providers (grok / gemini / openai / openrouter)- # still go through SubJarvisWorker / OpenClaw because OpenClaw is the- # right surface for them.+ # still go through SubJarvisWorker / Jarvis-Agent because Jarvis-Agent+ # is the right surface for them.# Welle 7 (2026-05-20): two opt-in routes coexist for the claude-cli# backend.# - "claude-api": direct claude CLI via ClaudeDirectWorker# (BUG-023-era shortcut, retained for back-compat).- # - "openclaw-claude": real OpenClaw subprocess (`openclaw agent- # --local --json --model claude-cli/<model>`). Empirically- # verified 2026-05-20 via the probe at ~/openclaw-probe-*: file- # write succeeded once SubJarvisWorker.spawn sets+ # - "openclaw-claude": real Jarvis-Agent subprocess (`openclaw agent+ # --local --json --model claude-cli/<model>`, the external worker+ # binary). Empirically verified 2026-05-20 via a local probe+ # directory: file write succeeded once SubJarvisWorker.spawn sets# agents.defaults.workspace to the per-mission worktree. The# SubJarvisWorker resolves "openclaw-claude" to the claude-api- # OpenClaw provider via _resolve_provider_chain's+ # Jarvis-Agent provider via _resolve_provider_chain's# primary_provider remap below.# Welle 6 (2026-05-18): user switched from Claude Max to ChatGPT# subscription. ``chatgpt`` / ``openai-codex`` route through the- # codex CLI's ChatGPT-OAuth path -- no API key, no OpenClaw, just+ # codex CLI's ChatGPT-OAuth path -- no API key, no Jarvis-Agent, just# `codex exec --json --skip-git-repo-check ...`. Both slug names# are accepted so a future jarvis.toml renames don't break boot.#@@ -1233,9 +1234,10 @@ async def bootstrap_missions(getattr(step, "model", ""),)return GeminiWorker(capability_inventory=capability_inventory)- # The legacy ``"subjarvis"`` kind (openclaw-claude / unknown provider /- # unset default) routed to the OpenClaw subprocess worker, which was- # removed (it caused the ~92% nested-claude hang; see docs/BUGS.md).+ # The legacy ``"subjarvis"`` kind (the legacy ``openclaw-claude`` alias /+ # unknown provider / unset default) routed to the Jarvis-Agent+ # subprocess worker, which was removed (it caused the ~92%+ # nested-claude hang; see docs/BUGS.md).# Open-source AP-22/AP-23: try the user's ACTUAL provider family before# the Claude last resort, so an openrouter/gemini/openai-only downloader# is not dead-ended on the absent `claude` binary.diff --git a/jarvis/missions/isolation/env.py b/jarvis/missions/isolation/env.pyindex e9a816f492..bd775b5945 100644--- a/jarvis/missions/isolation/env.py+++ b/jarvis/missions/isolation/env.py@@ -122,8 +122,8 @@ def build_worker_env(openai_api_key: optional, set as OPENAI_API_KEY.gemini_api_key: optional, set as GEMINI_API_KEY + GOOGLE_API_KEY.xai_api_key: optional, set as XAI_API_KEY + GROK_API_KEY- (xAI SDK accepts either name; OpenClaw reads XAI_API_KEY for the- ``xai`` provider slug).+ (xAI SDK accepts either name; the external `openclaw` CLI reads+ XAI_API_KEY for the ``xai`` provider slug).openrouter_api_key: optional, set as OPENROUTER_API_KEY.Output:@@ -187,8 +187,8 @@ def build_worker_env(# directly). Auth then comes from CLAUDE_CODE_OAUTH_TOKEN below (the# credentials file lives in the *user's* ~/.claude, not here).env["CLAUDE_CONFIG_DIR"] = str(_seed_worker_claude_config(run_dir))- # OpenClaw reads `<MISSION_STATE_DIR>/openclaw.json` to find- # `agents.defaults.workspace`; without that redirect, file_write/edit+ # The external `openclaw` CLI reads `<MISSION_STATE_DIR>/openclaw.json` to+ # find `agents.defaults.workspace`; without that redirect, file_write/edit# tool calls land in `~/.openclaw/workspace` instead of the per-mission# git worktree, and `Kontrollierer._capture_diff(worktree)` then sees an# empty diff and the mission is rejected as a no-op. Pinning the@@ -200,7 +200,7 @@ def build_worker_env(env["MISSION_STATE_DIR"] = str(run_dir / "openclaw_state")# Pre-create the per-mission `plugin-skills/browser-automation/` so- # OpenClaw's first-spawn symlink call doesn't crash with EPERM on+ # the external `openclaw` CLI's first-spawn symlink call doesn't crash with EPERM on# Windows non-admin users (Windows reserves `CreateSymbolicLink` for# accounts with `SeCreateSymbolicLinkPrivilege`, which the default# interactive user does not have unless Developer Mode is enabled).@@ -210,7 +210,7 @@ def build_worker_env(# browser/skills/browser-automation' -> '…/openclaw_state/plugin-# skills/browser-automation'`, two non-zero returncodes in a row →# `CriticSchemaInvalid`. With the target directory already present- # and populated with the source `SKILL.md`, OpenClaw's symlink call+ # and populated with the source `SKILL.md`, `openclaw`'s symlink call# either short-circuits on `EEXIST` or skips the step entirely;# either way the subprocess no longer dies on this code path.#@@ -218,7 +218,7 @@ def build_worker_env(# it, otherwise just create an empty marker file. Either is enough# to avoid `EPERM` on the symlink syscall — the worker doesn't# actually use the browser-automation skill for our task shapes.- _seed_openclaw_plugin_skills(Path(env["MISSION_STATE_DIR"]))+ _seed_jarvis_agent_plugin_skills(Path(env["MISSION_STATE_DIR"]))# Optional API keys (explicitly passed as parameters, no os.environ heuristics)if anthropic_api_key:@@ -236,7 +236,7 @@ def build_worker_env(# result-is_error=True frame and an empty diff.## Fix: route the token by format. OAuth -> OAuth slot; classic- # API key -> API-key slot. OpenClaw + claude --print both look+ # API key -> API-key slot. `openclaw` + claude --print both look# in both slots (OAuth-first), so either path works after this.if anthropic_api_key.startswith("sk-ant-oat"):env["ANTHROPIC_OAUTH_TOKEN"] = anthropic_api_key@@ -245,7 +245,7 @@ def build_worker_env(# NOT honour ANTHROPIC_OAUTH_TOKEN alone in that mode — verified# live 2026-05-29: it answers "Not logged in · Please run /login"# and produces an empty diff. ANTHROPIC_OAUTH_TOKEN stays set above- # for the OpenClaw-backed path / other consumers.+ # for the `openclaw`-backed path / other consumers.env["CLAUDE_CODE_OAUTH_TOKEN"] = anthropic_api_keyelse:env["ANTHROPIC_API_KEY"] = anthropic_api_key@@ -258,7 +258,7 @@ def build_worker_env(env["GEMINI_API_KEY"] = gemini_api_keyenv["GOOGLE_API_KEY"] = gemini_api_keyif xai_api_key:- # OpenClaw reads XAI_API_KEY for the ``xai`` provider slug; the+ # The external `openclaw` CLI reads XAI_API_KEY for the ``xai`` provider slug; the# legacy GROK_API_KEY name is set as a fallback for older SDK# versions and matches what Jarvis stores in the credential# manager (``grok_api_key`` -> ENV ``GROK_API_KEY``).@@ -373,27 +373,27 @@ def _seed_worker_claude_config(run_dir: Path) -> Path:return config_dir-# Probable install locations of the npm-bundled OpenClaw browser-automation+# Probable install locations of the npm-bundled `openclaw` browser-automation# skill on Windows. Listed in order of likelihood for the default install# path; the first one that exists wins. Empty paths are skipped.-_OPENCLAW_BROWSER_SKILL_CANDIDATES: tuple[str, ...] = (+_JARVIS_AGENT_BROWSER_SKILL_CANDIDATES: tuple[str, ...] = (r"%APPDATA%\npm\node_modules\openclaw\dist\extensions\browser\skills\browser-automation",r"%PROGRAMFILES%\nodejs\node_modules\openclaw\dist\extensions\browser\skills\browser-automation",r"%LOCALAPPDATA%\Programs\openclaw\dist\extensions\browser\skills\browser-automation",)-def _seed_openclaw_plugin_skills(state_dir: Path) -> None:- """Pre-create the OpenClaw browser-automation skill location as a+def _seed_jarvis_agent_plugin_skills(state_dir: Path) -> None:+ """Pre-create the `openclaw` browser-automation skill location as asymlink, if the privilege is available; otherwise leave the path- *missing* and let OpenClaw handle its own EPERM.+ *missing* and let `openclaw` handle its own EPERM.2026-05-17 (CRIT-3 from audit-team 10): the previous implementationmaterialised a plain *directory* at- ``<state_dir>/plugin-skills/browser-automation/`` so OpenClaw's+ ``<state_dir>/plugin-skills/browser-automation/`` so `openclaw`'sfirst-spawn symlink call would short-circuit on EEXIST. That tradelooked clean on paper, but live forensics (Audit-2 + Audit-6)- showed it actually trades EPERM for EINVAL: OpenClaw later does a+ showed it actually trades EPERM for EINVAL: `openclaw` later does a``readlink()`` against the path, which the kernel rejects withEINVAL (Linux/POSIX) or ERROR_INVALID_FUNCTION (Win32) because aplain directory is not a symbolic link. That EINVAL pulse fired@@ -402,12 +402,12 @@ def _seed_openclaw_plugin_skills(state_dir: Path) -> None:Correct fix: try to *create the symlink ourselves* using``os.symlink``. If that succeeds (Developer Mode or admin user),- OpenClaw's later ``readlink()`` returns a valid pointer and the+ `openclaw`'s later ``readlink()`` returns a valid pointer and thewhole pipeline works. If ``os.symlink`` raises EPERM/EACCES (thecommon case -- ``asInvoker`` user without``SeCreateSymbolicLinkPrivilege``), we simply *do nothing*. The- path stays nonexistent; OpenClaw's own symlink call will then- raise EPERM exactly once and OpenClaw's bootstrap can fall back to+ path stays nonexistent; `openclaw`'s own symlink call will then+ raise EPERM exactly once and `openclaw`'s bootstrap can fall back toits copy-not-symlink branch.The only thing we deliberately do NOT do anymore is materialise a@@ -423,7 +423,7 @@ def _seed_openclaw_plugin_skills(state_dir: Path) -> None:"""# Step 1: find a real source the symlink can point at.source_dir: Path | None = None- for candidate in _OPENCLAW_BROWSER_SKILL_CANDIDATES:+ for candidate in _JARVIS_AGENT_BROWSER_SKILL_CANDIDATES:expanded = Path(os.path.expandvars(candidate))if expanded.is_dir() and (expanded / "SKILL.md").is_file():source_dir = expanded@@ -432,7 +432,7 @@ def _seed_openclaw_plugin_skills(state_dir: Path) -> None:if source_dir is None:logger.debug("env: no source browser-automation skill found in any candidate "- "path — leaving plugin-skills target missing (OpenClaw will "+ "path — leaving plugin-skills target missing (openclaw will ""handle its own bootstrap)")return@@ -468,14 +468,14 @@ def _seed_openclaw_plugin_skills(state_dir: Path) -> None:except OSError as exc:logger.info("env: could not clear stale non-symlink at %s: %s -- "- "leaving as-is and letting OpenClaw handle it",+ "leaving as-is and letting openclaw handle it",target_dir, exc,)return# Step 3: try the real symlink. Windows requires# ``target_is_directory=True`` so the resulting link reports as a- # directory junction-compatible target -- without this OpenClaw's+ # directory junction-compatible target -- without this `openclaw`'s# ``readdir`` on the link would also fail.try:os.symlink(@@ -484,7 +484,7 @@ def _seed_openclaw_plugin_skills(state_dir: Path) -> None:target_is_directory=True,)logger.info(- "env: symlink %s -> %s for OpenClaw browser-automation",+ "env: symlink %s -> %s for openclaw browser-automation",target_dir, source_dir,)except (OSError, NotImplementedError) as exc:@@ -494,7 +494,7 @@ def _seed_openclaw_plugin_skills(state_dir: Path) -> None:# (theoretical; covered for completeness).logger.info("env: cannot symlink plugin-skills (likely no Developer Mode): "- "%s — leaving target missing so OpenClaw's own EPERM path runs "+ "%s — leaving target missing so openclaw's own EPERM path runs ""consistently (was previously crashing on EINVAL/readlink)",exc,)diff --git a/jarvis/missions/isolation/worktree.py b/jarvis/missions/isolation/worktree.pyindex c236c16d83..9f6a99e727 100644--- a/jarvis/missions/isolation/worktree.py+++ b/jarvis/missions/isolation/worktree.py@@ -421,8 +421,8 @@ class WorktreeManager:)# BUG-LIVE-05 (2026-05-14) — Retry delays for the Windows file-- # handle race in `git worktree remove`. The OpenClaw subprocess- # may still hold one of its trajectory / SQLite handles for a+ # handle race in `git worktree remove`. The Jarvis-Agent worker+ # subprocess may still hold one of its trajectory / SQLite handles for a# few hundred milliseconds after the parent yields control back# to the orchestrator. A short, exponentially-spaced retry loop# turns the noisy 80% case into a clean removal without paying@@ -445,8 +445,8 @@ class WorktreeManager:BUG-LIVE-05: on Windows, `git worktree remove` frequently failswith `error: failed to delete '...': Permission denied` right- after a worker subprocess exits — the OpenClaw process is gone- but a few SQLite WAL / trajectory file handles are still being+ after a worker subprocess exits — the Jarvis-Agent worker process+ is gone but a few SQLite WAL / trajectory file handles are still beingflushed by the OS. A short retry loop (50/100/200 ms) catchesthis transient state without paying the cost of the full`shutil.rmtree` fallback. The fallback path is preserved as a@@ -765,7 +765,7 @@ class WorktreeManager:Without this, repos containing files with deep nested paths cause``git worktree add`` to fail with ``Filename too long`` while onlysurfacing exit code 128 to the caller — which previously made every- OpenClaw mission report ``MissionFailed`` with no diagnostic.+ Jarvis-Agent mission report ``MissionFailed`` with no diagnostic.On ``CalledProcessError`` the stderr/stdout from git are loggedbefore re-raising so the underlying reason (path-length, lock,diff --git a/jarvis/missions/kontrollierer/decomposer.py b/jarvis/missions/kontrollierer/decomposer.pyindex 0ebf794830..341044fdce 100644--- a/jarvis/missions/kontrollierer/decomposer.py+++ b/jarvis/missions/kontrollierer/decomposer.py@@ -162,7 +162,7 @@ class Step(BaseModel):# [brain.providers.claude-api]; CodexDirectWorker omits --model when# empty (relies on ~/.codex/config.toml default). Previously hardcoded# to "sonnet", which is rejected by Codex on ChatGPT-OAuth accounts- # (HTTP 400). See docs/openclaw-spawn-failure-analysis-2026-05-18.md.+ # (HTTP 400). See docs/jarvis-agents-spawn-failure-analysis-2026-05-18.md.model: str = ""allowed_tools: str = "Read,Edit,Write,Bash,Grep,Glob"# Whether this step needs a full git worktree of the Personal Jarvis repodiff --git a/jarvis/missions/kontrollierer/deliverable_paths.py b/jarvis/missions/kontrollierer/deliverable_paths.pyindex 8979567a8b..b4563eae35 100644--- a/jarvis/missions/kontrollierer/deliverable_paths.py+++ b/jarvis/missions/kontrollierer/deliverable_paths.py@@ -42,8 +42,8 @@ from collections.abc import Callable, Sequencefrom typing import Final# Directory-segment names whose contents are never worker deliverables: git-# internals, the materialized OpenClaw state, language/build dep caches, and-# browser-engine cache/state subdirectories. NOTE: build *output* dirs+# internals, the materialized Jarvis-Agent state, language/build dep caches,+# and browser-engine cache/state subdirectories. NOTE: build *output* dirs# (``dist/``, ``build/``, ``.next/``) are intentionally NOT here — the# ``--ignored`` union exists precisely to capture deliverables a worker emits# there. Only add a name when it is unmistakably tool-scratch, never a result.diff --git a/jarvis/missions/kontrollierer/orchestrator.py b/jarvis/missions/kontrollierer/orchestrator.pyindex 63f0dd585d..8edd826b5b 100644--- a/jarvis/missions/kontrollierer/orchestrator.py+++ b/jarvis/missions/kontrollierer/orchestrator.py@@ -1308,9 +1308,9 @@ class Kontrollierer:log_dir.mkdir(parents=True, exist_ok=True)try:- # BUG-LIVE-03 (2026-05-14): never reuse OpenClaw session-id+ # BUG-LIVE-03 (2026-05-14): never reuse the `openclaw` session-id# across critic iterations. Live repro mission_019e2605- # showed that OpenClaw 2026.5.7 prefers the failover chain+ # showed that `openclaw` 2026.5.7 prefers the failover chain# persisted in the session-state file over the explicit# `--model` CLI flag on resume — so iter1 silently retried# `openai/gpt-5.5` instead of `xai/grok-4.3` and died withdiff --git a/jarvis/missions/stream_evidence.py b/jarvis/missions/stream_evidence.pyindex 573ee941d6..4b39f98aba 100644--- a/jarvis/missions/stream_evidence.py+++ b/jarvis/missions/stream_evidence.py@@ -282,7 +282,7 @@ def extract_stream_evidence(# Tool names that materialise a file on disk. Covers the claude-direct worker-# (`Write`/`Edit`/`MultiEdit`/`NotebookEdit`) and the OpenClaw / generic+# (`Write`/`Edit`/`MultiEdit`/`NotebookEdit`) and the Jarvis-Agent / generic# variants (`file_write`/`write_file`/`create_file`). Matched case-sensitively# against the stream's `tool_use.name`._WRITE_TOOL_NAMES: frozenset[str] = frozenset({@@ -393,7 +393,7 @@ def extract_write_targets(stream_text: str) -> tuple[str, ...]:# Shell-execution tool names across the worker backends (claude-direct `Bash`,-# OpenClaw / codex / generic variants). Matched case-sensitively against+# Jarvis-Agent / codex / generic variants). Matched case-sensitively against# `tool_use.name`._SHELL_TOOL_NAMES: frozenset[str] = frozenset({"Bash",diff --git a/jarvis/missions/voice/announcer.py b/jarvis/missions/voice/announcer.pyindex 0b5701c8fb..9b5cbf0b88 100644--- a/jarvis/missions/voice/announcer.py+++ b/jarvis/missions/voice/announcer.py@@ -1,7 +1,7 @@"""MissionAnnouncer — bridge MissionBus -> AnnouncementRequested bus event.-AD-17 (see ``docs/openclaw-bridge.md``): "Notifications via existing-``_on_announcement`` bus" — the OpenClaw bridge pipes mission summaries+AD-17 (see ``docs/jarvis-agents-bridge.md``): "Notifications via existing+``_on_announcement`` bus" — the Jarvis-Agent bridge pipes mission summariesthrough the existing ``AnnouncementRequested`` event into the``SpeechPipeline``. Advantages over the direct ``tts_speak_fn``path in ``MissionVoiceListener``:diff --git a/jarvis/missions/worker_runtime/__init__.py b/jarvis/missions/worker_runtime/__init__.pyindex 256cc22e0a..37d06cd1d8 100644--- a/jarvis/missions/worker_runtime/__init__.py+++ b/jarvis/missions/worker_runtime/__init__.py@@ -1,6 +1,7 @@-"""Shared mission worker-runtime helpers (legacy ``openclaw`` package name).+"""Shared mission worker-runtime helpers (legacy package name, now generic+mission-runtime infra).-The OpenClaw subprocess execution path was removed (the maintainer migrated+The old subprocess execution path was removed (the maintainer migratedto the direct Opus worker, ``ClaudeDirectWorker``). What remains here is theprovider-agnostic scaffolding the live worker + critic still depend on:@@ -10,8 +11,10 @@ provider-agnostic scaffolding the live worker + critic still depend on:(AGENTS.md materialisation). Pure file IO. Consumed by the Kontrolliererorchestrator for every mission worktree.-Both modules carry the legacy ``openclaw`` name only for historical reasons;-they are generic mission-runtime infrastructure.+Both modules still carry a handful of legacy ``openclaw`` literals (the+external worker binary's on-disk paths and a read-time backcompat provider+alias) for historical reasons; they are otherwise generic mission-runtime+infrastructure."""from __future__ import annotationsdiff --git a/jarvis/missions/worker_runtime/provider_map.py b/jarvis/missions/worker_runtime/provider_map.pyindex 56ca49c33a..7b152fdf74 100644--- a/jarvis/missions/worker_runtime/provider_map.py+++ b/jarvis/missions/worker_runtime/provider_map.py@@ -1,7 +1,7 @@"""Personal-Jarvis provider-slug to worker-harness provider-slug mapping.-Pure data module without IO — subprocess spawn mechanics live in the harness-plugin (`jarvis/plugins/harness/openclaw.py`).+Pure data module without IO — subprocess spawn mechanics live in+`jarvis/missions/workers/provider_chain.py`.Bridge mechanics (summary for future readers):1. cfg.brain.primary -> jarvis provider slug (e.g. "gemini")@@ -99,7 +99,7 @@ class ProviderMapping:# Live verified: "anthropic/claude-sonnet-4-6" returns 400 "out of extra# usage" even with the OAuth bearer token in ANTHROPIC_API_KEY; "claude-cli"# routes through the Claude Max plan's included usage. ENV-var primary is-# ANTHROPIC_OAUTH_TOKEN (OpenClaw's preferred OAuth name) with+# ANTHROPIC_OAUTH_TOKEN (the worker harness's preferred OAuth name) with# ANTHROPIC_API_KEY as fallback for back-compat. Reapplied 2026-05-17 after# a Drift-Guard / parallel-pull rolled back the original commit.MAPPINGS: Final[tuple[ProviderMapping, ...]] = (@@ -114,7 +114,7 @@ MAPPINGS: Final[tuple[ProviderMapping, ...]] = (# stable display/reverse-mapping identity; no external CLI is spawned.ProviderMapping("grok", "xai", "XAI_API_KEY", "GROK_API_KEY"),# NVIDIA NIM: an OpenAI-compatible API provider. Like openai/openrouter it- # runs through the in-process ApiAgentWorker (not the OpenClaw CLI harness),+ # runs through the in-process ApiAgentWorker (not the Jarvis-Agent CLI worker harness),# so ``worker_slug`` is only a placeholder — this row exists so nvidia is a# selectable subagent in the API-Keys "Subagents" tab and env/slug lookups# stay consistent.@@ -223,8 +223,8 @@ def canonical_worker_provider(raw_provider: str | None) -> str | None:Mirrors the worker routing in ``jarvis/missions/init.py::_worker_factory``so the displayed brain never drifts from the worker that runs:- * ``"openclaw-claude"`` runs the worker harness subprocess but is still- the Claude brain -> normalize to ``"claude-api"`` for display.+ * the legacy ``"openclaw-claude"`` alias runs the worker harness subprocess+ but is still the Claude brain -> normalize to ``"claude-api"`` for display.* all other slugs pass through (lower-cased, stripped).Note: ``"chatgpt"`` / ``"openai-codex"`` (the Codex/ChatGPT-OAuth route)diff --git a/jarvis/missions/worker_runtime/workspace.py b/jarvis/missions/worker_runtime/workspace.pyindex 528fab2bcd..57e95c1c23 100644--- a/jarvis/missions/worker_runtime/workspace.py+++ b/jarvis/missions/worker_runtime/workspace.py@@ -1,14 +1,15 @@-"""Workspace isolator per OpenClaw mission (AD-23, AP-OC15).+"""Workspace isolator per Jarvis-Agent mission (AD-23, AP-OC15).Background (Wave-1-Spike B-9):- OpenClaw automatically injects ~35.4k chars of system prompt from- `~/.openclaw/workspace/` at the start of every `agent --local` run:+ The external `openclaw` worker CLI automatically injects ~35.4k chars of+ system prompt from `~/.openclaw/workspace/` at the start of every+ `agent --local` run:AGENTS.md 7774 chars <- anti-pattern docs, not Personal-Jarvis AGENTSSOUL.md 1797 chars <- default persona ("I am OpenClaw, ...")- TOOLS.md 910 chars <- OpenClaw tool docs (irrelevant for us)- IDENTITY.md 693 chars <- OpenClaw self-reference- USER.md (variable) <- OpenClaw user profile+ TOOLS.md 910 chars <- `openclaw` tool docs (irrelevant for us)+ IDENTITY.md 693 chars <- `openclaw` self-reference+ USER.md (variable) <- `openclaw` user profileRisks without override:1. Persona drift: SOUL.md/IDENTITY.md overwrites the Personal-Jarvis@@ -49,10 +50,10 @@ __all__ = []-# Wave-1-Spike B-9: these are the exact 5 file names that OpenClaw reads from+# Wave-1-Spike B-9: these are the exact 5 file names that `openclaw` reads from# `~/.openclaw/workspace/` and injects into the system prompt. This constant# is the audit baseline — if a name appears in `injectedWorkspaceFiles[]` that-# is NOT in this set, OpenClaw found additional files somewhere+# is NOT in this set, `openclaw` found additional files somewhere# (workspace override failed).EXPECTED_WORKSPACE_FILES: Final[frozenset[str]] = frozenset({"AGENTS.md",@@ -62,23 +63,23 @@ EXPECTED_WORKSPACE_FILES: Final[frozenset[str]] = frozenset({"USER.md",})-# Subdir name under `MISSION_STATE_DIR`. OpenClaw looks here when+# Subdir name under `MISSION_STATE_DIR`. `openclaw` looks here when# `MISSION_STATE_DIR` is set (Wave-1-Spike SP-2 confirmed `workspaceDir`# in the JSON output).WORKSPACE_SUBDIR: Final[str] = "workspace"# Stub contents for the 5 files. Deliberately short — the whole point is to-# kill OpenClaw's 35.4k chars and replace them with Personal-Jarvis mission-# context. Mission ID is included in every file so audit reads can later tell-# which mission wrote the file.+# kill the external openclaw worker's 35.4k chars and replace them with+# Personal-Jarvis mission context. Mission ID is included in every file so+# audit reads can later tell which mission wrote the file._STUB_HEADER = "<!-- managed by Personal Jarvis Mission-Manager — do not edit -->"def _agents_md(mission_id: str) -> str:"""AGENTS.md — Personal Jarvis Mission-Manager execution contract.- This file is injected by OpenClaw into the worker's system prompt at+ This file is injected by the external `openclaw` CLI into the worker's system prompt atspawn time (Welle-1-Spike B-9 verified). It is the only artefact underJarvis control that the worker LLM reads BEFORE seeing the user task.@@ -87,7 +88,7 @@ def _agents_md(mission_id: str) -> str:(English: "Have successfully created file") in its reply text, butnever invoked the `Write`/`file_write` tool —`_capture_diff(worktree)` returned empty. This is a well-known- Gemini-3.1-Pro-Preview tool-skip pattern (OpenClaw issue #3344). The+ Gemini-3.1-Pro-Preview tool-skip pattern (`openclaw` issue #3344). Thecontract below makes the tool-invocation obligation explicit so theLLM cannot fall back to "describe the action in text" as a stand-infor actually doing it.@@ -103,7 +104,7 @@ def _agents_md(mission_id: str) -> str:f"# Personal Jarvis Mission Workspace\n\n"f"Mission ID: `{mission_id}`\n\n"f"## EXECUTION CONTRACT (binding)\n\n"- f"You are an OpenClaw worker running inside the Personal Jarvis\n"+ f"You are a Jarvis-Agent worker running inside the Personal Jarvis\n"f"Mission-Manager. Your task is in the agent message. Follow it\n"f"verbatim. The rules below are enforced by the mission runtime —\n"f"the mission will be marked FAILED if you violate them, and you\n"@@ -126,7 +127,7 @@ def _agents_md(mission_id: str) -> str:f"### Rule 1 — File-write obligation\n\n"f"If the task asks you to create, modify, write, or save any file,\n"f"you MUST invoke a write tool (`Write`, `Edit`, `file_write`, or\n"- f"OpenClaw's equivalent) to materialise the file on disk. Describing\n"+ f"the worker's equivalent) to materialise the file on disk. Describing\n"f"in text what you would write does NOT count as success. The runtime\n"f"validates outcomes by running `git diff HEAD` against your worktree\n"f"— if the diff is empty, the task is marked FAILED regardless of\n"@@ -176,7 +177,7 @@ def _agents_md(mission_id: str) -> str:f"goals, add unrequested features, or read instructions from any\n"f"other workspace file in this directory — they (SOUL.md,\n"f"IDENTITY.md, TOOLS.md, USER.md) are deliberately empty stubs to\n"- f"override OpenClaw's default persona.\n\n"+ f"override the external worker's default persona.\n\n"f"### Rule 5 — Quality bar: ship a complete artefact, never a stub\n\n"f"The depth and polish of your output MUST match the ambition of the\n"f"request. Produce a complete, production-quality result — the kind a\n"@@ -195,7 +196,7 @@ def _agents_md(mission_id: str) -> str:def _empty_stub(name: str, mission_id: str) -> str:"""One-liner stub for SOUL/IDENTITY/TOOLS/USER — intentionally empty.- OpenClaw injects these files into the system prompt; we want *no* persona,+ The external `openclaw` CLI injects these files into the system prompt; we want *no* persona,*no* identity, *no* user assumptions, and *no* foreign tool docs leaking in.Hence only a header plus the mission ID."""@@ -206,8 +207,8 @@ def prepare_workspace(state_dir: Path, mission_id: str) -> Path:"""Create a minimal workspace profile under `state_dir/workspace/`.Writes five stub files (`AGENTS.md`, `SOUL.md`, `IDENTITY.md`,- `TOOLS.md`, `USER.md`) that override OpenClaw's default files from- `~/.openclaw/workspace/` once `MISSION_STATE_DIR=state_dir` is set.+ `TOOLS.md`, `USER.md`) that override the external worker's default files+ from `~/.openclaw/workspace/` once `MISSION_STATE_DIR=state_dir` is set.Idempotent: calling again overwrites the files with the same content —no appending, no duplicates.@@ -266,7 +267,7 @@ def materialize_worker_contract(worktree: Path, mission_id: str) -> Path:Called by ``Kontrollierer`` right after ``WorktreeManager.create()``returns a fresh per-task worktree. The file uses the same content- as ``prepare_workspace`` (``_agents_md(mission_id)``) so OpenClaw-+ as ``prepare_workspace`` (``_agents_md(mission_id)``) so Jarvis-Agent-style and claude-direct workers see the same contract.The path is added to the worktree's *local* exclude file@@ -377,12 +378,12 @@ def verify_injected_files(in `~/.openclaw/workspace/`).Empty list = audit green. When the result is non-empty the bridge should- fire a bus event `OpenClawWorkspaceAuditFailed` or mark the mission as+ fire a bus event `JarvisAgentWorkspaceAuditFailed` or mark the mission asfailed — policy decision for the bridge, not this helper.Args:injected: The list from the JSON output, or None / empty iterable- when OpenClaw provided no report (treated as audit pass —+ when the external `openclaw` CLI provided no report (treated as audit pass —no evidence of a leak).expected: Whitelist of expected file names. Defaults to the 5stubs from `prepare_workspace`. Override for tests.@@ -395,9 +396,9 @@ def verify_injected_files(unexpected: set[str] = set()for entry in injected:- # Robust: we accept the `name` key (as OpenClaw delivers it from the spike),+ # Robust: we accept the `name` key (as `openclaw` delivers it from the spike),# silently ignore entries without `name` — that would be a schema break- # in OpenClaw, not a bridge bug.+ # in `openclaw`, not a bridge bug.raw_name = entry.get("name")if not isinstance(raw_name, str):continuediff --git a/jarvis/missions/workers/claude_direct_worker.py b/jarvis/missions/workers/claude_direct_worker.pyindex 10f03f96c8..a644b72cf9 100644--- a/jarvis/missions/workers/claude_direct_worker.py+++ b/jarvis/missions/workers/claude_direct_worker.py@@ -1,7 +1,8 @@-"""ClaudeDirectWorker — drives the `claude` CLI directly, bypassing OpenClaw.+"""ClaudeDirectWorker — drives the `claude` CLI directly, bypassing the external `openclaw` CLI.-Live forensics on 2026-05-16 (Verifier-Agent 5/5) proved that OpenClaw-2026.5.7 silently ignores ``agents.defaults.cliBackends["claude-cli"].args``+Live forensics on 2026-05-16 (Verifier-Agent 5/5) proved that the external+``openclaw`` worker CLI (version 2026.5.7) silently ignores+``agents.defaults.cliBackends["claude-cli"].args``when running ``openclaw agent --local --json --model claude-cli/<model>``.The injected ``--permission-mode bypassPermissions`` never reaches theclaude binary, so the worker boots in chat-only mode and produces@@ -21,7 +22,7 @@ vs the identical request through ``openclaw agent``:This worker spawns ``claude`` directly with the right argv and the prompton stdin, preserving the WorkerProtocol contract so the Kontrollierersees the same ClaudeSystemInit / ClaudeResult events as it does for the-OpenClaw-backed SubJarvisWorker. The provider chain is read from+``openclaw``-backed SubJarvisWorker. The provider chain is read from``[brain.sub_jarvis]`` for parity with SubJarvisWorker — we only actwhen the resolved primary provider is ``claude-api``; other providersfall through to SubJarvisWorker via ``worker_factory`` routing in@@ -276,7 +277,7 @@ def _build_mcp_config_args(config_dir: Path, mcp_servers: dict[str, Any] | None)class ClaudeDirectWorker:- """Heavy worker that calls ``claude`` directly without OpenClaw.+ """Heavy worker that calls ``claude`` directly without the external ``openclaw`` worker CLI.Conforms to ``WorkerProtocol`` structurally (no inheritance — see``jarvis/missions/workers/base.py``). Yields the same Pydantic@@ -408,7 +409,7 @@ class ClaudeDirectWorker:# 2. as the UNIVERSAL FALLBACK when the chosen provider cannot run this# mission — its API key is missing / the codex login is dead — or when# an old/unknown provider is configured (openclaw-claude / unset / the- # removed OpenClaw "subjarvis" path that caused the ~92% nested-claude+ # removed Jarvis-Agent "subjarvis" path that caused the ~92% nested-claude# hang). The factory LOGS every such fallback; the choice is never# silently swapped (anti-silent-fallback mandate).#@@ -425,7 +426,7 @@ class ClaudeDirectWorker:if primary is not None and primary.provider != "claude-api":logger.warning("ClaudeDirectWorker[%s]: configured sub_jarvis provider is %r, "- "which has no direct worker (OpenClaw path removed in Welle 4) — "+ "which has no direct worker (Jarvis-Agent path removed in Welle 4) — ""running heavy work on the Claude Max OAuth backend (model=%s) ""instead of failing the mission.",worker_id,diff --git a/jarvis/missions/workers/codex_direct_worker.py b/jarvis/missions/workers/codex_direct_worker.pyindex b11e6183aa..c6a71b3498 100644--- a/jarvis/missions/workers/codex_direct_worker.py+++ b/jarvis/missions/workers/codex_direct_worker.py@@ -566,7 +566,7 @@ class CodexDirectWorker:# Normalize Anthropic-flavoured aliases ("sonnet", "claude-...",# ...) to empty so codex uses its ChatGPT-subscription default.# See _normalize_model_for_codex docstring + the 2026-05-18 audit- # at docs/openclaw-spawn-failure-analysis-2026-05-18.md.+ # at docs/jarvis-agents-spawn-failure-analysis-2026-05-18.md.effective_model = _normalize_model_for_codex(model) or Nonecmd = _build_codex_direct_cmd(worktree=worktree,diff --git a/jarvis/missions/workers/provider_chain.py b/jarvis/missions/workers/provider_chain.pyindex 0ea0202230..4b459f32f9 100644--- a/jarvis/missions/workers/provider_chain.py+++ b/jarvis/missions/workers/provider_chain.py@@ -1,7 +1,7 @@"""Worker provider chain — drives the `openclaw agent --local --json` CLI as aprovider-agnostic Phase-6 worker.-The worker delegates to the OpenClaw harness —+The worker delegates to the external `openclaw` CLI harness —which already supports `google/gemini-*`, `openai/gpt-*`,`anthropic/claude-*`, and `openrouter/*` behind a single CLI surface.The provider+model is resolved from `[brain.sub_jarvis]` in jarvis.toml@@ -10,7 +10,7 @@ The provider+model is resolved from `[brain.sub_jarvis]` in jarvis.toml`jarvis.missions.worker_runtime.provider_map.to_worker_slug` so this workernever hardcodes slugs.-CLI layout (verified live 2026-05-13 against OpenClaw 2026.5.7):+CLI layout (verified live 2026-05-13 against the external `openclaw` npm package, v2026.5.7):openclaw agent--local@@ -86,8 +86,8 @@ _QUOTA_BLOCKED_MARKERS: tuple[str, ...] = ("insufficient_quota",)-# Hard upper bound on a single OpenClaw spawn. Matches the Time-Cap used-# by the OpenClaw harness (AD-19).+# Hard upper bound on a single Jarvis-Agent worker spawn. Matches the Time-Cap used+# by the worker harness (external `openclaw` CLI, AD-19)._DEFAULT_TIMEOUT_S: float = 600.0@@ -99,7 +99,7 @@ _DEFAULT_TIMEOUT_S: float = 600.0# resolved from the `[brain.sub_jarvis]` config chain instead.## Discovered live 2026-05-14: mission_019e2572 + mission_019e256f both-# spawned `openclaw agent --model xai/sonnet` and OpenClaw rejected with+# spawned `openclaw agent --model xai/sonnet` and the worker CLI rejected with# `FailoverError: Unknown model: xai/sonnet`. See stderr.log in those# mission dirs for the smoking gun._DECOMPOSER_FALLBACK_MODELS: frozenset[str] = frozenset({@@ -116,7 +116,7 @@ class _FallbackStep:Resolved from `[brain.sub_jarvis]` in jarvis.toml. `provider` is thejarvis-slug ("openai", "gemini", "claude-api", "openrouter").`model` is the provider-native model id ("gpt-5.5-pro",- "gemini-3.1-pro-preview", etc.). The OpenClaw slug translation+ "gemini-3.1-pro-preview", etc.). The worker-CLI slug translationhappens at spawn time via `to_worker_slug`."""@@ -147,7 +147,7 @@ def _resolve_worker_binary() -> str:def _resolve_worker_argv_prefix() -> list[str]:- """Returns the argv prefix for invoking the OpenClaw CLI.+ """Returns the argv prefix for invoking the external `openclaw` CLI.On Windows, the npm-installed CLI ships as `openclaw.cmd` — a batchwrapper around `node openclaw.mjs`. Calling `.cmd` from@@ -155,7 +155,7 @@ def _resolve_worker_argv_prefix() -> list[str]:argv with batch tokenizer rules, and that tokenizer treats `'`,newline, `<`, `>`, `&`, `|`, `^`, `%` as metacharacters. A promptcontaining a literal apostrophe (`print('hello world')`) or an- embedded newline therefore arrives at OpenClaw truncated or with+ embedded newline therefore arrives at the worker CLI truncated or withthe `--message` argument silently chopped. The CLI then can't readthe requested `--model` flag either, falls back to its first listedprovider (`openai/gpt-5.5`) and dies with `chain_exhausted`.@@ -190,7 +190,7 @@ def _resolve_worker_argv_prefix() -> list[str]:def _stderr_signals_quota_block(stderr_bytes: bytes) -> bool:- """True if the OpenClaw stderr indicates a provider rate-limit / quota+ """True if the worker-CLI stderr indicates a provider rate-limit / quotablock — signals that we should try the configured fallback provider."""if not stderr_bytes:@@ -235,8 +235,8 @@ def _resolve_provider_chain(primary_provider = primary_provider or getattr(sub_cfg, "provider", None)# Welle 7 (2026-05-20): "openclaw-claude" is a jarvis-side# sentinel that means "route through SubJarvisWorker, but use- # the claude-cli OpenClaw backend". It is NOT a real openclaw- # provider slug — normalise it to "claude-api" so the rest of+ # the claude-cli backend of the external openclaw CLI". It is NOT+ # a real openclaw provider slug — normalise it to "claude-api" so the rest of# the resolver + to_worker_slug() find it in MAPPINGS.if isinstance(primary_provider, str) and primary_provider.strip().lower() == "openclaw-claude":primary_provider = "claude-api"@@ -333,9 +333,9 @@ def _build_worker_cmd(def _extract_assistant_text(stdout_bytes: bytes) -> tuple[str, dict[str, Any]]:- """Parses OpenClaw's `--json` stdout into (text, raw_doc).+ """Parses the worker CLI's `--json` stdout into (text, raw_doc).- OpenClaw can prepend a few stderr-like log lines to stdout in+ The worker CLI can prepend a few stderr-like log lines to stdout in`[skills] failed to create symlink ...` situations; we scan for thefirst `{` and parse from there. Returns ("", {}) on any failure —the caller decides whether that's an error condition (by inspectingdiff --git a/jarvis/missions/workers/stream_consumer.py b/jarvis/missions/workers/stream_consumer.pyindex b6208c5531..8d001c24a1 100644--- a/jarvis/missions/workers/stream_consumer.py+++ b/jarvis/missions/workers/stream_consumer.py@@ -1,4 +1,4 @@-"""NDJSON stream consumer for OpenClaw and Codex CLIs.+"""NDJSON stream consumer for the Jarvis-Agent worker (the external `openclaw` CLI) and Codex CLIs.Both CLIs emit NDJSON over stdout (one Pydantic-round-trip-capable JSONline per event). We parse line-buffered, optionally tee to disk, and yielddiff --git a/jarvis/plugins/harness/__init__.py b/jarvis/plugins/harness/__init__.pyindex 9a3a028beb..6107b33408 100644--- a/jarvis/plugins/harness/__init__.py+++ b/jarvis/plugins/harness/__init__.py@@ -1 +1 @@-"""Harness-Plugins (OpenClaw, Codex, Open Interpreter, MCP, Python-Script)."""+"""Harness-Plugins (Jarvis-Agent, Codex, Open Interpreter, MCP, Python-Script)."""diff --git a/jarvis/plugins/harness/computer_use.py b/jarvis/plugins/harness/computer_use.pyindex 2fdba59720..874bfdcc77 100644--- a/jarvis/plugins/harness/computer_use.py+++ b/jarvis/plugins/harness/computer_use.py@@ -183,7 +183,7 @@ class ComputerUseHarness:async with CancelScope(ctx.kill_switch, holder="cu_loop") as token:self._active_token = token# Register CU-scoped so the voice hangup ("auflegen") can cancel- # THIS mission without touching OpenClaw (BUG-CU-HANGUP). The+ # THIS mission without touching Jarvis-Agent (BUG-CU-HANGUP). The# registry is a SET — concurrent CU missions each register so a# single hangup cancels them ALL (BUG-CU-CONCURRENT-CANCEL).register_active_cu_token(token)diff --git a/jarvis/plugins/tool/awareness_recall.py b/jarvis/plugins/tool/awareness_recall.pyindex 9f4065dfee..4d3d55fc3c 100644--- a/jarvis/plugins/tool/awareness_recall.py+++ b/jarvis/plugins/tool/awareness_recall.py@@ -6,7 +6,7 @@ this tool lives in ``ROUTER_TOOLS``. The router brain calls it directlywhen the user asks about earlier work ("vorhin", "heute morgen", "anwelcher Datei war ich"), and may bake the result into an``spawn_worker`` ``context_hints`` field if it then decides to delegate-heavy work to an OpenClaw worker.+heavy work to a Jarvis-Agent worker.The tool is read-only (``risk_tier="safe"``): a single FTS5 ``MATCH``query against the ``awareness_episodes_fts`` virtual table, no braindiff --git a/jarvis/plugins/tool/awareness_snapshot.py b/jarvis/plugins/tool/awareness_snapshot.pyindex f35770b174..4bd56fc1db 100644--- a/jarvis/plugins/tool/awareness_snapshot.py+++ b/jarvis/plugins/tool/awareness_snapshot.py@@ -6,7 +6,7 @@ makes NO brain call and NO IO — just a synchronous read onWhen the main Jarvis uses it: for utterances like "what am I doing rightnow?" or "which file am I in?" — the answer is already in the awareness-state and doesn't need an LLM roundtrip or an OpenClaw spawn.+state and doesn't need an LLM roundtrip or a Jarvis-Agent spawn."""from __future__ import annotationsdiff --git a/jarvis/plugins/tool/computer_use_tool.py b/jarvis/plugins/tool/computer_use_tool.pyindex 40b7e288f3..772aa9f6f6 100644--- a/jarvis/plugins/tool/computer_use_tool.py+++ b/jarvis/plugins/tool/computer_use_tool.py@@ -9,7 +9,7 @@ path for desktop actions:and research, but it can **never** touch the user's live desktop.* ``dispatch_to_harness`` could reach the computer-use harness, but only througha two-level indirection (``harness="computer-use"``) whose schema description- talks about "OpenClaw, Codex, code-editing, research" — so the model never+ talks about "generic sub-agent harnesses, code-editing, research" — so the model neverpicked it for desktop actions and instead refused or hallucinated a tool.A dedicated tool with an unambiguous name + description is the strongest signaldiff --git a/jarvis/plugins/tool/dispatch_to_harness.py b/jarvis/plugins/tool/dispatch_to_harness.pyindex 09ec93fdad..ba157d0ec8 100644--- a/jarvis/plugins/tool/dispatch_to_harness.py+++ b/jarvis/plugins/tool/dispatch_to_harness.py@@ -1,6 +1,6 @@"""dispatch_to_harness tool: callable by the brain, delegates to a harness.-The brain can spawn OpenClaw / Codex / Python-Script / MCP-Remote via a tool+The brain can spawn a Jarvis-Agent worker / Codex / Python-Script / MCP-Remote via a toolcall. Output is accumulated, trimmed to `max_output_chars`, and returned as`ToolResult.output` — the brain sees it in the next turn as a`role="tool"` message and can then summarize it.@@ -30,7 +30,7 @@ class DispatchToHarnessTool:# NOT an LLM-visible router tool (removed from ROUTER_TOOLS 2026-06-28). This# class powers the INTERNAL local-action / computer-use fast path, called# programmatically with a registered harness name. The description lists only- # harnesses that actually exist as entry-points — there is no ``openclaw``+ # harnesses that actually exist as entry-points — there is no ``jarvis-agent``# or ``codex`` harness (heavy sub-agent work is the spawn_worker tool).description: str = ("Internal: invoke a registered sub-agent harness "diff --git a/jarvis/plugins/tool/dispatch_with_review.py b/jarvis/plugins/tool/dispatch_with_review.pyindex 5755b6331a..f78ffbe215 100644--- a/jarvis/plugins/tool/dispatch_with_review.py+++ b/jarvis/plugins/tool/dispatch_with_review.py@@ -47,7 +47,7 @@ class DispatchWithReviewTool:name: str = "dispatch_with_review"risk_tier: str = "monitor"description: str = (- "Runs an OpenClaw task with a review quality gate. "+ "Runs a Jarvis-Agent task with a review quality gate. ""USE this tool when the result is user-irreversible (code ""generation, file mutation, skill authoring), requires multi-step ""synthesis (research, aggregation), or is hard to undo. DO NOT USE "@@ -63,7 +63,7 @@ class DispatchWithReviewTool:"type": "string","minLength": 20,"description": (- "Complete task description for OpenClaw. "+ "Complete task description for the Jarvis-Agent. ""Required, at least 20 characters."),},@@ -218,7 +218,7 @@ class DispatchWithReviewTool:except HarnessUnavailable:# AP-23 wave-2 finding 5: no registered harness backs the# worker/reviewer spawn on this install (e.g. every install- # today — Welle-4 removed the old OpenClaw subprocess bridge).+ # today — Welle-4 removed the old Jarvis-Agents subprocess bridge).# Honest, install-neutral message — never the raw KeyError from# HarnessManager.get(), never the dead internal "openclaw" name.return ToolResult(diff --git a/jarvis/plugins/tool/multi_spawn.py b/jarvis/plugins/tool/multi_spawn.pyindex 6f35266e60..50d2aaa498 100644--- a/jarvis/plugins/tool/multi_spawn.py+++ b/jarvis/plugins/tool/multi_spawn.py@@ -4,7 +4,7 @@ Difference from `dispatch_to_harness`:- `dispatch_to_harness` = 1 harness, 1 prompt (or N harnesses × 1 prompt).- `multi_spawn` = 1 harness, N different prompts in parallel.-Use case: an OpenClaw worker spawns 3 parallel `openclaw` agents with+Use case: a Jarvis-Agent worker spawns 3 parallel `openclaw` agents withdifferent sub-tasks ("write the tests", "write the implementation","write the docs") and aggregates the outputs.diff --git a/jarvis/plugins/tool/spawn_worker.py b/jarvis/plugins/tool/spawn_worker.pyindex 3a2cfb61ec..2a74f45562 100644--- a/jarvis/plugins/tool/spawn_worker.py+++ b/jarvis/plugins/tool/spawn_worker.py@@ -1,17 +1,17 @@-"""SpawnWorkerTool — Delegation an die OpenClaw-Bridge via Mission-Manager.+"""SpawnWorkerTool — Delegation an die Jarvis-Agent-Bridge via Mission-Manager.Welle-4-Migration: vorher ``SpawnSubJarvisTool`` mit eigenem-``SubJarvisManager``. Sub-Jarvis-Tier wurde durch OpenClaw-Bridge ersetzt-(siehe docs/openclaw-bridge.md §11). Das Tool dispatched jetzt eine Mission+``SubJarvisManager``. Sub-Jarvis-Tier wurde durch Jarvis-Agent-Bridge ersetzt+(siehe docs/jarvis-agents-bridge.md §11). Das Tool dispatched jetzt eine Missionan den ``MissionManager`` aus ``jarvis.missions.manager``; der Kontrollierer-+ Worker uebernehmen Worktree-Setup, Subprocess-Spawn (OpenClaw-Bridge in++ Worker uebernehmen Worktree-Setup, Subprocess-Spawn (Jarvis-Agent-Bridge in``jarvis/missions/worker_runtime/``) und Voice-Readback.Das Router-Brain (Haiku/Flash) ruft dieses Tool, wenn der User eine komplexeAufgabe beschreibt (Code-Build, App-Entwicklung, mehrstufige Recherche).Ablauf (Fire-and-Forget):- 1. ``OpenClawAnnouncement`` auf den Bus publishen fuer UI/Telemetry.+ 1. ``JarvisAgentAnnouncement`` auf den Bus publishen fuer UI/Telemetry.2. ``MissionManager.dispatch(prompt=<utterance>, ...)`` Background-Task anstossen — Mission-Manager erzeugt PENDING-Mission, derKontrollierer pickt sie auf und scheduled einen Worker.@@ -19,7 +19,7 @@ Ablauf (Fire-and-Forget):ist sofort wieder frei fuer neue User-Utterances.4. Wenn die Mission im Hintergrund fertig ist, publisht der Voice-Listener (``jarvis/missions/voice/listener.py``) eine- ``OpenClawBackgroundCompleted``-Nachricht auf den Bus, die die+ ``JarvisAgentBackgroundCompleted``-Nachricht auf den Bus, die dieSpeech-Pipeline in eine Voice-Ansage umwandelt.Wichtig: Die User-Utterance wird **verbatim** weitergegeben (AC2). Die@@ -51,8 +51,8 @@ log = logging.getLogger(__name__)# Mission stack is bootstrapped AFTER build_default_brain() in the# DesktopApp startup sequence, but the BrainManager is built once and# never re-evaluates its tool dict. See AD-OC1 Lazy-Resolver in-# docs/openclaw-bridge.md and the regression in-# tests/integration/test_openclaw_lazy_bootstrap.py.+# docs/jarvis-agents-bridge.md and the regression in+# tests/integration/test_worker_lazy_bootstrap.py.MissionManagerResolver = Callable[[], "MissionManager | None"]# Same lazy-resolver pattern for the Kontrollierer (mission orchestrator).# The Kontrollierer is what actually executes a mission after dispatch.@@ -293,11 +293,11 @@ def _build_mission_prompt(class SpawnWorkerTool:- """Delegiert komplexe Aufgaben an die OpenClaw-Bridge via Mission-Manager.+ """Delegiert komplexe Aufgaben an die Jarvis-Agent-Bridge via Mission-Manager.Tier-Filter: Dieses Tool ist NUR im Router-Tier verfuegbar(``ROUTER_TOOLS`` in ``jarvis/brain/factory.py``). Worker selbst haben- es nicht — damit wird Rekursion (OpenClaw spawnt Sub-OpenClaw) im+ es nicht — damit wird Rekursion (Jarvis-Agent spawnt Sub-Jarvis-Agent) imTool-Layer blockiert."""@@ -673,13 +673,18 @@ class SpawnWorkerTool:# 2. Fire-and-Forget: Mission anstossen und sofort zurueckkehren.# Der Router-Brain ist dadurch sofort wieder frei fuer neue# User-Utterances. Das Completion-Event publisht der Voice-- # Listener als OpenClawBackgroundCompleted.+ # Listener als JarvisAgentBackgroundCompleted.asyncio.create_task(self._background_dispatch(mission_prompt, utterance, manager, kontrollierer,mission_language=mission_language,),- name=f"openclaw-{ctx.trace_id.hex[:8]}",+ # NOTE: prefix "jarvis-agent-" is a live matching key, not a+ # cosmetic label — jarvis/brain/manager.py+ # ``_cancel_all_background_tasks`` matches on this exact+ # asyncio task-name prefix to cancel running background+ # agents. Do not rename without updating that matcher too.+ name=f"jarvis-agent-{ctx.trace_id.hex[:8]}",)launched = Truefinally:@@ -734,7 +739,7 @@ class SpawnWorkerTool:publishes ``MissionDispatched``.2. ``kontrollierer.run_mission()`` plans + executes it andpublishes ``MissionApproved`` / ``MissionFailed``, which the- Voice-Listener turns into an ``OpenClawBackgroundCompleted``+ Voice-Listener turns into a ``JarvisAgentBackgroundCompleted``event for TTS readback.Without step 2 the mission stays PENDING forever and the user@@ -763,7 +768,7 @@ class SpawnWorkerTool:)return# Run the mission. This blocks until APPROVED / FAILED;- # the Voice-Listener will then publish OpenClawBackgroundCompleted.+ # the Voice-Listener will then publish JarvisAgentBackgroundCompleted.await kontrollierer.run_mission(mission_id)except asyncio.CancelledError:log.info("Jarvis-Agent background dispatch cancelled (app shutdown)")diff --git a/jarvis/sessions/constants.py b/jarvis/sessions/constants.pyindex c6e6b0c812..9c5329ca1b 100644--- a/jarvis/sessions/constants.py+++ b/jarvis/sessions/constants.py@@ -132,7 +132,7 @@ SPOKEN_KIND_PRIVACY: Final[str] = "privacy""""A privacy acknowledgement ('Ja.' / 'Ich sehe wieder.') for the vision toggle."""SPOKEN_KIND_COMPLETION: Final[str] = "completion"-"""A background mission / OpenClaw result read back after it finished."""+"""A background mission / Jarvis-Agent result read back after it finished."""SPOKEN_KIND_SUBAGENT: Final[str] = "subagent""""A spawned sub-agent / mission / worker result read back to the user. Thediff --git a/jarvis/sessions/recorder.py b/jarvis/sessions/recorder.pyindex 3b357abf52..563a057e4d 100644--- a/jarvis/sessions/recorder.py+++ b/jarvis/sessions/recorder.py@@ -670,9 +670,9 @@ class SessionRecorder:# (e.g. "openai/gpt-4o" even though no OpenAI key exists).# intent_level is the router decision (e.g. "spawn_worker"/# "direct_action"/"trivial"). The recorder schema, however, only- # allows the real tier names for ``tier`` ({"router", "openclaw",- # "trivial", "fast", "deep", "code"}). Values outside that set are- # mapped to "router" — the main Jarvis brain answered.+ # allows the real tier names for ``tier`` ({"router", "jarvis_agent",+ # "openclaw" (legacy), "trivial", "fast", "deep", "code"}). Values+ # outside that set are mapped to "router" — the main Jarvis brain answered.if event.intent_level and not t.tier:t.tier = _normalize_intent_level_to_tier(event.intent_level)@@ -681,7 +681,7 @@ class SessionRecorder:Wave 4 migration: formerly ``_on_sub_jarvis_started`` with``SubJarvisStarted``-Event. Sub-Jarvis tier was replaced by the worker- harness (see docs/openclaw-bridge.md §11). Schema preserved 1:1.+ harness (see docs/jarvis-agents-bridge.md §11). Schema preserved 1:1.Important for telemetry: without this setter, provider/model stayedempty in voice_turns when the worker no longer emitted its own@@ -825,9 +825,9 @@ class SessionRecorder:# VoiceTurnRow.tier literal — keep in sync with jarvis/sessions/models.py.-# Wave 4 migration: the ``sub_jarvis`` legacy value is still accepted for-# backwards compatibility with old voice sessions in the DB; new turns-# use ``openclaw``.+# Wave 4 migration: the ``sub_jarvis`` and ``openclaw`` legacy values are+# still accepted for backwards compatibility with old voice sessions in the+# DB; new turns use ``jarvis_agent`` (see ``_on_worker_task_started``)._VALID_TIERS: frozenset[str] = frozenset({"router",@@ -848,11 +848,11 @@ def _normalize_intent_level_to_tier(intent_level: str) -> str:The router emits ``BrainTurnStarted.intent_level`` as the routingdecision it made (``trivial`` / ``direct_action`` / ``spawn_worker``).The recorder schema, however, only allows the tier identifiers- ``router``/``openclaw``/etc. for ``tier``. Anything outside that set- becomes ``"router"`` — semantically correct, because in both cases- (direct_action, spawn) the router brain answered the turn. The- OpenClaw tier is explicitly overridden in- ``_on_openclaw_task_started``.+ ``router``/``jarvis_agent``/etc. (``openclaw`` accepted only as legacy)+ for ``tier``. Anything outside that set becomes ``"router"`` —+ semantically correct, because in both cases (direct_action, spawn) the+ router brain answered the turn. The Jarvis-Agent tier is explicitly+ overridden in ``_on_worker_task_started``."""if intent_level in _VALID_TIERS:return intent_leveldiff --git a/jarvis/skills/authoring/__init__.py b/jarvis/skills/authoring/__init__.pyindex d5608ff36c..512f077588 100644--- a/jarvis/skills/authoring/__init__.py+++ b/jarvis/skills/authoring/__init__.py@@ -1,8 +1,8 @@"""Skill-authoring pipeline (Phase 7.5).-OpenClaw (frontier worker, Mission-Manager-orchestrated) generates new skills-on voice request. Welle-4 migration: previously Sub-Jarvis (Opus 4.7),-today OpenClaw (see docs/openclaw-bridge.md §11, R-6). Plan-§7.5:+Jarvis-Agent (frontier worker, Mission-Manager-orchestrated) generates new+skills on voice request. Welle-4 migration: previously Sub-Jarvis (Opus 4.7),+today Jarvis-Agent (see docs/jarvis-agents-bridge.md §11, R-6). Plan-§7.5:strict-typed output via the `SkillDraft` Pydantic model, `state=draft`enforcement on write (Plan-§AD-8), validation loop ≤3 retries,an audit trail per authoring attempt.diff --git a/jarvis/skills/authoring/draft_writer.py b/jarvis/skills/authoring/draft_writer.pyindex 020a80abb6..8ffffcf8aa 100644--- a/jarvis/skills/authoring/draft_writer.py+++ b/jarvis/skills/authoring/draft_writer.py@@ -1,6 +1,6 @@"""Writes skill drafts into the user-skills directory with forced state=draft.-Plan-§AD-8: `draft_writer` forces `state=draft`, even if OpenClaw-Author+Plan-§AD-8: `draft_writer` forces `state=draft`, even if Jarvis-Agent-Authorincorrectly sets `state=active` in the frontmatter. Plan-§AP-6: noauto-activation — the user must explicitly promote via the UI / CLI.@@ -304,12 +304,12 @@ def _render_skill_md(draft: SkillDraft) -> str:"version": "0.1.0","description": draft.description,"category": draft.category,- "tags": ["openclaw-authored"],- "author": "openclaw",+ "tags": ["jarvis-agent-authored"],+ "author": "jarvis-agent","license": "MIT","triggers": triggers_parsed,"requires_tools": draft.requires_tools,- # **HARDCODED**: Plan-§AD-8 — the OpenClaw-Author output `state` is discarded.+ # **HARDCODED**: Plan-§AD-8 — the Jarvis-Agent-Author output `state` is discarded."state": "draft",}yaml_text = yaml.safe_dump(@@ -323,10 +323,10 @@ def write_draft(*,user_skills_root: Path | None = None,) -> DraftWriteResult:- """Writes an OpenClaw-Author draft as SKILL.md.+ """Writes a Jarvis-Agent-Author draft as SKILL.md.Plan-§7.5 pipeline step 6: state=draft is ALWAYS forced. If- the OpenClaw-Author draft outputs `state != "draft"`, we note the+ the Jarvis-Agent-Author draft outputs `state != "draft"`, we note theoverride in the result (`forced_state_override=True`) — the callerwrites that to the audit."""diff --git a/jarvis/skills/authoring/runner.py b/jarvis/skills/authoring/runner.pyindex 441f1c549d..928f27fef8 100644--- a/jarvis/skills/authoring/runner.py+++ b/jarvis/skills/authoring/runner.py@@ -1,7 +1,7 @@-"""SkillAuthoringRunner — orchestrates the OpenClaw-Author spawn + validation loop.+"""SkillAuthoringRunner — orchestrates the Jarvis-Agent-Author spawn + validation loop.Welle-4 migration: the spawn path used to be called ``Sub-Jarvis``. After the-OpenClaw-bridge migration (see docs/openclaw-bridge.md §11, R-6), the+Jarvis-Agent-bridge migration (see docs/jarvis-agents-bridge.md §11, R-6), thespawn callback is bound to the ``MissionManager`` — the ``SpawnCallback``signature (``str -> Awaitable[str]``) stays backward-compatible and canimplement either a direct brain call or a mission dispatch + result read.@@ -10,13 +10,13 @@ Plan-§7.5 pipeline:1. Slug generation (kebab-case from suggested_name or LLM-derived)2. Clash check against user_skills_dir3. Staging-dir creation (tempfile.mkdtemp)-4. OpenClaw-Author spawn with a task description+4. Jarvis-Agent-Author spawn with a task description5. Validation loop ≤3 iterations6. Success path: draft_writer copies to user_skills_dir with forced state=draft7. SkillRegistry watcher detects it + the UI shows a warn badgePlan-§AP-6: no auto-activation. Plan-§AP-7: skill authoring NEVER in the-main-Jarvis path — only OpenClaw-Author (frontier worker via Mission-Manager).+main-Jarvis path — only Jarvis-Agent-Author (frontier worker via Mission-Manager)."""from __future__ import annotations@@ -73,17 +73,18 @@ class AuthoringFailure:validation_errors: tuple[str, ...] = field(default_factory=tuple)-# Spawn callback: dependency-injected, so tests can mock the OpenClaw-Author+# Spawn callback: dependency-injected, so tests can mock the Jarvis-Agent-Author# call (plan constraint: NEVER real API calls in tests).SpawnCallback = Callable[[str], "asyncio.Future[str] | str"]# -----------------------------------------------------------------------# System prompt for OpenClaw-Author (Plan-§7.5)+# System prompt for Jarvis-Agent-Author (Plan-§7.5)# -----------------------------------------------------------------------OPENCLAW_AUTHOR_SYSTEM_PROMPT = """You are OpenClaw-Author (Opus 4.7), a skill-authoring specialist.+JARVIS_AGENT_AUTHOR_SYSTEM_PROMPT = """\+You are Jarvis-Agent-Author (Opus 4.7), a skill-authoring specialist.The user wants to create a new skill. You return ONLY a single JSONobject that exactly matches the `SkillDraft` schema. No surrounding@@ -122,7 +123,7 @@ Format example (JSON):class SkillAuthoringRunner:- """Plan-§7.5 authoring pipeline (OpenClaw-Author spawn + validation loop)."""+ """Plan-§7.5 authoring pipeline (Jarvis-Agent-Author spawn + validation loop)."""def __init__(self,@@ -165,13 +166,13 @@ class SkillAuthoringRunner:except TimeoutError:self._record_audit(error_kind="author_timeout",- message=f"OpenClaw-Author spawn timeout after {self._timeout_seconds}s",+ message=f"Jarvis-Agent-Author spawn timeout after {self._timeout_seconds}s",iterations=iteration,intent=intent,)return AuthoringFailure(error_kind="timeout",- message="OpenClaw-Author-Spawn timeout",+ message="Jarvis-Agent-Author-Spawn timeout",iterations=iteration,)@@ -301,9 +302,9 @@ class SkillAuthoringRunner:)def _parse_draft(self, response: str) -> SkillDraft:- """Extracts JSON from the OpenClaw-Author response.+ """Extracts JSON from the Jarvis-Agent-Author response.- OpenClaw-Author should deliver pure JSON; we tolerate an+ Jarvis-Agent-Author should deliver pure JSON; we tolerate anenclosing ```json…``` for Markdown bias."""import json@@ -321,9 +322,9 @@ class SkillAuthoringRunner:try:data = json.loads(cleaned)except json.JSONDecodeError as exc:- raise ValueError(f"OpenClaw-Author response is not valid JSON: {exc}") from exc+ raise ValueError(f"Jarvis-Agent-Author response is not valid JSON: {exc}") from excif not isinstance(data, dict):- raise ValueError("OpenClaw-Author response must be a JSON object")+ raise ValueError("Jarvis-Agent-Author response must be a JSON object")return SkillDraft.model_validate(data)def _record_audit(@@ -353,7 +354,7 @@ class SkillAuthoringRunner:self._audit.record(AuditEvent(source=AuditSource.VOICE,- requested_by=AuditActor.OPENCLAW,+ requested_by=AuditActor.JARVIS_AGENT,path=f"skills.{slug or 'unknown'}",old_value=None,new_value=draft_path,diff --git a/jarvis/skills/authoring/schema.py b/jarvis/skills/authoring/schema.pyindex 540de29f7e..078dfadb0f 100644--- a/jarvis/skills/authoring/schema.py+++ b/jarvis/skills/authoring/schema.py@@ -7,10 +7,10 @@ from pydantic import BaseModel, ConfigDict, Field, field_validatorclass SkillDraft(BaseModel):- """Strict-typed OpenClaw-Author-Output.+ """Strict-typed Jarvis-Agent-Author-Output.- Wave-4 migration: previously Sub-Jarvis output. Now OpenClaw worker- (see docs/openclaw-bridge.md §11). Schema stays 1:1.+ Wave-4 migration: previously Sub-Jarvis output. Now Jarvis-Agent worker+ (see docs/jarvis-agents-bridge.md §11). Schema stays 1:1.The worker delivers a complete skill specification. Plan §7.5: on aparse error the authoring attempt fails and writes andiff --git a/jarvis/skills/authoring/service.py b/jarvis/skills/authoring/service.pyindex 2233465476..b8221cd48a 100644--- a/jarvis/skills/authoring/service.py+++ b/jarvis/skills/authoring/service.py@@ -4,7 +4,7 @@ This is the "New skill" form path in the desktop app. It takes a structuredrequest (name, description, body, triggers) and writes a SKILL.mddeterministically — NO brain, no network — so it works on a headless €5 VPS.-It is the sibling of the OpenClaw-author *mission* pipeline+It is the sibling of the Jarvis-Agent-author *mission* pipeline(``SkillAuthoringRunner`` in ``runner.py``): that one spawns a frontier worker togenerate a draft from a voice intent and forces ``state=draft``; this onepersists an explicit, user-reviewed form submission and leaves the skilldiff --git a/jarvis/skills/builtin/skill-creator/SKILL.md b/jarvis/skills/builtin/skill-creator/SKILL.mdindex d413dd9f12..072656dc80 100644--- a/jarvis/skills/builtin/skill-creator/SKILL.md+++ b/jarvis/skills/builtin/skill-creator/SKILL.md@@ -47,10 +47,10 @@ token_budget_estimate: 8000> tool requirements.>> 2. **Skill location:** Finished skills land in ``%LOCALAPPDATA%\Jarvis\skills\<name>\``,-> not in an OpenClaw project folder. ``user_skills_dir()`` returns the+> not in a Jarvis-Agent project folder. ``user_skills_dir()`` returns the> path programmatically.>-> 3. **Eval framework:** Anthropic's original uses OpenClaw subagents ++> 3. **Eval framework:** Anthropic's original uses Claude Code subagents +> ``eval-viewer/generate_review.py`` for quantitative evals. That is not> (yet) ported to Jarvis — the folders ``scripts/``, ``agents/`` and ``assets/``> are intentionally empty and contain placeholder READMEs. For the MVP,@@ -407,7 +407,7 @@ Create 20 eval queries — a mix of should-trigger and should-not-trigger. Save]```-The queries must be realistic and something a OpenClaw or OpenClaw user would actually type. Not abstract requests, but requests that are concrete and specific and have a good amount of detail. For instance, file paths, personal context about the user's job or situation, column names and values, company names, URLs. A little bit of backstory. Some might be in lowercase or contain abbreviations or typos or casual speech. Use a mix of different lengths, and focus on edge cases rather than making them clear-cut (the user will get a chance to sign off on them).+The queries must be realistic and something a Jarvis user would actually type. Not abstract requests, but requests that are concrete and specific and have a good amount of detail. For instance, file paths, personal context about the user's job or situation, column names and values, company names, URLs. A little bit of backstory. Some might be in lowercase or contain abbreviations or typos or casual speech. Use a mix of different lengths, and focus on edge cases rather than making them clear-cut (the user will get a chance to sign off on them).Bad: `"Format this data"`, `"Extract text from PDF"`, `"Create a chart"`@@ -481,7 +481,7 @@ After packaging, direct the user to the resulting `.skill` file path so they can## Platform-specific instructions-For OpenClaw- and Cowork-specific authoring notes, read+For authoring notes specific to the external `openclaw` CLI and Cowork, read[references/platform-notes.md](references/platform-notes.md).## Reference filesdiff --git a/jarvis/skills/builtin/skill-creator/references/platform-notes.md b/jarvis/skills/builtin/skill-creator/references/platform-notes.mdindex f0cb649bbc..5bcf5e0f53 100644--- a/jarvis/skills/builtin/skill-creator/references/platform-notes.md+++ b/jarvis/skills/builtin/skill-creator/references/platform-notes.md@@ -1,22 +1,22 @@-# Platform-specific notes (OpenClaw / Cowork)+# Platform-specific notes (`openclaw` CLI / Cowork)-## OpenClaw-specific instructions+## `openclaw`-specific instructions-In OpenClaw, the core workflow is the same (draft → test → review → improve → repeat), but because OpenClaw doesn't have subagents, some mechanics change. Here's what to adapt:+In `openclaw`, the core workflow is the same (draft → test → review → improve → repeat), but because `openclaw` doesn't have subagents, some mechanics change. Here's what to adapt:**Running test cases**: No subagents means no parallel execution. For each test case, read the skill's SKILL.md, then follow its instructions to accomplish the test prompt yourself. Do them one at a time. This is less rigorous than independent subagents (you wrote the skill and you're also running it, so you have full context), but it's a useful sanity check — and the human review step compensates. Skip the baseline runs — just use the skill to complete the task as requested.-**Reviewing results**: If you can't open a browser (e.g., OpenClaw's VM has no display, or you're on a remote server), skip the browser reviewer entirely. Instead, present results directly in the conversation. For each test case, show the prompt and the output. If the output is a file the user needs to see (like a .docx or .xlsx), save it to the filesystem and tell them where it is so they can download and inspect it. Ask for feedback inline: "How does this look? Anything you'd change?"+**Reviewing results**: If you can't open a browser (e.g., `openclaw`'s VM has no display, or you're on a remote server), skip the browser reviewer entirely. Instead, present results directly in the conversation. For each test case, show the prompt and the output. If the output is a file the user needs to see (like a .docx or .xlsx), save it to the filesystem and tell them where it is so they can download and inspect it. Ask for feedback inline: "How does this look? Anything you'd change?"**Benchmarking**: Skip the quantitative benchmarking — it relies on baseline comparisons which aren't meaningful without subagents. Focus on qualitative feedback from the user.**The iteration loop**: Same as before — improve the skill, rerun the test cases, ask for feedback — just without the browser reviewer in the middle. You can still organize results into iteration directories on the filesystem if you have one.-**Description optimization**: This section requires the `claude` CLI tool (specifically `openclaw agent`) which is only available in OpenClaw. Skip it if you're on OpenClaw.+**Description optimization**: This section requires the `claude` CLI tool (specifically `openclaw agent`) which is only available in `openclaw`. Skip it if you're on `openclaw`.**Blind comparison**: Requires subagents. Skip it.-**Packaging**: The `package_skill.py` script works anywhere with Python and a filesystem. On OpenClaw, you can run it and the user can download the resulting `.skill` file.+**Packaging**: The `package_skill.py` script works anywhere with Python and a filesystem. On `openclaw`, you can run it and the user can download the resulting `.skill` file.**Updating an existing skill**: The user might be asking you to update an existing skill, not create a new one. In this case:- **Preserve the original name.** Note the skill's directory name and `name` frontmatter field -- use them unchanged. E.g., if the installed skill is `research-helper`, output `research-helper.skill` (not `research-helper-v2`).@@ -31,7 +31,7 @@ If you're in Cowork, the main things to know are:- You have subagents, so the main workflow (spawn test cases in parallel, run baselines, grade, etc.) all works. (However, if you run into severe problems with timeouts, it's OK to run the test prompts in series rather than parallel.)- You don't have a browser or display, so when generating the eval viewer, use `--static <output_path>` to write a standalone HTML file instead of starting a server. Then proffer a link that the user can click to open the HTML in their browser.-- For whatever reason, the Cowork setup seems to disincline Claude from generating the eval viewer after running the tests, so just to reiterate: whether you're in Cowork or in OpenClaw, after running tests, you should always generate the eval viewer for the human to look at examples before revising the skill yourself and trying to make corrections, using `generate_review.py` (not writing your own boutique html code). Sorry in advance but I'm gonna go all caps here: GENERATE THE EVAL VIEWER *BEFORE* evaluating inputs yourself. You want to get them in front of the human ASAP!+- For whatever reason, the Cowork setup seems to disincline Claude from generating the eval viewer after running the tests, so just to reiterate: whether you're in Cowork or in `openclaw`, after running tests, you should always generate the eval viewer for the human to look at examples before revising the skill yourself and trying to make corrections, using `generate_review.py` (not writing your own boutique html code). Sorry in advance but I'm gonna go all caps here: GENERATE THE EVAL VIEWER *BEFORE* evaluating inputs yourself. You want to get them in front of the human ASAP!- Feedback works differently: since there's no running server, the viewer's "Submit All Reviews" button will download `feedback.json` as a file. You can then read it from there (you may have to request access first).- Packaging works — `package_skill.py` just needs Python and a filesystem.- Description optimization (`run_loop.py` / `run_eval.py`) should work in Cowork just fine since it uses `openclaw agent` via subprocess, not a browser, but please save it until you've fully finished making the skill and the user agrees it's in good shape.diff --git a/jarvis/skills/builtin/skill-creator/scripts/README.md b/jarvis/skills/builtin/skill-creator/scripts/README.mdindex 1d45733522..3fbc173478 100644--- a/jarvis/skills/builtin/skill-creator/scripts/README.md+++ b/jarvis/skills/builtin/skill-creator/scripts/README.md@@ -3,11 +3,11 @@Executable helper scripts for the skill. The runner can launch them via``subprocess`` or Python import.-**Jarvis adaptation note:** Anthropic's original ships 8 OpenClaw-specific+**Jarvis adaptation note:** Anthropic's original ships 8 Claude-Code-specificPython files here (``run_eval.py``, ``aggregate_benchmark.py``, …). They are-not ported to Jarvis — they assume the OpenClaw subagent API, which we don't-have. This folder is intentionally empty; add your own helpers when you need-them.+not ported to Jarvis — they assume the Claude Code subagent API, which we+don't have. This folder is intentionally empty; add your own helpers when you+need them.**Example ideas for Jarvis scripts:**- `validate_skill.py` — pydantic dry-run against a SKILL.mddiff --git a/jarvis/skills/cli.py b/jarvis/skills/cli.pyindex 8db2fd47a2..ef2a53398b 100644--- a/jarvis/skills/cli.py+++ b/jarvis/skills/cli.py@@ -202,7 +202,7 @@ async def _skill_run(name: str) -> int:def _import_claude_skills(src: str) -> int:- """Reads OpenClaw skills (.md), fills in missing frontmatter defaults,+ """Reads Claude Code skills (.md), fills in missing frontmatter defaults,copies them to ``user_skills_dir()/<name>/SKILL.md``."""from jarvis.core.paths import user_skills_dir@@ -234,7 +234,7 @@ def _import_claude_skills(src: str) -> int:imported += 1print(f" imported: {rel} -> {out}")- print(f"Imported {imported} OpenClaw skills (skipped {skipped} existing).")+ print(f"Imported {imported} Claude Code skills (skipped {skipped} existing).")print(f"Destination: {dst_dir}")return 0@@ -250,9 +250,9 @@ def _ensure_frontmatter(text: str, default_name: str) -> str:'schema_version: "1"\n'f"name: {default_name}\n"'version: "0.1.0"\n'- "description: Imported from OpenClaw skills.\n"+ "description: Imported from Claude Code skills.\n""category: imported\n"- "author: openclaw-import\n"+ "author: claude-skills-import\n""triggers: []\n""requires_tools: []\n""risk_policy:\n"@@ -333,14 +333,14 @@ def main(argv: list[str] | None = None) -> int:type=str,metavar="PATH",dest="import_claude_skills",- help="Import OpenClaw skills from a directory",+ help="Import Claude Code skills from a directory",)# Phase 7.5: draft skill management (Plan §7.5 voice output + UI in Phase 7.6).group.add_argument("--list-drafts",action="store_true",dest="list_drafts",- help="List all OpenClaw-authored drafts (state=draft).",+ help="List all imported/AI-authored drafts (state=draft).",)group.add_argument("--promote",diff --git a/jarvis/skills/loader.py b/jarvis/skills/loader.pyindex 700f4414bb..759958f790 100644--- a/jarvis/skills/loader.py+++ b/jarvis/skills/loader.py@@ -159,7 +159,7 @@ def parse_skill(path: Path) -> Skill:)# Phase 7.5: if the frontmatter explicitly sets `state: draft`, honor it.- # This deterministically puts OpenClaw-authored skills into the DRAFT pool+ # This deterministically puts Jarvis-Agent-authored skills into the DRAFT pool# and excludes them from the hot-reload active filter (Plan-§AD-8).final_state = (fm.state if fm.state is not None else SkillLifecycleState.VALIDATEDdiff --git a/jarvis/skills/registry.py b/jarvis/skills/registry.pyindex 9b6d8cb579..39c30ced02 100644--- a/jarvis/skills/registry.py+++ b/jarvis/skills/registry.py@@ -108,7 +108,7 @@ class SkillRegistry:"""Phase 7.5 (Plan-§AD-8): skills the TriggerMatcher is allowed to see.DRAFT/DISABLED skills are excluded — a hot-reload filter- against accidental activation of OpenClaw-authored drafts.+ against accidental activation of Jarvis-Agent-authored drafts."""return [s@@ -117,7 +117,7 @@ class SkillRegistry:]def list_drafts(self) -> list[Skill]:- """Plan-§7.5: all skills with state=DRAFT (produced by the OpenClaw worker+ """Plan-§7.5: all skills with state=DRAFT (produced by the Jarvis-Agent workeror flagged by the loader due to a schema error)."""return [sdiff --git a/jarvis/skills/schema.py b/jarvis/skills/schema.pyindex 9f9aa34350..c9cc3bb973 100644--- a/jarvis/skills/schema.py+++ b/jarvis/skills/schema.py@@ -93,7 +93,7 @@ class SkillFrontmatter(BaseModel):risk_policy: SkillRiskPolicy = Field(default_factory=SkillRiskPolicy)config: dict[str, Any] = Field(default_factory=dict)token_budget_estimate: int = Field(default=2000, ge=1, le=100_000)- # Phase 7.5: lifecycle state in the frontmatter — OpenClaw-authored skills+ # Phase 7.5: lifecycle state in the frontmatter — Jarvis-Agent-authored skills# explicitly carry `state: draft`, enforced by the `draft_writer` (Plan-§AD-8).# Default `None` → the loader interprets it as "validated/active" (legacy).state: SkillLifecycleState | None = Nonediff --git a/jarvis/skills/trigger_matcher.py b/jarvis/skills/trigger_matcher.pyindex 0630370652..8716ec1784 100644--- a/jarvis/skills/trigger_matcher.py+++ b/jarvis/skills/trigger_matcher.py@@ -101,11 +101,11 @@ class TriggerMatcher:@staticmethoddef _is_matchable(sk: Skill) -> bool:- """Skill darf nur triggern wenn er ACTIVE oder VALIDATED ist.+ """A skill may only trigger when it is ACTIVE or VALIDATED.- DRAFT-Skills haben Parser-/Validator-Fehler oder sind OpenClaw-- generierte Entwuerfe (Phase 7.5) — die duerfen niemals automatisch- feuern. DISABLED-Skills hat der User explizit ausgeschaltet.+ DRAFT skills either have parser/validator errors or are+ Jarvis-Agent-generated drafts (Phase 7.5) — those must never fire+ automatically. DISABLED skills were explicitly turned off by the user."""return sk.state in (SkillLifecycleState.ACTIVE,diff --git a/jarvis/speech/pipeline.py b/jarvis/speech/pipeline.pyindex d4728fd935..d7a068c1da 100644--- a/jarvis/speech/pipeline.py+++ b/jarvis/speech/pipeline.py@@ -302,7 +302,7 @@ BrainCallback = Callable[[str], Awaitable[str]]# AnnouncementRequested.kind values that deliver an answer the user is owed — a-# finished background mission / sub-agent / worker / OpenClaw result. These+# finished background mission / sub-agent / worker / Jarvis-Agent result. These# punch through the hangup gate (AD-OE5/OE6 zero-silent-drop) and cancel any# pending "still on it" heartbeat. ``subagent`` is the attributed sibling of# ``completion``: same delivery semantics, but rendered as its own transcript@@ -1788,7 +1788,7 @@ class SpeechPipeline:# resulting 40-90 s silence leaves the user unable to tell whether# Jarvis is working or stuck. Compromise: at 90 s we emit a single# discrete "Bin noch dran." via AnnouncementRequested. Cancel- # the watchdog on OpenClawBackgroundCompleted so successful+ # the watchdog on JarvisAgentBackgroundCompleted so successful# short missions stay silent. FIFO list, one entry per pending# spawn -- matches the sequential-dispatch model of the voice# pipeline. The 90 s threshold is well past the typical short@@ -1805,16 +1805,16 @@ class SpeechPipeline:self._heartbeat_max_count: int = 3self._heartbeat_recent: deque[str] = deque(maxlen=2)- # TTS-Announcement-Bridge (Phase 5 CL-13): Router/Tools emittieren- # `AnnouncementRequested` wenn sie dem User eine Zwischenansage geben- # wollen (z.B. "Starte einen Sub-Agenten, einen Moment."), ohne den- # Brain-Pfad zu durchlaufen. Handler spricht direkt via TTS.+ # TTS announcement bridge (Phase 5 CL-13): router/tools emit+ # `AnnouncementRequested` when they want to give the user an interim+ # announcement (e.g. "Starting a sub-agent, one moment."), without+ # going through the brain path. The handler speaks directly via TTS.if self._bus is not None:self._bus.subscribe(AnnouncementRequested, self._on_announcement)- # Fire-and-Forget OpenClaw: wenn ein Background-Run fertig wird,- # proaktive Voice-Ansage ("Sir, fertig. <summary>") — so weiss der- # User auch dann Bescheid, wenn er zwischenzeitlich etwas anderes- # gemacht hat.+ # Fire-and-forget Jarvis-Agent: when a background run finishes,+ # a proactive voice announcement ("Sir, done. <summary>") — so+ # the user finds out even if they did something else in the+ # meantime.self._bus.subscribe(JarvisAgentBackgroundCompleted, self._on_background_completed)@@ -3022,7 +3022,7 @@ class SpeechPipeline:return# A completion / sub-agent readback IS the mission's answer — cancel any# pending "still on it" heartbeats so a reassurance never lands AFTER the- # result (the success path does not publish OpenClawBackgroundCompleted,+ # result (the success path does not publish JarvisAgentBackgroundCompleted,# so the heartbeat is not otherwise drained on completion). 2026-06-19.if is_readback:self._cancel_spawn_heartbeats()@@ -3175,8 +3175,8 @@ class SpeechPipeline:self._player.stop()except Exception as exc: # noqa: BLE001log.warning("Player-Stop vor Announcement fehlgeschlagen: %s", exc)- # Phase-1-Output-Filter auch fuer Bus-Announcements (Skill-Output,- # OpenClaw-Announce, Vision-Privacy-Hinweise). Mandat-Pfad #2.+ # Phase-1 output filter also applies to bus announcements (skill+ # output, Jarvis-Agent announce, vision privacy notices). Mandate path #2.# Pre-Thinking-Ack Flash-Brain (kind="preamble"): the AckGenerator# already ran scrub_for_voice with ack_mode=True. We still re-scrub# here as a safety net, but pass ack_mode=is_preamble so legitimate@@ -3585,7 +3585,7 @@ class SpeechPipeline:async def _on_background_completed(self, event: JarvisAgentBackgroundCompleted) -> None:- """Proaktive Voice-Ansage wenn ein Background-OpenClaw-Task fertig wird.+ """Proaktive Voice-Ansage wenn ein Background-Jarvis-Agent-Task fertig wird.User-Wunsch 2026-05-11 (Bug-Report Voice-Spawn-Latenz): Completion-Voice-Meldung soll hoerbar sein, damit der User auch dann Bescheid@@ -3609,7 +3609,7 @@ class SpeechPipeline:if getattr(self, "_muted", False):log.debug("Background-completed announcement suppressed — voice muted")return- # WS3b (live bug 2026-06-14): an OpenClaw mission that completes AFTER+ # WS3b (live bug 2026-06-14): a Jarvis-Agent mission that completes AFTER# the user hung up still owes them its result. This readback is a FRESH# turn (the answer they asked for), not a stale leftover from the aborted# turn, so it must NOT be dropped by the hangup gate (AD-OE6@@ -3639,7 +3639,7 @@ class SpeechPipeline:else:err_short = (event.error or ph["unknown_err"])[:80]text = ph["fail"].format(e=err_short)- # Defense-in-Depth: Summary/Error kann aus dem OpenClaw-Pfad kommen+ # Defense-in-Depth: Summary/Error kann aus dem Jarvis-Agent-Pfad kommen# und Engineering-Tokens (Sub-Agent, Subprocess, MCP) enthalten.# scrub_for_voice filtert die raus, sonst leakt Worker-Mechanik# in den Voice-Kanal (vgl. Mandat-Pfad #2 Output-Filter).@@ -3652,11 +3652,11 @@ class SpeechPipeline:cleaned = scrubbed.cleaned.strip()if not cleaned:log.info(- "OpenClaw background fertig — Ansage nach Filter leer, schweige."+ "Jarvis-Agent background fertig — Ansage nach Filter leer, schweige.")returnlog.info(- "OpenClaw background fertig (success=%s, dauer=%.1fs) — Ansage: %r",+ "Jarvis-Agent background fertig (success=%s, dauer=%.1fs) — Ansage: %r",event.success, event.duration_s, cleaned,)# AD-OE5: this path plays straight to the player, bypassing@@ -3668,7 +3668,7 @@ class SpeechPipeline:if getattr(self, "_turn_state", TurnTakingState.IDLE) in _USER_HOLDS_FLOOR_STATES:self._deferred_announcements.append(AnnouncementRequested(- source_layer="harness.openclaw.background",+ source_layer="harness.jarvis_agent.background",text=cleaned,language=lang,priority="normal",@@ -3733,7 +3733,7 @@ class SpeechPipeline:(Sub-Agents-Board) und ueber den Background-Completed-Voice-Readback am Ende der Mission.- Der Bus-Event selbst (``OpenClawAnnouncement``) wird in+ Der Bus-Event selbst (``JarvisAgentAnnouncement``) wird in``spawn_worker.py`` weiterhin publisht und vom UI gelesen — wirunterdruecken hier nur den Voice-Pfad. Cleanup-Logging behalten wireinmalig pro Event, damit man im Log noch sehen kann dass der ACK@@ -3775,7 +3775,7 @@ class SpeechPipeline:session open — otherwise the idle-timeout override in ``_active_session``and the keep-listening branch in ``_finish_after_response`` would keepthe session in LISTENING *forever* after a force-spawn. In production the- success path never publishes ``OpenClawBackgroundCompleted`` (the+ success path never publishes ``JarvisAgentBackgroundCompleted`` (thereadback travels the MissionAnnouncer → ``AnnouncementRequested`` path,and ``_on_background_completed`` — the only code that pops the list —fires solely on the crash path), so the list is otherwise never drained.@@ -3788,7 +3788,7 @@ class SpeechPipeline:def _background_mission_in_flight(self) -> bool:"""True while anything is still working for the user in the background:- an OpenClaw spawn watchdog counting down OR a live Computer-Use+ a Jarvis-Agent spawn watchdog counting down OR a live Computer-Usemission.Consumed by the idle-timeout branch in ``_active_session`` and the@@ -3858,7 +3858,7 @@ class SpeechPipeline:signal read by ``_active_session``'s idle-timeout override and by``_finish_after_response``; a done-but-still-listed task would hold thevoice session open forever, because the success path never publishes the- ``OpenClawBackgroundCompleted`` event that would otherwise drain it. The+ ``JarvisAgentBackgroundCompleted`` event that would otherwise drain it. Thehard cap bounds the in-flight hold to the heartbeat lifetime."""try:@@ -3915,7 +3915,7 @@ class SpeechPipeline:Called when a mission delivers its actual answer (a readback —``kind="completion"`` or ``kind="subagent"``) so Jarvis never says "stillon it" right AFTER the result. The- success path does not publish ``OpenClawBackgroundCompleted``, so the+ success path does not publish ``JarvisAgentBackgroundCompleted``, so theheartbeat is otherwise only drained by its own cap; this is the precisehook that silences it the moment the answer lands. Each cancelled taskstill self-removes from ``_spawn_watchdog_tasks`` in its ``finally``.@@ -4779,7 +4779,7 @@ class SpeechPipeline:User intent (2026-05-20): "auflegen" is an absolute kill switch.No matter what Jarvis is currently saying, announcing, or queueing,a hangup must silence the voice channel immediately. Background- OpenClaw missions keep running (they live in their own subprocess+ Jarvis-Agent missions keep running (they live in their own subprocess+ Job Object); only their *voice readback* is suppressed via the``_hangup_event`` gate on the bus-driven announcement handlers.@@ -4800,7 +4800,7 @@ class SpeechPipeline:# BUG-CU-HANGUP (2026-05-28): "auflegen" must also STOP a running# Computer-Use mission immediately — otherwise Jarvis keeps clicking# the screen in the background after the user told it to stop. This is- # CU-scoped (cancels only the active CU token), so OpenClaw+ # CU-scoped (cancels only the active CU token), so Jarvis-Agent# background missions are unaffected (their voice readback is muted via# the _hangup_event gate, matching the documented hangup contract).try:@@ -6002,7 +6002,7 @@ class SpeechPipeline:)continue# A background mission JUST spoke its readback out-of-band- # (Computer-Use / OpenClaw completion or failure). That+ # (Computer-Use / Jarvis-Agent completion or failure). That# readback handed the floor back to the user exactly like a# normal inline answer — but, delivered via ``_on_announcement``# OFF this loop, it did NOT reset the idle window, which may@@ -7068,9 +7068,9 @@ class SpeechPipeline:"""Schliesst normale Voice-Turns; Barge-in darf weiterlaufen.Spawn-in-flight override: a force-spawn-worker ACK ("Mach ich, ich- lasse dafuer einen OpenClaw-Subagent ...") is a promise, not the+ lasse dafuer einen Jarvis-Agent-Subagent ...") is a promise, not theanswer -- the actual answer arrives 30-90 s later as the mission- readback via ``OpenClawBackgroundCompleted``. Hanging up after the+ readback via ``JarvisAgentBackgroundCompleted``. Hanging up after theACK closes the mic context (see ``_active_session``'s``MicrophoneCapture`` block), the readback plays into a deadsession, and the user has to re-wake to continue. While at least@@ -9697,7 +9697,7 @@ class SpeechPipeline:return result is Truereturn result is not False- #: Spoken readback for an OpenClaw background task that finished off the+ #: Spoken readback for a Jarvis-Agent background task that finished off the#: chat path. de/en/es so the readback follows the conversation language#: instead of a hardcoded German literal (forensic 2026-06-23). German#: strings are TTS product surface, not source artifacts (i18n-allow).diff --git a/jarvis/tasks/schema.py b/jarvis/tasks/schema.pyindex 5c65901cef..7d3948c03e 100644--- a/jarvis/tasks/schema.py+++ b/jarvis/tasks/schema.py@@ -82,7 +82,7 @@ TRIGGER_TYPES: tuple[str, ...] = ("after_delay", "at_time", "on_event", "every")# ---------------------------------------------------------------------class HarnessDispatchAction(BaseModel):- """Dispatches to a harness (openclaw, computer-use, ...)."""+ """Dispatches to a harness (jarvis_agent, computer-use, ...)."""model_config = ConfigDict(frozen=True, extra="forbid")kind: Literal["harness_dispatch"] = "harness_dispatch"harness: str = Field(min_length=1, max_length=64)diff --git a/jarvis/ui/desktop_app.py b/jarvis/ui/desktop_app.pyindex 6705fa68a2..7cedf0eda2 100644--- a/jarvis/ui/desktop_app.py+++ b/jarvis/ui/desktop_app.py@@ -1153,8 +1153,8 @@ class DesktopApp:mission_manager = getattr(server.app.state, "mission_manager", None)if mission_manager is not None:brain.set_mission_command_handlers(- status_fn=mission_manager.openclaw_status,- cancel_fn=mission_manager.openclaw_cancel,+ status_fn=mission_manager.jarvis_agent_status,+ cancel_fn=mission_manager.jarvis_agent_cancel,)from loguru import logger as _bootlog_bootlog.info(@@ -1164,7 +1164,7 @@ class DesktopApp:except AttributeError:from loguru import logger as _bootlog_bootlog.warning(- "MissionManager is missing openclaw_status/-_cancel — status/"+ "MissionManager is missing jarvis_agent_status/-_cancel — status/""cancel voice patterns fall back to the normal spawn path.")except Exception as exc: # noqa: BLE001@@ -2489,7 +2489,7 @@ class DesktopApp:# Mini tool registry for the SkillRunner — loads every plugin# tool that can be instantiated without args. Tools with# complex dependencies (dispatch-to-harness, spawn-worker) are- # skipped; those are OpenClaw specialties anyway, not meant for+ # skipped; those are Jarvis-Agent specialties anyway, not meant for# skill bodies. ``remember`` and friends all fit this schema.from importlib.metadata import entry_points as _epsdiff --git a/jarvis/ui/web/frontend/src/__tests__/JarvisAgentPanel.test.tsx b/jarvis/ui/web/frontend/src/__tests__/JarvisAgentPanel.test.tsxindex b4756d5d1a..2eecd31b14 100644--- a/jarvis/ui/web/frontend/src/__tests__/JarvisAgentPanel.test.tsx+++ b/jarvis/ui/web/frontend/src/__tests__/JarvisAgentPanel.test.tsx@@ -13,7 +13,7 @@ import { cleanup, render, screen } from "@testing-library/react";import { JarvisAgentPanel } from "@/components/missions/JarvisAgentPanel";import { useMissionsStore } from "@/components/missions/store";import { useEventStore } from "@/store/events";-import type { OpenClawWorkerSnapshot } from "@/types/missions";+import type { JarvisAgentWorkerSnapshot } from "@/types/missions";// A deliberately arbitrary assistant name: the agent brand must follow ANY// wake-word-derived name, never just the maintainer's own configuration.@@ -27,7 +27,7 @@ afterEach(() => {useEventStore.setState({ assistantName: "Assistant" });});-function makeWorker(overrides: Partial<OpenClawWorkerSnapshot> = {}): OpenClawWorkerSnapshot {+function makeWorker(overrides: Partial<JarvisAgentWorkerSnapshot> = {}): JarvisAgentWorkerSnapshot {return {worker_id: "oc-worker-1",model: "gemini/gemini-3.1-pro-preview",@@ -65,7 +65,7 @@ describe("JarvisAgentPanel", () => {).toBeDefined();});- it("renders all columns for a live OpenClaw worker", () => {+ it("renders all columns for a live Jarvis-Agent worker", () => {useMissionsStore.setState({selectedMissionId: "mid-1",workerSnapshotsByMission: { "mid-1": [makeWorker()] },@@ -73,26 +73,26 @@ describe("JarvisAgentPanel", () => {render(<JarvisAgentPanel />);// Model- const model = screen.getByTestId("openclaw-model");+ const model = screen.getByTestId("jarvis-agent-model");expect(model.textContent).toBe("gemini/gemini-3.1-pro-preview");// Cost- const cost = screen.getByTestId("openclaw-cost");+ const cost = screen.getByTestId("jarvis-agent-cost");expect(cost.textContent).toContain("$0.0234");expect(cost.textContent).toContain("12.5k tok");// State-Dir- const stateDir = screen.getByTestId("openclaw-state-dir");+ const stateDir = screen.getByTestId("jarvis-agent-state-dir");expect(stateDir.textContent).toBe("C:/wt/oc-1/.openclaw_state/sess-cafebabe/openclaw_state",);// Logfile- const logPath = screen.getByTestId("openclaw-log-path");+ const logPath = screen.getByTestId("jarvis-agent-log-path");expect(logPath.textContent).toContain("run.log");// Reattach-Status: live- const badge = screen.getByTestId("openclaw-reattach-badge");+ const badge = screen.getByTestId("jarvis-agent-reattach-badge");expect(badge.getAttribute("data-reattach-status")).toBe("live");expect(badge.textContent).toBe("live");});@@ -112,11 +112,11 @@ describe("JarvisAgentPanel", () => {});render(<JarvisAgentPanel />);- const badge = screen.getByTestId("openclaw-reattach-badge");+ const badge = screen.getByTestId("jarvis-agent-reattach-badge");expect(badge.getAttribute("data-reattach-status")).toBe("killed");expect(badge.textContent).toBe("killed");- const reason = screen.getByTestId("openclaw-ended-reason");+ const reason = screen.getByTestId("jarvis-agent-ended-reason");expect(reason.textContent).toBe("user");});@@ -137,13 +137,13 @@ describe("JarvisAgentPanel", () => {});render(<JarvisAgentPanel />);- const rows = screen.getAllByTestId("openclaw-worker-row");+ const rows = screen.getAllByTestId("jarvis-agent-worker-row");expect(rows).toHaveLength(2);expect(rows[0].getAttribute("data-worker-id")).toBe("w-aaa");expect(rows[1].getAttribute("data-worker-id")).toBe("w-bbb");// Cost == 0 is rendered as "—"- const costs = screen.getAllByTestId("openclaw-cost");+ const costs = screen.getAllByTestId("jarvis-agent-cost");expect(costs[1].textContent).toContain("—");});});diff --git a/jarvis/ui/web/frontend/src/components/JarvisAgentSection.tsx b/jarvis/ui/web/frontend/src/components/JarvisAgentSection.tsxindex 707a17e9cc..ef42d04229 100644--- a/jarvis/ui/web/frontend/src/components/JarvisAgentSection.tsx+++ b/jarvis/ui/web/frontend/src/components/JarvisAgentSection.tsx@@ -90,8 +90,8 @@ const PROVIDER_LABELS: Record<string, string> = {openrouter: "OpenRouter",grok: "xAI Grok",nvidia: "NVIDIA NIM",- // Codex is a direct worker (ChatGPT subscription / OpenAI key), not an- // OpenClaw-routed provider — surfaced as its own selectable subagent row.+ // Codex is a direct worker (ChatGPT subscription / OpenAI key), not a+ // Jarvis-Agent-routed provider — surfaced as its own selectable subagent row."openai-codex": "OpenAI Codex",// Antigravity drives the Google subscription CLI as a direct worker (OAuth, no// API key), the Google sibling of Codex.@@ -1411,7 +1411,7 @@ function SubagentProviderCard({/*** Radio-based active toggle, mirroring `ActiveControl` in `ApiKeysView`.- * Source of truth stays `row.is_active_brain` from `/api/openclaw/status`;+ * Source of truth stays `row.is_active_brain` from `/api/jarvis-agent/status`;* the radio reflects the server state and is not held locally.* `name="active-subagent"` gives native single-select across the cards.* The radio is NOT disabled when the key is missing — instead `activate()`diff --git a/jarvis/ui/web/frontend/src/components/missions/JarvisAgentPanel.tsx b/jarvis/ui/web/frontend/src/components/missions/JarvisAgentPanel.tsxindex 80581c000b..6c4a4f4e9f 100644--- a/jarvis/ui/web/frontend/src/components/missions/JarvisAgentPanel.tsx+++ b/jarvis/ui/web/frontend/src/components/missions/JarvisAgentPanel.tsx@@ -15,18 +15,18 @@ import { useShallow } from "zustand/react/shallow";import { ScrollArea } from "@/components/ui/scroll-area";import { useT } from "@/i18n";import { cn } from "@/lib/utils";-import type { OpenClawReattachStatus, OpenClawWorkerSnapshot } from "@/types/missions";+import type { JarvisAgentReattachStatus, JarvisAgentWorkerSnapshot } from "@/types/missions";import { useMissionsStore } from "./store";-const REATTACH_STYLE: Record<OpenClawReattachStatus, string> = {+const REATTACH_STYLE: Record<JarvisAgentReattachStatus, string> = {live: "border-emerald-400/40 bg-emerald-400/10 text-emerald-300",ended: "border-zinc-500/40 bg-zinc-500/10 text-zinc-300",killed: "border-destructive/50 bg-destructive/15 text-destructive",unknown: "border-amber-400/40 bg-amber-400/10 text-amber-300",};-const REATTACH_LABEL: Record<OpenClawReattachStatus, string> = {+const REATTACH_LABEL: Record<JarvisAgentReattachStatus, string> = {live: "live",ended: "ended",killed: "killed",@@ -68,7 +68,7 @@ export function JarvisAgentPanel() {return (<div className="flex h-full flex-col items-center justify-center gap-2 px-4 text-center text-xs text-muted-foreground"><Cpu className="h-7 w-7 text-muted-foreground/40" />- <p>{t("openclaw_panel.select_mission")}</p>+ <p>{t("jarvis_agent_panel.select_mission")}</p></div>);}@@ -77,14 +77,14 @@ export function JarvisAgentPanel() {return (<div className="flex h-full flex-col items-center justify-center gap-2 px-4 text-center text-xs text-muted-foreground"><CircleSlash className="h-7 w-7 text-muted-foreground/40" />- <p>{t("openclaw_panel.no_workers")}</p>+ <p>{t("jarvis_agent_panel.no_workers")}</p></div>);}return (<ScrollArea className="h-full">- <div data-testid="openclaw-worker-list" className="space-y-2 p-3">+ <div data-testid="jarvis-agent-worker-list" className="space-y-2 p-3">{workers.map((w) => (<WorkerRow key={w.worker_id} worker={w} />))}@@ -94,7 +94,7 @@ export function JarvisAgentPanel() {}interface WorkerRowProps {- worker: OpenClawWorkerSnapshot;+ worker: JarvisAgentWorkerSnapshot;}function WorkerRow({ worker }: WorkerRowProps) {@@ -104,7 +104,7 @@ function WorkerRow({ worker }: WorkerRowProps) {return (<div- data-testid="openclaw-worker-row"+ data-testid="jarvis-agent-worker-row"data-worker-id={worker.worker_id}className="rounded border border-border/60 bg-card/30 p-2 text-xs">@@ -124,7 +124,7 @@ function WorkerRow({ worker }: WorkerRowProps) {)}</div><div- data-testid="openclaw-model"+ data-testid="jarvis-agent-model"className="mt-1 truncate font-mono text-foreground/90"title={worker.model}>@@ -132,7 +132,7 @@ function WorkerRow({ worker }: WorkerRowProps) {</div></div><span- data-testid="openclaw-reattach-badge"+ data-testid="jarvis-agent-reattach-badge"data-reattach-status={worker.reattach_status}className={cn("rounded border px-1.5 py-0.5 font-mono text-[9px] uppercase tracking-wider",@@ -146,7 +146,7 @@ function WorkerRow({ worker }: WorkerRowProps) {<dl className="mt-2 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-[10px]"><dt className="text-muted-foreground">Cost</dt><dd- data-testid="openclaw-cost"+ data-testid="jarvis-agent-cost"className="font-mono text-foreground/80 tabular-nums">{formatCost(worker.cost_usd)}@@ -160,9 +160,9 @@ function WorkerRow({ worker }: WorkerRowProps) {<dt className="text-muted-foreground">State-Dir</dt><dd className="flex items-center gap-1 min-w-0"><span- data-testid="openclaw-state-dir"+ data-testid="jarvis-agent-state-dir"className="truncate font-mono text-foreground/80"- title={worker.state_dir || t("openclaw_panel.not_available")}+ title={worker.state_dir || t("jarvis_agent_panel.not_available")}>{worker.state_dir || "—"}</span>@@ -170,7 +170,7 @@ function WorkerRow({ worker }: WorkerRowProps) {<buttontype="button"onClick={() => copyToClipboard(worker.state_dir)}- title={t("openclaw_panel.copy_path")}+ title={t("jarvis_agent_panel.copy_path")}className="shrink-0 text-muted-foreground/70 hover:text-foreground"><Copy className="h-3 w-3" />@@ -181,9 +181,9 @@ function WorkerRow({ worker }: WorkerRowProps) {<dt className="text-muted-foreground">Logfile</dt><dd className="flex items-center gap-1 min-w-0"><span- data-testid="openclaw-log-path"+ data-testid="jarvis-agent-log-path"className="truncate font-mono text-foreground/80"- title={worker.log_path || t("openclaw_panel.not_available")}+ title={worker.log_path || t("jarvis_agent_panel.not_available")}>{worker.log_path || "—"}</span>@@ -192,7 +192,7 @@ function WorkerRow({ worker }: WorkerRowProps) {<buttontype="button"onClick={() => copyToClipboard(worker.log_path)}- title={t("openclaw_panel.copy_path")}+ title={t("jarvis_agent_panel.copy_path")}className="shrink-0 text-muted-foreground/70 hover:text-foreground"><Copy className="h-3 w-3" />@@ -206,7 +206,7 @@ function WorkerRow({ worker }: WorkerRowProps) {e.preventDefault();copyToClipboard(worker.log_path);}}- title={t("openclaw_panel.file_link_copies_path")}+ title={t("jarvis_agent_panel.file_link_copies_path")}className="shrink-0 text-muted-foreground/70 hover:text-foreground"><ExternalLink className="h-3 w-3" />@@ -217,9 +217,9 @@ function WorkerRow({ worker }: WorkerRowProps) {{worker.ended_reason && (<>- <dt className="text-muted-foreground">{t("openclaw_panel.ended_label")}</dt>+ <dt className="text-muted-foreground">{t("jarvis_agent_panel.ended_label")}</dt><dd- data-testid="openclaw-ended-reason"+ data-testid="jarvis-agent-ended-reason"className="font-mono text-foreground/70">{worker.ended_reason}diff --git a/jarvis/ui/web/frontend/src/components/missions/api.ts b/jarvis/ui/web/frontend/src/components/missions/api.tsindex ba0209c20e..2d8c134fa6 100644--- a/jarvis/ui/web/frontend/src/components/missions/api.ts+++ b/jarvis/ui/web/frontend/src/components/missions/api.ts@@ -10,7 +10,7 @@ import type {MissionSummary,MissionToolApprovalDecision,MissionToolApprovalsResponse,- OpenClawWorkerSnapshot,+ JarvisAgentWorkerSnapshot,} from "@/types/missions";export interface MissionsListResponse {@@ -41,7 +41,7 @@ export async function fetchMissionDetail(id: string): Promise<MissionDetail> {events.filter((e) => e.payload.event_type === "CriticVerdictReady").map((e) => e.payload as CriticVerdictReady);- const worker_snapshots: OpenClawWorkerSnapshot[] =+ const worker_snapshots: JarvisAgentWorkerSnapshot[] =Array.isArray(data.worker_snapshots) ? data.worker_snapshots : [];return { mission: data.mission, events, verdicts, worker_snapshots };}diff --git a/jarvis/ui/web/frontend/src/components/missions/store.ts b/jarvis/ui/web/frontend/src/components/missions/store.tsindex 42b341fdfc..227189bb89 100644--- a/jarvis/ui/web/frontend/src/components/missions/store.ts+++ b/jarvis/ui/web/frontend/src/components/missions/store.ts@@ -14,7 +14,7 @@ import type {MissionState,MissionStateChanged,MissionSummary,- OpenClawWorkerSnapshot,+ JarvisAgentWorkerSnapshot,} from "@/types/missions";const MAX_EVENTS_PER_MISSION = 500;@@ -23,7 +23,7 @@ interface MissionsStore {missions: Record<string, MissionSummary>;eventsByMission: Record<string, EventEnvelope[]>;verdictsByMission: Record<string, CriticVerdictReady[]>;- workerSnapshotsByMission: Record<string, OpenClawWorkerSnapshot[]>;+ workerSnapshotsByMission: Record<string, JarvisAgentWorkerSnapshot[]>;selectedMissionId: string | null;selectedWorkerId: string | null;lastSeq: number;@@ -36,7 +36,7 @@ interface MissionsStore {missionId: string,events: EventEnvelope[],verdicts: CriticVerdictReady[],- workerSnapshots?: OpenClawWorkerSnapshot[],+ workerSnapshots?: JarvisAgentWorkerSnapshot[],) => void;selectMission: (id: string | null) => void;selectWorker: (id: string | null) => void;diff --git a/jarvis/ui/web/frontend/src/i18n/board-active-time-honesty.test.ts b/jarvis/ui/web/frontend/src/i18n/board-active-time-honesty.test.tsindex 125ef7e391..bfc01ea7fe 100644--- a/jarvis/ui/web/frontend/src/i18n/board-active-time-honesty.test.ts+++ b/jarvis/ui/web/frontend/src/i18n/board-active-time-honesty.test.ts@@ -73,8 +73,8 @@ describe("Board active-time metric stays honestly labeled", () => {/*** The "work hours" metric (board_view.stats.hours_saved + the* most_hours_saved_in_a_day record) is the summed wall-clock RUN TIME of- * Sub-Jarvis (OpenClaw) background tasks — jarvis/board/aggregator.py adds- * payload.duration_s / 3600 per OpenClawTaskCompleted. That is how long the+ * Sub-Jarvis (Jarvis-Agent) background tasks — jarvis/board/aggregator.py adds+ * payload.duration_s / 3600 per JarvisAgentTaskCompleted. That is how long the* sub-agent worked, NOT a measured amount of time the user saved. It used to* be labeled "hours saved" / "time-saver day", an unprovable benefit claim.*/diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex 8e6b9af9e1..c5ff92fe92 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -2088,7 +2088,7 @@"verdict_panel": {"empty": "Noch keine Critic-Verdicts für diese Mission."},- "openclaw_panel": {+ "jarvis_agent_panel": {"select_mission": "Mission auswählen, um {name}-Agent-Worker zu sehen.","no_workers": "Keine {name}-Agent-Worker in dieser Mission.","not_available": "(nicht verfügbar)",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex bada8f1618..ec729101f5 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -2089,7 +2089,7 @@"verdict_panel": {"empty": "No critic verdicts for this mission yet."},- "openclaw_panel": {+ "jarvis_agent_panel": {"select_mission": "Select a mission to see {name}-Agent workers.","no_workers": "No {name}-Agent workers in this mission.","not_available": "(not available)",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex 238b68a63a..a791fe5be0 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -2088,7 +2088,7 @@"verdict_panel": {"empty": "Aún no hay veredictos del crítico para esta misión."},- "openclaw_panel": {+ "jarvis_agent_panel": {"select_mission": "Selecciona una misión para ver los {name}-Agent workers.","no_workers": "No hay {name}-Agent workers en esta misión.","not_available": "(no disponible)",diff --git a/jarvis/ui/web/frontend/src/types/missions.ts b/jarvis/ui/web/frontend/src/types/missions.tsindex 590d69b744..03e0efdd39 100644--- a/jarvis/ui/web/frontend/src/types/missions.ts+++ b/jarvis/ui/web/frontend/src/types/missions.ts@@ -239,9 +239,9 @@ export interface MissionSummary {parent_mission_id?: string | null;}-export type OpenClawReattachStatus = "live" | "ended" | "killed" | "unknown";+export type JarvisAgentReattachStatus = "live" | "ended" | "killed" | "unknown";-export interface OpenClawWorkerSnapshot {+export interface JarvisAgentWorkerSnapshot {worker_id: string;model: string;session_id: string | null;@@ -249,7 +249,7 @@ export interface OpenClawWorkerSnapshot {log_path: string;cost_usd: number;tokens_used: number;- reattach_status: OpenClawReattachStatus;+ reattach_status: JarvisAgentReattachStatus;spawned_ms: number;ended_ms: number | null;ended_reason: string | null;@@ -261,7 +261,7 @@ export interface MissionDetail {mission: MissionSummary;events: EventEnvelope[];verdicts: CriticVerdictReady[];- worker_snapshots: OpenClawWorkerSnapshot[];+ worker_snapshots: JarvisAgentWorkerSnapshot[];}/** Secret-free projection of one paused supervisor tool call. */diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.antigravity.test.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.antigravity.test.tsxindex b6fe45315c..5210434f0b 100644--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.antigravity.test.tsx+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.antigravity.test.tsx@@ -139,7 +139,7 @@ function antigravityMissing() {});}-const OPENCLAW_EMPTY = {+const JARVIS_AGENT_EMPTY = {configured: true,enabled: false,binary_path: "",@@ -198,7 +198,7 @@ function routesFor(): Record<string, () => RouteResult> {return {"/api/providers": () => ({ body: { providers: [provider] } }),- "/api/jarvis-agent/status": () => ({ body: OPENCLAW_EMPTY }),+ "/api/jarvis-agent/status": () => ({ body: JARVIS_AGENT_EMPTY }),"/api/antigravity/status": () => ({body: provider.antigravity_status ?? {},}),diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.codex.test.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.codex.test.tsxindex f2a46195d6..23db5693f9 100644--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.codex.test.tsx+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.codex.test.tsx@@ -123,7 +123,7 @@ function codexDescriptorNotConnected() {});}-const OPENCLAW_CODEX = {+const JARVIS_AGENT_CODEX = {configured: true,enabled: false,binary_path: "",@@ -182,7 +182,7 @@ function routesFor(): Record<string, () => RouteResult> {return {"/api/providers": () => ({ body: { providers: [provider] } }),- "/api/jarvis-agent/status": () => ({ body: OPENCLAW_CODEX }),+ "/api/jarvis-agent/status": () => ({ body: JARVIS_AGENT_CODEX }),"/api/codex/status": () => ({body: provider.codex_status ?? {},}),diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.section-health.test.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.section-health.test.tsxindex 60b50bae36..75a8081419 100644--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.section-health.test.tsx+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.section-health.test.tsx@@ -85,7 +85,7 @@ function baseRoutes(overrides: Record<string, () => RouteResult> = {}) {"/api/providers": () => ({body: { providers: [BROKEN_BRAIN_PROVIDER, ACTIVE_TTS_PROVIDER, ACTIVE_STT_PROVIDER] },}),- "/api/openclaw/status": () => ({ body: { mapping: [], brain_primary: "" } }),+ "/api/jarvis-agent/status": () => ({ body: { mapping: [], brain_primary: "" } }),...overrides,};}diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.telephony.test.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.telephony.test.tsxindex c6adb52908..df008aad08 100644--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.telephony.test.tsx+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.telephony.test.tsx@@ -73,7 +73,7 @@ const GEMINI_BRAIN = {active: true,};-const OPENCLAW_EMPTY = {+const JARVIS_AGENT_EMPTY = {configured: true,enabled: false,binary_path: "",@@ -121,7 +121,7 @@ const TELEPHONY_CONFIG_LIVE = {function routes(): Record<string, () => RouteResult> {return {"/api/providers": () => ({ body: { providers: [GEMINI_BRAIN] } }),- "/api/openclaw/status": () => ({ body: OPENCLAW_EMPTY }),+ "/api/jarvis-agent/status": () => ({ body: JARVIS_AGENT_EMPTY }),"/api/telephony/status": () => ({ body: TELEPHONY_STATUS_LIVE }),"/api/telephony/config": () => ({ body: TELEPHONY_CONFIG_LIVE }),"/api/telephony/scripts": () => ({ body: { scripts: [] } }),diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsxindex d3eaa61bfe..f6bd0c73e7 100644--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx@@ -978,7 +978,7 @@ function ComputerUseCategory({/*** The Subagents category — the heavy-task worker selection. `SubagentSection`- * owns its own data source (/api/openclaw/status) and card system; the hero band+ * owns its own data source (/api/jarvis-agent/status) and card system; the hero band* just frames it consistently with the provider tiers.*/function SubagentCategory() {diff --git a/jarvis/ui/web/frontend/src/views/MissionsView.tsx b/jarvis/ui/web/frontend/src/views/MissionsView.tsxindex 76d479662f..35e7403f59 100644--- a/jarvis/ui/web/frontend/src/views/MissionsView.tsx+++ b/jarvis/ui/web/frontend/src/views/MissionsView.tsx@@ -183,7 +183,7 @@ export function MissionsView() {<MapIcon className="h-3.5 w-3.5" />Plan</TabsTrigger>- <TabsTrigger value="openclaw" className="gap-1.5">+ <TabsTrigger value="jarvis-agent" className="gap-1.5"><Cpu className="h-3.5 w-3.5" />{agentBrand(assistantName)}</TabsTrigger>@@ -215,7 +215,7 @@ export function MissionsView() {<TabsContent value="plan" className="m-0 flex-1 overflow-hidden"><PlanPanel /></TabsContent>- <TabsContent value="openclaw" className="m-0 flex-1 overflow-hidden">+ <TabsContent value="jarvis-agent" className="m-0 flex-1 overflow-hidden"><JarvisAgentPanel /></TabsContent><TabsContent value="approvals" className="m-0 flex-1 overflow-hidden">diff --git a/jarvis/ui/web/frontend/src/views/sub-agents/tool-icons.ts b/jarvis/ui/web/frontend/src/views/sub-agents/tool-icons.tsindex a73c1743d3..c4d1057e9f 100644--- a/jarvis/ui/web/frontend/src/views/sub-agents/tool-icons.ts+++ b/jarvis/ui/web/frontend/src/views/sub-agents/tool-icons.ts@@ -3,7 +3,7 @@** The heuristic first looks at the tool name (run_shell, search_web, ...)* and then refines based on args_preview (open_app chrome → Chrome icon,- * dispatch_to_harness openclaw → OpenClaw). This gives us a+ * dispatch_to_harness jarvis-agent → Jarvis-Agent). This gives us a* recognizable, brand-like look without an extra icon package.*/import {diff --git a/jarvis/ui/web/mission_inject.py b/jarvis/ui/web/mission_inject.pyindex 043dfc7dd7..44501f4836 100644--- a/jarvis/ui/web/mission_inject.py+++ b/jarvis/ui/web/mission_inject.py@@ -39,8 +39,9 @@ def compose_mission_inject_text(payload: dict[str, Any]) -> str | None:# Phrased as a recap request about an ALREADY-FINISHED job. It must not# contain the router's force-spawn triggers ("sub-agent"/"spawn"/"delegate"/- # "openclaw") or action verbs — a dropped mission is discussed, never- # re-dispatched (spec AP-5/AP-14). See test_compose_avoids_router_spawn_*.+ # the legacy "openclaw" trigger, still accepted per jarvis/core/config.py)+ # or action verbs — a dropped mission is discussed, never re-dispatched+ # (spec AP-5/AP-14). See test_compose_avoids_router_spawn_*.parts = [f'\U0001F4CE I\'ve pinned a finished task to our conversation: "{title}" (status: {status}).']if summary:parts.append(f"\nWhat it produced:\n{summary}")diff --git a/jarvis/ui/web/missions_worker.py b/jarvis/ui/web/missions_worker.pyindex d7569ee31c..dafc42f5df 100644--- a/jarvis/ui/web/missions_worker.py+++ b/jarvis/ui/web/missions_worker.py@@ -1,18 +1,22 @@-"""OpenClaw worker aggregator for the mission-detail API.+"""Jarvis-Agent worker aggregator for the mission-detail API.-Phase 9 (Welle 4 UI): once the OpenClaw harness is wired into the+Phase 9 (Welle 4 UI): once the Jarvis-Agent harness is wired into themission-manager worker layer, it emits ``WorkerSpawned`` events with a-session_id and ``step["harness"] == "openclaw"``. This aggregator pulls all-OpenClaw-specific UI fields out of a mission's event stream —+session_id and ``step["harness"] == "openclaw"`` (the harness-registration+slug — kept as-is for backward compatibility, see AliasChoices in+HarnessConfig). This aggregator pulls all Jarvis-Agent-specific UI fields+out of a mission's event stream —``state_dir``, ``log_path``, ``reattach_status``, ``cost_usd``, ``tokens``.Pure helpers, no IO. Tests for this live in``tests/missions/api/test_missions_worker_aggregator.py``.-Contract compatibility (see ``docs/openclaw-bridge.md``):-- ``MISSION_STATE_DIR`` convention from ``OpenClawHarness._build_spec``:- ``<worktree>/.openclaw_state/<session_id>/openclaw_state``.-- ``log_path`` convention: OpenClaw writes ``run.log`` into state_dir+Contract compatibility (see ``docs/jarvis-agents-bridge.md``):+- ``MISSION_STATE_DIR`` convention from the worker-runtime builder (see+ ``jarvis/missions/workers/provider_chain.py``):+ ``<worktree>/.openclaw_state/<session_id>/openclaw_state`` (legacy+ directory-name segments, kept for on-disk backward compatibility).+- ``log_path`` convention: the worker writes ``run.log`` into state_dir(see the Welle-3 spike results §SP-4).- Reattach status: ``live`` as long as neither ``WorkerKilled`` nor amission-terminal event follows; otherwise ``ended``/``killed``.@@ -29,15 +33,17 @@ ReattachStatus = Literal["live", "ended", "killed", "unknown"]def _is_worker_mission(spawn_payload: Any) -> bool:- """Detection heuristic for an OpenClaw worker.+ """Detection heuristic for a Jarvis-Agent worker.- Primary: ``step["harness"] == "openclaw"`` — this is the canonical marker- once the worker layer calls the OpenClaw harness.+ Primary: ``step["harness"] == "openclaw"`` (the harness-registration+ slug — kept as-is for backward compatibility) — this is the canonical+ marker once the worker layer calls the Jarvis-Agent harness.Fallback: ``session_id is not None`` AND ``model`` contains a- ``provider/model`` slash (OpenClaw's provider-prefix convention, see- ``OpenClawHarness.build_spawn_args``). This way the UI still works even- when the worker layer doesn't set the ``step`` marker yet.+ ``provider/model`` slash (the Jarvis-Agent provider-prefix convention,+ see ``jarvis/missions/workers/provider_chain.py``). This way the UI+ still works even when the worker layer doesn't set the ``step`` marker+ yet."""step = getattr(spawn_payload, "step", None) or {}if isinstance(step, dict) and step.get("harness") == "openclaw":@@ -49,7 +55,8 @@ def _is_worker_mission(spawn_payload: Any) -> bool:def _derive_state_dir(worktree: str, session_id: str) -> str:- """Reproduces the ``OpenClawHarness._build_spec`` convention.+ """Reproduces the worker-runtime state-dir convention (see+ ``jarvis/missions/workers/provider_chain.py``).Returns a *forward-slash* path (UI-friendly even on Windows)."""@@ -61,7 +68,7 @@ def _derive_state_dir(worktree: str, session_id: str) -> str:def _derive_log_path(state_dir: str) -> str:- """OpenClaw writes ``run.log`` into state_dir (Welle-3 SP-4 finding)."""+ """The worker writes ``run.log`` into state_dir (Welle-3 SP-4 finding)."""if not state_dir:return ""return f"{state_dir}/run.log"@@ -70,7 +77,7 @@ def _derive_log_path(state_dir: str) -> str:def extract_worker_missions(events: Iterable[EventEnvelope],) -> list[dict[str, Any]]:- """Aggregates OpenClaw worker snapshots from an event stream.+ """Aggregates Jarvis-Agent worker snapshots from an event stream.Idempotent + no IO. Entry order matches thechronological spawn order.diff --git a/jarvis/ui/web/outputs_routes.py b/jarvis/ui/web/outputs_routes.pyindex b4407d98a9..6a35b71b13 100644--- a/jarvis/ui/web/outputs_routes.py+++ b/jarvis/ui/web/outputs_routes.py@@ -481,7 +481,8 @@ def _is_deliverable_relpath(rel_parts: tuple[str, ...]) -> bool:projects/*.jsonl, .claude.json, .last-cleanup, backups/). Live report2026-05-30: a trivial "make an HTML file" mission showed 10+ of these.* ``.codex/`` — ``CODEX_HOME``.- * ``openclaw_state/`` — the OpenClaw state dir.+ * ``openclaw_state/`` — the Jarvis-Agent worker state dir (legacy+ on-disk directory name).* ``tasks/*/artifacts/diff*.patch`` and ``tasks/*/logs/*`` — forensicworker diffs + subprocess logs (kept on disk + reachable via the"open in Explorer" button, but not a deliverable).diff --git a/jarvis/ui/web/provider_routes.py b/jarvis/ui/web/provider_routes.pyindex e4027bf438..c78d91fcec 100644--- a/jarvis/ui/web/provider_routes.py+++ b/jarvis/ui/web/provider_routes.py@@ -3012,8 +3012,9 @@ async def jarvis_agent_switch(body: SwitchBody, request: Request) -> dict[str, A}# Antigravity (Google subscription) is a DIRECT worker over the OAuth Google- # CLI — no OpenClaw slug, no API key. Mirror of the codex branch: gate on the- # OAuth login being present, then persist the "antigravity" slug.+ # CLI — no Jarvis-Agent worker-harness slug, no API key. Mirror of the+ # codex branch: gate on the OAuth login being present, then persist the+ # "antigravity" slug.from jarvis.missions.worker_runtime.provider_map import (ANTIGRAVITY_SUBAGENT_CANONICAL,ANTIGRAVITY_SUBAGENT_SLUGS,diff --git a/jarvis/ui/web/server.py b/jarvis/ui/web/server.pyindex b94d0e2532..563538e1bc 100644--- a/jarvis/ui/web/server.py+++ b/jarvis/ui/web/server.py@@ -855,11 +855,12 @@ class WebServer:@app.get("/api/jarvis-agent/status")async def jarvis_agent_status() -> dict[str, Any]:- """OpenClaw-bridge status for the settings view (Welle 3).+ """Jarvis-Agent bridge status for the settings view (Welle 3).Read-only snapshot:- * ``configured`` — is the ``[harness.openclaw]`` block present in jarvis.toml?+ * ``configured`` — is the ``[harness.jarvis_agent]`` block+ (legacy alias: ``[harness.openclaw]``) present in jarvis.toml?* ``enabled`` — bridge toggle from the block* ``binary_path`` — configured path* ``binary_detected`` — resolver result (PATH + .cmd/.ps1/.exe)@@ -868,13 +869,13 @@ class WebServer:(``[brain.sub_jarvis].provider``); falls back to ``brain.primary``only when no subagent provider is set. NOT the routerbrain — the subagent runs the heavy tasks.- * ``provider_slug`` — OpenClaw slug of the active subagent+ * ``provider_slug`` — worker slug of the active subagentprovider per AD-6 (claude-api->claude-cli)* ``model_resolved`` — override from config OR the frontier-deepmodel of the active subagent provider* ``mapping`` — the full slug-mapping table- Contract: docs/openclaw-bridge.md §4.3 wizard/setup extension.+ Contract: docs/jarvis-agents-bridge.md §4.3 wizard/setup extension.The endpoint returns NO secrets — only a boolean for whether a key is set."""import shutil@@ -1031,7 +1032,7 @@ class WebServer:})- # Codex is a DIRECT worker (CodexDirectWorker) with no OpenClaw slug,+ # Codex is a DIRECT worker (CodexDirectWorker) with no worker slug,# so it is not in MAPPINGS. Surface it as an explicit selectable# subagent row. Backed by the ChatGPT subscription (OAuth) OR an# OpenAI API key — "key_set" is true when either is present.@@ -1087,7 +1088,7 @@ class WebServer:)# Antigravity is a DIRECT worker (GoogleCliWorker over the official- # agy/Gemini CLI) with no OpenClaw slug, so it is not in MAPPINGS —+ # agy/Gemini CLI) with no worker slug, so it is not in MAPPINGS —# the Google sibling of Codex. Dual billing, mirror of Codex: the# Google subscription OAuth login OR a Gemini API key (per token).# "key_set" is true when either is present.@@ -2405,7 +2406,7 @@ class WebServer:# Welle-4 follow-up: bridge MissionBus -> SubAgentRegistry so the# Sub-Agents board lights up. The legacy publishers for- # OpenClawTaskStarted/Completed were removed in the migration; without+ # JarvisAgentTaskStarted/Completed were removed in the migration; without# this hook the dashboard stays empty even while missions are flowing.registry = getattr(self.app.state, "sub_agent_registry", None)if registry is not None:diff --git a/jarvis/workflows/schema.py b/jarvis/workflows/schema.pyindex 825d84516b..6662a9970a 100644--- a/jarvis/workflows/schema.py+++ b/jarvis/workflows/schema.py@@ -5,7 +5,7 @@ primitives without a Turing-complete node editor:- ``brain_prompt`` → sends a prompt to the active BrainManager,writes the reply as ``output`` into the run context.-- ``harness_dispatch`` → dispatches a HarnessTask (OpenClaw, Codex,+- ``harness_dispatch`` → dispatches a HarnessTask (Jarvis-Agent, Codex,Computer-Use, MCP-Remote, Python script).- ``speak`` → emits an ``AnnouncementRequested`` event; the TTSpipeline listens and speaks the text. Without TTS: the event stays in the log.@@ -78,7 +78,7 @@ class BrainPromptStep(BaseModel):class HarnessDispatchStep(BaseModel):- """Dispatches to a harness (openclaw, codex, computer-use, ...).+ """Dispatches to a harness (jarvis_agent, codex, computer-use, ...).The result is the ``stdout`` of the final round; stored as ``output``in the run context.diff --git a/pyproject.toml b/pyproject.tomlindex 43be7e674d..e0110b0d0b 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -448,7 +448,8 @@ whoami = "jarvis.plugins.tool.whoami:WhoAmITool"dispatch-to-admin = "jarvis.plugins.tool.dispatch_to_admin:DispatchToAdminTool"# 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.+# (ClaudeDirectWorker). Legacy names: spawn-sub-jarvis -> spawn-openclaw (internal+# name only, never a live entry point) -> spawn-worker.multi-spawn = "jarvis.plugins.tool.multi_spawn:MultiSpawnTool"spawn-worker = "jarvis.plugins.tool.spawn_worker:SpawnWorkerTool"# Legacy Phase-8.4 review entry point. It is intentionally not model-visible;@@ -471,7 +472,7 @@ mcp-tools = "jarvis.mcp.loader:McpToolLoader"# It pointed at jarvis.plugins.tool.spawn_cli_worker:SpawnCliWorkerTool, a file# that never existed (dead entry point). Single-step CLI work is now served# directly by the connected ``cli_<name>`` tools (the ``cli-tools`` loader);-# heavy multi-step CLI work is already covered by ``spawn_openclaw`` (the+# heavy multi-step CLI work is already covered by ``spawn_worker`` (the# mission worker has shell + CLI access). A dedicated spawn-cli-worker would be# redundant surface and a new D9 recursion vector to police, so it was dropped# rather than re-implemented.@@ -513,7 +514,7 @@ wiki-ingest = "jarvis.plugins.tool.wiki_ingest:WikiIngestTool"# write, monitor. Closes the gap left by the soft-disabled legacy Curator.update-profile = "jarvis.plugins.tool.profile_update:UpdateProfileTool"# Phase 7.5 — skill authoring (router-tier, ask). Spawns the-# SkillAuthoringRunner over OpenClaw. Implementation lives at+# SkillAuthoringRunner over the Jarvis-Agent bridge. Implementation lives at# jarvis/brain/tools/skill_authoring.py since 2026-05-12; registration# was missing until the 2026-05-17 audit (CLAUDE.md flagged it as# "not yet registered in pyproject.toml" — this is that line landing).diff --git a/scripts/README-auto-push.md b/scripts/README-auto-push.mdindex 1a271b552f..a00e643add 100644--- a/scripts/README-auto-push.md+++ b/scripts/README-auto-push.md@@ -111,12 +111,12 @@ If you still have uncommitted changes, **the script aborts** (log entry `SKIP: W----## Clarification: relationship to the OpenClaw DENY rule+## Clarification: relationship to the Jarvis-Agent DENY rule-In `~/.claude/settings.json` there is a `Bash(git push *)` DENY rule that prevents OpenClaw agents from pushing at runtime. **This rule does NOT affect the auto-push script**, because:+In `~/.claude/settings.json` there is a `Bash(git push *)` DENY rule that prevents Jarvis-Agent worker agents from pushing at runtime. **This rule does NOT affect the auto-push script**, because:- The Task Scheduler starts the script as a standalone Windows program (`powershell.exe`).-- It does not run inside the OpenClaw harness, but as a normal user process.+- It does not run inside the Jarvis-Agent worker harness, but as a normal user process.- The DENY rule only filters Bash tool calls of the LLM, not external scripts.So you keep **full control**: agents still cannot push on their own, but your own scheduled job mirrors your repo to GitHub every evening.diff --git a/scripts/_build_excalidraw_jarvis.py b/scripts/_build_excalidraw_jarvis.pyindex de8496e224..a83f423173 100644--- a/scripts/_build_excalidraw_jarvis.py+++ b/scripts/_build_excalidraw_jarvis.py@@ -1,4 +1,4 @@-"""One-shot builder for the Personal-Jarvis OpenClaw/ChatGPT visualisation.+"""One-shot builder for the Personal-Jarvis Jarvis-Agent/ChatGPT visualisation.NOT a templating generator — every element is spelled out explicitly withits own text, coordinates and colour. The helpers only fill in the boring@@ -111,7 +111,7 @@ def code_box(eid_base, x, y, w, h, code_lines, *, title=None):# Hero bandrect("hero_bg", 0, 0, 4600, 250, stroke=C["ink"], bg="#f8f9fa", sw=3)text("hero_title", 60, 50,- "PERSONAL JARVIS — OpenClaw Mission-Engine & ChatGPT-Migration",+ "PERSONAL JARVIS — Jarvis-Agent Mission-Engine & ChatGPT-Migration",size=58, color=C["ink"], bold_family=True)text("hero_sub", 62, 135,"What was built: Voice → Force-Spawn → Mission-Manager → Worker/Critic-Loop → APPROVED → Voice-Readback · plus the ChatGPT/Codex migration (Welle 6) and 18+ live bugs",@@ -154,7 +154,7 @@ arrow("sf_loop", 1900, sy + 80, 0, 60, stroke=C["red_s"], sw=2,text("sf_loop_t", 1560, sy + 150, "revise → next iteration (≤3)", size=13, color=C["red_s"])# ===========================================================================-# SECTION 2 — MAIN 15-STEP OpenClaw FLOW (hero, vertical lane A)+# SECTION 2 — MAIN 15-STEP JARVIS-AGENT FLOW (hero, vertical lane A)# ===========================================================================mx = 60 # lane-A leftmw = 560 # step rect width@@ -162,7 +162,7 @@ ex = 660 # evidence box leftey0 = 560 # first step ystep_h = 110gap = 95-text("flow_h", mx, ey0 - 40, "② DIE OpenClaw-LOGIK — Spawn bis APPROVED (file:line)",+text("flow_h", mx, ey0 - 40, "② DIE JARVIS-AGENT-LOGIK — Spawn bis APPROVED (file:line)",size=24, color=C["ink"], bold_family=True)steps = [diff --git a/scripts/_capture_obsidian_printwindow.py b/scripts/_capture_obsidian_printwindow.pyindex e7812c5964..f1bb9f5eb4 100644--- a/scripts/_capture_obsidian_printwindow.py+++ b/scripts/_capture_obsidian_printwindow.py@@ -3,7 +3,7 @@PrintWindow with PW_RENDERFULLCONTENT (0x2) captures a window's pixelcontent regardless of z-order or foreground state. This bypasses thefocus-stealing problem we hit when capturing via pyautogui.screenshot()-from a OpenClaw session.+from a Jarvis-Agent session.Flow:1. Kill all Obsidian instances.diff --git a/scripts/_final_validate_1_dispatch.py b/scripts/_final_validate_1_dispatch.pyindex 58bbef65d5..23eabc4fc3 100644--- a/scripts/_final_validate_1_dispatch.py+++ b/scripts/_final_validate_1_dispatch.py@@ -1,6 +1,6 @@"""Final-Validation Probe 1/5 — Dispatch Path.-Read-only verification of the OpenClaw worker dispatch pipeline.+Read-only verification of the Jarvis-Agent worker dispatch pipeline.Does NOT mutate production code. Prints PASS/FAIL per assertion.Stages validated:@@ -78,7 +78,7 @@ def probe_stage_2_action_verbs() -> list[tuple[str, bool, bool]]:"Analysiere die letzte Mission","Schreib mir eine Zusammenfassung","Mach einen Screenshot vom Code", # i18n-allow: simulated German user utterance under test (force-spawn router probe)- "Spawn einen OpenClaw-Agenten",+ "Spawn einen Jarvis-Agenten",]rows: list[tuple[str, bool, bool]] = []for p in prompts:@@ -177,7 +177,7 @@ def main() -> int:print("=== Stage 1: Whisper-FP seeds ===")p1, n1, r1 = probe_stage_1_whisper_seeds()- print(f" {p1}/{n1} seeds correctly filtered (force_openclaw -> False)")+ print(f" {p1}/{n1} seeds correctly filtered (force_spawn -> False)")for seed, ok in r1:if not ok:fails.append(f"seed {seed!r} did NOT filter to False")@@ -188,8 +188,8 @@ def main() -> int:print("\n=== Stage 2a: action-verb prompts (strict mode default) ===")rows = probe_stage_2_action_verbs()for prompt, observed, want_spawn in rows:- # Expectation: only "Spawn einen OpenClaw-Agenten" returns True in strict.- is_spawn_phrase = "spawn" in prompt.lower() or "openclaw" in prompt.lower()+ # Expectation: only "Spawn einen Jarvis-Agenten" returns True in strict.+ is_spawn_phrase = "spawn" in prompt.lower() or "jarvis-agent" in prompt.lower()expected = is_spawn_phraseok = observed is expectedprint(f" {'PASS' if ok else 'FAIL'} {prompt!r} -> {observed} (expected={expected})")diff --git a/scripts/auto-push-eod.ps1 b/scripts/auto-push-eod.ps1index d9313b574f..fd704018ac 100644--- a/scripts/auto-push-eod.ps1+++ b/scripts/auto-push-eod.ps1@@ -10,11 +10,11 @@Working-Tree-Dirty-Check: Bricht ab, damit nichts uncommittetes "verpasst" wird.Detached HEAD wird uebersprungen. main wird nie geforced.- Phase 11 (Welle 4 Backstop): Worktrees mit aktiver OpenClaw-Session+ Phase 11 (Welle 4 Backstop): Worktrees mit aktiver Jarvis-Agent-Session(.openclaw_state\<sid>\openclaw_state\ existiert UND wurde innerhalb der- letzten -OpenClawActiveMinutes geaendert) werden vom Push uebersprungen,+ letzten -JarvisAgentActiveMinutes geaendert) werden vom Push uebersprungen,damit ein laufender Sub-Agent nicht mitten im Run einen halben Stand- upstream pusht. Mit -OpenClawWarnOnly wird nur gewarnt statt geskippt.+ upstream pusht. Mit -JarvisAgentWarnOnly wird nur gewarnt statt geskippt..PARAMETER RepoRootPfad zum Repo-Root. Default: C:\Users\Administrator\Desktop\Personal Jarvis@@ -22,13 +22,13 @@.PARAMETER DryRunNur loggen was getan wuerde, kein Tag und kein Push.-.PARAMETER OpenClawActiveMinutes- Schwellwert fuer "aktive" OpenClaw-Session: Modify-Time juenger als X- Minuten. Default: 30. Setze auf 0 um die OpenClaw-Erkennung komplett zu+.PARAMETER JarvisAgentActiveMinutes+ Schwellwert fuer "aktive" Jarvis-Agent-Session: Modify-Time juenger als X+ Minuten. Default: 30. Setze auf 0 um die Jarvis-Agent-Erkennung komplett zudeaktivieren.-.PARAMETER OpenClawWarnOnly- Wenn gesetzt: aktive OpenClaw-Worktrees werden nur geloggt aber trotzdem+.PARAMETER JarvisAgentWarnOnly+ Wenn gesetzt: aktive Jarvis-Agent-Worktrees werden nur geloggt aber trotzdemgepusht. Ohne diesen Switch wird der zugehoerige Branch geskippt..EXAMPLE@@ -42,8 +42,8 @@param([string]$RepoRoot = "C:\Users\Administrator\Desktop\Personal Jarvis",[switch]$DryRun,- [int]$OpenClawActiveMinutes = 30,- [switch]$OpenClawWarnOnly+ [int]$JarvisAgentActiveMinutes = 30,+ [switch]$JarvisAgentWarnOnly)# ---------- Setup ----------@@ -138,20 +138,20 @@ if ([string]::IsNullOrWhiteSpace($branchInfo)) {$branches = $branchInfo -split "`n" | Where-Object { $_ -match '\S' }Write-Log "INFO" "$($branches.Count) lokale Branch(es) gefunden."-# ---------- Phase-11-Backstop: aktive OpenClaw-Worktrees ----------+# ---------- Phase-11-Backstop: aktive Jarvis-Agent-Worktrees ----------# Idee: Worktree hat .openclaw_state\<session>\openclaw_state\ und das Verzeichnis-# wurde innerhalb der letzten -OpenClawActiveMinutes geaendert (Subprocess+# wurde innerhalb der letzten -JarvisAgentActiveMinutes geaendert (Subprocess# schreibt run.log + state-Files). Solange die Welle laeuft, wuerde ein push# einen halben Stand spiegeln. Skip dieser Branches (oder warn-only).-$openclawBlockedBranches = @{} # Hash<branch, reason>-if ($OpenClawActiveMinutes -gt 0) {- Write-Log "INFO" "OpenClaw-Backstop aktiv (Schwelle: $OpenClawActiveMinutes Min, Modus: $(if ($OpenClawWarnOnly) { 'WARN' } else { 'SKIP' }))."+$jarvisAgentBlockedBranches = @{} # Hash<branch, reason>+if ($JarvisAgentActiveMinutes -gt 0) {+ Write-Log "INFO" "Jarvis-Agent-Backstop aktiv (Schwelle: $JarvisAgentActiveMinutes Min, Modus: $(if ($JarvisAgentWarnOnly) { 'WARN' } else { 'SKIP' }))."$worktreeRaw = git worktree list --porcelain 2>$nullif (-not [string]::IsNullOrWhiteSpace($worktreeRaw)) {$worktreeLines = $worktreeRaw -split "`n"- $cutoff = (Get-Date).AddMinutes(-1 * $OpenClawActiveMinutes)+ $cutoff = (Get-Date).AddMinutes(-1 * $JarvisAgentActiveMinutes)$currentWt = ""$currentBranch = ""@@ -175,7 +175,7 @@ if ($OpenClawActiveMinutes -gt 0) {Select-Object -First 1if ($recentSession) {$age = [int]((Get-Date) - $recentSession.LastWriteTime).TotalMinutes- $openclawBlockedBranches[$currentBranch] = "active OpenClaw session in $($recentSession.Name) (age: ${age}min, worktree: $currentWt)"+ $jarvisAgentBlockedBranches[$currentBranch] = "active Jarvis-Agent session in $($recentSession.Name) (age: ${age}min, worktree: $currentWt)"}}}@@ -192,18 +192,18 @@ if ($OpenClawActiveMinutes -gt 0) {Select-Object -First 1if ($recentSession) {$age = [int]((Get-Date) - $recentSession.LastWriteTime).TotalMinutes- $openclawBlockedBranches[$currentBranch] = "active OpenClaw session in $($recentSession.Name) (age: ${age}min, worktree: $currentWt)"+ $jarvisAgentBlockedBranches[$currentBranch] = "active Jarvis-Agent session in $($recentSession.Name) (age: ${age}min, worktree: $currentWt)"}}}}- if ($openclawBlockedBranches.Count -eq 0) {- Write-Log "INFO" "Keine aktiven OpenClaw-Sessions in irgendeinem Worktree gefunden."+ if ($jarvisAgentBlockedBranches.Count -eq 0) {+ Write-Log "INFO" "Keine aktiven Jarvis-Agent-Sessions in irgendeinem Worktree gefunden."} else {- $action = if ($OpenClawWarnOnly) { "WARN" } else { "SKIP" }- foreach ($entry in $openclawBlockedBranches.GetEnumerator()) {- Write-Log $action "OpenClaw-Backstop trifft Branch '$($entry.Key)': $($entry.Value)"+ $action = if ($JarvisAgentWarnOnly) { "WARN" } else { "SKIP" }+ foreach ($entry in $jarvisAgentBlockedBranches.GetEnumerator()) {+ Write-Log $action "Jarvis-Agent-Backstop trifft Branch '$($entry.Key)': $($entry.Value)"}}}@@ -220,9 +220,9 @@ foreach ($entry in $branches) {Write-Log "INFO" "--- Branch: $branch (upstream: $(if ($hasUpstream) { $upstream } else { '<none>' })) ---"- # Phase-11-Backstop: aktive OpenClaw-Session?- if ($openclawBlockedBranches.ContainsKey($branch) -and -not $OpenClawWarnOnly) {- Write-Log "SKIP" "Branch '$branch' uebersprungen: $($openclawBlockedBranches[$branch])"+ # Phase-11-Backstop: aktive Jarvis-Agent-Session?+ if ($jarvisAgentBlockedBranches.ContainsKey($branch) -and -not $JarvisAgentWarnOnly) {+ Write-Log "SKIP" "Branch '$branch' uebersprungen: $($jarvisAgentBlockedBranches[$branch])"$skippedCount++continue}diff --git a/scripts/ci/privacy_gate/references/distribution-denylist.txt b/scripts/ci/privacy_gate/references/distribution-denylist.txtindex be233ad956..4652654d6f 100644--- a/scripts/ci/privacy_gate/references/distribution-denylist.txt+++ b/scripts/ci/privacy_gate/references/distribution-denylist.txt@@ -8,7 +8,7 @@# Lines starting with `#` and blank lines are ignored.## Decision record: the maintainer chose (2026-05-31) to keep withholding all-# internal dev docs (OpenClaw-style clean public repo) and the encrypted+# internal dev docs (an openclaw-style clean public repo) and the encrypted# release-signing keys (forks generate their own). Confirmed in the skill plan.## WHY a denylist and not the file diff: the working↔dist diff conflates two@@ -17,7 +17,7 @@# features (e.g. jarvis/state/*, jarvis/plugins/tts/fallback_tts.py). So those# are intentionally ABSENT from this list and ship normally.-# --- .claude/ contributor toolchain: SHIP it (like OpenClaw), minus the+# --- .claude/ contributor toolchain: SHIP it (like the openclaw repo), minus the# maintainer's own release skill (2026-06-27, revised) ----------------------# REVISED: .claude/ is Claude-Code CONTRIBUTOR tooling — subagent definitions,# slash-commands, dev skills — exactly what a fork needs to keep developing with@@ -117,7 +117,7 @@ docs/diagnostics/**# --- Contributor doctrine now SHIPS (2026-06-27, revised) -------------------# CLAUDE.md + CLOUD.md are the binding contributor doctrine. AGENTS.md is the# byte-twin of CLAUDE.md and ALREADY ships, so withholding CLAUDE.md was-# inconsistent — its content was public via AGENTS.md regardless. OpenClaw ships+# inconsistent — its content was public via AGENTS.md regardless. the openclaw repo ships# CLAUDE.md + VISION.md publicly; matching that is the professional move. Both# are depersonalized by the PII scrub on the way out. (docs/BUGS.md stays# withheld below — that is the internal bug log, not contributor doctrine.)@@ -132,8 +132,8 @@ docs/diagnostics/**docs/adr/0009-self-healing-worker-critic.mddocs/agents-self-verification.mddocs/deepgram-stt-research-2026-05-20.md-docs/openclaw-bridge.md-docs/openclaw-spawn-failure-analysis-2026-05-18.md+docs/jarvis-agents-bridge.md+docs/jarvis-agents-spawn-failure-analysis-2026-05-18.mddocs/persona-audit-report.mddocs/persona-refactor-results.mddocs/persona-research.md@@ -141,7 +141,7 @@ docs/phase1c-test-results.mddocs/phase2-integration-test-results.mddocs/phase6-handoff-2026-04-26.mddocs/phase6-test-report.md-docs/spike-results-openclaw.md+docs/spike-results-jarvis-agents.mddocs/voice-acceptance-brief.mddocs/bug-019-spawn-failure-report.htmldocs/jarvis-board/PHASE_A_DONE.mddiff --git a/scripts/latency_bench.py b/scripts/latency_bench.pyindex 5939162373..ab3bc431c2 100644--- a/scripts/latency_bench.py+++ b/scripts/latency_bench.py@@ -3,7 +3,7 @@Feeds simulated utterances through the router-tier BrainManager (text-in, noSTT/TTS/audio) and reports p50/p95 for the metrics we can measure offline:- * router_decision_ms — ``_should_force_openclaw`` heuristic (SLO: p95 < 150ms)+ * router_decision_ms — ``_should_force_spawn`` heuristic (SLO: p95 < 150ms)* prompt_build_ms — ``_build_system_prompt`` assembly cost (Wave 2 target)* prompt_chars — system-prompt size (cache-friendliness proxy)* first_token_ms — real provider TTFT (``--real`` only)@@ -154,11 +154,7 @@ async def run_bench(runs: int, real: bool, assert_slo: bool) -> int:by_cat_ttft: dict[str, list[float]] = {}for cat, text in SCENARIOS:- # Renamed during the 2026-06-10 spawn-threshold rework; support both- # so the bench keeps running on older checkouts.- decide = (- getattr(bm, "_should_force_spawn", None) or bm._should_force_openclaw- )+ decide = bm._should_force_spawndecision_ms: list[float] = []for _ in range(max(runs * 5, 50)):t = time.perf_counter_ns()diff --git a/scripts/personjarvis-flow.excalidraw b/scripts/personjarvis-flow.excalidrawindex 57bc9ca946..960d501882 100644--- a/scripts/personjarvis-flow.excalidraw+++ b/scripts/personjarvis-flow.excalidraw@@ -1 +1 @@-{"type": "excalidraw", "version": 2, "source": "https://excalidraw.com", "elements": [{"id": "title", "type": "text", "x": 540, "y": 20, "width": 247.50000000000003, "height": 37.5, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1035898143, "versionNonce": 291833999, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Personal Jarvis", "fontSize": 30, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 24, "containerId": null, "originalText": "Personal Jarvis", "lineHeight": 1.25, "autoResize": true}, {"id": "sub", "type": "text", "x": 540, "y": 58, "width": 396.00000000000006, "height": 22.5, "angle": 0, "strokeColor": "#757575", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 450459021, "versionNonce": 146195636, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Person <--> Jarvis — end-to-end loop", "fontSize": 18, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 14, "containerId": null, "originalText": "Person <--> Jarvis — end-to-end loop", "lineHeight": 1.25, "autoResize": true}, {"id": "voice_zone", "type": "rectangle", "x": 40, "y": 120, "width": 820, "height": 200, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#dbe4ff", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 35, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 441016250, "versionNonce": 636419868, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "voice_zone_lbl", "type": "text", "x": 56, "y": 128, "width": 132.0, "height": 20.0, "angle": 0, "strokeColor": "#2563eb", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 796761051, "versionNonce": 1639974735, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "L1/L2 Voice In", "fontSize": 16, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 12, "containerId": null, "originalText": "L1/L2 Voice In", "lineHeight": 1.25, "autoResize": true}, {"id": "person_head", "type": "ellipse", "x": 80, "y": 160, "width": 50, "height": 50, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 111062814, "versionNonce": 1788523447, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "person_body", "type": "rectangle", "x": 75, "y": 212, "width": 60, "height": 60, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1060838011, "versionNonce": 48383127, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "person_lbl", "type": "text", "x": 70, "y": 280, "width": 59.400000000000006, "height": 22.5, "angle": 0, "strokeColor": "#1e3a5f", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 504693198, "versionNonce": 1435142308, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "PERSON", "fontSize": 18, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 14, "containerId": null, "originalText": "PERSON", "lineHeight": 1.25, "autoResize": true}, {"id": "a_voice", "type": "arrow", "x": 140, "y": 210, "width": 80, "height": 0, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1828415646, "versionNonce": 1013260904, "version": 1, "isDeleted": false, "boundElements": [{"id": "a_voice_lbl_1", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [80, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "a_voice_lbl_1", "type": "text", "x": 122.25, "y": 201.25, "width": 115.50000000000001, "height": 17.5, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 988444015, "versionNonce": 385963192, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "\"Hey Jarvis...\"", "fontSize": 14, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 11, "containerId": "a_voice", "originalText": "\"Hey Jarvis...\"", "lineHeight": 1.25, "autoResize": true}, {"id": "mic", "type": "ellipse", "x": 230, "y": 175, "width": 70, "height": 70, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 999435369, "versionNonce": 36083376, "version": 1, "isDeleted": false, "boundElements": [{"id": "mic_lbl_2", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "mic_lbl_2", "type": "text", "x": 251.8, "y": 200.0, "width": 26.400000000000002, "height": 20.0, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 576732267, "versionNonce": 1108955521, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Mic", "fontSize": 16, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "mic", "originalText": "Mic", "lineHeight": 1.25, "autoResize": true}, {"id": "mic_sub", "type": "text", "x": 228, "y": 250, "width": 39.6, "height": 15.0, "angle": 0, "strokeColor": "#757575", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1655893445, "versionNonce": 723164754, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "WASAPI", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "WASAPI", "lineHeight": 1.25, "autoResize": true}, {"id": "a_wake", "type": "arrow", "x": 300, "y": 210, "width": 50, "height": 0, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1126311980, "versionNonce": 617754236, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [50, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "wake", "type": "rectangle", "x": 355, "y": 175, "width": 140, "height": 70, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1706539748, "versionNonce": 1884566919, "version": 1, "isDeleted": false, "boundElements": [{"id": "wake_lbl_3", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "wake_lbl_3", "type": "text", "x": 406.3, "y": 199.375, "width": 37.400000000000006, "height": 21.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1798897006, "versionNonce": 459409974, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Wake", "fontSize": 17, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 13, "containerId": "wake", "originalText": "Wake", "lineHeight": 1.25, "autoResize": true}, {"id": "wake_sub", "type": "text", "x": 368, "y": 250, "width": 79.2, "height": 15.0, "angle": 0, "strokeColor": "#757575", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1404309049, "versionNonce": 299079711, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "openWakeWord", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "openWakeWord", "lineHeight": 1.25, "autoResize": true}, {"id": "a_vad", "type": "arrow", "x": 495, "y": 210, "width": 40, "height": 0, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 996058332, "versionNonce": 200919270, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [40, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "vad", "type": "rectangle", "x": 540, "y": 175, "width": 120, "height": 70, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1872623914, "versionNonce": 1642099999, "version": 1, "isDeleted": false, "boundElements": [{"id": "vad_lbl_4", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "vad_lbl_4", "type": "text", "x": 585.975, "y": 199.375, "width": 28.05, "height": 21.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1101454286, "versionNonce": 1338242260, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "VAD", "fontSize": 17, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 13, "containerId": "vad", "originalText": "VAD", "lineHeight": 1.25, "autoResize": true}, {"id": "vad_sub", "type": "text", "x": 562, "y": 250, "width": 39.6, "height": 15.0, "angle": 0, "strokeColor": "#757575", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1071986583, "versionNonce": 1136870074, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Silero", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "Silero", "lineHeight": 1.25, "autoResize": true}, {"id": "a_stt", "type": "arrow", "x": 660, "y": 210, "width": 40, "height": 0, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1642160923, "versionNonce": 694929628, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [40, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "stt", "type": "rectangle", "x": 705, "y": 175, "width": 140, "height": 70, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 536745179, "versionNonce": 1347370934, "version": 1, "isDeleted": false, "boundElements": [{"id": "stt_lbl_5", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "stt_lbl_5", "type": "text", "x": 760.975, "y": 199.375, "width": 28.05, "height": 21.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1392002485, "versionNonce": 1650249656, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "STT", "fontSize": 17, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 13, "containerId": "stt", "originalText": "STT", "lineHeight": 1.25, "autoResize": true}, {"id": "stt_sub", "type": "text", "x": 712, "y": 250, "width": 112.2, "height": 15.0, "angle": 0, "strokeColor": "#757575", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 727318925, "versionNonce": 326094930, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Whisper / Chirp 2", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "Whisper / Chirp 2", "lineHeight": 1.25, "autoResize": true}, {"id": "brain_zone", "type": "rectangle", "x": 900, "y": 120, "width": 520, "height": 380, "angle": 0, "strokeColor": "#8b5cf6", "backgroundColor": "#e5dbff", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 30, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 413635344, "versionNonce": 632685561, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "brain_zone_lbl", "type": "text", "x": 916, "y": 128, "width": 237.60000000000002, "height": 20.0, "angle": 0, "strokeColor": "#6d28d9", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1936144396, "versionNonce": 1997966274, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "L3/L4/L6 Routing + Brain", "fontSize": 16, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 12, "containerId": null, "originalText": "L3/L4/L6 Routing + Brain", "lineHeight": 1.25, "autoResize": true}, {"id": "a_router", "type": "arrow", "x": 845, "y": 210, "width": 75, "height": 0, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1850904896, "versionNonce": 1513610631, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [75, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "router", "type": "diamond", "x": 920, "y": 160, "width": 160, "height": 110, "angle": 0, "strokeColor": "#f59e0b", "backgroundColor": "#fff3bf", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 864492914, "versionNonce": 499356768, "version": 1, "isDeleted": false, "boundElements": [{"id": "router_lbl_6", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "router_lbl_6", "type": "text", "x": 971.95, "y": 204.375, "width": 56.1, "height": 21.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 216761282, "versionNonce": 1934155201, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Router", "fontSize": 17, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 13, "containerId": "router", "originalText": "Router", "lineHeight": 1.25, "autoResize": true}, {"id": "router_sub", "type": "text", "x": 912, "y": 275, "width": 171.60000000000002, "height": 15.0, "angle": 0, "strokeColor": "#757575", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1511126579, "versionNonce": 1980927332, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "smalltalk / action / spawn", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "smalltalk / action / spawn", "lineHeight": 1.25, "autoResize": true}, {"id": "a_ack", "type": "arrow", "x": 1000, "y": 160, "width": 70, "height": -50, "angle": 0, "strokeColor": "#22c55e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 34741795, "versionNonce": 1319761815, "version": 1, "isDeleted": false, "boundElements": [{"id": "a_ack_lbl_7", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [70, -50]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "a_ack_lbl_7", "type": "text", "x": 1024.275, "y": 126.875, "width": 21.450000000000003, "height": 16.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 649880522, "versionNonce": 1220401151, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "<2s", "fontSize": 13, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 10, "containerId": "a_ack", "originalText": "<2s", "lineHeight": 1.25, "autoResize": true}, {"id": "ack", "type": "rectangle", "x": 1080, "y": 80, "width": 180, "height": 56, "angle": 0, "strokeColor": "#22c55e", "backgroundColor": "#b2f2bb", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 570663566, "versionNonce": 1256073890, "version": 1, "isDeleted": false, "boundElements": [{"id": "ack_lbl_8", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "ack_lbl_8", "type": "text", "x": 1130.4, "y": 98.0, "width": 79.2, "height": 20.0, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 942007411, "versionNonce": 18125619, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Ack-Brain", "fontSize": 16, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "ack", "originalText": "Ack-Brain", "lineHeight": 1.25, "autoResize": true}, {"id": "ack_sub", "type": "text", "x": 1085, "y": 140, "width": 184.8, "height": 15.0, "angle": 0, "strokeColor": "#15803d", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 438355779, "versionNonce": 690438792, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "\"Sofort, Sir.\" (Flash Lite)", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "\"Sofort, Sir.\" (Flash Lite)", "lineHeight": 1.25, "autoResize": true}, {"id": "a_deep", "type": "arrow", "x": 1080, "y": 215, "width": 80, "height": 0, "angle": 0, "strokeColor": "#8b5cf6", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1399073747, "versionNonce": 360224142, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [80, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "deep", "type": "rectangle", "x": 1165, "y": 175, "width": 220, "height": 75, "angle": 0, "strokeColor": "#8b5cf6", "backgroundColor": "#d0bfff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 144131485, "versionNonce": 1987733504, "version": 1, "isDeleted": false, "boundElements": [{"id": "deep_lbl_9", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "deep_lbl_9", "type": "text", "x": 1225.5, "y": 201.25, "width": 99.00000000000001, "height": 22.5, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1919014694, "versionNonce": 1328128030, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Deep-Brain", "fontSize": 18, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 14, "containerId": "deep", "originalText": "Deep-Brain", "lineHeight": 1.25, "autoResize": true}, {"id": "deep_sub", "type": "text", "x": 1180, "y": 255, "width": 217.8, "height": 15.0, "angle": 0, "strokeColor": "#6d28d9", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 875025604, "versionNonce": 471091544, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Gemini 3.1 Pro / fallback chain", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "Gemini 3.1 Pro / fallback chain", "lineHeight": 1.25, "autoResize": true}, {"id": "a_force", "type": "arrow", "x": 1000, "y": 270, "width": 175, "height": 75, "angle": 0, "strokeColor": "#ef4444", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "dashed", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 527698531, "versionNonce": 553765625, "version": 1, "isDeleted": false, "boundElements": [{"id": "a_force_lbl_10", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [175, 75]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "a_force_lbl_10", "type": "text", "x": 1048.175, "y": 299.375, "width": 78.65, "height": 16.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1703770322, "versionNonce": 1123539884, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "force-spawn", "fontSize": 13, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 10, "containerId": "a_force", "originalText": "force-spawn", "lineHeight": 1.25, "autoResize": true}, {"id": "act_zone", "type": "rectangle", "x": 1180, "y": 320, "width": 280, "height": 280, "angle": 0, "strokeColor": "#22c55e", "backgroundColor": "#d3f9d8", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 30, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1993625842, "versionNonce": 1581230807, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "act_zone_lbl", "type": "text", "x": 1196, "y": 328, "width": 202.4, "height": 20.0, "angle": 0, "strokeColor": "#15803d", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 256768065, "versionNonce": 1692267325, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "L5/L6 Harness + Worker", "fontSize": 16, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 12, "containerId": null, "originalText": "L5/L6 Harness + Worker", "lineHeight": 1.25, "autoResize": true}, {"id": "harness", "type": "rectangle", "x": 1200, "y": 355, "width": 240, "height": 58, "angle": 0, "strokeColor": "#f59e0b", "backgroundColor": "#ffd8a8", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1552665926, "versionNonce": 1121253734, "version": 1, "isDeleted": false, "boundElements": [{"id": "harness_lbl_11", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "harness_lbl_11", "type": "text", "x": 1254.0, "y": 374.625, "width": 132.0, "height": 18.75, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1381904270, "versionNonce": 1506284676, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Harness Dispatch", "fontSize": 15, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "harness", "originalText": "Harness Dispatch", "lineHeight": 1.25, "autoResize": true}, {"id": "harness_sub", "type": "text", "x": 1205, "y": 417, "width": 191.4, "height": 15.0, "angle": 0, "strokeColor": "#9a5030", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1744393763, "versionNonce": 1827829078, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "OpenClaw / Codex / MCP", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "OpenClaw / Codex / MCP", "lineHeight": 1.25, "autoResize": true}, {"id": "a_worker", "type": "arrow", "x": 1320, "y": 435, "width": 0, "height": 35, "angle": 0, "strokeColor": "#22c55e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 485331837, "versionNonce": 515452302, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [0, 35]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "worker", "type": "rectangle", "x": 1200, "y": 470, "width": 240, "height": 58, "angle": 0, "strokeColor": "#22c55e", "backgroundColor": "#b2f2bb", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1796716353, "versionNonce": 496276683, "version": 1, "isDeleted": false, "boundElements": [{"id": "worker_lbl_12", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "worker_lbl_12", "type": "text", "x": 1249.875, "y": 489.625, "width": 140.25, "height": 18.75, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1462044443, "versionNonce": 1930898486, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Worker (isolated)", "fontSize": 15, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "worker", "originalText": "Worker (isolated)", "lineHeight": 1.25, "autoResize": true}, {"id": "worker_sub", "type": "text", "x": 1208, "y": 531, "width": 165.0, "height": 15.0, "angle": 0, "strokeColor": "#15803d", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 431227038, "versionNonce": 1241387739, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "git worktree + Job Object", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "git worktree + Job Object", "lineHeight": 1.25, "autoResize": true}, {"id": "a_critic", "type": "arrow", "x": 1320, "y": 548, "width": 0, "height": 24, "angle": 0, "strokeColor": "#22c55e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 52637666, "versionNonce": 1605485797, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [0, 24]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "critic", "type": "rectangle", "x": 1200, "y": 572, "width": 240, "height": 56, "angle": 0, "strokeColor": "#f59e0b", "backgroundColor": "#fff3bf", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 828790365, "versionNonce": 1104416357, "version": 1, "isDeleted": false, "boundElements": [{"id": "critic_lbl_13", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "critic_lbl_13", "type": "text", "x": 1237.5, "y": 590.625, "width": 165.0, "height": 18.75, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 325511964, "versionNonce": 338121208, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Critic-Loop (max 3)", "fontSize": 15, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "critic", "originalText": "Critic-Loop (max 3)", "lineHeight": 1.25, "autoResize": true}, {"id": "a_kontrol", "type": "arrow", "x": 1200, "y": 600, "width": -150, "height": 40, "angle": 0, "strokeColor": "#8b5cf6", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 682399477, "versionNonce": 1455429581, "version": 1, "isDeleted": false, "boundElements": [{"id": "a_kontrol_lbl_14", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [-150, 40]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "a_kontrol_lbl_14", "type": "text", "x": 1099.975, "y": 611.875, "width": 50.050000000000004, "height": 16.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1264582078, "versionNonce": 56315324, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "verdict", "fontSize": 13, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 10, "containerId": "a_kontrol", "originalText": "verdict", "lineHeight": 1.25, "autoResize": true}, {"id": "kontrol", "type": "rectangle", "x": 860, "y": 625, "width": 195, "height": 58, "angle": 0, "strokeColor": "#8b5cf6", "backgroundColor": "#d0bfff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1451590214, "versionNonce": 1470739660, "version": 1, "isDeleted": false, "boundElements": [{"id": "kontrol_lbl_15", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "kontrol_lbl_15", "type": "text", "x": 903.875, "y": 644.625, "width": 107.25000000000001, "height": 18.75, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 500065380, "versionNonce": 1650660163, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Kontrollierer", "fontSize": 15, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "kontrol", "originalText": "Kontrollierer", "lineHeight": 1.25, "autoResize": true}, {"id": "kontrol_sub", "type": "text", "x": 876, "y": 686, "width": 112.2, "height": 15.0, "angle": 0, "strokeColor": "#6d28d9", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1957161091, "versionNonce": 1499934974, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "signs summary_de", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "signs summary_de", "lineHeight": 1.25, "autoResize": true}, {"id": "a_scrub", "type": "arrow", "x": 860, "y": 655, "width": -100, "height": 0, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1555962453, "versionNonce": 1206094878, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [-100, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "scrub", "type": "rectangle", "x": 620, "y": 625, "width": 140, "height": 58, "angle": 0, "strokeColor": "#ef4444", "backgroundColor": "#ffc9c9", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1216775606, "versionNonce": 579660987, "version": 1, "isDeleted": false, "boundElements": [{"id": "scrub_lbl_16", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "scrub_lbl_16", "type": "text", "x": 668.0, "y": 644.0, "width": 44.0, "height": 20.0, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 595963902, "versionNonce": 439579616, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Scrub", "fontSize": 16, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "scrub", "originalText": "Scrub", "lineHeight": 1.25, "autoResize": true}, {"id": "scrub_sub", "type": "text", "x": 628, "y": 686, "width": 92.4, "height": 15.0, "angle": 0, "strokeColor": "#b91c1c", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 389994942, "versionNonce": 264378929, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "regex (no LLM)", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "regex (no LLM)", "lineHeight": 1.25, "autoResize": true}, {"id": "out_zone", "type": "rectangle", "x": 40, "y": 600, "width": 600, "height": 110, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#dbe4ff", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 35, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 959638990, "versionNonce": 668770832, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "out_zone_lbl", "type": "text", "x": 56, "y": 608, "width": 140.8, "height": 20.0, "angle": 0, "strokeColor": "#2563eb", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 644282638, "versionNonce": 247731141, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "L1/L2 Voice Out", "fontSize": 16, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 12, "containerId": null, "originalText": "L1/L2 Voice Out", "lineHeight": 1.25, "autoResize": true}, {"id": "a_tts", "type": "arrow", "x": 620, "y": 655, "width": -110, "height": 0, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 235039593, "versionNonce": 1092373906, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [-110, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "tts", "type": "rectangle", "x": 370, "y": 625, "width": 140, "height": 58, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1890490451, "versionNonce": 1187914137, "version": 1, "isDeleted": false, "boundElements": [{"id": "tts_lbl_17", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "tts_lbl_17", "type": "text", "x": 425.975, "y": 643.375, "width": 28.05, "height": 21.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 717527740, "versionNonce": 1976031003, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "TTS", "fontSize": 17, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 13, "containerId": "tts", "originalText": "TTS", "lineHeight": 1.25, "autoResize": true}, {"id": "tts_sub", "type": "text", "x": 372, "y": 686, "width": 165.0, "height": 15.0, "angle": 0, "strokeColor": "#2563eb", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1344215577, "versionNonce": 361715385, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Gemini Flash / Grok Voice", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "Gemini Flash / Grok Voice", "lineHeight": 1.25, "autoResize": true}, {"id": "a_spk", "type": "arrow", "x": 370, "y": 655, "width": -90, "height": 0, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 557473474, "versionNonce": 1439714579, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [-90, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "speaker", "type": "ellipse", "x": 230, "y": 625, "width": 50, "height": 58, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 129651365, "versionNonce": 671850735, "version": 1, "isDeleted": false, "boundElements": [{"id": "speaker_lbl_18", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "speaker_lbl_18", "type": "text", "x": 242.625, "y": 644.625, "width": 24.750000000000004, "height": 18.75, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1787410533, "versionNonce": 826897120, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Spk", "fontSize": 15, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "speaker", "originalText": "Spk", "lineHeight": 1.25, "autoResize": true}, {"id": "a_back", "type": "arrow", "x": 230, "y": 655, "width": -90, "height": -380, "angle": 0, "strokeColor": "#22c55e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "dashed", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1897352235, "versionNonce": 46718728, "version": 1, "isDeleted": false, "boundElements": [{"id": "a_back_lbl_19", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [-50, -200], [-90, -380]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "a_back_lbl_19", "type": "text", "x": 145.675, "y": 456.875, "width": 78.65, "height": 16.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 726643444, "versionNonce": 191765144, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "hears reply", "fontSize": 13, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 10, "containerId": "a_back", "originalText": "hears reply", "lineHeight": 1.25, "autoResize": true}, {"id": "mem_zone", "type": "rectangle", "x": 40, "y": 760, "width": 1420, "height": 120, "angle": 0, "strokeColor": "#f59e0b", "backgroundColor": "#fff3bf", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 25, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 92172447, "versionNonce": 1706158201, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "mem_zone_lbl", "type": "text", "x": 56, "y": 768, "width": 387.75000000000006, "height": 18.75, "angle": 0, "strokeColor": "#9a5030", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1659623530, "versionNonce": 85397664, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Context Tier (feeds Brain via Trigger-Matcher)", "fontSize": 15, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 12, "containerId": null, "originalText": "Context Tier (feeds Brain via Trigger-Matcher)", "lineHeight": 1.25, "autoResize": true}, {"id": "wiki", "type": "rectangle", "x": 80, "y": 800, "width": 280, "height": 56, "angle": 0, "strokeColor": "#06b6d4", "backgroundColor": "#c3fae8", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1696300656, "versionNonce": 1778001113, "version": 1, "isDeleted": false, "boundElements": [{"id": "wiki_lbl_20", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "wiki_lbl_20", "type": "text", "x": 154.0, "y": 818.625, "width": 132.0, "height": 18.75, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1535836467, "versionNonce": 1394514396, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Wiki (long-term)", "fontSize": 15, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "wiki", "originalText": "Wiki (long-term)", "lineHeight": 1.25, "autoResize": true}, {"id": "aware", "type": "rectangle", "x": 400, "y": 800, "width": 280, "height": 56, "angle": 0, "strokeColor": "#06b6d4", "backgroundColor": "#c3fae8", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1632272456, "versionNonce": 163473186, "version": 1, "isDeleted": false, "boundElements": [{"id": "aware_lbl_21", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "aware_lbl_21", "type": "text", "x": 474.0, "y": 818.625, "width": 132.0, "height": 18.75, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1801397090, "versionNonce": 1720839680, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Awareness A0..A5", "fontSize": 15, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "aware", "originalText": "Awareness A0..A5", "lineHeight": 1.25, "autoResize": true}, {"id": "bus", "type": "rectangle", "x": 720, "y": 800, "width": 340, "height": 56, "angle": 0, "strokeColor": "#ec4899", "backgroundColor": "#eebefa", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1427700410, "versionNonce": 224746743, "version": 1, "isDeleted": false, "boundElements": [{"id": "bus_lbl_22", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "bus_lbl_22", "type": "text", "x": 759.1, "y": 819.25, "width": 261.8, "height": 17.5, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 65200016, "versionNonce": 931144229, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "EventBus (frozen events, trace_id)", "fontSize": 14, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 11, "containerId": "bus", "originalText": "EventBus (frozen events, trace_id)", "lineHeight": 1.25, "autoResize": true}, {"id": "risk", "type": "rectangle", "x": 1100, "y": 800, "width": 360, "height": 56, "angle": 0, "strokeColor": "#ef4444", "backgroundColor": "#ffc9c9", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 725777299, "versionNonce": 291185768, "version": 1, "isDeleted": false, "boundElements": [{"id": "risk_lbl_23", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "risk_lbl_23", "type": "text", "x": 1126.0, "y": 819.25, "width": 308.0, "height": 17.5, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 927852206, "versionNonce": 957850646, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Risk Tier: safe / monitor / ask / block", "fontSize": 14, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 11, "containerId": "risk", "originalText": "Risk Tier: safe / monitor / ask / block", "lineHeight": 1.25, "autoResize": true}, {"id": "a_ctx1", "type": "arrow", "x": 1275, "y": 250, "width": 0, "height": 545, "angle": 0, "strokeColor": "#06b6d4", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "dashed", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1682905558, "versionNonce": 1279539811, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [0, 545]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": "arrow", "endArrowhead": null, "elbowed": false}, {"id": "a_ctx2", "type": "arrow", "x": 220, "y": 830, "width": 0, "height": -575, "angle": 0, "strokeColor": "#06b6d4", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "dashed", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 112884314, "versionNonce": 1524390063, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [0, -575]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}], "appState": {"gridSize": null, "viewBackgroundColor": "#ffffff"}, "files": {}}\ No newline at end of file+{"type": "excalidraw", "version": 2, "source": "https://excalidraw.com", "elements": [{"id": "title", "type": "text", "x": 540, "y": 20, "width": 247.50000000000003, "height": 37.5, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1035898143, "versionNonce": 291833999, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Personal Jarvis", "fontSize": 30, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 24, "containerId": null, "originalText": "Personal Jarvis", "lineHeight": 1.25, "autoResize": true}, {"id": "sub", "type": "text", "x": 540, "y": 58, "width": 396.00000000000006, "height": 22.5, "angle": 0, "strokeColor": "#757575", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 450459021, "versionNonce": 146195636, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Person <--> Jarvis — end-to-end loop", "fontSize": 18, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 14, "containerId": null, "originalText": "Person <--> Jarvis — end-to-end loop", "lineHeight": 1.25, "autoResize": true}, {"id": "voice_zone", "type": "rectangle", "x": 40, "y": 120, "width": 820, "height": 200, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#dbe4ff", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 35, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 441016250, "versionNonce": 636419868, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "voice_zone_lbl", "type": "text", "x": 56, "y": 128, "width": 132.0, "height": 20.0, "angle": 0, "strokeColor": "#2563eb", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 796761051, "versionNonce": 1639974735, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "L1/L2 Voice In", "fontSize": 16, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 12, "containerId": null, "originalText": "L1/L2 Voice In", "lineHeight": 1.25, "autoResize": true}, {"id": "person_head", "type": "ellipse", "x": 80, "y": 160, "width": 50, "height": 50, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 111062814, "versionNonce": 1788523447, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "person_body", "type": "rectangle", "x": 75, "y": 212, "width": 60, "height": 60, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1060838011, "versionNonce": 48383127, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "person_lbl", "type": "text", "x": 70, "y": 280, "width": 59.400000000000006, "height": 22.5, "angle": 0, "strokeColor": "#1e3a5f", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 504693198, "versionNonce": 1435142308, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "PERSON", "fontSize": 18, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 14, "containerId": null, "originalText": "PERSON", "lineHeight": 1.25, "autoResize": true}, {"id": "a_voice", "type": "arrow", "x": 140, "y": 210, "width": 80, "height": 0, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1828415646, "versionNonce": 1013260904, "version": 1, "isDeleted": false, "boundElements": [{"id": "a_voice_lbl_1", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [80, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "a_voice_lbl_1", "type": "text", "x": 122.25, "y": 201.25, "width": 115.50000000000001, "height": 17.5, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 988444015, "versionNonce": 385963192, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "\"Hey Jarvis...\"", "fontSize": 14, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 11, "containerId": "a_voice", "originalText": "\"Hey Jarvis...\"", "lineHeight": 1.25, "autoResize": true}, {"id": "mic", "type": "ellipse", "x": 230, "y": 175, "width": 70, "height": 70, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 999435369, "versionNonce": 36083376, "version": 1, "isDeleted": false, "boundElements": [{"id": "mic_lbl_2", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "mic_lbl_2", "type": "text", "x": 251.8, "y": 200.0, "width": 26.400000000000002, "height": 20.0, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 576732267, "versionNonce": 1108955521, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Mic", "fontSize": 16, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "mic", "originalText": "Mic", "lineHeight": 1.25, "autoResize": true}, {"id": "mic_sub", "type": "text", "x": 228, "y": 250, "width": 39.6, "height": 15.0, "angle": 0, "strokeColor": "#757575", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1655893445, "versionNonce": 723164754, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "WASAPI", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "WASAPI", "lineHeight": 1.25, "autoResize": true}, {"id": "a_wake", "type": "arrow", "x": 300, "y": 210, "width": 50, "height": 0, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1126311980, "versionNonce": 617754236, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [50, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "wake", "type": "rectangle", "x": 355, "y": 175, "width": 140, "height": 70, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1706539748, "versionNonce": 1884566919, "version": 1, "isDeleted": false, "boundElements": [{"id": "wake_lbl_3", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "wake_lbl_3", "type": "text", "x": 406.3, "y": 199.375, "width": 37.400000000000006, "height": 21.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1798897006, "versionNonce": 459409974, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Wake", "fontSize": 17, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 13, "containerId": "wake", "originalText": "Wake", "lineHeight": 1.25, "autoResize": true}, {"id": "wake_sub", "type": "text", "x": 368, "y": 250, "width": 79.2, "height": 15.0, "angle": 0, "strokeColor": "#757575", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1404309049, "versionNonce": 299079711, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "openWakeWord", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "openWakeWord", "lineHeight": 1.25, "autoResize": true}, {"id": "a_vad", "type": "arrow", "x": 495, "y": 210, "width": 40, "height": 0, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 996058332, "versionNonce": 200919270, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [40, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "vad", "type": "rectangle", "x": 540, "y": 175, "width": 120, "height": 70, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1872623914, "versionNonce": 1642099999, "version": 1, "isDeleted": false, "boundElements": [{"id": "vad_lbl_4", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "vad_lbl_4", "type": "text", "x": 585.975, "y": 199.375, "width": 28.05, "height": 21.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1101454286, "versionNonce": 1338242260, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "VAD", "fontSize": 17, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 13, "containerId": "vad", "originalText": "VAD", "lineHeight": 1.25, "autoResize": true}, {"id": "vad_sub", "type": "text", "x": 562, "y": 250, "width": 39.6, "height": 15.0, "angle": 0, "strokeColor": "#757575", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1071986583, "versionNonce": 1136870074, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Silero", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "Silero", "lineHeight": 1.25, "autoResize": true}, {"id": "a_stt", "type": "arrow", "x": 660, "y": 210, "width": 40, "height": 0, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1642160923, "versionNonce": 694929628, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [40, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "stt", "type": "rectangle", "x": 705, "y": 175, "width": 140, "height": 70, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 536745179, "versionNonce": 1347370934, "version": 1, "isDeleted": false, "boundElements": [{"id": "stt_lbl_5", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "stt_lbl_5", "type": "text", "x": 760.975, "y": 199.375, "width": 28.05, "height": 21.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1392002485, "versionNonce": 1650249656, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "STT", "fontSize": 17, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 13, "containerId": "stt", "originalText": "STT", "lineHeight": 1.25, "autoResize": true}, {"id": "stt_sub", "type": "text", "x": 712, "y": 250, "width": 112.2, "height": 15.0, "angle": 0, "strokeColor": "#757575", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 727318925, "versionNonce": 326094930, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Whisper / Chirp 2", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "Whisper / Chirp 2", "lineHeight": 1.25, "autoResize": true}, {"id": "brain_zone", "type": "rectangle", "x": 900, "y": 120, "width": 520, "height": 380, "angle": 0, "strokeColor": "#8b5cf6", "backgroundColor": "#e5dbff", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 30, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 413635344, "versionNonce": 632685561, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "brain_zone_lbl", "type": "text", "x": 916, "y": 128, "width": 237.60000000000002, "height": 20.0, "angle": 0, "strokeColor": "#6d28d9", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1936144396, "versionNonce": 1997966274, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "L3/L4/L6 Routing + Brain", "fontSize": 16, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 12, "containerId": null, "originalText": "L3/L4/L6 Routing + Brain", "lineHeight": 1.25, "autoResize": true}, {"id": "a_router", "type": "arrow", "x": 845, "y": 210, "width": 75, "height": 0, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1850904896, "versionNonce": 1513610631, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [75, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "router", "type": "diamond", "x": 920, "y": 160, "width": 160, "height": 110, "angle": 0, "strokeColor": "#f59e0b", "backgroundColor": "#fff3bf", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 864492914, "versionNonce": 499356768, "version": 1, "isDeleted": false, "boundElements": [{"id": "router_lbl_6", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "router_lbl_6", "type": "text", "x": 971.95, "y": 204.375, "width": 56.1, "height": 21.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 216761282, "versionNonce": 1934155201, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Router", "fontSize": 17, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 13, "containerId": "router", "originalText": "Router", "lineHeight": 1.25, "autoResize": true}, {"id": "router_sub", "type": "text", "x": 912, "y": 275, "width": 171.60000000000002, "height": 15.0, "angle": 0, "strokeColor": "#757575", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1511126579, "versionNonce": 1980927332, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "smalltalk / action / spawn", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "smalltalk / action / spawn", "lineHeight": 1.25, "autoResize": true}, {"id": "a_ack", "type": "arrow", "x": 1000, "y": 160, "width": 70, "height": -50, "angle": 0, "strokeColor": "#22c55e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 34741795, "versionNonce": 1319761815, "version": 1, "isDeleted": false, "boundElements": [{"id": "a_ack_lbl_7", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [70, -50]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "a_ack_lbl_7", "type": "text", "x": 1024.275, "y": 126.875, "width": 21.450000000000003, "height": 16.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 649880522, "versionNonce": 1220401151, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "<2s", "fontSize": 13, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 10, "containerId": "a_ack", "originalText": "<2s", "lineHeight": 1.25, "autoResize": true}, {"id": "ack", "type": "rectangle", "x": 1080, "y": 80, "width": 180, "height": 56, "angle": 0, "strokeColor": "#22c55e", "backgroundColor": "#b2f2bb", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 570663566, "versionNonce": 1256073890, "version": 1, "isDeleted": false, "boundElements": [{"id": "ack_lbl_8", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "ack_lbl_8", "type": "text", "x": 1130.4, "y": 98.0, "width": 79.2, "height": 20.0, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 942007411, "versionNonce": 18125619, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Ack-Brain", "fontSize": 16, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "ack", "originalText": "Ack-Brain", "lineHeight": 1.25, "autoResize": true}, {"id": "ack_sub", "type": "text", "x": 1085, "y": 140, "width": 184.8, "height": 15.0, "angle": 0, "strokeColor": "#15803d", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 438355779, "versionNonce": 690438792, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "\"Sofort, Sir.\" (Flash Lite)", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "\"Sofort, Sir.\" (Flash Lite)", "lineHeight": 1.25, "autoResize": true}, {"id": "a_deep", "type": "arrow", "x": 1080, "y": 215, "width": 80, "height": 0, "angle": 0, "strokeColor": "#8b5cf6", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1399073747, "versionNonce": 360224142, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [80, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "deep", "type": "rectangle", "x": 1165, "y": 175, "width": 220, "height": 75, "angle": 0, "strokeColor": "#8b5cf6", "backgroundColor": "#d0bfff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 144131485, "versionNonce": 1987733504, "version": 1, "isDeleted": false, "boundElements": [{"id": "deep_lbl_9", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "deep_lbl_9", "type": "text", "x": 1225.5, "y": 201.25, "width": 99.00000000000001, "height": 22.5, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1919014694, "versionNonce": 1328128030, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Deep-Brain", "fontSize": 18, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 14, "containerId": "deep", "originalText": "Deep-Brain", "lineHeight": 1.25, "autoResize": true}, {"id": "deep_sub", "type": "text", "x": 1180, "y": 255, "width": 217.8, "height": 15.0, "angle": 0, "strokeColor": "#6d28d9", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 875025604, "versionNonce": 471091544, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Gemini 3.1 Pro / fallback chain", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "Gemini 3.1 Pro / fallback chain", "lineHeight": 1.25, "autoResize": true}, {"id": "a_force", "type": "arrow", "x": 1000, "y": 270, "width": 175, "height": 75, "angle": 0, "strokeColor": "#ef4444", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "dashed", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 527698531, "versionNonce": 553765625, "version": 1, "isDeleted": false, "boundElements": [{"id": "a_force_lbl_10", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [175, 75]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "a_force_lbl_10", "type": "text", "x": 1048.175, "y": 299.375, "width": 78.65, "height": 16.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1703770322, "versionNonce": 1123539884, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "force-spawn", "fontSize": 13, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 10, "containerId": "a_force", "originalText": "force-spawn", "lineHeight": 1.25, "autoResize": true}, {"id": "act_zone", "type": "rectangle", "x": 1180, "y": 320, "width": 280, "height": 280, "angle": 0, "strokeColor": "#22c55e", "backgroundColor": "#d3f9d8", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 30, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1993625842, "versionNonce": 1581230807, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "act_zone_lbl", "type": "text", "x": 1196, "y": 328, "width": 202.4, "height": 20.0, "angle": 0, "strokeColor": "#15803d", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 256768065, "versionNonce": 1692267325, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "L5/L6 Harness + Worker", "fontSize": 16, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 12, "containerId": null, "originalText": "L5/L6 Harness + Worker", "lineHeight": 1.25, "autoResize": true}, {"id": "harness", "type": "rectangle", "x": 1200, "y": 355, "width": 240, "height": 58, "angle": 0, "strokeColor": "#f59e0b", "backgroundColor": "#ffd8a8", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1552665926, "versionNonce": 1121253734, "version": 1, "isDeleted": false, "boundElements": [{"id": "harness_lbl_11", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "harness_lbl_11", "type": "text", "x": 1254.0, "y": 374.625, "width": 132.0, "height": 18.75, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1381904270, "versionNonce": 1506284676, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Harness Dispatch", "fontSize": 15, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "harness", "originalText": "Harness Dispatch", "lineHeight": 1.25, "autoResize": true}, {"id": "harness_sub", "type": "text", "x": 1205, "y": 417, "width": 191.4, "height": 15.0, "angle": 0, "strokeColor": "#9a5030", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1744393763, "versionNonce": 1827829078, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Jarvis-Agent / Codex / MCP", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "Jarvis-Agent / Codex / MCP", "lineHeight": 1.25, "autoResize": true}, {"id": "a_worker", "type": "arrow", "x": 1320, "y": 435, "width": 0, "height": 35, "angle": 0, "strokeColor": "#22c55e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 485331837, "versionNonce": 515452302, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [0, 35]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "worker", "type": "rectangle", "x": 1200, "y": 470, "width": 240, "height": 58, "angle": 0, "strokeColor": "#22c55e", "backgroundColor": "#b2f2bb", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1796716353, "versionNonce": 496276683, "version": 1, "isDeleted": false, "boundElements": [{"id": "worker_lbl_12", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "worker_lbl_12", "type": "text", "x": 1249.875, "y": 489.625, "width": 140.25, "height": 18.75, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1462044443, "versionNonce": 1930898486, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Worker (isolated)", "fontSize": 15, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "worker", "originalText": "Worker (isolated)", "lineHeight": 1.25, "autoResize": true}, {"id": "worker_sub", "type": "text", "x": 1208, "y": 531, "width": 165.0, "height": 15.0, "angle": 0, "strokeColor": "#15803d", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 431227038, "versionNonce": 1241387739, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "git worktree + Job Object", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "git worktree + Job Object", "lineHeight": 1.25, "autoResize": true}, {"id": "a_critic", "type": "arrow", "x": 1320, "y": 548, "width": 0, "height": 24, "angle": 0, "strokeColor": "#22c55e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 52637666, "versionNonce": 1605485797, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [0, 24]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "critic", "type": "rectangle", "x": 1200, "y": 572, "width": 240, "height": 56, "angle": 0, "strokeColor": "#f59e0b", "backgroundColor": "#fff3bf", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 828790365, "versionNonce": 1104416357, "version": 1, "isDeleted": false, "boundElements": [{"id": "critic_lbl_13", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "critic_lbl_13", "type": "text", "x": 1237.5, "y": 590.625, "width": 165.0, "height": 18.75, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 325511964, "versionNonce": 338121208, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Critic-Loop (max 3)", "fontSize": 15, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "critic", "originalText": "Critic-Loop (max 3)", "lineHeight": 1.25, "autoResize": true}, {"id": "a_kontrol", "type": "arrow", "x": 1200, "y": 600, "width": -150, "height": 40, "angle": 0, "strokeColor": "#8b5cf6", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 682399477, "versionNonce": 1455429581, "version": 1, "isDeleted": false, "boundElements": [{"id": "a_kontrol_lbl_14", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [-150, 40]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "a_kontrol_lbl_14", "type": "text", "x": 1099.975, "y": 611.875, "width": 50.050000000000004, "height": 16.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1264582078, "versionNonce": 56315324, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "verdict", "fontSize": 13, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 10, "containerId": "a_kontrol", "originalText": "verdict", "lineHeight": 1.25, "autoResize": true}, {"id": "kontrol", "type": "rectangle", "x": 860, "y": 625, "width": 195, "height": 58, "angle": 0, "strokeColor": "#8b5cf6", "backgroundColor": "#d0bfff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1451590214, "versionNonce": 1470739660, "version": 1, "isDeleted": false, "boundElements": [{"id": "kontrol_lbl_15", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "kontrol_lbl_15", "type": "text", "x": 903.875, "y": 644.625, "width": 107.25000000000001, "height": 18.75, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 500065380, "versionNonce": 1650660163, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Kontrollierer", "fontSize": 15, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "kontrol", "originalText": "Kontrollierer", "lineHeight": 1.25, "autoResize": true}, {"id": "kontrol_sub", "type": "text", "x": 876, "y": 686, "width": 112.2, "height": 15.0, "angle": 0, "strokeColor": "#6d28d9", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1957161091, "versionNonce": 1499934974, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "signs summary_de", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "signs summary_de", "lineHeight": 1.25, "autoResize": true}, {"id": "a_scrub", "type": "arrow", "x": 860, "y": 655, "width": -100, "height": 0, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1555962453, "versionNonce": 1206094878, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [-100, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "scrub", "type": "rectangle", "x": 620, "y": 625, "width": 140, "height": 58, "angle": 0, "strokeColor": "#ef4444", "backgroundColor": "#ffc9c9", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1216775606, "versionNonce": 579660987, "version": 1, "isDeleted": false, "boundElements": [{"id": "scrub_lbl_16", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "scrub_lbl_16", "type": "text", "x": 668.0, "y": 644.0, "width": 44.0, "height": 20.0, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 595963902, "versionNonce": 439579616, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Scrub", "fontSize": 16, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "scrub", "originalText": "Scrub", "lineHeight": 1.25, "autoResize": true}, {"id": "scrub_sub", "type": "text", "x": 628, "y": 686, "width": 92.4, "height": 15.0, "angle": 0, "strokeColor": "#b91c1c", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 389994942, "versionNonce": 264378929, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "regex (no LLM)", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "regex (no LLM)", "lineHeight": 1.25, "autoResize": true}, {"id": "out_zone", "type": "rectangle", "x": 40, "y": 600, "width": 600, "height": 110, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#dbe4ff", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 35, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 959638990, "versionNonce": 668770832, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "out_zone_lbl", "type": "text", "x": 56, "y": 608, "width": 140.8, "height": 20.0, "angle": 0, "strokeColor": "#2563eb", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 644282638, "versionNonce": 247731141, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "L1/L2 Voice Out", "fontSize": 16, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 12, "containerId": null, "originalText": "L1/L2 Voice Out", "lineHeight": 1.25, "autoResize": true}, {"id": "a_tts", "type": "arrow", "x": 620, "y": 655, "width": -110, "height": 0, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 235039593, "versionNonce": 1092373906, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [-110, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "tts", "type": "rectangle", "x": 370, "y": 625, "width": 140, "height": 58, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1890490451, "versionNonce": 1187914137, "version": 1, "isDeleted": false, "boundElements": [{"id": "tts_lbl_17", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "tts_lbl_17", "type": "text", "x": 425.975, "y": 643.375, "width": 28.05, "height": 21.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 717527740, "versionNonce": 1976031003, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "TTS", "fontSize": 17, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 13, "containerId": "tts", "originalText": "TTS", "lineHeight": 1.25, "autoResize": true}, {"id": "tts_sub", "type": "text", "x": 372, "y": 686, "width": 165.0, "height": 15.0, "angle": 0, "strokeColor": "#2563eb", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1344215577, "versionNonce": 361715385, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Gemini Flash / Grok Voice", "fontSize": 12, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 9, "containerId": null, "originalText": "Gemini Flash / Grok Voice", "lineHeight": 1.25, "autoResize": true}, {"id": "a_spk", "type": "arrow", "x": 370, "y": 655, "width": -90, "height": 0, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 557473474, "versionNonce": 1439714579, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [-90, 0]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "speaker", "type": "ellipse", "x": 230, "y": 625, "width": 50, "height": 58, "angle": 0, "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 129651365, "versionNonce": 671850735, "version": 1, "isDeleted": false, "boundElements": [{"id": "speaker_lbl_18", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "speaker_lbl_18", "type": "text", "x": 242.625, "y": 644.625, "width": 24.750000000000004, "height": 18.75, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1787410533, "versionNonce": 826897120, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Spk", "fontSize": 15, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "speaker", "originalText": "Spk", "lineHeight": 1.25, "autoResize": true}, {"id": "a_back", "type": "arrow", "x": 230, "y": 655, "width": -90, "height": -380, "angle": 0, "strokeColor": "#22c55e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "dashed", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1897352235, "versionNonce": 46718728, "version": 1, "isDeleted": false, "boundElements": [{"id": "a_back_lbl_19", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [-50, -200], [-90, -380]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}, {"id": "a_back_lbl_19", "type": "text", "x": 145.675, "y": 456.875, "width": 78.65, "height": 16.25, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 726643444, "versionNonce": 191765144, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "hears reply", "fontSize": 13, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 10, "containerId": "a_back", "originalText": "hears reply", "lineHeight": 1.25, "autoResize": true}, {"id": "mem_zone", "type": "rectangle", "x": 40, "y": 760, "width": 1420, "height": 120, "angle": 0, "strokeColor": "#f59e0b", "backgroundColor": "#fff3bf", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 25, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 92172447, "versionNonce": 1706158201, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "mem_zone_lbl", "type": "text", "x": 56, "y": 768, "width": 387.75000000000006, "height": 18.75, "angle": 0, "strokeColor": "#9a5030", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1659623530, "versionNonce": 85397664, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Context Tier (feeds Brain via Trigger-Matcher)", "fontSize": 15, "fontFamily": 5, "textAlign": "left", "verticalAlign": "top", "baseline": 12, "containerId": null, "originalText": "Context Tier (feeds Brain via Trigger-Matcher)", "lineHeight": 1.25, "autoResize": true}, {"id": "wiki", "type": "rectangle", "x": 80, "y": 800, "width": 280, "height": 56, "angle": 0, "strokeColor": "#06b6d4", "backgroundColor": "#c3fae8", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1696300656, "versionNonce": 1778001113, "version": 1, "isDeleted": false, "boundElements": [{"id": "wiki_lbl_20", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "wiki_lbl_20", "type": "text", "x": 154.0, "y": 818.625, "width": 132.0, "height": 18.75, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1535836467, "versionNonce": 1394514396, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Wiki (long-term)", "fontSize": 15, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "wiki", "originalText": "Wiki (long-term)", "lineHeight": 1.25, "autoResize": true}, {"id": "aware", "type": "rectangle", "x": 400, "y": 800, "width": 280, "height": 56, "angle": 0, "strokeColor": "#06b6d4", "backgroundColor": "#c3fae8", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1632272456, "versionNonce": 163473186, "version": 1, "isDeleted": false, "boundElements": [{"id": "aware_lbl_21", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "aware_lbl_21", "type": "text", "x": 474.0, "y": 818.625, "width": 132.0, "height": 18.75, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1801397090, "versionNonce": 1720839680, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Awareness A0..A5", "fontSize": 15, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 12, "containerId": "aware", "originalText": "Awareness A0..A5", "lineHeight": 1.25, "autoResize": true}, {"id": "bus", "type": "rectangle", "x": 720, "y": 800, "width": 340, "height": 56, "angle": 0, "strokeColor": "#ec4899", "backgroundColor": "#eebefa", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 1427700410, "versionNonce": 224746743, "version": 1, "isDeleted": false, "boundElements": [{"id": "bus_lbl_22", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "bus_lbl_22", "type": "text", "x": 759.1, "y": 819.25, "width": 261.8, "height": 17.5, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 65200016, "versionNonce": 931144229, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "EventBus (frozen events, trace_id)", "fontSize": 14, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 11, "containerId": "bus", "originalText": "EventBus (frozen events, trace_id)", "lineHeight": 1.25, "autoResize": true}, {"id": "risk", "type": "rectangle", "x": 1100, "y": 800, "width": 360, "height": 56, "angle": 0, "strokeColor": "#ef4444", "backgroundColor": "#ffc9c9", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": {"type": 3}, "seed": 725777299, "versionNonce": 291185768, "version": 1, "isDeleted": false, "boundElements": [{"id": "risk_lbl_23", "type": "text"}], "updated": 1779121693853, "link": null, "locked": false, "index": null}, {"id": "risk_lbl_23", "type": "text", "x": 1126.0, "y": 819.25, "width": 308.0, "height": 17.5, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 2, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 927852206, "versionNonce": 957850646, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "text": "Risk Tier: safe / monitor / ask / block", "fontSize": 14, "fontFamily": 5, "textAlign": "center", "verticalAlign": "middle", "baseline": 11, "containerId": "risk", "originalText": "Risk Tier: safe / monitor / ask / block", "lineHeight": 1.25, "autoResize": true}, {"id": "a_ctx1", "type": "arrow", "x": 1275, "y": 250, "width": 0, "height": 545, "angle": 0, "strokeColor": "#06b6d4", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "dashed", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 1682905558, "versionNonce": 1279539811, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [0, 545]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": "arrow", "endArrowhead": null, "elbowed": false}, {"id": "a_ctx2", "type": "arrow", "x": 220, "y": 830, "width": 0, "height": -575, "angle": 0, "strokeColor": "#06b6d4", "backgroundColor": "transparent", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "dashed", "roughness": 1, "opacity": 100, "groupIds": [], "frameId": null, "roundness": null, "seed": 112884314, "versionNonce": 1524390063, "version": 1, "isDeleted": false, "boundElements": [], "updated": 1779121693853, "link": null, "locked": false, "index": null, "points": [[0, 0], [0, -575]], "lastCommittedPoint": null, "startBinding": null, "endBinding": null, "startArrowhead": null, "endArrowhead": "arrow", "elbowed": false}], "appState": {"gridSize": null, "viewBackgroundColor": "#ffffff"}, "files": {}}\ No newline at end of filediff --git a/scripts/smoke_phase6_p2.py b/scripts/smoke_phase6_p2.pyindex 2d19cfec0b..73133928bc 100644--- a/scripts/smoke_phase6_p2.py+++ b/scripts/smoke_phase6_p2.py@@ -10,8 +10,9 @@ Verifies the T1+T2 API surface in a realistic mini run:it's a no-op, the smoke still runs (worker spawns normally, no reaping).5. `ClaudeDirectWorker.spawn(prompt, ..., max_turns=3)` with a cost cap (--max-turnsis cost guardrail #1 per the research doc §B). The stream is drained until the- `result` event. (OpenClawWorker was removed in the OpenClaw/UFO3 removal —- `f9fa1c2f`; ClaudeDirectWorker is the production claude-CLI worker.)+ `result` event. (The legacy worker class was removed in the+ Jarvis-Agent/UFO3 removal — `f9fa1c2f`; ClaudeDirectWorker is the+ production claude-CLI worker.)6. Verify `(workspace / 'hello.txt').exists()` AND content == 'world'(with/without a trailing newline).7. Verify via `psutil.pid_exists(pid)` that the worker subprocess terminateddiff --git a/scripts/smoke_phase6_p3_real.py b/scripts/smoke_phase6_p3_real.pyindex ab2095798e..8ca9744301 100644--- a/scripts/smoke_phase6_p3_real.py+++ b/scripts/smoke_phase6_p3_real.py@@ -1,6 +1,6 @@"""Smoke test phase 3 — REAL critic call (costs ~$0.20).-End-to-end test with a real `openclaw agent --json-schema ...` subprocess.+End-to-end test with a real `claude --output-format json --json-schema ...` subprocess.Skips cleanly when the claude CLI is not installed/authenticated(same pattern as smoke_phase6_p2.py). Exit 0 on success OR SKIP,exit 1 only on a real failure.@@ -76,7 +76,7 @@ def claude_available() -> bool:async def smoke_real() -> int:if not claude_available():print(f"{SKIP} claude CLI not in PATH — real smoke test skipped.")- print(f" Install: https://docs.claude.com/en/docs/openclaw")+ print(f" Install: https://code.claude.com/docs/en/overview")return 0has_api_key = bool(os.environ.get("ANTHROPIC_API_KEY"))diff --git a/scripts/test-auto-push-eod-worker-state.ps1 b/scripts/test-auto-push-eod-worker-state.ps1new file mode 100644index 0000000000..d0cbe69cc3--- /dev/null+++ b/scripts/test-auto-push-eod-worker-state.ps1@@ -0,0 +1,129 @@+<#+.SYNOPSIS+ Smoke-Test fuer den Jarvis-Agent-Backstop in auto-push-eod.ps1 (Phase 11).++.DESCRIPTION+ Baut ein temporaeres Mini-Repo mit zwei Worktrees, davon einer mit+ .openclaw_state\<sid>\ Verzeichnis. Ruft auto-push-eod.ps1 -DryRun auf+ und prueft per Log-Output, dass der Jarvis-Agent-Branch korrekt geskippt+ wird (bzw. mit -JarvisAgentWarnOnly nur warnen).++ Idempotent: temp-Repo wird vor + nach dem Test geloescht.++.EXAMPLE+ powershell -NoProfile -ExecutionPolicy Bypass -File scripts/test-auto-push-eod-worker-state.ps1++.NOTES+ Kein git-push wird tatsaechlich ausgefuehrt (DryRun + lokaler Origin).+#>++[CmdletBinding()]+param()++$ErrorActionPreference = "Continue"+$failures = @()++function Assert-Contains {+ param([string]$Haystack, [string]$Needle, [string]$What)+ if ($Haystack -notmatch [regex]::Escape($Needle)) {+ $script:failures += "FAIL: $What -- Output enthaelt '$Needle' nicht."+ Write-Host "FAIL: $What -- '$Needle' nicht im Output." -ForegroundColor Red+ } else {+ Write-Host "OK: $What" -ForegroundColor Green+ }+}++function Assert-NotContains {+ param([string]$Haystack, [string]$Needle, [string]$What)+ if ($Haystack -match [regex]::Escape($Needle)) {+ $script:failures += "FAIL: $What -- Output enthaelt unerwartet '$Needle'."+ Write-Host "FAIL: $What -- '$Needle' wurde nicht erwartet." -ForegroundColor Red+ } else {+ Write-Host "OK: $What" -ForegroundColor Green+ }+}++# --- Setup: temp-Repo ---+$repoRoot = Join-Path $env:TEMP "jarvis-eod-test-$([guid]::NewGuid().ToString('N').Substring(0,8))"+$wtClean = Join-Path $env:TEMP "jarvis-eod-test-wt-clean-$([guid]::NewGuid().ToString('N').Substring(0,8))"+$wtOC = Join-Path $env:TEMP "jarvis-eod-test-wt-oc-$([guid]::NewGuid().ToString('N').Substring(0,8))"++try {+ Write-Host "=== SETUP ===" -ForegroundColor Cyan+ Write-Host "Repo-Root: $repoRoot"+ New-Item -ItemType Directory -Path $repoRoot -Force | Out-Null+ Set-Location -LiteralPath $repoRoot+ git init -b main 2>&1 | Out-Null+ git config user.email "[email protected]"+ git config user.name "Test"+ "x" | Out-File -FilePath "README.md" -Encoding utf8+ # logs/ + .openclaw_state/ ignorieren, sonst loest der dirty-tree-check aus+ "logs/`n.openclaw_state/`n" | Out-File -FilePath ".gitignore" -Encoding utf8+ git add README.md .gitignore 2>&1 | Out-Null+ git commit -m "init" 2>&1 | Out-Null++ # Branches anlegen+ git branch feature/clean 2>&1 | Out-Null+ git branch feature/jarvis-agent-active 2>&1 | Out-Null++ # Worktrees auschecken+ git worktree add $wtClean feature/clean 2>&1 | Out-Null+ git worktree add $wtOC feature/jarvis-agent-active 2>&1 | Out-Null++ # In wtOC eine "aktive" Jarvis-Agent-Session simulieren+ $stateDir = Join-Path $wtOC ".openclaw_state\sess-deadbeef"+ New-Item -ItemType Directory -Path $stateDir -Force | Out-Null+ "fake jarvis-agent run" | Out-File -FilePath (Join-Path $stateDir "run.log") -Encoding utf8++ # --- Test 1: SKIP-Modus (Default) ---+ Write-Host "`n=== TEST 1: SKIP-Modus ===" -ForegroundColor Cyan+ $scriptPath = Resolve-Path (Join-Path $PSScriptRoot "auto-push-eod.ps1")+ $output1 = & powershell -NoProfile -ExecutionPolicy Bypass -File $scriptPath -RepoRoot $repoRoot -DryRun -JarvisAgentActiveMinutes 60 2>&1 | Out-String++ Assert-Contains $output1 "Jarvis-Agent-Backstop aktiv" "Backstop wird aktiviert"+ Assert-Contains $output1 "Jarvis-Agent-Backstop trifft Branch 'feature/jarvis-agent-active'" "Aktiver Jarvis-Agent-Worktree wird erkannt"+ Assert-Contains $output1 "uebersprungen" "Branch wird geskippt"+ Assert-NotContains $output1 "Branch 'feature/clean' uebersprungen" "Clean-Branch wird NICHT geskippt"+ Assert-Contains $output1 "[dry-run] git push -u origin feature/clean" "Clean-Branch landet in dry-run-Push-Liste"++ # --- Test 2: WARN-only-Modus ---+ Write-Host "`n=== TEST 2: WARN-only-Modus ===" -ForegroundColor Cyan+ $output2 = & powershell -NoProfile -ExecutionPolicy Bypass -File $scriptPath -RepoRoot $repoRoot -DryRun -JarvisAgentActiveMinutes 60 -JarvisAgentWarnOnly 2>&1 | Out-String++ Assert-Contains $output2 "Modus: WARN" "WARN-only-Modus wird angezeigt"+ Assert-Contains $output2 "[WARN]" "WARN-Log-Level wird verwendet"+ # Im WARN-only-Modus sollte der Branch trotzdem in der dry-run-Liste auftauchen+ Assert-Contains $output2 "[dry-run] git push" "Branch wird trotzdem zur Push-Liste hinzugefuegt"++ # --- Test 3: Disabled (JarvisAgentActiveMinutes=0) ---+ Write-Host "`n=== TEST 3: Disabled-Modus ===" -ForegroundColor Cyan+ $output3 = & powershell -NoProfile -ExecutionPolicy Bypass -File $scriptPath -RepoRoot $repoRoot -DryRun -JarvisAgentActiveMinutes 0 2>&1 | Out-String++ Assert-NotContains $output3 "Jarvis-Agent-Backstop aktiv" "Backstop ist deaktiviert"+ Assert-NotContains $output3 "Jarvis-Agent-Backstop trifft" "Keine Branches werden geblockt"++ # --- Summary ---+ Write-Host "`n=== SUMMARY ===" -ForegroundColor Cyan+ if ($failures.Count -eq 0) {+ Write-Host "ALLE 3 TESTS GRUEN" -ForegroundColor Green+ exit 0+ } else {+ foreach ($f in $failures) { Write-Host $f -ForegroundColor Red }+ Write-Host "$($failures.Count) FEHLER" -ForegroundColor Red+ exit 1+ }++} finally {+ # --- Cleanup ---+ Write-Host "`n=== CLEANUP ===" -ForegroundColor Cyan+ Set-Location -LiteralPath $env:TEMP+ foreach ($p in @($wtClean, $wtOC, $repoRoot)) {+ if (Test-Path -LiteralPath $p) {+ try {+ Remove-Item -LiteralPath $p -Recurse -Force -ErrorAction SilentlyContinue+ } catch {+ Write-Host "Cleanup-Warnung: $p konnte nicht entfernt werden ($_)" -ForegroundColor Yellow+ }+ }+ }+}diff --git a/scripts/warm_keep_bench.py b/scripts/warm_keep_bench.pyindex 1a50efcad9..380fdd17ff 100644--- a/scripts/warm_keep_bench.py+++ b/scripts/warm_keep_bench.py@@ -1,4 +1,4 @@-"""Standalone benchmark: 3x back-to-back calls to openclaw."""+"""Standalone benchmark: 3x back-to-back calls to the Jarvis-Agent SDK brain."""import asyncioimport sysimport time@@ -9,9 +9,9 @@ OUT = Path(__file__).resolve().parent.parent / "data" / "warm_keep_bench.log"async def main():from jarvis.core.protocols import BrainMessage, BrainRequest- from jarvis.plugins.brain.openclaw_sdk import OpenClawSDKBrain+ from jarvis.plugins.brain.jarvis_agent_sdk import JarvisAgentSDKBrain- brain = OpenClawSDKBrain(model="haiku")+ brain = JarvisAgentSDKBrain(model="haiku")lines: list[str] = []async def once(txt: str) -> tuple[float, str]:diff --git a/tests/board/test_sessions_aggregation.py b/tests/board/test_sessions_aggregation.pyindex 15639d9aca..b790fb6ff0 100644--- a/tests/board/test_sessions_aggregation.py+++ b/tests/board/test_sessions_aggregation.py@@ -122,7 +122,8 @@ def test_sessions_category_counts(tmp_path: Path) -> None:"SELECT category_counts FROM daily_stats WHERE date = ?", (day_a,)).fetchone()["category_counts"])- # Day A tools: spawn_openclaw(agents), wiki-recall(knowledge), open_app(browser), click(browser)+ # Day A tools: spawn_openclaw (agents; legacy pre-rename tool name),+ # wiki-recall(knowledge), open_app(browser), click(browser)assert cats_a.get("agents") == 1assert cats_a.get("knowledge") == 1assert cats_a.get("browser") == 2diff --git a/tests/eval/review_quality/queries.json b/tests/eval/review_quality/queries.jsonindex 1d34df236b..b08df5a16d 100644--- a/tests/eval/review_quality/queries.json+++ b/tests/eval/review_quality/queries.json@@ -115,7 +115,7 @@{"id": "res-001","bucket": "research",- "task": "Fasse die letzten 5 Closed Issues im Repo 'openclaw/openclaw' zusammen, gruppiert nach Label (bug/feature/question). Liefer jedes Issue mit Titel + URL + 1-Zeilen-Kurzfassung.",+ "task": "Fasse die letzten 5 Closed Issues im Repo 'microsoft/vscode' zusammen, gruppiert nach Label (bug/feature/question). Liefer jedes Issue mit Titel + URL + 1-Zeilen-Kurzfassung.","rubric_id": "research","expected_status": "pass","expected_max_iterations": 3,diff --git a/tests/integration/test_capability_coupling_e2e.py b/tests/integration/test_capability_coupling_e2e.pyindex 51b609c48a..7ce992977a 100644--- a/tests/integration/test_capability_coupling_e2e.py+++ b/tests/integration/test_capability_coupling_e2e.py@@ -13,7 +13,7 @@ Hard-negatives (must produce UNSUPPORTED + zero phantom TTS):Hard-positives (must NOT trigger UNSUPPORTED — false-negative guard):6. "Öffne Chrome" → local_action.open_app # i18n-allow- 7. "Lies die Datei foo.txt" → harness.openclaw # i18n-allow+ 7. "Lies die Datei foo.txt" → harness.python-script # i18n-allow8. "Wie spät ist es?" → smalltalk, gate inactive # i18n-allow9. "Such im Web nach Python 3.13" → UNSUPPORTED when no web-search toolis registered (catches the manager.py:774 prompt-claim drift).@@ -147,13 +147,13 @@ def test_hard_positive_local_action_not_unsupported()-def test_hard_positive_file_ops_resolves_to_openclaw(+def test_hard_positive_file_ops_resolves_to_file_capability(seeded_registry: CapabilityRegistry,) -> None:- """'Lies die Datei foo.txt' must resolve to the openclaw harness."""+ """'Lies die Datei foo.txt' must resolve to a file-capable harness."""cap = seeded_registry.resolve_intent("Lies die Datei foo.txt") # i18n-allowassert cap is not None, "Expected a capability match for file-read"- assert "openclaw" in cap.id or "file" in cap.id or cap.source == "harness", (+ assert "file" in cap.id or cap.source == "harness", (f"Expected a file-capable harness/tool, got {cap!r}")diff --git a/tests/integration/test_dispatch_to_harness.py b/tests/integration/test_dispatch_to_harness.pyindex 0b622e56c7..fe7225c708 100644--- a/tests/integration/test_dispatch_to_harness.py+++ b/tests/integration/test_dispatch_to_harness.py@@ -35,16 +35,16 @@ def ctx():async def test_single_harness_success(ctx):bus = EventBus()mgr = _make_manager_with_fakes(bus, {- "openclaw": FakeHarness(scripted_output="Build succeeded."),+ "harness-a": FakeHarness(scripted_output="Build succeeded."),})tool = DispatchToHarnessTool(bus=bus, manager=mgr, max_output_chars=4000)result = await tool.execute(- {"harness": "openclaw", "prompt": "Check the build."},+ {"harness": "harness-a", "prompt": "Check the build."},ctx,)assert result.success is True- assert result.output["harness"] == "openclaw"+ assert result.output["harness"] == "harness-a"assert "Build succeeded." in result.output["stdout"]@@ -65,22 +65,22 @@ async def test_harness_failure_returns_error(ctx):async def test_parallel_harnesses_aggregate(ctx):bus = EventBus()mgr = _make_manager_with_fakes(bus, {- "openclaw": FakeHarness(scripted_output="claude-out"),+ "harness-a": FakeHarness(scripted_output="claude-out"),"codex": FakeHarness(scripted_output="codex-out"),})tool = DispatchToHarnessTool(bus=bus, manager=mgr)result = await tool.execute({- "harness": "openclaw", # ignored wenn parallel_harnesses gesetzt+ "harness": "harness-a", # ignored when parallel_harnesses is set"prompt": "same task",- "parallel_harnesses": ["openclaw", "codex"],+ "parallel_harnesses": ["harness-a", "codex"],},ctx,)assert result.success is Truecombined = result.output["combined"]- assert "openclaw" in combined+ assert "harness-a" in combinedassert "codex" in combinedassert "claude-out" in combinedassert "codex-out" in combined@@ -89,7 +89,7 @@ async def test_parallel_harnesses_aggregate(ctx):@pytest.mark.asyncioasync def test_missing_prompt_fails(ctx):tool = DispatchToHarnessTool(bus=EventBus(), manager=HarnessManager())- result = await tool.execute({"harness": "openclaw", "prompt": ""}, ctx)+ result = await tool.execute({"harness": "harness-a", "prompt": ""}, ctx)assert result.success is False@@ -109,7 +109,7 @@ async def test_unknown_harness_returns_neutral_error_no_inventory_leak(ctx):})tool = DispatchToHarnessTool(bus=bus, manager=mgr)- result = await tool.execute({"harness": "openclaw", "prompt": "x"}, ctx)+ result = await tool.execute({"harness": "harness-a", "prompt": "x"}, ctx)assert result.success is Falseerr = result.error or ""# No internal inventory leak — neither the registered harness names nor thediff --git a/tests/integration/test_factory_wiring.py b/tests/integration/test_factory_wiring.pyindex e8c77204ae..63346ca4d9 100644--- a/tests/integration/test_factory_wiring.py+++ b/tests/integration/test_factory_wiring.py@@ -2,7 +2,7 @@Wave-4 migration: there used to be two tiers, ``router`` and ``sub_jarvis``,and ``SUB_TOOLS`` was the tool list for the sub tier. The Sub-Jarvis tier-was replaced by the OpenClaw bridge (see docs/openclaw-bridge.md §11)+was replaced by the Jarvis-Agents bridge (see docs/jarvis-agents-bridge.md §11)— only ``router`` remains; ``SUB_TOOLS`` has been deleted.Verifies:diff --git a/tests/integration/test_jarvis_agent_active_brain.py b/tests/integration/test_jarvis_agent_active_brain.pyindex 6830a7c66c..5f09665b13 100644--- a/tests/integration/test_jarvis_agent_active_brain.py+++ b/tests/integration/test_jarvis_agent_active_brain.py@@ -28,7 +28,7 @@ from jarvis.ui.web.server import WebServer"raw,expected",[("claude-api", "claude-api"),- # OpenClaw transport, but still the Claude brain -> display as claude.+ # legacy openclaw-claude transport alias, still the Claude brain -> display as claude.("openclaw-claude", "claude-api"),(" Claude-API ", "claude-api"), # stripped + lower-cased("GEMINI", "gemini"),@@ -244,7 +244,7 @@ def test_subagent_switch_updates_status_endpoint(monkeypatch: pytest.MonkeyPatchassert active["claude-api"] is False-# --- Codex as a subagent (direct worker, not an OpenClaw MAPPINGS row) -----+# --- Codex as a subagent (direct worker, not a Jarvis-Agent MAPPINGS row) -----class _FakeCodex:@@ -268,8 +268,8 @@ def _patch_codex(monkeypatch: pytest.MonkeyPatch, *, connected: bool) -> None:monkeypatch.setattr("jarvis.codex_auth.CodexAuthService", _FakeCodex)-def test_openclaw_status_includes_codex_row(monkeypatch: pytest.MonkeyPatch) -> None:- """Codex is selectable as a subagent even though it has no OpenClaw slug."""+def test_jarvis_agent_status_includes_codex_row(monkeypatch: pytest.MonkeyPatch) -> None:+ """Codex is selectable as a subagent even though it has no Jarvis-Agent slug."""_patch_codex(monkeypatch, connected=False)cfg = load_config()data = _status(cfg)@@ -445,7 +445,7 @@ def test_subagent_switch_409_claude_api_no_key_no_oauth(assert persisted == []-# --- Antigravity as a subagent (direct GoogleCliWorker, no OpenClaw slug) ---+# --- Antigravity as a subagent (direct GoogleCliWorker, no Jarvis-Agent slug) ---# The Google sibling of Codex: a selectable subagent row backed by the Google# subscription OAuth login (no API key), so the user can run heavy tasks over# agy — exactly like picking OpenRouter/Grok/Claude, never hardcoded.@@ -477,8 +477,8 @@ def _patch_antigravity(monkeypatch: pytest.MonkeyPatch, *, connected: bool) -> N)-def test_openclaw_status_includes_antigravity_row(monkeypatch: pytest.MonkeyPatch) -> None:- """Antigravity is selectable as a subagent even though it has no OpenClaw slug."""+def test_jarvis_agent_status_includes_antigravity_row(monkeypatch: pytest.MonkeyPatch) -> None:+ """Antigravity is selectable as a subagent even though it has no Jarvis-Agent slug."""_patch_antigravity(monkeypatch, connected=False)cfg = load_config()data = _status(cfg)diff --git a/tests/integration/test_jarvis_agent_model_route.py b/tests/integration/test_jarvis_agent_model_route.pyindex 0277853149..47885d5f88 100644--- a/tests/integration/test_jarvis_agent_model_route.py+++ b/tests/integration/test_jarvis_agent_model_route.py@@ -4,7 +4,7 @@ The API-Keys "Subagent" section lets the user pin which MODEL the heavy-tasksub-agents run, separate from the router brain. Write side:``POST /api/jarvis-agent/model`` -> 3-layer ``config_writer.set_sub_jarvis_model``(TOML + config-soll + ENV — ``brain.sub_jarvis.model`` is drift-guard pinned). # i18n-allow-Read side: ``GET /api/openclaw/status`` exposes ``sub_model_override`` and the+Read side: ``GET /api/jarvis-agent/status`` exposes ``sub_model_override`` and theeffective ``model_resolved`` (override wins, else the provider's deep model)."""from __future__ import annotations@@ -55,7 +55,7 @@ def test_post_model_persists_and_updates_memory(assert body["persisted"] is Trueassert body["restart_required"] is Trueassert _no_toml_write == ["claude-sonnet-4-6"]- # In-memory cfg updated so the next /openclaw/status reflects it.+ # In-memory cfg updated so the next /jarvis-agent/status reflects it.assert server.cfg.brain.worker.model == "claude-sonnet-4-6"diff --git a/tests/integration/test_multi_spawn.py b/tests/integration/test_multi_spawn.pyindex 8fe6d3f516..bf0cd66ed4 100644--- a/tests/integration/test_multi_spawn.py+++ b/tests/integration/test_multi_spawn.py@@ -1,6 +1,6 @@"""Integration-Test: MultiSpawnTool (CL-10, Phase 5).-Uses FakeHarness instead of a real openclaw/codex CLI. HarnessManager is+Uses FakeHarness instead of a real jarvis-agent/codex CLI. HarnessManager isequipped with injected fakes so tests run deterministically andoffline."""@@ -39,16 +39,16 @@ def ctx():@pytest.mark.asyncio-async def test_three_parallel_openclaw_calls(ctx):- """3 parallele openclaw-Calls → aggregated output hat 3 Sections."""+async def test_three_parallel_jarvis_agent_calls(ctx):+ """3 parallel jarvis-agent calls → aggregated output has 3 sections."""bus = EventBus()fake = FakeHarness(scripted_output="branch-A done\n")- mgr = _make_manager_with_fake(bus, "openclaw", fake)+ mgr = _make_manager_with_fake(bus, "jarvis_agent", fake)tool = MultiSpawnTool(bus=bus, manager=mgr, max_output_chars=8000)result = await tool.execute({- "harness": "openclaw",+ "harness": "jarvis_agent","prompts": ["write the tests for module X","write the implementation for module X",@@ -73,12 +73,12 @@ async def test_aggregation_merge_joins_all_outputs(ctx):"""Merge-Mode konkateniert alle Section-Outputs mit '---'-Separator."""bus = EventBus()fake = FakeHarness(scripted_output="shared-body")- mgr = _make_manager_with_fake(bus, "openclaw", fake)+ mgr = _make_manager_with_fake(bus, "jarvis_agent", fake)tool = MultiSpawnTool(bus=bus, manager=mgr)result = await tool.execute({- "harness": "openclaw",+ "harness": "jarvis_agent","prompts": ["p1", "p2"],"aggregation": "merge",},@@ -97,12 +97,12 @@ async def test_aggregation_first_success_returns_first_ok(ctx):"""first_success mode returns only the winning section."""bus = EventBus()fake = FakeHarness(scripted_output="winner-output")- mgr = _make_manager_with_fake(bus, "openclaw", fake)+ mgr = _make_manager_with_fake(bus, "jarvis_agent", fake)tool = MultiSpawnTool(bus=bus, manager=mgr)result = await tool.execute({- "harness": "openclaw",+ "harness": "jarvis_agent","prompts": ["p1", "p2", "p3"],"aggregation": "first_success",},@@ -123,12 +123,12 @@ async def test_output_cap_truncates_large_outputs(ctx):bus = EventBus()big_body = "x" * 5000fake = FakeHarness(scripted_output=big_body)- mgr = _make_manager_with_fake(bus, "openclaw", fake)+ mgr = _make_manager_with_fake(bus, "jarvis_agent", fake)tool = MultiSpawnTool(bus=bus, manager=mgr, max_output_chars=8000)result = await tool.execute({- "harness": "openclaw",+ "harness": "jarvis_agent","prompts": ["p1", "p2", "p3"],"aggregation": "merge",},@@ -171,7 +171,7 @@ async def test_missing_harness_fails(ctx):async def test_too_few_prompts_fails(ctx):tool = MultiSpawnTool(manager=HarnessManager())result = await tool.execute(- {"harness": "openclaw", "prompts": ["only-one"]},+ {"harness": "jarvis_agent", "prompts": ["only-one"]},ctx,)assert result.success is False@@ -183,12 +183,12 @@ async def test_merge_failure_propagates(ctx):"""When a section exit != 0, success=False is set."""bus = EventBus()fake = FakeHarness(fail=True)- mgr = _make_manager_with_fake(bus, "openclaw", fake)+ mgr = _make_manager_with_fake(bus, "jarvis_agent", fake)tool = MultiSpawnTool(bus=bus, manager=mgr)result = await tool.execute({- "harness": "openclaw",+ "harness": "jarvis_agent","prompts": ["p1", "p2"],"aggregation": "merge",},diff --git a/tests/integration/test_router_permanent_vision.py b/tests/integration/test_router_permanent_vision.pyindex da519ae1c8..5c8978dfb4 100644--- a/tests/integration/test_router_permanent_vision.py+++ b/tests/integration/test_router_permanent_vision.py@@ -7,9 +7,9 @@ router-inject → BrainDispatcher.dispatch path.Wave-4 migration: the formerly "critical" test``test_sub_jarvis_isolated_from_vision`` verified that ``SubJarvisManager``does not pass along any vision images. The Sub-Jarvis tier was replaced by-the OpenClaw bridge (see docs/openclaw-bridge.md §11) — the OpenClaw-worker is an external subprocess with no image channel, so vision-isolation is structurally guaranteed. This test was removed.+the Jarvis-Agents bridge (see docs/jarvis-agents-bridge.md §11) — the+Jarvis-Agent worker is an external subprocess with no image channel, so+vision isolation is structurally guaranteed. This test was removed."""from __future__ import annotations@@ -190,16 +190,16 @@ async def test_router_handle_includes_image():# ======================================================================-# Test 2: OpenClaw worker isolation+# Test 2: Jarvis-Agent worker isolation## Wave-4 migration: the original ``test_sub_jarvis_isolated_from_vision``# test verified that ``SubJarvisManager.run(task)`` does not pass along any-# vision images. ``SubJarvisManager`` was replaced by the OpenClaw bridge-# (see docs/openclaw-bridge.md §11). Vision isolation is structurally-# guaranteed for the OpenClaw worker: it is an external subprocess that-# only receives a ``--message <prompt>`` string — no image channel. The-# old test was therefore removed; a comparable smoke test for the-# OpenClaw subprocess stream lives in ``tests/integration/test_openclaw_*``.+# vision images. ``SubJarvisManager`` was replaced by the Jarvis-Agents+# bridge (see docs/jarvis-agents-bridge.md §11). Vision isolation is+# structurally guaranteed for the Jarvis-Agent worker: it is an external+# subprocess that only receives a ``--message <prompt>`` string — no image+# channel. The old test was therefore removed; no dedicated harness+# subprocess-stream smoke test currently exists in this suite.# ======================================================================diff --git a/tests/integration/test_sub_agents_api.py b/tests/integration/test_sub_agents_api.pyindex a9ed8b17ba..ad1512dd59 100644--- a/tests/integration/test_sub_agents_api.py+++ b/tests/integration/test_sub_agents_api.py@@ -58,7 +58,7 @@ async def test_tree_reflects_published_events(server_bus) -> None:JarvisAgentTaskStarted(trace_id=tid,utterance="bau mir X",- provider="openclaw",+ provider="jarvis-agent",model="opus",))diff --git a/tests/integration/test_suppress_response_no_fallback.py b/tests/integration/test_suppress_response_no_fallback.pyindex 9cc114cf5d..1c2f7d1c43 100644--- a/tests/integration/test_suppress_response_no_fallback.py+++ b/tests/integration/test_suppress_response_no_fallback.py@@ -128,8 +128,8 @@ async def test_suppress_response_does_not_trigger_fallback():f"Empty-response guard false-fired on a suppress_response turn.")- # Result may be empty (suppress_response) — the UI gets OpenClawAnnouncement- # via the bus, not via the BrainManager return value.+ # Result may be empty (suppress_response) — the UI gets a+ # JarvisAgentAnnouncement via the bus, not via the BrainManager return value.assert isinstance(result, str)# Critical: the result must NOT contain the "all failed" message,# even when the text is empty (suppress_response is NOT a failure).diff --git a/tests/integration/test_worker_lazy_bootstrap.py b/tests/integration/test_worker_lazy_bootstrap.pyindex 0f67245c69..54f5438ac5 100644--- a/tests/integration/test_worker_lazy_bootstrap.py+++ b/tests/integration/test_worker_lazy_bootstrap.py@@ -1,10 +1,10 @@-"""Regression test for OpenClaw bootstrap-order inversion (fix 2026-05-10).+"""Regression test for Jarvis-Agent bootstrap-order inversion (fix 2026-05-10).Reproduces the production scenario where the BrainManager is built BEFOREthe Mission stack is bootstrapped. Without the lazy-resolver pattern the``spawn_worker`` tool would be permanently absent from the Brain's tooldict, the Force-Spawn heuristic would always return False, and voice input-would never reach OpenClaw.+would never reach the Jarvis-Agent (worker dispatch).The fix (AD-OC1): register the tool unconditionally, resolve theMissionManager via a closure at execute-time, and let@@ -239,8 +239,8 @@ async def test_voice_path_kontrollierer_crash_publishes_completed_event() -> Non"""If run_mission crashes, the tool must publish a failure event.The Voice-Listener subscribes to JarvisAgentBackgroundCompleted with- success=False to give the user voice feedback ("OpenClaw ist- abgestuerzt"). Without this publish the user would just hear silence.+ success=False to give the user spoken failure feedback (e.g.+ "the mission crashed", localized). Without this publish the user would just hear silence."""from jarvis.core.events import JarvisAgentBackgroundCompletedfrom jarvis.plugins.tool.spawn_worker import SpawnWorkerTooldiff --git a/tests/missions/api/test_missions_routes.py b/tests/missions/api/test_missions_routes.pyindex 2176c00a1a..fe777298e7 100644--- a/tests/missions/api/test_missions_routes.py+++ b/tests/missions/api/test_missions_routes.py@@ -412,16 +412,16 @@ def test_kill_invokes_kontrollierer_method_when_present(# ----------------------------------------------------------------------------# Phase 9 (Welle 4 UI) — OpenClaw-Worker-Snapshots im Detail-Endpoint+# Phase 9 (Welle 4 UI) — Jarvis-Agent-Worker-Snapshots im Detail-Endpoint# ----------------------------------------------------------------------------async def test_get_returns_empty_openclaw_workers_when_no_openclaw_marker(+async def test_get_returns_empty_jarvis_agent_workers_when_no_jarvis_agent_marker(manager: MissionManager,) -> None:"""Without a step.harness=='openclaw' marker: ``worker_snapshots`` is []but always present in the response (the frontend can rely on that)."""- mid = await manager.dispatch(prompt="non-openclaw mission")+ mid = await manager.dispatch(prompt="non-jarvis-agent mission")spawn_env = EventEnvelope(mission_id=mid,@@ -451,11 +451,11 @@ async def test_get_returns_empty_openclaw_workers_when_no_openclaw_marker(assert body["worker_snapshots"] == []-async def test_get_returns_openclaw_worker_snapshot(+async def test_get_returns_jarvis_agent_worker_snapshot(manager: MissionManager,) -> None:"""Mit step.harness=='openclaw' + WorkerKilled: alle Spalten gefuellt (als worker_snapshots)."""- mid = await manager.dispatch(prompt="openclaw mission")+ mid = await manager.dispatch(prompt="jarvis-agent mission")spawn_env = EventEnvelope(mission_id=mid,diff --git a/tests/missions/api/test_missions_worker_aggregator.py b/tests/missions/api/test_missions_worker_aggregator.pyindex 9934fc43fe..ee9d568419 100644--- a/tests/missions/api/test_missions_worker_aggregator.py+++ b/tests/missions/api/test_missions_worker_aggregator.py@@ -1,11 +1,11 @@-"""Unit tests for the OpenClaw worker aggregator (Phase 9 Wave 4 UI).+"""Unit tests for the Jarvis-Agent worker aggregator (Phase 9 Wave 4 UI).Pure helper tests without FastAPI / DB I/O. Covers:- Detection heuristic (step.harness == 'openclaw' AND fallback via model+sid)-- State-dir convention (matches ``OpenClawHarness._build_spec``)+- State-dir convention (matches ``missions_worker._derive_state_dir``)- Reattach status: live -> killed -> ended (mission terminal)- Cost/tokens aggregation from Progress + DraftReady-- Empty stream / non-OpenClaw workers+- Empty stream / non-Jarvis-Agent workers"""from __future__ import annotations@@ -41,9 +41,9 @@ def test_no_workers_returns_empty():assert extract_worker_missions([]) == []-def test_non_openclaw_worker_is_ignored():+def test_non_jarvis_agent_worker_is_ignored():"""Pure Claude/Codex workers (no step.harness, no /-model) do not- show up in the OpenClaw list."""+ show up in the Jarvis-Agent list."""spawn = WorkerSpawned(worker_id="w1",step={"task": "build foo"},@@ -64,7 +64,7 @@ def test_step_harness_marker_is_canonical():worker_id="w1",step={"harness": "openclaw"},pid=42,- cli="python", # OpenClaw cannot yet register itself as 'openclaw'+ cli="python", # Jarvis-Agent cannot yet register itself as 'openclaw'model="any",worktree="C:/wt/agent-1",session_id=None,@@ -96,8 +96,8 @@ def test_session_id_plus_provider_slash_fallback_detection():# ----------------------------------------------------------------------------def test_state_dir_matches_openclaw_harness_convention():- """The state_dir path MUST exactly follow the ``OpenClawHarness._build_spec``+def test_state_dir_matches_legacy_openclaw_harness_convention():+ """The state_dir path MUST exactly follow the ``missions_worker._derive_state_dir``convention — otherwise the UI shows the wrong location."""spawn = WorkerSpawned(worker_id="w1",@@ -270,7 +270,7 @@ def test_cost_aggregated_from_progress_then_draft_ready():# ----------------------------------------------------------------------------def test_multiple_openclaw_workers_preserved_in_spawn_order():+def test_multiple_jarvis_agent_workers_preserved_in_spawn_order():s1 = WorkerSpawned(worker_id="w1", step={"harness": "openclaw"}, pid=1, cli="python", model="a/b", worktree="C:/wt", session_id="s1")s2 = WorkerSpawned(worker_id="w2", step={"harness": "openclaw"}, pid=2, cli="python", model="a/b", worktree="C:/wt", session_id="s2")other = WorkerSpawned(worker_id="w3", step={}, pid=3, cli="claude", model="claude-sonnet-4-6", worktree="C:/wt", session_id=None)diff --git a/tests/missions/critic/test_runner_claude_direct.py b/tests/missions/critic/test_runner_claude_direct.pyindex 212429beef..a4872dc44b 100644--- a/tests/missions/critic/test_runner_claude_direct.py+++ b/tests/missions/critic/test_runner_claude_direct.py@@ -1,17 +1,17 @@"""Coverage for the ClaudeDirectCritic path (CRIT-1, 2026-05-17).-Audit-Team 10 verdict on 2026-05-17 (Audit-2 RED): the live OpenClaw-critic spawn has been failing 100 % of voice missions since 13:14 today-because OpenClaw 2026.5.7 silently ignores the+Audit-Team 10 verdict on 2026-05-17 (Audit-2 RED): the live critic spawn+via the external `openclaw` worker CLI has been failing 100 % of voice+missions since 13:14 today because openclaw 2026.5.7 silently ignores the``agents.defaults.cliBackends["claude-cli"]`` override our``_ensure_critic_agent_registered`` helper writes, and falls back to the``anthropic`` Messages-API backend that needs paid extra-usage credits theuser doesn't have. CRIT-1 mirrors what BUG-023 did for the worker: when``[brain.sub_jarvis].provider`` resolves to ``claude-api`` we spawn-``claude --print`` directly, bypassing OpenClaw entirely.+``claude --print`` directly, bypassing the openclaw worker entirely.These tests pin the contract so the path stays exercised even after the-existing OpenClaw fakes patch the resolver to a non-claude provider.+existing openclaw-worker fakes patch the resolver to a non-claude provider."""from __future__ import annotations@@ -51,7 +51,7 @@ def _claude_cli_viable_by_default(monkeypatch: pytest.MonkeyPatch) -> None:def _valid_verdict_json(verdict: str = "approve") -> str:"""A schema-valid CriticVerdict as the raw text claude --print prints.- Unlike the OpenClaw path we do NOT wrap this in ``{"payloads": [...]}``+ Unlike the openclaw-worker path we do NOT wrap this in ``{"payloads": [...]}``— claude --print outputs the model's reply verbatim, so the entirestdout IS the JSON object the prompt asked for."""@@ -151,7 +151,7 @@ async def test_claude_direct_path_approves_when_resolver_picks_claude_api(monkeypatch: pytest.MonkeyPatch, tmp_path: Path,) -> None:"""When ``provider==claude-api``, the critic must spawn claude --print- directly instead of routing through OpenClaw."""+ directly instead of routing through the openclaw worker."""captured = _patch_direct(monkeypatch, stdout=_valid_verdict_json("approve"))verdict = await CriticRunner().run(@@ -177,7 +177,7 @@ async def test_claude_direct_path_approves_when_resolver_picks_claude_api(assert argv[argv.index("--add-dir") + 1] == str(tmp_path)# Model from the resolver — must be wired through.assert argv[argv.index("--model") + 1] == "claude-sonnet-4-6"- # OpenClaw must NOT have been spawned -- no openclaw.json gets written.+ # The openclaw worker must NOT have been spawned -- no openclaw.json gets written.assert not (tmp_path / "openclaw.json").exists()@@ -239,7 +239,7 @@ async def test_non_claude_provider_critic_uses_claude_model_not_foreign(assert verdict.verdict == "approve"argv = captured["argv"]- # The critic must fall back to the direct claude critic, not OpenClaw.+ # The critic must fall back to the direct claude critic, not the openclaw worker.assert argv[0] == "claude", argv# The foreign provider model must NEVER reach `claude --model`.assert foreign_model not in argv, f"foreign model leaked into claude argv: {argv}"@@ -349,7 +349,7 @@ async def test_claude_direct_nonzero_exit_returns_none_for_retry() -> None:"""If the binary itself exits non-zero (e.g. OAuth token expired),the runner treats it as a parse failure and triggers the adversarial- retry path -- consistent with the OpenClaw branch."""+ retry path -- consistent with the openclaw-worker branch."""call_count = {"n": 0}monkeypatch.setattr(@@ -424,11 +424,11 @@ async def test_claude_direct_recovers_verdict_from_agent_narration(@pytest.mark.asyncio-async def test_claude_direct_skips_openclaw_json_materialisation(+async def test_claude_direct_skips_legacy_state_file_materialisation(monkeypatch: pytest.MonkeyPatch, tmp_path: Path,) -> None:"""The direct path must NOT write openclaw.json -- that file only- exists for the OpenClaw branch. A stray openclaw.json in the+ exists for the openclaw-worker branch. A stray openclaw.json in thestate-dir was the symptom that misled us into thinking the workerwas using the right backend on 2026-05-16."""state_dir = tmp_path / "state"@@ -445,7 +445,7 @@ async def test_claude_direct_skips_openclaw_json_materialisation(env={"MISSION_STATE_DIR": str(state_dir)},)assert not (state_dir / "openclaw.json").exists(), (- "claude-direct branch must not touch the OpenClaw state dir"+ "claude-direct branch must not touch the legacy openclaw state dir")diff --git a/tests/missions/kontrollierer/test_loop.py b/tests/missions/kontrollierer/test_loop.pyindex 94a0bb0d43..5c719a13a0 100644--- a/tests/missions/kontrollierer/test_loop.py+++ b/tests/missions/kontrollierer/test_loop.py@@ -275,15 +275,16 @@ async def test_two_iterations_approve_on_second(@pytest.mark.asyncio-async def test_iter1_does_not_resume_openclaw_session(+async def test_iter1_does_not_resume_jarvis_agent_session(manager: MissionManager, tmp_path: Path) -> None:"""BUG-LIVE-03 regression — `resume_session_id` must be None on every- iteration. OpenClaw 2026.5.7 prefers the failover chain persisted in- the session-state file over the explicit `--model` flag on resume, so- a reused session-id silently downgrades the provider routing. The- critic correction lives in the worker prompt (`prior_block`) and not- in OpenClaw state, so a fresh session loses nothing.+ iteration. The external openclaw worker (v2026.5.7) prefers the failover+ chain persisted in the session-state file over the explicit `--model`+ flag on resume, so a reused session-id silently downgrades the provider+ routing. The critic correction lives in the worker prompt+ (`prior_block`) and not in the external worker's session state, so a+ fresh session loses nothing."""critic = FakeCriticRunner(_make_revise_verdict("needs fix"), _make_approve_verdict())shared_worker = FakeWorker(session="s-iter0")diff --git a/tests/missions/test_env.py b/tests/missions/test_env.pyindex 9f9ab1902e..2b68a224cd 100644--- a/tests/missions/test_env.py+++ b/tests/missions/test_env.py@@ -113,9 +113,9 @@ def test_plugin_skills_pre_seed_never_materialises_plain_directory("""2026-05-17 (CRIT-3 from audit-team 10): the pre-seed used tomaterialise a plain *directory* at``<MISSION_STATE_DIR>/plugin-skills/browser-automation/`` so- OpenClaw's first-spawn symlink would short-circuit on EEXIST.+ the openclaw worker's first-spawn symlink would short-circuit on EEXIST.Live forensics (Audit-2 + Audit-6) then showed that trade actually- swapped EPERM for EINVAL because OpenClaw later does+ swapped EPERM for EINVAL because the openclaw worker later does``readlink()`` on the same path and a directory is not a symboliclink. The kernel's EINVAL fired ~12×/hour and crashed the veryCritic spawn we tried to protect.@@ -170,16 +170,16 @@ def test_plugin_skills_pre_seed_is_idempotent(tmp_path: Path) -> None:)-def test_openclaw_state_dir_is_run_dir_subpath(tmp_path: Path) -> None:+def test_worker_state_dir_is_run_dir_subpath(tmp_path: Path) -> None:"""Regression: `MISSION_STATE_DIR` must sit directly under `run_dir`(the mission root), not under any deeper `tasks/<id>/logs/` path. The- SubJarvisWorker materializes `openclaw.json` here, and the OpenClaw CLI+ SubJarvisWorker materializes `openclaw.json` here, and the openclaw CLIreads `agents.defaults.workspace` from that file to redirect file_writetools into the per-mission git worktree. If the state-dir is one level- too deep, OpenClaw can't find the config, falls back to its global- default workspace (`~/.openclaw/workspace`), and `_capture_diff` of the- actual worktree returns empty — the mission is then rejected as a- no-op. The previous derivation `log_dir.parent` produced exactly that+ too deep, the openclaw worker can't find the config, falls back to its+ global default workspace (`~/.openclaw/workspace`), and `_capture_diff`+ of the actual worktree returns empty — the mission is then rejected as+ a no-op. The previous derivation `log_dir.parent` produced exactly thatone-level-too-deep path."""run_dir = tmp_path / "missions" / "run-001"with patch.dict("os.environ", {}, clear=True):@@ -227,27 +227,27 @@ def test_does_not_inherit_anthropic_key_from_parent_env(tmp_path: Path) -> None:assert "ANTHROPIC_API_KEY" not in env-# --- _seed_openclaw_plugin_skills (CRIT-3 from 2026-05-17 audit) -----------+# --- _seed_jarvis_agent_plugin_skills (CRIT-3 from 2026-05-17 audit) -----------## Before the 2026-05-17 fix, this helper materialised a plain *directory*-# at <state_dir>/plugin-skills/browser-automation/. OpenClaw then called-# os.readlink() against that path and got EINVAL because a directory is-# not a symbolic link. The "fix" against EPERM had become its own bug.+# at <state_dir>/plugin-skills/browser-automation/. The openclaw worker then+# called os.readlink() against that path and got EINVAL because a directory+# is not a symbolic link. The "fix" against EPERM had become its own bug.# Now the helper either creates a real symlink (Developer Mode user) or-# leaves the path missing (default user) so OpenClaw's own EPERM branch-# runs consistently.+# leaves the path missing (default user) so the openclaw worker's own EPERM+# branch runs consistently.def test_seed_does_nothing_when_no_source_available(tmp_path: Path, monkeypatch) -> None:- """No npm-installed OpenClaw source on disk -> helper is a no-op."""+ """No npm-installed openclaw source on disk -> helper is a no-op."""from jarvis.missions.isolation import env as env_modstate_dir = tmp_path / "state"# Empty candidate list -> nothing to point a symlink at.- monkeypatch.setattr(env_mod, "_OPENCLAW_BROWSER_SKILL_CANDIDATES", ())- env_mod._seed_openclaw_plugin_skills(state_dir)+ monkeypatch.setattr(env_mod, "_JARVIS_AGENT_BROWSER_SKILL_CANDIDATES", ())+ env_mod._seed_jarvis_agent_plugin_skills(state_dir)target = state_dir / "plugin-skills" / "browser-automation"assert not target.exists(), (@@ -259,23 +259,23 @@ def test_seed_creates_real_symlink_when_privilege_available(tmp_path: Path, monkeypatch) -> None:"""With a usable source and a working os.symlink, the target ends up- as a symlink (not a directory) -- the exact thing OpenClaw's+ as a symlink (not a directory) -- the exact thing the openclaw worker'sreadlink() call expects."""from jarvis.missions.isolation import env as env_modimport os# Synthesise a fake source dir layout: <source>/SKILL.md- source = tmp_path / "fake_openclaw" / "skills" / "browser-automation"+ source = tmp_path / "fake_worker_cli" / "skills" / "browser-automation"source.mkdir(parents=True)(source / "SKILL.md").write_text("# real skill\n", encoding="utf-8")monkeypatch.setattr(- env_mod, "_OPENCLAW_BROWSER_SKILL_CANDIDATES", (str(source),),+ env_mod, "_JARVIS_AGENT_BROWSER_SKILL_CANDIDATES", (str(source),),)state_dir = tmp_path / "state"try:- env_mod._seed_openclaw_plugin_skills(state_dir)+ env_mod._seed_jarvis_agent_plugin_skills(state_dir)except OSError:pytest.skip("os.symlink unsupported in this environment")@@ -298,16 +298,16 @@ def test_seed_eperm_keeps_target_missing() -> None:"""When os.symlink raises EPERM/EACCES (default Windows user), thehelper must NOT fall back to creating a directory -- that was the- EINVAL trap. Target stays missing so OpenClaw sees the same+ EINVAL trap. Target stays missing so the openclaw worker sees the samefile-not-found state it would see without our intervention."""from jarvis.missions.isolation import env as env_modimport os- source = tmp_path / "fake_openclaw"+ source = tmp_path / "fake_worker_cli"source.mkdir()(source / "SKILL.md").write_text("# real\n", encoding="utf-8")monkeypatch.setattr(- env_mod, "_OPENCLAW_BROWSER_SKILL_CANDIDATES", (str(source),),+ env_mod, "_JARVIS_AGENT_BROWSER_SKILL_CANDIDATES", (str(source),),)def boom(*args, **kwargs):@@ -315,12 +315,12 @@ def test_seed_eperm_keeps_target_missing(monkeypatch.setattr(os, "symlink", boom)state_dir = tmp_path / "state"- env_mod._seed_openclaw_plugin_skills(state_dir)+ env_mod._seed_jarvis_agent_plugin_skills(state_dir)target = state_dir / "plugin-skills" / "browser-automation"# The CRIT-3 contract: must NOT materialise a directory just because# the symlink failed. Anything that materialises here re-introduces- # the EINVAL trap on OpenClaw's later readlink().+ # the EINVAL trap on the openclaw worker's later readlink().assert not target.exists(), (f"EPERM path must leave target missing; got {target} "f"as_dir={target.is_dir() if target.exists() else 'n/a'}"@@ -338,12 +338,12 @@ def test_seed_idempotent_existing_symlink_is_left_alone(source.mkdir()(source / "SKILL.md").write_text("# real\n", encoding="utf-8")monkeypatch.setattr(- env_mod, "_OPENCLAW_BROWSER_SKILL_CANDIDATES", (str(source),),+ env_mod, "_JARVIS_AGENT_BROWSER_SKILL_CANDIDATES", (str(source),),)state_dir = tmp_path / "state"try:- env_mod._seed_openclaw_plugin_skills(state_dir)+ env_mod._seed_jarvis_agent_plugin_skills(state_dir)except OSError:pytest.skip("os.symlink unsupported")@@ -353,7 +353,7 @@ def test_seed_idempotent_existing_symlink_is_left_alone(first_link = os.readlink(target)# Second call -- must be a no-op.- env_mod._seed_openclaw_plugin_skills(state_dir)+ env_mod._seed_jarvis_agent_plugin_skills(state_dir)assert target.is_symlink(), "second call must not destroy the symlink"assert os.readlink(target) == first_link, ("symlink target changed across calls"@@ -373,7 +373,7 @@ def test_seed_cleans_up_stale_directory_from_old_buggy_runs(source.mkdir()(source / "SKILL.md").write_text("# real\n", encoding="utf-8")monkeypatch.setattr(- env_mod, "_OPENCLAW_BROWSER_SKILL_CANDIDATES", (str(source),),+ env_mod, "_JARVIS_AGENT_BROWSER_SKILL_CANDIDATES", (str(source),),)state_dir = tmp_path / "state"@@ -381,7 +381,7 @@ def test_seed_cleans_up_stale_directory_from_old_buggy_runs(stale.mkdir(parents=True)(stale / "leftover.txt").write_text("from old buggy run\n", encoding="utf-8")- env_mod._seed_openclaw_plugin_skills(state_dir)+ env_mod._seed_jarvis_agent_plugin_skills(state_dir)# Either the stale dir is gone (cleaned + symlink succeeded) or it# is gone (cleaned + symlink failed -- still better than leaving@@ -493,13 +493,13 @@ def test_isolated_claude_config_has_no_hooks_or_plugins(tmp_path: Path) -> None:def test_oauth_token_also_set_as_claude_code_oauth_token(tmp_path: Path) -> None:"""With an isolated CLAUDE_CONFIG_DIR, `claude --print` authenticates viaCLAUDE_CODE_OAUTH_TOKEN (the headless OAuth env var). ANTHROPIC_OAUTH_TOKEN- stays set for OpenClaw/other consumers, but it alone is NOT enough — the- worker would otherwise fail with "Not logged in"."""+ stays set for the openclaw worker/other consumers, but it alone is NOT+ enough — the worker would otherwise fail with "Not logged in"."""oat = "sk-ant-oat01-deadbeef-cafe-1234567890"with patch.dict("os.environ", {}, clear=True):env = build_worker_env(run_dir=tmp_path, anthropic_api_key=oat)assert env.get("CLAUDE_CODE_OAUTH_TOKEN") == oat- # Keep the legacy slot too (existing contract / OpenClaw).+ # Keep the legacy slot too (existing contract / the openclaw worker).assert env.get("ANTHROPIC_OAUTH_TOKEN") == oatassert "ANTHROPIC_API_KEY" not in envdiff --git a/tests/missions/test_injection_scanner.py b/tests/missions/test_injection_scanner.pyindex 21720251ed..597de625d5 100644--- a/tests/missions/test_injection_scanner.py+++ b/tests/missions/test_injection_scanner.py@@ -100,7 +100,7 @@ def test_cursorrules_inject_high() -> None:def test_claude_md_bare_path_no_false_positive() -> None:"""Bare path mentions (as in a diff listing of untracked files in acloned repo) must NOT fire — that was the BUG that killed every- OpenClaw mission running inside the Personal Jarvis workspace.+ Jarvis-Agent mission running inside the Personal Jarvis workspace."""workspace_dump = ("+++ b/CLAUDE.md\n"diff --git a/tests/missions/test_jarvis_agent_worker_routing.py b/tests/missions/test_jarvis_agent_worker_routing.pyindex ce266477e5..41becad4bb 100644--- a/tests/missions/test_jarvis_agent_worker_routing.py+++ b/tests/missions/test_jarvis_agent_worker_routing.py@@ -32,7 +32,7 @@ def test_claude_api_is_a_hard_lock(step_model: str) -> None:assert _select_subagent_worker_kind("claude-api", step_model) == "claude_direct"-def test_openclaw_claude_routes_subjarvis() -> None:+def test_legacy_openclaw_claude_alias_routes_subjarvis() -> None:assert _select_subagent_worker_kind("openclaw-claude", "gemini-x") == "subjarvis"@@ -72,8 +72,9 @@ def test_antigravity_routes_to_oauth_cli_worker(step_model: str) -> None:def test_gemini_as_subagent_provider_uses_direct_gemini_worker() -> None:"""Post-Welle-4: explicitly choosing 'gemini' routes to the direct- GeminiWorker so the sub-agent actually RUNS on Gemini. The OpenClaw path it- used to take was removed, so without this it silently ran on Claude. This is+ GeminiWorker so the sub-agent actually RUNS on Gemini. The legacy+ pre-rename routing it used to take (through the internal system's old+ name) was removed, so without this it silently ran on Claude. This isan EXPLICIT selection, NOT the anti-silent-Gemini fallback case."""assert _select_subagent_worker_kind("gemini", "") == "gemini"assert _select_subagent_worker_kind("gemini", "claude-opus-4-8") == "gemini"@@ -188,9 +189,10 @@ def test_live_provider_survives_registry_refresh_failure(monkeypatch: pytest.Mon## Grok/OpenAI/OpenRouter run on their OWN provider via the# in-process ApiAgentWorker, so they are NO LONGER routing-level Claude-# fallbacks. Only the legacy ``"subjarvis"`` kind (openclaw-claude / unknown)-# still always runs Claude. The UI reads ``subagent_runs_on_claude_fallback``-# (derived from the SAME routing function) so the badge never lies.+# fallbacks. Only the legacy ``"subjarvis"`` kind (the legacy+# openclaw-claude alias / unknown) still always runs Claude. The UI reads+# ``subagent_runs_on_claude_fallback`` (derived from the SAME routing+# function) so the badge never lies.@pytest.mark.parametrize("provider", ["openclaw-claude"])diff --git a/tests/missions/test_provider_chain_argv.py b/tests/missions/test_provider_chain_argv.pyindex a910e0f27e..5f786ab2ed 100644--- a/tests/missions/test_provider_chain_argv.py+++ b/tests/missions/test_provider_chain_argv.py@@ -1,6 +1,6 @@"""Unit tests for the worker harness argv-prefix resolver (BUG-ALT-03).-Goal: prove that the OpenClaw worker invokes `node openclaw.mjs` directly+Goal: prove that the Jarvis-Agent worker invokes `node openclaw.mjs` directlywhen possible (sidestepping the cmd.exe metacharacter trap that manglesapostrophes and newlines in `--message` arguments), and that theargv-builder accepts either the legacy single-string `binary` arg or@@ -103,7 +103,7 @@ def test_resolver_returns_bare_default_when_nothing_resolves(# --- _build_worker_cmd ----------------------------------------------------def test_build_openclaw_cmd_accepts_string_binary_legacy() -> None:+def test_build_worker_cmd_accepts_string_binary_legacy() -> None:"""The old contract — `binary` as a single path string — must stillwork for existing callers and tests."""cmd = sjw._build_worker_cmd(@@ -123,10 +123,10 @@ def test_build_openclaw_cmd_accepts_string_binary_legacy() -> None:assert cmd[cmd.index("--model") + 1] == "google/gemini-3.1-pro-preview"-def test_build_openclaw_cmd_accepts_argv_prefix_list() -> None:+def test_build_worker_cmd_accepts_argv_prefix_list() -> None:"""The new contract — `binary` as a list — must place the prefixelements at the head of the argv, in order, and then append the- OpenClaw arguments unchanged."""+ worker arguments unchanged."""cmd = sjw._build_worker_cmd("Create hello.py with print('hi')",binary=["C:/Program Files/nodejs/node.exe", "C:/npm/openclaw.mjs"],@@ -144,7 +144,7 @@ def test_build_openclaw_cmd_accepts_argv_prefix_list() -> None:assert cmd[cmd.index("--message") + 1] == "Create hello.py with print('hi')"-def test_build_openclaw_cmd_extra_args_appended_after_timeout() -> None:+def test_build_worker_cmd_extra_args_appended_after_timeout() -> None:"""Stable order: `extra_args` go at the very end so they can overrideor supplement standard flags without re-ordering parsing."""cmd = sjw._build_worker_cmd(diff --git a/tests/missions/test_worktree.py b/tests/missions/test_worktree.pyindex 4fecb98f82..25621f82c6 100644--- a/tests/missions/test_worktree.py+++ b/tests/missions/test_worktree.py@@ -458,7 +458,7 @@ def test_remove_retries_on_transient_permission_denied(monkeypatch: pytest.MonkeyPatch,) -> None:"""BUG-LIVE-05 — on Windows the first `git worktree remove` often- fails with `Permission denied` because the OpenClaw subprocess+ fails with `Permission denied` because the Jarvis-Agent subprocessholds SQLite/trajectory file handles for a few hundred millisecondsafter exit. The manager retries with 50/100/200 ms back-off; thistest fakes two transient failures followed by success and assertsdiff --git a/tests/missions/worker_runtime/test_provider_map.py b/tests/missions/worker_runtime/test_provider_map.pyindex 615ea1ed48..e9444fd757 100644--- a/tests/missions/worker_runtime/test_provider_map.py+++ b/tests/missions/worker_runtime/test_provider_map.py@@ -1,6 +1,6 @@"""Tests for jarvis.missions.worker_runtime.provider_map.-Source of truth: docs/openclaw-bridge.md AD-6 Amendment table.+Source of truth: docs/jarvis-agents-bridge.md AD-6 Amendment table.When the table changes, update BOTH — the doc is authoritative."""from __future__ import annotations@@ -31,7 +31,7 @@ from jarvis.missions.worker_runtime.provider_map import (# 2026-05-17 — claude-api now routes through the worker's claude-cli# backend (OAuth, Claude Max subscription) instead of `anthropic`# (paid Messages API with extra-usage requirement). See- # provider_map.MAPPINGS docstring + docs/openclaw-bridge.md AD-6.+ # provider_map.MAPPINGS docstring + docs/jarvis-agents-bridge.md AD-6.("claude-api", "claude-cli"),("openai", "openai"),("openrouter", "openrouter"),@@ -192,8 +192,8 @@ def test_ad6_table_is_complete() -> None:Grok uses the documented ``grok->xai`` row. ``nvidia`` (NVIDIA NIM) is anOpenAI-compatible API brain that, like ``openai``/``openrouter``, runs on the- in-process ApiAgentWorker (not the OpenClaw CLI harness); its row exists so it- is a selectable Jarvis-Agent in the API-Keys view."""+ in-process ApiAgentWorker (not the Jarvis-Agent CLI worker harness); its row+ exists so it is a selectable Jarvis-Agent in the API-Keys view."""expected_jarvis_slugs = {"gemini","claude-api",@@ -204,7 +204,7 @@ def test_ad6_table_is_complete() -> None:}actual = {m.jarvis for m in MAPPINGS}assert actual == expected_jarvis_slugs, (- "AD-6 Amendment table drifted — please keep docs/openclaw-bridge.md "+ "AD-6 Amendment table drifted — please keep docs/jarvis-agents-bridge.md ""and MAPPINGS in sync.")diff --git a/tests/missions/worker_runtime/test_workspace.py b/tests/missions/worker_runtime/test_workspace.pyindex 5976833159..bc5ba7d028 100644--- a/tests/missions/worker_runtime/test_workspace.py+++ b/tests/missions/worker_runtime/test_workspace.py@@ -1,7 +1,7 @@"""Tests for jarvis.missions.worker_runtime.workspace.-Source of truth: docs/openclaw-bridge.md AD-23 + AP-OC15 +-docs/spike-results-openclaw.md B-9 (system-prompt auto-injection finding).+Source of truth: docs/jarvis-agents-bridge.md AD-23 + AP-OC15 ++docs/spike-results-jarvis-agents.md B-9 (system-prompt auto-injection finding)."""from __future__ import annotations@@ -84,7 +84,8 @@ def test_prepare_workspace_creates_subdir(tmp_path: Path) -> None:def test_prepare_workspace_writes_all_five_stub_files(tmp_path: Path) -> None:- """B-9: OpenClaw injects AGENTS/SOUL/IDENTITY/TOOLS/USER — all 5 stubs must be present."""+ """B-9: the Jarvis-Agent worker harness injects AGENTS/SOUL/IDENTITY/TOOLS/USER+ — all 5 stubs must be present."""workspace = prepare_workspace(tmp_path, mission_id="m-001")actual = {f.name for f in workspace.iterdir() if f.is_file()}assert actual == EXPECTED_WORKSPACE_FILES@@ -134,17 +135,17 @@ def test_prepare_workspace_idempotent_with_new_mission_id(tmp_path: Path) -> Nondef test_prepare_workspace_uses_lf_line_endings(tmp_path: Path) -> None:- """OpenClaw presumably reads the files as text — LF is safely cross-platform."""+ """The worker harness presumably reads the files as text — LF is safely cross-platform."""workspace = prepare_workspace(tmp_path, mission_id="m-1")raw = (workspace / "AGENTS.md").read_bytes()assert b"\r\n" not in raw, "Stubs must use LF line endings, not CRLF"def test_prepare_workspace_utf8_encoding(tmp_path: Path) -> None:- """UTF-8 because OpenClaw runs cross-platform."""+ """UTF-8 because the worker harness runs cross-platform."""workspace = prepare_workspace(tmp_path, mission_id="m-1")raw = (workspace / "AGENTS.md").read_bytes()- # UTF-8 BOM must NOT be present (interferes with OpenClaw's Markdown parser)+ # UTF-8 BOM must NOT be present (interferes with the worker harness's Markdown parser)assert not raw.startswith(b"\xef\xbb\xbf"), "Files must not start with UTF-8 BOM"@@ -202,12 +203,12 @@ def test_verify_injected_files_empty_list() -> None:def test_verify_injected_files_none_treated_as_pass() -> None:- """If OpenClaw delivers no report -> audit counts as green (not a fail)."""+ """If the worker harness delivers no report -> audit counts as green (not a fail)."""assert verify_injected_files(None) == []def test_verify_injected_files_ignores_entries_without_name() -> None:- """A schema break on OpenClaw's side is not a bridge bug."""+ """A schema break on the worker harness's side is not a bridge bug."""injected = [{"name": "AGENTS.md"},{"rawChars": 100},@@ -248,7 +249,7 @@ def test_expected_workspace_files_matches_spike_b9() -> None:def test_workspace_subdir_constant_is_workspace() -> None:- """`workspace/` matcht OpenClaws systemPromptReport.workspaceDir-Suffix."""+ """`workspace/` matches the Jarvis-Agent worker's systemPromptReport.workspaceDir suffix."""assert WORKSPACE_SUBDIR == "workspace"diff --git a/tests/missions/workers/test_claude_direct_provider_fallback.py b/tests/missions/workers/test_claude_direct_provider_fallback.pyindex 0bb95d8ca6..0ec7f6ded2 100644--- a/tests/missions/workers/test_claude_direct_provider_fallback.py+++ b/tests/missions/workers/test_claude_direct_provider_fallback.py@@ -8,7 +8,7 @@ verbatim worker error in ``data/jarvis_desktop.log`` was::ClaudeDirectWorker: primary provider is grok, expected claude-apiClaudeDirectWorker: primary provider is openai-codex, expected claude-api-Root cause: post-Welle-4 the OpenClaw-backed ``SubJarvisWorker`` was removed+Root cause: post-Welle-4 the openclaw-backed ``SubJarvisWorker`` was removed(the ~92% nested-claude hang), so ``jarvis.missions.init._worker_factory``routes EVERY ``[brain.sub_jarvis].provider`` that is not ``openai-codex`` /``chatgpt`` (grok, gemini, openai, openrouter, openclaw-claude, AND the unsetdiff --git a/tests/review/test_jarvis_agent_files.py b/tests/review/test_jarvis_agent_files.pyindex c9ec838663..2fb940f9e1 100644--- a/tests/review/test_jarvis_agent_files.py+++ b/tests/review/test_jarvis_agent_files.py@@ -20,7 +20,7 @@ REVIEWER_FILE = AGENTS_DIR / "jarvis-reviewer.md"def _split_frontmatter(text: str) -> tuple[dict, str]:"""Splits the YAML frontmatter from the Markdown body.- Expects the usual Pandoc/MkDocs/OpenClaw format:+ Expects the usual Pandoc/MkDocs/Jarvis-Agent format:---key: value---diff --git a/tests/review/test_pipeline_e2e.py b/tests/review/test_pipeline_e2e.pyindex 0ee659be91..1e5d25d57f 100644--- a/tests/review/test_pipeline_e2e.py+++ b/tests/review/test_pipeline_e2e.py@@ -38,7 +38,7 @@ pytestmark = [pytest.mark.e2e,pytest.mark.skipif(shutil.which("claude") is None,- reason="OpenClaw CLI not in PATH — set up OpenClaw first.",+ reason="claude CLI not in PATH — set up the claude CLI first.",),pytest.mark.skipif(not (@@ -47,7 +47,7 @@ pytestmark = [),reason=("No Anthropic auth (ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN) "- "— openclaw --bare needs explicit credentials."+ "— claude --print --bare needs explicit credentials."),),]diff --git a/tests/review/test_pipeline_e2e_multi_iter.py b/tests/review/test_pipeline_e2e_multi_iter.pyindex 678c815a9a..eb0b80b934 100644--- a/tests/review/test_pipeline_e2e_multi_iter.py+++ b/tests/review/test_pipeline_e2e_multi_iter.py@@ -34,11 +34,11 @@ pytestmark = [pytest.mark.e2e,pytest.mark.skipif(shutil.which("claude") is None,- reason="OpenClaw CLI not in PATH",+ reason="claude CLI not in PATH",),pytest.mark.skipif(not (os.environ.get("ANTHROPIC_API_KEY") or os.environ.get("CLAUDE_CODE_OAUTH_TOKEN")),- reason="No Anthropic auth — openclaw --bare requires explicit credentials.",+ reason="No Anthropic auth — claude --bare requires explicit credentials.",),]diff --git a/tests/review/test_spawns_unit.py b/tests/review/test_spawns_unit.pyindex aaa8a0c2d1..215e114d75 100644--- a/tests/review/test_spawns_unit.py+++ b/tests/review/test_spawns_unit.py@@ -135,7 +135,7 @@ def test_worker_spawner_calls_registered_jarvis_agent_harness(tmp_path: Path) ->assert isinstance(result, str) and result.strip()-def test_worker_spawner_falls_back_to_openclaw_alias_when_registered(+def test_worker_spawner_falls_back_to_legacy_openclaw_alias_when_registered(tmp_path: Path,) -> None:"""The pre-rename ``openclaw`` name is still accepted as a back-compatdiff --git a/tests/unit/agents/test_registry.py b/tests/unit/agents/test_registry.pyindex 940b157fd9..6527553709 100644--- a/tests/unit/agents/test_registry.py+++ b/tests/unit/agents/test_registry.py@@ -1,11 +1,11 @@"""Unit tests for jarvis.agents.registry.JarvisAgentRegistry.Covers:-- Event ingestion per event type (9 types: OpenClawTask*, BrainTurn*, ToolCall*,+- Event ingestion per event type (9 types: JarvisAgentTask*, BrainTurn*, ToolCall*,Harness* — the latter two as combined pairs).- Parent-child linking via ``parent_trace_id``.- Heuristic parent linking for HarnessDispatched (newest running- OpenClaw worker).+ Jarvis-Agent worker).- tree() vs. snapshot() vs. to_json().- TTL-based removal after completion.- Tolerant behavior on orphan events (parent not yet registered).@@ -48,7 +48,7 @@ def registry(bus: EventBus) -> JarvisAgentRegistry:# ────────────────────────────────────────────────────────────────@pytest.mark.asyncio-async def test_openclaw_task_started_creates_running_node(+async def test_jarvis_agent_task_started_creates_running_node(bus: EventBus,registry: JarvisAgentRegistry,monkeypatch: pytest.MonkeyPatch,@@ -85,11 +85,11 @@ async def test_openclaw_task_started_creates_running_node(# structured fields above for internal aggregation.assert node.name == "Nova-Agent"assert "opus" not in node.name- assert "OpenClaw" not in node.name+ assert "Jarvis-Agent" not in node.name@pytest.mark.asyncio-async def test_openclaw_task_completed_marks_success_with_metrics(+async def test_jarvis_agent_task_completed_marks_success_with_metrics(bus: EventBus, registry: JarvisAgentRegistry) -> None:tid = uuid4()@@ -112,7 +112,7 @@ async def test_openclaw_task_completed_marks_success_with_metrics(@pytest.mark.asyncio-async def test_openclaw_task_failed_marks_failed_with_error(+async def test_jarvis_agent_task_failed_marks_failed_with_error(bus: EventBus, registry: JarvisAgentRegistry) -> None:tid = uuid4()@@ -147,7 +147,7 @@ async def test_review_triggered_updates_iteration_counter(# ────────────────────────────────────────────────────────────────@pytest.mark.asyncio-async def test_brain_turn_tokens_aggregate_into_newest_openclaw(+async def test_brain_turn_tokens_aggregate_into_newest_jarvis_agent(bus: EventBus, registry: JarvisAgentRegistry) -> None:sj = uuid4()@@ -224,7 +224,7 @@ async def test_tool_call_completed_updates_matching_entry(# ────────────────────────────────────────────────────────────────@pytest.mark.asyncio-async def test_harness_dispatched_links_to_newest_running_openclaw(+async def test_harness_dispatched_links_to_newest_running_jarvis_agent(bus: EventBus, registry: JarvisAgentRegistry) -> None:sj = uuid4()@@ -342,7 +342,7 @@ async def test_orphan_child_tolerated_without_parent(@pytest.mark.asyncioasync def test_agent_node_default_fields_are_empty() -> None:"""Regression guard: AgentNode defaults are JSON-safe and empty."""- node = AgentNode(trace_id="x", kind="openclaw", name="test")+ node = AgentNode(trace_id="x", kind="jarvis_agent", name="test")assert node.context_hints == []assert node.prompts == []assert node.tool_calls == []@@ -355,10 +355,10 @@ async def test_agent_node_default_fields_are_empty() -> None:@pytest.mark.asyncio-async def test_mission_bus_bridge_creates_openclaw_node(+async def test_mission_bus_bridge_creates_jarvis_agent_node(registry: JarvisAgentRegistry,) -> None:- """attach_mission_bus: MissionDispatched -> AgentNode of kind=openclaw."""+ """attach_mission_bus: MissionDispatched -> AgentNode of kind=jarvis_agent."""from jarvis.missions.event_bus import MissionBusfrom jarvis.missions.events import (EventEnvelope,diff --git a/tests/unit/brain/test_cu_vs_spawn_routing.py b/tests/unit/brain/test_cu_vs_spawn_routing.pyindex 907be29f5d..3b681ed7f7 100644--- a/tests/unit/brain/test_cu_vs_spawn_routing.py+++ b/tests/unit/brain/test_cu_vs_spawn_routing.py@@ -8,8 +8,9 @@ Root cause (evidence, not guess): ``BrainManager._should_force_spawn`` hoists an``force_spawn_phrases`` match to an immediate ``True`` BEFORE the LLM router eversees the turn. That phrase list mixes two semantically different things:-* **vehicle names** (``subagent`` / ``spawn`` / ``openclaw`` / ``delegate``) —- the user named the worker. Unambiguous; absolute priority (mandate 2026-06-15).+* **vehicle names** (``subagent`` / ``spawn`` / ``jarvis-agent`` / ``openclaw``+ legacy alias / ``delegate``) — the user named the worker. Unambiguous;+ absolute priority (mandate 2026-06-15).* **depth markers** (``deep dive`` / ``gründlich`` / ``umfassend`` / …) — these # i18n-allowdescribe thoroughness, NOT a vehicle, and OVERLAP with computer-use requests.diff --git a/tests/unit/brain/test_manager_worker_commands.py b/tests/unit/brain/test_manager_worker_commands.pyindex 450e710cc0..efa6063f47 100644--- a/tests/unit/brain/test_manager_worker_commands.py+++ b/tests/unit/brain/test_manager_worker_commands.py@@ -1,4 +1,4 @@-"""Integration: BrainManager.generate() short-circuit for OpenClaw commands.+"""Integration: BrainManager.generate() short-circuit for Jarvis-Agent commands.AD-12 + AP-OC5: status/cancel phrases must NOT trigger a force-spawn, evenwhen their verb hangs off the ``spawn_verbs`` allowlist ("brich" i.e. an@@ -56,7 +56,7 @@ async def test_cancel_short_circuits_to_handler() -> None:async def cancel_fn(mission_id: str | None) -> str:calls.append(mission_id)- return "OpenClaw-Mission abgebrochen."+ return "Jarvis-Agent-Mission abgebrochen."manager.set_mission_command_handlers(status_fn=status_fn,@@ -65,7 +65,7 @@ async def test_cancel_short_circuits_to_handler() -> None:result = await manager.generate("Brich die Mission ab", use_history=False)- assert result == "OpenClaw-Mission abgebrochen."+ assert result == "Jarvis-Agent-Mission abgebrochen."assert calls == [None]diff --git a/tests/unit/brain/test_output_filter.py b/tests/unit/brain/test_output_filter.pyindex 711ff95ce6..2277af3cb3 100644--- a/tests/unit/brain/test_output_filter.py+++ b/tests/unit/brain/test_output_filter.py@@ -713,17 +713,17 @@ def test_legitimate_is_sentence_is_kept() -> None:assert "removed_tool_json" not in result.actions-# --- OpenClaw brand-name is now SCRUBBED (reversal 2026-05-24) ---+# --- retired OpenClaw brand-name is now SCRUBBED (reversal 2026-05-24) ---## The 2026-05-13 whitelist that let Jarvis say "OpenClaw-Subagent" is# reversed: the OpenClaw subprocess was retired (the worker runs Opus 4.7# directly), so naming it would announce a component that no longer exists.-# OPENCLAW_RE strips the brand token and JARGON_COMPOUND_RE removes the bare+# LEGACY_BRAND_RE strips the brand token and JARGON_COMPOUND_RE removes the bare# "Subagent" left behind.def test_openclaw_brand_name_is_scrubbed() -> None:- """OpenClaw must NOT survive voice output anymore (2026-05-24 reversal)."""+ """The retired OpenClaw brand name must NOT survive voice output (2026-05-24 reversal)."""text = ("Mach ich, ich lasse dafür einen OpenClaw-Subagent " # i18n-allow"ein Hello-World-Programm schreiben." # i18n-allow@@ -743,7 +743,7 @@ def test_bare_subagent_still_scrubbed_without_brand_prefix() -> None:def test_openclaw_compound_prefix_stripped_but_noun_kept() -> None:- """'OpenClaw-Mission' -> 'Mission' (brand prefix removed, noun stays)."""+ """The retired 'OpenClaw-Mission' brand prefix is stripped, the noun 'Mission' stays."""text = "Die OpenClaw-Mission ist fertig." # i18n-allowresult = scrub_for_voice(text)assert "OpenClaw" not in result.cleaned@@ -751,7 +751,7 @@ def test_openclaw_compound_prefix_stripped_but_noun_kept() -> None:def test_openclaw_subagenten_plural_also_scrubbed() -> None:- """The plural 'OpenClaw-Subagenten' must also be scrubbed."""+ """The plural 'OpenClaw-Subagenten' (retired brand) must also be scrubbed."""text = "Mehrere OpenClaw-Subagenten arbeiten parallel." # i18n-allowresult = scrub_for_voice(text)assert "OpenClaw" not in result.cleaneddiff --git a/tests/unit/brain/test_router_prompt_tool_parity.py b/tests/unit/brain/test_router_prompt_tool_parity.pyindex 11dc26fc7f..cb096f178f 100644--- a/tests/unit/brain/test_router_prompt_tool_parity.py+++ b/tests/unit/brain/test_router_prompt_tool_parity.py@@ -38,7 +38,7 @@ def test_phantom_direct_tools_stay_out_of_router_tools() -> None:present = [ep for ep in _PHANTOM_EP_NAMES if ep in ROUTER_TOOLS]assert not present, (f"{present} are in ROUTER_TOOLS — the router is a pure dispatcher; "- f"direct-action tools belong behind the OpenClaw bridge (ADR-0011)."+ f"direct-action tools belong behind the Jarvis-Agents bridge (ADR-0011).")diff --git a/tests/unit/brain/test_routing.py b/tests/unit/brain/test_routing.pyindex 07d91ec922..9ebb7f9867 100644--- a/tests/unit/brain/test_routing.py+++ b/tests/unit/brain/test_routing.py@@ -697,7 +697,7 @@ def test_computer_use_in_router_tools() -> None:The router reaches the live desktop ONLY when this entry-point name is inthe frozenset — the loader filters entry-points against ROUTER_TOOLS.- Without it the brain has no honest desktop path: spawn-openclaw runs in an+ Without it the brain has no honest desktop path: spawn-worker runs in anisolated worktree (cannot touch the desktop) and the dispatch-to-harnessindirection was never described as desktop control, so the model refused orinvented a tool for "öffne ein Terminal".@@ -1052,9 +1052,9 @@ def test_router_tools_stays_frozenset() -> None:def test_dispatch_to_harness_not_in_router_tools() -> None:"""``dispatch-to-harness`` must NOT be an LLM-visible router tool.- Phantom-openclaw regression (forensic 2026-06-28): the tool's raw ``harness``- parameter let the brain request ``harness="openclaw"`` — an unregistered- harness (Welle-4 removal) — which surfaced a raw "Harness not available"+ Phantom-harness regression (forensic 2026-06-28): the tool's raw ``harness``+ parameter let the brain request the retired ``harness="openclaw"`` — an+ unregistered harness (Welle-4 removal) — which surfaced a raw "Harness not available"KeyError to voice. Heavy sub-agent work is ``spawn-worker``; live desktopwork is ``computer-use``. The tool class still exists for the INTERNALlocal-action fast path, but it must never be router-selectable again.@@ -1130,8 +1130,8 @@ def test_spawn_worker_in_router_tools() -> None:Welle-4-Migration: vorher pruefte der Test zusaetzlich dass das alteTool NICHT in ``SUB_TOOLS`` landet (D9-Recursion-Schutz). ``SUB_TOOLS``- ist nach der OpenClaw-Bridge-Migration geloescht (siehe- docs/openclaw-bridge.md §11) — Recursion-Schutz wird jetzt auf+ ist nach der Jarvis-Agent-Bridge-Migration geloescht (siehe+ docs/jarvis-agents-bridge.md §11) — Recursion-Schutz wird jetzt aufMission-Manager-Ebene durchgesetzt (Worker hat keinen Spawn-Tool-Zugriff)."""@@ -1771,7 +1771,7 @@ def test_router_tools_is_pure_dispatcher_set() -> None:"spawn-worker",# NB: ``dispatch-to-harness`` was REMOVED from the LLM-visible router# set on 2026-06-28 (ADR-0011 amendment "dispatch-to-harness removal").- # Its raw ``harness`` param let the brain request a phantom+ # Its raw ``harness`` param let the brain request a phantom, retired# ``harness="openclaw"`` (unregistered, Welle-4 removal), surfacing a# raw "Harness not available" KeyError to voice. Heavy work →# spawn-worker, desktop → computer-use. It must NOT reappear here;@@ -1885,7 +1885,7 @@ def test_router_tools_is_pure_dispatcher_set() -> None:f"{sorted(expected)}. Persona-Mandat Phase 3 + Master-Plan §22 + ""ADR-0011 (inkl. Phase-7/8/Awareness-Erweiterungen + Welle-4-Migration). ""Direkt-Aktionen wie open_app/type_text/whoami DUERFEN NICHT "- "hinzu — die gehoeren an die OpenClaw-Bridge. Sanktionierte Ausnahmen "+ "hinzu — die gehoeren an die Jarvis-Agent-Bridge. Sanktionierte Ausnahmen ""sind deterministische Tools mit eigenem ADR-0011-Eintrag ""(wiki-ingest, update-profile, search-web).")@@ -2798,10 +2798,11 @@ def test_is_heavy_research_stays_inline(utterance: str) -> None:# ---------------------------------------------------------------------------# User mandate (2026-06-15): "When I say subagent, it HAS to spawn a subagent."#-# An EXPLICIT heavy-work trigger ("subagent", "spawn", "openclaw", "delegate",-# …) names the execution vehicle — it is an UNAMBIGUOUS spawn request and must-# outrank the disambiguation guards that exist only to suppress AMBIGUOUS,-# implicit spawns: the instructional/pointer/navigation/smalltalk/open-app+# An EXPLICIT heavy-work trigger ("subagent", "spawn", "jarvis-agent",+# "openclaw" legacy alias, "delegate", …) names the execution vehicle — it is+# an UNAMBIGUOUS spawn request and must outrank the disambiguation guards+# that exist only to suppress AMBIGUOUS, implicit spawns: the+# instructional/pointer/navigation/smalltalk/open-app# guards in ``_should_force_spawn`` AND, end-to-end through ``generate()``, the# capability "I can't do that" refusal and the navigation fast-path. The bug:# those guards were checked BEFORE the explicit-trigger check, so a phrasingdiff --git a/tests/unit/brain/test_self_mod_tools.py b/tests/unit/brain/test_self_mod_tools.pyindex d793854b87..b40ad9d0fd 100644--- a/tests/unit/brain/test_self_mod_tools.py+++ b/tests/unit/brain/test_self_mod_tools.py@@ -596,11 +596,11 @@ class TestToolVisibility:Wave-4 migration: previously the test checked ``SUB_TOOLS`` (thesub-Jarvis-tier tool set). The sub-Jarvis tier was replaced by the- OpenClaw bridge (see docs/openclaw-bridge.md §11) — ``SUB_TOOLS``- has been deleted. Self-mod tools are now registered directly in the- router loader (``factory.py:_load_tools_for_tier`` with- ``tier="router"``), and the OpenClaw worker has no access to the- router's tool set (subprocess boundary).+ Jarvis-Agent bridge (see docs/jarvis-agents-bridge.md §11) —+ ``SUB_TOOLS`` has been deleted. Self-mod tools are now registered+ directly in the router loader (``factory.py:_load_tools_for_tier``+ with ``tier="router"``), and the Jarvis-Agent worker has no access+ to the router's tool set (subprocess boundary)."""from jarvis.brain.factory import ROUTER_TOOLS, SELF_MOD_TOOL_NAMES_ROUTERdiff --git a/tests/unit/brain/test_skill_routing_guard.py b/tests/unit/brain/test_skill_routing_guard.pyindex c066b4a778..b2983325a7 100644--- a/tests/unit/brain/test_skill_routing_guard.py+++ b/tests/unit/brain/test_skill_routing_guard.py@@ -234,7 +234,7 @@ def test_turn_hint_none_without_match() -> None:def test_explicit_spawn_trigger_beats_skill_match(tmp_path: Path) -> None:"""AD-S9: when the user explicitly names the execution vehicle- ("Sub-Agent", "OpenClaw", "spawne", "deep dive", …), the force-spawn wins+ ("Sub-Agent", "Jarvis-Agent", "spawne", "deep dive", …), the force-spawn winsover a topical skill match. Live bug 2026-06-10 14:34: "spawne einenSub-Agent … Gmail …" matched the gmail pairing skill, AD-S3 disarmedforce-spawn, the turn ran inline and died mute — no mission, no ACK,diff --git a/tests/unit/core/test_capabilities.py b/tests/unit/core/test_capabilities.pyindex 9af31a7ede..87371230c0 100644--- a/tests/unit/core/test_capabilities.py+++ b/tests/unit/core/test_capabilities.py@@ -323,7 +323,8 @@ class TestSeedRegistry:"tool.run-shell","tool.screen-snapshot",# NB: tool.dispatch-to-harness removed 2026-06-28 (no longer an- # LLM-visible router tool — phantom-openclaw routing fix).+ # LLM-visible router tool — phantom-vehicle routing fix; the dead+ # 'openclaw' capability id was still being advertised)."tool.spawn-worker","tool.awareness-snapshot","tool.awareness-recall",@@ -383,13 +384,14 @@ class TestSeedRegistry:"harness.open-interpreter",}.isdisjoint(ids)- def test_no_capability_advertises_openclaw(self) -> None:+ def test_no_capability_advertises_legacy_harness_name(self) -> None:"""No seeded capability may advertise the phantom 'openclaw' vehicle.- OpenClaw is unregistered (Welle-4 removal). Advertising it in a router- tool's verbs/objects/description mis-routed "start a subagent" turns- toward a vehicle that cannot run (forensic 2026-06-28). Heavy sub-agent- work is tool.spawn-worker.+ The legacy 'openclaw' internal name is unregistered (Welle-4 removal,+ superseded by Jarvis-Agents). Advertising it in a router tool's+ verbs/objects/description mis-routed "start a subagent" turns toward+ a vehicle that cannot run (forensic 2026-06-28). Heavy sub-agent work+ is tool.spawn-worker."""for cap in self.reg.all():haystack = " ".join(diff --git a/tests/unit/diagnostics/test_doctor_diagnostics.py b/tests/unit/diagnostics/test_doctor_diagnostics.pyindex afffbef699..9e32e35457 100644--- a/tests/unit/diagnostics/test_doctor_diagnostics.py+++ b/tests/unit/diagnostics/test_doctor_diagnostics.py@@ -1,7 +1,7 @@"""Tests for the completeness self-check (``jarvis/diagnostics/doctor.py``).-The doctor is the generalised defence against the phantom-openclaw class of bug-(2026-06-28): a name advertised to the brain that resolves to no registered+The doctor is the generalised defence against the phantom-jarvis-agent class of+bug (2026-06-28): a name advertised to the brain that resolves to no registeredbackend. These tests pin the two highest-value checks — phantom router tools andinert harness config — plus the isolation guarantee that one crashing probe neverblinds the rest of the report.@@ -42,14 +42,14 @@ def test_router_tools_detects_phantom(monkeypatch) -> None:assert "advertised but not registered" in findings[0].message-def test_harness_config_flags_inert_openclaw() -> None:+def test_harness_config_flags_inert_legacy_openclaw_alias() -> None:"""[harness.openclaw].enabled=true without registration → warn (dead config)."""config = SimpleNamespace(harness=SimpleNamespace(openclaw=SimpleNamespace(enabled=True)),)findings = check_harness_config(config)warns = [f for f in findings if f.status == "warn"]- assert warns, "inert openclaw config was not flagged"+ assert warns, "inert legacy openclaw alias config was not flagged"assert "inert" in warns[0].message@@ -57,7 +57,7 @@ def test_harness_config_flags_unregistered_enabled_adapter() -> None:config = SimpleNamespace(harness=SimpleNamespace(enabled=["python-script", "mcp-remote"],- openclaw=None,+ jarvis_agent=None,),)@@ -113,7 +113,7 @@ def test_brain_provider_info_when_set() -> None:def test_run_doctor_aggregates_all_categories() -> None:config = SimpleNamespace(- harness=SimpleNamespace(openclaw=None),+ harness=SimpleNamespace(jarvis_agent=None),brain=SimpleNamespace(primary="gemini"),)findings = run_doctor(config)@@ -133,7 +133,7 @@ def test_run_doctor_isolates_a_crashing_check(monkeypatch) -> None:monkeypatch.setattr(doctor, "check_router_tools", boom)config = SimpleNamespace(- harness=SimpleNamespace(openclaw=None),+ harness=SimpleNamespace(jarvis_agent=None),brain=SimpleNamespace(primary="gemini"),)findings = run_doctor(config)diff --git a/tests/unit/friends/test_status_filter.py b/tests/unit/friends/test_status_filter.pyindex 6d31053c11..402cbe2883 100644--- a/tests/unit/friends/test_status_filter.py+++ b/tests/unit/friends/test_status_filter.py@@ -184,7 +184,7 @@ def test_minimal_blocks_mission_started() -> None:assert result is None-def test_minimal_blocks_openclaw() -> None:+def test_minimal_blocks_jarvis_agent() -> None:"""'minimal' blocks Jarvis-Agent events (only allowed from 'detailed')."""event = JarvisAgentTaskStarted()result = StatusFilter.filter(event, "minimal")@@ -213,14 +213,14 @@ def test_standard_passes_mission_completed_with_success() -> None:assert "cost_usd" not in result.fields-def test_standard_blocks_openclaw() -> None:+def test_standard_blocks_jarvis_agent() -> None:"""'standard' blocks JarvisAgentTaskStarted."""event = JarvisAgentTaskStarted()result = StatusFilter.filter(event, "standard")assert result is None-def test_detailed_passes_openclaw_with_summary_only() -> None:+def test_detailed_passes_jarvis_agent_with_summary_only() -> None:"""'detailed' lets JarvisAgentTaskStarted through, BUT only the summary field.CRITICAL: utterance + private_secret on the event must NOT pass through.@@ -251,7 +251,7 @@ def test_detailed_passes_voice_session_ended() -> None:assert result.timestamp_ns == 2_000-def test_detailed_passes_openclaw_completed() -> None:+def test_detailed_passes_jarvis_agent_completed() -> None:event = JarvisAgentTaskCompleted()result = StatusFilter.filter(event, "detailed")assert result is not Nonediff --git a/tests/unit/memory/wiki/test_prompt.py b/tests/unit/memory/wiki/test_prompt.pyindex 1d40d27905..01be384914 100644--- a/tests/unit/memory/wiki/test_prompt.py+++ b/tests/unit/memory/wiki/test_prompt.py@@ -61,17 +61,17 @@ def test_select_top_slugs_zero_overlap_returns_empty() -> None:def test_select_top_slugs_ranks_by_overlap_then_alpha() -> None:"""Higher overlap wins; ties break alphabetically for deterministic output."""- source = "ruben pushes the awareness layer for the openclaw bridge"+ source = "ruben pushes the awareness layer for the jarvis-agent bridge"candidates = ["ruben-luetke","awareness-layer",- "openclaw-bridge",+ "jarvis-agent-bridge","phase-6","kontrollierer",]ranked = select_top_slugs(source, candidates)assert "awareness-layer" in ranked- assert "openclaw-bridge" in ranked+ assert "jarvis-agent-bridge" in rankedassert "ruben-luetke" in rankedassert "kontrollierer" not in ranked@@ -88,10 +88,10 @@ def test_select_top_slugs_respects_limit() -> None:def test_select_top_slugs_ignores_stopwords() -> None:"""Common DE/EN function words don't dominate the ranking."""- source = "der und die das the and the openclaw bridge" # i18n-allow: German/English stopword mix, content under test- candidates = ["der-thing", "openclaw-bridge"]+ source = "der und die das the and the jarvis-agent bridge" # i18n-allow: German/English stopword mix, content under test+ candidates = ["der-thing", "jarvis-agent-bridge"]result = select_top_slugs(source, candidates)- assert result and result[0] == "openclaw-bridge"+ assert result and result[0] == "jarvis-agent-bridge"# ---------------------------------------------------------------------@@ -238,10 +238,10 @@ def test_build_user_prompt_includes_top_slugs() -> None:"""The keyword-overlap shortlist is rendered as bullet hints."""prompt = build_user_prompt(- "source-label", "some content", top_slugs=["ruben-luetke", "openclaw-bridge"],+ "source-label", "some content", top_slugs=["ruben-luetke", "jarvis-agent-bridge"],)assert "- ruben-luetke" in prompt- assert "- openclaw-bridge" in prompt+ assert "- jarvis-agent-bridge" in promptdef test_build_user_prompt_handles_no_top_slugs() -> None:diff --git a/tests/unit/plugins/stt/test_groq_api_bias_prompt.py b/tests/unit/plugins/stt/test_groq_api_bias_prompt.pyindex 194845727d..057807396b 100644--- a/tests/unit/plugins/stt/test_groq_api_bias_prompt.py+++ b/tests/unit/plugins/stt/test_groq_api_bias_prompt.py@@ -68,7 +68,7 @@ async def test_prompt_is_sent_when_constructor_param_is_set() -> None:client = httpx.AsyncClient(transport=httpx.MockTransport(handler))stt = GroqWhisperAPI(api_key="test-key",- prompt="Jarvis, OpenClaw, Mission-Manager, Subagent.",+ prompt="Jarvis, Jarvis-Agent, Mission-Manager, Subagent.",http_client=client,)try:@@ -78,7 +78,7 @@ async def test_prompt_is_sent_when_constructor_param_is_set() -> None:value = _extract_form_field(captured["content"], "prompt")assert value is not None, "prompt field must appear in the multipart body"- assert "Jarvis" in value and "OpenClaw" in value+ assert "Jarvis" in value and "Jarvis-Agent" in value@pytest.mark.asynciodiff --git a/tests/unit/plugins/tool/test_computer_use_tool.py b/tests/unit/plugins/tool/test_computer_use_tool.pyindex 56ca507dd2..f5728c3718 100644--- a/tests/unit/plugins/tool/test_computer_use_tool.py+++ b/tests/unit/plugins/tool/test_computer_use_tool.py@@ -103,7 +103,7 @@ def test_tool_identity_and_schema() -> None:assert "goal" in tool.schema["properties"]assert tool.schema["required"] == ["goal"]# The description must clearly signal LIVE-desktop control so the model- # selects it over spawn_openclaw / dispatch_to_harness.+ # selects it over spawn_worker / spawn_openclaw (legacy alias) / dispatch_to_harness.assert "desktop" in tool.description.lower()diff --git a/tests/unit/plugins/tool/test_spawn_worker_mission_prompt.py b/tests/unit/plugins/tool/test_spawn_worker_mission_prompt.pyindex ecd1c2a890..b6516f9699 100644--- a/tests/unit/plugins/tool/test_spawn_worker_mission_prompt.py+++ b/tests/unit/plugins/tool/test_spawn_worker_mission_prompt.py@@ -1,4 +1,4 @@-"""Tests for the mission-prompt construction in spawn_openclaw.+"""Tests for the mission-prompt construction in spawn_worker.Live incident 2026-05-29 (mission 019e70a9): the user's request reached theworker as a VAD-cut fragment. STT captured only 'die Detailwürfelspiele.html'diff --git a/tests/unit/setup/test_wizard_mic_degrade.py b/tests/unit/setup/test_wizard_mic_degrade.pyindex c1f7189902..52329fde2a 100644--- a/tests/unit/setup/test_wizard_mic_degrade.py+++ b/tests/unit/setup/test_wizard_mic_degrade.py@@ -4,7 +4,7 @@ Regression guard: `sd.query_devices()` raises (e.g. PortAudioError "library notfound") on any host with no audio backend — a headless server, or a Linuxdesktop without libportaudio2. If that error propagated, the wizard would diebefore step_finalize writes the .setup-complete marker, and the app would re-run-its whole onboarding (the same failure mode as the step-7 OpenClaw crash).+its whole onboarding (the same failure mode as the step-7 Jarvis-Agent crash)."""from __future__ import annotationsdiff --git a/tests/unit/skills/test_authoring_service.py b/tests/unit/skills/test_authoring_service.pyindex 5ea303ffe0..724de5d5fe 100644--- a/tests/unit/skills/test_authoring_service.py+++ b/tests/unit/skills/test_authoring_service.py@@ -1,7 +1,7 @@"""Tests for the deterministic user-skill authoring service.``SkillAuthoringService`` backs ``POST /api/skills`` — the "New skill" form in-the desktop app. Unlike the OpenClaw-author *mission* pipeline+the desktop app. Unlike the Jarvis-Agent-author *mission* pipeline(``SkillAuthoringRunner``), this path takes a structured request (name,description, body, triggers) and writes a SKILL.md deterministically, with NObrain involved, so it works on a headless €5 VPS.diff --git a/tests/unit/speech/test_announcement_bridge.py b/tests/unit/speech/test_announcement_bridge.pyindex 808b708a0f..d1edcbf60d 100644--- a/tests/unit/speech/test_announcement_bridge.py+++ b/tests/unit/speech/test_announcement_bridge.py@@ -234,7 +234,7 @@ async def test_announcement_without_bus_is_safe() -> None:@pytest.mark.asyncio-async def test_openclaw_spawn_announcement_is_silent() -> None:+async def test_jarvis_agent_spawn_announcement_is_silent() -> None:"""``JarvisAgentAnnouncement`` must NOT speak via TTS anymore.Spawn-ACK history:@@ -271,7 +271,7 @@ async def test_openclaw_spawn_announcement_is_silent() -> None:@pytest.mark.asyncio-async def test_openclaw_background_success_with_summary_speaks() -> None:+async def test_jarvis_agent_background_success_with_summary_speaks() -> None:"""``JarvisAgentBackgroundCompleted(success=True, summary=...)`` → Voice-Ansage."""bus = EventBus()tts = FakeTTS()@@ -295,7 +295,7 @@ async def test_openclaw_background_success_with_summary_speaks() -> None:@pytest.mark.asyncio-async def test_openclaw_background_success_no_summary_speaks_fertig() -> None: # i18n-allow: identifier name, not translatable prose+async def test_jarvis_agent_background_success_no_summary_speaks_fertig() -> None: # i18n-allow: identifier name, not translatable prose"""Success with no summary → ``"Fertig."`` (output-filter-safe).""" # i18n-allow: quotes the actual German TTS output under testbus = EventBus()tts = FakeTTS()@@ -313,7 +313,7 @@ async def test_openclaw_background_success_no_summary_speaks_fertig() -> None:@pytest.mark.asyncio-async def test_openclaw_background_failure_speaks_error() -> None:+async def test_jarvis_agent_background_failure_speaks_error() -> None:"""``success=False`` → error announcement ``"Das hat nicht geklappt. ..."``.""" # i18n-allow: quotes the actual German TTS output under testbus = EventBus()tts = FakeTTS()@@ -398,7 +398,7 @@ async def test_empty_announcement_is_not_spoken() -> None:@pytest.mark.asyncio-async def test_openclaw_spawn_action_echo_is_not_spoken() -> None:+async def test_jarvis_agent_spawn_action_echo_is_not_spoken() -> None:"""The spawn voice path has been completely silent since 2026-05-12.History of this test:@@ -431,7 +431,7 @@ async def test_openclaw_spawn_action_echo_is_not_spoken() -> None:@pytest.mark.asyncio-async def test_openclaw_completion_signal_does_speak_with_summary() -> None:+async def test_jarvis_agent_completion_signal_does_speak_with_summary() -> None:"""The completion voice message MUST speak — user request 2026-05-11.Before 2026-05-11 this path was suppressed and the predecessor testdiff --git a/tests/unit/speech/test_announcement_user_speaking_guard.py b/tests/unit/speech/test_announcement_user_speaking_guard.pyindex b42e0c15f1..eec406d984 100644--- a/tests/unit/speech/test_announcement_user_speaking_guard.py+++ b/tests/unit/speech/test_announcement_user_speaking_guard.py@@ -162,7 +162,7 @@ async def test_interrupt_priority_punches_through_user_speaking() -> None:@pytest.mark.asyncioasync def test_background_completion_while_user_speaking_is_deferred() -> None:- """The direct OpenClaw-background readback path (which bypasses+ """The direct Jarvis-Agent-background readback path (which bypasses``_on_announcement`` and plays straight to the player) must also respect thefloor: defer while the user speaks, flush at the boundary."""from jarvis.core.events import JarvisAgentBackgroundCompleteddiff --git a/tests/unit/speech/test_background_readback_language.py b/tests/unit/speech/test_background_readback_language.pyindex 6f034d17a1..c1a3e2dae5 100644--- a/tests/unit/speech/test_background_readback_language.py+++ b/tests/unit/speech/test_background_readback_language.py@@ -1,4 +1,4 @@-"""The OpenClaw background-completed readback ("Done." / "That didn't work.")+"""The Jarvis-Agent background-completed readback ("Done." / "That didn't work.")must follow the resolved conversation language, not a hardcoded German literal.Forensic 2026-06-23 family: announcement emitters bypassed the resolver. Thisdiff --git a/tests/unit/speech/test_idle_keeps_session_during_cu.py b/tests/unit/speech/test_idle_keeps_session_during_cu.pyindex bfa8c6f873..7ef1940cd2 100644--- a/tests/unit/speech/test_idle_keeps_session_during_cu.py+++ b/tests/unit/speech/test_idle_keeps_session_during_cu.py@@ -7,7 +7,7 @@ naturally said nothing while watching the agent work. The mission keptclicking invisibly for two more minutes (orb gone, session closed) andfinally spoke its failure announcement into a dead session.-The session already knows how to stay open for OpenClaw spawns+The session already knows how to stay open for Jarvis-Agent spawns(``_live_spawn_watchdogs``); these tests pin the same courtesy for liveComputer-Use missions via ``cu_mission_active()`` /``SpeechPipeline._background_mission_in_flight``.diff --git a/tests/unit/speech/test_jarvis_agent_readback.py b/tests/unit/speech/test_jarvis_agent_readback.pyindex b80c8a79f6..cc05666994 100644--- a/tests/unit/speech/test_jarvis_agent_readback.py+++ b/tests/unit/speech/test_jarvis_agent_readback.py@@ -8,7 +8,7 @@ Three behaviours, all on the out-of-band announcement path:offloaded result is never silently dropped (AD-OE6).* **Speaking indicator** — the readback drives the Supervisor ``SPEAKING`` statewhile it plays (so the mascot/orb animates), then restores the prior state.-* **Keep listening** — the OpenClaw-background direct path stamps the readback+* **Keep listening** — the Jarvis-Agent-background direct path stamps the readbackgrace timestamp so ``_active_session`` keeps the mic open afterward.Companion to ``test_announcement_bridge.py``; reuses its fake shapes.@@ -216,13 +216,13 @@ async def test_preamble_does_not_animate_speaking() -> None:# ---------------------------------------------------------------------------# Task 4 — OpenClaw-background readback re-arms the keep-listening grace+# Task 4 — Jarvis-Agent-background readback re-arms the keep-listening grace# --------------------------------------------------------------------------@pytest.mark.asyncioasync def test_background_completed_arms_readback_grace() -> None:- """The OpenClaw-background DIRECT path plays straight to the player (not via+ """The Jarvis-Agent-background DIRECT path plays straight to the player (not via_on_announcement), so it must stamp the readback-grace timestamp itself —otherwise _active_session idle-times-out seconds after the result."""bus = EventBus()diff --git a/tests/unit/speech/test_long_composition_patience.py b/tests/unit/speech/test_long_composition_patience.pyindex 64dd0e9229..87c3f5cffe 100644--- a/tests/unit/speech/test_long_composition_patience.py+++ b/tests/unit/speech/test_long_composition_patience.py@@ -3,7 +3,7 @@Root cause (deep dive 2026-06-16): a long spoken prompt was chopped into ~12turns because the 1.5 s silence window is too short for composing, and theexisting patience only widened on narrow delegation keywords (sub-agent / spawn-/ delegate / openclaw). A prompt full of "Agents" / "Agent Team" never matched,+/ delegate / openclaw legacy alias). A prompt full of "Agents" / "Agent Team" never matched,so the window stayed 1.5 s and cut at every thinking pause. These tests pin avocabulary-independent trigger: a long partial extends the window, while a shortcommand stays snappy.diff --git a/tests/unit/speech/test_post_interrupt_quiet_window.py b/tests/unit/speech/test_post_interrupt_quiet_window.pyindex 668bbd1c4e..36e045e387 100644--- a/tests/unit/speech/test_post_interrupt_quiet_window.py+++ b/tests/unit/speech/test_post_interrupt_quiet_window.py@@ -189,7 +189,7 @@ async def test_completion_within_quiet_window_is_not_suppressed() -> None:"""Only ``kind == "preamble"`` is gated — completion readbacks pass through.- A completion (e.g. ``OpenClawBackgroundCompleted`` → "Fertig.") that # i18n-allow+ A completion (e.g. ``JarvisAgentBackgroundCompleted`` → "Fertig.") that # i18n-allowlands inside the quiet window after a mission failure on anothertrack must still be voiced. Suppressing it would lose informationthe user actually needs.diff --git a/tests/unit/test_jarvis_agent_board_listing.py b/tests/unit/test_jarvis_agent_board_listing.pyindex a74b9db9b6..25b985acd2 100644--- a/tests/unit/test_jarvis_agent_board_listing.py+++ b/tests/unit/test_jarvis_agent_board_listing.py@@ -1,7 +1,8 @@"""Empirical proof that a dispatched mission surfaces on the Sub-Agents board.-Locks the post-Welle-4 wiring: ``spawn_openclaw`` dispatches a Mission, the-MissionManager publishes Phase-6 ``EventEnvelope``s on its ``MissionBus``, and+Locks the post-Welle-4 wiring: the spawn tool (``spawn_worker``, formerly+``spawn_openclaw``) dispatches a Mission, the MissionManager publishes+Phase-6 ``EventEnvelope``s on its ``MissionBus``, andthe ``JarvisAgentRegistry`` (bridged via :meth:`attach_mission_bus`) must translatethem into ``AgentNode``s that ``GET /api/sub-agents/tree`` serves.@@ -36,7 +37,7 @@ async def _settle() -> None:await asyncio.sleep(0)-def _openclaw_node(registry: JarvisAgentRegistry) -> dict:+def _jarvis_agent_node(registry: JarvisAgentRegistry) -> dict:nodes = [n for n in registry.to_json()["all"].values() if n["kind"] == "jarvis_agent"]assert len(nodes) == 1, registry.to_json()return nodes[0]@@ -61,7 +62,7 @@ async def test_dispatched_mission_appears_in_tree() -> None:tree = registry.to_json()assert tree["count"] == 1, tree- node = _openclaw_node(registry)+ node = _jarvis_agent_node(registry)assert node["status"] == "running"finally:registry.clear()@@ -100,7 +101,7 @@ async def test_worker_spawn_and_approval_update_node() -> None:await _settle()tree = registry.to_json()- # one mission (openclaw) node + one worker (harness) node+ # one mission (jarvis_agent) node + one worker (harness) nodeassert tree["count"] == 2, treeawait bus.publish(@@ -120,7 +121,7 @@ async def test_worker_spawn_and_approval_update_node() -> None:)await _settle()- node = _openclaw_node(registry)+ node = _jarvis_agent_node(registry)assert node["status"] == "completed"finally:registry.clear()@@ -151,7 +152,7 @@ async def test_failed_mission_marks_node_failed() -> None:)await _settle()- node = _openclaw_node(registry)+ node = _jarvis_agent_node(registry)assert node["status"] == "failed"assert node["error"] == "boom"finally:diff --git a/tests/unit/test_jarvis_agent_harness_config.py b/tests/unit/test_jarvis_agent_harness_config.pyindex 73cfccb38d..f40f9b61da 100644--- a/tests/unit/test_jarvis_agent_harness_config.py+++ b/tests/unit/test_jarvis_agent_harness_config.py@@ -1,6 +1,6 @@"""Tests for JarvisAgentHarnessConfig + JarvisAgentNotificationConfig (Wave 2).-Three blocks per docs/openclaw-bridge.md §4.2:+Three blocks per docs/jarvis-agents-bridge.md §4.2:1. Schema defaults (Pydantic construction without TOML data)2. Live-load from jarvis.toml + Pydantic auto-unmarshal3. Validation error paths (invalid values, missing required fields)@@ -79,12 +79,12 @@ def test_jarvis_agent_notification_defaults():assert n.voice_when_active is True-def test_harness_config_openclaw_optional_default_none():+def test_harness_config_jarvis_agent_optional_default_none():"""Without an explicit block, ``HarnessConfig.jarvis_agent is None``.Guarantees: existing configs without ``[harness.openclaw]`` / ``[harness.jarvis_agent]``- still load. The field was renamed openclaw → jarvis_agent in the 2026-06-29- Jarvis-Agents rename; the TOML alias accepts both section names.+ still load. The field was renamed to jarvis_agent in the 2026-06-29+ Jarvis-Agents rename; the TOML alias still accepts the legacy section name."""h = HarnessConfig()assert h.enabled == ["python-script"]@@ -108,7 +108,7 @@ def test_jarvis_agent_harness_model_can_be_pinned_explicitly():# 2. Live-load from jarvis.toml# -----------------------------------------------------------------------def test_legacy_openclaw_section_is_accepted_from_portable_fixture(tmp_path: Path):+def test_legacy_jarvis_agent_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)@@ -143,9 +143,10 @@ def test_legacy_openclaw_section_is_accepted_from_portable_fixture(tmp_path: Patdef 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.+ A jarvis.toml using the legacy ``[harness.openclaw]`` section name is+ still accepted for back-compat; the ``validation_alias`` on+ HarnessConfig.jarvis_agent accepts both names, so this field is+ populated regardless."""cfg = load_config(_write_legacy_harness_config(tmp_path))assert cfg.harness.jarvis_agent is not None, (diff --git a/tests/unit/test_subprocess_harness_concurrency.py b/tests/unit/test_subprocess_harness_concurrency.pyindex 5f18ba5be7..a481b6d40e 100644--- a/tests/unit/test_subprocess_harness_concurrency.py+++ b/tests/unit/test_subprocess_harness_concurrency.py@@ -1,8 +1,8 @@"""Regression test: ``SubprocessHarness.invoke()`` is concurrency-safe.-Bug 2026-04-29: ``multi_spawn`` with 3 parallel openclaw calls failed+Bug 2026-04-29: ``multi_spawn`` with 3 parallel Jarvis-Agent calls faileddeterministically in production in <10ms. Root cause: ``HarnessManager.get()``-caches ONE ``OpenClawHarness`` instance; concurrent ``invoke()`` calls on+caches ONE cached harness instance; concurrent ``invoke()`` calls onthe same instance raced on ``self._process`` and ``self._cancelled``.Fix: invocation-local variables + ``self._active_processes: set`` for