Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

docs: consolidate in-flight documentation + design notes

Ruben Lütked247730037a9
diff --git a/docs/BUGS.md b/docs/BUGS.md
index fe0528cf5d..6a6952c715 100644
--- a/docs/BUGS.md
+++ b/docs/BUGS.md
@@ -34,7 +34,7 @@ Token cost per failed spawn: ~40k tokens × 4 providers ≈ $0.13.
- **File**: `jarvis/core/config.py:156-168` (BrainRoutingConfig.spawn_verbs)
- **Symptom**: User says "Spawn sub-agents.", Router-Brain responds
- "Hallo Ruben, was kann ich für dich tun?" ("Hello Ruben, what can I do for you?") — no action.
+ "Hallo Alex, was kann ich für dich tun?" ("Hello Alex, what can I do for you?") — no action.
- **Root cause**: The `_should_force_sub_jarvis` heuristic matches against the
`spawn_verbs` list (DE+EN). The list contained `umsetz`, `bau`, `oeffne`,
`deploy`, `read`, `write`, `build`, `open`, `install` — but not
@@ -187,7 +187,7 @@ Token cost per failed spawn: ~40k tokens × 4 providers ≈ $0.13.
- **Symptom**: 50% of voice sessions on 2026-04-29 had single-word
hallucinations ("Ding." — "Thing.", "Began.", "Fliegen." — "Flying.", "Let's get up.",
"Hier geht's dir." — "Here it's going well for you."). Confidence < 0.65. Brain responds politely
- ("Was gibt's, Ruben?" — "What's up, Ruben?") — burns ~7k tokens per phantom session.
+ ("Was gibt's, Alex?" — "What's up, Alex?") — burns ~7k tokens per phantom session.
- **Root cause**: faster-whisper configuration too permissive, wake-word
threshold matches on background noise.
- **Fix status**: fixed on 2026-04-29 in the voice hot path. For details see
@@ -203,7 +203,7 @@ Token cost per failed spawn: ~40k tokens × 4 providers ≈ $0.13.
- **Symptom**: User says "Auflegen". Jarvis does not hang up immediately, but
waits a long time, shows the final transcript only late, and replies with
random content such as: "I'd recommend saving the current version to GitHub
- first, Ruben."
+ first, Alex."
- **Repro from production log** (`data/jarvis_desktop.log`, 2026-04-29):
1. Wake is correctly detected: `WAKE erkannt ueber whisper:Hey JARVIS` (WAKE detected via whisper:Hey JARVIS).
2. User says "Auflegen"; but the final STT text becomes:
@@ -555,7 +555,7 @@ desktop app must be restarted so the WebView does not cache the old bundle.
desktop app). Confusion: "the restore didn't work".
- **Root cause** (three layers, each separate):
1. **Second worktree stale** — `git worktree list` showed
- `C:/Users/Administrator/Desktop/jarvis-a0` on `awareness/phase-a5` (4 days
+ `<USER_HOME>/Desktop/jarvis-a0` on `awareness/phase-a5` (4 days
old). When the user opened this folder instead of `Personal Jarvis/`, they saw
the old state. Worktrees are **not** updated alongside a `git switch`/`reset`
in the main folder.
@@ -589,7 +589,7 @@ desktop app must be restarted so the WebView does not cache the old bundle.
- **Audit trail**:
- `recovery-report.md` (diagnosis, top-3 candidates)
- `restore-report.md` (phases 0–4 + desktop-app restart)
- - Plan: `C:/Users/Administrator/.claude/plans/shimmering-zooming-pixel.md`
+ - Plan: `<USER_HOME>/.claude/plans/shimmering-zooming-pixel.md`
---
@@ -1158,7 +1158,7 @@ carrying the same `System.AppUserModel.ID`, then using that shortcut's **file
name** + **icon**. There was no such shortcut under
`%APPDATA%\…\Start Menu\Programs\` (only a Desktop shortcut — not scanned — and
a `Startup\Disabled\` one tagged with a stale *personalised* AUMID
-`HaraldHerz.PersonalJarvis`). With no AUMID-matched shortcut, Explorer fell back
+`SamHerz.PersonalJarvis`). With no AUMID-matched shortcut, Explorer fell back
to the process `FileDescription` → "Python".
**Fix (`jarvis/ui/icon_utils.py`):** new `ensure_start_menu_shortcut()` creates
@@ -1714,9 +1714,9 @@ See also: `docs/anti-drift-three-layer.md` for the general pattern.
- **Root cause (third encounter of BUG-006 layer four — editable install
pin to a stale clone):**
`pip show overlay` reported the project location as
- `C:\Users\Administrator\Desktop\Personal Jarvis-main\OS-Level`.
+ `<USER_HOME>\Desktop\Personal Jarvis-main\OS-Level`.
That directory had been deleted earlier; only the active repo at
- `C:\Users\Administrator\Desktop\Personal Jarvis\OS-Level` exists now.
+ `<USER_HOME>\Desktop\Personal Jarvis\OS-Level` exists now.
The `__editable__.overlay-0.1.0.pth` shim therefore pointed at a path
that does not exist, so `import overlay.schema` raised
`ModuleNotFoundError: No module named 'overlay'`. The Welle-4 import
@@ -1748,7 +1748,7 @@ See also: `docs/anti-drift-three-layer.md` for the general pattern.
- **Fix:**
```
pip uninstall overlay -y
- pip install -e "C:/Users/Administrator/Desktop/Personal Jarvis/OS-Level" --no-deps
+ pip install -e "<USER_HOME>/Desktop/Personal Jarvis/OS-Level" --no-deps
```
Verification: `cat
~/AppData/Roaming/Python/Python311/site-packages/__editable__.overlay-0.1.0.pth`
@@ -2170,7 +2170,7 @@ media, and other actions it has no registered capability for. The Ack-Brain
says "wird erledigt" ("will be done"), the brain returns a phantom success response, and the TTS
reads a confirmation to the user. The action never happens. The user is deceived.
-Classic trigger example: "Schick eine Email an Harald" ("Send an email to Harald") → TTS plays "Die Email wurde gesendet." ("The email has been sent.") → No email was sent. No error was raised. No log entry indicates a failure.
+Classic trigger example: "Schick eine Email an Sam" ("Send an email to Sam") → TTS plays "Die Email wurde gesendet." ("The email has been sent.") → No email was sent. No error was raised. No log entry indicates a failure.
This is not a single-site regression — it is a structural coupling gap: the
brain layer and the critic layer are both decoupled from the actual executable
diff --git a/docs/SUBAGENT_HARDENING_REPORT_2026-05-27.md b/docs/JARVIS_AGENTS_HARDENING_REPORT_2026-05-27.md
similarity index 89%
rename from docs/SUBAGENT_HARDENING_REPORT_2026-05-27.md
rename to docs/JARVIS_AGENTS_HARDENING_REPORT_2026-05-27.md
index 6b5cdbffc8..cef5840f8b 100644
--- a/docs/SUBAGENT_HARDENING_REPORT_2026-05-27.md
+++ b/docs/JARVIS_AGENTS_HARDENING_REPORT_2026-05-27.md
@@ -5,11 +5,11 @@ verified with file:line evidence, then synthesized. 16 agents, 13 raw -> 9 confi
This file is the read-once execution target for the hardening fixes.
-->
-# Sub-Agent Spawning Pipeline — Hardening Report
+# Jarvis-Agent Spawning Pipeline — Hardening Report
## Executive summary
-The sub-agent spawning pipeline is **production-ready with caveats** — there are no critical/silent-data-loss-of-everything or crash-class defects, and the AD-OE6 zero-silent-drops invariant holds (every failure path still produces a spoken announcement). The sharpest residual risk is **deliverable artifact loss for a definable subset of filenames**: a German/bilingual assistant routinely produces umlaut filenames (`Werbungä.html`, `Lebenslauf-Müller.pdf`), and these are silently dropped from `artifacts/files/` because the archive path trusts git's `core.quotepath` octal-escaped output (`archive-newfile-octal-escape-drops-nonascii-deliverable`, HIGH); the same archive path also drops any `.gitignore`-matched deliverable name (`*.log`, `dist/*`, `*.db`) since it relies 100% on git path enumeration with no filesystem fallback (`archive-untracked-copy-relies-on-git-enumeration-not-filesystem`, MEDIUM). The next tier is **two false-failure / false-block UX defects in the spawn + critic loop**: a fast mission failure leaves the 30s spawn cooldown armed so a legitimate retry gets a false "already running" ACK (`spawn-cooldown-no-failure-reset`, MEDIUM), and edit-only tasks whose final diff is byte-identical to HEAD burn all 3 critic loops into `critic_loop_exhausted` despite valid work (`critic-empty-diff-pregate-revise-burns-all-loops-on-edit-only-tasks`, MEDIUM). The remaining findings are low-severity (a concurrent-spawn race with a one-extra-mission worst case, a latent double-readback footgun, an unreachable crash-recovery template, and diagnostic opacity on worktree-create failure). None block shipping, but the two HIGH/MEDIUM archive findings should be fixed before the umlaut-deliverable failure recurs in front of the user.
+The Jarvis-Agent spawning pipeline is **production-ready with caveats** — there are no critical/silent-data-loss-of-everything or crash-class defects, and the AD-OE6 zero-silent-drops invariant holds (every failure path still produces a spoken announcement). The sharpest residual risk is **deliverable artifact loss for a definable subset of filenames**: a German/bilingual assistant routinely produces umlaut filenames (`Werbungä.html`, `Lebenslauf-Müller.pdf`), and these are silently dropped from `artifacts/files/` because the archive path trusts git's `core.quotepath` octal-escaped output (`archive-newfile-octal-escape-drops-nonascii-deliverable`, HIGH); the same archive path also drops any `.gitignore`-matched deliverable name (`*.log`, `dist/*`, `*.db`) since it relies 100% on git path enumeration with no filesystem fallback (`archive-untracked-copy-relies-on-git-enumeration-not-filesystem`, MEDIUM). The next tier is **two false-failure / false-block UX defects in the spawn + critic loop**: a fast mission failure leaves the 30s spawn cooldown armed so a legitimate retry gets a false "already running" ACK (`spawn-cooldown-no-failure-reset`, MEDIUM), and edit-only tasks whose final diff is byte-identical to HEAD burn all 3 critic loops into `critic_loop_exhausted` despite valid work (`critic-empty-diff-pregate-revise-burns-all-loops-on-edit-only-tasks`, MEDIUM). The remaining findings are low-severity (a concurrent-spawn race with a one-extra-mission worst case, a latent double-readback footgun, an unreachable crash-recovery template, and diagnostic opacity on worktree-create failure). None block shipping, but the two HIGH/MEDIUM archive findings should be fixed before the umlaut-deliverable failure recurs in front of the user.
## Findings (severity-sorted)
diff --git a/docs/LLM-CONTEXT.md b/docs/LLM-CONTEXT.md
index a40797632e..d9ce1b17c2 100644
--- a/docs/LLM-CONTEXT.md
+++ b/docs/LLM-CONTEXT.md
@@ -9,14 +9,14 @@
> **Looking for the human-facing overview?** See [`../README.md`](../README.md).
> **Binding source-of-truth:** [`../CLAUDE.md`](../CLAUDE.md) + the docs linked at the bottom.
-**Personal Jarvis** is a voice-driven **Supervisor-Agent meta-orchestrator** — not a classical voice assistant. The core pattern is a fast **Router-Brain** that dispatches work to interchangeable harnesses (OpenClaw subprocess, Codex CLI, Open Interpreter, MCP servers, raw computer-use loops). The voice layer is just the I/O surface; the soul is the dispatcher discipline that keeps the Router-Brain lean and delegates heavy reasoning to specialized subagents under critic-loop + worktree-isolation guard rails. The project is **provider-agnostic by mandate** — the user has no Anthropic API account (Claude Max OAuth is used only inside workers) — and **self-modifying** via an atomic config-writer with a 10-step validate-backup-tempfile-replace-rollback-audit pipeline.
+**Personal Jarvis** is a voice-driven **Supervisor-Agent meta-orchestrator** — not a classical voice assistant. The core pattern is a fast **Router-Brain** that dispatches work to interchangeable harnesses (Jarvis-Agents subprocess, Codex CLI, Open Interpreter, MCP servers, raw computer-use loops). The voice layer is just the I/O surface; the soul is the dispatcher discipline that keeps the Router-Brain lean and delegates heavy reasoning to specialized Jarvis-Agents under critic-loop + worktree-isolation guard rails. The project is **provider-agnostic by mandate** — the user has no Anthropic API account (Claude Max OAuth is used only inside workers) — and **self-modifying** via an atomic config-writer with a 10-step validate-backup-tempfile-replace-rollback-audit pipeline.
> ### Cloud-First — Read This Before The Install Section
> **Target runtime is any €5 / month VPS or low-spec laptop** with a modern browser. **The maintainer's RTX 5070 Ti / Windows 11 Pro workstation is not a requirement** — it represents fewer than 0.1 % of the install base this project is being designed for. All Brain / STT / TTS / Vision / Wake providers default to cloud APIs; no GPU, no local models, no Windows APIs, no microphone are required in the base install. Windows-desktop features (tray app, Orb overlay, global hotkey wake, local Whisper, Silero-VAD-in-process, Computer-Use harness, PowerShell drift-guard daemon) are **opt-in `[desktop]` extras**, not requirements. **Binding doctrine: [`docs/PHILOSOPHY.md`](docs/PHILOSOPHY.md)**. On conflict between this README and `PHILOSOPHY.md`, the doctrine wins.
- **Base runtime:** Linux / macOS / Windows with Python 3.11+ and a network connection. Headless VPS + browser UI is a first-class deployment target.
- **Maintainer's reference machine** (the project is developed on, but **does not require**, this hardware): RTX 5070 Ti, 32 GB RAM, CUDA 12.8, Windows 11 Pro — unlocks the optional `[desktop]` extras.
-- **Repo root** (maintainer's workstation; not relevant to consumers): `C:\Users\Administrator\Desktop\Personal Jarvis`
+- **Repo root** (maintainer's workstation; not relevant to consumers): `<USER_HOME>\Desktop\Personal Jarvis`
- **Binding plan:** `~/.claude/plans/also-er-muss-auch-lexical-pond.md` (plan wins on plan-vs-code conflict).
- **Binding doctrine:** [`docs/PHILOSOPHY.md`](docs/PHILOSOPHY.md) (cloud-first; wins over the binding plan when the two disagree on hardware assumptions).
@@ -306,7 +306,7 @@ Force-spawn heuristic in `BrainManager._should_force_openclaw`:
- Action verb (`lies/baue/installiere/öffne/mach/zeig` + repair words) → spawn.
- External-system marker (PR/Repo/GitHub/Issue) → spawn.
-**The sub-jarvis tier was deleted in Welle 4** — only `"router"` remains (`factory.py:119-123` raises on unknown tiers). Resurrecting `SUB_TOOLS` or adding `spawn-openclaw`/`dispatch-with-review`/`run-skill` to any worker set breaks the D9 recursion guard (AP-14).
+**The Jarvis-Agent tier was deleted in Welle 4** — only `"router"` remains (`factory.py:119-123` raises on unknown tiers). Resurrecting `SUB_TOOLS` or adding `spawn-openclaw`/`dispatch-with-review`/`run-skill` to any worker set breaks the D9 recursion guard (AP-14).
---
@@ -318,7 +318,7 @@ Force-spawn heuristic in `BrainManager._should_force_openclaw`:
Wired into TTS at two sites:
- `pipeline.py:1330` — `_handle_utterance` → `_speak()` → `tts.synthesize`
-- `pipeline.py:647` — `_on_announcement` (skill/sub-agent announcements, OpenClaw `summary_de` readback)
+- `pipeline.py:647` — `_on_announcement` (skill/Jarvis-Agent announcements, Jarvis-Agents `summary_de` readback)
40-case test suite at `tests/unit/brain/test_output_filter.py`. ADR-0010 (Output-Filter Pattern-Based).
@@ -388,9 +388,9 @@ Verified against the actual file tree (not just CLAUDE.md claims):
| 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 | — |
-| OpenClaw bridge Welle 1+4 | done | `jarvis/plugins/harness/openclaw.py` (Mock-Mode), `jarvis/missions/openclaw/` (provider_map, workspace, mcp, setup) |
-| OpenClaw bridge Welle 2 (live default) | open | Mock-Mode in plugin file; live subprocess factory pending |
-| OpenClaw bridge Welle 3 (full live mode) | open | — |
+| 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 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`) |
| CLI catalog + terminal view | live | `jarvis/clis/` (catalog, installer, loader, prober, registry, risk_integration, usage_log) + `jarvis/terminal/` (ConPTY via `pywinpty`). Tools `cli-tools` + `spawn-cli-worker` |
@@ -438,7 +438,7 @@ The single most important table for an LLM joining cold:
| AP-11 | Add an LLM call inside `scrub_for_voice` | TTS latency tank |
| AP-12 | Encode API keys in `jarvis.toml` or commit `.env` | Credential leak; bypasses `keyring` audit trail |
| AP-13 | Block on watchdog reload for atomic-write verification | Race: file half-applied, no sync rollback |
-| AP-14 | Re-add a Sub-Jarvis tier or `SUB_TOOLS` set | Welle 4 deleted it; resurrection breaks the OpenClaw-bridge contract |
+| AP-14 | Re-add a Jarvis-Agent tier or `SUB_TOOLS` set | Welle 4 deleted it; resurrection breaks the Jarvis-Agents bridge contract |
| AP-15 | Auto-activate generated skills (`state` ≠ `draft`) | Lateral-movement vector; skills run without review |
| AP-16 | Add `[phase6.*]`/`[memory.wiki.*]` keys without `ConfigDict(extra="allow")` | Pre-validate rejects → boot fails after self-mod |
| AP-17 | Run Jarvis as a Windows Service | SYSTEM has no mic/headset access |
@@ -524,7 +524,7 @@ Line length 100. Target `py311`. One per-file `E501` exception (`jarvis/awarenes
## 19. Scripts inventory (`scripts/`)
**Cron daemons (production):**
-- `auto-push-eod.ps1` — nightly tag+push safety net. Skips worktrees with active OpenClaw session (`<30 min` modify time).
+- `auto-push-eod.ps1` — nightly tag+push safety net. Skips worktrees with active Jarvis-Agent session (`<30 min` modify time).
- `install-auto-push-task.ps1 -Time "22:00"` — register Task Scheduler job.
- `drift-guard-daemon.ps1` — 5-min config drift defense. Singleton-locked, hidden, started via `shell:startup` shortcut.
- `install-config-drift-guard-task.ps1` — install variant.
@@ -612,7 +612,7 @@ Self-mod writeup: [`docs/self_mod.md`](docs/self_mod.md) — 8 mutable settings
- **`run.bat` pre-boot:** `scripts/check-working-tree.ps1` auto-invoked. Always exits 0; surfaces any restored file via banner + rotating log.
- **Drift-guard daemon:** every 5 min via `shell:startup` shortcut, Userland (no UAC). Singleton-locked.
-- **Auto-push-EOD:** Task Scheduler 22:00 default. Tags `safety/eod-*` per branch, skips active OpenClaw worktrees (modified within last 30 min).
+- **Auto-push-EOD:** Task Scheduler 22:00 default. Tags `safety/eod-*` per branch, skips active Jarvis-Agent worktrees (modified within last 30 min).
- **Wiki triggers** (ADR-0014 contract — all classified silent vs loud):
- `WikiContextInjector` (silent) — runs before every brain turn
- `VoiceFactBridge` ack path (loud) — `ResponseGenerated` with ack keyword, async via `asyncio.create_task`
@@ -625,7 +625,7 @@ Self-mod writeup: [`docs/self_mod.md`](docs/self_mod.md) — 8 mutable settings
## 23. Repo hygiene & contribution
- **Output Language Policy (highest priority):** every artifact in the repo is **English** — code, comments, docstrings, Markdown, commit messages, PR titles/bodies, tests, CLI help, REST descriptions, error responses, audit logs, telemetry, UI i18n source. German stays only for the assistant's user-facing chat reply, TTS at runtime, and already-committed German content.
-- **Plan vs. code:** on conflict, plan wins. Master plan binds: `~/.claude/plans/also-er-muss-auch-lexical-pond.md`. Architecture contracts: [`docs/openclaw-bridge.md`](docs/openclaw-bridge.md), [`docs/anti-drift-three-layer.md`](docs/anti-drift-three-layer.md).
+- **Plan vs. code:** on conflict, plan wins. Master plan binds: `~/.claude/plans/also-er-muss-auch-lexical-pond.md`. Architecture contracts: [`docs/jarvis-agents-bridge.md`](docs/jarvis-agents-bridge.md), [`docs/anti-drift-three-layer.md`](docs/anti-drift-three-layer.md).
- **Worktree activation checklist:** **`pwsh scripts/preflight.ps1`** before code in any new worktree. If exit non-zero, fix before proceeding (BUG-006/014, AD-UF23).
- **Before larger edits:** read [`docs/BUGS.md`](docs/BUGS.md) — every recurring bug class catalogued there.
- **Plugin contract:** plugin modules MUST NOT import from `jarvis.*` — structural compatibility with Protocol only. After edit: `pip install -e . --no-deps`.
@@ -657,7 +657,7 @@ 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` | OpenClaw bridge plugin (Welle-2 Mock-Mode). |
+| `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). |
@@ -674,7 +674,7 @@ Two drifts surfaced during the agent audit; flag them before quoting CLAUDE.md t
1. **`spawn-skill-author` IS registered in `pyproject.toml:208`** as `spawn-skill-author = "jarvis.brain.tools.skill_authoring:SpawnSkillAuthorTool"` (landed 2026-05-17 per inline comment). CLAUDE.md still says "7.5 `spawn_skill_author` not yet registered in `pyproject.toml`" — outdated. The Phase-7.5 self-modifying skill-authoring tool is wired.
-2. **`jarvis/sub_jarvis/` directory still exists** as an **empty placeholder** (no `__init__.py`, no files) despite CLAUDE.md and `docs/openclaw-bridge.md §11` declaring it deleted in Welle 4. Cleanup is structurally complete (no code references), but the empty dir itself is leftover.
+2. **`jarvis/sub_jarvis/` directory still exists** as an **empty placeholder** (no `__init__.py`, no files) despite CLAUDE.md and `docs/jarvis-agents-bridge.md §11` declaring it deleted in Welle 4. Cleanup is structurally complete (no code references), but the empty dir itself is leftover.
Neither blocks anything — but a fresh chat parroting CLAUDE.md verbatim will be wrong on point 1, and confused by `ls jarvis/` on point 2.
@@ -684,12 +684,12 @@ Neither blocks anything — but a fresh chat parroting CLAUDE.md verbatim will b
- [`CLAUDE.md`](CLAUDE.md) — project guidance (highest priority for any agent working in this repo)
- [`docs/BUGS.md`](docs/BUGS.md) — 26-entry bug register with regression-test pointers
-- [`docs/openclaw-bridge.md`](docs/openclaw-bridge.md) — AD-1..AD-21 OpenClaw harness contract
+- [`docs/jarvis-agents-bridge.md`](docs/jarvis-agents-bridge.md) — AD-1..AD-21 Jarvis-Agents harness contract
- [`docs/anti-drift-three-layer.md`](docs/anti-drift-three-layer.md) — five-layer enum pattern (mandatory for any new wire-format string)
- [`docs/self_mod.md`](docs/self_mod.md) — Phase 7 self-mod user guide
- [`docs/obsidian-setup.md`](docs/obsidian-setup.md) — Wiki vault registration walkthrough
- `~/.claude/plans/also-er-muss-auch-lexical-pond.md` — binding master plan
-- `~/.claude/projects/C--Users-Administrator-Desktop-Personal-Jarvis/memory/MEMORY.md` — auto-memory with stable user preferences (multi-provider brain, no-Anthropic-API, bilingual, anti-confirmation-fatigue, frontier-quality-before-cost)
+- `~/.claude/projects/<your-claude-project-dir>/memory/MEMORY.md` — auto-memory with stable user preferences (multi-provider brain, no-Anthropic-API, bilingual, anti-confirmation-fatigue, frontier-quality-before-cost)
---
diff --git a/docs/PHILOSOPHY.md b/docs/PHILOSOPHY.md
index 4088214d71..428b6dd597 100644
--- a/docs/PHILOSOPHY.md
+++ b/docs/PHILOSOPHY.md
@@ -48,7 +48,7 @@ Concretely:
| L2 Speech | Cloud STT (Deepgram / Google STT / Whisper-API); cloud TTS (Gemini Flash / Grok Voice / ElevenLabs); **server-side push-to-talk replaces local wake** | `faster-whisper` + Silero-VAD + openWakeWord on local GPU; SAPI5 fallback TTS |
| L3 Intent / Risk | Unchanged — pure Python logic | Unchanged |
| L4 Brain | Unchanged — already five cloud providers (OpenRouter, OpenAI, Gemini, Grok, Claude-Max-OAuth-inside-workers); no Anthropic-API hard-dep | Future Ollama-local optional path |
-| L5 Harness-Adapter | OpenClaw via cloud subprocess host; MCP-Remote; Codex CLI on a worker container | POAV computer-use, local PowerShell, in-tree subprocess |
+| L5 Harness-Adapter | Jarvis-Agents via cloud subprocess host; MCP-Remote; Codex CLI on a worker container | POAV computer-use, local PowerShell, in-tree subprocess |
| L6 Orchestrator | Unchanged | Unchanged |
| L7 UI / UX | FastAPI + React **served as a web app** — reachable in any browser, no native window | `pywebview` window, tray, Orb overlay, global hotkey |
@@ -106,7 +106,7 @@ This document is referenced from:
- [`README.md`](../README.md) §1 (top of file)
- [`CLAUDE.md`](../CLAUDE.md) §"Cloud-First Philosophy" (binding doctrine block)
-- [`docs/openclaw-bridge.md`](openclaw-bridge.md) — preamble (planned: OpenClaw harness must support a cloud-subprocess-host transport, not only local Windows subprocesses)
+- [`docs/jarvis-agents-bridge.md`](jarvis-agents-bridge.md) — preamble (planned: Jarvis-Agents harness must support a cloud-subprocess-host transport, not only local Windows subprocesses)
- [`docs/BUGS.md`](BUGS.md) — recurring bug classes 1, 4, and 5 (restore-trap, subprocess flicker, audio host-API) are explicitly **maintainer-machine bugs** that would not occur on a cloud-first deployment, and serve as evidence for this doctrine
---
diff --git a/docs/PROJEKT_UEBERBLICK.md b/docs/PROJEKT_UEBERBLICK.md
index b3e49555b9..2d9a2e4e4f 100644
--- a/docs/PROJEKT_UEBERBLICK.md
+++ b/docs/PROJEKT_UEBERBLICK.md
@@ -9,7 +9,7 @@
## Executive Summary
-Personal Jarvis is not a voice assistant. It is a **personal meta-orchestrator** for the Windows desktop — a system that does at the desk what a human assistant would do: listen, understand, delegate, verify, report. Behind the voice surface there is not a single language model, but a conducted ensemble. Various AI systems, tools, skills, and specialized sub-agents work together over a shared, interchangeable architecture. The ambition: a digital assistant that does not ask about every little thing, that is not chained to a single provider, that distinguishes between a trivial and a critical task, that can verify its own answers — and that does all of this while sensitive data can stay local. This whitepaper describes the vision behind it, the system, what it can do today, and where the journey is headed.
+Personal Jarvis is not a voice assistant. It is a **personal meta-orchestrator** for the Windows desktop — a system that does at the desk what a human assistant would do: listen, understand, delegate, verify, report. Behind the voice surface there is not a single language model, but a conducted ensemble. Various AI systems, tools, skills, and specialized Jarvis-Agents work together over a shared, interchangeable architecture. The ambition: a digital assistant that does not ask about every little thing, that is not chained to a single provider, that distinguishes between a trivial and a critical task, that can verify its own answers — and that does all of this while sensitive data can stay local. This whitepaper describes the vision behind it, the system, what it can do today, and where the journey is headed.
---
@@ -37,9 +37,9 @@ Concretely, this means five design decisions that set the system apart from ever
**First: multiple brains, used context-dependently.** Jarvis talks to nine different language models — Anthropic's Claude in several variants, GPT, Gemini, Grok, OpenRouter as an aggregator, and two Ollama paths for local models. Which model is responsible for a given request is decided by a fast router based on the task class: fast and cheap for smalltalk, thorough for complex reasoning tasks, code-specific when programming.
-**Second: specialized sub-agents for complex tasks.** When the main Jarvis recognizes that a request cannot be handled with a single tool call — for example "build me a web scraper for this website and test it on three examples" — it delegates to a sub-Jarvis. That is a separate, more capable model instance that may work autonomously in an isolated workspace for up to thirty minutes before reporting back. The main Jarvis meanwhile stays responsive for other requests.
+**Second: specialized Jarvis-Agents for complex tasks.** When the main Jarvis recognizes that a request cannot be handled with a single tool call — for example "build me a web scraper for this website and test it on three examples" — it delegates to a Jarvis-Agent. That is a separate, more capable model instance that may work autonomously in an isolated workspace for up to thirty minutes before reporting back. The main Jarvis meanwhile stays responsive for other requests.
-**Third: interchangeable tools instead of hard wiring.** Jarvis can control the browser, write and execute code, issue shell commands, capture and analyze screenshots, launch applications and interact with them. All of these capabilities are implemented as interchangeable so-called "harnesses". Today OpenClaw is the default code worker; tomorrow it could be a different tool. The higher-level logic notices nothing of it.
+**Third: interchangeable tools instead of hard wiring.** Jarvis can control the browser, write and execute code, issue shell commands, capture and analyze screenshots, launch applications and interact with them. All of these capabilities are implemented as interchangeable so-called "harnesses". Today Jarvis-Agents is the default code worker; tomorrow it could be a different tool. The higher-level logic notices nothing of it.
**Fourth: skills instead of hard wiring.** Custom workflows are stored as simple Markdown files with a configuration header. They can be triggered by voice commands, system events, or schedules. The user can extend the system without touching a line of code — a growing library of personal routines that over time reflect one's own working style.
@@ -47,7 +47,7 @@ Concretely, this means five design decisions that set the system apart from ever
## 3. How the System Is Built
-Jarvis is structured as an eight-layer system. At the very top is the user interface — the floating Orb display at the edge of the screen and the desktop app with chat history, skill overview, and live status. Below it sits the orchestrator, the actual brain of the operation: it decides which model, which tool, which sub-agent is responsible for a task. One layer deeper are the tool adapters, then the language models themselves, then the risk and security assessment, then the speech processing — wake word, speech recognition, speech output — and finally the audio and hardware layers.
+Jarvis is structured as an eight-layer system. At the very top is the user interface — the floating Orb display at the edge of the screen and the desktop app with chat history, skill overview, and live status. Below it sits the orchestrator, the actual brain of the operation: it decides which model, which tool, which Jarvis-Agent is responsible for a task. One layer deeper are the tool adapters, then the language models themselves, then the risk and security assessment, then the speech processing — wake word, speech recognition, speech output — and finally the audio and hardware layers.
The rule between these layers is strict: each layer may talk to the next only over clearly defined interfaces, never laterally. This discipline has two consequences that are noticeable in everyday use.
@@ -61,11 +61,11 @@ The system has grown across five completed development phases and is in producti
The **speech pipeline** runs bilingually and automatically detects whether the user is currently speaking German or English — no hard language pinning, no switching commands needed. Wake-word detection runs permanently in the background, but is trigger-based: only when "Jarvis" is uttered do the more expensive components wake up. Speech recognition itself runs locally on the GPU with Whisper-based models — that is fast and works without a cloud round-trip.
-The **desktop app** is a modern FastAPI-backend / web-frontend combination, rendered in a native window. Here the user sees chat history, active skills, MCP server connections, the model routing, and live streams of running sub-agent missions. Alongside it floats the Orb display — an animated sphere with soft waves that pulses depending on system state: listening, thinking, speaking, busy.
+The **desktop app** is a modern FastAPI-backend / web-frontend combination, rendered in a native window. Here the user sees chat history, active skills, MCP server connections, the model routing, and live streams of running Jarvis-Agent missions. Alongside it floats the Orb display — an animated sphere with soft waves that pulses depending on system state: listening, thinking, speaking, busy.
The **skill system** lets the user create custom routines as Markdown files. A skill is at its core a YAML header — name, trigger, required tools, risk assessment — followed by an instruction in plain text. The trigger can be a speech pattern ("open my standup"), a system event ("when a new image lands in the Downloads folder"), or a schedule ("every Monday at nine"). The library grows with usage.
-The **tool system** provides the system with a growing collection of actions. Browser control runs over a logged-in Chrome — Jarvis sees the same web pages the user sees, with all logins. Code generation and execution runs over OpenClaw in an isolated worktree. Shell commands, app launches, file operations, screenshots, screen analysis — all of that is reachable over the same interface.
+The **tool system** provides the system with a growing collection of actions. Browser control runs over a logged-in Chrome — Jarvis sees the same web pages the user sees, with all logins. Code generation and execution runs over Jarvis-Agents in an isolated worktree. Shell commands, app launches, file operations, screenshots, screen analysis — all of that is reachable over the same interface.
The **risk-tier system** classifies every tool into one of four levels: safe, monitor, ask, blocked. A whitelist lets the user exempt frequently used actions from the confirmation requirement. Whoever trusts the browser tool once does not want to be asked on every click — and will not be. That is the system's anti-confirmation-fatigue policy.
@@ -81,7 +81,7 @@ A system that independently issues commands, writes code, and navigates the brow
The **risk-tier mechanism** decides before each action whether it passes through without a query, whether it is logged, whether it must be confirmed, or whether it is blocked entirely. These levels are not rigid — the user can specify via configuration exactly which patterns they consider safe. The system does not thereby learn on its own, but it adapts.
-The **worker-critic mechanism** — currently in the final phase of implementation — is the more ambitious safety net. When a sub-agent completes a task, a second model instance independently checks whether the result is correct. On deficiencies there is a concrete correction instruction — up to three times the worker can improve. This reflection loop catches the typical hallucination and omission errors that a single model would not recognize on its own. Important: the speech output to the user is never voted on by the critic loop itself — it reads out exclusively runtime-signed observations. This prevents a brained model from getting stuck in an endless loop of self-confirmation.
+The **worker-critic mechanism** — currently in the final phase of implementation — is the more ambitious safety net. When a Jarvis-Agent completes a task, a second model instance independently checks whether the result is correct. On deficiencies there is a concrete correction instruction — up to three times the worker can improve. This reflection loop catches the typical hallucination and omission errors that a single model would not recognize on its own. Important: the speech output to the user is never voted on by the critic loop itself — it reads out exclusively runtime-signed observations. This prevents a brained model from getting stuck in an endless loop of self-confirmation.
The **audit trail**, finally, logs every action on the system. When Phase 7 is introduced tomorrow — self-modification, i.e. that Jarvis may change its own configuration — that happens exclusively over a hard allowlist and with full backup rollback. Security-relevant areas, API keys, permissions are explicitly not self-modifiable.
@@ -97,7 +97,7 @@ Secrets — API keys, tokens, credentials — are stored exclusively in the Wind
Three major development strands shape the near future of the project.
-**Self-healing and self-modification.** The next phase gradually makes Jarvis a co-developer of itself. Voice-driven configuration changes — "Wechsel die Stimme auf die andere" (switch the voice to the other one), "Stell mein primäres Modell auf Gemini" (set my primary model to Gemini) — are enabled over a controlled path: allowlist, validation, backup, rollback on malfunction. Skill authoring by voice command — the user describes what a new skill should do, a sub-Jarvis writes it as a draft, the user activates it after review. The system does not thereby become autocratic, but it becomes a tool that builds itself further.
+**Self-healing and self-modification.** The next phase gradually makes Jarvis a co-developer of itself. Voice-driven configuration changes — "Wechsel die Stimme auf die andere" (switch the voice to the other one), "Stell mein primäres Modell auf Gemini" (set my primary model to Gemini) — are enabled over a controlled path: allowlist, validation, backup, rollback on malfunction. Skill authoring by voice command — the user describes what a new skill should do, a Jarvis-Agent writes it as a draft, the user activates it after review. The system does not thereby become autocratic, but it becomes a tool that builds itself further.
**Awareness layer — continuous context.** Today Jarvis knows nothing of the last hour. The awareness layer will change that: a four-stage memory system that holds seconds in working memory, minutes in a rolling session chain, days in a searchable index, and long-term insights in a curated file. At the wake word the main Jarvis knows the thread of the workday — without the critical speech path becoming slower for it. The hard rule: awareness code never runs in the voice path.
diff --git a/docs/SINGLE-SOURCE-OF-TRUTH.md b/docs/SINGLE-SOURCE-OF-TRUTH.md
index 5ad54aa2ff..bdde486e51 100644
--- a/docs/SINGLE-SOURCE-OF-TRUTH.md
+++ b/docs/SINGLE-SOURCE-OF-TRUTH.md
@@ -6,7 +6,7 @@
> presentation, or explainer). Synthesized from `CLAUDE.md`, the cloud-first charter, the
> architecture contracts, and the bug register.
>
-> **Status:** Phases 0–7 live, plus Awareness (A0–A5), Knowledge Wiki, OpenClaw bridge
+> **Status:** Phases 0–7 live, plus Awareness (A0–A5), Knowledge Wiki, Jarvis-Agents bridge
> (waves 1+4), Ack-Brain, and the CLI catalog. Cross-platform (Linux/macOS/Windows)
> migration in progress.
@@ -18,7 +18,7 @@ Personal Jarvis is a **voice-driven meta-orchestrator**. It is *not* a classical
assistant that answers questions from a fixed skill list. The core pattern is a
**Supervisor–Agent architecture**: a lightweight, fast "Talker" brain holds the
conversation, and the moment real work appears, it dispatches that work to interchangeable
-**harnesses** — an OpenClaw subprocess, a Codex CLI, Open Interpreter, a Python script, or
+**harnesses** — a Jarvis-Agents subprocess, a Codex CLI, Open Interpreter, a Python script, or
a remote MCP server — which execute in the background.
The voice layer is just the interface. The intelligence is in the orchestration: deciding
@@ -156,7 +156,7 @@ checks. Bypassing it skips all three.
## 7. Router Discipline (a pure dispatcher)
The router-tier brain is a **pure dispatcher**, not an actor. Its entire tool surface is the
-`ROUTER_TOOLS` frozenset. Anything outside that set is delegated to OpenClaw via
+`ROUTER_TOOLS` frozenset. Anything outside that set is delegated to Jarvis-Agents via
`spawn_openclaw`.
A force-spawn heuristic decides when to dispatch heavy work:
@@ -165,7 +165,7 @@ A force-spawn heuristic decides when to dispatch heavy work:
- **Action verb** (read/build/install/open/do/show + repair words) → spawn.
- **External-system marker** (PR / repo / GitHub / issue) → spawn.
-**The Sub-Jarvis tier was deleted (Welle 4).** Only `"router"` remains. Re-introducing a
+**The Jarvis-Agent tier was deleted (Welle 4).** Only `"router"` remains. Re-introducing a
`SUB_TOOLS` set, or putting any spawn tool (`spawn-openclaw`, `dispatch-with-review`,
`run-skill`) into a *worker* tool set, breaks the recursion guard — a worker would be able to
spawn its own supervisor, causing an infinite loop. This is anti-pattern AP-5/AP-14.
@@ -183,7 +183,7 @@ Termin, Kalender. Hyphenated compounds are preserved (`Browser-Provider` stays i
Two TTS paths are wired through the scrubber: the main utterance path
(`_handle_utterance → _speak → tts.synthesize`) and the announcement path
-(`_on_announcement` — skill/sub-agent announcements and the OpenClaw `summary_de` readback).
+(`_on_announcement` — skill/Jarvis-Agent announcements and the Jarvis-Agents `summary_de` readback).
---
@@ -219,7 +219,7 @@ Latency budgets are SLO-gated and regressions fail CI: p95 wake→ACK < 1.2 s, i
| **7 Self-Mod** | Live | Config audit/writer/registry + three router tools (`list_mutable_settings`, `get_config_value`, `set_config_value`). Skill-author spawn pending registration. |
| **Awareness A0–A5** | Live | State, story, salience, working-set, episode, recall-store, watchers, probes. Tools `awareness-snapshot`, `awareness-recall`. Hard rule: never on the voice critical path. |
| **Knowledge Wiki** | Live | Curator, atomic writer, page repository, session rollup, voice bridge, scheduler. Tools `wiki-recall`, `wiki-page-read`, `wiki-ingest`. Long-term memory tier. |
-| **OpenClaw bridge** | Waves 1+4 | Harness contract (AD-1..21). Live-bridge-as-default (Welle 2) + full live mode (Welle 3) open. |
+| **Jarvis-Agents bridge** | Waves 1+4 | Harness contract (AD-1..21). Live-bridge-as-default (Welle 2) + full live mode (Welle 3) open. |
| **Ack-Brain** | Live | Sub-second butler ACK before the deep brain replies. |
| **CLI catalog + terminal** | Live | CLI discovery/install/probe + ConPTY terminal view. Tools `cli-tools`, `spawn-cli-worker`. |
@@ -301,7 +301,7 @@ A condensed selection of the codified "if you do X you get bug Y" rules:
- **Hardcode a Claude/Anthropic client** → breaks `cfg.brain.primary` (AP-6).
- **Write `jarvis.toml` without lock + tempfile + BOM handling** → corrupted TOML, boot fails (AP-7).
- **Add an LLM call inside `scrub_for_voice`** → TTS latency tank (AP-11).
-- **Re-add a Sub-Jarvis tier** → breaks the OpenClaw-bridge contract (AP-14).
+- **Re-add a Jarvis-Agent tier** → breaks the Jarvis-Agents-bridge contract (AP-14).
- **Auto-activate generated skills** → lateral-movement vector; skills must stay `draft` (AP-15).
- **Run Jarvis as a Windows Service** → the SYSTEM user has no mic/headset access (AP-17).
- **Propagate a subscriber exception from the EventBus** → one handler kills the pipeline (AP-18).
diff --git a/docs/adr/0001-ipc-named-pipe-hmac.md b/docs/adr/0001-ipc-named-pipe-hmac.md
index 9bd0888c18..195fa03735 100644
--- a/docs/adr/0001-ipc-named-pipe-hmac.md
+++ b/docs/adr/0001-ipc-named-pipe-hmac.md
@@ -3,7 +3,7 @@ title: "ADR-0001: IPC via Named Pipe + HMAC"
slug: adr-0001-ipc-named-pipe-hmac
diataxis: adr
status: active
-owner: harald
+owner: sam
last_reviewed: 2026-04-29
phase: 5
audience: developer
diff --git a/docs/adr/0002-uia-tree-pruning.md b/docs/adr/0002-uia-tree-pruning.md
index 04e7237ead..00a36bb286 100644
--- a/docs/adr/0002-uia-tree-pruning.md
+++ b/docs/adr/0002-uia-tree-pruning.md
@@ -3,7 +3,7 @@ title: "ADR-0002: UIA-Tree-Pruning"
slug: adr-0002-uia-tree-pruning
diataxis: adr
status: active
-owner: harald
+owner: sam
last_reviewed: 2026-04-29
phase: 5
audience: developer
diff --git a/docs/adr/0003-task-queue-storage.md b/docs/adr/0003-task-queue-storage.md
index e0bbc48d26..807dedd2a5 100644
--- a/docs/adr/0003-task-queue-storage.md
+++ b/docs/adr/0003-task-queue-storage.md
@@ -3,7 +3,7 @@ title: "ADR-0003: Task-Queue in Memory-DB"
slug: adr-0003-task-queue-storage
diataxis: adr
status: active
-owner: harald
+owner: sam
last_reviewed: 2026-04-29
phase: 5
audience: developer
diff --git a/docs/adr/0004-kill-propagation.md b/docs/adr/0004-kill-propagation.md
index 73272ae992..25fb180732 100644
--- a/docs/adr/0004-kill-propagation.md
+++ b/docs/adr/0004-kill-propagation.md
@@ -3,7 +3,7 @@ title: "ADR-0004: Kill-Switch < 2s"
slug: adr-0004-kill-propagation
diataxis: adr
status: active
-owner: harald
+owner: sam
last_reviewed: 2026-04-29
phase: 5
audience: developer
diff --git a/docs/adr/0005-lightweight-scheduler.md b/docs/adr/0005-lightweight-scheduler.md
index cc2bdf8ca9..8b3ff1b3f1 100644
--- a/docs/adr/0005-lightweight-scheduler.md
+++ b/docs/adr/0005-lightweight-scheduler.md
@@ -3,7 +3,7 @@ title: "ADR-0005: Lightweight-Scheduler"
slug: adr-0005-lightweight-scheduler
diataxis: adr
status: active
-owner: harald
+owner: sam
last_reviewed: 2026-04-29
phase: 5
audience: developer
diff --git a/docs/adr/0006-cost-budget-hook.md b/docs/adr/0006-cost-budget-hook.md
index 6648f0980e..545165a1e8 100644
--- a/docs/adr/0006-cost-budget-hook.md
+++ b/docs/adr/0006-cost-budget-hook.md
@@ -3,7 +3,7 @@ title: "ADR-0006: Cost-Budget im Brain"
slug: adr-0006-cost-budget-hook
diataxis: adr
status: active
-owner: harald
+owner: sam
last_reviewed: 2026-04-29
phase: 5
audience: developer
diff --git a/docs/adr/0007-flight-recorder-jsonl.md b/docs/adr/0007-flight-recorder-jsonl.md
index f9e9a93895..9a9686f548 100644
--- a/docs/adr/0007-flight-recorder-jsonl.md
+++ b/docs/adr/0007-flight-recorder-jsonl.md
@@ -3,7 +3,7 @@ title: "ADR-0007: Flight-Recorder JSONL"
slug: adr-0007-flight-recorder-jsonl
diataxis: adr
status: active
-owner: harald
+owner: sam
last_reviewed: 2026-04-29
phase: 5
audience: developer
diff --git a/docs/adr/0008-computer-use-harness-in-process.md b/docs/adr/0008-computer-use-harness-in-process.md
index 3c69f0fcf1..56caec097d 100644
--- a/docs/adr/0008-computer-use-harness-in-process.md
+++ b/docs/adr/0008-computer-use-harness-in-process.md
@@ -3,7 +3,7 @@ title: "ADR-0008: Computer-Use in-process"
slug: adr-0008-computer-use-harness-in-process
diataxis: adr
status: active
-owner: harald
+owner: sam
last_reviewed: 2026-04-29
phase: 5
audience: developer
@@ -27,7 +27,7 @@ The new Computer-Use harness deliberately breaks this pattern — see the decisi
**`jarvis/plugins/harness/computer_use.py` runs in-process** (in the Jarvis main process), while the other five harnesses remain subprocesses.
### Rationale
-By its nature, Computer-Use is **not an external sub-agent framework** (as OpenClaw or Codex are), but an internal plan-observe-act-verify loop that:
+By its nature, Computer-Use is **not an external Jarvis-Agent framework** (as Jarvis-Agents or Codex are), but an internal plan-observe-act-verify loop that:
1. Uses the existing `BrainManager` directly (Opus plans, Sonnet observes, Haiku steps — cost tracking via ADR-0006 applies automatically)
2. Consumes the `VisionEngine` directly (no screenshot serialization over pipes)
@@ -37,7 +37,7 @@ By its nature, Computer-Use is **not an external sub-agent framework** (as OpenC
Architecturally this is closer to the `BrainManager` or `HarnessManager` (both in-process) than to the `OpenClawHarness` (which wraps an external binary).
### Position relative to the CLAUDE.md rule
-The rule targets **third-party agent code** (OpenClaw, 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.
+The 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.
### Security mitigation
- All individual actions (click, type, screenshot) run through the `ToolExecutor` including the blacklist check.
diff --git a/docs/adr/0009-awareness-architecture.md b/docs/adr/0009-awareness-architecture.md
index b5fba87390..5c0233454b 100644
--- a/docs/adr/0009-awareness-architecture.md
+++ b/docs/adr/0009-awareness-architecture.md
@@ -7,7 +7,7 @@
Plan vision (see `JARVIS_AWARENESS_PLAN.md`): on the wake word, Master-Jarvis should know the thread of the last hour — which window is active, which file is open in the IDE, what the user has done in the last ~30 minutes. This context must be readable synchronously (critical-path protection: <50ms p95), but must never block the voice pipeline or trigger new brain roundtrips on the wake path.
-Until now context was rebuilt anew on every Sub-Jarvis spawn (`vision_context` with UIA-tree lookup, ~200-400ms per spawn) or was missing entirely. The user phrases the missing capability like this: "When I say 'change that', Jarvis should know what 'that' is." Awareness delivers exactly this background state without costing a brain call per wake word.
+Until now context was rebuilt anew on every Jarvis-Agent spawn (`vision_context` with UIA-tree lookup, ~200-400ms per spawn) or was missing entirely. The user phrases the missing capability like this: "When I say 'change that', Jarvis should know what 'that' is." Awareness delivers exactly this background state without costing a brain call per wake word.
## Decision
@@ -16,8 +16,8 @@ Four-layer architecture (plan §1):
| Layer | Lifetime | Component | Storage | Consumer |
|---------|-----------|-----------|---------|-------------|
| L1 Live Frame | Seconds | `AwarenessManager` + watchers | RAM (dataclass) | Master-Jarvis (sync read <50ms) |
-| L2 Story | 30min rolling | `StoryTracker` + `Verdichter` (Haiku) | RAM ring buffer + SQLite | Master-/Sub-Jarvis (episode snippet in the system prompt) |
-| L3 Session | 24h-7d | `SessionRecall` (FTS5) | SQLite (`jarvis.db`) | Sub-Jarvis (`awareness-recall` tool) |
+| L2 Story | 30min rolling | `StoryTracker` + `Verdichter` (Haiku) | RAM ring buffer + SQLite | Master-/Jarvis-Agent (episode snippet in the system prompt) |
+| L3 Session | 24h-7d | `SessionRecall` (FTS5) | SQLite (`jarvis.db`) | Jarvis-Agent (`awareness-recall` tool) |
| L4 Long-Term | persistent | `Curator` (existing) | `USER.md` / `MEMORY.md` | Curator is fed, not replaced |
Architecture principles (non-negotiable, plan §1):
@@ -34,21 +34,21 @@ Architecture principles (non-negotiable, plan §1):
**FTS5 vs embeddings (D-A2):** ChromaDB/embeddings for L3 were deferred to Phase A6. FTS5 (BM25 ranking, 200ms p95 for 1000 episodes) is the simpler start. If recall metrics show FTS5 to be insufficient, a vector re-rank in A6 is additively possible — no schema-migration block.
-**Direct brain call vs Sub-Jarvis spawn (D-A4):** the episode condenser runs as a direct brain call against Haiku via `BrainProviderRegistry`, NOT as `spawn_sub_jarvis`. Sub-Jarvis is for user tasks; internal condensation would trigger the JARVIS_DEPTH guard and make latency/cost explode (hard negative, plan §10).
+**Direct brain call vs Jarvis-Agent spawn (D-A4):** the episode condenser runs as a direct brain call against Haiku via `BrainProviderRegistry`, NOT as `spawn_sub_jarvis`. Jarvis-Agent is for user tasks; internal condensation would trigger the JARVIS_DEPTH guard and make latency/cost explode (hard negative, plan §10).
**Hybrid privacy default (D-A1):** coding apps (`code.exe`, `cursor.exe`, etc.) are explicitly allowlisted; browsers are blocked by default because they carry high PII risk (URLs, tabs, password fields); everything else unknown is allowed (productivity tools like Notepad, Office). The user can additively block via `preferences.toml` — system defaults are hard, not removable.
## Position relative to existing plans
-- **`JARVIS_REFACTOR_PLAN.md` (routing bug)**: hard-sequential — routing must be completed before A2, otherwise every episode trigger accidentally spawns a Sub-Jarvis instead of a Haiku condenser call. A0 itself does not touch any routing code.
+- **`JARVIS_REFACTOR_PLAN.md` (routing bug)**: hard-sequential — routing must be completed before A2, otherwise every episode trigger accidentally spawns a Jarvis-Agent instead of a Haiku condenser call. A0 itself does not touch any routing code.
- **`PLAN_B_CURATOR.md`**: Awareness L2 *feeds* the Curator. From Phase A2 onward, `EpisodeRecorded` is optionally routed to a second Curator subscriber (wiring in `jarvis/brain/factory.py`). Additive, no conflict.
-- **Phase 5 Sub-Jarvis**: Awareness is router-tier-only for the state read. Sub-Jarvis gets `awareness-recall` (Phase A3). `AwarenessManager` is NOT passed to Sub-Jarvis spawns (Sub is stateless).
+- **Phase 5 Jarvis-Agent**: Awareness is router-tier-only for the state read. Jarvis-Agent gets `awareness-recall` (Phase A3). `AwarenessManager` is NOT passed to Jarvis-Agent spawns (Sub is stateless).
- **Phase 6 tool roster (Browser-Use, Computer-Use)**: Computer-Use actions trigger frame updates → Awareness sees these as "self-induced activity". The probe layer (A5) must distinguish between user and bot activity via `frame.source = "user" | "bot"`.
## Consequences
+ Master-Jarvis has a synchronous context read <50ms — no brain roundtrip for "What am I doing right now?".
-+ Sub-Jarvis can semantically search the last 24h of activity via `awareness-recall` — without Master-Jarvis sending the whole history every time.
++ Jarvis-Agent can semantically search the last 24h of activity via `awareness-recall` — without Master-Jarvis sending the whole history every time.
+ The existing Curator pipeline gets additional inputs without breakage.
+ Hot-disable: `[awareness].enabled = false` shuts down the entire subsystem (plan §15 rollback plan).
- Win32 hooks need disciplined lifecycle handling (`UnhookWinEvent`, thread joins with a 2s timeout). Memory/handle-leak risk on a faulty `stop()` implementation. Mitigation: test mandatory in A1.
@@ -61,7 +61,7 @@ Architecture principles (non-negotiable, plan §1):
- **Polling-only (every 500ms `GetForegroundWindow`)**: ~0.5-2% CPU permanently + higher latency + lost switches shorter than the polling interval. Discarded.
- **Own SQLite file for Awareness**: extra connection pool, separate schema migration, separate backups. Discarded — `jarvis.db` already has FTS5 and is asynchronous via `aiosqlite`.
- **ChromaDB from day 1**: ~200MB container overhead, embedding latency ~50ms per episode, vector-DB operational complexity. Discarded for A0-A5; additively extensible in A6 if FTS5 proves too weak.
-- **Sub-Jarvis for condensation**: would overload the depth guard and emit additional bus events. Discarded — a direct Haiku brain call via `BrainProviderRegistry` is more efficient.
+- **Jarvis-Agent for condensation**: would overload the depth guard and emit additional bus events. Discarded — a direct Haiku brain call via `BrainProviderRegistry` is more efficient.
- **Extend `vision_context` (UIA-tree lookup) instead of an Awareness subsystem**: would make the 200-400ms spawn-latency cost permanent. The Awareness RAM state is a <50ms read and persists across spawns. Discarded.
## Update: Phase A2 — L2 condensation procedure (2026-04-26)
diff --git a/docs/adr/0009-self-healing-worker-critic.md b/docs/adr/0009-self-healing-worker-critic.md
index 345efd7f84..a9e7563111 100644
--- a/docs/adr/0009-self-healing-worker-critic.md
+++ b/docs/adr/0009-self-healing-worker-critic.md
@@ -3,7 +3,7 @@ title: "ADR-0009: Self-Healing Worker-Critic"
slug: adr-0009-self-healing-worker-critic
diataxis: adr
status: active
-owner: harald
+owner: sam
last_reviewed: 2026-04-29
phase: 6
audience: developer
@@ -16,7 +16,7 @@ audience: developer
## Context
-Phases 0-5 deliver Voice→Brain→Tool/Harness, but every tool call is a single shot: if it fails, the user hears an error message and has to try again. The master-plan goal "Sub-Jarvis as Kontrollierer with critic loop" (see `Jarvis-Behavior/persona-delegation-mandate.md`) cannot be fulfilled with the current `SubJarvisManager` (Phase 5) — it spawns a sub-brain, but without verification, without retry, without worktree isolation, and writes directly into the user's working tree.
+Phases 0-5 deliver Voice→Brain→Tool/Harness, but every tool call is a single shot: if it fails, the user hears an error message and has to try again. The master-plan goal "Jarvis-Agent as Kontrollierer with critic loop" (see `Jarvis-Behavior/persona-delegation-mandate.md`) cannot be fulfilled with the current `SubJarvisManager` (Phase 5) — it spawns a sub-brain, but without verification, without retry, without worktree isolation, and writes directly into the user's working tree.
The research document `SubAgentenSt/Unbenanntes Dokument (4).md` (to be moved to `docs/research/self-healing-architecture.md`) distills six converging pattern lines (Reflexion, Self-Refine, CRITIC, Constitutional AI, Aider Architect/Editor, OpenHands Action/Observation) into a single viable architecture for a single-user Windows orchestrator. Phase 6 implements this architecture.
@@ -35,6 +35,24 @@ Every worker step is a pair `(Action, Observation)`:
The LLM may **never formulate an Observation itself** — only the runtime module that executed the Action signs the Observation. The voice-readback path (the main Jarvis telling the user the result) reads back **only Observations**, never LLM narrative ("I did X…"). Violating this rule = BLOCKER in code review.
+> **Amendment 2026-06-28 — natural surface form of a signed Observation.**
+> The invariant binds the *content* of an Observation, not its exact spoken
+> wording. A bounded flash-LLM (`jarvis/voice/contextual_readback.py`) MAY render
+> the already-signed `summary_de`/`summary_en` into a more natural spoken sentence
+> on the readback path, under two hard guards: (a) it is given ONLY the signed
+> line as ground truth and instructed to rephrase, never invent; (b) an
+> `honesty_bound` check rejects any output whose content words do not sufficiently
+> overlap the signed line (no new noun/number/claim), with the signed line as the
+> instant fallback on any miss. The Observation is still authored and signed by
+> the runtime/Kontrollierer; the LLM only chooses words for an existing,
+> verified fact. It may NOT author a failure/timeout Observation's *facts*, and
+> it never sees `correction_instruction`. This satisfies the maintainer's
+> "no fixed stock phrases" mandate without weakening the no-hallucinated-execution
+> guarantee. Wiring: `MissionAnnouncer`/`MissionVoiceListener` (production +
+> fallback readback paths). Regression guards in
+> `tests/missions/test_voice_announcer.py` (rephrase-faithful + fallback-to-signed)
+> and `tests/unit/voice/test_contextual_readback.py`.
+
### 2. Worker-Critic-Loop with MAX_CRITIC_LOOPS=3
```
@@ -89,9 +107,9 @@ Heuristic: a mission is Phase-6-eligible if the router classifier returns `code`
- **MAX_CRITIC_LOOPS as config:** abused forever as a tuning knob ("just bump it to 5 briefly for this one problem"). Cost discipline requires hardcoding. **Rejected.**
- **Single-critic pass (no loop):** the Self-Refine paper shows that even one iteration yields ~20%; the Reflexion paper shows 3 iterations are the cost/value optimum. A single-pass critic is throwaway money. **Rejected.**
- **Docker-per-worker (OpenHands pattern):** 30-60s cold start destroys the voice UX. Single-tenant, no security gain over Job Object + worktree. **Rejected.**
-- **Redis Streams / NATS / Temporal as the event backbone:** an additional daemon lifecycle that Ruben would have to maintain. SQLite WAL delivers 95% of the value at 0% ops cost. Escape hatch documented: if the main Jarvis and the Kontrollierer ever move into separate processes, swap `EventBus.publish` -> `redis.xadd`. **Rejected for now.**
+- **Redis Streams / NATS / Temporal as the event backbone:** an additional daemon lifecycle that Alex would have to maintain. SQLite WAL delivers 95% of the value at 0% ops cost. Escape hatch documented: if the main Jarvis and the Kontrollierer ever move into separate processes, swap `EventBus.publish` -> `redis.xadd`. **Rejected for now.**
- **Cross-model critic as default** (Worker = Claude, Critic = Codex/GPT): the multi-agent-debate literature supports it, but it doubles auth flows + cost trackers. **Optional via config flag, not default.**
-- **Phase 6 overrides Phase 5:** unnecessary risk concentration. Phase 5 works for the smalltalk-tier Sub-Jarvis (see ADR-0011); Phase 6 is additive for multi-step missions. **Rejected.**
+- **Phase 6 overrides Phase 5:** unnecessary risk concentration. Phase 5 works for the smalltalk-tier Jarvis-Agent (see ADR-0011); Phase 6 is additive for multi-step missions. **Rejected.**
## References
@@ -99,7 +117,7 @@ Heuristic: a mission is Phase-6-eligible if the router classifier returns `code`
- Phase-6 plan: `docs/phase6-plan.md` (TBD).
- Prompt chain: `docs/phase6-prompt-chain.md` (skeleton created).
- Persona mandate: `Jarvis-Behavior/persona-delegation-mandate.md` §"Phase 4 — Multi-Step-Missions".
-- Master plan: `C:\Users\Administrator\.claude\plans\also-er-muss-auch-lexical-pond.md` §"Phase 6 — Self-Healing".
+- Master plan: `<USER_HOME>\.claude\plans\also-er-muss-auch-lexical-pond.md` §"Phase 6 — Self-Healing".
- Existing code (NOT to be changed): `jarvis/brain/sub_jarvis.py:SubJarvisManager`.
- Planned new modules: `jarvis/missions/{manager,state_machine,kontrollierer,workers,critic,isolation}/*`.
- Subagents for the Phase-6 implementation: `.claude/agents/jarvis-{architect-explorer,test-runner,critic-design-reviewer}.md`.
diff --git a/docs/adr/0010-output-filter-pattern-based.md b/docs/adr/0010-output-filter-pattern-based.md
index f0d966c879..c5db8c6df0 100644
--- a/docs/adr/0010-output-filter-pattern-based.md
+++ b/docs/adr/0010-output-filter-pattern-based.md
@@ -3,7 +3,7 @@ title: "ADR-0010: Output-Filter Pattern-based"
slug: adr-0010-output-filter-pattern-based
diataxis: adr
status: active
-owner: harald
+owner: sam
last_reviewed: 2026-04-29
phase: 1
audience: developer
@@ -19,14 +19,14 @@ audience: developer
Brain output lands on two TTS paths:
1. `pipeline._handle_utterance` → `_speak()` → `tts.synthesize()` (main path).
-2. `pipeline._on_announcement` (`AnnouncementRequested` bus handler) → `tts.synthesize()` (bus bypass for skill / Sub-Jarvis announcements).
+2. `pipeline._on_announcement` (`AnnouncementRequested` bus handler) → `tts.synthesize()` (bus bypass for skill / Jarvis-Agent announcements).
On both paths, tool-call JSON, stack traces, Markdown remnants, engineering jargon (`Harness`/`MCP`/`Subprocess`/`Provider`), self-reference (`Als KI`/`As an AI`), echo paraphrase (`Du möchtest also …`/`If I understand correctly …`) and filler openers (`Großartige Frage`) reach the TTS synthesis unfiltered — the user hears engineering garbage read aloud. Pre-existing pre-filters (`_strip_paraphrase_prefix`, `_is_non_substantive_response`) cover only a part of it.
Three filter strategies were up for debate:
- **A. LLM roundtrip** ("Please rephrase this in voice form"). Clean output quality, but 200–800 ms of additional latency per turn. Kills any butler tone.
-- **B. Hard cut** (truncate everything after the first stack-trace / JSON marker). Fast, but wrecks legitimate Sub-Jarvis replies that look "JSON-like".
+- **B. Hard cut** (truncate everything after the first stack-trace / JSON marker). Fast, but wrecks legitimate Jarvis-Agent replies that look "JSON-like".
- **C. Pattern-based** (regex-only, with whitelist protection for user-concept words). Fast, testable, deterministic.
## Decision
@@ -66,7 +66,7 @@ Three filter strategies were up for debate:
## Alternatives Considered
- **A. LLM-filter roundtrip** ("the brain produces raw, an LLM wrapper rephrases for voice"): cleanest output quality, but +200–800 ms latency kills the butler tone. **Rejected.**
-- **B. Hard cut at the tool-JSON marker** (cut off everything after `dispatch_to_*`): very fast, but wrecks legitimate Sub-Jarvis replies that happen to contain JSON-like strings ("Die Datei deklariert vier Provider in JSON-Format"). **Rejected.**
+- **B. Hard cut at the tool-JSON marker** (cut off everything after `dispatch_to_*`): very fast, but wrecks legitimate Jarvis-Agent replies that happen to contain JSON-like strings ("Die Datei deklariert vier Provider in JSON-Format"). **Rejected.**
- **D. Enforce a pre-filter via the brain system prompt** ("You MUST NOT output JSON"): not reliable — Gemini Flash still leaks occasionally. Defense in depth required (prompt + filter). **Implemented as a complement** (JARVIS_PERSONA.md ECHO-PARAPHRASE section + ROUTER-DISCIPLINE section), not as a replacement.
## Subsequent drift-class extension 2026-04-28
diff --git a/docs/adr/0011-router-pure-dispatcher.md b/docs/adr/0011-router-pure-dispatcher.md
index 9f30f959f2..df1b413472 100644
--- a/docs/adr/0011-router-pure-dispatcher.md
+++ b/docs/adr/0011-router-pure-dispatcher.md
@@ -3,7 +3,7 @@ title: "ADR-0011: Pure Dispatcher (4 Tools)"
slug: adr-0011-router-pure-dispatcher
diataxis: adr
status: active
-owner: harald
+owner: sam
last_reviewed: 2026-04-29
phase: 5
audience: developer
@@ -41,7 +41,7 @@ ROUTER_TOOLS = frozenset({
})
```
-Direct actions outside these four (`open_app`, `type_text`, `search_web`, `remember`, `whoami`) belong in the Sub-Jarvis tier — the router delegates them via `spawn_sub_jarvis`.
+Direct actions outside these four (`open_app`, `type_text`, `search_web`, `remember`, `whoami`) belong in the Jarvis-Agent tier — the router delegates them via `spawn_sub_jarvis`.
### 2. Deterministic force-spawn heuristic
@@ -78,7 +78,7 @@ DO-NOT-SPAWN — antworte direkt, WENN:
### 4. D9 recursion guard (unchanged, now explicitly tested)
-`spawn-sub-jarvis` must NEVER land in `SUB_TOOLS` — a Sub-Jarvis cannot recursively spawn new Sub-Jarvis instances. Master plan §6 D9. Test: `test_spawn_sub_jarvis_only_in_router_tools`.
+`spawn-sub-jarvis` must NEVER land in `SUB_TOOLS` — a Jarvis-Agent cannot recursively spawn new Jarvis-Agent instances. Master plan §6 D9. Test: `test_spawn_sub_jarvis_only_in_router_tools`.
## Consequences
@@ -129,9 +129,9 @@ SELF_MOD_TOOL_NAMES_ROUTER = frozenset({
| Tool | Phase | Rationale | Recursion guard? |
|---|---|---|---|
-| `dispatch-to-harness` | 5 (final state) | Main Jarvis needs the direct harness path without Sub-Jarvis spawn latency. Use case: the user asks "What do you see on the screen?" → Main Jarvis calls `screen-snapshot` and immediately `dispatch-to-harness` with the observation output to a coding harness, without triggering the 30-min-hard-cap Sub-Jarvis spawn. | n/a — the tool is not self-recursive. |
-| `dispatch-with-review` | 8.4 (Plan §6.4 quality-gate pipeline) | Main Jarvis calls the review pipeline explicitly. The pipeline worker IS itself a Sub-Jarvis-equivalent construct; if a Sub-Jarvis could in turn call `dispatch-with-review`, it would spawn the pipeline worker, which is again a Sub-Jarvis → a recursion vector analogous to `spawn-sub-jarvis`. | **Yes** — `SUB_TOOLS` does **not** contain the tool. Test: `test_recursive_tools_only_in_router` (`tests/unit/brain/test_routing.py`). |
-| `list_mutable_settings`, `get_config_value`, `set_config_value` | 7.3 (Plan §AD-2 self-mod) | Setting mutation may only be triggered by the main-Jarvis tier. A Sub-Jarvis worker (Opus 4.7) would carry too high a privilege-escalation potential. The tools are registered directly in the loader (not via entry_points), so an accidental sub-tier activation through entry_points discovery is ruled out. | **Yes** — the tools are hardcoded main-Jarvis-only. |
+| `dispatch-to-harness` | 5 (final state) | Main Jarvis needs the direct harness path without Jarvis-Agent spawn latency. Use case: the user asks "What do you see on the screen?" → Main Jarvis calls `screen-snapshot` and immediately `dispatch-to-harness` with the observation output to a coding harness, without triggering the 30-min-hard-cap Jarvis-Agent spawn. | n/a — the tool is not self-recursive. |
+| `dispatch-with-review` | 8.4 (Plan §6.4 quality-gate pipeline) | Main Jarvis calls the review pipeline explicitly. The pipeline worker IS itself a Jarvis-Agent-equivalent construct; if a Jarvis-Agent could in turn call `dispatch-with-review`, it would spawn the pipeline worker, which is again a Jarvis-Agent → a recursion vector analogous to `spawn-sub-jarvis`. | **Yes** — `SUB_TOOLS` does **not** contain the tool. Test: `test_recursive_tools_only_in_router` (`tests/unit/brain/test_routing.py`). |
+| `list_mutable_settings`, `get_config_value`, `set_config_value` | 7.3 (Plan §AD-2 self-mod) | Setting mutation may only be triggered by the main-Jarvis tier. A Jarvis-Agent worker (Opus 4.7) would carry too high a privilege-escalation potential. The tools are registered directly in the loader (not via entry_points), so an accidental sub-tier activation through entry_points discovery is ruled out. | **Yes** — the tools are hardcoded main-Jarvis-only. |
### What does NOT break the mandate-spirit guarantees
@@ -143,7 +143,7 @@ SELF_MOD_TOOL_NAMES_ROUTER = frozenset({
### When the appearance of drift becomes a real violation
- A **direct action** migrates into `ROUTER_TOOLS` (e.g. `open-app`). → Mandate violation; the ROUTER would again know direct actions, which we already had on 2026-04-23.
-- A **recursion-vector** tool migrates into `SUB_TOOLS`. → D9 violation; a Sub-Jarvis could recursively spawn.
+- A **recursion-vector** tool migrates into `SUB_TOOLS`. → D9 violation; a Jarvis-Agent could recursively spawn.
- `_should_force_sub_jarvis` is replaced by an LLM pre-classifier. → ADR-0011 "Alternatives Considered" explicitly rejected this; a code re-introduction would be worth a new ADR.
If none of these three points occurs, the extension of the tool set is by definition within the pure-dispatcher corridor.
@@ -183,7 +183,7 @@ single `cli_<name>` tool. Adding `cli-tools` to `ROUTER_TOOLS` is the fix.
| Tool | Phase | Rationale | Recursion guard? |
|---|---|---|---|
-| `cli-tools` | CLI integration | Each expanded `cli_<name>` tool is a **direct, safety-gated action** (the user wants "list my GCP projects" answered, not delegated to a 30-min worker spawn). It is the MCP/plugin model for command-line tools. Per-CLI risk patterns (`spec.risk.{whitelist,blacklist}_patterns`) flow into the `RiskTierEvaluator` via `make_cli_patterns_fn`. | **n/a as a recursion vector** — a `cli_<name>` tool runs a subprocess, it cannot spawn the supervisor. It is router-tier only and never enters any worker tool-set (AP-5/AP-14); the deleted Sub-Jarvis tier / `SUB_TOOLS` cannot re-acquire it. |
+| `cli-tools` | CLI integration | Each expanded `cli_<name>` tool is a **direct, safety-gated action** (the user wants "list my GCP projects" answered, not delegated to a 30-min worker spawn). It is the MCP/plugin model for command-line tools. Per-CLI risk patterns (`spec.risk.{whitelist,blacklist}_patterns`) flow into the `RiskTierEvaluator` via `make_cli_patterns_fn`. | **n/a as a recursion vector** — a `cli_<name>` tool runs a subprocess, it cannot spawn the supervisor. It is router-tier only and never enters any worker tool-set (AP-5/AP-14); the deleted Jarvis-Agent tier / `SUB_TOOLS` cannot re-acquire it. |
### Pure-Dispatcher spirit is preserved
@@ -191,7 +191,7 @@ A `cli_<name>` tool is not a generic direct-action like `open_app`/`type_text`
(those stay off the router by design). It is a **gated external-system call**
with a declared binary, declared risk tier, and per-CLI allow/deny patterns —
architecturally the same shape as the existing `dispatch-to-harness`
-meta-action: the router calls it directly instead of forcing a Sub-Jarvis spawn,
+meta-action: the router calls it directly instead of forcing a Jarvis-Agent spawn,
avoiding the spawn-latency tax for read-only CLI queries.
### Live-reload contract
@@ -255,7 +255,7 @@ desktop.
type / key inside the loop is gated through the `ToolExecutor` risk tiers
(ADR-0008). It is **not** a spawn — it cannot re-enter the supervisor, so it
carries no D9 recursion risk and never enters a worker tool-set (AP-5/AP-14).
-It is router-tier only; the deleted Sub-Jarvis tier / `SUB_TOOLS` cannot
+It is router-tier only; the deleted Jarvis-Agent tier / `SUB_TOOLS` cannot
re-acquire it.
### Regression guards
@@ -394,7 +394,7 @@ Three tools join the router set so the brain has a complete grip on the Desktop
App configuration by voice/chat:
- `describe-app-settings` (safe, read-only) - a complete, secret-free snapshot:
- the active brain/TTS/STT/subagent provider (and which have a stored key), the
+ the active brain/TTS/STT/Jarvis-Agent provider (and which have a stored key), the
key settings, and the configured MCP servers. The "full overview" capability.
- `switch-provider` (ask, echo-confirm) - switch *which* provider is active for a
tier ("switch from Grok to Gemini"). Reuses the exact 3-layer persist +
@@ -681,3 +681,81 @@ the live `BrainManager.refresh_tools()` consumes to re-expand `mcp-tools`
- `tests/unit/brain/test_routing.py::test_mcp_tools_is_router_only_not_a_spawn`
- `tests/unit/brain/test_routing.py::test_router_tools_is_pure_dispatcher_set`
(exact-match set updated to include `mcp-tools`)
+
+## Amendment — Marketplace native tools `gmail`, `vercel`, `google_calendar`
+
+A connected marketplace plugin that has **no MCP server block** (so the virtual
+`mcp-tools`/`plugin-tools` loaders expand to nothing for it) must be made
+router-visible **directly**, or a voice/chat command can never reach it. Three
+such native tools are in `ROUTER_TOOLS`:
+
+| Tool | Added | Backing | Risk | Recursion guard? |
+|---|---|---|---|---|
+| `gmail` | 2026-06-01 | Gmail REST API via the marketplace OAuth token | `ask` (send is consequential; reads downgrade to `safe` via `risk_tier_for_args`) | n/a — a direct REST call, not a spawn; router-tier only (AP-5/AP-14) |
+| `vercel` | 2026-06-07 | Vercel REST API via the marketplace PAT | `monitor` (read-only) | n/a — direct REST call, never a spawn |
+| `google_calendar` | 2026-06-27 | Google Calendar API v3 via a **Node bot** (`calendar_bot.mjs`); a thin Python bridge reuses the marketplace OAuth token + refresh loop | `monitor` (writes), `safe` (reads) via `risk_tier_for_args` — **full autonomy, never `ask`** (user mandate) | n/a — the bridge runs a short-lived `node` subprocess for one API call, it cannot spawn the supervisor; router-tier only, never enters a worker set (AP-5/AP-14) |
+
+Same spirit as `cli-tools`: a **gated external-system call** with a declared
+risk tier and the marketplace token model — not a generic direct-action like
+`open_app`/`type_text` (those stay off the router by design). The token never
+expires in practice because the bridge self-heals on a 401 (refresh once +
+retry) and the `RefreshScheduler` keeps the refresh token warm.
+
+### Regression guards
+
+- `tests/unit/plugins/tool/test_google_calendar_rest.py` — 13 cases: per-action
+ payloads, 401 → one refresh + retry, no action is ever `ask` (full autonomy),
+ graceful "not connected" / "node missing".
+- `tests/unit/brain/test_routing.py::test_router_tools_is_pure_dispatcher_set`
+ (exact-match set updated to include `google_calendar`).
+
+## Amendment — `dispatch-to-harness` removed from the LLM-visible router set (2026-06-28)
+
+**Forensic.** A user said by voice, in effect, *"start a subagent that writes me
+a study sheet."* Jarvis replied: *"the harness 'openclaw' is not available;
+active are only mcp-remote, open-interpreter, python-script and screenshot."*
+The brain had chosen `dispatch_to_harness(harness="openclaw", …)` instead of
+`spawn_worker`. `HarnessManager.get("openclaw")` raised a `KeyError`, and its raw
+message — including the internal active/failed harness inventory — was read
+aloud.
+
+**Root cause.** `dispatch-to-harness` exposed a free-form `harness` string
+parameter and its description advertised *"OpenClaw, Codex, Python-Script, MCP"*
+as Jarvis-Agent vehicles. But OpenClaw is **not a registered harness** — it was
+removed 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
+that can never run. The capability surface compounded it: `tool.spawn-worker`
+was described as *"Spawn an OpenClaw sub-agent"* and a separate
+`harness.openclaw` capability advertised the dead vehicle.
+
+**Decision.** `dispatch-to-harness` is **removed from `ROUTER_TOOLS`** — it is no
+longer an LLM-selectable tool. The two legitimate paths are unchanged and
+sufficient:
+
+- **heavy Jarvis-Agent work → `spawn-worker`** (Mission-Manager → `ClaudeDirectWorker`);
+- **live desktop control → `computer-use`**.
+
+The `DispatchToHarnessTool` class is **retained** for the internal, non-LLM
+local-action / computer-use fast path (`_load_local_action_tools`, invoked
+programmatically with a registered harness name). It is just not router-visible.
+Do **not** re-add it to `ROUTER_TOOLS` — that resurrects the phantom-openclaw
+routing bug.
+
+Companion changes: the dead `tool.dispatch-to-harness` and `harness.openclaw`
+capabilities are deleted from the seed; `tool.spawn-worker` is re-described
+(*"Spawn a background worker sub-agent"*) with its `openclaw` verbs/objects
+removed; the `HarnessManager.get()` / `dispatch_to_harness` error paths no longer
+leak the raw harness inventory into a message that can reach voice; and the boot
+path logs a warning when an inert `[harness.openclaw].enabled = true` block is
+present (`warn_if_phantom_openclaw`).
+
+### Regression guards
+
+- `tests/unit/brain/test_routing.py::test_dispatch_to_harness_not_in_router_tools`
+- `tests/unit/brain/test_routing.py::test_subagent_request_forces_spawn_worker`
+- `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`
+- `tests/integration/test_dispatch_to_harness.py::test_unknown_harness_returns_neutral_error_no_inventory_leak`
diff --git a/docs/adr/0012-awareness-recall-router-tier.md b/docs/adr/0012-awareness-recall-router-tier.md
index 3b654b86b1..37eb1b78df 100644
--- a/docs/adr/0012-awareness-recall-router-tier.md
+++ b/docs/adr/0012-awareness-recall-router-tier.md
@@ -8,18 +8,18 @@
that performs a BM25 full-text search over the recent episode log so the
brain can answer questions like „was war der Befehl von vorhin?" without
fabricating an answer. The plan was written before Welle 4 of the
-OpenClaw-Bridge migration and assumes the existence of a "Sub-Jarvis"
+Jarvis-Agents bridge migration and assumes the existence of a "Jarvis-Agent"
worker tier. In that world the plan unambiguously assigns the tool to
`SUB_TOOLS` (Plan §7, Hard-Negative #1) — the rationale at the time was
that recall is a slightly heavier operation (~50–300 ms SQLite hit) that
the latency-sensitive router should not perform.
-Welle 4 deleted the Sub-Jarvis tier in its entirety
+Welle 4 deleted the Jarvis-Agent tier in its entirety
(`jarvis/brain/factory.py:90-103`). Heavy work is now executed by
-external OpenClaw subprocesses spawned via `spawn_openclaw`. Those
-subprocesses run their own OpenClaw instances and do **not** inherit
+external Jarvis-Agent subprocesses spawned via `spawn_openclaw`. Those
+subprocesses run their own Jarvis-Agent instances and do **not** inherit
the Jarvis in-process tool registry — they can only call the tools that
-OpenClaw itself exposes (`Bash`, `Read`, `Grep`, MCP servers, etc.).
+the Jarvis-Agent itself exposes (`Bash`, `Read`, `Grep`, MCP servers, etc.).
A Python tool registered as a `jarvis.tool` entry point is invisible to
them.
@@ -29,8 +29,8 @@ This leaves two real homes for `awareness-recall`:
process. Latency is fine — a single FTS5 `MATCH` on the local SQLite
file is well under the 300 ms budget set by the plan, and the result
stays inside the router's context window so it can decide whether to
- answer directly or spawn an OpenClaw worker.
-2. **Inside an MCP server that OpenClaw connects to.** Workable but
+ answer directly or spawn a Jarvis-Agent worker.
+2. **Inside an MCP server that the Jarvis-Agent connects to.** Workable but
premature: it requires standing up an MCP transport, exposing
internal Jarvis state across a process boundary, and forcing the
worker to discover and call the tool. Three additional moving parts
@@ -44,7 +44,7 @@ entry-point loader. The tool's constructor takes the existing
`RecallStore` instance the factory already builds for `MessageRecorder`
and `StoryTracker`, so no new dependency is introduced.
-If the router brain decides to delegate work to an OpenClaw worker
+If the router brain decides to delegate work to a Jarvis-Agent worker
after recalling, it may bake the recall result into the worker's
`context_hints` field on the `spawn_openclaw` call. That follow-up is
out of scope for the initial A3 wave but the placement chosen here does
@@ -68,7 +68,7 @@ not block it.
clear error rather than disappearing from the schema mid-session.
This prevents the router brain from re-learning the tool list every
time awareness is toggled.
-- **Recursion-protection is structural.** Because OpenClaw workers
+- **Recursion-protection is structural.** Because Jarvis-Agent workers
cannot 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
@@ -82,7 +82,7 @@ not block it.
- **Expose recall via an MCP server.** Future-compatible but adds a
process boundary, MCP transport plumbing, and worker-side tool
discovery for what is otherwise a 200-line addition. Revisit if and
- when OpenClaw workers need recall directly, e.g. for long-running
+ when Jarvis-Agent workers need recall directly, e.g. for long-running
analytic tasks. The router-tier placement does not preclude this
upgrade.
- **Add an in-process worker tier.** Would directly resurrect what
@@ -91,7 +91,7 @@ not block it.
## References
- `JARVIS_AWARENESS_PLAN.md` §7 (Phase A3 original specification).
-- `docs/openclaw-bridge.md` §11 (Code-Migrations-Tabelle, Welle 4).
+- `docs/jarvis-agents-bridge.md` §11 (Code-Migrations-Tabelle, Welle 4).
- `jarvis/brain/factory.py:40-58` (ROUTER_TOOLS frozenset).
- `jarvis/plugins/tool/awareness_recall.py` (tool implementation).
- `jarvis/memory/recall.py:357` (`search_episodes` with `since_ns`).
diff --git a/docs/adr/0014-flash-brain-suppress-if-fast.md b/docs/adr/0014-flash-brain-suppress-if-fast.md
index 14e44e8687..7f49d5477a 100644
--- a/docs/adr/0014-flash-brain-suppress-if-fast.md
+++ b/docs/adr/0014-flash-brain-suppress-if-fast.md
@@ -109,7 +109,7 @@ have been, but at least audible.
reasoning turns the user now waits ~2.7 s for the ack instead
of ~0.7 s. Still well under the empirical "did Jarvis hear me?"
threshold (~5 s) the driver reports.
-- **OpenClaw delegation skipped on grok / openai / openrouter /
+- **Jarvis-Agent delegation skipped on grok / openai / openrouter /
ollama primaries.** Until a non-Gemini worker exists, every
action-utterance is handled inline by the Router-Brain. This
is slower for genuine multi-step tasks (no parallelism with the
diff --git a/docs/adr/0014-memory-trigger-contract.md b/docs/adr/0014-memory-trigger-contract.md
index ee6de1b669..d4c23d7b53 100644
--- a/docs/adr/0014-memory-trigger-contract.md
+++ b/docs/adr/0014-memory-trigger-contract.md
@@ -79,7 +79,7 @@ removing or renaming a trigger requires amending this ADR.
| `VoiceFactBridge` (aggressive path) | `ResponseGenerated` without ack, > 30 chars | calls `WikiCurator.ingest()` in background, rate-limited | **loud regression** — same as ack path, plus rate-limit logged at DEBUG |
| `SessionRollupWorker` | `IdleEntered` past `session_idle_threshold_minutes` | writes one session Markdown page | **loud regression** — failure increments `session_rollups_failed` and is WARNING-logged |
-New triggers (planned in B6: external-source ingest, OpenClaw
+New triggers (planned in B6: external-source ingest, Jarvis-Agents
context hints) MUST be added to this table in the same PR that adds
their code.
@@ -131,7 +131,7 @@ the 2026-05-13 outage.
Any second-path ingest mode that fires without an explicit
acknowledgement signal (today: `VoiceFactBridge` aggressive path;
-future: OpenClaw context hints) MUST satisfy three structural
+future: Jarvis-Agents context hints) MUST satisfy three structural
properties.
**Rate-limited.** A per-source minimum interval, configurable via
diff --git a/docs/adr/0017-capability-coupling.md b/docs/adr/0017-capability-coupling.md
index 08e7bd39c0..09d90e471c 100644
--- a/docs/adr/0017-capability-coupling.md
+++ b/docs/adr/0017-capability-coupling.md
@@ -6,7 +6,7 @@
Personal Jarvis can — and routinely does — confirm actions it is not capable of
performing. Classic example from production: a user says "Schick eine Email an
-Harald" and the Ack-Brain replies "wird erledigt" while no email capability
+Sam" and the Ack-Brain replies "wird erledigt" while no email capability
exists anywhere in the running process. The TTS happily reads the phantom
success; the mail is never sent; the user is deceived.
@@ -19,8 +19,8 @@ tool can actually execute".
Three existing architectural decisions make the problem worse:
-**AD-9 (openclaw-bridge.md):** The Critic currently ratifies empty diffs for
-non-file tasks. An OpenClaw mission can complete with no file changes, no
+**AD-9 (jarvis-agents-bridge.md):** The Critic currently ratifies empty diffs for
+non-file tasks. A Jarvis-Agent mission can complete with no file changes, no
tool-call evidence, and a positive `success=True` from the Critic if the worker
text *says* the task is done. For `requires_evidence=True` capabilities this is
a silent lie.
@@ -97,7 +97,7 @@ called. 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
`has_action_intent AND NOT _capability_resolves AND NOT _is_smalltalk`:
-skip brain dispatch and OpenClaw spawn; emit the deterministic UNSUPPORTED
+skip brain dispatch and Jarvis-Agent spawn; emit the deterministic UNSUPPORTED
response via the same TTS path as a short reply.
Deterministic response phrasing (no LLM, constant strings):
@@ -132,7 +132,7 @@ is `success=False` with `reason="capability_not_executed"`. `summary_de` is
derived from tool-call evidence via `summarise_from_tool_calls(calls)` in
`jarvis/missions/critic/summary.py`, not from the worker's text claim.
-For OpenClaw missions in the current Welle-2 mock state (no tool-call telemetry
+For Jarvis-Agent missions in the current Welle-2 mock state (no tool-call telemetry
streaming), the Critic **defaults to `success=False`** for
`requires_evidence=True` capabilities. This conservative default is intentional
and will be relaxed in Welle 3 when proper tool-call telemetry lands.
@@ -180,7 +180,7 @@ contributor guide.
(Section 4) is designed to make this cost negligible when the adapter already
exists.
- The Critic will conservatively fail `requires_evidence=True` missions that use
- the Welle-2 mock OpenClaw path (no tool-call telemetry). This is the correct
+ the Welle-2 mock Jarvis-Agents path (no tool-call telemetry). This is the correct
default — accepting unverifiable success claims is the bug this ADR fixes.
Welle-3 tool-call telemetry resolves this at the Critic layer; the gate and
prompt layers are unaffected.
@@ -236,5 +236,5 @@ not a confirmation loop for phantom capability.
- `tests/integration/test_capability_coupling_e2e.py` (this ADR — Agent E)
- Bug register: `docs/BUGS.md` — BUG-028 Capability Hallucination
- Sibling pattern: `docs/anti-drift-three-layer.md`
-- OpenClaw bridge: `docs/openclaw-bridge.md` AD-9 (Critic + risk-tier)
-- Welle-3 telemetry: OpenClaw bridge contract AP-OC7
+- Jarvis-Agents bridge: `docs/jarvis-agents-bridge.md` AD-9 (Critic + risk-tier)
+- Welle-3 telemetry: Jarvis-Agents bridge contract AP-OC7
diff --git a/docs/adr/0020-cross-platform-elevation.md b/docs/adr/0020-cross-platform-elevation.md
index a088c8fd81..05e41659b5 100644
--- a/docs/adr/0020-cross-platform-elevation.md
+++ b/docs/adr/0020-cross-platform-elevation.md
@@ -3,7 +3,7 @@ title: "ADR-0020: Cross-platform privileged execution (AdminTransport + Elevator
slug: adr-0020-cross-platform-elevation
diataxis: adr
status: active
-owner: harald
+owner: sam
last_reviewed: 2026-05-29
phase: 5
audience: developer
diff --git a/docs/adr/0021-web-search.md b/docs/adr/0021-web-search.md
index bcbe5f4040..6639a9817a 100644
--- a/docs/adr/0021-web-search.md
+++ b/docs/adr/0021-web-search.md
@@ -4,7 +4,7 @@ slug: adr-021-web-search
diataxis: adr
status: active
date: 2026-05-27
-owner: harald
+owner: sam
phase: skills
audience: developer
y_statement: >
@@ -33,7 +33,7 @@ y_statement: >
The router-tier brain needs a cheap, cloud-only way to answer factual
"what is X / who is Y / when did Z happen" questions without spawning a
-full OpenClaw mission. A dedicated `web_search` skill — backed by
+full Jarvis-Agent mission. A dedicated `web_search` skill — backed by
Gemini's grounded-search mode — fills that gap.
Two architectural pressures shaped the design:
diff --git a/docs/adr/0022-web-search-phase-2.md b/docs/adr/0022-web-search-phase-2.md
index 8ee912582c..2e6cc5709b 100644
--- a/docs/adr/0022-web-search-phase-2.md
+++ b/docs/adr/0022-web-search-phase-2.md
@@ -4,7 +4,7 @@ slug: adr-022-web-search-phase-2
diataxis: adr
status: draft
date: 2026-05-27
-owner: harald
+owner: sam
phase: skills
audience: developer
supersedes: none
diff --git a/docs/adr/ADR-021-web-search.md b/docs/adr/ADR-021-web-search.md
index d41bc0c112..d83ed22963 100644
--- a/docs/adr/ADR-021-web-search.md
+++ b/docs/adr/ADR-021-web-search.md
@@ -4,7 +4,7 @@ slug: adr-021-web-search
diataxis: adr
status: accepted
date: 2026-05-27
-owner: harald
+owner: sam
phase: skills
audience: developer
y_statement: >
@@ -33,7 +33,7 @@ y_statement: >
The router-tier brain needs a cheap, cloud-only way to answer factual
"what is X / who is Y / when did Z happen" questions without spawning a
-full OpenClaw mission. A dedicated `web_search` skill — backed by
+full Jarvis-Agent mission. A dedicated `web_search` skill — backed by
Gemini's grounded-search mode — fills that gap.
Two architectural pressures shaped the design:
diff --git a/docs/agents-self-verification.md b/docs/agents-self-verification.md
index 267f66df50..e7eb34e356 100644
--- a/docs/agents-self-verification.md
+++ b/docs/agents-self-verification.md
@@ -2,7 +2,7 @@
**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.
-**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, OpenClaw bridge doc §5, Phase-7 doc §6) remain canonical — this file mirrors them for subagent consumption.
+**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.
---
@@ -59,9 +59,9 @@
---
-## 5. OpenClaw Bridge Anti-Patterns
+## 5. Jarvis-Agents Bridge Anti-Patterns
-From `docs/openclaw-bridge.md` §5 (full justifications there). OpenClaw fully replaces the Phase-5 Sub-Jarvis 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). 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.
| ID | Anti-Pattern | Fix |
|---|---|---|
@@ -76,7 +76,7 @@ From `docs/openclaw-bridge.md` §5 (full justifications there). OpenClaw fully r
| AP-OC9 | MCP tool filter in the 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 Sub-Jarvis attempts (Phase-5 tier, fully deleted in Welle 4):**
+**Plus from the lessons learned of the old Jarvis-Agent attempts (Phase-5 tier, fully deleted in Welle 4):**
| ID | Anti-Pattern | Source | Fix |
|---|---|---|---|
@@ -121,7 +121,7 @@ From `JARVIS_AWARENESS_PLAN.md` §10 (full there):
| AP-AW2 | Awareness snapshot with an LLM call | State read only, regex/heuristic |
| AP-AW3 | Story-tracker lock holding across an LLM call | Release the lock before the LLM call (Codex adversarial review B1) |
| AP-AW4 | Event payload with cleartext PII | PrivacyFilter before bus publish (B2) |
-| AP-AW5 | FTS5 recall in the voice critical path | The A3 tool is OpenClaw-only (subagent), never the Personal Jarvis brain |
+| AP-AW5 | FTS5 recall in the voice critical path | The A3 tool is Jarvis-Agent-only (worker), never the Personal Jarvis brain |
| AP-AW6 | Drafts in story episodes with full text | Salience scorer + Verdichter, never raw storage |
---
@@ -131,7 +131,7 @@ From `JARVIS_AWARENESS_PLAN.md` §10 (full there):
This is where false positives land that reviewers repeatedly flag incorrectly as AP:
- **`jarvis/vision/screenshot.py:_ensure_dpi_awareness` lazy-imports `ctypes`** — not AP-A4 (hardcoded), this is the correct DPI-awareness pattern for Win32 (see `win32-specialist` mandatory reading).
-- **`pipeline.py:_on_announcement` calls `synthesize` directly** — not AP-A2 (lateral-direct), this is the deliberate bus bypass for subagent/skill announcements, used by the OpenClaw bridge for `summary_de` voice readback (CLAUDE.md §Output-Filter).
+- **`pipeline.py:_on_announcement` calls `synthesize` directly** — not AP-A2 (lateral-direct), this is the deliberate bus bypass for Jarvis-Agent/skill announcements, used by the Jarvis-Agents bridge for `summary_de` voice readback (CLAUDE.md §Output-Filter).
- **`output_filter.py` regex-only without LLM** — not an AP-V4-style lazy filter, latency mandate (CLAUDE.md §Output-Filter).
- **`build_default_brain()` creates its own `EventBus`** — a known open item, not an AP, until the two-bus bridge refactor happens (CLAUDE.md §Desktop-App open items).
@@ -156,10 +156,10 @@ This is where false positives land that reviewers repeatedly flag incorrectly as
| CLAUDE.md | Repo root | Architecture, plugin system, streaming, event bus, Windows specifics, conventions |
| BUGS.md | `docs/BUGS.md` | Bug register and lessons learned |
| ADR collection | `docs/adr/0001-0011*` | Architecture decisions with justification |
-| OpenClaw bridge doc | `docs/openclaw-bridge.md` | AD-1..AD-21, AP-OC1..OC13, test strategy |
+| Jarvis-Agents bridge doc | `docs/jarvis-agents-bridge.md` | AD-1..AD-21, AP-OC1..OC13, test strategy |
| Phase-7 doc | `docsplansphase-7-self-mod/PROJEKT_KONTEXT.md` | AD-1..AD-10, AP-SM1..SM14, EK-1..EK-4 |
| Awareness Plan | `Jarvis Long-Term Memory/Unbenanntes Dokument (3).md` | A0–A5 specification, §10 anti-pattern register |
-| Master plan | `C:\Users\Administrator\.claude\plans\also-er-muss-auch-lexical-pond.md` | Binding architecture document |
+| Master plan | `<USER_HOME>\.claude\plans\also-er-muss-auch-lexical-pond.md` | Binding architecture document |
---
diff --git a/docs/architecture-overview.md b/docs/architecture-overview.md
new file mode 100644
index 0000000000..88257a65ee
--- /dev/null
+++ b/docs/architecture-overview.md
@@ -0,0 +1,241 @@
+# Architecture & product overview
+
+This file holds the **reference detail** that used to live inline in `CLAUDE.md`:
+the phase status table, the full layer model, the deep architecture subsections,
+the optimistic-execution decisions, the cross-platform desktop ports, and the
+platform/brand/wake specifics. `CLAUDE.md` keeps only the binding rules an agent
+must respect on every change and links here for the depth.
+
+Status drift moves fast. The filesystem + `git log -- <module>` is the source of
+truth; verify against it rather than trusting any table below.
+
+---
+
+## Project
+
+**Personal Jarvis** — voice-driven meta-orchestrator. Not a classical voice
+assistant: the core pattern is **Supervisor-Agent** that dispatches work to
+interchangeable harnesses (the agent-harness subprocess, Codex CLI, Open
+Interpreter, MCP servers). The voice layer is just the interface.
+
+**Master plan:** `~/.claude/plans/also-er-muss-auch-lexical-pond.md` — binding for
+all design decisions. On conflict between plan and code, the plan wins; code
+deviations must be documented back in the plan.
+
+**Binding architecture contracts:**
+- The agent-harness bridge contract (AD-1..AD-21, AP-OC1..AP-OC14). Welle 1
+ (spike) + Welle 4 (sub-tier deletion) are done; Welle 2 (live bridge in default
+ voice path) + Welle 3 (full live mode) remain.
+- [`docs/anti-drift-three-layer.md`](anti-drift-three-layer.md) — five-layer enum
+ pattern (Python ↔ SQL ↔ Pydantic ↔ TS ↔ UI). Mandatory for any string crossing
+ module boundaries.
+
+**Bug register:** [`docs/BUGS.md`](BUGS.md). Read before larger edits — the
+recurring bug classes (restore-trap, multi-layer enum drift, config drift,
+subprocess flicker, audio host-API) are catalogued there.
+
+---
+
+## Phase Status
+
+| Phase | Live? | Pointers |
+|---|---|---|
+| **0–4 — Foundations** | ✅ | Plugin system + protocols, FastAPI/React desktop app, speech pipeline, skill system, tool-use loop, risk-tier executor, core memory, harness dispatch. Detail in `docs/phase{0,1,1a,1c,2,4}-*.md`. |
+| **5 — Vision/Action/Admin/Async/Control + Tiered Routing** | ✅ | `jarvis/{vision,admin,tasks,control,telemetry}/`. Computer-Use enabled. Tiered routing via `ROUTER_TOOLS` frozenset. ADR-0001..0011. |
+| **6 — Self-Healing Worker-Critic** | ✅ | `jarvis/missions/` (event store, manager, recovery, state machine, budget, cleanup, workers, critic, kontrollierer, safety, voice, isolation). ADR-0009, `docs/phase6-*.md`. Wired into REST + voice path via `bootstrap_missions`. **Live progress (2026-06-15):** both the Codex worker and `ClaudeDirectWorker` stream stdout line-by-line; the orchestrator drain loop emits throttled `WorkerProgress` (`jarvis/missions/events.py`) → WS → `ReasoningPanel`. **Re-run (2026-06-15):** `POST /api/missions/{id}/rerun` re-dispatches a terminal mission's stored prompt as a NEW mission linked via `parent_mission_id` ("Continue" cancelled / "Restart" failed) — the source card is untouched audit; **no state-machine or idempotency change** (deliberate, avoids AP-14). |
+| **7 — Self-Mod (foundation + writer + tools)** | ✅ | `jarvis/core/self_mod/` (audit, errors, pending, registry, schema, writer). Three router-tier tools: `list_mutable_settings`, `get_config_value`, `set_config_value`. ADR + writeup in `docs/self_mod.md`. **7.5 `spawn-skill-author` IS now registered** (`pyproject.toml` → `jarvis.brain.tools.skill_authoring:SpawnSkillAuthorTool`, router-tier, `ask`; spawns the `SkillAuthoringRunner`). Generated skills land as `state="draft"` and are never auto-activated (AP-15). |
+| **Awareness A0–A5** | ✅ | `jarvis/awareness/` (state, story, salience, verdichter, working_set, episode, recall_store, watchers, probes). Router-tier tools `awareness-snapshot` (A1) + `awareness-recall` (A3). ADR-0009/0010/0012. Hard rule: **never on the voice critical path**. |
+| **Wiki B0/B1/B2/B3/B5/B7/B8/B9** | ✅ | `jarvis/memory/wiki/` (curator, atomic_writer, page_repository, integration, session_rollup, voice_bridge, telemetry, scheduler). Three router-tier tools: `wiki-recall`, `wiki-page-read`, `wiki-ingest`. ADR-0013/0014/0015. B2 = `docs/obsidian-setup.md` + B9-Wizard. B3 = `WikiView.tsx` + 6-endpoint `wiki_routes.py` + `wiki_ws.py` live-reload. **B4 soft-disabled** 2026-05-17 via `[memory.legacy_curator] enabled = false` — legacy Curator package + `data/workspace/` snapshot stay on disk; Hart-Cut (vault migration + reader refactor + package delete) remains open. **B6 not started**. |
+| **Agent-harness bridge** | ⚙ Welle 1+4 done | `jarvis/plugins/harness/`, `jarvis/missions/` harness package. `enabled=true`. Welle 2 (live bridge as default) + Welle 3 (live-mode wrap) open. |
+| **Ack-Brain (pre-thinking)** | ✅ | `jarvis/brain/ack_brain/` — sub-second butler ACK before the deep brain replies. Gemini Flash Lite primary. UI preamble bubble. Suppress-if-fast gate at 2000ms (`[ack_brain].suppress_if_brain_faster_than_ms`). ADR-0014 (flash-brain). |
+| **CLI catalog + terminal view** | ✅ | `jarvis/clis/` (catalog, installer, loader, prober, registry, risk_integration, usage_log) + `jarvis/terminal/` (cross-platform PTY via `terminal.backend.make_pty_backend` — ConPTY/`pywinpty` on Windows, `ptyprocess` on POSIX). Router tool `cli-tools` (virtual loader → one `cli_<name>` tool per connected CLI). UI views: `ClisView`, `TerminalView`. **`spawn-cli-worker` was REMOVED 2026-05-24** (dead entry point; heavy multi-step CLI work goes through `spawn-worker`, single-step through the `cli_<name>` tools — never re-add a CLI spawn tool, it is a D9 recursion vector, AP-5/AP-14). |
+| **Board / Profile ("Knows-you" dashboard)** | ✅ | `jarvis/board/` (aggregator, store, achievements, evaluator, bio prompts, scheduler, `schema.sql`) → `data/board/personal.db`. Parses FlightRecorder JSONL into daily stats / personal records / 10 achievements + an anti-cliché AI-bio. Routes `board_routes.py` (`/api/board/*`) + `profile_routes.py`; views `BoardView.tsx`, `ProfileView.tsx`, `frontend/src/views/profile/`. Deterministic profile writes via the `update-profile` tool. Separate standalone service stub in `board-backend/` (FastAPI + Docker). CHANGELOG `v1.0.0-board`. |
+| **Channels (Web / Telegram / Discord)** | ✅ | `jarvis/channels/` (`base.py` ChannelAdapter, `manager.py`, `bootstrap.py` `bootstrap_channels`, `chat_bridge.py`, `web.py`/`telegram.py`/`discord.py`). Bridges a DM/guild message into the normal Jarvis chat path. Entry points `web` (base), `telegram` (base dep `python-telegram-bot`), `discord` (optional `[channels]` extra, lazy-imported, graceful `ChannelStartError` when absent). Tokens via the OS credential store. |
+| **Friends + Socials** | ✅ | `jarvis/friends/` (`registry.py` `FriendRegistry` on `aiosqlite`, `status_publisher.py`, `status_filter.py`, `messages.py`, `schemas.py`). Routes `friends_routes.py` + `socials_routes.py`; views `FriendsView.tsx`, `frontend/src/views/friends/` + `socials/`. Telegram channel is the live transport (F-FRIENDS F0/F1). |
+| **Contacts + Telephony** | ✅ | `jarvis/contacts/` (`store.py`, `schema.py`, `notify.py`) — contacts mirror to guaranteed Wiki person pages `people/<slug>.md` on `ContactChanged` (PII stays out of the page). Tools `contact-lookup` (safe), `contact-upsert` (monitor, write), `call-contact` (ask, echo-confirm). `jarvis/telephony/` (`outbound.py`, `twiml.py`, `provisioning.py`, `security.py`, `session.py`) places real outbound calls via Twilio. **Twilio is the optional `[telephony]` extra** — routes (`telephony_routes.py`) + `TelephonyManager` degrade gracefully when absent (AD-T8). Views `TelephonyView.tsx`, `frontend/src/views/contacts/`. |
+| **Marketplace plugins** | ✅ | `jarvis/marketplace/` (catalog + `auth/` OAuth + `oauth_callback_server.py` + `plugin_loader.py`/`plugin_registry.py`/`plugin_relevance.py` + `mcp_bridge.py`). The `plugin-tools` entry-point loader expands connected marketplace plugins into live brain tools. Native REST tools where a catalog transport was insufficient: `gmail` (`gmail_rest`, ask — send is consequential) + `vercel` (`vercel_rest`, monitor — read-only). Router-tier, never a spawn (AP-5/AP-14). Route `marketplace_routes.py`; views `PluginsView.tsx`, `ExtensionsView.tsx`. |
+| **Workflows** | ✅ | `jarvis/workflows/` (`runner.py`, `scheduler.py`, `store.py`, `schema.sql`, `seed.py`). Imperative cron/manual-triggered multi-step pipelines (brain-prompt / harness-dispatch / shell / tool-call / speak steps) — distinct from Phase-6 *missions* (single persistent self-healing action). Route `workflows_routes.py` (CRUD); `bootstrap_workflows` on `app.state`. View `WorkflowsView.tsx`. |
+| **Conductor** | ✅ | **Separate root package `conductor/`** (`api/`, `core/`, `jobs/`, `seed/`, `cli.py`) with its own SQLite store — a YAML-first agentic-workflow canvas (shell/http/agent jobs, cron/webhook/manual triggers, timeline view). Jarvis mounts the Conductor router inside its own FastAPI server → `ConductorView.tsx`. Do not confuse with **Workflows** (imperative, in-`jarvis/`) — Conductor is YAML-first and standalone-capable. |
+| **Jarvis-Agents / Outputs** | ✅ | `jarvis/agents/registry.py` builds an in-RAM agent event tree from the EventBus (harness/Brain/Tool signals; TTL-cached, no DB) → `sub_agents_routes.py` (`/api/sub-agents/tree`) + `SubAgentsView.tsx`. **Outputs** (`outputs_routes.py` + `OutputsView.tsx`) list a mission's *deliverables* from the filesystem (`<repo_parent>/sub-agents-outputs/<slug>/`, NOT a DB). An "artifact" is a `.md`/PDF/HTML/code file a worker produced. Per-artifact download (`Content-Disposition` attachment) / view (server-rendered markdown→HTML under a strict `default-src 'none'` CSP) / desktop-only reveal+open-with-default-app via `jarvis/platform/open_path.py`; native actions are off on headless/VPS (`native_file_actions` launcher flag). |
+| **Frontier (model auto-switch)** | ✅ | `jarvis/brain/frontier_{resolver,autoswitch}.py` query each provider's `/v1/models` at boot, detect newer models, and propose switching `BrainProviderConfig`; the user acknowledges via a modal → `POST /api/frontier/ack`. Route `frontier_routes.py` (`/api/frontier/{pending,ack}`); cache `data/frontier_cache.json` (24h TTL). Aligns with the "frontier-quality-before-cost" user preference. |
+| **Preview / Pointer / Federation** | ✅ | `jarvis/preview/registry.py` + `preview_routes.py` — registry of dev-server iframes (Vite `:5173`, Storybook) surfaced in the sidebar; paired with the `start-preview-server` / `verify-localhost` self-verification tools. `jarvis/pointer/` (`intent.py`, `context.py`, `turn.py`) — "AI Pointer": resolves the UI element under the mouse cursor via the OS accessibility tree (not a screenshot), attached only on deictic intent ("what's that", "click there"); router tool `inspect-pointer`. `federation_proxy_routes.py` — local signing proxy to the Board-federation backend (frontend has no privkey; signs with the credential-store key; path-whitelist anti-traversal). |
+
+Infra-only (no UI, consumed internally): `jarvis/hardware/detection.py` (CPU/GPU/VRAM/CUDA probe + Whisper-model sizing for the wizard / `--check`); `jarvis/orchestrator/` (currently a thin L6 seam — most supervisor logic lives in `jarvis/missions/`); `jarvis/diagnostics/`.
+
+Still unrowed (verify with `ls jarvis/ui/web/*routes*.py` + `git log`): `chats`/`sessions`. Treat the absence of a row as "undocumented, not absent".
+
+---
+
+## Architecture (the parts an agent must respect)
+
+### 8-Layer model
+
+```
+L7 UI/UX Tray, Toasts, Admin-API, Desktop-App (FastAPI+React+pywebview), Orb-Overlay
+L6 Orchestrator State-Machine, Router, BrainManager, Supervisor, Mission-Manager
+L5 Harness-Adapter Agent-harness, Codex, Open Interpreter, Python-Script, MCP-Remote
+L4 Brain 5 providers (Claude-API, OpenRouter, OpenAI, Gemini, Grok) + Ack-Brain sub-second tier
+L3 Intent/Risk Classifier, Risk-Tier-Policy, Approval, Rate-Limit-Tracker
+L2 Speech Wake → VAD (Silero) → STT (faster-whisper / Google) → TTS (Gemini Flash / SAPI5)
+L1 Audio I/O WASAPI via sounddevice, Device-Routing, Chime-Feedback
+L0 OS/Hardware Win32, CUDA, Mic/Speakers, global-hotkeys
+```
+
+**Dependency rule (strict):** higher layers reach lower layers **only via protocols** (`jarvis/core/protocols.py`). Lateral communication is **only** via typed events on `EventBus` (`jarvis/core/bus.py`) with `frozen=True` dataclasses carrying `trace_id` + `timestamp_ns`. Subscriber exceptions are swallowed in `_safe_dispatch` — they must never propagate.
+
+### Plugin system (structural, not nominal)
+
+Plugins live under `jarvis/plugins/<group>/<name>.py`, register via `pyproject.toml` `[project.entry-points."jarvis.<group>"]`, and **must not import from `jarvis.*`** inside the plugin module — only structural compatibility with the protocol (registry at `jarvis/core/registry.py`). After editing entry-points: `pip install -e . --no-deps`.
+
+Groups (frozen in `PLUGIN_GROUPS`): `jarvis.wakeword`, `jarvis.stt`, `jarvis.tts`, `jarvis.brain`, `jarvis.harness`, `jarvis.tool`, `jarvis.channel`.
+
+### Streaming first
+
+All `Brain`, `STT`, `TTS`, `Harness` provider methods return `AsyncIterator[...]`. Non-streaming providers yield exactly one element. Consumers always write `async for chunk in provider.xxx()`.
+
+### Event-Bus
+
+- Events are `frozen=True` dataclasses (`jarvis/core/events.py`) with `trace_id: UUID` + `timestamp_ns`. Immutability enables flight-recorder replay.
+- `subscribe_all` receives every event — the flight recorder is a wildcard subscriber.
+- A broken subscriber is logged, never propagated.
+
+### Secrets
+
+Access via `jarvis.core.config.get_secret(key, env_fallback)` only. Hierarchy: OS credential store (keyring, service `personal-jarvis`) → ENV → `.env` (dev fallback) → local-file fallback (`config._ensure_keyring_backend`, 0600 JSON, headless hosts with no Secret Service). The wizard (`jarvis/setup/wizard.py`) populates the store. **Never** put API keys in code, `jarvis.toml`, commits, or `.claude/` files. Voice/chat must never accept secrets (AP-2 — STT log leak vector).
+
+### Brain providers + ack-brain
+
+Multi-provider is mandatory — **never hardcode** Anthropic/Claude. Config under `[brain.providers.*]` in `jarvis.toml`. Runtime switch via voice ("Jarvis, switch to Gemini") is a plan requirement; `BrainManager` must support it. Smart fallback chain in `jarvis/brain/manager.py`. Workers use a `claude-cli` backend via Claude Max OAuth (user has no Anthropic API account).
+
+#### Provider-agnostic features (no provider/model hardcoding) — BINDING
+
+Every feature must work with **whatever brain provider the user has selected/activated**, and across all configured providers — there are five API providers (`claude-api`, `openrouter`, `openai`, `gemini`, `grok`) plus two subscription-CLI brains (`codex` over ChatGPT, `antigravity` over the Google login), and any of them may be the active one. **Never branch on a provider name or a model id to enable or disable behavior** — no `if provider == "grok"`, no hardcoded `grok-4.3`, no provider-specific code path. Gate on a **capability** instead: `supports_vision`, `supports_tools`, the runtime `can_call_tools()` (and codex's runtime `supports_vision`). If the capability you need doesn't exist yet, **add a capability flag — do not name-check the provider**.
+
+When the active/selected provider lacks a needed capability — e.g. a text-only CLI brain (`antigravity` / `codex-CLI`) cannot see images for Computer-Use — fall through to the first **available** provider that *has* the capability, provider-agnostically and never pinned to a favorite; if none is available, degrade gracefully with an honest message. A provider or model literal may appear **only** as a documented default/fallback (a plugin's own `DEFAULT_MODEL`) or behind a runtime capability probe — never as the gate that decides whether a feature runs. The Computer-Use "no vision" incident was a *capability-flag* bug (grok's `supports_vision` was wrongly `False`) — the correct fix was to set the flag, **not** to pin Computer-Use to grok. This generalizes AP-6 (don't hardcode Claude) to **don't hardcode *any* provider** (see AP-21).
+
+**Open-source single-provider resilience (BINDING).** This is an open-source project: it must work for **any** downloader with **whatever single provider key** they happen to have. So the same fall-through is mandatory when the active/selected provider *fails at runtime* — its key is missing/empty, it is rate-limited (HTTP 429), out of credit (HTTP 402), or unreachable: the chain MUST advance to the next **available** provider in a **different family**, never retry the same dead one, never give up. **No single provider being absent or depleted may brick a core path** — and "core path" is not only the deep answer: it is the **router**, the **ack/flash** tier, the **STT (voice input)**, the **Jarvis-Agent/mission worker**, and the **mission critic**. A tier whose primary AND its fallback resolve to the same provider family is a single-provider brick (see AP-22). Build every tier's chain from the providers that *actually have a usable key at runtime* (model it on `manager._build_fallback_chain` + the pre-boot key check), never from hardcoded names. Recovery from a dead provider must be reachable **in-app**, never via a hand-edited `jarvis.toml` or a spun-up cloud instance.
+
+Ack-Brain (`jarvis/brain/ack_brain/`) emits a sub-second butler-style preamble before the deep brain replies. Suppress-if-fast gate at 2000ms keeps it out of the way when the deep brain is already fast.
+
+**Persona / custom system prompt:** the live persona comes from `jarvis/brain/persona_loader.py`. `load_effective_persona_prompt()` returns an editable override (`data/custom_system_prompt.md`, written atomically via the Settings UI / `settings_routes.py`) when present, else the packaged `JARVIS_PERSONA.md`. Edits apply on the **next turn** (no restart); `invalidate_cache()` clears the in-process cache. Never hardcode the persona string elsewhere.
+
+### Risk-Tier system
+
+Four levels: `safe` / `monitor` / `ask` / `block`. Priority is **blacklist > whitelist > tool default** (`jarvis/safety/risk_tier.py`). Whitelist downgrades a tier to `safe` with `approved_by="whitelist"` — this is the anti-confirmation-fatigue contract. **Direct calls to `Tool.execute()` are a bug**; only `ToolExecutor.execute()` is authorized.
+
+### Router discipline (binding, ADR-0011 amended)
+
+The 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`:
+- Smalltalk allowlist wins → never spawn.
+- Action verb (`lies/baue/installiere/öffne/mach/zeig` + repair words) → spawn.
+- External-system marker (PR/Repo/GitHub/Issue) → spawn.
+
+Patterns configurable under `[brain.routing]`. **The sub-tier was deleted in Welle 4 — only `"router"` remains.** Resurrecting `SUB_TOOLS` or adding the harness-spawn / `dispatch-with-review` / `run-skill` tool to any worker set breaks the D9 recursion guard. When extending `ROUTER_TOOLS`: amend ADR-0011 + extend `tests/unit/brain/test_routing.py`.
+
+### Output filter discipline (voice path)
+
+Brain output → TTS goes through `scrub_for_voice` in `jarvis/brain/output_filter.py` — **regex only, no LLM calls** (latency mandate). Two TTS paths are wired through scrub:
+- `_handle_utterance` → `_speak()` → `tts.synthesize` (`pipeline.py:1330`).
+- `_on_announcement` (skill/agent announcements, harness `summary_de` readback) (`pipeline.py:647`).
+
+Whitelist (sacred, never scrubbed): `Datei, Email, Browser, Terminal, Notiz, Termin, Kalender`. Hyphen-compounds preserved (`Browser-Provider` stays). For the full blacklist see the module docstring and `tests/unit/brain/test_output_filter.py` (40 cases). ADR-0010.
+
+### Web search (`search_web`, router-tier)
+
+The `search-web` tool (`jarvis/plugins/tool/search_web.py`) runs a **priority backend chain** in `jarvis/plugins/tool/search_backends.py`: keyed Brave API (if a key is set) → **real DuckDuckGo SERP via the key-free `ddgs` dependency (default)** → DuckDuckGo Instant Answer (last-resort encyclopedic abstract). Backend preference is `[search].backend`; the chain stays key-free so the base VPS install still searches. **Honesty contract:** each attempt returns a `SearchOutcome` with status `ok` / `empty` / `unavailable`. `empty` = searched, genuinely nothing; `unavailable` = backend unreachable — the brain must NOT say "no results" for `unavailable`, it must say search is down.
+
+### Atomic config writes
+
+Mutations of `jarvis.toml` go via `jarvis/core/config_writer.py` only — `tomlkit`-based (preserves comments), `_WRITE_LOCK` mutex, BOM-aware read/write, tempfile + `os.replace`. For Phase-7 self-mod, the pipeline is **non-negotiable**: Allowlist → Read → Apply → Pre-Validate (`JarvisConfig.model_validate`) → Backup → Tempfile+replace → sync reload-test → Rollback-on-fail → `ConfigReloaded` dispatch → Backup GC → Audit (AD-5; AP-3/4/5/13/14). Backup directory must be **outside** the watchdog scope (AP-13). Reload-test is **synchronous**, not watchdog-driven (AP-14).
+
+### Multi-layer enum drift prevention
+
+When a vocabulary spans Python ↔ SQL ↔ Pydantic ↔ TypeScript ↔ UI label (e.g. `HangupReason`), use the five-layer pattern from `docs/anti-drift-three-layer.md`. Reference: `jarvis/sessions/constants.py` is the single source of truth; `models.py` runtime-asserts the Pydantic `Literal` against it. Regression guards: `tests/unit/sessions/test_hangup_reason_parity.py` + `tests/integration/test_sessions_db_compatibility.py`. **BUG-008 recurred four times because this scaffolding was missing — apply it preemptively for any new wire-format enum (mission status, skill lifecycle, voice tier).**
+
+### Phase-6 isolation invariants
+
+- Every worker runs in a fresh `git worktree add -b agent/<task-slug>` under `<repo_parent>/sub-agents-outputs/` (≤200-char path cap). No writes to the user's working tree.
+- Every worker subprocess is contained for kill-on-crash: Windows via a Job Object with `JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE` (kernel guarantee — no zombies even on a hard kill); macOS/Linux via a POSIX process-group reaper (`start_new_session` + `os.killpg`-on-close) that reaps the worker tree on a clean shutdown / cancel / timeout / exception but, being userspace, leaks on a hard `kill -9` of the orchestrator itself.
+- `MAX_CRITIC_LOOPS = 3` is hardcoded. Not parameterizable. Changing requires a new ADR via `/skill phase6-adr-update`.
+- Action/Observation invariant (ADR-0009): the LLM never authors its own Observation. Voice readback reads only Kontrollierer-signed `MissionApproved.summary_de`, never `correction_instruction` from the Critic-LLM.
+
+---
+
+## Optimistic Execution & the "Oops" Protocol (binding)
+
+The core UX contract is **one uninterrupted spoken conversation**. The Talker (router-brain + ack-brain) acknowledges optimistically and never blocks on an MCP round-trip; the Heavy-Duty Worker (Mission-Manager + `claude-cli` Sonnet) executes in the background off the chat transcript. Reality-aligned plan + KPIs (M1–M5) + 4-wave execution: [`docs/plans/optimistic-execution-v1/README.md`](plans/optimistic-execution-v1/README.md).
+
+### Architecture Decisions
+- **AD-OE1** The optimistic ACK ("Geht klar") is emitted **before** the worker dispatch returns — never after. Audit every `_handle_utterance` return path (BUG-007/BUG-020 territory).
+- **AD-OE2** The Talker never `await`s an MCP/network call on the voice path. The talker↔worker queue is the in-process `EventBus` + mission event store — no external broker.
+- **AD-OE3** Dumb tools (local scripts) resolve in-process via `local_action_gate`; they MUST NOT wake the worker (false-spawn rate = 0).
+- **AD-OE4** Smart tools: the **worker** issues the MCP call, never the Talker.
+- **AD-OE5** Oops loop: worker failure → frozen `WorkerCorrectionNeeded` event → inject into Talker context → speak ONLY at the next Silero-VAD turn-boundary → through `scrub_for_voice`. Never interrupt mid-utterance.
+- **AD-OE6** Zero silent drops: every worker/MCP failure yields a silent retry OR a spoken correction OR an audited apology (anti-BUG-020 invariant).
+
+### Coding Standards
+- Latency budgets are SLO-gated: p95 wake→ACK < 1.2 s, intent→ACK < 3.0 s, router decision < 150 ms. Regressions fail CI.
+- Every spoken path (utterance + announcement) goes through `scrub_for_voice` (regex only, no LLM call — AP-11).
+- New wire-format vocab (correction reasons, mission status) uses the five-layer enum pattern + parity test.
+- `ROUTER_TOOLS` stays a frozenset; no spawn-tool ever enters a worker set (AP-5/AP-14). Every subprocess uses `NO_WINDOW_CREATIONFLAGS` (AP-1). Config writes go through `config_writer` (AP-7).
+
+---
+
+## Cross-platform desktop features (the six ports, behind `jarvis/platform/`)
+
+The six desktop power-user features that were historically Windows-only are now **cross-platform behind the shared `jarvis/platform/` capability seam** (`detect_platform()` + a cached frozen `Capabilities` snapshot, AD-5). Each feature is one `Protocol` + one per-OS implementation + a `sys.platform` factory + a graceful logged null-fallback (AD-6); the Windows implementations are **untouched** (AD-7). The migration plan is `docs/plans/cross-platform-mac-linux/`; **ADR-0020 (cross-platform elevation) supersedes ADR-0001** but reuses the HMAC / Pydantic-argv / `shell=False` security core unchanged.
+
+| Feature | Factory | Windows | macOS | Linux | Verification |
+|---|---|---|---|---|---|
+| Terminal (PTY) | `terminal.backend.make_pty_backend` | ConPTY (`pywinpty`) | `ptyprocess` | `ptyprocess` | CI-provable (real PTY, EK-4) |
+| App-launch | `plugins.tool.app_resolver.resolve_app_launch_target` | App Paths | `open -a` | `xdg-open`/exec | CI-provable (resolution) |
+| UI-element-click | `vision.tree_factory.make_ui_tree_source` | UIA | AX (`pyobjc`) | AT-SPI (`pyatspi`) | live sign-off (AX/AT-SPI tree) |
+| Orb overlay | `overlay.surface.make_overlay_surface` | Tk color-key | Tk `-transparentcolor` | best-effort + tray | live sign-off (transparency) |
+| Hotkey | `trigger.backends.make_hotkey_backend` | `global-hotkeys` | `pynput` | `pynput` (X11); Wayland no-op | live sign-off (capture) |
+| Admin/elevation | `admin.transport.make_admin_transport` + `admin.elevator.make_elevator` | UAC + SDDL pipe | Authorization Services + unix socket | pkexec/sudo + unix socket | live sign-off (prompt); never CI-E2E |
+
+**Verification is honestly labelled per feature in `docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md`.** As of this writing the maintainer has Windows only and nothing is pushed, so every macOS/Linux **live** GUI/permission behavior is `unverified-on-real-desktop` and the `ci.yml` matrix is `CI-configured` (first green run pending push) — **never** claim "CI-verified" or "live-verified" until that log says so.
+
+- **Dependency reality (AD-14 — do not "fix" this):** `pynput` + `ptyprocess` live in the `[desktop]` extra (`ptyprocess` gated `sys_platform != 'win32'`); `pyobjc-framework-{Quartz,ApplicationServices,Accessibility}` in `[desktop-macos]` (`sys_platform == 'darwin'`). **Linux `pyatspi` is NOT on PyPI — never add it as a pip dependency.** It is GObject-Introspection, distro-packaged (`apt install python3-pyatspi gir1.2-atspi-2.0`), surfaced via the `capabilities.has_ax_tree` runtime probe.
+- **Doctrine intact:** the headless €5-VPS base install ships **none** of these desktop extras and still boots on a fresh `python:3.11-slim` Linux container — every port is extras-gated and degrades to a logged no-op (AD-6) when its capability is absent.
+
+## Windows specifics (do not skip)
+
+- **Unicode stdout:** cp1252 default. New CLI modules must call `sys.stdout.reconfigure(encoding='utf-8')` or stick to ASCII.
+- **Subprocess hygiene:** every `subprocess.*` / `asyncio.create_subprocess_exec` call must pass `creationflags=NO_WINDOW_CREATIONFLAGS` from `jarvis/core/process_utils.py`. Missing this triggers the BUG-012 flicker storm under `pythonw.exe`.
+- **Audio:** WASAPI via `sounddevice`. **WDM-KS host-API is forbidden** (`_FORBIDDEN_OUTPUT_HOSTAPIS` in `jarvis/audio/player.py`) — PortAudio's blocking write API crashes there (BUG-014). Pattern-match device names on shortest unique token (`"PRO X"`), not marketing name.
+- **Hotkeys:** `global-hotkeys`. Avoid `Alt+F4`, `Ctrl+C`, `Win+*`. Safe combos: `ctrl+right_alt+<letter>`.
+- **No Windows Service.** SYSTEM user has no headset/mic access. Jarvis is a tray app in the user session under `pythonw.exe`; autostart via shortcut in `shell:startup`.
+- **UAC manifest:** `asInvoker`. Elevate per-action, never globally.
+
+---
+
+## Brand mark / logo (BINDING)
+
+**The official Jarvis logo is the Gigi GHOST mascot** — the black ghost character with glowing yellow eyes (`jarvis-gigi-256.png` == the maintainer's master `Jarvis-Logo (1).png` at the repo root, md5 `7de0a930`; also served to the frontend as `/jarvis-logo.png`). **The gold four-point star (`jarvis-mark-256.png` / `jarvis.ico` md5 `73bd5837`) is "AI-slop" the maintainer rejects — do NOT use it** as the brand mark anywhere (UI avatar, titlebar/taskbar icon, marketing, videos, intro/onboarding films). Titlebar/taskbar icon must be the ghost (`assets/icons/jarvis.ico`); sidebar avatar is `Sidebar.tsx <img src="/jarvis-logo.png">`. When a feature needs "the Jarvis logo", it is always the ghost mascot.
+
+---
+
+## Wake word — works with ANY user-chosen phrase (BINDING)
+
+**The wake word is whatever the user configures (`[trigger.wake_word]`), and EVERY part of the wake path must work with ANY such phrase — never hardcode, assume, or special-case a specific wake word.** There is no built-in/trademarked default ("Hey Jarvis", "Alexa", etc. are NOT assumed); the maintainer's own is a custom phrase, but the code must behave identically for any phrase the user picks. This applies end-to-end: the wake-plan resolver, the OpenWakeWord vs. custom-phrase (`stt_match` rolling-Whisper) routing, the phrase matcher/verifier, AND the wake transcription itself.
+
+Concretely, for the custom-phrase (`stt_match`) path: the rolling-Whisper wake **must transcribe in the user's wake language** (`[stt].wake_language`, default `de`) and must NOT silently auto-detect — auto-detect mis-hears a German/short wake phrase as English and mangles it, so the phrase never matches and the wake never fires. A wake word that the user set but that Jarvis cannot recognize is a release-blocking bug. Regression-guard any change here against at least one non-English custom phrase.
+
+---
+
+## Screenshots & scratch captures
+
+**All development/verification screenshots go in `screenshots/` at the repo root** — never the repo root itself, never a random cwd. `jarvis/core/screenshots.py` defines `screenshots_dir()` plus a boot sweep (`sweep_screenshots`, wired into `SingleInstance._on_primary_claim`) that (a) consolidates any stray root-level image into `screenshots/` and (b) prunes captures older than **10 days** by mtime. App-runtime Vision frames are separate — they live in `data/flight_recorder/blobs/` and are pruned by `jarvis/telemetry/retention.py`. The folder is git-ignored and self-tidying.
+
+---
+
+## Memory + Wiki
+
+This project has an auto-memory at `~/.claude/projects/<your-claude-project-dir>/memory/`. **Check `MEMORY.md` before larger decisions** — stable user preferences (multi-provider brain, hybrid privacy, bilingual, anti-confirmation-fatigue, no-Anthropic-API, frontier-quality-before-cost) live there.
+
+The Knowledge Wiki is the long-term memory tier (B0/B1/B5/B7/B8/B9 live). Three router-tier tools: `wiki-recall` (search), `wiki-page-read` (read by vault path), `wiki-ingest` (deterministic save-fact). Vault root configured in `[wiki_integration].vault_root`; default `wiki/obsidian-vault/`. Telemetry snapshot at `GET /api/wiki/telemetry`. Trigger contract in ADR-0014.
+
+The legacy Curator-Merger is soft-disabled since 2026-05-17 (`[memory.legacy_curator] enabled = false`, gated in `jarvis/brain/factory.py`). The `data/workspace/` snapshot stays on disk and ~35 reader sites keep rendering it — but no new writes land there. Hart-Cut (migrate snapshot to `wiki/obsidian-vault/`, refactor readers, delete `jarvis/memory/curator/`) remains open.
diff --git a/docs/bug-019-spawn-failure-report.html b/docs/bug-019-spawn-failure-report.html
index b65548bb92..576fd562d4 100644
--- a/docs/bug-019-spawn-failure-report.html
+++ b/docs/bug-019-spawn-failure-report.html
@@ -110,7 +110,7 @@ Manueller Subprocess-Repro mit aufgelöstem Pfad:
<code>EXIT=0</code>, <code>STDOUT_LEN=1236</code>,
<code>response="{\"v\":\"ok\"}"</code>.<br>
Resolved argv[0]:
-<code>C:\Users\Administrator\AppData\Roaming\npm\gemini.CMD</code>.<br>
+<code><USER_HOME>\AppData\Roaming\npm\gemini.CMD</code>.<br>
Tests: <strong>166 / 166 grün</strong> (Critic + Injection + Agents).
</div>
diff --git a/docs/computer-use.md b/docs/computer-use.md
index de3c180cc9..4851a88465 100644
--- a/docs/computer-use.md
+++ b/docs/computer-use.md
@@ -4,7 +4,7 @@ Status: 2026-05-14. ADR: [0008](adr/0008-computer-use-harness-in-process.md).
This page documents the current routing model for desktop actions. The main
goal is to keep simple local actions deterministic and fast, while preserving
-POAV Computer-Use and OpenClaw for the work that actually needs them.
+POAV Computer-Use and Jarvis-Agents for the work that actually needs them.
## Routing Model
@@ -13,9 +13,9 @@ Jarvis now has four distinct routes for commands that may touch the desktop.
| Route | Use for | Must not do |
| --- | --- | --- |
| Direct Fast Path | One local action such as open an app, type into the active window, send a hotkey, move/click explicit coordinates | Call a provider, collect vision, infer visual targets |
-| Scripted Fast Path | Known deterministic multi-step local workflows such as opening several terminals or starting OpenClaw in a terminal | Invent coordinates, ask a provider to plan, run shell commands for vague UI goals |
+| Scripted Fast Path | Known deterministic multi-step local workflows such as opening several terminals or starting a Jarvis-Agent in a terminal | Invent coordinates, ask a provider to plan, run shell commands for vague UI goals |
| POAV Computer-Use | Visual or ambiguous UI navigation such as "click Send", "write this into the ChatGPT input", or "find the settings button" | Handle heavy coding/research delegation or long-running autonomous work |
-| OpenClaw | Heavy code, repo, research, worker, or long-running delegated tasks | Execute simple desktop controls that the local fast path can do directly |
+| Jarvis-Agents | Heavy code, repo, research, worker, or long-running delegated tasks | Execute simple desktop controls that the local fast path can do directly |
The fast paths run before normal provider routing. If the local action gate
matches, BrainManager executes hidden local tools through the existing
@@ -60,7 +60,7 @@ one step. Examples:
- Open three terminals.
- Open Windows Terminal, type `claude`, press Enter.
-- Start OpenClaw and pass a bounded prompt in the terminal.
+- Start a Jarvis-Agent and pass a bounded prompt in the terminal.
Latency target:
@@ -97,11 +97,11 @@ Boundary:
- POAV should stay bounded by `[computer_use]` step, replan, and timeout
settings.
-## OpenClaw
+## Jarvis-Agents
-OpenClaw is for delegated agent work, not low-latency desktop control.
+Jarvis-Agents is for delegated agent work, not low-latency desktop control.
-Use OpenClaw for:
+Use Jarvis-Agents for:
- Codebase changes and reviews.
- Multi-file research or investigation.
@@ -111,8 +111,8 @@ Use OpenClaw for:
Boundary:
- Do not route simple "open app", "type this", or "press this hotkey" commands
- to OpenClaw.
-- Do not route visual UI control to OpenClaw when the POAV Computer-Use harness
+ to Jarvis-Agents.
+- Do not route visual UI control to Jarvis-Agents when the POAV Computer-Use harness
is the intended desktop-control mechanism.
## Configuration
diff --git a/docs/deepgram-stt-research-2026-05-20.md b/docs/deepgram-stt-research-2026-05-20.md
index 41d4765b72..bd4705088b 100644
--- a/docs/deepgram-stt-research-2026-05-20.md
+++ b/docs/deepgram-stt-research-2026-05-20.md
@@ -5,7 +5,7 @@
1. Is Deepgram's **token / auth flow** different from Groq's simple static API key?
2. Is Deepgram **agent-friendly** — does it deliver transcript tokens *while* the user is speaking (streaming / interim), not only after the utterance finishes?
-Produced by 4 parallel read-only research sub-agents (Auth, Streaming, Repo-State, Decision-Context).
+Produced by 4 parallel read-only research Jarvis-Agents (Auth, Streaming, Repo-State, Decision-Context).
---
@@ -74,22 +74,22 @@ Produced by 4 parallel read-only research sub-agents (Auth, Streaming, Repo-Stat
## The Repo Reality Check (most important finding)
-The sub-agent that read the actual codebase found that **Deepgram has zero source code in the repo**:
+The Jarvis-Agent that read the actual codebase found that **Deepgram has zero source code in the repo**:
- `pyproject.toml` (lines ~109-115) registers `deepgram`, `deepgram-flux`, `deepgram-nova3` (plus `openai-api`) — **all point to Python modules that do not exist on disk.**
-- The contract test [`tests/contract/test_stt_protocol.py:44-47`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/tests/contract/test_stt_protocol.py) literally documents them as ghost registrations and excludes them from `EXPECTED_PROVIDERS = {"groq-api"}`.
+- The contract test [`tests/contract/test_stt_protocol.py:44-47`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/tests/contract/test_stt_protocol.py) literally documents them as ghost registrations and excludes them from `EXPECTED_PROVIDERS = {"groq-api"}`.
- The `jarvis.toml` comments (`[turn] provider = "flux_integrated"`, the `deepgram-flux`/`deepgram-nova3` mentions) describe an **intended** architecture that was never built. `flux_integrated` is currently a NoOp plugin.
-- The wizard ([`wizard.py:87`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/setup/wizard.py)) and provider-spec UI already know the credential key name `deepgram_api_key` (ENV `DEEPGRAM_API_KEY`) — so the secret plumbing is ready, only the plugin module is missing.
+- The wizard ([`wizard.py:87`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/setup/wizard.py)) and provider-spec UI already know the credential key name `deepgram_api_key` (ENV `DEEPGRAM_API_KEY`) — so the secret plumbing is ready, only the plugin module is missing.
**And the pipeline is batch-only:**
-- `_handle_utterance` ([`pipeline.py:~1929`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/speech/pipeline.py)) calls `self._utterance_stt.transcribe_pcm(full_pcm, ...)` — one call, one final transcript, after the mic closes.
+- `_handle_utterance` ([`pipeline.py:~1929`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/speech/pipeline.py)) calls `self._utterance_stt.transcribe_pcm(full_pcm, ...)` — one call, one final transcript, after the mic closes.
- `stream_transcribe` exists in the protocol + Groq's shim but is **never called**.
- There is no code path that reads interim transcripts during speech, regardless of provider.
### Groq = the parity target (what a finished Deepgram plugin needs)
-The working [`groq_api.py`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/plugins/stt/groq_api.py) has: 3-tier auth (ctor → ENV → keyring `groq_api_key`), `transcribe`, `stream_transcribe` shim, `transcribe_pcm`, `_ensure_model` no-op, `aclose`, `supports_streaming` class attr, name matching the entry-point, no `jarvis.*` imports, wizard + provider-spec UI entries, and 8 contract tests.
+The working [`groq_api.py`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/plugins/stt/groq_api.py) has: 3-tier auth (ctor → ENV → keyring `groq_api_key`), `transcribe`, `stream_transcribe` shim, `transcribe_pcm`, `_ensure_model` no-op, `aclose`, `supports_streaming` class attr, name matching the entry-point, no `jarvis.*` imports, wizard + provider-spec UI entries, and 8 contract tests.
-### STT protocol contract ([`protocols.py:220-235`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/core/protocols.py))
+### STT protocol contract ([`protocols.py:220-235`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/core/protocols.py))
Required: `name: str`, `supports_streaming: bool`, `async transcribe(AsyncIterator[AudioChunk]) -> Transcript`, `async stream_transcribe(...) -> AsyncIterator[Transcript]`. Plus the pipeline-practical `transcribe_pcm(...)` + `_ensure_model()`.
---
diff --git a/docs/diagnostics/LATENCY_REPORT_001.md b/docs/diagnostics/LATENCY_REPORT_001.md
index 933cae7384..ef466514cf 100644
--- a/docs/diagnostics/LATENCY_REPORT_001.md
+++ b/docs/diagnostics/LATENCY_REPORT_001.md
@@ -148,7 +148,7 @@ real baseline data:
3. **Speak 10 turns**, mixed:
- 3 × short ("Was ist die Uhrzeit?" / "What time is it?" / "Wie spät?")
- 4 × medium (typical tool routings — "Wie spät ist es in Tokio?")
- - 3 × longer / complex (a request that triggers Subagent-Spawn or a long
+ - 3 × longer / complex (a request that triggers Jarvis-Agent-Spawn or a long
reasoning answer)
Wait for each audio response to finish before the next turn so per-turn
diff --git a/docs/diagnostics/tts-stretch-2026-05-16.html b/docs/diagnostics/tts-stretch-2026-05-16.html
index a0aa199e99..070af397d0 100644
--- a/docs/diagnostics/tts-stretch-2026-05-16.html
+++ b/docs/diagnostics/tts-stretch-2026-05-16.html
@@ -543,7 +543,7 @@ PASS — patch verified end-to-end</pre>
<section>
<div class="section-head">
<h2>How to verify yourself</h2>
- <span class="marker">§ your turn, Ruben</span>
+ <span class="marker">§ your turn, Alex</span>
</div>
<ol>
<li>Restart Jarvis (close the running tray-app, then <code>run.bat</code> or <code>run.bat --debug</code>).</li>
@@ -638,7 +638,7 @@ PASS — patch verified end-to-end</pre>
<div class="label">Live smoke · 5 sentences</div>
<div class="v">
<pre>→ synthesizing + playing 5 sentences sequentially with 250ms inter-sentence gap …
- [1/5] Hallo Ruben, dies ist der zweite Wellen-Test.
+ [1/5] Hallo Alex, dies ist der zweite Wellen-Test.
[2/5] Ich pruefe jetzt die Audio-Qualitaet ueber mehrere Saetze hinweg.
[3/5] Hoerst du Knistern, Aussetzer oder eine schleichende Verlangsamung?
[4/5] Wichtig ist insbesondere der Uebergang zwischen den einzelnen Saetzen.
diff --git a/docs/openclaw-bridge.md b/docs/jarvis-agents-bridge.md
similarity index 89%
rename from docs/openclaw-bridge.md
rename to docs/jarvis-agents-bridge.md
index dd619e92cc..a5e8be045d 100644
--- a/docs/openclaw-bridge.md
+++ b/docs/jarvis-agents-bridge.md
@@ -1,9 +1,9 @@
-# OpenClaw-Bridge — Architecture Doc
+# Jarvis-Agents-Bridge — Architecture Doc
**Status:** Draft — Wave 1 (Spike) complete, Wave 2 (Implementation) next
-**Date:** 2026-05-06 (Sub-Jarvis cleanup 2026-05-09, Wave-1 spike findings 2026-05-09)
+**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 Sub-Jarvis 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 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.
**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.
---
@@ -31,15 +31,15 @@ So that this doc, the code, and the subagent files consistently speak the same l
## 1. Context and Motivation
-Phase 5 (master plan §22) introduced the **Sub-Jarvis tier** — a second Opus-4.7 brain instance in the same Python process, dispatched via the `spawn_sub_jarvis` tool in the Router-Brain. In parallel, Phase 6 delivered a Mission-Manager skeleton (worktree, Critic-Loop, Kontrollierer) that was, however, not wired into the default voice path. In practice, three classes of pain points emerged:
+Phase 5 (master plan §22) introduced the **Jarvis-Agent tier** — a second Opus-4.7 brain instance in the same Python process, dispatched via the `spawn_sub_jarvis` tool in the Router-Brain. In parallel, Phase 6 delivered a Mission-Manager skeleton (worktree, Critic-Loop, Kontrollierer) that was, however, not wired into the default voice path. In practice, three classes of pain points emerged:
-1. **"Who is answering?" bug** — the user could not reliably tell whether the Router-Brain (Haiku) directly or the Sub-Jarvis tier (Opus) had produced a result. Output quality was often so weak that it raised suspicion that the wrong tier had executed the task.
+1. **"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 Sub-Jarvis 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 Sub-Jarvis 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 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.
-**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 Sub-Jarvis tier is **deleted entirely** — no backwards compatibility, no parallel operation.
+**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.
---
@@ -51,19 +51,19 @@ Instead of evolving these loops ourselves, **we replace the Sub-Jarvis tier enti
| 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 subagent.** The Phase-5 Sub-Jarvis 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 → OpenClaw-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 subagent tier). Skill authoring (Phase 7.5) must be switched from SubJarvisManager to Mission-Manager spawn — see R-6. |
+| 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 sub-agents". User awareness instead of an engineering filter. |
+| 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) + UI button + automatic abort when the 30-min limit is exceeded. |
| AD-12 | **Status read** via voice ("läuft das noch?", "Status?" — is it still running? / status?) 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 OpenClaw missions in parallel | Configurable via `[harness.openclaw].concurrency`. A fourth request goes into the Mission-Manager queue. |
+| 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-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 subagent/skill announcements. The OpenClaw-Bridge pipes the `summary_de` in there, scrubbed via `scrub_for_voice`. Reuse of existing, tested infrastructure. |
+| 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-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. |
@@ -71,7 +71,7 @@ Instead of evolving these loops ourselves, **we replace the Sub-Jarvis tier enti
### Amendments from the Wave-1 spike (2026-05-09)
-The following ADs are **refined** by empirical findings from `docs/spike-results-openclaw.md` (B-1..B-12). The architecture remains sound; only the mechanics and assumptions are sharpened. Old table entries remain as history.
+The following ADs are **refined** by empirical findings from `docs/spike-results-jarvis-agents.md` (B-1..B-12). The architecture remains sound; only the mechanics and assumptions are sharpened. Old table entries remain as history.
- **Amendment AD-1 (spawn pattern)** — see B-1, B-5. Against the assumption "one-shot with `openclaw agent --message ...`", three mandatory flags have been added, without which the call fails with `Error: Pass --to <E.164>, --session-id, or --agent to choose a session`:
- `--local` (embedded agent without channel routing to Telegram/WhatsApp/etc.)
@@ -209,7 +209,7 @@ Implements the `jarvis.harness` protocol (see `jarvis/core/protocols.py`). Expec
- 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`.
-- JSON result parsing (B-6, schema in `docs/spike-results-openclaw.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.
+- 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:**
- Worktree creation (the Mission-Manager does that before the call).
@@ -240,7 +240,7 @@ voice_when_active = true # Voice-Announcement nur wenn Voi
**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.
-The Desktop-App `SettingsView` gets a new section **"OpenClaw (Subagent)"** with:
+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."*
@@ -279,7 +279,7 @@ The following components stay unchanged and are used by the bridge:
| Asset | Path | Provides |
|---|---|---|
-| Announcement-Bus | `jarvis/speech/pipeline.py:647` | Voice bypass for subagent/skill announcements |
+| Announcement-Bus | `jarvis/speech/pipeline.py:647` | Voice bypass for Jarvis-Agent/skill announcements |
| `scrub_for_voice` | `jarvis/brain/output_filter.py:193` | Tool-use-leak protection, markdown strip |
| Router-Brain | `jarvis/brain/manager.py` (tier `"router"`) | Spawn-verb recognition, status-phrase recognition (NEW for AD-12) |
@@ -302,19 +302,19 @@ Forbidden when building / extending the bridge — this list is also mirrored in
- **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 subagent is OpenClaw.
+- **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.
---
## 6. Spike questions — Wave 1 completed 2026-05-09
-Empirical findings fully documented in `docs/spike-results-openclaw.md` (B-1..B-12). Summary of the SP status:
+Empirical findings fully documented in `docs/spike-results-jarvis-agents.md` (B-1..B-12). Summary of the SP status:
| 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-openclaw.md SP-2. |
+| 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-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. |
@@ -322,7 +322,7 @@ Empirical findings fully documented in `docs/spike-results-openclaw.md` (B-1..B-
| SP-7 | Cancellation | **PARTIALLY RESOLVED 🟡** | Mechanics documented (taskkill /F /T on node PIDs, plus `meta.aborted: true` as an indicator). Live test with Gemini Flash (8s) and Pro (idle timeout) inconclusive — Wave-2 validation with an Anthropic-Opus long task recommended. |
| SP-8 | Worktree path | **RESOLVED ✅ (negative)** | No workdir flags (`--workdir`, `--cwd`, `--working-directory` all rejected). The spawner must set `cwd=<worktree>`, plus `OPENCLAW_STATE_DIR=<mission_dir>/openclaw_state` for state isolation (AD-23). |
-**Plus 12 bridge-architecture findings (B-1..B-12)** in `docs/spike-results-openclaw.md` — the three findings not in the SP scope (B-8 provider idle timeout, B-9 system-prompt auto-injection, B-12 config-schema trap) are documented as new ADs AD-22..AD-24 in §2 above.
+**Plus 12 bridge-architecture findings (B-1..B-12)** in `docs/spike-results-jarvis-agents.md` — the three findings not in the SP scope (B-8 provider idle timeout, B-9 system-prompt auto-injection, B-12 config-schema trap) are documented as new ADs AD-22..AD-24 in §2 above.
**Spike script:** `scripts/spikes/openclaw_probe.ps1` (provider-agnostic via the `Resolve-ProviderEnv` helper, default model `google/gemini-3.1-pro-preview` matches `jarvis.toml [brain.providers.gemini].deep_model`). Re-run with a different model: `-Model "anthropic/claude-opus-4-7"` (for SP-7 long-task cancellation validation).
@@ -334,7 +334,7 @@ Three test layers, all with fakes instead of `unittest.mock` (CLAUDE.md conventi
### 7.1 Contract tests (`tests/contract/test_harness_protocol.py`)
-The OpenClaw-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 OpenClaw, 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`)
@@ -368,7 +368,7 @@ Phases for the implementation, each testably completed before the next starts:
| # | Phase | Provides | Acceptance criterion |
|---|---|---|---|
-| 1 | **Spike** | `docs/spike-results-openclaw.md` with empirical findings on SP-1..SP-8 | Native Windows run confirmed, stdout format documented |
+| 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 |
@@ -387,8 +387,8 @@ Phases for the implementation, each testably completed before the next starts:
This doc replaces **no** ADR. When bridge implementation starts, two new ADRs are created and two existing ones are amended:
**New ADRs:**
-- **ADR-0012 OpenClaw-Bridge: subprocess model** — formalizes AD-1 through AD-9 (technical architecture).
-- **ADR-0013 OpenClaw-Bridge: user surface** — formalizes AD-10 through AD-21 (UX / control surface).
+- **ADR-0012 Jarvis-Agents-Bridge: subprocess model** — formalizes AD-1 through AD-9 (technical architecture).
+- **ADR-0013 Jarvis-Agents-Bridge: user surface** — formalizes AD-10 through AD-21 (UX / control surface).
**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).
@@ -403,7 +403,7 @@ This doc replaces **no** ADR. When bridge implementation starts, two new ADRs ar
- **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-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 OpenClaw-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-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.
---
@@ -449,11 +449,11 @@ Full list of all code paths that are migrated or deleted in Wave 4 (phases 6-10
- 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: `C:\Users\Administrator\.claude\plans\also-er-muss-auch-lexical-pond.md` §22 (historical Sub-Jarvis-tier plan, superseded by this doc)
+- Jarvis plan: `<USER_HOME>\.claude\plans\also-er-muss-auch-lexical-pond.md` §22 (historical Sub-Jarvis-tier plan, superseded by this doc)
- ADR-0009 Self-Healing-Worker-Critic
- ADR-0011 Router-Discipline (amended in Wave 4)
- CLAUDE.md (Phase-5/6 status, plugin system, streaming, event bus — the Phase-5 Sub-Jarvis section is rewritten in Drift-Edit #2)
-- `docs/spike-results-openclaw.md` (Wave-1 spike findings B-1..B-12, empirical basis for AD-22..AD-24 + AD-1/AD-6/AD-8 amendments)
+- `docs/spike-results-jarvis-agents.md` (Wave-1 spike findings B-1..B-12, empirical basis for AD-22..AD-24 + AD-1/AD-6/AD-8 amendments)
---
diff --git a/docs/openclaw-spawn-failure-analysis-2026-05-18.md b/docs/jarvis-agents-spawn-failure-analysis-2026-05-18.md
similarity index 64%
rename from docs/openclaw-spawn-failure-analysis-2026-05-18.md
rename to docs/jarvis-agents-spawn-failure-analysis-2026-05-18.md
index d590e774e0..9a350da190 100644
--- a/docs/openclaw-spawn-failure-analysis-2026-05-18.md
+++ b/docs/jarvis-agents-spawn-failure-analysis-2026-05-18.md
@@ -1,7 +1,7 @@
-# OpenClaw Sub-Edge Spawn-Failure Analysis — 2026-05-18
+# Jarvis-Agents Spawn-Failure Analysis — 2026-05-18
**Status:** Diagnose-only document. No code changes performed.
-**Trigger:** User reported multiple OpenClaw sub-edge spawns failing after the Welle-6 ChatGPT-OAuth switch.
+**Trigger:** User reported multiple Jarvis-Agent spawns failing after the Welle-6 ChatGPT-OAuth switch.
**User's hypothesis:** "Liegt an der ChatGPT-Authentifizierung." (It's down to the ChatGPT authentication.)
---
@@ -30,13 +30,13 @@ Read-first, then hypothesis. Source per finding:
| Source | What was checked |
|---|---|
-| [`../sub-agents-outputs/mission_019e3c52-0acd/`](file:///C:/Users/Administrator/Desktop/sub-agents-outputs/mission_019e3c52-0acd/) | Last failed mission, stream.jsonl + stderr |
-| [`../sub-agents-outputs/mission_019e3c51-d4f4/`](file:///C:/Users/Administrator/Desktop/sub-agents-outputs/mission_019e3c51-d4f4/) | Previous failed mission, identical pattern |
+| [`../sub-agents-outputs/mission_019e3c52-0acd/`](file:///<USER_HOME>/Desktop/sub-agents-outputs/mission_019e3c52-0acd/) | Last failed mission, stream.jsonl + stderr |
+| [`../sub-agents-outputs/mission_019e3c51-d4f4/`](file:///<USER_HOME>/Desktop/sub-agents-outputs/mission_019e3c51-d4f4/) | Previous failed mission, identical pattern |
| `codex login status` | Live-CLI auth check |
| `jarvis/core/config.load_config()` | Which provider is currently configured |
-| [`scripts/config-soll.json`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/scripts/config-soll.json) | Drift-Guard target value |
-| [`jarvis/missions/kontrollierer/decomposer.py`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/missions/kontrollierer/decomposer.py) | Decomposer defaults |
-| [`jarvis/missions/workers/codex_direct_worker.py`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/missions/workers/codex_direct_worker.py) | Worker model routing |
+| [`scripts/config-soll.json`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/scripts/config-soll.json) | Drift-Guard target value |
+| [`jarvis/missions/kontrollierer/decomposer.py`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/kontrollierer/decomposer.py) | Decomposer defaults |
+| [`jarvis/missions/workers/codex_direct_worker.py`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/workers/codex_direct_worker.py) | Worker model routing |
---
@@ -54,7 +54,7 @@ Read-first, then hypothesis. Source per finding:
### Bug 1 (CONFIRMED, HIGH): Decomposer hardcodes `model="sonnet"`
-**File:** [`jarvis/missions/kontrollierer/decomposer.py:57`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/missions/kontrollierer/decomposer.py) + line 138 + 167
+**File:** [`jarvis/missions/kontrollierer/decomposer.py:57`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/kontrollierer/decomposer.py) + line 138 + 167
```python
# decomposer.py:57
@@ -79,7 +79,7 @@ if model:
`CodexDirectWorker` reads `step.model` blindly and passes it through. With `step.model="sonnet"` → `codex exec --model sonnet` → HTTP 400.
-**Asymmetry with the Critic path:** we deliberately forced the Critic to an empty model earlier (`primary_model or ""` in [`runner.py:594`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/missions/critic/runner.py)). The same protective logic is missing in the worker path.
+**Asymmetry with the Critic path:** we deliberately forced the Critic to an empty model earlier (`primary_model or ""` in [`runner.py:594`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/critic/runner.py)). The same protective logic is missing in the worker path.
---
@@ -91,27 +91,27 @@ Categorized by evidence level. File + line + evidence snippet.
| # | Source | File | Evidence |
|---|---|---|---|
-| **C1** | Decomposer passes `"sonnet"` through | [`decomposer.py:57,138,167`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/missions/kontrollierer/decomposer.py) | HTTP 400 in 2 of 2 last missions |
-| **C2** | Worker does not adapt the model slug to the provider | [`codex_direct_worker.py:103-104`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/missions/workers/codex_direct_worker.py) | Passes `step.model` 1:1 to `codex --model` |
+| **C1** | Decomposer passes `"sonnet"` through | [`decomposer.py:57,138,167`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/kontrollierer/decomposer.py) | HTTP 400 in 2 of 2 last missions |
+| **C2** | Worker does not adapt the model slug to the provider | [`codex_direct_worker.py:103-104`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/workers/codex_direct_worker.py) | Passes `step.model` 1:1 to `codex --model` |
### LIKELY — structurally plausible, but not seen in the current log
| # | Source | File | Evidence |
|---|---|---|---|
-| **L1** | `step.allowed_tools` is Claude-formatted | [`decomposer.py`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/missions/kontrollierer/decomposer.py) | The Decomposer can emit tool whitelists that contain Claude tool names (Write/Edit/Read); Codex expects different names. Not relevant in the current log because the model reject comes first. |
-| **L2** | Critic path with the wrong model when primary_model is set | [`runner.py:594`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/missions/critic/runner.py) | We use `primary_model or ""` — if someone sets `[brain.sub_jarvis].model = "sonnet"`, Codex would also return 400 here. |
-| **L3** | `choose_critic_model` emits Claude slugs | [`escalation.py:23`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/missions/critic/escalation.py) | Function returns e.g. `"claude-sonnet-4-6"`. In the Codex path this is emptied out by our `or ""` hack, but that is a workaround, not a clean fix. |
-| **L4** | Mission prompt templates reference Anthropic tools | [`prompts.py`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/missions/critic/prompts.py) | Prompts can contain instructions like "use the Write tool" — Codex calls its tools by different names. Not observed because the worker dies before that. |
-| **L5** | Worker stream parser misinterprets the Codex `error` frame | [`codex_direct_worker.py:340-344`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/missions/workers/codex_direct_worker.py) | Codex emits `type=error` + `type=turn.failed` → our parser sets `terminal_kind="error"` but **`terminal_message` may stay empty**, because the error frame's `obj.get("message") or obj.get("error")` does not necessarily match. ClaudeResult.result then becomes generic. |
+| **L1** | `step.allowed_tools` is Claude-formatted | [`decomposer.py`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/kontrollierer/decomposer.py) | The Decomposer can emit tool whitelists that contain Claude tool names (Write/Edit/Read); Codex expects different names. Not relevant in the current log because the model reject comes first. |
+| **L2** | Critic path with the wrong model when primary_model is set | [`runner.py:594`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/critic/runner.py) | We use `primary_model or ""` — if someone sets `[brain.sub_jarvis].model = "sonnet"`, Codex would also return 400 here. |
+| **L3** | `choose_critic_model` emits Claude slugs | [`escalation.py:23`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/critic/escalation.py) | Function returns e.g. `"claude-sonnet-4-6"`. In the Codex path this is emptied out by our `or ""` hack, but that is a workaround, not a clean fix. |
+| **L4** | Mission prompt templates reference Anthropic tools | [`prompts.py`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/critic/prompts.py) | Prompts can contain instructions like "use the Write tool" — Codex calls its tools by different names. Not observed because the worker dies before that. |
+| **L5** | Worker stream parser misinterprets the Codex `error` frame | [`codex_direct_worker.py:340-344`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/workers/codex_direct_worker.py) | Codex emits `type=error` + `type=turn.failed` → our parser sets `terminal_kind="error"` but **`terminal_message` may stay empty**, because the error frame's `obj.get("message") or obj.get("error")` does not necessarily match. ClaudeResult.result then becomes generic. |
### POSSIBLE — could happen once the model problem is fixed
| # | Area | Note |
|---|---|---|
-| **P1** | OpenClaw slug mapping does not know `chatgpt` | [`provider_map.py`](file:///C:/Users/Administrator/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`. |
-| **P2** | Drift-Guard rolls the provider back | [`scripts/jarvis-config-drift-guard.ps1`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/scripts/jarvis-config-drift-guard.ps1) + [`scripts/config-soll.json`](file:///C:/Users/Administrator/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. |
-| **P3** | CODEX_HOME env leak | [`env.py:89`](file:///C:/Users/Administrator/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:///C:/Users/Administrator/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). |
+| **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`. |
+| **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. |
+| **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). |
| **P5** | MCP-plugin Cloudflare OAuth expired | `~/.codex/config.toml` | If the user config is loaded (the worker does that), and the Cloudflare plugin's OAuth token is expired → stderr spam but the worker still runs through. The Critic strips the user config, so no issue there. |
| **P6** | `step.allowed_tools="..."` is empty / malformed | Step construction in the Decomposer | If the LLM Decomposer emits an empty tool string → `--allowedTools ""` as argv → Codex ignores it or chokes. Not relevant as long as the worker does not pass `allowed_tools` on (our CodexDirectWorker currently ignores it). |
@@ -120,10 +120,10 @@ Categorized by evidence level. File + line + evidence snippet.
| # | Point | How verified |
|---|---|---|
| **R1** | OAuth token expired | `codex login status` → "Logged in using ChatGPT" |
-| **R2** | OPENAI_API_KEY ENV overrides OAuth | Explicitly stripped in worker code ([`codex_direct_worker.py:179-184`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/missions/workers/codex_direct_worker.py)) |
+| **R2** | OPENAI_API_KEY ENV overrides OAuth | Explicitly stripped in worker code ([`codex_direct_worker.py:179-184`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/workers/codex_direct_worker.py)) |
| **R3** | ANTHROPIC_API_KEY hits Codex | Worker ENV contains no Anthropic key (build_worker_env only sets explicitly) |
| **R4** | `[brain.sub_jarvis].provider` wrong | TOML + config-soll.json both on `chatgpt` — Drift-Guard accepts |
-| **R5** | `chatgpt` provider is not recognized as Codex | [`init.py`](file:///C:/Users/Administrator/Desktop/Personal%20Jarvis/jarvis/missions/init.py) routes `chatgpt → CodexDirectWorker` correctly; in the logs we see Codex frames, so the worker choice is OK |
+| **R5** | `chatgpt` provider is not recognized as Codex | [`init.py`](file:///<USER_HOME>/Desktop/Personal%20Jarvis/jarvis/missions/init.py) routes `chatgpt → CodexDirectWorker` correctly; in the logs we see Codex frames, so the worker choice is OK |
| **R6** | Codex CLI not installed | `codex --version` → `codex-cli 0.130.0` |
| **R7** | Worker tool-use detection broken | Not relevant — the bug fires BEFORE any tool use |
| **R8** | Critic loop swallows the error | Not relevant — the worker dies BEFORE the Critic starts, the mission ends with `worker_error` |
diff --git a/docs/jarvis-board/PHASE_A_DONE.md b/docs/jarvis-board/PHASE_A_DONE.md
index 38a4c6b209..30e092b03d 100644
--- a/docs/jarvis-board/PHASE_A_DONE.md
+++ b/docs/jarvis-board/PHASE_A_DONE.md
@@ -99,7 +99,7 @@ $ python -m pytest tests/board/ -v
============================= test session starts =============================
platform win32 -- Python 3.11.9, pytest-9.0.2, pluggy-1.6.0 -- Python 3.11.9
-rootdir: C:\Users\Administrator\Desktop\Personal Jarvis
+rootdir: <USER_HOME>\Desktop\Personal Jarvis
configfile: pyproject.toml
plugins: anyio-4.12.1, flaky-3.8.1, hydra-core-1.3.2, langsmith-0.6.6,
asyncio-1.3.0, mock-3.15.1, typeguard-4.4.4
diff --git a/docs/jarvis-board/PHASE_B_DONE.md b/docs/jarvis-board/PHASE_B_DONE.md
index a5eb26b76e..dad171251e 100644
--- a/docs/jarvis-board/PHASE_B_DONE.md
+++ b/docs/jarvis-board/PHASE_B_DONE.md
@@ -18,7 +18,7 @@ via `INSERT OR IGNORE` into the `achievements` table.
| ID | Title | Event(s) | Condition |
|---|---|---|---|
| `first_mcp` | First MCP connection | `HarnessCompleted` | `harness == "mcp-remote"` and `result.exit_code == 0` |
-| `sub_jarvis_summoner` | Sub-Jarvis Summoner | `SubJarvisCompleted` | `success == True` |
+| `sub_jarvis_summoner` | Jarvis-Agent Summoner | `SubJarvisCompleted` | `success == True` |
| `tool_dabbler` | Tool Dabbler | `ActionExecuted` | 5 distinct tools with `success == True` ever seen |
| `tool_journeyman` | Tool Journeyman | `ActionExecuted` | 15 distinct tools |
| `tool_master` | Tool Master | `ActionExecuted` | 30 distinct tools — additionally triggers bio regeneration |
@@ -141,7 +141,7 @@ subscriber for `*_master` unlocks.
The plan left open how the evaluator keeps its state. I decided
on a hybrid solution:
-- **Counters** (successful tasks, sub-jarvis success, mcp success,
+- **Counters** (successful tasks, Jarvis-Agent success, mcp success,
ever-seen-tools) — persisted in `aggregator_meta` as JSON/int,
hydrated on restart.
- **Per-trace tools** for `triple_combo` — in-memory LRU with cap 200
diff --git a/docs/jarvis-board/RECON.md b/docs/jarvis-board/RECON.md
index c29939c96c..5d2a9ceafa 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/Sub-Jarvis 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"`, `"openclaw"`, `"codex"`, `"open-interpreter"`.
**Response + Memory**
- `ResponseGenerated(text, language, audio_ref)`
@@ -115,7 +115,7 @@ Grouped by responsibility. Bold = directly relevant for board Phase A/B.
**Workflows (Phase 6)**
- `WorkflowScheduled/Started/StepStarted/StepCompleted/Completed(workflow_id, run_id, ...)`
-**Sub-Agent Dashboard (Phase 5.5)** — central to board achievements:
+**Jarvis-Agent Dashboard (Phase 5.5)** — central to board achievements:
- **`SubJarvisStarted(parent_trace_id, utterance, context_hints, provider, model, max_duration_s, depth)`** — `utterance` is user text, PII.
- `SubJarvisReviewTriggered(iteration)`
- **`SubJarvisCompleted(success, summary, full_log_len, duration_s, cost_estimate_usd, error)`** — `summary` is plaintext, may contain PII.
@@ -352,7 +352,7 @@ Reference: Plan §4, `AchievementEvaluator` from §5-B. Assumption: the aggregat
| `triple_combo` | **Yes (with a session definition)** | Group per `trace_id` → `COUNT(DISTINCT tool_name) >= 3`. | "Session" ≠ `trace_id` in the strict sense — but `trace_id` is the correlation key per turn intended by the plan. If the plan means "session" as a window (e.g. 10 min), additional heuristics are needed. Assumption: `trace_id` suffices as a "session". |
| `sub_jarvis_summoner` | **Yes** | `SubJarvisCompleted.success == True` min(`ts_ns`). | None. |
| `clear_speaker` (95 % voice first-try over 100) | **Partially — critical gap** | Per voice command one would need to know: "was that a retry?". Today there is no event `VoiceRetryDetected` or `UserRephrased`. `ActionExecuted.success` combined with `TranscriptFinal` only gives "the tool action worked", not "the user didn't have to speak again". | **A new event is needed**, e.g. `VoiceAttemptResult(attempt_idx: int, first_try: bool, …)` — or the aggregator derives retries heuristically (two `TranscriptFinal` events within X seconds on the same thread without `ActionExecuted.success=True` in between = retry). The heuristic is fragile. Recommendation: **introduce a new event in Phase B**, in parallel with the achievement-implementation PR. |
-| `ten_x_engineer` (10+ Sub-Jarvis hours saved/week) | **Yes (with an assumption)** | `SUM(SubJarvisCompleted.duration_s) WHERE ts_ns ∈ last 7 days >= 10*3600`. | "Saved" ≠ "ran". Assumption: when Sub-Jarvis runs in the background, its wall-clock time counts as saved user time. The plan text implies this ("via Sub-Jarvis duration tracking" in daily_stats.hours_saved_estimate). |
+| `ten_x_engineer` (10+ Jarvis-Agent hours saved/week) | **Yes (with an assumption)** | `SUM(SubJarvisCompleted.duration_s) WHERE ts_ns ∈ last 7 days >= 10*3600`. | "Saved" ≠ "ran". Assumption: when the Jarvis-Agent runs in the background, its wall-clock time counts as saved user time. The plan text implies this ("via Jarvis-Agent duration tracking" in daily_stats.hours_saved_estimate). |
### 6.2 Reflection tier
diff --git a/docs/jarvis-cli-reference.md b/docs/jarvis-cli-reference.md
index d777f9297f..9e94479758 100644
--- a/docs/jarvis-cli-reference.md
+++ b/docs/jarvis-cli-reference.md
@@ -20,13 +20,24 @@ _Generated from the curated command tree by `scripts/ci/gen_cli_reference.py`
## brain
-- `jarvis brain deep-model <model> --persist --yes --dry-run` — Set the sub-agent deep model.
+- `jarvis brain deep-model <model> --persist --yes --dry-run` — Set the Jarvis-Agent deep model.
- `jarvis brain list` — List configured brain providers (alias of status).
- `jarvis brain status` — Show configured providers and which one is active.
-- `jarvis brain subagent-switch <provider> --persist --yes --dry-run` — Switch the sub-agent / worker provider (e.g. Codex -> OpenAI).
+- `jarvis brain subagent-switch <provider> --persist --yes --dry-run` — Switch the Jarvis-Agent / worker provider (e.g. Codex -> OpenAI).
- `jarvis brain switch <provider> --persist --yes --dry-run` — Switch the ACTIVE main brain provider (e.g. `jarvis brain switch openai`).
- `jarvis brain test <provider> --dry-run` — Test connectivity + auth for a provider.
+## clis
+
+- `jarvis clis check <name> --yes --dry-run` — Probe a CLI's binary + auth (refreshes its status).
+- `jarvis clis connect <name> --json-body --yes --dry-run` — Connect a CLI's auth (oauth_cli flow or api_key).
+- `jarvis clis disconnect <name> --yes --dry-run` — Remove a CLI's stored auth credentials.
+- `jarvis clis install <name> --method --yes --dry-run` — Start an install job for a CLI (output streams in the desktop view).
+- `jarvis clis list` — List all CLIs with status (connected, installed, version, 7-day usage).
+- `jarvis clis show <name>` — Show one CLI (homepage, install methods, auth mode, secrets set).
+- `jarvis clis usage <name>` — Show a CLI's recent usage history.
+- `jarvis clis usage-stats <name>` — Show a CLI's aggregated usage stats (success rate, avg duration, top commands).
+
## conductor
- `jarvis conductor add --def --yes --dry-run` — Add a job from a Job JSON document.
@@ -59,6 +70,16 @@ _Generated from the curated command tree by `scripts/ci/gen_cli_reference.py`
- `jarvis docs show <slug>` — Show one doc page's body.
- `jarvis docs tree` — Show the Diataxis-grouped doc tree.
+## friends
+
+- `jarvis friends add --json-body --yes --dry-run` — Add a friend.
+- `jarvis friends delete <friend_id> --yes --dry-run` — Delete a friend and their channels.
+- `jarvis friends edit <friend_id> --json-body --yes --dry-run` — Edit a friend (partial).
+- `jarvis friends list` — List friends with their channels.
+- `jarvis friends message <friend_id> --text --yes --dry-run` — Send an outbound message to a friend (consequential — needs --yes).
+- `jarvis friends messages <friend_id>` — Show the message thread with a friend.
+- `jarvis friends show <friend_id>` — Show one friend (detail + channels + permission profile).
+
## frontier
- `jarvis frontier ack --yes --dry-run` — Acknowledge (dismiss) the pending frontier proposals.
@@ -123,6 +144,13 @@ _Generated from the curated command tree by `scripts/ci/gen_cli_reference.py`
- `jarvis skills reload --yes --dry-run` — Re-scan the skills directory.
- `jarvis skills show <name>` — Show one skill's detail.
+## socials
+
+- `jarvis socials add --json-body --yes --dry-run` — Add a social link.
+- `jarvis socials delete <social_id> --yes --dry-run` — Delete a social link.
+- `jarvis socials edit <social_id> --json-body --yes --dry-run` — Edit a social link (partial).
+- `jarvis socials list` — List social links.
+
## system
- `jarvis system restart --force --yes --dry-run` — Cleanly restart the desktop app (POST /api/settings/restart-app).
diff --git a/docs/latency-deep-dive.md b/docs/latency-deep-dive.md
index 23df9723d6..39b5447f89 100644
--- a/docs/latency-deep-dive.md
+++ b/docs/latency-deep-dive.md
@@ -18,7 +18,7 @@
The token footprint presumably breaks down roughly into:
- **Vision frames** (`[brain.router.vision] enabled = true, refresh_interval_s = 2.0`): foreground screenshot up to 500 KB, ~1500–3000 image tokens per frame. With a 2-second refresh and frame-history/buffer logic, 5000–10000 tokens are not unusual.
-- **Persona/system prompt** (`brain/persona_loader.py`): plan §22-compliant pure-dispatcher prompt + sub-Jarvis spawn rules + bilingual + filter hints. Estimate: 2000–3000 tokens.
+- **Persona/system prompt** (`brain/persona_loader.py`): plan §22-compliant pure-dispatcher prompt + Jarvis-Agent spawn rules + bilingual + filter hints. Estimate: 2000–3000 tokens.
- **Tool definitions** (router tier: `run-shell`, `screen-snapshot`, `dispatch-to-harness`, `multi-spawn`, `spawn-sub-jarvis`, `dispatch-with-review` plus self-mod tools): each tool with its JSON schema 200–600 tokens, aggregate ~3000 tokens.
- **Memory context** (core memory + recall + persona recall): variable, 1000–3000 tokens.
- **Conversation history** (`use_history = True`): since session start, nearly empty on a voice-session restart.
@@ -85,12 +85,12 @@ Weighted below by **latency effect × quality risk × effort**. Quality risk = 0
| # | Lever | Latency effect | Quality risk | Effort |
|---|-------|---------------|--------------|---------|
-| **C1** | **Gemini `thinking_config.thinking_budget`** — configurable per tier: Router=0 or dynamic-low, Sub-Jarvis=high | −2 to −5 s in the router tier (currently thinks without a limit) | low (the router makes a tool choice, barely needs reasoning) | small (1 day) |
-| **C2** | **Anthropic Extended Thinking `thinking.budget_tokens`** for sub-Jarvis (Opus) — deliberately set instead of default | at a low value −1 to −3 s | low-medium (depending on the value) | small (1 day) |
+| **C1** | **Gemini `thinking_config.thinking_budget`** — configurable per tier: Router=0 or dynamic-low, Jarvis-Agent=high | −2 to −5 s in the router tier (currently thinks without a limit) | low (the router makes a tool choice, barely needs reasoning) | small (1 day) |
+| **C2** | **Anthropic Extended Thinking `thinking.budget_tokens`** for the Jarvis-Agent (Opus) — deliberately set instead of default | at a low value −1 to −3 s | low-medium (depending on the value) | small (1 day) |
| **C3** | **OpenAI `reasoning.effort: "low"|"medium"|"high"` for GPT-5.5 Pro** — map per tier | analogous to C1 | analogous to C1 | small |
| **C4** | **Per-intent tier routing** — smalltalk → Flash/Haiku; reasoning → Pro/Opus. Partially exists via the router; map it consistently onto the thinking budget | −3 to −6 s on smalltalk requests | 0 (correct model choice, not a downgrade) | medium |
-**Recommendation:** C1 is mandatory. Currently Gemini 3.1 Pro Preview in the sub-Jarvis tier probably thinks with the default budget (high), and the router (Gemini 3 Flash Preview) does too — but Flash has barely any thinking need for tool routing.
+**Recommendation:** C1 is mandatory. Currently Gemini 3.1 Pro Preview in the Jarvis-Agent tier probably thinks with the default budget (high), and the router (Gemini 3 Flash Preview) does too — but Flash has barely any thinking need for tool routing.
### Lever class D — Hedged / parallel requests (quality risk = 0, cost +)
@@ -100,14 +100,14 @@ Weighted below by **latency effect × quality risk × effort**. Quality risk = 0
| **D2** | **Region hedging** — same provider in 2 regions (US-East + EU) | TTFT −100 to −500 ms | double cost | small (endpoint config) |
| **D3** | **Speculative acknowledgment** — at latency > 800 ms play a pre-rendered filler phrase (already exists via `_brain_with_ack` and `_task_ack_delay_s`) | perceived −1 s | 0 | already implemented |
-**Recommendation:** D1 is a backup strategy for especially tough cases (>10s). Not the first priority, but quite interesting as a "premium mode" for sub-Jarvis spawns.
+**Recommendation:** D1 is a backup strategy for especially tough cases (>10s). Not the first priority, but quite interesting as a "premium mode" for Jarvis-Agent spawns.
### Lever class E — Model strategy (quality risk: controllable)
| # | Lever | Latency effect | Quality risk |
|---|-------|---------------|--------------|
| **E1** | **Frontier registry with auto-update** — `models.toml` with "frontier" as a tag, an automatic check (e.g. weekly) for whether new frontier models exist | 0 (latency-neutral, but automatically future-proof) | 0 |
-| **E2** | **"Speculative tier" instead of reasoning** for trivial requests — the router already decides: do I need Pro or Flash? The current logic is a pure dispatcher → spawn a sub-Jarvis on every action verb. Not every "öffne …" needs Opus. | −5 to −8 s on trivial sub-Jarvis spawns | low (some spawns then run on Flash instead of Pro) |
+| **E2** | **"Speculative tier" instead of reasoning** for trivial requests — the router already decides: do I need Pro or Flash? The current logic is a pure dispatcher → spawn a Jarvis-Agent on every action verb. Not every "öffne …" needs Opus. | −5 to −8 s on trivial Jarvis-Agent spawns | low (some spawns then run on Flash instead of Pro) |
| **E3** | **Model aliasing** — `claude-opus-latest` / `gemini-pro-latest` instead of hard-wired `claude-opus-4-7` / `gemini-3.1-pro-preview`. Provider-side or as a config layer. | 0 | 0 |
---
@@ -137,7 +137,7 @@ Weighted below by **latency effect × quality risk × effort**. Quality risk = 0
4. **C1: Gemini thinking-budget config** (1 day)
- Pydantic model: `[brain.providers.gemini].thinking_budget_router = 0`, `thinking_budget_sub_jarvis = "dynamic"` or a fixed token value.
- In `gemini.py:complete()`: `thinking_config = types.ThinkingConfig(thinking_budget=N)` on `GenerateContentConfig`.
- - Expected effect: router-tier latency roughly halves; sub-Jarvis on trivial actions likewise.
+ - Expected effect: router-tier latency roughly halves; Jarvis-Agent on trivial actions likewise.
### Stage 2 — Mid-term (2–3 weeks)
@@ -148,10 +148,10 @@ Weighted below by **latency effect × quality risk × effort**. Quality risk = 0
- Resolution in the BrainManager via the registry.
- Expected effect: an automatic switch on every new frontier release without a code edit. **Exactly what you requested.**
-6. **E2: "Quick-path" for trivial sub-Jarvis spawns**
+6. **E2: "Quick-path" for trivial Jarvis-Agent spawns**
- The force-spawn heuristic (`_should_force_sub_jarvis`) gets a second stage: trivial actions ("öffne Notepad", "type X", "click Y") land on the Flash tier instead of Pro.
- Complex visions ("baue mir eine App", "deploy auf Vercel") stay on Opus/Pro.
- - Expected effect: ~50 % of sub-Jarvis spawns become 5–8 s faster.
+ - Expected effect: ~50 % of Jarvis-Agent spawns become 5–8 s faster.
7. **A3 + A4: Pipeline optimizations**
- Move the vision-capture path out of the critical path (its own background producer, the BrainManager reads the last frame from shared state).
@@ -227,7 +227,7 @@ User mandate: "die Qualität der Antworten unter Mitleidenschaft" must not suffe
| Provider caching | **Bit-identical to the uncached version** (the cache is transparent) |
| Connection pooling | **0** |
| Thinking-budget reduction on the router | The router makes a tool choice, needs no reasoning. **0 risk in the router tier.** |
-| Thinking-budget reduction on sub-Jarvis | **Careful here.** Keep the default budget for sub-Jarvis Pro/Opus conservative. Divert trivial actions (E2) to the Flash tier via heuristic instead of blocking Opus with a low budget. |
+| Thinking-budget reduction on the Jarvis-Agent | **Careful here.** Keep the default budget for the Jarvis-Agent Pro/Opus conservative. Divert trivial actions (E2) to the Flash tier via heuristic instead of blocking Opus with a low budget. |
| Hedging | **0** (same frontier provider, the fastest answer wins) |
**Red line:** never statically cap the reasoning budget on Opus/Pro for complex requests. Instead, route the *class* of the request correctly (E2). The mandate "keep frontier models" is consistent with thinking-budget control as long as the budget fits the class of the task.
@@ -274,7 +274,7 @@ Expected new voice-session latency for the request above ("Was geht ab?"):
| S1 | B1 verify Anthropic cache | 1 day | Hauptjarvis |
| S1 | C1 Gemini thinking-budget config | 1 day | Hauptjarvis |
| S2 (week 2-3) | E1 frontier registry with auto-update | 3 days | Hauptjarvis |
-| S2 | E2 quick-path heuristic for trivial sub-Jarvis spawns | 2 days | Hauptjarvis |
+| S2 | E2 quick-path heuristic for trivial Jarvis-Agent spawns | 2 days | Hauptjarvis |
| S2 | A3+A4 pipeline optimizations | 2 days | Hauptjarvis |
| S3 (optional) | D1 hedging as premium mode | 3 days | Hauptjarvis |
| S3 (optional) | B4 vision-frame diff cache | 3 days | Hauptjarvis |
@@ -292,7 +292,7 @@ After each stage, run the following smoke tests:
1. **A latency regression test** exists: `tests/integration/test_tier1_speed.py`. Extend it to:
- Time-to-first-audio ≤ 3 s (P95) on smalltalk
- - Time-to-first-audio ≤ 5 s (P95) on a sub-Jarvis spawn
+ - Time-to-first-audio ≤ 5 s (P95) on a Jarvis-Agent spawn
- Total latency ≤ 8 s (P95) on smalltalk
2. **Quality regression test:** 20 fixed voice prompts (deterministic seed), compare the brain outputs before/after. Diff score (cosine similarity) ≥ 0.95.
3. **Cost regression test:** compare the cost meter before/after caching on the same prompt set. Expectation: cost reduction > 50 % at stable quality.
diff --git a/docs/legal/index.html b/docs/legal/index.html
new file mode 100644
index 0000000000..b433529e11
--- /dev/null
+++ b/docs/legal/index.html
@@ -0,0 +1,7 @@
+<!doctype html>
+<meta charset="utf-8">
+<meta http-equiv="refresh" content="0; url=trademark-brand-audit-2026-06-27.html">
+<title>Personal Jarvis — Trademark &amp; Brand-Use Audit</title>
+<body style="background:#0A0A0A;color:#F4F4F5;font-family:system-ui,sans-serif;padding:40px">
+ <a style="color:#FFD60A" href="trademark-brand-audit-2026-06-27.html">Open the Trademark &amp; Brand-Use Audit &rarr;</a>
+</body>
diff --git a/docs/local-wakeword/RESEARCH-AND-DESIGN.md b/docs/local-wakeword/RESEARCH-AND-DESIGN.md
index e972a2200b..e6f566b6cf 100644
--- a/docs/local-wakeword/RESEARCH-AND-DESIGN.md
+++ b/docs/local-wakeword/RESEARCH-AND-DESIGN.md
@@ -1,7 +1,7 @@
# Local Lightweight Wake-Word — Research & Design Report
**Date:** 2026-05-24
-**Author:** Autonomous research + implementation session (4 research sub-agents + main agent synthesis)
+**Author:** Autonomous research + implementation session (4 research Jarvis-Agents + main agent synthesis)
**Status:** Design accepted → implementation in progress on branch `feat/lightweight-local-wakeword`
---
diff --git a/docs/marketplace/google-oauth-setup.md b/docs/marketplace/google-oauth-setup.md
index 551a063a91..5025fa27ce 100644
--- a/docs/marketplace/google-oauth-setup.md
+++ b/docs/marketplace/google-oauth-setup.md
@@ -1,28 +1,35 @@
-# OAuth app setup for the Asana, Gmail and Drive plugins
+# OAuth app setup for the Asana, Gmail, Drive and Calendar plugins
-Three marketplace plugins use browser-login OAuth against an app **you** register
-once. This is the providers' security model — no one can do it for you. After
-registering, you paste the resulting **Client ID** into your local
+These marketplace plugins use browser-login OAuth against an app **you** register
+once. This is the providers' security model — no one can do it for you, and there
+is no shared Jarvis-owned client: every user connects their *own* Google account
+through their *own* OAuth client. After registering, you store the resulting
+**Client ID** as a secret (preferred) or paste it into your local
`data/plugin_catalog.json` (gitignored runtime override) and restart.
| Plugin | App to register | Client ID placeholder to replace |
|---|---|---|
| Gmail | one Google Cloud "Desktop" OAuth client | `REPLACE_WITH_JARVIS_GOOGLE_CLIENT_ID` |
| Google Drive | **the same** Google client (shared) | `REPLACE_WITH_JARVIS_GOOGLE_CLIENT_ID` |
+| Google Calendar | **the same** Google client (shared) | `REPLACE_WITH_JARVIS_GOOGLE_CLIENT_ID` |
| Asana | an Asana OAuth app | `REPLACE_WITH_JARVIS_ASANA_CLIENT_ID` |
---
-## Part A — Google (covers BOTH Gmail and Drive with one client)
+## Part A — Google (covers Gmail, Drive AND Calendar with one client)
1. Go to <https://console.cloud.google.com> and create (or select) a project.
-2. **APIs & Services → Library** → enable **Gmail API** and **Google Drive API**.
+2. **APIs & Services → Library** → enable **Gmail API**, **Google Drive API**
+ and **Google Calendar API** (enable only the ones whose plugins you want).
3. **APIs & Services → OAuth consent screen** → User type **External** → Create.
Fill app name, your support email, and developer contact email → Save.
-4. **Scopes** → add: `.../auth/gmail.readonly`, `.../auth/gmail.send`,
- `.../auth/drive.file`. (Drive's `drive.file` is non-sensitive; the Gmail
- scopes are sensitive/restricted — see "Keeping Gmail connected" below.)
-5. **Test users** → add your own Gmail address. In Testing mode only listed
+4. **Scopes** → add the ones you need: `.../auth/gmail.readonly`,
+ `.../auth/gmail.send`, `.../auth/drive.file`, `.../auth/calendar`.
+ (Drive's `drive.file` is non-sensitive; the Gmail scopes are
+ sensitive/restricted; the full `calendar` scope is sensitive — it lets Jarvis
+ read events across ALL your calendars, not just the primary one, so a lesson
+ on a secondary "School" calendar isn't missed. See "Keeping it connected".)
+5. **Test users** → add your own Google address. In Testing mode only listed
users can authorize.
6. **Credentials → Create credentials → OAuth client ID** → Application type
**Desktop app** → Create. Copy the **Client ID**
@@ -44,8 +51,9 @@ registering, you paste the resulting **Client ID** into your local
Or store it permanently in the credential manager (service
`personal-jarvis`), keys `google_oauth_client_id` /
- `google_oauth_client_secret`. One client covers **both** Gmail and Drive.
- Then restart Jarvis and **reconnect Gmail** in the Plugins view.
+ `google_oauth_client_secret`. One client covers **Gmail, Drive AND Calendar**
+ (the shared Google family). Then restart Jarvis and **connect the plugin** in
+ the Plugins view.
(Editing `data/plugin_catalog.json` directly still works as a fallback, but
the secret takes precedence and is the durable option.)
@@ -59,25 +67,38 @@ Plugins view shows **Reconnect** and the voice/chat reply says the Gmail
authorization expired and needs reconnecting, instead of a cryptic "expired" or
"timeout". Set a real `google_oauth_client_id` first (above), then reconnect.
-### Keeping Gmail connected (the 7-day rule)
+### Keeping it connected (the 7-day rule)
Google issues a refresh token that **expires after 7 days** while your app's
-publishing status is **Testing** and any Gmail scope is requested. To keep Gmail
-connected permanently you must **publish the app to "In production"**:
+publishing status is **Testing** and a sensitive/restricted scope is requested.
+To keep a plugin connected permanently you must **publish the app to "In
+production"** (Audience → Publish app). Even an *unverified* production app keeps
+the refresh token alive for the app owner / test users — you just click through a
+one-time "Google hasn't verified this app" notice when connecting:
- For **`drive.file`** (Drive): non-sensitive — publishing needs no verification,
so Drive is permanent immediately after you publish (or even in testing it is
unaffected by the 7-day rule because `drive.file` is non-sensitive… still,
publish to be safe).
+- For **`calendar`** (Calendar, full read/write across all calendars):
+ **sensitive but not restricted** — same light path as Gmail send: publishing to
+ production needs OAuth verification for *public* use but **no CASA assessment**.
+ For your own account just publish to production (unverified is fine) and the
+ connection stops expiring; voice commands like "what's on my calendar today" and
+ "schedule a meeting tomorrow at 3pm" then work indefinitely. (The narrower
+ `calendar.events` scope also works for create/read/delete but **cannot list your
+ other calendars**, so events on a secondary calendar would be invisible — use
+ the full `calendar` scope.)
- For **Gmail read** (`gmail.readonly`, restricted): publishing to production
requires Google's OAuth app **verification + a CASA security assessment**
(several weeks). Until that completes, Gmail works but reconnects ~weekly.
- For **Gmail send only** (`gmail.send`, sensitive but not restricted): a far
lighter path — production needs OAuth verification but **no** CASA assessment.
-You chose the full-verification path, so: publish the app, start Google's
-verification, and complete the CASA assessment for the restricted Gmail scopes.
-After that, Gmail stays connected like everything else.
+For just Calendar + Drive + Gmail-send, the quick path is: publish the app to
+production and connect — no verification needed for your own use. The heavy
+verification + CASA path is only required for the restricted Gmail read scope, or
+for distributing the app publicly.
---
@@ -109,9 +130,10 @@ Two ways, in precedence order:
connect-time *and* refresh-time and survive a catalog re-sync. Set them as env
vars or in the credential manager (service `personal-jarvis`).
2. **`data/plugin_catalog.json` (fallback).** Your local, gitignored runtime
- override; edit the `gmail`/`google_drive`/`asana` entries and restart. Note
- this file is re-synced from the seed, so a real Client ID written here can be
- reset back to the placeholder — prefer the secret for Google.
+ override; edit the `gmail`/`google_drive`/`google_calendar`/`asana` entries
+ and restart. Note this file is re-synced from the seed, so a real Client ID
+ written here can be reset back to the placeholder — prefer the secret for
+ Google.
After any change, restart Jarvis and reconnect the plugin. The tracked
`jarvis/marketplace/seed_catalog.json` keeps the placeholders (never commit your
diff --git a/docs/overlay-troubleshooting.md b/docs/overlay-troubleshooting.md
index 35742256a8..f396393835 100644
--- a/docs/overlay-troubleshooting.md
+++ b/docs/overlay-troubleshooting.md
@@ -55,7 +55,7 @@ keystrokes go through.
only wired in tests, glow will silently no-op.
2. **`JARVIS_DEPTH == 0`?**
- - In Sub-Agents (`JARVIS_DEPTH > 0` env var, see Plan §8.7), the
+ - In Jarvis-Agents (`JARVIS_DEPTH > 0` env var, see Plan §8.7), the
`OverlayBridge` is a **no-op stub by design**. Only the top-level
Hauptjarvis triggers the glow.
- Verify with `echo %JARVIS_DEPTH%` (cmd) or `$env:JARVIS_DEPTH`
@@ -220,23 +220,23 @@ privacy.
---
-## 8. Sub-Agent triggers the overlay
+## 8. Jarvis-Agent triggers the overlay
-**Symptoms:** Spawned Sub-Jarvis or Worker triggers the glow, even though only
+**Symptoms:** Spawned Jarvis-Agent or Worker triggers the glow, even though only
Hauptjarvis is supposed to.
-**Explanation (Plan §8.7):** In Sub-Agents (`JARVIS_DEPTH > 0`),
-`OverlayBridge` is a **no-op stub by design**. If a Sub-Agent's actions
+**Explanation (Plan §8.7):** In Jarvis-Agents (`JARVIS_DEPTH > 0`),
+`OverlayBridge` is a **no-op stub by design**. If a Jarvis-Agent's actions
trigger the glow, the env-var inheritance broke.
**Checks:**
-1. **Confirm `JARVIS_DEPTH > 0` is set in the Sub-Agent subprocess:**
- - Inspect the spawn command (in the Worker code or the Sub-Jarvis
+1. **Confirm `JARVIS_DEPTH > 0` is set in the Jarvis-Agent subprocess:**
+ - Inspect the spawn command (in the Worker code or the Jarvis-Agent
supervisor).
- The parent must inject `env={**os.environ, "JARVIS_DEPTH": str(depth+1)}`
when spawning the child.
-2. **Verify at runtime:** add a debug-print in the Sub-Agent's `OverlayBridge`
+2. **Verify at runtime:** add a debug-print in the Jarvis-Agent's `OverlayBridge`
instantiation; it should hit the no-op-stub branch, not the real-bridge
branch.
3. **Test:** `pytest OS-Level/tests/test_subagent_noop.py` (sets
@@ -245,7 +245,7 @@ trigger the glow, the env-var inheritance broke.
spawn-env-injection, not in the bridge itself.
**Source files:** `OS-Level/src/overlay/bridge.py` (no-op-stub branch),
-spawn sites in the Phase-5 Sub-Jarvis manager.
+spawn sites in the Phase-5 Jarvis-Agent manager.
---
diff --git a/docs/persona-audit-report.md b/docs/persona-audit-report.md
index 8c7442dd25..38f66aaa9e 100644
--- a/docs/persona-audit-report.md
+++ b/docs/persona-audit-report.md
@@ -36,11 +36,11 @@
#### F-AUDIT-1 — A1 spec conflict between mandate and prompt layer
-- **Description:** Mandate A1: "Ruben instead of Sir, never Sir." This requirement is correctly entered in `JARVIS_PERSONA.md:33` ("never 'Sir,' never 'Mr. Stark,' never 'Tony,' never 'boss.'"). **But the same file** contains, in lines 136-148, the "SIR / RUBEN HYBRID RULE," which explicitly prescribes "Sir" for sub-agent ceremonies:
+- **Description:** Mandate A1: "Alex instead of Sir, never Sir." This requirement is correctly entered in `JARVIS_PERSONA.md:33` ("never 'Sir,' never 'Mr. Stark,' never 'Tony,' never 'boss.'"). **But the same file** contains, in lines 136-148, the "SIR / ALEX HYBRID RULE," which explicitly prescribes "Sir" for Jarvis-Agent ceremonies:
```
jarvis/brain/JARVIS_PERSONA.md:139-143
- Default-Anrede ist "Ruben" (wie oben). Ausnahme: bei bestimmten
+ Default-Anrede ist "Alex" (wie oben). Ausnahme: bei bestimmten
Zeremonien nutze "Sir" — das macht die Delegations-Momente besonders:
- Sub-Agent-Spawn: "Sir, ich starte einen Sub-Agent, der ..."
- Sub-Agent-Completion: "Sir, fertig. {summary}"
@@ -59,7 +59,7 @@
- **Evidence:** `grep -n '\bSir\b' jarvis/brain/`.
- **Effect:** The LLM sees **contradictory instructions** in the system prompt — sometimes "never Sir," sometimes "use Sir on spawn." The fact that the probe of 2026-04-28 returned scenario 03 + 07 literally as "Sir, ich starte einen Sub-Agent" ("Sir, I am starting a sub-agent") is **not a brain bug**, but a direct consequence of the prompt content. The output filter (`SIR_OPENER_RE`/`SIR_TAIL_RE`) scrubs the symptom but does not fix the root cause.
-- **Recommended fix:** (a) **delete** the `JARVIS_PERSONA.md:136-148` HYBRID RULE section; (b) change the `router.py:200-202` example to "Einen Augenblick, Ruben" ("One moment, Ruben"); (c) migrate the `gemini_test_brain.py` "Sir" hangup signal to a "Ruben" variant, or mark the test brain as deprecated.
+- **Recommended fix:** (a) **delete** the `JARVIS_PERSONA.md:136-148` HYBRID RULE section; (b) change the `router.py:200-202` example to "Einen Augenblick, Alex" ("One moment, Alex"); (c) migrate the `gemini_test_brain.py` "Sir" hangup signal to a "Alex" variant, or mark the test brain as deprecated.
- **Effort:** small (3 files, ~10 lines).
#### F-AUDIT-2 — Mission-voice listener bypasses `scrub_for_voice` entirely
@@ -199,7 +199,7 @@
- 13 scenarios × 1-2 languages = 16 runs.
- Anti-pattern hits: 0 (probe heuristic marker, but **irrelevant** — see F-AUDIT-6).
- Name ratio: 1/16 (6 %) — irrelevant, since the brain is unreachable.
-- Hangup contract DE: **MISS** — the brain answered `"claude-api, gemini, grok unerreichbar. Netzwerk pruefen."` ("claude-api, gemini, grok unreachable. Check network.") instead of `"Auf Wiedersehen, Ruben."` ("Goodbye, Ruben.") (brain failure, not persona bug).
+- Hangup contract DE: **MISS** — the brain answered `"claude-api, gemini, grok unerreichbar. Netzwerk pruefen."` ("claude-api, gemini, grok unreachable. Check network.") instead of `"Auf Wiedersehen, Alex."` ("Goodbye, Alex.") (brain failure, not persona bug).
- Substantial brain output only in scenarios 03 + 07. Scenario 07 shows a **NEW drift class** (F-AUDIT-4): prose-style tool args.
### Manual smoke test (subprocess spawn count)
@@ -238,7 +238,7 @@
| 7 | `tests/unit/brain/test_output_filter.py` green (≥15 cases) | ☑ | 41/41 green |
| 8 | `tests/unit/brain/test_routing.py` green | ☑ | 32/32 green |
| 9 | `tests/unit/brain/test_plausibility.py` green (5 cases) | ☑ | 13/13 green |
-| 10 | Manual voice test 5 smalltalk → 0 subprocesses | ⚠️ | Echo-mode smoke test ✅; production test with Ruben (manual) |
+| 10 | Manual voice test 5 smalltalk → 0 subprocesses | ⚠️ | Echo-mode smoke test ✅; production test with Alex (manual) |
| 11 | `docs/persona-refactor-results.md` with before/after | ⚠️ | Exists (569 lines). Before/after in sections 1 + 12 — partly verbatim, partly paraphrased. The mandate requires "verbatim." |
| 12 | Output-filter path logged in the FlightRecorder | ☐ | `pipeline.py:1332+649` have `log.info("🧹 Output-Filter [%s]: %s")` — plain logging, **no FlightRecorder event schema** |
@@ -246,7 +246,7 @@
---
-## 7. Recommendation to Ruben
+## 7. Recommendation to Alex
**Status: FIX FIRST.** Before manual voice acceptance, at least **F-AUDIT-1** and **F-AUDIT-2** should be fixed — otherwise you will hear "Sir, ich starte einen Sub-Agent" ("Sir, I am starting a sub-agent") despite the filter (if the mission-voice-listener path triggers), or you leave the LLM with a contradictory prompt (HYBRID RULE vs. "never Sir").
@@ -298,15 +298,15 @@ After the audit was cleared, a separate implementation session worked through th
| Commit | Finding | Severity | Effort |
|---|---|---|---|
-| `1ba2a061 fix(persona): F-AUDIT-1` | A1 spec conflict in the prompt layer (HYBRID RULE deleted, router.py example migrated, gemini_test_brain.py to "Ruben") | CRITICAL | small |
-| `8c5dfadb fix(missions): F-AUDIT-2` | Mission-voice listener through `scrub_for_voice` + readback templates strict A1 (all 30+ templates to "Ruben") | CRITICAL | small |
+| `1ba2a061 fix(persona): F-AUDIT-1` | A1 spec conflict in the prompt layer (HYBRID RULE deleted, router.py example migrated, gemini_test_brain.py to "Alex") | CRITICAL | small |
+| `8c5dfadb fix(missions): F-AUDIT-2` | Mission-voice listener through `scrub_for_voice` + readback templates strict A1 (all 30+ templates to "Alex") | CRITICAL | small |
| `c613021f fix(test): F-AUDIT-5` | announcement-bridge × 3 migrated to neutral test strings | HIGH | small |
| `02026be0 fix(tasks): F-AUDIT-3` | runner._run_speak protected by `scrub_for_voice` (defense-in-depth) | HIGH | small |
| `20bf8037 fix(filter): F-AUDIT-4` | Filter pattern for prose-style tool args (`X with utterance is Y`) | HIGH | small |
### 9.2 Spec-consistency wins
-- **A1 is now homogeneous:** `JARVIS_PERSONA.md` no longer contradicts itself (HYBRID RULE gone). The router prompt example says "Einen Augenblick, Ruben." ("One moment, Ruben.") instead of "Sir, ich starte einen Sub-Agent" ("Sir, I am starting a sub-agent"). `gemini_test_brain.py` HANGUP_SIGNAL is `"Goodbye, Ruben."`. Mission readback all 30+ templates to "Ruben." The output filter scrubs "Sir" as additional defense-in-depth.
+- **A1 is now homogeneous:** `JARVIS_PERSONA.md` no longer contradicts itself (HYBRID RULE gone). The router prompt example says "Einen Augenblick, Alex." ("One moment, Alex.") instead of "Sir, ich starte einen Sub-Agent" ("Sir, I am starting a sub-agent"). `gemini_test_brain.py` HANGUP_SIGNAL is `"Goodbye, Alex."`. Mission readback all 30+ templates to "Alex." The output filter scrubs "Sir" as additional defense-in-depth.
- **TTS paths are consistently filtered:** `pipeline.py` (path #1+#2) already had `scrub_for_voice`; `missions/voice/listener.py:88` and `tasks/runner.py:254` now too. Three TTS-bypass paths closed.
- **The test suite is mandate-A1-consistent:** no tests expect "Sir" as output anymore. `test_no_template_contains_sir_anywhere` as a strict guard against regression.
@@ -316,7 +316,7 @@ After the audit was cleared, a separate implementation session worked through th
|---|---|---|
| `tests/unit/brain/` | 187 green | see final run below |
| `tests/missions/test_voice_listener.py` | 11 / 2 fail (Sir expectation) | 14 green (+ new scrub test) |
-| `tests/missions/test_voice_readback.py` | 5 expected Sir | green on Ruben + strict-A1 guard |
+| `tests/missions/test_voice_readback.py` | 5 expected Sir | green on Alex + strict-A1 guard |
| `tests/unit/speech/test_announcement_bridge.py` | 8 / 3 fail (Sir/sub-agent strings) | 11 green |
| Pytest total | 11 fail | see final run below |
@@ -329,7 +329,7 @@ After the audit was cleared, a separate implementation session worked through th
| F-AUDIT-8 | LOW | tier-default models — separate brain-provider audit |
| F-AUDIT-9 | LOW | trivially resolved together with F-AUDIT-1 |
-### 9.5 Recommendation to Ruben (revised)
+### 9.5 Recommendation to Alex (revised)
**Status: GREEN for manual voice acceptance.** Both CRITICAL findings (F-AUDIT-1, F-AUDIT-2) are fixed, as are three HIGH findings (F-AUDIT-3, F-AUDIT-4, F-AUDIT-5). The two remaining MEDIUM/LOW findings are outside the refactor scope (provider setup, brain-default audit).
diff --git a/docs/persona-refactor-results.md b/docs/persona-refactor-results.md
index 4dee7fe53b..169ac34b19 100644
--- a/docs/persona-refactor-results.md
+++ b/docs/persona-refactor-results.md
@@ -21,8 +21,8 @@ with the filter extension). Both runs against the same provider stack
| ID | Tag | Before (verbatim) | After (verbatim) | Success? |
|---|---|---|---|---|
| 01 | routine-status | *(empty output — spawn reflex)* | "Ich sehe keinen Bildschirmkontext, um das zu prüfen. Welche Datei meinst du, und in welcher Anwendung?" | ◐ clarifying question instead of silence |
-| 02 | formal-greeting | *(empty output)* | "Morgen, Ruben. Bildschirm zeigt noch Schlafmodus — oder ist das absichtlich?" | ☑ short, with name, pattern 2 |
-| 03 | open-question | "Was genau möchten Sie beschleunigen?" *(uses formal "Sie"!)* | "Was möchtest du beschleunigen, Ruben?" | ☑ **A1 violation fixed** (informal "du" instead of "Sie") + tool leak gone |
+| 02 | formal-greeting | *(empty output)* | "Morgen, Alex. Bildschirm zeigt noch Schlafmodus — oder ist das absichtlich?" | ☑ short, with name, pattern 2 |
+| 03 | open-question | "Was genau möchten Sie beschleunigen?" *(uses formal "Sie"!)* | "Was möchtest du beschleunigen, Alex?" | ☑ **A1 violation fixed** (informal "du" instead of "Sie") + tool leak gone |
| 04 | risky-command | *(empty output)* | "Welche Logs meinst du — Windows-Eventlog, eine spezifische Anwendung, oder Dateien in einem bestimmten Ordner?" | ◐ clarifying question instead of silence |
| 05 | reckless-action | "Ein Deploy auf Produktion ohne vorherige Tests birgt erhebliche Risiken." | "Das ist eine schlechte Idee. Ohne Tests gehst du blind ins Prod, und wenn es crasht, brennt die Bude. Willst du wirklich, oder brauchst du nur schnell einen Quick-Check?" | ☑ dry anchor, no hedging |
| 06 | proactive-context | "Es liegen keine Informationen zur Außentemperatur vor." | "Das kann ich dir nicht sagen — ich habe keinen Zugriff auf Echtzeit-Wetterdaten und keine aktuelle Standortermittlung. Schau auf weather.com…" | ◐ honest answer, slightly too long |
@@ -37,7 +37,7 @@ with the filter extension). Both runs against the same provider stack
**Summary:**
- **6 of 10 previously empty smalltalk outputs** (scenarios 01, 02, 04, 07, 08, 09) now return substantial text. The Phase-3 force-spawn heuristic plus the ROUTER-DISCIPLINE prompt prevent the spawn reflex.
-- **A1 violation in scenario 03 fixed:** formal "Sie" → informal "du, Ruben."
+- **A1 violation in scenario 03 fixed:** formal "Sie" → informal "du, Alex."
- **Phase-2 persona hardening works** in the three new scenarios (11/13 with a pattern-fulfilling answer).
---
@@ -204,7 +204,7 @@ Source: mandate § "Definition of Done."
| 12 | Output-filter path logged in the FlightRecorder (pre+post scrub) | ◐ | Filter `actions` are logged via `log.info` (logger `jarvis.speech.pipeline`). A FlightRecorder subscription was explicitly not built in, but is covered by the wildcard-subscriber pattern (master plan §10). |
| 13 | CLAUDE.md has a "Router-Discipline" + "Output-Filter" section | ☑ | Phase 6 (this task). |
| 14 | Vision anticipation default-OFF, opt-in documented in the README | ☑ | `[vision].context_hint_on_spawn = false` in jarvis.toml; ENV `JARVIS_VISION_CONTEXT=1` as an alternative. The README status section mentions "Phase 5 opt-in." |
-| 15 | Manual voice acceptance passed | ☐ | `docs/voice-acceptance-brief.md` (Phase 6) is prepared. The test is with Ruben. Precondition: F-10 fix. |
+| 15 | Manual voice acceptance passed | ☐ | `docs/voice-acceptance-brief.md` (Phase 6) is prepared. The test is with Alex. Precondition: F-10 fix. |
**Summary:** 9 ☑, 3 ◐, 3 ☐. The three hard ☐ (items 2, 5, 10, 15) all hang on the same branch bug F-10 — as soon as `jarvis.clis.risk_integration` is available (stash pop or a targeted fix), 2/5/10/15 become testable.
@@ -352,7 +352,7 @@ State 2026-04-28 after this session's eight commits.
| 1 | `pytest -v` passes | ☑ | 160/160 in `tests/unit/brain/`. The whole suite is still blocked by pre-existing F-10 + branch state (24 fail / 13 errors from other modules, NOT caused by the refactor). |
| 2 | `python -m jarvis` starts without error | ☐ | F-10 still open. **Note:** two working-tree hunks (claude-opus-4-7 snapshot-ID fix + Agent2 token tracking) remained unstaged — separate commits by the Phase-8-hook owner. |
| 3 | `voice_e2e_probe`: 0 anti-pattern hits | ☑ | Final probe 19:17 — `Anti-Pattern-Treffer: 0`. |
-| 4 | `voice_e2e_probe`: name ratio ≤ 33 % | ☐ | 44 % — a new trade-off of the persona_loader reactivation. JARVIS_PERSONA.md explicitly says "Always address him as Ruben"; the brain follows. Do NOT rewrite JARVIS_PERSONA.md (mandate prohibition) → accepted consequence. |
+| 4 | `voice_e2e_probe`: name ratio ≤ 33 % | ☐ | 44 % — a new trade-off of the persona_loader reactivation. JARVIS_PERSONA.md explicitly says "Always address him as Alex"; the brain follows. Do NOT rewrite JARVIS_PERSONA.md (mandate prohibition) → accepted consequence. |
| 5 | `voice_e2e_probe`: hangup contract green | ☑ | **F-9 FIXED.** Final probe: `Hangup-Contract DE: OK`. |
| 6 | All 13 scenarios show the expected pattern | ◐ | 12/13 clean. Scenario 12 still has a filler-as-opener detection hit (probe-heuristic edge case, not brain drift). |
| 7 | `tests/unit/brain/test_output_filter.py` green (at least 15 cases) | ☑ | 40 cases green. |
@@ -363,7 +363,7 @@ State 2026-04-28 after this session's eight commits.
| 12 | Output-filter path logged in the FlightRecorder | ◐ | Filter actions are logged via `log.info("🧹 Output-Filter [%s]: %s")` in `pipeline.py:1332` and `:649`. A FlightRecorder event-schema extension is pending. |
| 13 | CLAUDE.md has a "Router-Discipline" + "Output-Filter" section | ☑ | Both present in CLAUDE.md. |
| 14 | Vision anticipation default-OFF, opt-in documented | ☑ | `is_enabled()` in `vision_context.py:42`, default OFF, ENV flag + config flag. |
-| 15 | Manual voice acceptance passed | ☐ | F-10 + no mic access. With Ruben. |
+| 15 | Manual voice acceptance passed | ☐ | F-10 + no mic access. With Alex. |
**Summary 2026-04-28:** 9 ☑, 2 ◐, 4 ☐. The four ☐ break down as:
- **F-10** (items 2, 10, 15): external branch bug, to be fixed by the Phase-8-hook owner.
@@ -441,7 +441,7 @@ Three data points: **step-0 probe (2026-04-28 ~16:00)** before today's work, **r
| ID | Tag | Step 0 (before) | Final (after) | Success? |
|---|---|---|---|---|
| 01 | routine-status | "Ich kann den Dateistatus nicht direkt einsehen — welche Datei und in welchem Programm?" | "Das Bild zeigt mir, was auf deinem Bildschirm zu sehen ist — ich benötige einen Screenshot, um den Speicherstatus der aktiven Datei zu prüfen." | ◐ answer substantial, no "Sir", no tool-JSON leak |
-| 02 | formal-greeting | "Guten Morgen, Ruben. Es ist kurz nach 16 Uhr — eher ein guter Nachmittag." | "Guten Morgen — was liegt an?" | ☑ formal, terse |
+| 02 | formal-greeting | "Guten Morgen, Alex. Es ist kurz nach 16 Uhr — eher ein guter Nachmittag." | "Guten Morgen — was liegt an?" | ☑ formal, terse |
| 03 | open-question | **"Sir, ich starte einen Sub-Agent, der die Beschleunigung … analysiert.**\nutterance:…\ncontext_hints:…\naction:…\ntarget:…" | "Was möchtest du beschleunigen?" | ☑ **A1 + tool-args leak completely fixed** |
| 04 | risky-command | "I need to know where to look. Welche Logs meinst du …" (mixed-language) | "Welche Logs meinst du — Windows Event Logs, eine bestimmte App, oder Logdateien in einem Ordner?" | ☑ single-language, clear clarifying question |
| 05 | reckless-action | "Verstanden. Nur zur Sicherheit: kein Rollback-Plan, keine Tests …" | "Tapfer." | ☑ dry anchor (P5) |
@@ -449,13 +449,13 @@ Three data points: **step-0 probe (2026-04-28 ~16:00)** before today's work, **r
| 07 | long-task-start | **"Sir, ich starte einen Sub-Agent, der das gesamte Projektverzeichnis analysiert."** | (brain empty content → filter fallback) "Es trat ein Fehler auf." | ◐ filter fallback instead of an initiative announcement; A1 fixed |
| 08 | bad-news | "I need more context to answer that …" (mixed-language) | "screen_snapshot" | ☐ tool name as a bare answer — new drift symptom |
| 09 | high-pressure | "Womit kann ich dir jetzt sofort helfen — soll ich eine Datei öffnen, den Bildschirm vorbereiten oder etwas anderes?" | "Was soll ich tun — aufmachen, aufräumen, auf Vollbild schalten?" | ☑ terser, register holds |
-| 10 | hangup | "Auf Wiedersehen, Ruben." | "Bis dann." (in the 18:54 run), **"Auf Wiedersehen, Ruben."** in the 19:17 run | ☑ **hangup contract fixed via persona_loader reactivation** |
+| 10 | hangup | "Auf Wiedersehen, Alex." | "Bis dann." (in the 18:54 run), **"Auf Wiedersehen, Alex."** in the 19:17 run | ☑ **hangup contract fixed via persona_loader reactivation** |
| 11 | echo-trap (DE) | "Es ist 16 Uhr 01." | "Es ist 19:47 Uhr (MEZ)." | ☑ direct, no echo opener |
| 11 | echo-trap (EN) | "It's 4:01 PM." | "It's whatever time your system clock shows; I don't have direct access …" | ◐ no echo opener, but hedging |
| 12 | tool-spawn-output-leak (DE) | post-filter `}` (filter garbage) | `read_file {"path": "jarvis.toml"}` tool call leaked through | ◐ no YAML body leak anymore, but the tool name `read_file` is not in `TOOL_NAMES` |
| 12 | tool-spawn-output-leak (EN) | post-filter `}` | "jarvis.toml ist auf dem System nicht auffindbar … Hast du den genauen Pfad?" | ☑ direct answer without tool args |
| 13 | self-reference-trap (DE) | "Dein persönlicher **Supervisor-Agent** — ich erledige Aufgaben …" | "Jarvis. Dein Meta-Orchestrator auf diesem Rechner — ich route, delegiere, und halte dir den Kram vom Hals." | ☑ **engineering compound scrubbed** (filter action: removed_engineering_jargon) |
-| 13 | self-reference-trap (EN) | "A voice-driven personal assistant running on your Windows 11 machine. Think Alfred, but with a terminal." | "I'm JARVIS, your meta-orchestrator, Ruben — voice interface, screen awareness, and a roster of tools and sub-agents at your disposal." | ☑ persona identity, no language-model reveal |
+| 13 | self-reference-trap (EN) | "A voice-driven personal assistant running on your Windows 11 machine. Think Alfred, but with a terminal." | "I'm JARVIS, your meta-orchestrator, Alex — voice interface, screen awareness, and a roster of tools and sub-agents at your disposal." | ☑ persona identity, no language-model reveal |
**Outputs summary:** A1 fixed (Sir → none), tool-args body leak gone, engineering compounds scrubbed, hangup green. The remaining ☐/◐ are no longer mandate drifts, but brain volatility (mixed-language mitigated; the tool name `read_file` as a new edge case not in the blacklist).
@@ -497,7 +497,7 @@ Three data points: **step-0 probe (2026-04-28 ~16:00)** before today's work, **r
| 5 | Persona tests are subjective | yes — the heuristic formally passed, but verbatim outputs showed drift | re-probe iteration + voice-acceptance-brief.md |
| 6 | Echo detection vs. legitimate confirmation | covered in the test (`test_echo_paraphrase_mid_sentence_is_kept`) | filter ONLY the opener (≤ 60 chars) |
| 7 | Routing fix breaks tool-call tests | no — 0 tests broken by the refactor, 1 outdated repaired | see 12.4 |
-| 8 | `scrub_for_voice` in the sub-Jarvis reasoning path | no — the filter only takes effect at the TTS output | `pipeline.py:1330` (path #1) + `:647` (path #2) |
+| 8 | `scrub_for_voice` in the Jarvis-Agent reasoning path | no — the filter only takes effect at the TTS output | `pipeline.py:1330` (path #1) + `:647` (path #2) |
**Additional failure modes hit today:**
@@ -527,12 +527,12 @@ Mandate wording from `Jarvis-Behavior/persona-delegation-mandate.md` § "Definit
| 7 | `tests/unit/brain/test_output_filter.py` green (at least 15 cases) | ☑ | **40 cases green** |
| 8 | `tests/unit/brain/test_routing.py` green (5+5+consistency) | ☑ | 26 cases green, incl. the new `test_recursive_tools_only_in_router` |
| 9 | `tests/unit/brain/test_plausibility.py` green (5 cases) | ☑ | 12 cases green (all 5 mandate cases + Failure-Mode-3 + config + edge cases) |
-| 10 | Manual voice test: 5 smalltalk → 0 subprocesses | ☐ | F-10 + mic access missing in agent mode. **Indirectly verified** through `test_smalltalk_dispatches_zero_spawn_calls` × 5. Ruben test with `voice-acceptance-brief.md`. |
+| 10 | Manual voice test: 5 smalltalk → 0 subprocesses | ☐ | F-10 + mic access missing in agent mode. **Indirectly verified** through `test_smalltalk_dispatches_zero_spawn_calls` × 5. Alex test with `voice-acceptance-brief.md`. |
| 11 | `docs/persona-refactor-results.md` with before/after | ☑ | Sections 1, 10, 11, **12** (this one) |
| 12 | Output-filter path logged in the FlightRecorder (pre+post scrub) | ◐ | Filter actions in `pipeline.py:1332` and `:649` as `log.info("🧹 Output-Filter [%s]: %s")`. A structured FlightRecorder event-schema update would be a separate small change. |
| 13 | CLAUDE.md has a "Router-Discipline" + "Output-Filter Discipline" section | ☑ | CLAUDE.md lines 137 + 150 (updated today with current tool/test counts) |
| 14 | Vision anticipation default-OFF, opt-in documented in the README | ☑ | README.md lines 46-48; `is_enabled()` returns False without an ENV/config flag |
-| 15 | Manual voice acceptance passed | ☐ | with Ruben — `docs/voice-acceptance-brief.md` is finally updated (F-9/F-11 marked as fixed, F-10 marked as open) |
+| 15 | Manual voice acceptance passed | ☐ | with Alex — `docs/voice-acceptance-brief.md` is finally updated (F-9/F-11 marked as fixed, F-10 marked as open) |
**Summary 2026-04-29:** **9 ☑, 2 ◐, 4 ☐**.
@@ -558,7 +558,7 @@ f7d751a7 feat(filter): phase 1 extension 3 — filler-self-reference in opener
(Plus a parallel Phase-8.7-hook commit `c3768c23`, not from this session.)
-### 12.8 Handover to Ruben
+### 12.8 Handover to Alex
**What you have to do now:**
diff --git a/docs/persona-research.md b/docs/persona-research.md
index 0c70e8dc01..b65090a84a 100644
--- a/docs/persona-research.md
+++ b/docs/persona-research.md
@@ -1,6 +1,6 @@
# Persona + Delegation Refactor — Research Report (Step 0)
-**Mandate:** `persona-delegation-mandate (1).md` (correction window: A1 = "Ruben" form of address is binding)
+**Mandate:** `persona-delegation-mandate (1).md` (correction window: A1 = "Alex" form of address is binding)
**Branch:** `phase-8-review-pipeline` (working-tree state 2026-04-28)
**Probe run:** 2026-04-28, ~16:00 local
**Predecessor reports:** `docs/persona-audit-report.md`, `docs/persona-refactor-results.md` (phases 1+2+3 already carried out 2026-04-25)
@@ -19,13 +19,13 @@
**Material inspection of the verbatim outputs:** ⚠️ **several drift classes visible** that the probe heuristic does not catch:
1. **A1 violated:** Scenarios 03 + 07 say *"Sir, ich starte einen Sub-Agent…"* — the word "Sir" is a mandate-A1 violation (`JARVIS_PERSONA.md:32-33` forbids it explicitly).
-2. **Tool-output leak:** Scenario 03 leaks the Sub-Jarvis args (`utterance`, `context_hints`, `action`, `target`) verbatim to the user.
-3. **Sub-Jarvis echo opener:** *"Sir, ich starte einen Sub-Agent, der die Beschleunigung einer unklaren Aufgabe analysiert."* tells **how** delegation happens instead of **what** happens (engineering reveal).
+2. **Tool-output leak:** Scenario 03 leaks the Jarvis-Agent args (`utterance`, `context_hints`, `action`, `target`) verbatim to the user.
+3. **Jarvis-Agent echo opener:** *"Sir, ich starte einen Sub-Agent, der die Beschleunigung einer unklaren Aufgabe analysiert."* tells **how** delegation happens instead of **what** happens (engineering reveal).
4. **Filter artifact:** Scenario 12 delivers, post-scrub, only `}` (no fallback trigger, empty content).
5. **Mixed-language drift:** Scenarios 04, 06, 08 answer **in English** to **German** inputs (`I need to know…`, `I don't have access…`).
6. **The `ECHO-PARAPHRASE` section is missing in the live prompt:** the probe reports `Enthaelt 'ECHO-PARAPHRASE': False` — the `persona_loader` is not present on this branch, so the `JARVIS_PERSONA.md` section never lands in the brain system prompt at all.
-**Recommendation:** the STOP condition is *not* trivially satisfied. The heuristic checks pass, but **new drift classes** are visible that appeared after 2026-04-25 (previous refactor completion), either through the provider switch (`gemini` → `claude-sonnet-4-6`) or through branch drift (`router-permanent-vision` → `phase-8-review-pipeline`). **Ruben must decide** whether the formal pass is sufficient or whether the materially visible drift gets addressed.
+**Recommendation:** the STOP condition is *not* trivially satisfied. The heuristic checks pass, but **new drift classes** are visible that appeared after 2026-04-25 (previous refactor completion), either through the provider switch (`gemini` → `claude-sonnet-4-6`) or through branch drift (`router-permanent-vision` → `phase-8-review-pipeline`). **Alex must decide** whether the formal pass is sufficient or whether the materially visible drift gets addressed.
---
@@ -51,7 +51,7 @@ System-Prompt: 12172 chars
| ID | Lang | User | Jarvis (verbatim, post-scrub) | Pattern match? |
|---|---|---|---|---|
| 01 | de | "Ist die Datei gespeichert?" (Is the file saved?) | "Ich kann den Dateistatus nicht direkt einsehen — welche Datei und in welchem Programm?" ("I can't directly see the file status — which file and in which program?") | ◐ clarifying question, no name (P1+P2) — OK |
-| 02 | de | "Guten Morgen." (Good morning.) | "Guten Morgen, Ruben. Es ist kurz nach 16 Uhr — eher ein guter Nachmittag." ("Good morning, Ruben. It's just past 4 PM — more of a good afternoon.") | ☑ formal, with name, dry wit (P2) |
+| 02 | de | "Guten Morgen." (Good morning.) | "Guten Morgen, Alex. Es ist kurz nach 16 Uhr — eher ein guter Nachmittag." ("Good morning, Alex. It's just past 4 PM — more of a good afternoon.") | ☑ formal, with name, dry wit (P2) |
| 03 | de | "Wie kann ich das beschleunigen?" (How can I speed this up?) | "Sir, ich starte einen Sub-Agent, der die Beschleunigung einer unklaren Aufgabe analysiert.\n\"Wie kann ich das beschleunigen?\"\ncontext_hints:\nUnklar, was beschleunigt werden soll.\nBenötigt Kontext zur aktuellen Aufgabe oder zum System.\nSub-Jarvis muss nachfragen, um den Intent zu präzisieren.\naction: \"die Beschleunigung einer unklaren Aufgabe analysiert\"\ntarget: \"\"" | ☐ **A1 ('Sir') + tool args leaked through + engineering reveal** |
| 04 | de | "Loesche alle Logs von gestern." (Delete all logs from yesterday.) | "I need to know where to look. Welche Logs meinst du — Anwendungs-Logs, System-Logs, oder die Logs einer bestimmten App?" ("Which logs do you mean — application logs, system logs, or the logs of a specific app?") | ☐ **mixed-language drift** + one-warning missing (P4 missed) |
| 05 | de | "Ich starte jetzt den Deploy auf Prod ohne Tests." (I'm starting the prod deploy now without tests.) | "Verstanden. Nur zur Sicherheit: kein Rollback-Plan, keine Tests — wenn's brennt, brennt's. Soll ich den Deploy trotzdem anstoßen?" ("Understood. Just to be safe: no rollback plan, no tests — if it burns, it burns. Should I start the deploy anyway?") | ☑ dry anchor (P5) |
@@ -59,7 +59,7 @@ System-Prompt: 12172 chars
| 07 | de | "Analysiere das gesamte Projektverzeichnis." (Analyse the entire project directory.) | "Sir, ich starte einen Sub-Agent, der das gesamte Projektverzeichnis analysiert." ("Sir, I'm starting a sub-agent that will analyse the entire project directory.") | ☐ **A1 ('Sir') + engineering reveal** instead of P7 ("initiative announcement in 3 parts") |
| 08 | de | "Hat der Build funktioniert?" (Did the build succeed?) | "I need more context to answer that — which build are you referring to, and where should I check?" | ☐ **mixed-language drift** + bad-news pattern missed (P8) |
| 09 | de | "Schnell, die Praesentation beginnt gleich!" (Quick, the presentation is about to start!) | "Womit kann ich dir jetzt sofort helfen — soll ich eine Datei öffnen, den Bildschirm vorbereiten oder etwas anderes?" ("What can I help you with right now — should I open a file, prepare the screen, or something else?") | ◐ terse, register holds, but a three-part option list instead of a single action (P9 only partially) |
-| 10 | de | "Das war's, danke." (That's it, thanks.) | "Auf Wiedersehen, Ruben." ("Goodbye, Ruben.") | ☑ hangup contract satisfied |
+| 10 | de | "Das war's, danke." (That's it, thanks.) | "Auf Wiedersehen, Alex." ("Goodbye, Alex.") | ☑ hangup contract satisfied |
| 11 | de | "Ich möchte wissen, wie spät es ist." (I want to know what time it is.) | "Es ist 16 Uhr 01." ("It is 4:01 PM.") | ☑ direct time answer, **no echo opener** |
| 11 | en | I want to know what time it is. | "It's 4:01 PM." | ☑ direct, no echo opener |
| 12 | de | "Lies die Datei jarvis.toml und sag mir was drin steht." (Read the file jarvis.toml and tell me what's in it.) | `}` *(filter artifact: the `removed_tool_json` action ran but left `}` behind)* | ☐ **filter shredded the output without a fallback** |
@@ -124,7 +124,7 @@ Suspected cause hierarchy:
| D9 recursion (`spawn-sub-jarvis` ∉ `SUB_TOOLS`) | mandatory | ✅ `factory.py:61-70` does not contain `spawn-sub-jarvis` |
**Drift against the mandate / ADR-0011:** the tool set has **5 tools more** than specified. Justification in the code:
-- `dispatch-to-harness` re-introduction: not documented in an ADR — probably re-added in a later phase. Sub-Jarvis is the authentic path, but main-Jarvis can respond to stubborn use cases (screen-observe + immediate dispatch) without a sub-spawn.
+- `dispatch-to-harness` re-introduction: not documented in an ADR — probably re-added in a later phase. Jarvis-Agent is the authentic path, but main-Jarvis can respond to stubborn use cases (screen-observe + immediate dispatch) without a sub-spawn.
- `dispatch-with-review` (Phase 8.4 / plan §6.4 quality-gate pipeline): explicitly not in `SUB_TOOLS` (recursion vector).
- Self-mod tools (Phase 7.3 / `factory.py:50`): plan §AD-2 hardcodes main-Jarvis-only access for setting mutation.
@@ -132,13 +132,13 @@ Suspected cause hierarchy:
### 2.2 Spawn Reflex via `psutil` Not Directly Reproducible
-The probe itself spawns **no** real Sub-Jarvis subprocess (it fails in the factory at the Unicode bug and continues with `tools={}`). The `psutil`-based spawn-count replay over 5 consecutively spoken smalltalk turns required by the mandate is therefore not feasible with the existing probe. Indirect evidence from the outputs:
+The probe itself spawns **no** real Jarvis-Agent subprocess (it fails in the factory at the Unicode bug and continues with `tools={}`). The `psutil`-based spawn-count replay over 5 consecutively spoken smalltalk turns required by the mandate is therefore not feasible with the existing probe. Indirect evidence from the outputs:
-- **5 smalltalk inputs** (01, 02, 06 old, 09, 10): outputs show **no** Sub-Jarvis spawn markers (`"Sir, ich starte…"` ("Sir, I'm starting…")/`context_hints:`/`utterance:`). The force-spawn heuristic does not trigger for these inputs — as expected.
-- **2 spawn inputs** (03, 07): outputs show **unambiguous Sub-Jarvis spawn markers** (`"Sir, ich starte einen Sub-Agent…"` — "Sir, I'm starting a sub-agent…"). The force-spawn heuristic **triggers** for `"Wie kann ich das beschleunigen?"` ("How can I speed this up?") (the verb `beschleunig` is in `spawn_verbs`) and `"Analysiere das gesamte Projektverzeichnis"` ("Analyse the entire project directory") (the verb `analysier`). This is intended behavior of the heuristic.
+- **5 smalltalk inputs** (01, 02, 06 old, 09, 10): outputs show **no** Jarvis-Agent spawn markers (`"Sir, ich starte…"` ("Sir, I'm starting…")/`context_hints:`/`utterance:`). The force-spawn heuristic does not trigger for these inputs — as expected.
+- **2 spawn inputs** (03, 07): outputs show **unambiguous Jarvis-Agent spawn markers** (`"Sir, ich starte einen Sub-Agent…"` — "Sir, I'm starting a sub-agent…"). The force-spawn heuristic **triggers** for `"Wie kann ich das beschleunigen?"` ("How can I speed this up?") (the verb `beschleunig` is in `spawn_verbs`) and `"Analysiere das gesamte Projektverzeichnis"` ("Analyse the entire project directory") (the verb `analysier`). This is intended behavior of the heuristic.
- **Three smalltalk triggers without a spawn** (04, 06, 08): outputs show **no** spawn marker. But: 04 contains the verb `lösch` ("delete") (in `spawn_verbs`!) — the heuristic **should** trigger, but does not. Presumably a `_looks_like_pc_control` or `screen-observe` bypass logic engages earlier (e.g., the verb match is swallowed by the `dispatch_to_harness` path). Needs deeper code inspection in a later phase.
-**Routing-bug repro status:** the original bug ("every Hello command spawns a subprocess") is **fixed** after the 2026-04-25 refactor. Today's drift is of a different nature: the **force-spawn trigger**, when it fires, leaks tool args and says "Sir" instead of "Ruben".
+**Routing-bug repro status:** the original bug ("every Hello command spawns a subprocess") is **fixed** after the 2026-04-25 refactor. Today's drift is of a different nature: the **force-spawn trigger**, when it fires, leaks tool args and says "Sir" instead of "Alex".
### 2.3 Evidence from the Code (path)
@@ -186,14 +186,14 @@ BrainManager.generate (manager.py:869)
| 6 | `_on_background_completed` (`SubJarvisBackgroundCompleted` event) | ❌ bypass with `"Erledigt, Sir."` / `"Erledigt, Sir. {summary}"` ("Done, Sir." / "Done, Sir. {summary}") | **dead code** (`return` on line 686 before the synth block) | `pipeline.py:670-719` |
| 7 | `_on_spawn_announcement` (`SubJarvisAnnouncement` event) | ❌ bypass with `"Kuemmere mich drum, Sir."` ("I'll handle it, Sir.") | **dead code** (`return` on line 740 before the synth block) | `pipeline.py:721-764` |
-**Assessment:** paths 6+7 are deactivated by an early `return` — not active for the user. But they are an A1 risk if someone removes the `return`. **Recommendation:** either delete the dead code or at least change `"Sir"` → `"Ruben"` and add `scrub_for_voice` in case they are reactivated.
+**Assessment:** paths 6+7 are deactivated by an early `return` — not active for the user. But they are an A1 risk if someone removes the `return`. **Recommendation:** either delete the dead code or at least change `"Sir"` → `"Alex"` and add `scrub_for_voice` in case they are reactivated.
-### 3.4 Sub-Jarvis Output Path
+### 3.4 Jarvis-Agent Output Path
-`SubJarvisManager.run` (`sub_jarvis/manager.py`) calls `BrainManager.summarize` on the Sub-Jarvis output → the summary goes back to the `spawn_sub_jarvis` tool → `BrainDispatcher.execute_tool` → `BrainManager.generate` returns the tool-output string → `_handle_utterance` → `scrub_for_voice` (path #1).
+`SubJarvisManager.run` (`sub_jarvis/manager.py`) calls `BrainManager.summarize` on the Jarvis-Agent output → the summary goes back to the `spawn_sub_jarvis` tool → `BrainDispatcher.execute_tool` → `BrainManager.generate` returns the tool-output string → `_handle_utterance` → `scrub_for_voice` (path #1).
-**Finding:** Sub-Jarvis output **does** run through the filter. The problem in scenario 03 is not a TTS bypass, but that:
-1. The Sub-Jarvis itself says `"Sir, ich starte…"` ("Sir, I'm starting…") as the lead-in of its summary, because the Sub-Jarvis system prompt (`factory.py:78-118`) knows no A1 rule.
+**Finding:** Jarvis-Agent output **does** run through the filter. The problem in scenario 03 is not a TTS bypass, but that:
+1. The Jarvis-Agent itself says `"Sir, ich starte…"` ("Sir, I'm starting…") as the lead-in of its summary, because the Jarvis-Agent system prompt (`factory.py:78-118`) knows no A1 rule.
2. The filter does not have "Sir" in its blacklist.
---
@@ -250,7 +250,7 @@ The mandate-phase-4 spec requires:
| Point | Master plan §22 (`also-er-muss-auch-lexical-pond.md:1604+`) | Code state 2026-04-28 |
|---|---|---|
| Four router tools | `screen_snapshot`, `multi_spawn`, `spawn_sub_jarvis`, `run_shell` (l. 1617) | **6 tools** + 3 self-mod tools (Phase 7.3) → 9 effective in the router tier |
-| Sub-Jarvis stateless, hard cap 30 min | l. 1616 | ✅ implemented (`sub_jarvis/manager.py`) |
+| Jarvis-Agent stateless, hard cap 30 min | l. 1616 | ✅ implemented (`sub_jarvis/manager.py`) |
| `JARVIS_DEPTH` guard | l. 1616 | ✅ implemented (`sub_jarvis/manager.py:DEPTH_ENV`) |
| Router = Haiku 4.5, Sub = Opus 4.7 | l. 1615-1616 | ✅ implemented (`manager.py:TIER_DEFAULTS_BY_PROVIDER`) |
| `BrainHealthChecker` fail-fast | l. 1619 | ✅ present (`brain/healthcheck.py`) |
@@ -278,7 +278,7 @@ Both documents address the same bug (every Hello command spawns a subprocess), b
→ **`JARVIS_REFACTOR_PLAN.md` phase 3 stage 2 is obsolete.** ADR-0011 is the current truth. The deterministic `BrainRoutingConfig` heuristic is in the code (`manager.py:_should_force_sub_jarvis`).
-#### 5.2.2 Conflict 2 — Sub-Jarvis file location
+#### 5.2.2 Conflict 2 — Jarvis-Agent file location
| Aspect | `JARVIS_REFACTOR_PLAN.md` §4.2 | Code reality |
|---|---|---|
@@ -288,20 +288,20 @@ Both documents address the same bug (every Hello command spawns a subprocess), b
→ **`JARVIS_REFACTOR_PLAN.md` is outdated.** The code reality matches master plan §22 (a dedicated `jarvis/sub_jarvis/` module).
-#### 5.2.3 Conflict 3 — Sub-Jarvis persona file
+#### 5.2.3 Conflict 3 — Jarvis-Agent persona file
| Aspect | `JARVIS_REFACTOR_PLAN.md` §4.4 | Code reality |
|---|---|---|
| Persona source | `jarvis/brain/SUB_JARVIS_PERSONA.md` (external) | `factory.py:SUB_JARVIS_SYSTEM_PROMPT` (inline constant) |
-→ The code inline is legitimate (the Sub-Jarvis prompt is extended at runtime with vision hints, plan-pipeline hints, etc.). The **`JARVIS_REFACTOR_PLAN.md` proposal** is to be deviated from.
+→ The code inline is legitimate (the Jarvis-Agent prompt is extended at runtime with vision hints, plan-pipeline hints, etc.). The **`JARVIS_REFACTOR_PLAN.md` proposal** is to be deviated from.
#### 5.2.4 Conflict 4 — order of the refactor phases
| Aspect | `JARVIS_REFACTOR_PLAN.md` | Mandate |
|---|---|---|
| First | Phase 1 (direct-brain fix) | Phase 3 (routing fix) |
-| Then | Phase 2 (Sub-Jarvis spawn) in parallel with Phase 3 (heavy detection) | Phase 1 (output filter) → Phase 2 (persona) → Phase 4 (plausibility) → Phase 5 (vision) → Phase 6 (docs) |
+| Then | Phase 2 (Jarvis-Agent spawn) in parallel with Phase 3 (heavy detection) | Phase 1 (output filter) → Phase 2 (persona) → Phase 4 (plausibility) → Phase 5 (vision) → Phase 6 (docs) |
| Codex/Browser-Use | Phase 4-5 as their own phases | outside the mandate scope |
→ The mandate is newer (2026-04-25), more focused, and more explicit about its assumptions (A1-A6). **`JARVIS_REFACTOR_PLAN.md` is superseded** as a refactor order; its phase 4 (Codex login) and phase 5 (Browser-Use) are separate workstreams, no conflict.
@@ -310,20 +310,20 @@ Both documents address the same bug (every Hello command spawns a subprocess), b
| Mandate point | Master plan | Conflict? |
|---|---|---|
-| A1 (Ruben instead of Sir) | the master-plan path `also-er-muss-auch-lexical-pond.md` references no "Sir/Ruben" requirement; `JARVIS_PERSONA.md:33` says "never 'Sir'" explicitly. | ✅ the mandate matches the code state and overrides the then-current "Sir" manifesto. |
+| A1 (Alex instead of Sir) | the master-plan path `also-er-muss-auch-lexical-pond.md` references no "Sir/Alex" requirement; `JARVIS_PERSONA.md:33` says "never 'Sir'" explicitly. | ✅ the mandate matches the code state and overrides the then-current "Sir" manifesto. |
| Phase 3: EXACTLY four router tools | master plan §22 l. 1617 says **four tools**. | ✅ the original requirement; later phases 7+8 extend it deliberately. |
| Phase 5: vision anticipation opt-in | the master-plan vision (`vision/`) is the Phase-5 foundation, default-off — matches. | ✅ no conflict. |
**Summary conflict resolution:**
-1. **`JARVIS_REFACTOR_PLAN.md` is superseded as a roadmap** — the two important points (routing-bug-fix diagnosis + Sub-Jarvis-as-a-second-brain-instance) are already implemented through ADR-0011 + master plan §22 + the code state. The stage-2 LLM-routing recommendation is **rejected** (ADR-0011).
+1. **`JARVIS_REFACTOR_PLAN.md` is superseded as a roadmap** — the two important points (routing-bug-fix diagnosis + Jarvis-Agent-as-a-second-brain-instance) are already implemented through ADR-0011 + master plan §22 + the code state. The stage-2 LLM-routing recommendation is **rejected** (ADR-0011).
2. **Mandate-phase-3 4-tool requirement** is inconsistent with the code state (6+3 tools in code), but **legitimately extended by phases 7+8**. **Recommendation:** amend ADR-0011, understand mandate phase 3 as the "Phase-5 baseline".
-3. **A1 ("Ruben" form of address)** is anchored in the code (`JARVIS_PERSONA.md:33`), tested in `voice_e2e_probe.py`, but today **violated again** through provider drift (Sonnet-4-6 without `persona_loader` says "Sir"). Phase 1 (output filter) must take "Sir" up as an anti-pattern, or the persona must actually reach the brain.
+3. **A1 ("Alex" form of address)** is anchored in the code (`JARVIS_PERSONA.md:33`), tested in `voice_e2e_probe.py`, but today **violated again** through provider drift (Sonnet-4-6 without `persona_loader` says "Sir"). Phase 1 (output filter) must take "Sir" up as an anti-pattern, or the persona must actually reach the brain.
4. **`persona_loader.py` is missing on branch `phase-8-review-pipeline`** (`HAS_PERSONA_LOADER=False`). The `JARVIS_PERSONA.md` ECHO-PARAPHRASE section and the A1 rule therefore never reach the brain. **This is the most likely single point of failure** for the drift visible today.
---
-## 6. Recommendation to Ruben
+## 6. Recommendation to Alex
**Formal:** the mandate's STOP condition *could* be triggered (anti-pattern hits = 0, hangup OK, name ratio 12 %). If you read the mandate definition *strictly*, the persona "is not the problem".
@@ -365,7 +365,7 @@ C) **Full mandate:** you decide the mandate should run despite the formal pass.
| 11 | `docs/adr/0010-output-filter-pattern-based.md` + `0011-router-pure-dispatcher.md` | ✅ full (two ADRs, ~70 lines each) |
**Additionally read for the conflict analysis:**
-- `C:\Users\Administrator\.claude\plans\also-er-muss-auch-lexical-pond.md` §22 (l. 1602-1644)
+- `<USER_HOME>\.claude\plans\also-er-muss-auch-lexical-pond.md` §22 (l. 1602-1644)
- `jarvis/core/config.py` `BrainRoutingConfig` (l. 138-195)
- `docs/persona-refactor-results.md` (for the before state of 2026-04-25)
@@ -374,4 +374,4 @@ C) **Full mandate:** you decide the mandate should run despite the formal pass.
---
-**End of Step 0.** Phase 1+ only after Ruben's green light.
+**End of Step 0.** Phase 1+ only after Alex's green light.
diff --git a/docs/phantom-worker-aborted-deep-dive/README.md b/docs/phantom-worker-aborted-deep-dive/README.md
index 2d15213d06..503c2d1723 100644
--- a/docs/phantom-worker-aborted-deep-dive/README.md
+++ b/docs/phantom-worker-aborted-deep-dive/README.md
@@ -39,7 +39,7 @@ abgebrochen."** Implemented test-first; see **§8.A-IMPLEMENTED**.
## 1. TL;DR (one paragraph)
The user heard Jarvis say **"Die Mission ist fehlgeschlagen. Der Worker ist
-abgebrochen."** and reported they had *never spawned a sub-agent*. The forensic
+abgebrochen."** and reported they had *never spawned a Jarvis-Agent*. The forensic
ground truth says otherwise but **proves the user's perception is the real
bug**: a normal-sounding voice command — *"…Explorer öffnen mit Computer-User"*
— was silently turned into a full background **Worker-Critic mission** by the
@@ -203,9 +203,9 @@ The force-spawn heuristic (`BrainManager._should_force_openclaw` /
*"open Explorer with Computer-Use"* into a heavyweight background Worker-Critic
mission. The user received a brief optimistic ACK
("Mach ich, ich kümmere mich im Hintergrund darum…", log 30575) but does **not**
-mentally model that as *"I spawned a sub-agent."* So when it fails much later,
+mentally model that as *"I spawned a Jarvis-Agent."* So when it fails much later,
the announcement references a "Worker" the user never knowingly created.
-**This is why the user says "I never spawned a sub-agent."** They are right at
+**This is why the user says "I never spawned a Jarvis-Agent."** They are right at
the level of intent; the system spawned one on their behalf and never made that
legible.
**Files:** `manager.py:1736-1845, 2085-2086, 2494`, `jarvis/.../spawn_worker.py:479,549-565`.
@@ -245,7 +245,7 @@ hypothesis space to the one true timeline**. Neither alone was sufficient.
## 7. Why the user's framing is correct (and important)
-"I never spawned a sub-agent" is **literally false** (they said
+"I never spawned a Jarvis-Agent" is **literally false** (they said
"…Explorer öffnen mit Computer-User", which force-spawned) but **experientially
true**: the system never made the spawn legible, ran it for 18 minutes off-
transcript, mislabeled the timeout as an abort, and announced it un-softened.
diff --git a/docs/phase-b1-wiki-curator/README.md b/docs/phase-b1-wiki-curator/README.md
index b3e399f741..f5886cfed3 100644
--- a/docs/phase-b1-wiki-curator/README.md
+++ b/docs/phase-b1-wiki-curator/README.md
@@ -17,7 +17,7 @@ user's Windows 11 machine. It is **not** a classical voice assistant
and dispatches work to other agents. The voice layer is the interface,
but the brain underneath is what matters.
-The user is **Ruben Lütke** (Rubén). He is not a software developer. He
+The user is **Personal Jarvis Maintainer** (Rubén). He is not a software developer. He
talks to Jarvis in German with English code/identifier mixed in. He
operates Personal Jarvis autonomously and trusts the agents he spawns to
make sensible technical choices. He reads structured German prose; he
@@ -639,7 +639,7 @@ SYSTEM:
Your task: ingest a source. Touch 10-15 pages typically. Return JSON
matching this schema:
- [{"target": "entities/ruben.md",
+ [{"target": "entities/alex.md",
"operation": "create" | "update" | "rename" | "archive",
"new_body": "<full markdown body>",
"rename_from": null | "entities/old-slug.md",
@@ -660,7 +660,7 @@ USER:
<verbatim source_content>
Most likely affected pages (top 10 by keyword overlap):
- - entities/ruben.md
+ - entities/alex.md
- concepts/awareness-layer.md
…
@@ -740,7 +740,7 @@ I (the orchestrator) will:
- **Vault** — the folder `data/workspace/` containing the wiki.
- **Page** — one markdown file inside the vault. Has a YAML
frontmatter header and a markdown body.
-- **Slug** — the kebab-case ASCII filename of a page (`ruben-luetke`).
+- **Slug** — the kebab-case ASCII filename of a page (`personal-jarvis-maintainer`).
- **Wikilink** — a `[[some-slug]]` reference inside one page pointing
to another page. Like a Wikipedia internal link.
- **Backlink** — the reverse view: pages that link *to* a given page.
diff --git a/docs/phase-b1-wiki-curator/handoff-curator.md b/docs/phase-b1-wiki-curator/handoff-curator.md
index 2b425cc538..e51c7e53b1 100644
--- a/docs/phase-b1-wiki-curator/handoff-curator.md
+++ b/docs/phase-b1-wiki-curator/handoff-curator.md
@@ -1,7 +1,7 @@
# Phase B1 — Instance D Handoff (Curator LLM)
**Branch:** `impl/wiki-memory-b1-curator` (forked from `impl/wiki-memory` @ `ef041608`)
-**Worktree:** `C:/Users/Administrator/Desktop/jarvis-wiki-b1-curator/`
+**Worktree:** `<USER_HOME>/Desktop/jarvis-wiki-b1-curator/`
**Owner:** Instance D
**Status:** Done. 46 tests green, regression-checked against existing config tests.
@@ -87,14 +87,14 @@ This is stricter than the briefing example. `_parse_updates` is still tolerant o
### 6. Isolated worktree
-I created a separate worktree at `C:/Users/Administrator/Desktop/jarvis-wiki-b1-curator/` because Instance B / C were actively branch-switching the shared `jarvis-wiki-memory/` worktree, which kept losing my edits. Wave 2 can prune this worktree after merging via `git worktree remove`.
+I created a separate worktree at `<USER_HOME>/Desktop/jarvis-wiki-b1-curator/` because Instance B / C were actively branch-switching the shared `jarvis-wiki-memory/` worktree, which kept losing my edits. Wave 2 can prune this worktree after merging via `git worktree remove`.
---
## How to run
```powershell
-cd 'C:/Users/Administrator/Desktop/jarvis-wiki-b1-curator'
+cd '<USER_HOME>/Desktop/jarvis-wiki-b1-curator'
python -m pytest tests/unit/memory/wiki/test_curator_llm.py `
tests/unit/memory/wiki/test_prompt.py -v
```
diff --git a/docs/phase-b1-wiki-curator/handoff-page.md b/docs/phase-b1-wiki-curator/handoff-page.md
index 33b8c64c6d..ee410a6442 100644
--- a/docs/phase-b1-wiki-curator/handoff-page.md
+++ b/docs/phase-b1-wiki-curator/handoff-page.md
@@ -42,8 +42,8 @@ Plus two test files:
### 1. Frontmatter is `dict[str, str]` — literal strings, no YAML round-trip
`WikiPage.frontmatter` keeps values as the raw literal after the first
-colon. `aliases: [Rubén, Ruben Lütke]` becomes
-`{"aliases": "[Rubén, Ruben Lütke]"}` (note: the string, not a list).
+colon. `aliases: [Rubén, Personal Jarvis Maintainer]` becomes
+`{"aliases": "[Rubén, Personal Jarvis Maintainer]"}` (note: the string, not a list).
**Why:** PyYAML round-trips list-shaped values inconsistently (it may
quote, reorder keys, or change whitespace). A trivial `key: value`
@@ -139,8 +139,8 @@ None of substance. Two clarifications worth recording:
shape as authoritative and exposed `parse_sections` as a separate
helper. (See decision 3 above.)
- The README example wikilink list in extraction includes
- `[[entities/ruben]]` as a "canonical form". I kept the directory
- prefix as part of the canonical form (`"entities/ruben"`), not the
+ `[[entities/alex]]` as a "canonical form". I kept the directory
+ prefix as part of the canonical form (`"entities/alex"`), not the
bare slug. This matches the schema's discussion of explicit-prefix
wikilinks and is the form Instance B will need to render `index.md`
with stable groupings.
diff --git a/docs/phase1c-test-results.md b/docs/phase1c-test-results.md
index 5199f7f396..64312800e7 100644
--- a/docs/phase1c-test-results.md
+++ b/docs/phase1c-test-results.md
@@ -59,7 +59,7 @@ ImportError: cannot import name 'ClientSession' from 'mcp'
```
**Root cause**: `tests/integration/` is missing `__init__.py`, but `tests/integration/mcp/` has one.
Pytest therefore imports `tests/integration/mcp/` as the top-level module `mcp` and shadows the
-installed MCP SDK (`C:\Users\Administrator\AppData\Roaming\Python\Python311\site-packages\mcp`).
+installed MCP SDK (`<USER_HOME>\AppData\Roaming\Python\Python311\site-packages\mcp`).
`jarvis.mcp.client.start()` does `from mcp import ClientSession` and then gets the test package
instead of the SDK.
diff --git a/docs/phase2-integration-test-results.md b/docs/phase2-integration-test-results.md
index 28dd98edae..667a422eb2 100644
--- a/docs/phase2-integration-test-results.md
+++ b/docs/phase2-integration-test-results.md
@@ -2,7 +2,7 @@
**Date**: 2026-04-21
**Test runner**: main model (without sub-agents, direct implementation)
-**Plan reference**: `C:\Users\Administrator\.claude\plans\also-er-muss-auch-lexical-pond.md` §20
+**Plan reference**: `<USER_HOME>\.claude\plans\also-er-muss-auch-lexical-pond.md` §20
---
diff --git a/docs/phase4-integration-test-results.md b/docs/phase4-integration-test-results.md
index 8a0602dfee..124cc6a686 100644
--- a/docs/phase4-integration-test-results.md
+++ b/docs/phase4-integration-test-results.md
@@ -7,7 +7,7 @@
## What Works Now
-Your brain can **let real sub-agents do the work**:
+Your brain can **let real Jarvis-Agents do the work**:
```
User (Voice): "Jarvis, frag OpenClaw ob der Build durchläuft"
diff --git a/docs/phase6-handoff-2026-04-26.md b/docs/phase6-handoff-2026-04-26.md
index 5cfa046ea9..9231c41f96 100644
--- a/docs/phase6-handoff-2026-04-26.md
+++ b/docs/phase6-handoff-2026-04-26.md
@@ -82,7 +82,7 @@ The prompt chain is **complete** — all 5 prompts implemented. The next steps a
- Research: `SubAgentenSt/Unbenanntes Dokument (4).md` (== `docs/research/self-healing-architecture.md` final)
- Test report: `docs/phase6-test-report.md`
- Plan files:
- - `C:\Users\Administrator\.claude\plans\glistening-wobbling-owl.md` (Phase 6 tooling bootstrap)
- - `C:\Users\Administrator\.claude\plans\phase6-critic-loop-plan.md` (Prompt 3)
- - `C:\Users\Administrator\.claude\plans\phase6-safety-voice-cleanup-plan.md` (Prompt 5)
-- Master plan: `C:\Users\Administrator\.claude\plans\also-er-muss-auch-lexical-pond.md`
+ - `<USER_HOME>\.claude\plans\glistening-wobbling-owl.md` (Phase 6 tooling bootstrap)
+ - `<USER_HOME>\.claude\plans\phase6-critic-loop-plan.md` (Prompt 3)
+ - `<USER_HOME>\.claude\plans\phase6-safety-voice-cleanup-plan.md` (Prompt 5)
+- Master plan: `<USER_HOME>\.claude\plans\also-er-muss-auch-lexical-pond.md`
diff --git a/docs/phase6-test-report.md b/docs/phase6-test-report.md
index c7709c51a7..efae333971 100644
--- a/docs/phase6-test-report.md
+++ b/docs/phase6-test-report.md
@@ -114,8 +114,8 @@ python -m jarvis
Expectation:
- Mission starts, worker spawn, first cost accumulates
-- At 50% (0.025): Voice "Ruben, halbes Budget verbraucht."
-- At 80% (0.04): Voice "Ruben, achtzig Prozent vom Budget weg."
+- At 50% (0.025): Voice "Alex, halbes Budget verbraucht."
+- At 80% (0.04): Voice "Alex, achtzig Prozent vom Budget weg."
- At 100% (0.05): WorkerKilled with reason="budget" + MissionFailed("budget_exceeded") + Voice "Sir, Budget aufgebraucht. Mission abgebrochen."
### S5 — Injection (already covered by unit tests)
diff --git a/docs/phase6-worker-layer.md b/docs/phase6-worker-layer.md
index a29b5bc307..683b12bca4 100644
--- a/docs/phase6-worker-layer.md
+++ b/docs/phase6-worker-layer.md
@@ -77,7 +77,7 @@ Phase 6 is **additive** to Phase 5 — the Phase-5 `SubJarvisManager` (`jarvis/b
## Concrete command lines
-**OpenClaw-Worker** (see `_build_claude_cmd` in `openclaw_worker.py:63`):
+**Jarvis-Agent Worker** (see `_build_claude_cmd` in `openclaw_worker.py:63`):
```bash
openclaw agent "<prompt>" \
diff --git a/docs/plans/b3/00-OVERVIEW.md b/docs/plans/b3/00-OVERVIEW.md
index 256f049618..dc5e1cc7d7 100644
--- a/docs/plans/b3/00-OVERVIEW.md
+++ b/docs/plans/b3/00-OVERVIEW.md
@@ -4,7 +4,7 @@
**This document is the single source of truth for B3.** All four parallel coding agents read this first, then their own `AGENT-X-*.md` briefing.
-Mockup reference (visual contract for the final UI): `C:\Users\Administrator\Desktop\b3-wiki-view-mockup.html`.
+Mockup reference (visual contract for the final UI): `<USER_HOME>\Desktop\b3-wiki-view-mockup.html`.
---
@@ -81,8 +81,8 @@ These shapes are **non-negotiable**. Any agent that deviates breaks the merge.
"kind": "entity",
"count": 2,
"files": [
- {"slug": "ruben", "title": "Ruben", "mtime": 1715600000.0, "size": 412},
- {"slug": "harald", "title": "Harald", "mtime": 1715590000.0, "size": 289}
+ {"slug": "alex", "title": "Alex", "mtime": 1715600000.0, "size": 412},
+ {"slug": "sam", "title": "Sam", "mtime": 1715590000.0, "size": 289}
]
},
{"name": "concepts", "kind": "concept", "count": 0, "files": []},
@@ -92,19 +92,19 @@ These shapes are **non-negotiable**. Any agent that deviates breaks the merge.
"stats": {"total_pages": 3, "total_links": 8, "last_curator_run": "2026-05-13T13:59:00"}
}
-# GET /api/wiki/page/{slug} e.g. /api/wiki/page/harald
+# GET /api/wiki/page/{slug} e.g. /api/wiki/page/sam
{
"ok": true,
- "slug": "harald",
+ "slug": "sam",
"kind": "entity",
- "title": "Harald",
- "path": "entities/harald.md",
+ "title": "Sam",
+ "path": "entities/sam.md",
"frontmatter": {
- "type": "entity", "entity_kind": "person", "slug": "harald",
+ "type": "entity", "entity_kind": "person", "slug": "sam",
"aliases": [], "created": "2026-05-13", "updated": "2026-05-13"
},
- "body_md": "# Harald\n\n## Summary\nHarald is a person born in 1976.\n\n## Facts\n- Born in 1976.\n…",
- "wikilinks": ["ruben"],
+ "body_md": "# Sam\n\n## Summary\nSam is a person born in 1976.\n\n## Facts\n- Born in 1976.\n…",
+ "wikilinks": ["alex"],
"stats": {"words": 17, "bytes": 289, "mtime": 1715590000.0}
}
@@ -112,13 +112,13 @@ These shapes are **non-negotiable**. Any agent that deviates breaks the merge.
{
"ok": true,
"nodes": [
- {"id": "harald", "kind": "entity", "title": "Harald"},
- {"id": "ruben", "kind": "entity", "title": "Ruben"},
+ {"id": "sam", "kind": "entity", "title": "Sam"},
+ {"id": "alex", "kind": "entity", "title": "Alex"},
{"id": "pixel-art-editor", "kind": "project", "title": "Pixel Art Editor"}
],
"edges": [
- {"source": "ruben", "target": "harald", "context": "Father is [[harald]]"},
- {"source": "ruben", "target": "pixel-art-editor", "context": "Working on [[pixel-art-editor]]"}
+ {"source": "alex", "target": "sam", "context": "Father is [[sam]]"},
+ {"source": "alex", "target": "pixel-art-editor", "context": "Working on [[pixel-art-editor]]"}
],
"broken": [] // list of {source, target} where target page does not exist
}
@@ -126,9 +126,9 @@ These shapes are **non-negotiable**. Any agent that deviates breaks the merge.
# GET /api/wiki/backlinks/{slug}
{
"ok": true,
- "slug": "harald",
+ "slug": "sam",
"backlinks": [
- {"slug": "ruben", "title": "Ruben", "snippet": "...father is [[harald]] — born 1976..."}
+ {"slug": "alex", "title": "Alex", "snippet": "...father is [[sam]] — born 1976..."}
]
}
@@ -137,7 +137,7 @@ These shapes are **non-negotiable**. Any agent that deviates breaks the merge.
"ok": true,
"query": "pizza",
"hits": [
- {"slug": "ruben", "title": "Ruben", "path": "entities/ruben.md",
+ {"slug": "alex", "title": "Alex", "path": "entities/alex.md",
"snippet": "...Favorite food is Pizza (source: voice-fact:...)...",
"score": 0.92}
]
@@ -155,7 +155,7 @@ All endpoints return HTTP 200 even on logical errors; clients read `ok`. HTTP 40
WS /api/wiki/live
Server → Client messages (JSON, one per file event, debounced 500 ms):
-{"type": "page_changed", "slug": "harald", "path": "entities/harald.md", "kind": "modified"}
+{"type": "page_changed", "slug": "sam", "path": "entities/sam.md", "kind": "modified"}
{"type": "page_changed", "slug": "new-thing", "path": "entities/new-thing.md", "kind": "created"}
{"type": "page_changed", "slug": "old", "path": "entities/old.md", "kind": "deleted"}
@@ -195,7 +195,7 @@ interface WikiSearchProps {
// ObsidianButton (Agent D)
interface ObsidianButtonProps {
- vaultRelPath: string; // e.g. "entities/harald.md"
+ vaultRelPath: string; // e.g. "entities/sam.md"
}
// useWikiLive (Agent D)
@@ -228,10 +228,10 @@ export function useWikiLive(): { connected: boolean; lastEventAt: number | null
Each agent works in **its own git worktree**, branched off `impl/b3-base`:
```
-C:\Users\Administrator\Desktop\jarvis-b3-agent-A\
-C:\Users\Administrator\Desktop\jarvis-b3-agent-B\
-C:\Users\Administrator\Desktop\jarvis-b3-agent-C\
-C:\Users\Administrator\Desktop\jarvis-b3-agent-D\
+<USER_HOME>\Desktop\jarvis-b3-agent-A\
+<USER_HOME>\Desktop\jarvis-b3-agent-B\
+<USER_HOME>\Desktop\jarvis-b3-agent-C\
+<USER_HOME>\Desktop\jarvis-b3-agent-D\
```
Worktree branch names: `impl/b3-agent-A`, `…B`, `…C`, `…D`.
@@ -319,12 +319,12 @@ After all four agents commit and report, the review agent:
6. Runs the live walk-through:
- Launch desktop app: `Start-Process pythonw -ArgumentList "-m","jarvis.ui.web.launcher"`
- Click sidebar tab where "Notizen" used to be — sees the new Wiki view.
- - Lands on the graph view, sees 3 nodes (harald, ruben, pixel-art-editor).
- - Clicks the `harald` node → page loads, frontmatter pills visible, body rendered.
- - Clicks the `[[ruben]]` wikilink in the body → navigates to ruben.md.
- - Clicks "In Obsidian öffnen" — either Obsidian launches the file (if installed) or a toast says "Obsidian nicht verfügbar — Datei: entities/ruben.md".
+ - Lands on the graph view, sees 3 nodes (sam, alex, pixel-art-editor).
+ - Clicks the `sam` node → page loads, frontmatter pills visible, body rendered.
+ - Clicks the `[[alex]]` wikilink in the body → navigates to alex.md.
+ - Clicks "In Obsidian öffnen" — either Obsidian launches the file (if installed) or a toast says "Obsidian nicht verfügbar — Datei: entities/alex.md".
- Triggers a live test: manually adds a file `entities/test-live.md` via the terminal. Within ~1 s the tree updates, the new file appears, the graph re-fetches.
- - Voice command: "Hey Jarvis, schreib in dein Wiki: meine Lieblingsfarbe ist Blau" — wait ~10 s — the Wiki tab auto-refreshes, ruben.md shows the new fact.
+ - Voice command: "Hey Jarvis, schreib in dein Wiki: meine Lieblingsfarbe ist Blau" — wait ~10 s — the Wiki tab auto-refreshes, alex.md shows the new fact.
If the walk-through passes, B3 is done.
diff --git a/docs/plans/b3/AGENT-A-backend-api.md b/docs/plans/b3/AGENT-A-backend-api.md
index 2e77099556..8e52b7b805 100644
--- a/docs/plans/b3/AGENT-A-backend-api.md
+++ b/docs/plans/b3/AGENT-A-backend-api.md
@@ -90,13 +90,13 @@ Minimum 12 cases:
### 5.2 Integration test (`tests/integration/ui/wiki/test_wiki_routes_e2e.py`)
-Mounts the *full* server (`jarvis.ui.web.server:create_app`), populates `wiki/obsidian-vault/` in a `tmp_path` fixture with `ruben.md`, `harald.md`, `pixel-art-editor.md`, and walks the same flow the live walk-through covers in `00-OVERVIEW.md §7`:
+Mounts the *full* server (`jarvis.ui.web.server:create_app`), populates `wiki/obsidian-vault/` in a `tmp_path` fixture with `alex.md`, `sam.md`, `pixel-art-editor.md`, and walks the same flow the live walk-through covers in `00-OVERVIEW.md §7`:
1. `GET /api/wiki/tree` → 3 files across 2 folders.
-2. `GET /api/wiki/page/harald` → body contains "1976".
+2. `GET /api/wiki/page/sam` → body contains "1976".
3. `GET /api/wiki/graph` → ≥ 2 edges.
-4. `GET /api/wiki/search?q=pizza` → 1 hit on ruben.
-5. `GET /api/wiki/backlinks/harald` → 1 hit (ruben).
+4. `GET /api/wiki/search?q=pizza` → 1 hit on alex.
+5. `GET /api/wiki/backlinks/sam` → 1 hit (alex).
---
diff --git a/docs/plans/b3/AGENT-B-react-tab.md b/docs/plans/b3/AGENT-B-react-tab.md
index f31b79a7e2..7de06539b4 100644
--- a/docs/plans/b3/AGENT-B-react-tab.md
+++ b/docs/plans/b3/AGENT-B-react-tab.md
@@ -2,7 +2,7 @@
You are Agent B on Phase B3 of Personal Jarvis. **Read `00-OVERVIEW.md` first**, then this. You replace the legacy `MemoryView.tsx` (`data/core_memory.json` flat memory) with a new `WikiView.tsx` backed by the on-disk Obsidian vault. You own the tree + page-render half of the tab. You do **not** own the graph (Agent C), the search bar (Agent C), the live-reload hook (Agent D), or the Obsidian button (Agent D) — your tab integrates their components but does not build them.
-The visual contract is `C:\Users\Administrator\Desktop\b3-wiki-view-mockup.html`. Open it; match it.
+The visual contract is `<USER_HOME>\Desktop\b3-wiki-view-mockup.html`. Open it; match it.
---
@@ -94,9 +94,9 @@ When `selectedSlug` becomes non-null, switch the centre tab to "Page" automatica
`PageRenderer` receives `body_md` from the API. Wikilinks appear as `[[slug]]` or `[[entities/slug]]`. Before passing to `react-markdown`, run a pre-processor that converts each `[[X]]` into a marker `react-markdown` will recognise:
```
-[[harald]] → [harald](#wiki:harald)
-[[entities/harald]] → [harald](#wiki:harald)
-[[harald|the father]] → [the father](#wiki:harald)
+[[sam]] → [sam](#wiki:sam)
+[[entities/sam]] → [sam](#wiki:sam)
+[[sam|the father]] → [the father](#wiki:sam)
```
Then in `react-markdown`'s `components.a` override, detect `href.startsWith("#wiki:")`, render as a custom `<a class="wikilink">…</a>`, and on click call `props.onWikilinkClick(href.slice(6))` — do not navigate.
diff --git a/docs/plans/b3/AGENT-C-graph-and-search.md b/docs/plans/b3/AGENT-C-graph-and-search.md
index 300ed25650..743555a71b 100644
--- a/docs/plans/b3/AGENT-C-graph-and-search.md
+++ b/docs/plans/b3/AGENT-C-graph-and-search.md
@@ -2,7 +2,7 @@
You are Agent C on Phase B3 of Personal Jarvis. **Read `00-OVERVIEW.md` first**, then this. You build the Memory Map (force-directed graph) and the Ctrl-K full-text search bar that plug into Agent B's `WikiView.tsx`. You do not touch the tree, the page renderer, the backend, or live-reload — those are A, B, and D's areas.
-The visual contract is `C:\Users\Administrator\Desktop\b3-wiki-view-mockup.html`. Graph node colours and search bar styling there are binding.
+The visual contract is `<USER_HOME>\Desktop\b3-wiki-view-mockup.html`. Graph node colours and search bar styling there are binding.
---
diff --git a/docs/plans/b3/AGENT-D-live-and-obsidian.md b/docs/plans/b3/AGENT-D-live-and-obsidian.md
index 83e257c18d..7e69ffde65 100644
--- a/docs/plans/b3/AGENT-D-live-and-obsidian.md
+++ b/docs/plans/b3/AGENT-D-live-and-obsidian.md
@@ -82,7 +82,7 @@ class WikiPageChanged:
trace_id: UUID
timestamp_ns: int
slug: str
- path: str # vault-relative POSIX path, e.g. "entities/harald.md"
+ path: str # vault-relative POSIX path, e.g. "entities/sam.md"
kind: str # "created" | "modified" | "deleted"
```
@@ -197,7 +197,7 @@ The hook is mounted **once** at `WikiView` level (not deeper) so we have a singl
// jarvis/ui/web/frontend/src/components/wiki/ObsidianButton.tsx
interface ObsidianButtonProps {
- vaultRelPath: string; // e.g. "entities/harald.md"
+ vaultRelPath: string; // e.g. "entities/sam.md"
}
export function ObsidianButton({ vaultRelPath }: ObsidianButtonProps): JSX.Element {
@@ -270,7 +270,7 @@ One end-to-end test:
### 5.4 Frontend tests
`obsidian.test.ts`:
-1. `buildObsidianUrl("entities/harald.md")` → exact expected URL with proper URL encoding.
+1. `buildObsidianUrl("entities/sam.md")` → exact expected URL with proper URL encoding.
2. Empty path → URL ends with `vault=obsidian-vault` (no `&file=`).
3. Path with spaces → space → `%20`.
diff --git a/docs/plans/b5/00-OVERVIEW.md b/docs/plans/b5/00-OVERVIEW.md
index 46823758c0..e885086d70 100644
--- a/docs/plans/b5/00-OVERVIEW.md
+++ b/docs/plans/b5/00-OVERVIEW.md
@@ -241,10 +241,10 @@ Each entry is a hard rule plus a one-line why. Violations are the most common re
Each agent works in **its own git worktree**, branched off `b5-base` (set up by the review agent before spawning — see §6). Path convention:
```
-C:\Users\Administrator\Desktop\jarvis-b5-agent-A\
-C:\Users\Administrator\Desktop\jarvis-b5-agent-B\
-C:\Users\Administrator\Desktop\jarvis-b5-agent-C\
-C:\Users\Administrator\Desktop\jarvis-b5-agent-D\
+<USER_HOME>\Desktop\jarvis-b5-agent-A\
+<USER_HOME>\Desktop\jarvis-b5-agent-B\
+<USER_HOME>\Desktop\jarvis-b5-agent-C\
+<USER_HOME>\Desktop\jarvis-b5-agent-D\
```
Worktree branch names: `impl/b5-agent-A`, `…B`, `…C`, `…D`.
diff --git a/docs/plans/b5/AGENT-A-write-wiring.md b/docs/plans/b5/AGENT-A-write-wiring.md
index e4ab9edcaf..835ccee997 100644
--- a/docs/plans/b5/AGENT-A-write-wiring.md
+++ b/docs/plans/b5/AGENT-A-write-wiring.md
@@ -154,7 +154,7 @@ Optional, may not exist yet:
## 9. Pre-flight test gate
```powershell
-cd C:\Users\Administrator\Desktop\jarvis-b5-agent-A
+cd <USER_HOME>\Desktop\jarvis-b5-agent-A
pip install -e . --no-deps
python -m pytest tests/unit/ -q --tb=no > pre-flight.log
```
@@ -208,13 +208,13 @@ Recommended sections (free-form, the order is yours):
## 12. Worktree setup recap
```powershell
-cd C:\Users\Administrator\Desktop\Personal Jarvis
-git worktree add -b impl/b5-agent-A C:\Users\Administrator\Desktop\jarvis-b5-agent-A impl/b5-base
-cd C:\Users\Administrator\Desktop\jarvis-b5-agent-A
+cd <USER_HOME>\Desktop\Personal Jarvis
+git worktree add -b impl/b5-agent-A <USER_HOME>\Desktop\jarvis-b5-agent-A impl/b5-base
+cd <USER_HOME>\Desktop\jarvis-b5-agent-A
pip install -e . --no-deps
```
-Then work entirely in `C:\Users\Administrator\Desktop\jarvis-b5-agent-A\`. Never `cd` back to the main repo until you're done.
+Then work entirely in `<USER_HOME>\Desktop\jarvis-b5-agent-A\`. Never `cd` back to the main repo until you're done.
Final commit (in the worktree):
diff --git a/docs/plans/b5/AGENT-B-recall-tool.md b/docs/plans/b5/AGENT-B-recall-tool.md
index e77c5c3799..99d2ba089c 100644
--- a/docs/plans/b5/AGENT-B-recall-tool.md
+++ b/docs/plans/b5/AGENT-B-recall-tool.md
@@ -178,7 +178,7 @@ If `cfg.wiki_integration` is missing at construction time, default to `Path("wik
## 8. Pre-flight test gate
```powershell
-cd C:\Users\Administrator\Desktop\jarvis-b5-agent-B
+cd <USER_HOME>\Desktop\jarvis-b5-agent-B
pip install -e . --no-deps
python -m pytest tests/unit/ -q --tb=no > pre-flight.log
```
@@ -222,9 +222,9 @@ Recommended sections (order is yours): Files changed · What I did · Assumption
## 11. Worktree setup recap
```powershell
-cd C:\Users\Administrator\Desktop\Personal Jarvis
-git worktree add -b impl/b5-agent-B C:\Users\Administrator\Desktop\jarvis-b5-agent-B impl/b5-base
-cd C:\Users\Administrator\Desktop\jarvis-b5-agent-B
+cd <USER_HOME>\Desktop\Personal Jarvis
+git worktree add -b impl/b5-agent-B <USER_HOME>\Desktop\jarvis-b5-agent-B impl/b5-base
+cd <USER_HOME>\Desktop\jarvis-b5-agent-B
pip install -e . --no-deps
```
diff --git a/docs/plans/b5/AGENT-C-context-injection.md b/docs/plans/b5/AGENT-C-context-injection.md
index 6ba68ab71d..8fb8b42b90 100644
--- a/docs/plans/b5/AGENT-C-context-injection.md
+++ b/docs/plans/b5/AGENT-C-context-injection.md
@@ -146,7 +146,7 @@ If `jarvis.memory.wiki.search` doesn't import (Agent B's branch not merged), the
## 8. Pre-flight test gate
```powershell
-cd C:\Users\Administrator\Desktop\jarvis-b5-agent-C
+cd <USER_HOME>\Desktop\jarvis-b5-agent-C
pip install -e . --no-deps
python -m pytest tests/unit/ -q --tb=no > pre-flight.log
```
@@ -186,9 +186,9 @@ Recommended sections: Files changed · What I did · Assumptions made (especiall
## 11. Worktree setup recap
```powershell
-cd C:\Users\Administrator\Desktop\Personal Jarvis
-git worktree add -b impl/b5-agent-C C:\Users\Administrator\Desktop\jarvis-b5-agent-C impl/b5-base
-cd C:\Users\Administrator\Desktop\jarvis-b5-agent-C
+cd <USER_HOME>\Desktop\Personal Jarvis
+git worktree add -b impl/b5-agent-C <USER_HOME>\Desktop\jarvis-b5-agent-C impl/b5-base
+cd <USER_HOME>\Desktop\jarvis-b5-agent-C
pip install -e . --no-deps
```
diff --git a/docs/plans/b5/AGENT-D-scheduler.md b/docs/plans/b5/AGENT-D-scheduler.md
index 141cb1320d..d310b76aae 100644
--- a/docs/plans/b5/AGENT-D-scheduler.md
+++ b/docs/plans/b5/AGENT-D-scheduler.md
@@ -195,7 +195,7 @@ class CuratorScheduler:
## 9. Pre-flight test gate
```powershell
-cd C:\Users\Administrator\Desktop\jarvis-b5-agent-D
+cd <USER_HOME>\Desktop\jarvis-b5-agent-D
pip install -e . --no-deps
python -m pytest tests/unit/ -q --tb=no > pre-flight.log
```
@@ -238,9 +238,9 @@ Recommended sections: Files changed · What I did · Assumptions made · Verific
## 12. Worktree setup recap
```powershell
-cd C:\Users\Administrator\Desktop\Personal Jarvis
-git worktree add -b impl/b5-agent-D C:\Users\Administrator\Desktop\jarvis-b5-agent-D impl/b5-base
-cd C:\Users\Administrator\Desktop\jarvis-b5-agent-D
+cd <USER_HOME>\Desktop\Personal Jarvis
+git worktree add -b impl/b5-agent-D <USER_HOME>\Desktop\jarvis-b5-agent-D impl/b5-base
+cd <USER_HOME>\Desktop\jarvis-b5-agent-D
pip install -e . --no-deps
```
diff --git a/docs/plans/capability-coupling/CHANGELOG.md b/docs/plans/capability-coupling/CHANGELOG.md
index 2c047ac7e0..58cf851208 100644
--- a/docs/plans/capability-coupling/CHANGELOG.md
+++ b/docs/plans/capability-coupling/CHANGELOG.md
@@ -51,7 +51,7 @@ Agent E done.
Agent D done.
- `jarvis/missions/critic/runner.py`: added `CapabilityHonestyCheck` dataclass,
- `_extract_tool_call_evidence()` (parses OpenClaw stream.jsonl ``tool_use``
+ `_extract_tool_call_evidence()` (parses Jarvis-Agents stream.jsonl ``tool_use``
frames + ``[TOOL_USE]`` CLI markers + ``dispatch-result`` events),
`_resolve_capability_requires_evidence()` (uses `CapabilityRegistry` when
available, falls back to action-verb + external-system-noun heuristic),
diff --git a/docs/plans/capability-coupling/SPEC.md b/docs/plans/capability-coupling/SPEC.md
index ede99675ed..af94ccb563 100644
--- a/docs/plans/capability-coupling/SPEC.md
+++ b/docs/plans/capability-coupling/SPEC.md
@@ -3,7 +3,7 @@
**Status:** draft — 2026-05-20
**Goal:** Jarvis must only confirm what it can actually do. Unknown tasks → deterministic "I cannot (yet) do that." Solution must be extensible: registering a new capability (tool, MCP, harness) must extend the truthful surface with zero touches to brain / gate / filter logic.
-**Doctrine reference:** PHILOSOPHY.md graceful-no-op rule; AD-4 (Critic validates Risk-Tier before OpenClaw); new ADR-0017 to be authored by Agent E.
+**Doctrine reference:** PHILOSOPHY.md graceful-no-op rule; AD-4 (Critic validates Risk-Tier before Jarvis-Agents); new ADR-0017 to be authored by Agent E.
---
@@ -65,7 +65,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`:
-- Skip both brain and openclaw spawn.
+- Skip both brain and Jarvis-Agents spawn.
- Emit `_unsupported_response(text)` via the same TTS path as a normal short reply.
Response phrasing (deterministic, no LLM):
@@ -89,7 +89,7 @@ The Ack-Brain is allowed only: (a) acoustic acknowledgment ("mhm", "verstanden"
- The Worker output is parsed for tool-call evidence (`tool_calls` array or equivalent harness signal).
- If the mission's resolved capability has `requires_evidence=True` and no tool-call evidence is present → `CriticVerdict.success=False`, `reason="capability_not_executed"`.
- `summary_de` must be derived from the **tool-call evidence**, not the worker's text claim. New helper `summarise_from_tool_calls(calls) -> str` in `jarvis/missions/critic/summary.py`.
-- For OpenClaw missions that lack tool-call telemetry (current Wave 2 mock state), Critic must default to `success=False` for `requires_evidence=True` capabilities until Wave 3 lands proper tool-call streaming.
+- For Jarvis-Agents missions that lack tool-call telemetry (current Wave 2 mock state), Critic must default to `success=False` for `requires_evidence=True` capabilities until Wave 3 lands proper tool-call streaming.
---
@@ -121,7 +121,7 @@ Adding a new capability later (e.g. an MCP server for Gmail):
## Hard negatives (acceptance criteria for Agent E)
Each of these utterances must trigger the UNSUPPORTED path AND no fake confirmation reaches TTS:
-1. "Schick eine Email an [email protected] mit dem Betreff Hallo" ("Send an email to [email protected] with subject Hello") → "Das kann ich noch nicht. (...)" ("I can't do that yet.") <!-- i18n-allow: example user voice query with English inline -->
+1. "Schick eine Email an [email protected] mit dem Betreff Hallo" ("Send an email to [email protected] with subject Hello") → "Das kann ich noch nicht. (...)" ("I can't do that yet.") <!-- i18n-allow: example user voice query with English inline -->
2. "Trag einen Termin morgen 10 Uhr ein" ("Add an appointment tomorrow at 10 AM") → unsupported
3. "Sende eine WhatsApp an Mama" ("Send a WhatsApp to Mum") → unsupported
4. "Bestelle eine Pizza" ("Order a pizza") → unsupported
@@ -129,7 +129,7 @@ Each of these utterances must trigger the UNSUPPORTED path AND no fake confirmat
Each of these utterances must STILL work (no false negatives):
6. "Öffne Chrome" ("Open Chrome") → local-action open_app
-7. "Lies die Datei foo.txt" ("Read the file foo.txt") → openclaw spawn (file ops registered)
+7. "Lies die Datei foo.txt" ("Read the file foo.txt") → Jarvis-Agents spawn (file ops registered)
8. "Wie spät ist es?" ("What time is it?") → smalltalk, brain answers directly
9. "Such im Web nach Python 3.13" ("Search the web for Python 3.13") → only works if a web-search capability is actually registered; otherwise unsupported (this catches the search_web prompt-claim drift)
@@ -138,5 +138,5 @@ Each of these utterances must STILL work (no false negatives):
## Out of scope (for this wave)
- Auto-learning verb/object lists (LLM-based capability description parsing) — manual seed map first.
-- Live OpenClaw subprocess tool-call telemetry (Wave 3) — Critic will conservative-fail until that lands.
+- Live Jarvis-Agents subprocess tool-call telemetry (Wave 3) — Critic will conservative-fail until that lands.
- Replacing every phantom-confirmation site in `pipeline.py:1278/1283/1384/2048` — Agent C only fixes the source of the lies (Ack-Brain + system prompt). The pipeline-level "Fertig./Das hat nicht geklappt." ("Done." / "That didn't work.") remains as it reflects the Critic's verdict, which is now honest.
diff --git a/docs/plans/cross-platform-mac-linux/PHASE-TRACKER.html b/docs/plans/cross-platform-mac-linux/PHASE-TRACKER.html
index 1d1e247f77..1ce065b17f 100644
--- a/docs/plans/cross-platform-mac-linux/PHASE-TRACKER.html
+++ b/docs/plans/cross-platform-mac-linux/PHASE-TRACKER.html
@@ -1530,7 +1530,7 @@ footer.app-footer code{
</footer>
<!-- ===== Embedded prompts library (placeholder — filled by a later mechanical step) ===== -->
-<script id="prompts-library-json" type="application/json">{"preflight": "ultrathink\n<role>\nYou are the migration lead bootstrapping the cross-platform (macOS + Linux) port of Personal Jarvis. Your outcome is a clean, verified starting state and the integration branch every later wave merges into — not any feature code. You set the stage; you do not act.\n<\/role>\n\n<outcome>\nDONE means all of the following are true and demonstrated with command output:\n- The repo is on a fresh integration branch `feat/crossplatform-port` cut from the latest `origin/main`, pushed to origin.\n- `pwsh scripts/preflight.ps1` exits 0 in the repo root.\n- `python -c \"import jarvis; print(jarvis.__file__)\"` resolves to the live working clone (BUG-006/014 guard).\n- The whole cross-platform plan has been read and an at-a-glance wave/dependency map is reproduced in your final report.\n- No production file has been modified.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` (the full AD/PC/EK/wave list — read all of it).\n- `docs/plans/cross-platform-mac-linux/README.md` (the master plan + the hot-file ownership table).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-15 and HN-17 in your final report:\n - HN-15: \"Never merge a wave before its CI matrix (ubuntu-latest + macos-latest + windows-latest) is green for ruff + mypy + pytest -m 'not skip_ci'.\"\n - HN-17: \"Every artifact is English; never git push --force; never --no-verify; never bypass signing.\"\n- `CLAUDE.md` (Output-Language Policy + Worktree activation checklist + git policy).\n<\/required-reading>\n\n<environment-setup>\nRun exactly, in the repo root `C:\\Users\\Administrator\\Desktop\\Personal Jarvis`:\n1. `git fetch origin`\n2. `git switch -c feat/crossplatform-port origin/main`\n3. `git push -u origin feat/crossplatform-port`\n4. `pwsh scripts/preflight.ps1` (must exit 0 — if not, STOP and fix before continuing)\n5. `python -c \"import jarvis; print(jarvis.__file__)\"`\nDo NOT create a worktree here — this prompt only stands up the integration branch. Sub-task prompts create their own worktrees.\n<\/environment-setup>\n\n<scope>\nCreate / modify: NOTHING in `jarvis/`. This is a branch + verification step only. (Optional: you may append a one-line note to your own scratch report — never to a plan doc.)\n<\/scope>\n\n<primary-path>\n1. Read all required files.\n2. Run the environment-setup commands in order, stopping on any non-zero exit.\n3. Confirm the integration branch exists on origin (`git ls-remote --heads origin feat/crossplatform-port`).\n4. Reproduce the wave dependency map (Wave 0 blocks 1/2/3; Wave 4 needs all of 0-3) in the report.\n<\/primary-path>\n\n<fallback-paths>\n- If `origin/main` is unexpectedly behind a known-good commit, branch from the commit the operator names instead, and record the deviation. Failure condition: `git switch` reports the base ref is missing.\n- If `preflight.ps1` fails on a stale editable-install pin, run `pip install -e . --no-deps` then re-run preflight. Failure condition: preflight still non-zero.\n- You may invent a recovery path if both fail, provided you break no INVIOLABLE hard-rule (no force-push, no history rewrite on a shared branch — HN-17).\n<\/fallback-paths>\n\n<acceptance>\ngit ls-remote --heads origin feat/crossplatform-port\npwsh scripts/preflight.ps1\npython -c \"import jarvis; print(jarvis.__file__)\"\ngit status --porcelain\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-17 — English-only artifacts; never `git push --force`; never `--no-verify`; never bypass signing.\nSOFT:\n- Prefer branching from `origin/main`; deviate only with an explicit recorded reason.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Integration branch created + pushed (with the origin hash).\n- Preflight + import-clean checks: PASS/FAIL with output.\n- Wave dependency map reproduced.\n- Hard-rules honored (HN-15/HN-17 quoted).\n- Path-taken: primary or which fallback, and why.\n<\/done-signal>", "0.1": "ultrathink\n<role>\nYou own the shared platform-detection authority for the whole cross-platform port. Your outcome is a single cached, frozen capability source of truth that all six later ports read instead of each re-detecting sys.platform. You are not building any feature — you are building the one module everything else depends on.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/platform/__init__.py` exposes `detect_platform() -> Literal[\"win32\",\"darwin\",\"linux\"]` that maps sys.platform and NEVER raises (unknown → \"linux\" + one English warning).\n- `jarvis/platform/capabilities.py` defines `@dataclass(frozen=True, slots=True) Capabilities` with exactly the AD-5 fields: `platform: str`, `has_hotkey: bool`, `has_ax_tree: bool`, `has_overlay: bool`, `has_pty: bool`, `has_elevation: bool`, `display_present: bool`, `is_wayland: bool`, `ax_permission_granted: bool | None` (tri-state; document the None=\"unknown until first use\" case).\n- `detect_capabilities() -> Capabilities` is cached (lru_cache or module `_CACHED`) so `d() is d()`; `reset_capabilities_cache()` exists as a test hook.\n- No module-scope import of `winreg`/`pyobjc`/`pyatspi`/any Windows-only package — all lazy + guarded inside function bodies.\n- All acceptance commands pass.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §0.1 (this exact sub-task).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-5 (single capability module) + AD-6 (graceful null-fallback, no branch raises).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote in your report:\n - HN-3: \"Never branch on sys.platform inline in a consumer. Read the capability from the shared jarvis/platform/ module.\"\n - HN-4: \"No sys.platform factory branch may EVER raise. An unavailable capability logs one clear English message and returns a null/no-op implementation.\"\n - HN-7: \"Never add a module-scope import of a Windows-only package. Lazy + guarded inside the function/branch only.\"\n- Reference patterns: frozen dataclass style at `jarvis/core/protocols.py:402` (`Observation`); test-reset hook at `jarvis/trigger/hotkey.py:97` (`_reset_checker_state_for_tests`); lazy-guarded import at `jarvis/plugins/tool/app_resolver.py:24`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1` (must exit 0)\n2. Create the worktree for this sub-task:\n `git worktree add -b crossplat/w0-platform-module ../sub-agents-outputs/crossplat-w0-platform feat/crossplatform-port`\n3. From the worktree root: `pip install -e \".[dev]\"`\n4. Confirm the live import points at the worktree: `python -c \"import jarvis; print(jarvis.__file__)\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/platform/__init__.py`, `jarvis/platform/capabilities.py`, `tests/unit/platform/__init__.py`, `tests/unit/platform/test_capabilities.py`.\n(Probes live in 0.2's `jarvis/platform/probes.py`; you import them from `capabilities.py`. If 0.2 has not landed in this worktree yet, define thin local stub probe functions in `probes.py` and let 0.2's author replace them — coordinate so you do not both author the same probe bodies.)\nDo NOT modify any existing `jarvis/` file.\n<\/scope>\n\n<primary-path>\n1. Write `detect_platform()` in `__init__.py`: `win32`→`win32`, `darwin`→`darwin`, `startswith(\"linux\")`→`linux`, else log + return `linux`.\n2. Write `Capabilities` frozen dataclass mirroring `Observation` style; document the tri-state `ax_permission_granted`.\n3. Write `detect_capabilities()` computing each field from `jarvis.platform.probes`, wrapped in `functools.lru_cache(maxsize=1)`; add `reset_capabilities_cache()` clearing the cache.\n4. Write `tests/unit/platform/test_capabilities.py`: cache identity, field presence, monkeypatched-probe → Capabilities mapping. Use a `tests/fakes/`-style fake or direct monkeypatch of probe functions — NOT `unittest.mock`.\n<\/primary-path>\n\n<fallback-paths>\n- If `lru_cache` interferes with the reset hook in tests, use a module-level `_CACHED: Capabilities | None` guard + a `reset_capabilities_cache()` that sets it to None. Failure condition: `d() is d()` returns False.\n- If `slots=True` conflicts with a default-factory field, drop `slots=True` (keep `frozen=True`) and note the deviation. Failure condition: dataclass construction raises.\n- You may invent another caching strategy if both fail, provided HN-3/HN-4/HN-7 hold.\n<\/fallback-paths>\n\n<acceptance>\npython -c \"from jarvis.platform import detect_platform; print(detect_platform())\"\npython -c \"from jarvis.platform.capabilities import detect_capabilities as d; print(d() is d())\"\npytest tests/unit/platform/test_capabilities.py -v\npython -c \"import ast; m=ast.parse(open('jarvis/platform/capabilities.py').read()); assert not any(getattr(n,'names',None) and any(a.name in ('winreg','pyatspi') for a in n.names) for n in ast.walk(m) if isinstance(n,ast.Import))\"\nruff check jarvis/platform/ && mypy jarvis/platform/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-3 — one capability source of truth; consumers never re-detect sys.platform.\n- HN-4 — no factory/detector branch raises; degrade + log English.\n- HN-7 — no module-scope Windows/OS-specific import.\nSOFT:\n- Mirror the `Observation` frozen-dataclass style; mirror the existing test-reset-hook naming.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Files created + the `Capabilities` field list confirmed against AD-5.\n- Cache identity + reset hook proven (command output).\n- Import-cleanliness AST check: PASS.\n- Hard-rules honored (HN-3/HN-4/HN-7 quoted).\n- Path-taken + any coordination needed with 0.2's probes.\n<\/done-signal>", "0.2": "ultrathink\n<role>\nYou own the capability probes that answer \"what works on this box\" — display, Wayland, AX-permission, PTY, elevation, hotkey, overlay, ax-tree. Your outcome is a set of cheap, exception-swallowing boolean probes that feed the frozen Capabilities dataclass from 0.1. Each probe runs once per process and never crashes the import.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/platform/probes.py` defines one small function per Capabilities field, each returning a plain bool (or `bool | None` for `ax_permission_granted`) and swallowing its own exceptions to a logged False/None.\n- Every OS-specific import (`winreg`, `Quartz`, `pyatspi`, `winpty`, `pynput`, `tkinter`, …) is lazy inside the function body via `importlib.util.find_spec` or a guarded import — never at module scope.\n- `tests/fakes/fake_capabilities.py` exists and constructs a valid `Capabilities` for each of win32/darwin/linux (EK-3 fake, no `unittest.mock`).\n- All acceptance commands pass.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §0.2 (the exact per-field probe spec — follow it verbatim).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-5, AD-6, AD-8 (Wayland feeds hotkey), AD-14 (pyatspi is distro-only).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-7 (no module-scope Windows import) and HN-9 (\"Never put pyatspi in a pip extra. It is GObject-Introspection, distro-packaged only\").\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-4 (Wayland hotkey) + AP-13 (convenience module-scope import).\n- Pattern: lazy-guarded import at `jarvis/plugins/tool/app_resolver.py:24`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Use the SAME worktree as 0.1 (platform module is one worktree per WELLE-0 §Parallelism): `git worktree add -b crossplat/w0-platform-module ../sub-agents-outputs/crossplat-w0-platform feat/crossplatform-port` (skip if already created for 0.1).\n3. `pip install -e \".[dev]\"`\n4. `python -c \"import jarvis; print(jarvis.__file__)\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/platform/probes.py`, `tests/fakes/fake_capabilities.py`, `tests/unit/platform/test_probes.py`.\nProbe field map (WELLE-0 §0.2): `display_present`, `is_wayland`, `has_pty` (winpty/ptyprocess find_spec), `ax_permission_granted` (macOS lazy `AXIsProcessTrusted()` → None if pyobjc absent), `has_ax_tree` (win:pywinauto / mac:Quartz / linux:pyatspi find_spec), `has_hotkey` (win:global_hotkeys / unix:pynput AND not is_wayland), `has_overlay` (display_present AND tkinter find_spec), `has_elevation` (win:win32pipe / mac:True / linux:pkexec|sudo via shutil.which).\n<\/scope>\n\n<primary-path>\n1. Write each probe exactly as WELLE-0 §0.2 prescribes; wrap each body in try/except → logged False/None.\n2. Write `fake_capabilities.py` with three factory helpers (`win_capabilities()`, `darwin_capabilities()`, `linux_capabilities()`) returning canned `Capabilities`.\n3. Write `test_probes.py` monkeypatching `os.environ` (DISPLAY/WAYLAND_DISPLAY/XDG_SESSION_TYPE) and `importlib.util.find_spec`/`shutil.which` to assert each probe's True/False boundary.\n<\/primary-path>\n\n<fallback-paths>\n- If `find_spec` raises for a namespace package, catch it and treat as \"absent\". Failure condition: probe import throws on a clean Linux box.\n- If `AXIsProcessTrusted()` cannot be imported lazily on a non-Mac, return None (\"unknown\") — that is the designed tri-state. Failure condition: probe raises off-Mac.\n- You may invent an additional environment signal for `display_present`/`is_wayland` if the prescribed ones are insufficient, provided HN-7/HN-9 hold and the result is still a swallowed bool.\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/platform/test_probes.py -v\npython -c \"from jarvis.platform.probes import is_wayland; print(is_wayland())\"\npython -c \"from tests.fakes.fake_capabilities import linux_capabilities, darwin_capabilities, win_capabilities; [c() for c in (linux_capabilities,darwin_capabilities,win_capabilities)]; print('ok')\"\npython -c \"import ast; m=ast.parse(open('jarvis/platform/probes.py').read()); assert not any(getattr(n,'names',None) and any(a.name in ('winreg','pyatspi','Quartz','winpty','global_hotkeys','pywinauto','win32pipe','pynput') for a in n.names) for n in ast.walk(m) if isinstance(n,ast.Import))\"\nruff check jarvis/platform/ && mypy jarvis/platform/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-7 / AP-13 — no module-scope OS-specific import; lazy + guarded only.\n- HN-9 — `pyatspi` is detected via find_spec, NEVER pip-installed; absence is a clean False.\n- HN-4 — a probe never raises; it logs and returns False/None.\nSOFT:\n- Keep each probe a few lines; one concern per function.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Probes implemented + field-by-field mapping to Capabilities.\n- `fake_capabilities.py` constructs all three platforms (output).\n- Import-cleanliness AST check across the full Windows-only set: PASS.\n- Hard-rules honored (HN-7/HN-9/HN-4 quoted).\n- Path-taken + which env signals were used for display/Wayland.\n<\/done-signal>", "0.3": "ultrathink\n<role>\nYou build the highest-leverage missing safety net in the entire project: the GitHub Actions test matrix on ubuntu+macos+windows. There is NO functional CI today (PC-1). Your outcome is a green 3-OS matrix that runs ruff, mypy, pytest, the import-cleanliness gate (0.4), and the min-passed floor (0.5). Until this is green, nothing in Waves 1-4 may merge.\n<\/role>\n\n<outcome>\nDONE means:\n- `.github/workflows/ci.yml` exists, is syntactically valid, and defines a matrix `os: [ubuntu-latest, macos-latest, windows-latest]` with `fail-fast: false`.\n- `actions/checkout` and `actions/setup-python` are pinned by 40-char commit SHA.\n- Each leg runs: `pip install -e \".[dev]\"` → `ruff check jarvis/` → `ruff format --check jarvis/` → `mypy jarvis/` → the import-cleanliness gate (0.4) → pytest with the min-passed floor (0.5).\n- macOS/Linux legs install ONLY `.[dev]` (no `[desktop-macos]`, no distro `pyatspi`) — proving the base €5-VPS install imports + tests clean.\n- The `ci` workflow shows green for all three OS legs on the PR.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §0.3 (+ §0.4, §0.5 which this references).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-4 (CI matrix is blocking Wave 0).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-15 (\"Never merge a wave before its CI matrix is green…\") and HN-16 (\"Never let a mass-skip pass as green. The minimum-passed-count floor must hold\").\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-6 (green-by-mass-skip).\n- The 3-OS matrix shape to copy verbatim: `.github/workflows/cross-runner-hash.yml:76-86`; SHA-pinning rationale at `:91-93`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w0-ci-matrix ../sub-agents-outputs/crossplat-w0-ci feat/crossplatform-port`\n3. `pip install -e \".[dev]\"`\n4. NOTE: this worktree depends on 0.1/0.2 (so `import jarvis` + new platform tests exist) and 0.7 (so collection is clean). If those branches are not yet merged into `feat/crossplatform-port`, the matrix will not go green — coordinate merge order (platform module → conftest cleanup → CI last).\n<\/environment-setup>\n\n<scope>\nCreate: `.github/workflows/ci.yml`.\nThis sub-task references `scripts/ci/check_import_clean.py` (0.4) and `scripts/ci/assert_min_passed.py` (0.5) — they ship in the SAME worktree (WELLE-0 §Parallelism groups 0.3+0.4+0.5). Author them together or coordinate so `ci.yml` references real files.\nDo NOT touch `jarvis/` production code.\n<\/scope>\n\n<primary-path>\n1. Copy the matrix block from `cross-runner-hash.yml:76-86`; adapt the job to `test`.\n2. SHA-pin `actions/checkout` + `actions/setup-python` (look up current pins; mirror `:91-93`).\n3. Add the step sequence; trigger on `push` to `main` + the active feature branch + `pull_request`.\n4. Validate locally with the acceptance YAML assertion, then push and watch `gh pr checks --watch`.\n<\/primary-path>\n\n<fallback-paths>\n- If `ruff format --check` flags pre-existing formatting outside the touched ports, scope the format check to changed paths OR accept the existing format and note it — do NOT mass-reformat `jarvis/` (out of scope, churns other worktrees). Failure condition: format check fails on untouched files.\n- If `mypy jarvis/` surfaces a large pre-existing error backlog, scope mypy to the new `jarvis/platform/` package for Wave 0 and record a follow-up to widen it — do not suppress errors with blanket ignores. Failure condition: mypy red on legacy modules unrelated to the port.\n- You may invent the step ordering if a runner-specific quirk blocks the prescribed one, provided the matrix stays 3-OS and the floor/gate both run (HN-15/HN-16).\n<\/fallback-paths>\n\n<acceptance>\ngh workflow view ci.yml\npython -c \"import yaml; d=yaml.safe_load(open('.github/workflows/ci.yml')); assert d['jobs']['test']['strategy']['matrix']['os']==['ubuntu-latest','macos-latest','windows-latest']\"\ngh pr checks --watch\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — the matrix is the merge gate; it must be genuinely green on all three legs.\n- HN-16 / AP-6 — the min-passed floor must run; a mass-skip is a regression, not a pass.\n- HN-17 — no `--no-verify`, no force-push.\nSOFT:\n- Prefer scoping mypy/ruff-format narrowly over reformatting the whole tree this wave.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `ci.yml` matrix shape + SHA-pins confirmed (YAML assertion output).\n- The three OS legs' status (green/red, with the run URL).\n- mypy/ruff-format scoping decision, if any deviation taken.\n- Hard-rules honored (HN-15/HN-16 quoted).\n- Path-taken + dependency note (needs 0.1/0.2/0.7 merged to go fully green).\n<\/done-signal>", "0.4": "ultrathink\n<role>\nYou build the import-cleanliness gate that permanently locks in the cross-platform import discipline. Your outcome is a script that proves `import jarvis` is clean on Linux/macOS and that no module-scope Windows-only import can ever regress in.\n<\/role>\n\n<outcome>\nDONE means:\n- `scripts/ci/check_import_clean.py` exists and is referenced by `ci.yml`.\n- It runs `python -c \"import jarvis\"` (asserting exit 0) AND AST-walks every `.py` under `jarvis/`, failing on a TOP-LEVEL (module-scope, not inside a function/try) import of any of `{win32api, win32pipe, win32file, win32security, winreg, global_hotkeys, pywinauto, winpty, pywintypes}`. Imports inside function bodies and `try/except ImportError` blocks are allowed.\n- Verified: the script exits 0 on the current tree; temporarily adding `import winreg` to the top of `jarvis/__init__.py` makes it exit non-zero (then reverted).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §0.4.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-4 + EK-6.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-7 (no module-scope Windows import) and HN-10 (\"Never add a new Windows-only dependency without the ; sys_platform == 'win32' marker\").\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-13 (convenience module-scope import).\n- PC-2 lazy-guard precedents: `app_resolver.py:24`, `hotkey.py:241`, `pty_manager.py:71`, `uia_tree.py:188`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 0.3: `git worktree add -b crossplat/w0-ci-matrix ../sub-agents-outputs/crossplat-w0-ci feat/crossplatform-port` (skip if already created).\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nCreate: `scripts/ci/check_import_clean.py`, `scripts/ci/__init__.py` (if needed for collection), `tests/unit/ci/test_check_import_clean.py` (optional but recommended — a fake module tree asserting the AST walker flags a top-level offender and ignores a function-body one).\nCall `sys.stdout.reconfigure(encoding='utf-8')` at the top (Windows cp1252 default — CLAUDE.md Windows specifics).\n<\/scope>\n\n<primary-path>\n1. Implement the `import jarvis` subprocess check (assert returncode 0, print stderr on failure).\n2. Implement the AST walker: for each `.py`, parse, and for each `ast.Import`/`ast.ImportFrom` whose `col_offset == 0` AND not nested under a `FunctionDef`/`Try`, check the forbidden name set.\n3. Run it on the current tree; then do the add-`import winreg`-and-revert verification.\n<\/primary-path>\n\n<fallback-paths>\n- If walking col_offset is ambiguous for conditionally-indented module code, instead track parent nodes during the walk (only flag imports whose nearest enclosing scope is Module). Failure condition: a legitimate function-body lazy import is flagged.\n- You may invent the nesting-detection approach if both fail, provided allowed lazy imports stay allowed (HN-7).\n<\/fallback-paths>\n\n<acceptance>\npython scripts/ci/check_import_clean.py\npytest tests/unit/ci/test_check_import_clean.py -v\nruff check scripts/ci/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-7 / AP-13 — the gate must distinguish module-scope (forbidden) from lazy function-body (allowed) imports.\nSOFT:\n- Keep the forbidden set in one named constant for easy extension.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Gate exits 0 on the current tree (output).\n- The add-winreg-then-revert verification result.\n- Forbidden-set + nesting-detection approach.\n- Hard-rules honored (HN-7 quoted).\n- Path-taken.\n<\/done-signal>", "0.5": "ultrathink\n<role>\nYou build the minimum-passed-count floor that stops a mass-skip regression from sailing through CI as green. Your outcome is a script that parses the pytest JUnit XML and fails the build if fewer than FLOOR tests passed — even when pytest itself reports zero failures.\n<\/role>\n\n<outcome>\nDONE means:\n- `scripts/ci/assert_min_passed.py` exists, parses a JUnit `report.xml`, and asserts `passed >= FLOOR`.\n- `ci.yml` invokes `pytest -m \"not skip_ci\" --junitxml=report.xml -q` then this script (against the Linux leg's count).\n- `FLOOR` is seeded from the current green count (read it once, hardcode a conservative value e.g. `FLOOR = 1200`, with a comment: bump forward only, never down).\n- Verified: passes locally on the current tree; setting FLOOR to 999999 makes it exit non-zero (then reverted).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §0.5.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-4.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-16 (\"Never let a mass-skip pass as green. The minimum-passed-count floor must hold; a collapse in collected/passed tests is a regression, not a pass\").\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-6 (green-by-mass-skip).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 0.3/0.4: `../sub-agents-outputs/crossplat-w0-ci` on branch `crossplat/w0-ci-matrix`.\n3. `pip install -e \".[dev]\"`\n4. Establish the seed: `pytest -m \"not skip_ci\" --junitxml=report.xml -q` and read the passed count to choose a conservative FLOOR.\n<\/environment-setup>\n\n<scope>\nCreate: `scripts/ci/assert_min_passed.py`, `tests/unit/ci/test_assert_min_passed.py` (feed it a tiny synthetic JUnit XML asserting above/below-floor behavior).\nWire the pytest+script invocation into `ci.yml` (coordinate with 0.3).\n`sys.stdout.reconfigure(encoding='utf-8')` at the top.\n<\/scope>\n\n<primary-path>\n1. Parse `report.xml` with `xml.etree.ElementTree`; compute passed = total - failures - errors - skipped (or read the `<testsuite>` attributes).\n2. Compare against the `FLOOR` constant; print a clear English message and `sys.exit(1)` on shortfall.\n3. Seed FLOOR conservatively from the measured count; comment the bump-forward-only rule.\n4. Run the FLOOR=999999 negative test, then revert.\n<\/primary-path>\n\n<fallback-paths>\n- If JUnit attribute names differ across pytest versions, sum per-`<testcase>` outcomes instead of reading suite totals. Failure condition: parsed passed count is 0 on a known-green run.\n- You may invent the parse strategy if both fail, provided the floor genuinely catches a mass-skip (HN-16).\n<\/fallback-paths>\n\n<acceptance>\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\npytest tests/unit/ci/test_assert_min_passed.py -v\nruff check scripts/ci/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-16 / AP-6 — the floor must hold; never lower it to make a red run green.\nSOFT:\n- Assert against the Linux leg's count (most ports-relevant; Windows-only tests carry markers).\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Script passes on current tree; the seeded FLOOR value + measured passed count.\n- FLOOR=999999 negative test result.\n- Parse strategy used.\n- Hard-rules honored (HN-16 quoted).\n- Path-taken.\n<\/done-signal>", "0.6": "ultrathink\n<role>\nYou resolve the Orb-framework conflict (PC-6) on paper, before any Wave-2 orb code is written. Your outcome is a short, evidence-grounded decision note that fixes WHICH orb is live (Tk) and WHICH is abandoned (PySide6), so Wave 2 wraps the right one. You write a verdict, not code.\n<\/role>\n\n<outcome>\nDONE means:\n- `docs/plans/cross-platform-mac-linux/ADR-orb-framework.md` exists.\n- It names BOTH paths with `file:line` evidence: the LIVE Tk orb (`ui/orb/overlay.py`, `wm_attributes(\"-transparentcolor\", COLOR_KEY_HEX)` at ~`:964-966` and `:1329-1331`, class `OrbOverlay` at ~`:1236`, docstring lines 3-13 rejecting PySide6) and the ABANDONED PySide6 tree (`OS-Level/src/overlay/`, 19 modules).\n- It states the verdict explicitly: the Wave-2 `OverlaySurface` wraps the Tk orb (`TkColorKeyOverlay`); `OS-Level/src/overlay/` is NOT deleted (out of scope, grandfathered) but must NOT be re-imported as the live overlay.\n- No orb code is modified.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §0.6.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-11 (the orb ladder + the PC-6 NOTE).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-1 (\"Never rewrite, refactor, or 'clean up' a Windows implementation. Add a sibling behind the seam\") and HN-6 (\"Never claim a GUI/permission feature 'works' without a live sign-off\").\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-5 (`-transparentcolor` does not exist on X11 Tk).\n- Read the actual source: `ui/orb/overlay.py` (docstring + the cited line ranges) to confirm the evidence before writing the verdict.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w0-orb-verdict ../sub-agents-outputs/crossplat-w0-orb feat/crossplatform-port`\n3. `pip install -e \".[dev]\"` (so `python -c \"import ui.orb.overlay\"` can be confirmed)\n<\/environment-setup>\n\n<scope>\nCreate: `docs/plans/cross-platform-mac-linux/ADR-orb-framework.md`.\nThis sub-task pairs with 0.7 (conftest cleanup) in one worktree (WELLE-0 §Parallelism). Do NOT modify orb code.\n<\/scope>\n\n<primary-path>\n1. Open `ui/orb/overlay.py`; confirm the docstring's PySide6-rejection and the three `-transparentcolor` sites; record exact current line numbers.\n2. Confirm `OS-Level/src/overlay/` is PySide6 and not imported by the live desktop app path.\n3. Write the ADR with both paths, the AD-11 rationale (color-key works on Win + macOS), and the explicit \"wrap Tk, do not delete or re-import PySide6\" verdict.\n<\/primary-path>\n\n<fallback-paths>\n- If the cited line numbers have drifted, record the ACTUAL current lines (the WELLE numbers are approximate) and note the drift. Failure condition: the `-transparentcolor` calls cannot be found at all (then escalate — the orb may have changed framework).\n- You may structure the ADR however reads clearly, provided it names both paths with evidence and states the Tk verdict (AD-11).\n<\/fallback-paths>\n\n<acceptance>\ntest -f docs/plans/cross-platform-mac-linux/ADR-orb-framework.md && echo OK\npython -c \"import ui.orb.overlay; print('live orb import ok')\"\ngrep -n \"transparentcolor\" \"ui/orb/overlay.py\"\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-1 — do not rewrite the Tk orb; record the verdict only.\n- HN-6 — no \"works\" claim without a live sign-off (Wave 4 owns that).\nSOFT:\n- Use exact file:line evidence over prose assertions.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- ADR created; both paths named with confirmed file:line.\n- The Tk-vs-PySide6 verdict stated.\n- Any line-number drift recorded.\n- Hard-rules honored (HN-1/HN-6 quoted).\n- Path-taken.\n<\/done-signal>", "0.7": "ultrathink\n<role>\nYou clean the stale `ui.orb` / `OS-Level/src` conftest references so test collection on a Linux runner is honest and the Wave-0 min-passed floor is not polluted by the abandoned PySide6 framework. Your outcome is clean, honest collection — the live Tk orb import keeps working; the abandoned PySide6 tests skip cleanly without PySide6 installed.\n<\/role>\n\n<outcome>\nDONE means:\n- `tests/conftest.py:7` keeps the `sys.path.insert(repo_root)` (live Tk orb lives at top-level `ui/orb/`) but the stale comment no longer implies the orb moved.\n- `tests/overlay/conftest.py` (lines ~1-21): the PySide6 overlay tests are gated behind `pytest.importorskip(\"PySide6\")` (option a) AND marked `skip_ci` so the matrix floor isn't polluted — OR, only if those tests guard no live behavior, moved under `tests/overlay/legacy_pyside/` (option b). Pick (a) unless a test there guards live behavior.\n- `QT_QPA_PLATFORM=offscreen` (`tests/overlay/conftest.py:21`) is KEPT.\n- All acceptance commands pass.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §0.7 (+ §0.6 verdict, which gates this).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-11 + PC-5/PC-6.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-2 (\"Never delete, lower, or 'simplify' a regression guard that pins a Windows fix\") and HN-16 (min-passed floor / mass-skip).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-6 (green-by-mass-skip).\n- Read the current `tests/conftest.py` and `tests/overlay/conftest.py` to see the exact present lines before editing.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 0.6: `../sub-agents-outputs/crossplat-w0-orb` on `crossplat/w0-orb-verdict`.\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nModify: `tests/conftest.py` (the stale comment near the `sys.path.insert`), `tests/overlay/conftest.py` (gate + `skip_ci` the PySide6 path; keep `QT_QPA_PLATFORM=offscreen`).\nDo NOT touch `ui/orb/` or `OS-Level/src/overlay/` source.\n<\/scope>\n\n<primary-path>\n1. Update the `tests/conftest.py` comment to reflect: top-level `ui/orb/` is the live orb; the insert stays.\n2. In `tests/overlay/conftest.py`, ensure `pytest.importorskip(\"PySide6\")` guards the PySide6 import, and add the `skip_ci` marker to the abandoned-framework tests.\n3. Confirm collection on a no-PySide6 box skips cleanly and the live Tk orb import is unbroken.\n<\/primary-path>\n\n<fallback-paths>\n- If a PySide6 test actually exercises live behavior (not just the abandoned tree), do NOT skip_ci it — keep it and note the finding (HN-2). Failure condition: a test you were about to skip pins a Windows orb fix.\n- If `importorskip` is already present at `:27`, just add the `skip_ci` marker and fix the comment. Failure condition: collection still raises `ModuleNotFoundError` without PySide6.\n- You may choose option (b) (move to `legacy_pyside/`) if the tests guard nothing live; record the rationale.\n<\/fallback-paths>\n\n<acceptance>\npytest tests/overlay/ -v\npython -c \"import ui.orb.overlay; print('live orb import ok')\"\ngrep -rn \"OS-Level\" tests/\nruff check tests/overlay/ 2>/dev/null || true\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-2 — do not delete/weaken a regression guard pinning a Windows fix.\n- HN-16 / AP-6 — the abandoned framework must not pollute the passed-count floor (skip_ci it).\nSOFT:\n- Prefer option (a) (importorskip + skip_ci) over moving files.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Comment + conftest edits made (option a or b, with rationale).\n- `tests/overlay/` collects cleanly without PySide6 (output).\n- Live Tk orb import still resolves.\n- Hard-rules honored (HN-2/HN-16 quoted).\n- Path-taken.\n<\/done-signal>", "check-w0": "ultrathink\n<role>\nYou are a read-only phase auditor for Wave 0. Your outcome is a PASS/FAIL verdict on whether Wave 0 satisfies its EK criteria and is safe to merge — you verify, you do NOT modify any file.\n<\/role>\n\n<outcome>\nDONE means a verdict report stating, with command evidence, whether ALL of these hold:\n- The shared `jarvis/platform/` module exists (detector + Capabilities + probes), cache identity holds, and is import-clean.\n- `.github/workflows/ci.yml` defines the 3-OS matrix and the `ci` workflow is green on all three legs (EK-1).\n- The import-cleanliness gate and the min-passed floor both run in CI and pass.\n- The Orb-framework verdict (`ADR-orb-framework.md`) exists and the stale conftest references are cleaned (PC-6).\n- `tests/fakes/fake_capabilities.py` exists (first step toward EK-3).\nIf any fails, the verdict is FAIL with the exact blocking item.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` (the EK acceptance gate section).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` EK-1 + AD-4.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-15 + HN-16 (the CI gate that must hold).\n<\/required-reading>\n\n<environment-setup>\n1. `git switch feat/crossplatform-port` (or the integration branch with the Wave-0 sub-task branches merged in).\n2. `pip install -e \".[dev]\"`\nRead-only: do not create a worktree, do not edit anything.\n<\/environment-setup>\n\n<scope>\nModify: NOTHING. Verification only.\n<\/scope>\n\n<primary-path>\n1. Run each acceptance command below and capture output.\n2. Check the live CI run status via `gh`.\n3. Render the PASS/FAIL verdict against the five outcome items.\n<\/primary-path>\n\n<fallback-paths>\n- If `gh` cannot reach the run, report the matrix as \"unverified — CI status unreachable\" rather than guessing PASS. Failure condition: no network.\n<\/fallback-paths>\n\n<acceptance>\npython -c \"from jarvis.platform import detect_platform; print(detect_platform())\"\npython -c \"from jarvis.platform.capabilities import detect_capabilities as d; print(d() is d())\"\npython scripts/ci/check_import_clean.py\npython -c \"import yaml; d=yaml.safe_load(open('.github/workflows/ci.yml')); assert d['jobs']['test']['strategy']['matrix']['os']==['ubuntu-latest','macos-latest','windows-latest']; print('matrix ok')\"\ntest -f docs/plans/cross-platform-mac-linux/ADR-orb-framework.md && echo \"adr ok\"\ntest -f tests/fakes/fake_capabilities.py && echo \"fake ok\"\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — do not declare Wave 0 mergeable unless the matrix is genuinely green on all three legs.\nSOFT:\n- Be explicit about any item you could not verify.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Platform module + cache + import-clean: PASS/FAIL.\n- CI matrix shape + live green status: PASS/FAIL (with run URL).\n- Gate + floor present and passing: PASS/FAIL.\n- Orb verdict + conftest cleanup + first fake: PASS/FAIL.\n- Overall verdict + path-taken; if FAIL, the exact blocker.\n<\/done-signal>", "merge-w0": "ultrathink\n<role>\nYou mechanically merge Wave 0's sub-task branches onto the integration branch in the prescribed order, run the wave acceptance, and push only if green. This is step-prescriptive — follow the steps exactly; do not improvise feature code.\n<\/role>\n\n<outcome>\nDONE means: the three Wave-0 sub-task branches are merged with `--no-ff` onto `feat/crossplatform-port` in the order platform-module → orb-verdict (conftest cleanup) → ci-matrix; the wave acceptance passes locally; the CI matrix is green; and the integration branch is pushed. If any merge conflicts or any acceptance fails, you STOP and hand off to the matching recovery prompt — you do NOT force anything.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §Parallelism (merge order: platform module → conftest cleanup → CI workflow last).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-15 (matrix green before merge), HN-16 (floor), HN-17 (no force-push / no --no-verify).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git switch feat/crossplatform-port`\n3. `git fetch origin`\n4. `git pull --ff-only origin feat/crossplatform-port`\n5. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nBranches to merge (in order): `crossplat/w0-platform-module`, `crossplat/w0-orb-verdict`, `crossplat/w0-ci-matrix`.\nModify: only merge commits + conflict resolutions. No new features.\n<\/scope>\n\n<primary-path>\n1. `git merge --no-ff crossplat/w0-platform-module` → if clean, `pip install -e \".[dev]\"`, run acceptance.\n2. `git merge --no-ff crossplat/w0-orb-verdict` → run acceptance.\n3. `git merge --no-ff crossplat/w0-ci-matrix` → run acceptance.\n4. After all three: run the full wave acceptance; if green, `git push origin feat/crossplatform-port` and watch `gh pr checks --watch` / `gh run list`.\n<\/primary-path>\n\n<fallback-paths>\n- On a merge conflict → STOP, hand off to `recovery-merge-conflict` with the conflicted paths.\n- On red CI after push → STOP, hand off to `recovery-red-ci`.\n- Never resolve a conflict by deleting a regression guard (HN-2) or by force-push (HN-17).\n<\/fallback-paths>\n\n<acceptance>\npython scripts/ci/check_import_clean.py\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\nruff check jarvis/ && ruff format --check jarvis/ && mypy jarvis/platform/\ngit log --oneline --merges -3\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — push only if the matrix is green.\n- HN-17 — never `git push --force`, never `--no-verify`.\nSOFT:\n- Keep `--no-ff` so each sub-task stays a visible merge unit.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The three merges done in order (merge hashes).\n- Wave acceptance result.\n- CI matrix green status (run URL).\n- Hard-rules honored (HN-15/HN-17 quoted).\n- Path-taken / any handoff to a recovery prompt.\n<\/done-signal>", "1.5": "ultrathink\n<role>\nYou add the `[desktop]` extras entries (ptyprocess + pynput) that Wave-1's terminal and hotkey ports need. Your outcome is a one-line-each additive pyproject edit that keeps the base €5-VPS install clean. Land this FIRST so Worktrees A and C do not collide on pyproject.toml.\n<\/role>\n\n<outcome>\nDONE means:\n- `pyproject.toml` `[project.optional-dependencies].desktop` gains `\"pynput>=1.7\"` (NO platform marker — all-platform) and `\"ptyprocess>=0.7; sys_platform != 'win32'\"` (POSIX-only).\n- It does NOT add `pyobjc-*` (that is Wave 2's `[desktop-macos]`) and does NOT add `pyatspi` (distro-only, never pip — AD-14/HN-9).\n- After the edit, `pip install -e \".[desktop]\" --no-deps` then `import ptyprocess, pynput` works on a POSIX box.\n- All acceptance commands pass.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-1-easy-ports.md` §1.5.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-14 (dependency grouping).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-8 (\"Never add pyobjc-*, pyatspi, or pynput to the base dependencies. Extras only\"), HN-9 (pyatspi distro-only), HN-10 (Windows-only deps need the sys_platform marker).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-3 (pyatspi is not pip-installable).\n- Mirror the existing `sys_platform` marker pattern at `pyproject.toml:99-110`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w1-deps ../sub-agents-outputs/crossplat-w1-deps feat/crossplatform-port`\n3. `pip install -e \".[dev]\"`\n4. After editing extras, reinstall per the BUG-006/014 contract: `pip install -e \".[desktop]\" --no-deps`\n<\/environment-setup>\n\n<scope>\nModify: `pyproject.toml` (the `desktop` extras group only). Touch nothing else.\n<\/scope>\n\n<primary-path>\n1. Open the `desktop` group at `pyproject.toml:99-110`; add the two lines mirroring the existing marker style.\n2. Reinstall + import-verify.\n<\/primary-path>\n\n<fallback-paths>\n- If a `desktop` group does not exist exactly at those lines (drift), find the real `[project.optional-dependencies]` `desktop` array and add there; if no `desktop` group exists, create it. Failure condition: tomllib cannot parse the file after the edit.\n- You may choose slightly higher minimum versions if the pinned ones are yanked, provided the markers (none for pynput; `sys_platform != 'win32'` for ptyprocess) are correct.\n<\/fallback-paths>\n\n<acceptance>\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); deps=d['project']['optional-dependencies']['desktop']; assert any(x.startswith('pynput') for x in deps) and any('ptyprocess' in x for x in deps)\"\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); deps=d['project']['optional-dependencies']['desktop']; assert all('pyobjc' not in x and 'pyatspi' not in x for x in deps)\"\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-8 — extras only; no port lib in base `dependencies`.\n- HN-9 / AP-3 — never add `pyatspi` to pyproject.\n- HN-10 — `ptyprocess` carries `sys_platform != 'win32'`.\nSOFT:\n- Keep the edit minimal and additive.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The two lines added + markers confirmed (tomllib assertion output).\n- No pyobjc/pyatspi present (assertion output).\n- `pip install -e \".[desktop]\"` + import verify result.\n- Hard-rules honored (HN-8/HN-9/HN-10 quoted).\n- Path-taken.\n<\/done-signal>", "1.1": "ultrathink\n<role>\nYou port the built-in terminal to Unix via a `PtyBackend` seam, with `ptyprocess` as the POSIX backend. This is the standout verification win — a real PTY runs end-to-end on the CI runners. Your outcome is a Unix PTY backend that mirrors pywinpty 1:1, with str↔bytes normalized once at the seam, and the Windows path untouched.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/terminal/backend.py` defines a `PtyBackend` Protocol (the 5 methods the read-loop uses, normalized: `spawn(argv,cwd,cols,rows)->PtyHandle`; handle `write(str)->None`, `setwinsize(rows,cols)->None`, `read(size)->str`, `isalive()->bool`, `terminate(force:bool)->None`, `exitstatus->int|None`, `pid->int`) + `WinptyBackend` (thin wrapper preserving the exact `RuntimeError(\"pywinpty nicht installiert …\")` degrade at `pty_manager.py:72-75`) + `UnixPtyBackend` (ptyprocess) + `make_pty_backend()` factory.\n- `jarvis/terminal/pty_manager.py` routes through the seam: the inline `from winpty import PtyProcess` (`:71`) and the five direct `proc.*` calls (`:127`,`:138`,`:173`,`:193`,`:206`,`:225`) go through `PtyBackend`. The daemon-thread read-loop (`_reader_loop` `:179-239`) stays structurally identical (AD-9: NO async rewrite).\n- `UnixPtyBackend.read` decodes bytes→str (utf-8/replace); `write` encodes str→bytes; `spawn` honors `dimensions=(rows, cols)`.\n- `make_pty_backend()` returns `UnixPtyBackend` on POSIX, `WinptyBackend` on Windows, and a null backend (whose `spawn` raises a clear English RuntimeError the manager surfaces as a typed error) when `not capabilities.has_pty`.\n- `tests/unit/terminal/test_unix_pty.py` spawns a real `bash -c \"echo hi\"` via ptyprocess and asserts the round-trip + `exitstatus == 0`.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-1-easy-ports.md` §1.1 (the full seam spec + the exact line references).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-9 (ptyprocess 1:1, no async rewrite) + AD-6 (graceful null) + AD-7 (Windows untouched).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-1 (never rewrite the Windows impl; add a sibling behind the seam), HN-4 (no factory branch raises; degrade), HN-7 (no module-scope Windows import).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-1 (str↔bytes mismatch at the PtyBackend seam — read the full counter-pattern) + AP-12 (ship a fake, no unittest.mock).\n- Read `jarvis/terminal/pty_manager.py` around the cited lines to see the existing `isinstance(data, bytes)` defensive branch at `:210-214`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w1-terminal-pty ../sub-agents-outputs/crossplat-w1-terminal feat/crossplatform-port`\n3. Ensure 1.5's `[desktop]` extras are present (rebase if 1.5 landed separately); `pip install -e \".[dev,desktop]\" --no-deps` (or `.[dev]` + ensure `ptyprocess` importable on POSIX).\n4. `python -c \"import jarvis; print(jarvis.__file__)\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/terminal/backend.py`, `tests/fakes/fake_pty_backend.py`, `tests/unit/terminal/test_unix_pty.py`.\nModify: `jarvis/terminal/pty_manager.py` (route through the seam; keep the read-loop structure). Do NOT touch the Windows winpty behavior beyond relocating its import into `WinptyBackend`.\n<\/scope>\n\n<primary-path>\n1. Define `PtyBackend` Protocol + `PtyHandle` Protocol in `backend.py`.\n2. Implement `WinptyBackend` (lazy `from winpty import PtyProcess`, preserve the exact RuntimeError degrade) and `UnixPtyBackend` (lazy `from ptyprocess import PtyProcess`, str↔bytes at the seam, `dimensions=(rows,cols)`).\n3. Implement `make_pty_backend()` selecting on `detect_platform()` + `capabilities.has_pty`; null backend otherwise.\n4. Rewire `PtyManager.spawn` (`:55`) + `PtySession.proc` (`:39`) to the seam; leave the read-loop intact.\n5. Write `fake_pty_backend.py` (a FakePtyBackend yielding scripted str chunks) + `test_unix_pty.py` (real ptyprocess `echo hi` round-trip + the fake contract test pinning up-seam type is `str`).\n<\/primary-path>\n\n<fallback-paths>\n- If `ptyprocess.spawn` signature differs by version (`dimensions` vs `rows`/`cols`), adapt at the seam and pin with the fake. Failure condition: spawn raises a TypeError.\n- If the read-loop's existing `isinstance(data, bytes)` branch double-decodes after the seam normalizes, remove the now-redundant branch ONLY inside the loop and document it (the seam now guarantees str). Failure condition: mojibake in the round-trip test.\n- You may invent the handle abstraction shape if the prescribed one fights ptyprocess, provided AD-9 (no async rewrite) and AP-1 (str up-seam) hold, pinned by the contract test.\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/terminal/test_unix_pty.py -v\npytest tests/unit/terminal/ -v\npython -c \"from jarvis.terminal.backend import make_pty_backend; print(type(make_pty_backend()).__name__)\"\npython -c \"import ast; m=ast.parse(open('jarvis/terminal/pty_manager.py').read()); assert not any(getattr(n,'module',None)=='winpty' for n in ast.walk(m) if isinstance(n,ast.ImportFrom) and getattr(n,'col_offset',1)==0)\"\nruff check jarvis/terminal/ && mypy jarvis/terminal/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-1 / AD-7 — the Windows winpty behavior is untouched; only relocated behind `WinptyBackend`.\n- HN-4 — `make_pty_backend()` never raises; the null backend surfaces a typed RuntimeError on spawn.\n- HN-7 / AP-13 — no module-scope `winpty`/`ptyprocess` import; lazy inside the backend.\n- AP-1 — normalize str↔bytes ONCE at the seam; up-seam type is always `str`.\nSOFT:\n- `argv` is `(path, \"-i\")`-style from shells.py; do not hardcode shells here.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `PtyBackend` + the three backends + factory; the 5 method mappings.\n- Real-PTY round-trip test result (echo hi, exitstatus 0).\n- str↔bytes normalization location + the AP-1 contract test.\n- Hard-rules honored (HN-1/HN-4/HN-7/AP-1 quoted).\n- Path-taken + whether the read-loop's isinstance branch was kept/removed.\n<\/done-signal>", "1.2": "ultrathink\n<role>\nYou add Unix shell discovery to the terminal so the Unix PTY backend has shells to spawn. Your outcome is a `_unix_shells()` branch in `discover_shells()` that finds POSIX shells in preference order, with the four Windows shell factories left completely untouched.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/terminal/shells.py` gains `_unix_shells() -> list[ShellInfo]` returning POSIX shells in order: (1) `$SHELL` if set and on disk (label from basename); (2) parsed `/etc/shells` paths; (3) `shutil.which(\"bash\"/\"zsh\"/\"fish\")` fallback. Deduped by resolved path. Each `ShellInfo.argv == (path, \"-i\")` (interactive, never unconditional `-l`).\n- `discover_shells()` (`:71-78`) dispatches on `detect_platform()`: `win32` → the four unchanged Windows factories (`_powershell_7` `:23`, `_windows_powershell` `:35`, `_cmd` `:48`, `_git_bash` `:55`); else → `_unix_shells()`.\n- `get_shell(shell_id)` (`:81`) works unchanged.\n- `tests/unit/terminal/test_unix_shells.py` green; the file introduces no module-scope Windows-only import.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-1-easy-ports.md` §1.2.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-9 + AD-7 (Windows factories untouched).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-1 (add a sibling, never rewrite the Windows impl), HN-3 (read platform from the capability/detect module, not inline drift), HN-7 (no module-scope Windows import).\n- Read `jarvis/terminal/shells.py` to see `ShellInfo` and the four Windows factories.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 1.1 (Worktree A — Terminal): `../sub-agents-outputs/crossplat-w1-terminal` on `crossplat/w1-terminal-pty`.\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nModify: `jarvis/terminal/shells.py` (add `_unix_shells()` + the dispatch). Create: `tests/unit/terminal/test_unix_shells.py`. Leave the four Windows factories untouched.\n<\/scope>\n\n<primary-path>\n1. Write `_unix_shells()` with the three-tier discovery + dedupe-by-resolved-path + `(path, \"-i\")` argv.\n2. Gate `discover_shells()` on `detect_platform()`.\n3. Write the test: monkeypatch `$SHELL`, a fake `/etc/shells`, and `shutil.which`; assert dedupe + order + argv.\n<\/primary-path>\n\n<fallback-paths>\n- If `/etc/shells` is absent (some minimal containers), skip tier 2 gracefully and rely on `$SHELL`/`which`. Failure condition: discovery returns empty on a box that has bash.\n- If `$SHELL` points at a path not on disk, skip it (don't trust the env blindly). Failure condition: a non-existent shell is offered.\n- You may add `dash`/`sh` to the `which` fallback list if bash/zsh/fish are all absent, provided the Windows branch is untouched (HN-1).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/terminal/test_unix_shells.py -v\npython -c \"from jarvis.terminal.shells import discover_shells; print([s.id for s in discover_shells()])\"\npython -c \"import ast; m=ast.parse(open('jarvis/terminal/shells.py').read()); assert all(getattr(n,'module',None)!='winreg' for n in ast.walk(m))\"\nruff check jarvis/terminal/ && mypy jarvis/terminal/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-1 / AD-7 — the four Windows shell factories are untouched.\n- HN-3 — dispatch via `detect_platform()`, not scattered inline `sys.platform`.\n- HN-7 — no module-scope Windows import.\nSOFT:\n- Use `(path, \"-i\")`, never unconditional `-l` (slow profile re-source).\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `_unix_shells()` + the three-tier order + dedupe approach.\n- Dispatch gated on `detect_platform()`.\n- Test result + the discovered shell ids on the box.\n- Hard-rules honored (HN-1/HN-3/HN-7 quoted).\n- Path-taken.\n<\/done-signal>", "1.3": "ultrathink\n<role>\nYou port app-launch-by-name to macOS (`open -a`) and Linux (`xdg-open`/direct exec), with a platform-conditional `KNOWN_APPS` whitelist. Your outcome is cross-platform launch resolution that keeps the anti-STT-hallucination gate intact and reuses the OS-agnostic URL/path/Spotify escape hatches verbatim.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/plugins/tool/app_resolver.py`: `resolve_app_launch_target` (`:88`) branches on `detect_platform()` — macOS prefers `LaunchTarget(\"open_a\", canonical)` (fallback `shutil.which`); Linux prefers `shutil.which(canonical)` for direct exec else `LaunchTarget(\"xdg_open\", canonical)`. The URL/path escape hatch (`:96-99`) + Spotify protocol case (`:102`) are kept; `winreg` stays lazy-guarded (`:24-27`). The `LaunchKind` Literal (`:30`) gains `\"open_a\"` and `\"xdg_open\"`. `_EXE_ALIASES` (`:54`) becomes platform-conditional.\n- `jarvis/plugins/tool/open_app.py`: `KNOWN_APPS` (`:23`) selected by `detect_platform()` — keep Windows set as `_KNOWN_APPS_WIN`; add `_KNOWN_APPS_DARWIN` (safari, terminal, finder, calculator, firefox, chrome, vscode, slack, …) and `_KNOWN_APPS_LINUX` (firefox, nautilus, gnome-terminal, gnome-calculator, code, chromium, …) per AD-15. `_is_plausible_app_name` (`:68`), `_APP_NAME_RE`/`_HALLUCINATION_RE` (`:52`/`:58`), and the PATH/URL/path escape hatches (`:81-89`) are reused verbatim. `OpenAppTool.execute` (`:116`) branches launch on `LaunchKind`: `open_a`→`Popen([\"open\",\"-a\",value,*args])`, `xdg_open`→`Popen([\"xdg-open\",value])`, `executable`→`Popen([value,*args])`, `startfile`→Windows-only (`:153`). Every `Popen` keeps `shell=False`.\n- `tests/unit/plugins/tool/test_app_resolver_unix.py` green.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-1-easy-ports.md` §1.3 (the full branch spec + line refs).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-15 (platform-conditional KNOWN_APPS) + AD-6 (graceful) + AD-7 (Windows untouched).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-3 (read platform from the shared module), HN-4 (no branch raises), HN-7 (no module-scope Windows import), HN-18 (\"Every new subprocess on ANY OS passes creationflags/equivalent from jarvis/core/process_utils.py\").\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-11 (don't re-detect sys.platform per call-site) + AP-12 (ship a fake).\n- CLAUDE.md AP-1 — `NO_WINDOW_CREATIONFLAGS` from `jarvis/core/process_utils.py` on every subprocess.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w1-app-launch ../sub-agents-outputs/crossplat-w1-applaunch feat/crossplatform-port`\n3. `pip install -e \".[dev]\"`\n4. `python -c \"import jarvis; print(jarvis.__file__)\"`\n<\/environment-setup>\n\n<scope>\nModify: `jarvis/plugins/tool/app_resolver.py`, `jarvis/plugins/tool/open_app.py`. Create: `tests/unit/plugins/tool/test_app_resolver_unix.py`.\nThis worktree owns no shared file with A or C. Do NOT edit `pyproject.toml` (that is 1.5).\n<\/scope>\n\n<primary-path>\n1. Extend `LaunchKind` with `open_a`/`xdg_open`; make `_EXE_ALIASES` platform-conditional.\n2. Branch `resolve_app_launch_target` on `detect_platform()`, keeping the escape hatches.\n3. Split `KNOWN_APPS` into `_KNOWN_APPS_{WIN,DARWIN,LINUX}` + select by platform; reuse the plausibility gate verbatim.\n4. Branch `OpenAppTool.execute` launch on `LaunchKind`; route every `Popen` through `NO_WINDOW_CREATIONFLAGS` (HN-18) and keep `shell=False`.\n5. Write `test_app_resolver_unix.py` monkeypatching `detect_platform`→darwin/linux, asserting: safari→open_a, a PATH tool→executable, an unknown name→xdg_open/raw, a URL short-circuits to the shell verb.\n<\/primary-path>\n\n<fallback-paths>\n- If `xdg-open` is absent on a minimal Linux box, fall back to direct exec via `which` and log; never raise (HN-4). Failure condition: resolution raises on a box with no xdg-open.\n- If the `.desktop` walk (`$XDG_DATA_DIRS/applications` + `~/.local/share/applications`) is too heavy for CI, gate it behind a cheap existence check and unit-test the resolver logic with a fake filesystem. Failure condition: the test needs a real desktop.\n- You may add more KNOWN_APPS entries per OS as long as the plausibility regex + escape hatches are reused verbatim (AD-15) and platform is read via the shared module (AP-11).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/plugins/tool/test_app_resolver_unix.py -v\npython -c \"from jarvis.plugins.tool.open_app import KNOWN_APPS; assert 'safari' in KNOWN_APPS or 'firefox' in KNOWN_APPS\"\npytest tests/unit/plugins/tool/ -k app -v\npython -c \"import ast; src=open('jarvis/plugins/tool/open_app.py').read(); assert 'shell=True' not in src\"\nruff check jarvis/plugins/tool/ && mypy jarvis/plugins/tool/app_resolver.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-3 / AP-11 — platform via the shared `detect_platform()`, not scattered inline checks.\n- HN-4 — resolution degrades, never raises.\n- HN-7 — `winreg` stays lazy-guarded; no new module-scope Windows import.\n- HN-18 — every `Popen` uses `NO_WINDOW_CREATIONFLAGS`; `shell=False` always.\n- AD-7 — the Windows launch branch (`startfile`) is untouched.\nSOFT:\n- Reuse `_is_plausible_app_name`/regex/escape hatches verbatim — only the whitelist set swaps.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `LaunchKind` extension + the per-OS resolution branches.\n- The three `KNOWN_APPS` sets + selection.\n- `shell=False` + `NO_WINDOW_CREATIONFLAGS` confirmed on every Popen.\n- Hard-rules honored (HN-3/HN-4/HN-7/HN-18 quoted).\n- Path-taken + how the .desktop walk was tested.\n<\/done-signal>", "1.4": "ultrathink\n<role>\nYou port the global hotkey to a dual-backend seam: Windows keeps `global-hotkeys` (with its battle-tested L/R-Alt + refcount bug fixes), macOS/Linux gain `pynput`, and Wayland degrades to a logged no-op. Your outcome is a `HotkeyBackend` seam where the Windows logic is RELOCATED verbatim (not refactored) and the degrade contract + PTT edges are unchanged.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/trigger/backends/__init__.py` defines `HotkeyBackend` Protocol (`register(bindings,on_event)`, `unregister()`, `start()`, `stop()`, `received_any_event()->bool`) + `make_hotkey_backend()` factory.\n- `jarvis/trigger/backends/global_hotkeys.py` holds the RELOCATED-VERBATIM Windows logic: `_KEY_MAP` (`hotkey.py:50`), `_normalize_combo` (`:104`), the module-level `_CHECKER_LOCK`/`_CHECKER_REFCOUNT` guard (`:69-101`), the idempotent pre-remove→register sequence (`:278-301`). These carry the BUG fixes — relocate, do not refactor (AD-7).\n- `jarvis/trigger/backends/pynput.py` maps jarvis combo syntax (`ctrl+right_alt+j`) to pynput (`<ctrl>+<alt>+j`), keeps a tiny refcount, and on macOS flags \"registered but zero events\" via `received_any_event()` (AD-8 Input-Monitoring guidance).\n- `jarvis/trigger/backends/noop.py` is returned when `not capabilities.has_hotkey` (true on Wayland); logs ONCE the English \"global hotkey unavailable on Wayland by OS design; lean on the wake word\" message then no-ops.\n- `make_hotkey_backend()`: win32→GlobalHotkeysBackend; else if `capabilities.has_hotkey`→PynputBackend; else→NoopBackend.\n- `jarvis/trigger/hotkey.py`: `HotkeyTrigger.__aenter__` (`:238`) calls the factory; its try/except degrade-to-None semantics + the \"voice still works via wake word\" message (`:243-248`) + `validate_hotkey` (`:121`) + the PTT press/release edges (`:256-267`) stay intact.\n- The existing 48-case `tests/unit/trigger/test_hotkey.py` stays green; `tests/unit/trigger/test_hotkey_backends.py` green.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-1-easy-ports.md` §1.4 (the full relocation spec + line refs).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-8 (dual backend + Wayland no-op + macOS zero-events detection) + AD-7 (Windows untouched) + AD-6.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-1 (relocate, never refactor the Windows impl), HN-2 (don't weaken the 48-case regression guard), HN-4 (no branch raises; degrade), HN-7 (no module-scope `global_hotkeys` import).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-4 (Wayland hotkey silently dead — read the full counter-pattern) + AP-12 (ship a fake, no unittest.mock).\n- Read `jarvis/trigger/hotkey.py` around the cited lines (the refcount guard + the degrade contract).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w1-hotkey ../sub-agents-outputs/crossplat-w1-hotkey feat/crossplatform-port`\n3. Ensure 1.5's `[desktop]` (pynput) is present (rebase if landed separately); `pip install -e \".[dev,desktop]\" --no-deps`.\n4. `python -c \"import jarvis; print(jarvis.__file__)\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/trigger/backends/__init__.py`, `jarvis/trigger/backends/global_hotkeys.py`, `jarvis/trigger/backends/pynput.py`, `jarvis/trigger/backends/noop.py`, `tests/fakes/fake_hotkey_backend.py`, `tests/unit/trigger/test_hotkey_backends.py`.\nModify: `jarvis/trigger/hotkey.py` (route through the factory; keep degrade contract + PTT edges + validate_hotkey).\n<\/scope>\n\n<primary-path>\n1. Define `HotkeyBackend` Protocol + `make_hotkey_backend()` in `backends/__init__.py`.\n2. RELOCATE the Windows logic verbatim into `global_hotkeys.py` (copy `_KEY_MAP`, `_normalize_combo`, the refcount guard, the pre-remove→register sequence — do NOT rewrite).\n3. Implement `PynputBackend` (combo translation + tiny refcount + zero-events flag) and `NoopBackend` (log-once + no-op).\n4. Rewire `HotkeyTrigger.__aenter__` to the factory, mapping the old `self._gh=None` degrade onto `backend=None`; keep the messages + PTT edges.\n5. Write `fake_hotkey_backend.py` + `test_hotkey_backends.py` (factory selection per platform; the Windows refcount 0↔1 boundary; noop logs-once-then-no-ops without raising). Re-run the 48-case suite.\n<\/primary-path>\n\n<fallback-paths>\n- If `pynput.keyboard.GlobalHotKeys` cannot express the PTT both-edges case, use a `pynput.keyboard.Listener` for press+release and synthesize the combo match. Failure condition: PTT release never fires.\n- If relocating the module-level refcount globals breaks `_reset_checker_state_for_tests` (`:97`), keep that reset hook working by re-exporting/redirecting it to the backend module. Failure condition: a test that resets checker state fails.\n- You may invent the combo-syntax translation table if the prescribed `<ctrl>+<alt>+j` mapping is incomplete, provided the Windows `_normalize_combo` is untouched (HN-1) and Wayland still no-ops (AP-4).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/trigger/test_hotkey_backends.py -v\npytest tests/unit/trigger/test_hotkey.py -v\npython -c \"from jarvis.trigger.backends import make_hotkey_backend; print(type(make_hotkey_backend()).__name__)\"\npython -c \"import ast; m=ast.parse(open('jarvis/trigger/hotkey.py').read()); assert not any(getattr(n,'names',None) and any(a.name=='global_hotkeys' for a in n.names) for n in ast.walk(m) if isinstance(n,ast.Import))\"\nruff check jarvis/trigger/ && mypy jarvis/trigger/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-1 / AD-7 — the Windows hotkey logic is RELOCATED verbatim, never refactored (it carries the L/R-Alt + refcount + remove-by-string bug fixes).\n- HN-2 — the 48-case `test_hotkey.py` regression suite stays green; do not weaken it.\n- HN-4 / AP-4 — Wayland → NoopBackend logs once + no-ops; never registers a dead listener; never raises.\n- HN-7 — no module-scope `global_hotkeys` import in `hotkey.py` (lazy inside the backend is fine).\nSOFT:\n- macOS zero-events detection feeds the wizard's Input-Monitoring grant message.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The seam + three backends + factory selection.\n- Confirmation the Windows logic was relocated verbatim (not refactored).\n- 48-case suite + new backend tests: green.\n- Hard-rules honored (HN-1/HN-2/HN-4/HN-7 quoted).\n- Path-taken + the PTT both-edges approach on pynput.\n<\/done-signal>", "check-w1": "ultrathink\n<role>\nYou are a read-only phase auditor for Wave 1. Your outcome is a PASS/FAIL verdict on whether the three easy ports (terminal, app-launch, hotkey) meet EK-2/EK-3/EK-4 and are safe to merge. You verify; you do not modify.\n<\/role>\n\n<outcome>\nDONE means a verdict report stating, with command evidence, whether:\n- Terminal: `make_pty_backend()` selects per platform; a real-PTY test passes; the read-loop is unchanged (AD-9); str up-seam (AP-1) pinned by a fake (EK-4).\n- App-launch: per-OS resolution + platform `KNOWN_APPS`; `shell=False` everywhere; resolution tests green.\n- Hotkey: dual backend + Wayland no-op; the 48-case suite still green; module-scope `global_hotkeys` import gone.\n- Each new seam ships a `tests/fakes/` fake; no `unittest.mock` (EK-3).\n- The CI matrix is still green on all three legs (HN-15).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-1-easy-ports.md` (EK acceptance gate).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` EK-2/EK-3/EK-4.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-1/HN-2/HN-4/HN-7/HN-15.\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-1/AP-4/AP-12.\n<\/required-reading>\n\n<environment-setup>\n1. `git switch feat/crossplatform-port` (with Wave-1 branches merged in, or check each branch).\n2. `pip install -e \".[dev,desktop]\" --no-deps`\nRead-only.\n<\/environment-setup>\n\n<scope>\nModify: NOTHING. Also `grep` for `unittest.mock` in the new test files and for any `shell=True` in the touched tool modules.\n<\/scope>\n\n<primary-path>\n1. Run each acceptance command; capture output.\n2. Grep for `unittest.mock` in the three new test files + `shell=True` in open_app.\n3. Confirm the CI run is green.\n4. Render the verdict.\n<\/primary-path>\n\n<fallback-paths>\n- If a sub-task branch is not yet merged, audit it on its own branch and note the integration state. Failure condition: a branch is missing.\n<\/fallback-paths>\n\n<acceptance>\npython -c \"from jarvis.terminal.backend import make_pty_backend; print(type(make_pty_backend()).__name__)\"\npytest tests/unit/terminal/ -v\npytest tests/unit/plugins/tool/ -k app -v\npytest tests/unit/trigger/test_hotkey.py tests/unit/trigger/test_hotkey_backends.py -v\ngrep -rn \"unittest.mock\" tests/fakes/fake_pty_backend.py tests/fakes/fake_hotkey_backend.py || echo \"no unittest.mock in new fakes\"\ngrep -n \"shell=True\" jarvis/plugins/tool/open_app.py || echo \"no shell=True\"\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — do not declare mergeable unless the matrix is green.\n- HN-2 — confirm the 48-case hotkey suite is intact, not weakened.\nSOFT:\n- Be explicit about any unverified item.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Terminal verdict (real-PTY + read-loop intact + fake).\n- App-launch verdict (resolution + shell=False).\n- Hotkey verdict (dual backend + 48-case green + import gone).\n- EK-3 fakes / no-mock + CI green: PASS/FAIL.\n- Overall verdict + path-taken; if FAIL, the exact blocker.\n<\/done-signal>", "merge-w1": "ultrathink\n<role>\nYou mechanically merge Wave 1's branches onto the integration branch, run the wave acceptance, and push only if green. Step-prescriptive.\n<\/role>\n\n<outcome>\nDONE means: `crossplat/w1-deps` merges FIRST (the shared pyproject edit), then the three feature branches (`crossplat/w1-terminal-pty`, `crossplat/w1-app-launch`, `crossplat/w1-hotkey`) merge `--no-ff` onto `feat/crossplatform-port`; the wave acceptance passes; the CI matrix is green; the branch is pushed. Any conflict or red CI → STOP and hand off to the matching recovery prompt.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-1-easy-ports.md` §Parallelism (land 1.5 first to avoid the pyproject conflict).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-15, HN-16, HN-17.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git switch feat/crossplatform-port`\n3. `git fetch origin && git pull --ff-only origin feat/crossplatform-port`\n4. `pip install -e \".[dev,desktop]\" --no-deps`\n<\/environment-setup>\n\n<scope>\nBranches in order: `crossplat/w1-deps`, then `crossplat/w1-terminal-pty`, `crossplat/w1-app-launch`, `crossplat/w1-hotkey`. Merge commits + conflict resolutions only.\n<\/scope>\n\n<primary-path>\n1. `git merge --no-ff crossplat/w1-deps`; reinstall extras.\n2. `git merge --no-ff crossplat/w1-terminal-pty` → reinstall → run acceptance.\n3. `git merge --no-ff crossplat/w1-app-launch` → run acceptance.\n4. `git merge --no-ff crossplat/w1-hotkey` → run acceptance.\n5. Full wave acceptance; if green, `git push origin feat/crossplatform-port`; watch CI.\n<\/primary-path>\n\n<fallback-paths>\n- Merge conflict (likely on `pyproject.toml` if 1.5 wasn't landed first) → STOP, hand off to `recovery-merge-conflict`.\n- Red CI after push → STOP, hand off to `recovery-red-ci`.\n- Never force-push (HN-17), never delete a regression guard to resolve a conflict (HN-2).\n<\/fallback-paths>\n\n<acceptance>\npython scripts/ci/check_import_clean.py\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\npytest tests/unit/terminal/ tests/unit/trigger/test_hotkey.py tests/unit/plugins/tool/ -k \"app or hotkey or pty or shell\" -q\nruff check jarvis/ && mypy jarvis/terminal/ jarvis/trigger/ jarvis/plugins/tool/app_resolver.py\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — push only if green.\n- HN-17 — no force-push, no `--no-verify`.\nSOFT:\n- Land 1.5 first; `--no-ff` for each unit.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Merge order + hashes (deps first).\n- Wave acceptance result.\n- CI matrix green status (run URL).\n- Hard-rules honored (HN-15/HN-17 quoted).\n- Path-taken / any recovery handoff.\n<\/done-signal>", "2.3": "ultrathink\n<role>\nYou build the native-role → canonical-UIA-role normalization table that keeps the model prompt platform-agnostic. This is the quick first PR that 2.1 and 2.2 build on. Your outcome is a `normalize_role()` that maps macOS AX roles and Linux AT-SPI roles into the SAME canonical UIA vocabulary the Windows path already uses — so the model never sees `AXButton` or `push button`, only `Button`.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/vision/role_map.py` defines the macOS AX table, the Linux AT-SPI table, and `normalize_role(native_role, platform) -> str`.\n- Every output role is a member of the canonical set: `_CLICKABLE_UIA_ROLES` (`screenshot_only_loop.py:1072`) ∪ `DEFAULT_INTERESTING_ROLES` (`pruning.py:51`): {Button, MenuItem, ListItem, TabItem, CheckBox, RadioButton, Hyperlink, Edit, ComboBox, TreeItem, SplitButton, Text}.\n- Representative mappings hold: `AXButton`→Button, `AXTextField`/`AXTextArea`→Edit, `AXPopUpButton`/`AXComboBox`→ComboBox, `AXMenuItem`→MenuItem, `AXLink`→Hyperlink, `AXStaticText`→Text, `AXRow`/`AXCell`→ListItem, `AXOutlineRow`→TreeItem; `ROLE_PUSH_BUTTON`→Button, `ROLE_TEXT`/`ROLE_ENTRY`→Edit, `ROLE_COMBO_BOX`→ComboBox, `ROLE_MENU_ITEM`→MenuItem, `ROLE_LINK`→Hyperlink, `ROLE_LABEL`→Text, `ROLE_PAGE_TAB`→TabItem, `ROLE_LIST_ITEM`/`ROLE_TABLE_CELL`→ListItem, `ROLE_TREE_ITEM`→TreeItem. Unknown roles map to `Text` (visible, not pixel-guessed) or are droppable by `filter_by_role`.\n- `tests/unit/vision/test_role_map.py` green with a parity assertion that EVERY produced role is in the canonical set.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §2.3.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-10 (normalize into canonical UIA vocabulary).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-3 (single source of truth, no drift) and HN-7 (no module-scope OS import — pyobjc/pyatspi constants are NOT imported here; use plain strings).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-8 (role-vocabulary drift = the BUG-008 multi-layer-enum-drift class — read the full counter-pattern; note the live source of the role set is `screenshot_only_loop.py:1072`).\n- `docs/anti-drift-three-layer.md` (the five-layer pattern this defends).\n- Read `jarvis/harness/screenshot_only_loop.py:1072` and `jarvis/vision/pruning.py:51` to copy the canonical set EXACTLY.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w2-ui-click ../sub-agents-outputs/crossplat-w2-uiclick feat/crossplatform-port`\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/vision/role_map.py`, `tests/unit/vision/test_role_map.py`.\nDo NOT edit `pruning.py`/`screenshot_only_loop.py` role sets — they are the canonical source (read-only here). This worktree (D) continues into 2.1/2.2/2.4.\n<\/scope>\n\n<primary-path>\n1. Read the two canonical role sets verbatim; build the union as the allowed output set.\n2. Write the AX table and the AT-SPI table as plain string→string dicts (no pyobjc/pyatspi imports — use the role-name strings).\n3. Write `normalize_role()` with an unknown-role fallback to `Text` (or a documented drop).\n4. Write the parity test asserting every value in both tables ∈ the canonical union + the representative mappings.\n<\/primary-path>\n\n<fallback-paths>\n- If a native role has no clean canonical analogue, map it to `Text` (keeps it visible) rather than inventing a new canonical role — adding a role would be enum drift (AP-8). Failure condition: a produced role escapes the canonical set.\n- You may extend the tables with more native roles, provided the parity test still passes (every output ∈ canonical union).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/vision/test_role_map.py -v\npython -c \"from jarvis.vision.role_map import normalize_role; assert normalize_role('AXButton','darwin')=='Button' and normalize_role('ROLE_PUSH_BUTTON','linux')=='Button'\"\nruff check jarvis/vision/role_map.py && mypy jarvis/vision/role_map.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- AP-8 / AD-10 — normalize into the EXISTING canonical UIA vocabulary; never emit a raw native role; never add a new canonical role.\n- HN-3 — one mapping table per OS as the single source; pin with a parity test.\n- HN-7 — no pyobjc/pyatspi import here (use role-name strings).\nSOFT:\n- Unknown → `Text`, not a guess.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The two tables + `normalize_role` + unknown-role policy.\n- The canonical union copied from the live source (which file:line).\n- Parity test result (every output ∈ canonical).\n- Hard-rules honored (AP-8/HN-3/HN-7 quoted).\n- Path-taken.\n<\/done-signal>", "2.1": "ultrathink\n<role>\nYou add the macOS AX-tree `VisionSource` (`pyobjc` AXUIElement) so UI-element-click works on macOS. Your outcome is an `AXTreeSource` that satisfies the existing `VisionSource` Protocol, produces the SAME `Observation`/`UIANode` layout the Windows path produces (so downstream is identical), normalizes roles via 2.3, and detect-and-degrades on a missing Accessibility grant — never silently empty.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/vision/ax_tree.py` defines `AXTreeSource` satisfying `VisionSource` (`protocols.py:419`): `name=\"ax-tree\"`, `kind=\"ui_tree\"`, `async def observe(...) -> Observation`, `async def close()`. It returns `Observation` (`protocols.py:402`) carrying a tuple of `UIANode` (`protocols.py:394`) with the same fields (role, name, automation_id, bounds, enabled, parent_index) as the Windows `UIATreeSource` (`uia_tree.py:45`).\n- pyobjc frameworks (`Quartz`/`ApplicationServices`/`HIServices`) are lazy-imported INSIDE `observe`, never at module scope. Frontmost app via `NSWorkspace.frontmostApplication().processIdentifier()`; walk via `AXUIElementCopyAttributeValue` (kAXRole/kAXTitle/kAXValue/kAXPosition/kAXSize/kAXEnabled/kAXChildren).\n- Roles run through `normalize_role(..., \"darwin\")` (2.3) while flattening; reuse the existing `_DEPTH_RETRY_LADDER (6,5,4)` (`uia_tree.py:42`) + `prune_tree` (`pruning.py`). AX `{x,y}`+`{w,h}` → `(x,y,w,h)` bounds.\n- Permission gate (AD-13): before walking, check `AXIsProcessTrusted()`. If False, log the English onboarding message (\"macOS Accessibility permission not granted — grant it in System Settings › Privacy & Security › Accessibility … falling back to pixel clicks\") and return an `Observation` with empty `nodes` + `source=\"screenshot_only\"`. Never raise.\n- `tests/unit/vision/test_ax_tree.py` drives `AXTreeSource` against `tests/fakes/fake_ax_api.py` (canned AX tree); asserts the flattened nodes, role normalization, and the empty-nodes degrade when the fake reports `AXIsProcessTrusted()==False`. Permission-dependent tests are marked `skip_ci`.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §2.1 (the full spec + line refs).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-10 + AD-13 (detect-and-degrade) + AD-3 (live sign-off deferred to Wave 4).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-4 (never raise; degrade), HN-5 (\"Never silently return an empty result to hide a fixable misconfiguration … probe → if missing, log an onboarding message AND fall back\"), HN-6 (no \"works\" claim without live sign-off), HN-7 (no module-scope pyobjc).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-2 (empty AX tree hides ungranted permission — read the full counter-pattern), AP-9 (no real display in CI), AP-12 (ship a fake), AP-13 (no convenience module-scope import).\n- Read `jarvis/vision/uia_tree.py:42-45`, `protocols.py:394/402/419`, and the empty-tree contract at `jarvis/harness/screenshot_only_loop.py:1078-1095`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 2.3 (Worktree D — UI-element-click): `../sub-agents-outputs/crossplat-w2-uiclick` on `crossplat/w2-ui-click`.\n3. `pip install -e \".[dev]\"` (do NOT install `[desktop-macos]` — the import gate proves the base install imports clean).\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/vision/ax_tree.py`, `tests/fakes/fake_ax_api.py`, `tests/unit/vision/test_ax_tree.py`.\nDepends on 2.3's `role_map.py`. Do NOT edit `uia_tree.py` (Windows, untouched — AD-7).\n<\/scope>\n\n<primary-path>\n1. Define `AXTreeSource` against `VisionSource`; lazy-import pyobjc inside `observe`.\n2. Implement the `AXIsProcessTrusted()` gate FIRST → on False, log + return empty `Observation(source=\"screenshot_only\")`.\n3. Walk the AX tree depth-first, flatten to `UIANode` with `parent_index`, normalize roles via 2.3, convert bounds, reuse the depth ladder + `prune_tree`.\n4. Write `fake_ax_api.py` (a fake exposing the AX attribute calls + a togglable `AXIsProcessTrusted`) and the tests; mark permission/real-tree tests `skip_ci`.\n<\/primary-path>\n\n<fallback-paths>\n- If a pyobjc attribute call returns a CFType that needs bridging, normalize at the seam (extract Python primitives) and pin with the fake. Failure condition: a node carries a non-serializable value.\n- If the frontmost-app PID call is unavailable in the fake, parametrize the source with an injectable \"app provider\" for testing. Failure condition: the test needs a real NSWorkspace.\n- You may invent the tree-walk strategy if the prescribed attribute set is insufficient, provided roles are normalized (AP-8), the permission degrade fires (AP-2/HN-5), and no module-scope pyobjc import exists (HN-7).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/vision/test_ax_tree.py -v\npython -c \"from jarvis.vision.ax_tree import AXTreeSource; from jarvis.core.protocols import VisionSource; assert isinstance(AXTreeSource(), VisionSource)\"\npython -c \"import ast; m=ast.parse(open('jarvis/vision/ax_tree.py').read()); assert not any(getattr(n,'names',None) and any(a.name in ('Quartz','HIServices','ApplicationServices') for a in n.names) for n in ast.walk(m) if isinstance(n,ast.Import))\"\nruff check jarvis/vision/ax_tree.py && mypy jarvis/vision/ax_tree.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-5 / AP-2 — distinguish empty from forbidden; on un-granted permission log ONE English onboarding line + fall back to pixel; never silently empty, never hard-block.\n- HN-4 — `observe` never raises.\n- HN-6 — no \"macOS AX works\" claim; that is Wave 4's live sign-off.\n- HN-7 / AP-13 — no module-scope pyobjc import.\n- AP-8 / AD-10 — roles normalized to canonical UIA via 2.3.\nSOFT:\n- Reuse the depth ladder + `prune_tree` rather than re-implementing pruning.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `AXTreeSource` Protocol conformance + the UIANode field parity.\n- The `AXIsProcessTrusted()` gate + the degrade Observation.\n- Role normalization via 2.3 + reused pruning.\n- Hard-rules honored (HN-4/HN-5/HN-6/HN-7 quoted).\n- Path-taken + which tests are skip_ci.\n<\/done-signal>", "2.2": "ultrathink\n<role>\nYou add the Linux AT-SPI `VisionSource` (`pyatspi`) so UI-element-click works on Linux. Your outcome is an `AtspiTreeSource` mirroring 2.1's contract, with `pyatspi` lazy-imported and distro-only (never pip), the AT-SPI bus probed for reachability, and a logged degrade to empty nodes when the bus is unavailable — never a crash.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/vision/atspi_tree.py` defines `AtspiTreeSource` satisfying `VisionSource` (`name=\"atspi-tree\"`, `kind=\"ui_tree\"`), producing the same `Observation`/`UIANode` layout as 2.1, with roles normalized via `normalize_role(..., \"linux\")` (2.3) + reused `prune_tree`/`_DEPTH_RETRY_LADDER`.\n- `pyatspi` is lazy-imported inside `observe` (AD-14: not on PyPI, distro-packaged `apt install python3-pyatspi gir1.2-atspi-2.0`); its absence is a logged degrade, not a crash.\n- Walk: `pyatspi.Registry.getDesktop(0)` → active/focused app → `Accessible` children → `getRole()`/`name`/`getState()` (enabled) + `Component.getExtents(pyatspi.DESKTOP_COORDS)` for bounds; flatten to `UIANode` with `parent_index`.\n- AT-SPI bus gate (AD-13): probe `capabilities.has_ax_tree` + a cheap `getDesktop(0)` reachability check; on failure log \"Linux AT-SPI accessibility bus unavailable — install python3-pyatspi + gir1.2-atspi-2.0 and ensure the AT-SPI bus is running; falling back to pixel clicks\" and return empty `nodes`. Never raise.\n- `tests/unit/vision/test_atspi_tree.py` drives against `tests/fakes/fake_atspi.py`; asserts the flattened tree, role normalization, and the empty-nodes degrade when the bus is reported unreachable.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §2.2.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-10 + AD-13 + AD-14 (pyatspi distro-only).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-4 (never raise), HN-5 (detect-and-degrade, never silently empty), HN-7 (no module-scope pyatspi), HN-9 (\"Never put pyatspi in a pip extra. It is GObject-Introspection, distro-packaged only\").\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-3 (pyatspi is not pip-installable — read the full counter-pattern), AP-8 (role drift), AP-9 (no real display in CI), AP-12 (ship a fake).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 2.1/2.3 (Worktree D): `../sub-agents-outputs/crossplat-w2-uiclick` on `crossplat/w2-ui-click`.\n3. `pip install -e \".[dev]\"` (do NOT pip-install pyatspi — it is not on PyPI).\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/vision/atspi_tree.py`, `tests/fakes/fake_atspi.py`, `tests/unit/vision/test_atspi_tree.py`.\nDepends on 2.3's `role_map.py`. Do NOT add pyatspi to `pyproject.toml` (HN-9). Do NOT edit `uia_tree.py`.\n<\/scope>\n\n<primary-path>\n1. Define `AtspiTreeSource` against `VisionSource`; lazy-import pyatspi inside `observe`.\n2. Implement the bus reachability gate FIRST (has_ax_tree + getDesktop(0)) → on failure log + return empty `Observation`.\n3. Walk the AT-SPI tree, flatten to `UIANode`, normalize roles via 2.3, read extents for bounds.\n4. Write `fake_atspi.py` (fake Registry/Accessible/Component with a togglable bus-reachable flag) + the tests.\n<\/primary-path>\n\n<fallback-paths>\n- If `getExtents(DESKTOP_COORDS)` is unavailable on a node, fall back to `(0,0,0,0)` bounds and keep the node (still nameable) rather than dropping it. Failure condition: a clickable node is lost.\n- If the focused-app lookup differs across AT-SPI versions, walk from the desktop root and filter to the active frame; pin with the fake. Failure condition: the walk needs a live bus.\n- You may invent the reachability probe shape if `getDesktop(0)` is insufficient, provided the degrade fires (HN-5) and no module-scope pyatspi import exists (HN-7/HN-9).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/vision/test_atspi_tree.py -v\npython -c \"from jarvis.vision.atspi_tree import AtspiTreeSource; from jarvis.core.protocols import VisionSource; assert isinstance(AtspiTreeSource(), VisionSource)\"\npython -c \"import ast; m=ast.parse(open('jarvis/vision/atspi_tree.py').read()); assert not any(getattr(n,'names',None) and any(a.name=='pyatspi' for a in n.names) for n in ast.walk(m) if isinstance(n,ast.Import))\"\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); ext=d['project'].get('optional-dependencies',{}); assert all('pyatspi' not in x for g in ext.values() for x in g)\"\nruff check jarvis/vision/atspi_tree.py && mypy jarvis/vision/atspi_tree.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-9 / AP-3 — `pyatspi` is NEVER in pyproject; lazy-import + capability probe only.\n- HN-5 — bus-unavailable → log onboarding + empty nodes (pixel fallback); never silently empty.\n- HN-4 — `observe` never raises.\n- HN-7 — no module-scope pyatspi import.\n- AP-8 — roles normalized to canonical UIA via 2.3.\nSOFT:\n- Reuse the depth ladder + `prune_tree`.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `AtspiTreeSource` conformance + UIANode parity.\n- The bus reachability gate + the degrade Observation.\n- pyatspi NOT in pyproject (assertion output) + lazy import confirmed.\n- Hard-rules honored (HN-9/HN-5/HN-4/HN-7 quoted).\n- Path-taken + which tests are skip_ci.\n<\/done-signal>", "2.4": "ultrathink\n<role>\nYou build the `tree_factory` and rewire the 6 hardcoded `UIATreeSource()` literals to it, so every UI-element-click consumer selects the right per-OS VisionSource. Your outcome is a single factory that returns the Windows/macOS/Linux source (or a null source that degrades to the pixel path), wired into all 6 call sites mechanically — the DI seams already exist.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/vision/tree_factory.py` defines `make_ui_tree_source() -> VisionSource` selecting on `detect_platform()` + `capabilities`: win32→`UIATreeSource()` (unchanged, AD-7); darwin→`AXTreeSource()`; linux→`AtspiTreeSource()` if `capabilities.has_ax_tree` else a NULL source whose `observe` returns an empty `Observation(source=\"screenshot_only\", nodes=())` and logs once.\n- The literal `UIATreeSource()` is replaced by `make_ui_tree_source()` at all 6 sites: `click_element.py:125`, `read_visible_ui_state.py:60`, `wait_for_element.py:97`, `wait_for_ui_state.py:78`, `engine.py:71` (the `uia_source or UIATreeSource()` default), `screenshot_only_loop.py:1092` (inside `_foreground_clickable_labels`). The lazy import guard at `click_element.py:117-123` becomes a `from jarvis.vision.tree_factory import make_ui_tree_source` import.\n- `screenshot_only_loop.py`'s \"returns [] on any failure\" contract (`:1093`) is intact (the null source's empty nodes already yield []).\n- `tests/unit/vision/test_tree_factory.py` green; `tests/unit/vision/test_engine.py` + `tests/contract/test_vision_source_protocol.py` green (add `AXTreeSource`/`AtspiTreeSource` to the parametrized contract suite at `test_vision_source_protocol.py:26`).\n- `grep -rn \"UIATreeSource()\" jarvis/` shows ONLY `tree_factory.py` (Windows branch) and `uia_tree.py` — none of the 6 former call sites.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §2.4 (the 6 exact call sites).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-5 (factory reads the shared capabilities) + AD-6 (null fallback) + AD-7 (Windows untouched).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-3 (read capability from the shared module, no inline drift), HN-4 (never raise), HN-5 (degrade, never silently empty).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-11 (re-detecting sys.platform per call-site) + AP-12 (ship a fake).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 2.1/2.2/2.3 (Worktree D): `../sub-agents-outputs/crossplat-w2-uiclick` on `crossplat/w2-ui-click`.\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/vision/tree_factory.py`, `tests/unit/vision/test_tree_factory.py`.\nModify (replace the literal with the factory call): `jarvis/plugins/tool/click_element.py`, `jarvis/plugins/tool/read_visible_ui_state.py`, `jarvis/plugins/tool/wait_for_element.py`, `jarvis/plugins/tool/wait_for_ui_state.py`, `jarvis/vision/engine.py`, `jarvis/harness/screenshot_only_loop.py`. Extend `tests/contract/test_vision_source_protocol.py` parametrization.\n<\/scope>\n\n<primary-path>\n1. Write `make_ui_tree_source()` + the null source.\n2. Mechanically swap the literal at the 6 sites (preserve each `self._vision_source or <call>` / `uia_source=` DI seam).\n3. Replace the `click_element.py` lazy `UIATreeSource` import with the factory import.\n4. Add `AXTreeSource`/`AtspiTreeSource` to the contract suite parametrization; write `test_tree_factory.py` (per-platform selection + the Linux null-source degrade).\n5. Run the grep to confirm zero stray literals.\n<\/primary-path>\n\n<fallback-paths>\n- If a call site constructs `UIATreeSource(...)` WITH arguments, thread those args through `make_ui_tree_source(**kwargs)` rather than dropping them. Failure condition: a site loses configuration.\n- If adding the two new sources to the contract suite trips a real-API requirement, pass them a fake/null-constructed instance for the structural conformance check only. Failure condition: the contract suite needs a real AX/AT-SPI bus.\n- You may invent the null-source shape if the prescribed one fights a consumer, provided the [] contract holds (HN-5) and platform is read from the shared module (AP-11).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/vision/test_tree_factory.py tests/unit/vision/test_engine.py tests/contract/test_vision_source_protocol.py -v\npython -c \"from jarvis.vision.tree_factory import make_ui_tree_source; from jarvis.core.protocols import VisionSource; assert isinstance(make_ui_tree_source(), VisionSource)\"\ngrep -rn \"UIATreeSource()\" jarvis/\nruff check jarvis/vision/ jarvis/plugins/tool/ jarvis/harness/screenshot_only_loop.py && mypy jarvis/vision/tree_factory.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-3 / AP-11 — the factory reads the shared capabilities once; no consumer re-detects sys.platform.\n- HN-4 — `make_ui_tree_source()` never raises.\n- HN-5 — the Linux null source degrades to [] with a one-time log; the pixel path takes over.\n- AD-7 — the Windows `UIATreeSource()` branch is unchanged.\nSOFT:\n- Keep each call-site edit a one-line swap; preserve the existing DI seam.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The factory + null source + per-OS selection.\n- The 6 call-site swaps + the grep proving zero strays.\n- Contract suite extended with the two new sources; engine suite green.\n- Hard-rules honored (HN-3/HN-4/HN-5 quoted).\n- Path-taken.\n<\/done-signal>", "2.5": "ultrathink\n<role>\nYou build the `OverlaySurface` seam and wrap the LIVE Tk orb as `TkColorKeyOverlay` (the Windows + macOS default, since `-transparentcolor` works on both). Your outcome is a thin lifecycle wrapper around `OrbOverlay` — the rendering is NOT rewritten — plus a factory that selects the right surface per OS. The Wave-0 ADR fixed the Tk orb as the wrap target; the PySide6 tree must not be re-imported.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/overlay/surface.py` defines `OverlaySurface` Protocol (`start()`, `stop()`, `set_state(state)`, `is_visible()->bool`) + `make_overlay_surface()` factory + `TkColorKeyOverlay`.\n- `TkColorKeyOverlay` WRAPS `OrbOverlay` (`ui/orb/overlay.py:1236`, `-transparentcolor` at ~`:966`/`:1331`) — no change to the color-key rendering; the wrapper only adapts the lifecycle to the Protocol.\n- `make_overlay_surface()` selects on `detect_platform()` + `capabilities`: win32/darwin → `TkColorKeyOverlay` (when `capabilities.has_overlay`); linux → `LinuxBestEffortOverlay`/`TrayOnlySurface` (2.6); `not has_overlay` → `TrayOnlySurface`.\n- The Windows-only `SetSystemCursor` swap (`jarvis/overlay/system_cursor.py`) is left Windows-only at its existing call site (`jarvis/ui/desktop_app.py`); it is NOT wired into the cross-platform surface (AD-11 / HN-18).\n- `tests/overlay/test_overlay_surface.py` green under `QT_QPA_PLATFORM=offscreen`; constructs `TkColorKeyOverlay` against `tests/fakes/fake_overlay_surface.py` and asserts lifecycle + factory selection (no real window).\n- `python -c \"import ui.orb.overlay\"` still resolves (live orb import unbroken).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §2.5.\n- `docs/plans/cross-platform-mac-linux/ADR-orb-framework.md` (Wave-0 verdict: wrap Tk, do not re-import PySide6).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-11 (the 3-tier ladder; SetSystemCursor stays Windows-only) + AD-7.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-1 (wrap, never rewrite the live orb), HN-4 (factory never raises), HN-6 (no transparency \"works\" claim without live sign-off), HN-18 (SetSystemCursor stays a Windows-only no-op off Windows).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-5 (`-transparentcolor` raises TclError on X11 — relevant to the factory NOT selecting Tk on Linux), AP-9 (no real display in CI), AP-12 (ship a fake).\n- Read `ui/orb/overlay.py` around the cited lines + `tests/overlay/conftest.py:21` (the offscreen guard, kept by Wave-0 0.7).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w2-orb ../sub-agents-outputs/crossplat-w2-orb feat/crossplatform-port`\n3. `pip install -e \".[dev]\"`\n4. `python -c \"import jarvis; print(jarvis.__file__)\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/overlay/surface.py`, `tests/fakes/fake_overlay_surface.py`, `tests/overlay/test_overlay_surface.py`.\nModify: none of `ui/orb/overlay.py`'s rendering (wrap only). This worktree (E) continues into 2.6 + the `desktop-macos` extra in 2.7.\n<\/scope>\n\n<primary-path>\n1. Define the `OverlaySurface` Protocol + `make_overlay_surface()`.\n2. Write `TkColorKeyOverlay` adapting `OrbOverlay`'s lifecycle to the Protocol (start/stop/set_state/is_visible) — no rendering changes.\n3. Implement the factory selection (linux branch delegates to 2.6's surfaces).\n4. Write `fake_overlay_surface.py` + the offscreen test asserting lifecycle + selection (Tk on win32/darwin, never on linux).\n<\/primary-path>\n\n<fallback-paths>\n- If `OrbOverlay`'s constructor needs a Tk root that can't be built headless, gate construction so the FACTORY selection + Protocol conformance are testable without instantiating a real window (construct lazily in `start()`). Failure condition: importing the module needs a display.\n- If `set_state` maps imperfectly to `OrbOverlay`'s state API, add a small adapter mapping table and pin it with the fake. Failure condition: a state has no orb representation.\n- You may invent the lifecycle adapter shape if the prescribed Protocol fights `OrbOverlay`, provided the rendering is untouched (HN-1) and the factory never selects Tk on Linux (AP-5).\n<\/fallback-paths>\n\n<acceptance>\nQT_QPA_PLATFORM=offscreen pytest tests/overlay/test_overlay_surface.py -v\npython -c \"from jarvis.overlay.surface import make_overlay_surface, OverlaySurface; assert isinstance(make_overlay_surface(), OverlaySurface)\"\npython -c \"import ui.orb.overlay; print('live orb import ok')\"\nruff check jarvis/overlay/ && mypy jarvis/overlay/surface.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-1 / AD-7 — wrap `OrbOverlay`; do not rewrite the color-key rendering.\n- HN-4 / AP-5 — the factory degrades, never raises; Tk is selected ONLY on win32/darwin (never X11 Linux).\n- HN-6 — no transparency \"works\" claim; Wave 4 owns the live sign-off.\n- HN-18 — `SetSystemCursor` stays a Windows-only no-op; do not wire it cross-platform.\nSOFT:\n- Keep the wrapper thin; lazy-construct the Tk root in `start()`.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The `OverlaySurface` Protocol + `TkColorKeyOverlay` wrap (no rendering change).\n- Factory selection (Tk on win/mac only).\n- Offscreen test + live orb import intact.\n- Hard-rules honored (HN-1/HN-4/HN-6/HN-18 quoted).\n- Path-taken + how headless construction was handled.\n<\/done-signal>", "2.6": "ultrathink\n<role>\nYou build the Linux orb tiers: a best-effort transparent surface on a compositor and the universal `TrayOnlySurface` floor driving the already-cross-platform pystray tray. Your outcome is graceful orb presence on every Linux session — transparency where the compositor allows it, a state-colored tray icon everywhere else — never an opaque magenta box, never a crash.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/overlay/linux_surface.py` defines `LinuxBestEffortOverlay`: attempts the Tk `-transparentcolor` path on a Linux compositor; on a non-compositing/Wayland session (detect via `capabilities.is_wayland` or a failed `wm_attributes` probe / `TclError`) it FALLS THROUGH to `TrayOnlySurface` with a logged English message. Never shows an opaque magenta box.\n- `jarvis/overlay/tray_surface.py` defines `TrayOnlySurface`: drives the existing cross-platform pystray tray (`jarvis/ui/tray.py`, no platform marker, renders `JarvisState` icons via PIL at `tray.py:39`); `set_state(state)` maps the orb state onto `JarvisState` (`tray.py:20-26`) so IDLE/LISTENING/THINKING/SPEAKING feedback shows in the tray color (`_STATE_COLORS` at `tray.py:29`).\n- `make_overlay_surface()` (2.5) returns `LinuxBestEffortOverlay` when `display_present and not is_wayland`, else `TrayOnlySurface`.\n- `tests/overlay/test_tray_surface.py` green (TrayOnlySurface maps orb states onto `JarvisState` via a fake; no real tray thread). On a headless leg (no DISPLAY) `make_overlay_surface()` returns `TrayOnlySurface` and start/stop are no-op-safe.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §2.6.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-11 (the ladder + the tray floor) + AD-6.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-4 (never raise; degrade), HN-1 (do not rewrite the tray; drive it), HN-18 (SetSystemCursor stays Windows-only).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-5 (`-transparentcolor` TclError on X11 → log + fall to tray, never propagate — read the full counter-pattern), AP-9 (no real display in CI).\n- Read `jarvis/ui/tray.py:20-39` (the `JarvisState` enum + `_STATE_COLORS` + PIL icon render).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 2.5 (Worktree E — Orb): `../sub-agents-outputs/crossplat-w2-orb` on `crossplat/w2-orb`.\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/overlay/linux_surface.py`, `jarvis/overlay/tray_surface.py`, `tests/overlay/test_tray_surface.py`.\nModify: `jarvis/overlay/surface.py` (wire the linux branch of `make_overlay_surface()` — coordinate with 2.5 in the same worktree). Do NOT modify `jarvis/ui/tray.py` (drive it, don't rewrite — HN-1).\n<\/scope>\n\n<primary-path>\n1. Write `TrayOnlySurface` first (the floor): map orb state→`JarvisState`, drive pystray; start/stop no-op-safe headless.\n2. Write `LinuxBestEffortOverlay`: try the Tk color-key path wrapped in try/except TclError → on failure or Wayland, log + delegate to `TrayOnlySurface`.\n3. Wire the linux branch in `make_overlay_surface()`.\n4. Write `test_tray_surface.py` (state mapping via a fake tray) + a headless-selection assertion.\n<\/primary-path>\n\n<fallback-paths>\n- If `wm_attributes(\"-transparentcolor\", …)` neither raises nor keys out on a given compositor (silent opaque), add a post-set verification probe; on ambiguity, prefer the tray floor over a possibly-opaque box (AP-5). Failure condition: an opaque magenta box ever shows.\n- If pystray's icon update API differs from the assumed one, adapt at the `set_state` seam and pin with the fake. Failure condition: state changes don't reflect in the tray color.\n- You may invent the compositor-detection heuristic if `is_wayland` + the wm_attributes probe are insufficient, provided it always degrades to the tray (HN-4) and never propagates a TclError (AP-5).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/overlay/test_tray_surface.py -v\npython -c \"from jarvis.overlay.surface import make_overlay_surface; print(type(make_overlay_surface()).__name__)\"\nruff check jarvis/overlay/ && mypy jarvis/overlay/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-4 / AP-5 — `-transparentcolor` TclError on X11 → log + fall to the tray; never propagate; never an opaque magenta box.\n- HN-1 — drive `jarvis/ui/tray.py`; do not rewrite it.\n- HN-18 — no SetSystemCursor wiring cross-platform.\nSOFT:\n- The tray is the universal floor — guarantee SOME presence everywhere.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `TrayOnlySurface` state→JarvisState mapping + `LinuxBestEffortOverlay` fall-through.\n- The linux branch wired into the factory.\n- Headless selection (TrayOnlySurface) + no-op-safe start/stop.\n- Hard-rules honored (HN-4/HN-1/HN-18 quoted).\n- Path-taken + the compositor-detection heuristic used.\n<\/done-signal>", "2.7": "ultrathink\n<role>\nYou add the new `[desktop-macos]` pip extra for the pyobjc frameworks and record the pyatspi distro-prerequisite note. Your outcome is a marked, darwin-only extras group that keeps the base install clean, plus a one-line README note that pyatspi is apt-only (never pip).\n<\/role>\n\n<outcome>\nDONE means:\n- `pyproject.toml` gains a `desktop-macos` group next to `desktop`: `pyobjc-framework-Quartz>=10; sys_platform == 'darwin'`, `pyobjc-framework-ApplicationServices>=10; sys_platform == 'darwin'`, `pyobjc-framework-Accessibility>=10; sys_platform == 'darwin'`.\n- `pyatspi` is added NOWHERE in pyproject (distro-only — AD-14/HN-9); the README capability section carries a one-line note: `apt install python3-pyatspi gir1.2-atspi-2.0` is a Linux system prerequisite gated by `capabilities.has_ax_tree`.\n- The macOS/Linux CI legs install ONLY `.[dev]` (not `[desktop-macos]`, not distro pyatspi) and stay green — the base import gate covers `ax_tree`/`atspi_tree`.\n- All acceptance commands pass.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §2.7.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-14.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-8 (extras only; never base deps), HN-9 (pyatspi distro-only, never a pip extra), HN-10 (the sys_platform marker pattern).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-3 (pyatspi not pip-installable).\n- Mirror `pyproject.toml:99-110`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Owned by Worktree E (Orb): `../sub-agents-outputs/crossplat-w2-orb` on `crossplat/w2-orb` (the `desktop-macos` block). Worktree D adds ONLY the README pyatspi note (no pyproject edit) to avoid a conflict.\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nModify: `pyproject.toml` (add `desktop-macos`). Add the pyatspi prerequisite note to the cross-platform plan README capability area (the actual README capability-matrix update is Wave 4's 4.3 — here just the one-line dependency note so a future agent does not pip-install pyatspi).\n<\/scope>\n\n<primary-path>\n1. Add the `desktop-macos` group mirroring the marker style.\n2. Add the one-line pyatspi-is-apt-only note.\n3. Verify tomllib parses + the markers are correct.\n<\/primary-path>\n\n<fallback-paths>\n- If a `desktop-macos` group already exists (partial prior edit), reconcile to the three frameworks with darwin markers. Failure condition: tomllib parse fails.\n- You may bump the pyobjc minimums if v10 is unavailable, provided the darwin marker stays.\n<\/fallback-paths>\n\n<acceptance>\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); g=d['project']['optional-dependencies']['desktop-macos']; assert all('darwin' in x for x in g) and any('Accessibility' in x for x in g)\"\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); ext=d['project']['optional-dependencies']; assert all('pyatspi' not in x for g in ext.values() for x in g)\"\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-8 — extras only.\n- HN-9 / AP-3 — pyatspi never in pyproject.\n- HN-10 — pyobjc carries `sys_platform == 'darwin'`.\nSOFT:\n- Keep the README note one line; the full matrix is Wave 4.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The `desktop-macos` group + darwin markers (assertion output).\n- pyatspi absent from pyproject + the apt prerequisite note added.\n- CI legs still install only `.[dev]`.\n- Hard-rules honored (HN-8/HN-9/HN-10 quoted).\n- Path-taken.\n<\/done-signal>", "check-w2": "ultrathink\n<role>\nYou are a read-only phase auditor for Wave 2. Your outcome is a PASS/FAIL verdict on whether UI-element-click (AX/AT-SPI behind the VisionSource seam) and the Orb (OverlaySurface ladder) meet EK-2/EK-3 and are safe to merge — and a reminder that the GUI/permission behavior is deferred to Wave 4's live sign-off (EK-5, not provable here). You verify; you do not modify.\n<\/role>\n\n<outcome>\nDONE means a verdict report stating, with command evidence, whether:\n- Role normalization: every produced AX/AT-SPI role ∈ the canonical UIA set (AP-8 parity).\n- `AXTreeSource` + `AtspiTreeSource` satisfy `VisionSource`, lazy-import their native libs, and degrade to empty nodes on missing permission/bus (HN-5).\n- `make_ui_tree_source()` selects per OS; the 6 former `UIATreeSource()` literals are gone; the contract + engine suites are green.\n- `make_overlay_surface()` selects per OS (Tk only on win/mac), the Linux tray floor works headless, and the live Tk orb import is unbroken.\n- pyatspi is NOT in pyproject; the macOS pyobjc extra is darwin-marked; the base `.[dev]` import gate is still clean.\n- The CI matrix is green; all permission/transparency tests are `skip_ci` (no real display in CI — AP-9), deferred to Wave 4.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` (EK acceptance gate).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` EK-2/EK-3/EK-5 + AD-3.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-5/HN-6/HN-9/HN-15.\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-2/AP-3/AP-5/AP-8/AP-9.\n<\/required-reading>\n\n<environment-setup>\n1. `git switch feat/crossplatform-port` (with Wave-2 branches merged, or check each branch).\n2. `pip install -e \".[dev]\"` (do NOT install the macOS extra — prove the base install is clean).\nRead-only.\n<\/environment-setup>\n\n<scope>\nModify: NOTHING. Grep for stray `UIATreeSource()`, module-scope native imports, and `pyatspi` in pyproject.\n<\/scope>\n\n<primary-path>\n1. Run each acceptance command; capture output.\n2. Confirm CI green + the permission/transparency tests are skip_ci (not provable headless).\n3. Render the verdict, explicitly flagging that GUI/permission proof is Wave 4's job (HN-6).\n<\/primary-path>\n\n<fallback-paths>\n- If a sub-task branch is not yet merged, audit it on its branch and note integration state.\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/vision/test_role_map.py tests/unit/vision/test_ax_tree.py tests/unit/vision/test_atspi_tree.py tests/unit/vision/test_tree_factory.py -v\npytest tests/unit/vision/test_engine.py tests/contract/test_vision_source_protocol.py -v\nQT_QPA_PLATFORM=offscreen pytest tests/overlay/test_overlay_surface.py tests/overlay/test_tray_surface.py -v\ngrep -rn \"UIATreeSource()\" jarvis/\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); ext=d['project']['optional-dependencies']; assert all('pyatspi' not in x for g in ext.values() for x in g); print('no pyatspi in pyproject')\"\npython scripts/ci/check_import_clean.py\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-6 — do not declare AX/Orb GUI behavior \"verified\"; that is Wave 4's live sign-off.\n- HN-15 — do not declare mergeable unless the matrix is green.\nSOFT:\n- Be explicit about Wave-4-deferred items.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Role parity + the two VisionSources (conformance + degrade): PASS/FAIL.\n- tree_factory + 6 swaps + contract suite: PASS/FAIL.\n- Overlay factory + tray floor + live orb import: PASS/FAIL.\n- pyatspi-absent + import gate + CI green: PASS/FAIL.\n- Overall verdict + the Wave-4-deferred GUI/permission items + path-taken.\n<\/done-signal>", "merge-w2": "ultrathink\n<role>\nYou mechanically merge Wave 2's two branches onto the integration branch, run the wave acceptance, and push only if green. Step-prescriptive.\n<\/role>\n\n<outcome>\nDONE means: `crossplat/w2-ui-click` and `crossplat/w2-orb` merge `--no-ff` onto `feat/crossplatform-port` (order does not matter — disjoint files except the split pyproject/README note); the wave acceptance passes; the CI matrix is green; the branch is pushed. Any conflict or red CI → STOP and hand off to the matching recovery prompt.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §Parallelism (the only shared file is pyproject 2.7 — E owns the desktop-macos block; D adds only the README note).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-9, HN-15, HN-16, HN-17.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git switch feat/crossplatform-port`\n3. `git fetch origin && git pull --ff-only origin feat/crossplatform-port`\n4. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nBranches: `crossplat/w2-ui-click`, `crossplat/w2-orb`. Merge commits + conflict resolutions only.\n<\/scope>\n\n<primary-path>\n1. `git merge --no-ff crossplat/w2-orb` (carries the desktop-macos extra) → reinstall → run acceptance.\n2. `git merge --no-ff crossplat/w2-ui-click` → run acceptance.\n3. Full wave acceptance; if green, `git push origin feat/crossplatform-port`; watch CI.\n<\/primary-path>\n\n<fallback-paths>\n- Conflict on `pyproject.toml`/README (if both touched it) → STOP, hand off to `recovery-merge-conflict`.\n- Red CI after push → STOP, hand off to `recovery-red-ci`.\n- Never force-push (HN-17); never resolve a conflict by re-adding pyatspi to pyproject (HN-9).\n<\/fallback-paths>\n\n<acceptance>\npython scripts/ci/check_import_clean.py\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\nQT_QPA_PLATFORM=offscreen pytest tests/overlay/ -q\npytest tests/unit/vision/ tests/contract/test_vision_source_protocol.py -q\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); ext=d['project']['optional-dependencies']; assert all('pyatspi' not in x for g in ext.values() for x in g)\"\nruff check jarvis/ && mypy jarvis/vision/tree_factory.py jarvis/overlay/surface.py\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — push only if green.\n- HN-9 — pyatspi never re-added to pyproject during conflict resolution.\n- HN-17 — no force-push, no `--no-verify`.\nSOFT:\n- `--no-ff` per unit.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The two merges + hashes.\n- Wave acceptance result.\n- CI matrix green status (run URL).\n- Hard-rules honored (HN-15/HN-9/HN-17 quoted).\n- Path-taken / any recovery handoff.\n<\/done-signal>", "3.1": "ultrathink\n<role>\nYou extract the `AdminTransport` seam from the Windows named-pipe code while leaving the HMAC/envelope/Pydantic-argv security core UNTOUCHED. Your outcome is a transport Protocol with the Windows pipe relocated behind it, the security core reused verbatim, and a factory that selects the right transport per OS. This is the foundation 3.2/3.4/3.6 build on — it must land first.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/admin/transport.py` defines `AdminTransport` Protocol — server: `async def serve(handler)` where `handler: Callable[[bytes], Awaitable[bytes]]`; client: `async def roundtrip(raw: bytes) -> bytes` — plus `NamedPipeTransport` (Windows) + `make_admin_transport()` factory.\n- The transport-specific Windows code is RELOCATED into `NamedPipeTransport`: `AdminPipeServer._accept_one` (`ipc.py:295`), `_handle_connection`/`_read_message`/`_write_message`/`_safe_close` (`:330-424`), `AdminPipeClient._roundtrip` (`:511`), `_build_sddl` (`:123`), `current_user_sid` (`:92`), `default_pipe_name` (`:117`). No behavior change (AD-7); the SDDL-ACL `D:(A;;FA;;;<SID>)` (`:129`) + MESSAGE-mode read still apply.\n- The HMAC/envelope core STAYS in `ipc.py` verbatim: `_canonical_args_json` (`:65`), `_compute_hmac` (`:76`), `_decode_request` (`:194`, its 5-step ordering), `_encode_response` (`:258`), the nonce LRU (`:181`), the `_TIMESTAMP_WINDOW_NS`/`_NONCE_LRU_SIZE` constants (`:43-50`).\n- `make_admin_transport()`: win32→`NamedPipeTransport`; else→`UnixSocketTransport` (3.2).\n- `tests/unit/admin/test_hmac_replay.py` STAYS green (the core is unmoved). `tests/unit/admin/test_transport_seam.py` green (a fake transport round-trips a signed envelope through `_decode_request`/`_encode_response`). `ipc.py` no longer module-scope-imports `win32pipe`/`win32file`/`win32security`/`pywintypes`.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` §3.1 (the exact relocate-vs-keep split + line refs).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-12 (reuse the security core untouched; only transport + op vocabulary change) + AD-7.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-1 (relocate, never rewrite the Windows impl), HN-11 (\"Never use shell=True and never pass unvalidated argv anywhere on the elevation path\"), HN-12 (\"Never weaken, bypass, or make optional the HMAC signature or the Pydantic discriminated-union argv validation\"), HN-7 (no module-scope Windows import).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-10 (shelling a privileged command string) + AP-12 (ship a fake).\n- Read `jarvis/admin/ipc.py` around all the cited lines to see exactly what is transport vs core.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w3-transport ../sub-agents-outputs/crossplat-w3-transport feat/crossplatform-port`\n3. `pip install -e \".[dev]\"`\n4. `python -c \"import jarvis; print(jarvis.__file__)\"`\n5. Invoke the `requesting-code-review` discipline before merge (security-sensitive wave).\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/admin/transport.py`, `tests/fakes/fake_admin_transport.py`, `tests/unit/admin/test_transport_seam.py`.\nModify: `jarvis/admin/ipc.py` (move ONLY the transport-specific Windows code; leave the HMAC core in place). This worktree (F) continues into 3.2/3.4/3.6.\n<\/scope>\n\n<primary-path>\n1. Define `AdminTransport` Protocol (server `serve(handler)` + client `roundtrip(raw)`) at the bytes-level seam `_decode_request`/`_encode_response` already operate on.\n2. Relocate the listed Windows pipe functions into `NamedPipeTransport` verbatim (lazy-import `win32*` inside the methods).\n3. Keep `_build_envelope` (`:495`) in the client; only the byte-transport swaps.\n4. Write `make_admin_transport()`.\n5. Write `fake_admin_transport.py` + `test_transport_seam.py`; re-run `test_hmac_replay.py` to prove the core is intact.\n<\/primary-path>\n\n<fallback-paths>\n- If relocating a pipe helper breaks an import cycle, keep a thin re-export shim in `ipc.py` (a lazy delegating function) rather than leaving the win32 import at module scope. Failure condition: the import gate goes red on `ipc.py`.\n- If the handler signature can't be threaded cleanly, define a small `AdminHandler` type alias and pin the seam with the fake. Failure condition: `serve(handler)` can't route through `_decode_request`.\n- You may invent the transport abstraction shape if the prescribed one fights the existing flow, provided the HMAC core is byte-for-byte unmoved (HN-12) and `test_hmac_replay.py` stays green.\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/admin/test_hmac_replay.py -v\npytest tests/unit/admin/test_transport_seam.py -v\npython -c \"from jarvis.admin.transport import make_admin_transport, AdminTransport; assert isinstance(make_admin_transport(), AdminTransport)\"\npython -c \"import ast; m=ast.parse(open('jarvis/admin/ipc.py').read()); assert not any(getattr(n,'names',None) and any(a.name in ('win32pipe','win32file','win32security','pywintypes') for a in n.names) for n in ast.walk(m) if isinstance(n,ast.Import))\"\nruff check jarvis/admin/ && mypy jarvis/admin/transport.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-12 — the HMAC signature + Pydantic argv validation are byte-for-byte unmoved; `test_hmac_replay.py` proves it.\n- HN-11 / AP-10 — no `shell=True`, no unvalidated argv anywhere.\n- HN-1 / AD-7 — the Windows pipe behavior is relocated verbatim, not rewritten.\n- HN-7 — `ipc.py` is import-clean (win32 imports now lazy inside `transport.py`).\nSOFT:\n- A thin re-export shim is acceptable to avoid cycles, as long as the import gate stays green.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `AdminTransport` Protocol + the relocated Windows functions + the factory.\n- Confirmation the HMAC core is unmoved (`test_hmac_replay.py` green).\n- `ipc.py` import-clean (AST output).\n- Hard-rules honored (HN-12/HN-11/HN-1/HN-7 quoted) + the code-review pass.\n- Path-taken + any re-export shim used.\n<\/done-signal>", "3.2": "ultrathink\n<role>\nYou build the `UnixSocketTransport` — a 0700 AF_UNIX socket with a peer-credential check that is the moral equivalent of the Windows SDDL-ACL pipe. Your outcome is a Unix transport that round-trips signed envelopes through the reused HMAC core, rejects any peer whose UID != the server UID, and constructs even on a headless box (refusal happens at the NullElevator layer, not here).\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/admin/unix_socket.py` defines `UnixSocketTransport` binding an `AF_UNIX`/`SOCK_STREAM` socket at `$XDG_RUNTIME_DIR/jarvis-admin-<uid>.sock` (fallback `0700` dir under `/run/user/<uid>/` or `tempfile.mkdtemp(mode=0o700)`); the socket file is `0600` in a `0700` dir (the FS ACL replacing the SDDL-ACL).\n- Peer-credential check on accept: Linux `sock.getsockopt(SOL_SOCKET, SO_PEERCRED, struct.calcsize(\"3i\"))`→(pid,uid,gid); macOS `LOCAL_PEERCRED`/`getpeereid`. Reject any connection whose UID != the server process UID. The HMAC envelope check (`_decode_request`) still runs on top (defense in depth).\n- Server side implements `AdminTransport.serve(handler)`: accept → read raw → `await handler(raw)` (the reused `_decode_request`→executor→`_encode_response` chain) → write → close, reusing the accept-loop/per-connection-task structure from `AdminPipeServer.serve_forever` (`ipc.py:268-293`). Client: connect→write→read→close (mirrors `_roundtrip`).\n- `tests/unit/admin/test_unix_socket_transport.py` green (socket 0600 in a 0700 dir; mismatched-UID peer rejected via a monkeypatched SO_PEERCRED reader). `tests/integration/test_admin_unix_loopback.py` green on Linux/macOS (real AF_UNIX loopback — runs fine on a runner, NOT skip_ci).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` §3.2.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-12.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-13 (\"Never drop the peer-credential check on the Unix transport. SO_PEERCRED/LOCAL_PEERCRED on a 0700 socket in $XDG_RUNTIME_DIR is the moral equivalent of the Windows SDDL-ACL pipe\"), HN-11 (no shell=True / no unvalidated argv), HN-12 (don't weaken HMAC), HN-4 (never raise; degrade).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-10 (shelling a privileged command string) + AP-12 (ship a fake).\n- Read `ipc.py:268-293` (the accept-loop to mirror) + `:456-545` (the client roundtrip shape).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 3.1 (Worktree F), on a sub-branch off `crossplat/w3-transport` (3.2 + 3.4 are parallel sub-branches that both depend on 3.1). Suggested: `crossplat/w3-unix-socket` branched from `crossplat/w3-transport` after 3.1 is committed.\n3. `pip install -e \".[dev]\"`\n4. `requesting-code-review` before merge.\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/admin/unix_socket.py`, `tests/unit/admin/test_unix_socket_transport.py`, `tests/integration/test_admin_unix_loopback.py`.\nDepends on 3.1's `AdminTransport` Protocol. Reuse the HMAC core from `ipc.py` — do not copy it.\n<\/scope>\n\n<primary-path>\n1. Implement socket bind with the `$XDG_RUNTIME_DIR` path + 0600/0700 perms + the fallback dir logic.\n2. Implement the peer-cred check (Linux SO_PEERCRED, macOS LOCAL_PEERCRED/getpeereid); reject UID mismatch BEFORE reading the envelope.\n3. Implement `serve(handler)` mirroring the accept-loop + the client connect/write/read.\n4. Write the unit test (perms + UID-mismatch rejection via monkeypatched reader) + the real-loopback integration test.\n<\/primary-path>\n\n<fallback-paths>\n- If `SO_PEERCRED` is unavailable (older kernel/platform), fall back to `LOCAL_PEERCRED`/`getpeereid`; if neither exists, REFUSE all connections with a logged message rather than skipping the check (HN-13 — never drop peer-cred). Failure condition: the transport accepts a peer without any cred check.\n- If `$XDG_RUNTIME_DIR` is unset, use the `tempfile.mkdtemp(mode=0o700)` fallback and log. Failure condition: the socket lands world-readable.\n- You may invent the accept-loop concurrency shape if the prescribed mirror fights asyncio, provided peer-cred + HMAC both run (HN-13/HN-12) and a slow op doesn't block accept.\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/admin/test_unix_socket_transport.py -v\npytest tests/integration/test_admin_unix_loopback.py -v\npython -c \"import socket,struct; print('peercred' , hasattr(socket,'SO_PEERCRED'))\"\nruff check jarvis/admin/unix_socket.py && mypy jarvis/admin/unix_socket.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-13 — the peer-cred check is mandatory; never accept a peer without it; UID-mismatch is rejected.\n- HN-12 — the HMAC envelope check runs ON TOP of peer-cred (defense in depth); never weakened.\n- HN-11 / AP-10 — no shell=True; the handler executes validated argv only.\n- HN-4 — the transport degrades/refuses, never crashes the process.\nSOFT:\n- Socket file 0600 in a 0700 dir; mirror the existing accept-loop.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Socket path + perms (0600/0700) + the fallback dir logic.\n- The peer-cred check (Linux + macOS branches) + UID-mismatch rejection.\n- Real AF_UNIX loopback round-trip through the reused HMAC core.\n- Hard-rules honored (HN-13/HN-12/HN-11/HN-4 quoted) + the code-review pass.\n- Path-taken.\n<\/done-signal>", "3.3": "ultrathink\n<role>\nYou define the NEW per-OS admin op vocabulary (macOS brew/launchctl, Linux apt/systemctl/ufw, protected-path) as fresh members of the SAME `AdminOperation` discriminated union, with pattern-validated argv and no free-form shell strings. Your outcome is a Unix op schema that ports the op CONCEPTS (install a package, start a service) without porting the Windows COMMAND STRINGS — `sudo winget` is nonsense.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/admin/schema_unix.py` defines the macOS + Linux op models, each subclassing `_AdminOpBase` (`schema.py:25`, `frozen=True`, `extra=\"forbid\"`) so they inherit strict validation, with pattern-validated argv (mirror `InstallWingetOp` `package_id` regex `:39`, `_SERVICE_NAME` `:55`, firewall name `:82`):\n - Linux: `AptInstallOp`/`AptRemoveOp` (`package` regex `^[a-z0-9][a-z0-9+\\-.]{0,127}$`), `SystemctlOp` (`unit` regex, `action: Literal[\"start\",\"stop\",\"enable\",\"disable\",\"restart\"]`), `UfwRuleOp` (port 1..65535, `action: allow|deny`, `proto: tcp|udp`), `WriteProtectedPathOp` (reuse `schema.py:161`, paths like `/etc/...`).\n - macOS: `BrewInstallOp`/`BrewRemoveOp` (`formula` regex), `LaunchctlOp` (`label` regex, `action: load|unload|enable|disable`), `WriteProtectedPathOp` (paths like `/Library/...`).\n- `jarvis/admin/schema.py`: the `AdminOperation` union (`:175-192`) + `ADMIN_OPERATION_TYPES` (`:195-209`) + `DESTRUCTIVE_OPS` (`:212`) become platform-conditional (or a superset the executor dispatches per OS). `jarvis/admin/executor.py` gains per-OS argv builders emitting validated argv lists (`[\"apt-get\",\"install\",\"-y\",op.package]`, `[\"systemctl\",op.action,op.unit]`, `[\"brew\",\"install\",op.formula]`, `[\"launchctl\",op.action,op.label]`) — argv only, `shell=False`.\n- Destructive ops (`apt_remove`, `systemctl stop/disable`, `ufw_remove`, `brew_remove`, `launchctl unload`, `write_protected_path`) are in `DESTRUCTIVE_OPS` so the per-action approval gate (`client.py:135-139`) fires identically across OSes.\n- `tests/unit/admin/test_schema_unix.py` green; a malicious payload (`package=\"foo; rm -rf /\"`) fails the regex.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` §3.3.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-12 + PC-7 (the 13 ops are Windows-native; port the concept, not the command).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-11 (no shell=True / no unvalidated argv), HN-12 (every new op extends the same union; no side door).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-7 (porting the 13 ops literally via sudo is nonsense — read the full counter-pattern), AP-10 (shelling a privileged string).\n- Read `jarvis/admin/schema.py:1-9` (the §Safety mandate) + `:25` + `:175-212` and `jarvis/admin/executor.py` (the Windows argv-builder pattern).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w3-op-vocab ../sub-agents-outputs/crossplat-w3-opvocab feat/crossplatform-port` (Worktree G — independent of the transport seam)\n3. `pip install -e \".[dev]\"`\n4. `requesting-code-review` before merge.\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/admin/schema_unix.py`, `tests/unit/admin/test_schema_unix.py`.\nModify: `jarvis/admin/schema.py` (make the union/types/destructive list platform-conditional or a superset), `jarvis/admin/executor.py` (add per-OS argv builders). Do NOT touch the HMAC core in `ipc.py`. Worktree G also owns 3.5.\n<\/scope>\n\n<primary-path>\n1. Write the Unix op models subclassing `_AdminOpBase`, each with a strict regex/Literal field set.\n2. Extend the discriminated union + `ADMIN_OPERATION_TYPES` + `DESTRUCTIVE_OPS` (platform-conditional or superset).\n3. Add the per-OS argv builders in `executor.py` (argv lists only, `shell=False`).\n4. Write `test_schema_unix.py`: each op validates a good payload, rejects a malicious one, and destructive ops are in `DESTRUCTIVE_OPS`.\n<\/primary-path>\n\n<fallback-paths>\n- If making the union platform-conditional breaks the Windows tests, use a SUPERSET union (all OS ops registered) and dispatch per-OS in the executor — never narrow the Windows ops. Failure condition: a Windows op-validation test breaks.\n- If `apt-get` vs `apt` matters, prefer `apt-get` (stable scripting interface) in the argv builder. Failure condition: the builder emits an interactive-only command.\n- You may invent additional Unix ops if clearly within the same concept space, provided each is a pattern-validated `_AdminOpBase` subclass in the same union (HN-12) with argv-only execution (HN-11/AP-7).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/admin/test_schema_unix.py -v\npython -c \"from jarvis.admin.schema_unix import AptInstallOp; AptInstallOp(package='git')\"\npython -c \"from jarvis.admin.schema_unix import AptInstallOp; AptInstallOp(package='git; whoami')\" ; test $? -ne 0 && echo \"rejected as expected\"\npytest tests/unit/admin/ -v\nruff check jarvis/admin/ && mypy jarvis/admin/schema_unix.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-12 / AP-7 — every new op is a fresh member of the SAME `AdminOperation` union; no side door; the Windows ops are not narrowed.\n- HN-11 / AP-10 — pattern-validated, typed argv only; `shell=False`; never a free-form shell string.\n- the §Safety mandate (`schema.py:1-9`) — `extra=\"forbid\"`, `frozen=True` inherited from `_AdminOpBase`.\nSOFT:\n- Prefer `apt-get` over `apt` for scripting.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The Unix op models + their validation regexes/Literals.\n- The union/types/destructive-list change (conditional vs superset) + the per-OS argv builders.\n- Malicious-payload rejection proven (output).\n- Hard-rules honored (HN-12/HN-11/AP-7 quoted) + the code-review pass.\n- Path-taken.\n<\/done-signal>", "3.4": "ultrathink\n<role>\nYou build the `Elevator` seam and per-OS elevators (Uac / Sudo / Polkit / MacAuth / Null), with `NullElevator` as the safe default that refuses elevation on a headless/no-auth box. Your outcome is an elevation abstraction where the elevator only SPAWNS the helper — the helper still runs every op through the reused validated-argv chain — and a missing mechanism refuses with a clear English message, never silently runs privileged ops.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/admin/elevator.py` defines `Elevator` Protocol (`async def ensure_elevated_helper(transport_addr) -> ElevationResult` + `is_available() -> bool`) + `UacElevator`, `SudoElevator`, `PolkitElevator`, `MacAuthElevator`, `NullElevator` + `make_elevator()` factory.\n - `UacElevator` (Windows): the existing `ShellExecuteW(\"runas\", python.exe, \"-m jarvis.admin.helper --pipe-name ...\")` flow (`launcher.py:11`), unchanged (AD-7).\n - `PolkitElevator` (Linux, preferred): `pkexec` to spawn the helper bound to the unix socket; a polkit policy file under `jarvis/admin/data/`; `is_available()`=`shutil.which(\"pkexec\")`.\n - `SudoElevator` (Linux, fallback): `sudo`/`sudo -A` when polkit absent; `is_available()`=`shutil.which(\"sudo\")`.\n - `MacAuthElevator` (macOS): `osascript -e 'do shell script \"…\" with administrator privileges'` (or Authorization Services via pyobjc) to spawn the helper.\n - `NullElevator`: returned when `not capabilities.has_elevation`; `ensure_elevated_helper` returns a refusal `ElevationResult` and logs \"no elevation mechanism available on this host — privileged operations are disabled; install pkexec or run with sudo\". Never raises.\n- `make_elevator()`: win32→Uac; darwin→MacAuth; linux→Polkit if pkexec else Sudo else Null; `not has_elevation`→Null.\n- `jarvis/admin/launcher.py`: `ensure_admin_secret` (`:42`) stays transport-agnostic; the Windows `ShellExecuteW(runas,…)` helper-spawn (`:11`) moves behind `UacElevator`. `jarvis/admin/client.py`: `AdminClient` (`:66`) gains an injected `Elevator` alongside its existing injectable `pipe_client` (`:80`).\n- The elevator ONLY spawns the helper; the helper runs every op through the reused `_decode_request` → `extra=\"forbid\"` schema → argv builder → `shell=False` chain (HN-11/HN-12).\n- `tests/unit/admin/test_elevator.py` green (factory selection per platform + `is_available`; `NullElevator.ensure_elevated_helper` returns a refusal and never raises). No end-to-end elevation test — any test that would trigger a real prompt is `skip_ci`.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` §3.4.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-12 + AD-6 (graceful null) + AD-3 (interactive auth never CI-testable).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-14 (\"NullElevator is the default. A headless / no-auth box refuses elevation with a clear English message; it never silently runs privileged ops\"), HN-11 (no shell=True / no unvalidated argv), HN-12 (don't weaken HMAC/validation for convenience), HN-4 (never raise; degrade), HN-6 (no \"works\" claim without live sign-off).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-10 (shelling a privileged command string — the elevator passes a validated argv vector, never a shell string), AP-12 (ship a fake).\n- Read `jarvis/admin/launcher.py:11/42` (the dormant elevation glue, PC-7) + `jarvis/admin/client.py:66/80/152-164`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 3.1 (Worktree F), parallel sub-branch off `crossplat/w3-transport` after 3.1: suggested `crossplat/w3-elevator` branched from `crossplat/w3-transport`.\n3. `pip install -e \".[dev]\"`\n4. `requesting-code-review` before merge.\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/admin/elevator.py`, `jarvis/admin/data/` (polkit policy file), `tests/fakes/fake_elevator.py`, `tests/unit/admin/test_elevator.py`.\nModify: `jarvis/admin/launcher.py` (move the runas spawn behind UacElevator; keep `ensure_admin_secret` transport-agnostic), `jarvis/admin/client.py` (inject `Elevator`). Depends on 3.1's transport seam.\n<\/scope>\n\n<primary-path>\n1. Define `Elevator` Protocol + `ElevationResult` (success/refusal shape).\n2. Implement each elevator; the Linux/macOS ones spawn the helper with a VALIDATED argv vector (never a shell string) routed through `NO_WINDOW_CREATIONFLAGS`/equivalent (HN-18).\n3. Implement `NullElevator` (refusal + log, never raises) and `make_elevator()`.\n4. Move the Windows runas spawn behind `UacElevator`; inject `Elevator` into `AdminClient` (preserve the DI seam).\n5. Write `fake_elevator.py` + `test_elevator.py` (factory selection + is_available + the Null refusal path); mark any real-prompt test `skip_ci`.\n<\/primary-path>\n\n<fallback-paths>\n- If the polkit policy file format is uncertain, ship a minimal valid `.policy` granting only the helper action and document it; `PolkitElevator.is_available()` still gates on `which pkexec`. Failure condition: pkexec is invoked without a policy and silently fails.\n- If `osascript … with administrator privileges` can't bind cleanly to the socket address, pass the address as a validated argv arg to the helper rather than interpolating into the shell-script string (HN-11/AP-10). Failure condition: the address is interpolated into a shell string.\n- You may invent the `ElevationResult` shape and the spawn mechanism if the prescribed ones fight the platform, provided NullElevator is the safe default (HN-14), no shell string carries a privileged arg (AP-10), and the helper still validates every op (HN-12).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/admin/test_elevator.py -v\npytest tests/unit/admin/test_elevator.py -k null -v\npython -c \"from jarvis.admin.elevator import make_elevator, Elevator; assert isinstance(make_elevator(), Elevator)\"\nruff check jarvis/admin/elevator.py && mypy jarvis/admin/elevator.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-14 — `NullElevator` is the default; a headless/no-auth box REFUSES with a clear English message; it never silently runs privileged ops.\n- HN-11 / AP-10 — the elevator passes a validated argv vector; never a shell string; never `shell=True`.\n- HN-12 — the helper still runs every op through the reused validation; the elevator does not bypass it.\n- HN-4 — every elevator (esp. Null) degrades/refuses, never raises.\n- HN-6 — no \"elevation works\" claim; Wave 4 owns the live sign-off.\nSOFT:\n- Mirror the existing DI seam when injecting into `AdminClient`.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The `Elevator` Protocol + the five elevators + factory selection.\n- The NullElevator refusal path (default, never raises).\n- Confirmation the elevator only spawns; the helper still validates every op (argv-only).\n- Hard-rules honored (HN-14/HN-11/HN-12/HN-4 quoted) + the code-review pass.\n- Path-taken + the polkit/osascript spawn approach.\n<\/done-signal>", "3.5": "ultrathink\n<role>\nYou supersede ADR-0001 with ADR-0020 documenting the cross-platform elevation architecture. Your outcome is an append-only ADR recording the AdminTransport + Elevator seams, the reused HMAC core, the UnixSocketTransport peer-cred model, the per-OS op vocabulary, and the NullElevator headless contract — with ADR-0001 marked superseded (not deleted) and numbering kept unique.\n<\/role>\n\n<outcome>\nDONE means:\n- `docs/adr/0020-cross-platform-elevation.md` exists and records the AD-12 architecture: the `AdminTransport` + `Elevator` seams, the reused HMAC/envelope/Pydantic-argv core (explicitly UNCHANGED), the `UnixSocketTransport` peer-cred model vs the SDDL-ACL pipe, the per-OS op vocabulary, and the `NullElevator` headless refusal. It references the regression guard (`tests/unit/admin/test_hmac_replay.py`) that protects the unchanged core, and states the new surface is transport + elevation + op-vocabulary only.\n- `docs/adr/0001-ipc-named-pipe-hmac.md` gains a \"Superseded by ADR-0020 (2026-xx-xx)\" header note (append-only; do not delete content).\n- `CLAUDE.md` Phase-5/admin pointers + AP-table reference the new seams where needed.\n- `tests/unit/docs/test_adr_uniqueness.py` green (0020 does not collide; note 0009/0010/0014 carry legacy duplicates).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` §3.5.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-12 + EK-6 (ADR-0001 superseded).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-12 (the security core is unchanged) and HN-17 (English-only artifacts).\n- Read `docs/adr/0001-ipc-named-pipe-hmac.md` + an existing well-formed ADR for the house format, and `tests/unit/docs/test_adr_uniqueness.py` for the uniqueness constraint.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 3.3 (Worktree G): `../sub-agents-outputs/crossplat-w3-opvocab` on `crossplat/w3-op-vocab`.\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nCreate: `docs/adr/0020-cross-platform-elevation.md`. Modify: `docs/adr/0001-ipc-named-pipe-hmac.md` (supersession header), `CLAUDE.md` (admin pointers). Docs only.\n<\/scope>\n\n<primary-path>\n1. Read 0001 + the house ADR format.\n2. Write 0020 covering the AD-12 architecture + the unchanged-core statement + the regression-guard reference.\n3. Add the supersession note to 0001 (append-only).\n4. Add the CLAUDE.md pointer; run the uniqueness test.\n<\/primary-path>\n\n<fallback-paths>\n- If `test_adr_uniqueness.py` flags a collision with a legacy duplicate, follow its convention (the test documents how duplicates are handled) — do not renumber existing ADRs. Failure condition: the test stays red.\n- You may structure ADR-0020 to match whichever house template the existing ADRs use, provided it states the unchanged-core fact (HN-12).\n<\/fallback-paths>\n\n<acceptance>\ntest -f docs/adr/0020-cross-platform-elevation.md && echo OK\ngrep -n \"Superseded by ADR-0020\" docs/adr/0001-ipc-named-pipe-hmac.md\npytest tests/unit/docs/test_adr_uniqueness.py -v\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-12 — ADR-0020 states the HMAC/argv core is UNCHANGED; the new surface is transport + elevation + op vocabulary only.\n- HN-17 — English-only; ADR history is append-only (0001 is not deleted).\nSOFT:\n- Match the house ADR template.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- ADR-0020 created + the architecture it records.\n- 0001 supersession note + the unchanged-core statement.\n- CLAUDE.md pointer added.\n- Uniqueness test green (HN-12/HN-17 quoted).\n- Path-taken.\n<\/done-signal>", "3.6": "ultrathink\n<role>\nYou wire the AdminTransport + Elevator seams into `AdminClient` and the helper boot, preserving the exact control flow and extending the refusal path to cover NullElevator. Your outcome is the admin client/helper running through `make_admin_transport()` + `make_elevator()` instead of hardcoded Windows pipe classes — with the \"zero silent drops\" refusal contract intact across OSes. This is the last sub-task in Worktree F; it lands after 3.2 + 3.4.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/admin/client.py`: `_ensure_pipe_client` (`:108`) becomes a transport-agnostic `_ensure_transport` using `make_admin_transport()`; `make_elevator()` is injected. `AdminClient.execute` (`:121`) keeps its exact control flow: destructive gate (`:135`) → cancel-token (`:142`) → ensure transport/secret (`:152`) → publish requested (`:167`) → roundtrip (`:172`) → completed/rejected event (`:174-183`). Only step 3 swaps `AdminPipeClient` for `make_admin_transport()`, and the `no_secret` refusal (`:154-164`) is EXTENDED to also cover `NullElevator` refusals with the same `AdminResponse(success=False, error_code=...)` shape.\n- `jarvis/admin/helper.py`: constructs `make_admin_transport()` (not hardcoded `AdminPipeServer`) and serves the reused `_decode_request`→executor→`_encode_response` handler.\n- `tests/unit/admin/ -v` green on all OS legs (client flow exercised with `fake_admin_transport.py` + `fake_elevator.py`). `import jarvis.admin.client, jarvis.admin.helper` clean on Linux/macOS. The Windows loopback regression `tests/integration/test_admin_ipc_loopback.py` stays green.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` §3.6.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-12 + AD-6 (\"zero silent drops\").\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-14 (NullElevator refusal default), HN-12 (don't weaken validation), HN-11 (no shell=True), HN-7 (no module-scope Windows import in client/helper).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-10 + AP-12.\n- Read `jarvis/admin/client.py:108-183` (the exact control flow to preserve) + `jarvis/admin/helper.py`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 3.1/3.2/3.4 (Worktree F): `crossplat/w3-transport` (after merging the 3.2 + 3.4 sub-branches into it). 3.6 wires them in last.\n3. `pip install -e \".[dev]\"`\n4. `requesting-code-review` before merge.\n<\/environment-setup>\n\n<scope>\nModify: `jarvis/admin/client.py` (transport-agnostic ensure + inject elevator + extend the refusal path), `jarvis/admin/helper.py` (bind via `make_admin_transport()`). Depends on 3.1 + 3.2 + 3.4.\n<\/scope>\n\n<primary-path>\n1. Replace `_ensure_pipe_client` with `_ensure_transport` using `make_admin_transport()`; inject `make_elevator()` into `AdminClient.__init__` (preserve the injectable seam).\n2. Keep `execute`'s control flow identical; extend the `no_secret` refusal to also surface NullElevator refusals as `AdminResponse(success=False, ...)`.\n3. Bind the helper via `make_admin_transport()`; serve the reused handler.\n4. Run the unit suite with the fakes + the Windows loopback regression; confirm import-clean on POSIX.\n<\/primary-path>\n\n<fallback-paths>\n- If injecting the elevator changes `AdminClient.__init__` arity and breaks callers, give it a defaulting `elevator: Elevator | None = None` that lazily builds `make_elevator()` — preserve backward-compatible construction. Failure condition: an existing caller breaks.\n- If the helper's transport bind needs the address from the elevator, thread it through as a validated arg, never a shell string (HN-11). Failure condition: the address rides a shell string.\n- You may invent the refusal-extension shape if the prescribed one fights the event flow, provided the AD-6 \"zero silent drops\" contract holds (every failure → typed AdminResponse, never a crash/silent drop).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/admin/ -v\npython -c \"import jarvis.admin.client, jarvis.admin.helper; print('admin import clean')\"\npytest tests/integration/test_admin_ipc_loopback.py -v\npython scripts/ci/check_import_clean.py\nruff check jarvis/admin/ && mypy jarvis/admin/client.py jarvis/admin/helper.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-14 — NullElevator refusal surfaces as a typed `AdminResponse(success=False, ...)`; never a silent drop.\n- HN-12 / HN-11 — the helper still validates every op through the reused chain; no shell=True.\n- HN-7 — client/helper import-clean on POSIX (Windows pipe code lazy inside transport).\n- AD-6 — the exact control flow is preserved; every failure is a typed response, never a crash.\nSOFT:\n- Keep `AdminClient.__init__` backward-compatible (defaulting elevator).\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The transport-agnostic ensure + injected elevator + the extended refusal path.\n- The helper bound via `make_admin_transport()`.\n- Admin import-clean on POSIX + the Windows loopback regression green.\n- Hard-rules honored (HN-14/HN-12/HN-7 quoted) + the code-review pass.\n- Path-taken + any backward-compat default used.\n<\/done-signal>", "check-w3": "ultrathink\n<role>\nYou are a read-only phase auditor for Wave 3 (the security-sensitive admin/elevation wave). Your outcome is a PASS/FAIL verdict on whether the AdminTransport + Elevator seams meet EK-2/EK-3 + the ADR half of EK-6 and are safe to merge — with explicit confirmation that the HMAC core is unchanged, peer-cred is enforced, NullElevator is the default, and end-to-end elevation is correctly NOT CI-verified (deferred to Wave 4). You verify; you do not modify.\n<\/role>\n\n<outcome>\nDONE means a verdict report stating, with command evidence, whether:\n- The HMAC/envelope core is unchanged (`test_hmac_replay.py` green; HN-12).\n- `make_admin_transport()` selects per OS; `ipc.py`/`client.py`/`helper.py` are import-clean on POSIX (no module-scope win32; HN-7).\n- `UnixSocketTransport` enforces the peer-cred check + 0600/0700 perms; the real AF_UNIX loopback round-trips (HN-13).\n- The Unix op vocabulary is fresh members of the same union with pattern-validated argv; a malicious payload is rejected; `shell=True` appears nowhere on the admin path (HN-11/HN-12/AP-7/AP-10).\n- `NullElevator` is the default refusal; `make_elevator()` selects per OS; no end-to-end elevation test runs in CI (HN-14/AD-3).\n- ADR-0020 supersedes ADR-0001; uniqueness holds (EK-6).\n- The CI matrix is green.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` (EK acceptance gate).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` EK-2/EK-3/EK-6 + AD-3/AD-12.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-11/HN-12/HN-13/HN-14/HN-7/HN-15.\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-7/AP-10/AP-12.\n<\/required-reading>\n\n<environment-setup>\n1. `git switch feat/crossplatform-port` (with Wave-3 branches merged, or check each branch).\n2. `pip install -e \".[dev]\"`\nRead-only. Run a `requesting-code-review`-style scan over the admin diff focused on the no-shell / validated-argv / peer-cred invariants.\n<\/environment-setup>\n\n<scope>\nModify: NOTHING. Grep the entire admin path for `shell=True` and for module-scope `win32*` imports; grep for any test that would trigger a real elevation prompt without `skip_ci`.\n<\/scope>\n\n<primary-path>\n1. Run each acceptance command; capture output.\n2. Grep `shell=True` across `jarvis/admin/`; confirm zero.\n3. Confirm CI green + that interactive-auth tests are skip_ci.\n4. Render the verdict, explicitly flagging end-to-end elevation as Wave-4-deferred (HN-6/AD-3).\n<\/primary-path>\n\n<fallback-paths>\n- If a sub-task branch is not yet merged, audit it on its branch and note integration state.\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/admin/ -v\npytest tests/integration/test_admin_unix_loopback.py tests/integration/test_admin_ipc_loopback.py -v\ngrep -rn \"shell=True\" jarvis/admin/ || echo \"no shell=True on the admin path\"\npython scripts/ci/check_import_clean.py\npython -c \"from jarvis.admin.elevator import make_elevator, Elevator; from jarvis.admin.transport import make_admin_transport, AdminTransport; assert isinstance(make_elevator(), Elevator) and isinstance(make_admin_transport(), AdminTransport)\"\npytest tests/unit/docs/test_adr_uniqueness.py -v\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-12 — confirm the HMAC core is unchanged before declaring mergeable.\n- HN-13 — confirm peer-cred is enforced.\n- HN-14 — confirm NullElevator is the default refusal.\n- HN-15 — do not declare mergeable unless the matrix is green.\nSOFT:\n- Be explicit that end-to-end elevation is Wave-4-deferred.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- HMAC core unchanged + transport seam + import-clean: PASS/FAIL.\n- Peer-cred + loopback + op-vocab validation + no-shell: PASS/FAIL.\n- NullElevator default + per-OS elevator selection: PASS/FAIL.\n- ADR-0020 supersession + uniqueness + CI green: PASS/FAIL.\n- Overall verdict + the Wave-4-deferred elevation note + path-taken; if FAIL, the exact blocker.\n<\/done-signal>", "merge-w3": "ultrathink\n<role>\nYou mechanically merge Wave 3's branches onto the integration branch, run the wave acceptance, and push only if green. Step-prescriptive — and extra-careful because this is the security-sensitive wave.\n<\/role>\n\n<outcome>\nDONE means: Worktree F's transport branch (with its 3.2 + 3.4 sub-branches already folded in via 3.6) and Worktree G's op-vocab+ADR branch merge `--no-ff` onto `feat/crossplatform-port`; the wave acceptance passes (including the HMAC-replay regression and the no-`shell=True` scan); the CI matrix is green; the branch is pushed. Any conflict or red CI → STOP and hand off to the matching recovery prompt. Never resolve a conflict by weakening a security invariant.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` §Parallelism (F: 3.1→3.2→3.4→3.6; G: 3.3+3.5).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-11/HN-12/HN-13/HN-14/HN-15/HN-17.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git switch feat/crossplatform-port`\n3. `git fetch origin && git pull --ff-only origin feat/crossplatform-port`\n4. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nBranches: `crossplat/w3-transport` (folds in `crossplat/w3-unix-socket` + `crossplat/w3-elevator` via 3.6), `crossplat/w3-op-vocab`. Merge commits + conflict resolutions only.\n<\/scope>\n\n<primary-path>\n1. Confirm the F sub-branches are folded into `crossplat/w3-transport` (3.6 done); if not, fold them there first.\n2. `git merge --no-ff crossplat/w3-op-vocab` → run acceptance.\n3. `git merge --no-ff crossplat/w3-transport` → run acceptance.\n4. Full wave acceptance incl. the HMAC-replay regression + the no-shell scan; if green, `git push origin feat/crossplatform-port`; watch CI.\n<\/primary-path>\n\n<fallback-paths>\n- Conflict (likely in `schema.py`/`executor.py` if both waves touched op tables, or `client.py`) → STOP, hand off to `recovery-merge-conflict`. NEVER resolve by removing peer-cred (HN-13), weakening HMAC (HN-12), or adding `shell=True` (HN-11).\n- Red CI after push → STOP, hand off to `recovery-red-ci`.\n- Never force-push (HN-17).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/admin/test_hmac_replay.py -v\npytest tests/unit/admin/ -q\npytest tests/integration/test_admin_unix_loopback.py tests/integration/test_admin_ipc_loopback.py -v\ngrep -rn \"shell=True\" jarvis/admin/ || echo \"no shell=True\"\npython scripts/ci/check_import_clean.py\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-12/HN-13/HN-11/HN-14 — never resolve a conflict by weakening the HMAC core, dropping peer-cred, adding shell=True, or removing the NullElevator default.\n- HN-15 — push only if green.\n- HN-17 — no force-push, no `--no-verify`.\nSOFT:\n- `--no-ff` per unit.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The merges + hashes (F sub-branches folded via 3.6).\n- Wave acceptance incl. HMAC-replay + no-shell scan.\n- CI matrix green status (run URL).\n- Hard-rules honored (HN-12/HN-13/HN-15 quoted).\n- Path-taken / any recovery handoff.\n<\/done-signal>", "4.1": "ultrathink\n<role>\nYou build the live sign-off harness: a checklist of exactly the GUI/permission behaviors CI cannot reach, plus a thin operator-aide probe runner. Your outcome is a per-(feature × OS) manual checklist and a `signoff_probe.py` that constructs each seam via its factory and brackets the manual step — it does NOT try to automate a permission prompt (impossible).\n<\/role>\n\n<outcome>\nDONE means:\n- `docs/plans/cross-platform-mac-linux/LIVE-SIGNOFF-CHECKLIST.md` exists with ONE row per (feature × {macOS, Linux}) for the four GUI/permission behaviors CI cannot reach: AX/AT-SPI tree capture, Orb transparency, global-hotkey capture, elevation prompt. Each row: the precise manual step, the expected observation, a PASS/FAIL/N/A field. It covers the degrade paths too (revoke permission → onboarding message + pixel fallback; Wayland hotkey no-op; tray fallback).\n- `scripts/crossplatform/signoff_probe.py` constructs each seam via its factory (`make_ui_tree_source`, `make_overlay_surface`, `make_hotkey_backend`, `make_admin_transport`/`make_elevator`), runs the live action on the matching OS, and prints what the operator should observe. `--list` prints the probe catalog on ANY OS without raising (acts only on the matching OS).\n- `python scripts/crossplatform/signoff_probe.py --list` runs on any OS without raising; `ruff check scripts/crossplatform/` clean.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` §4.1 (the exact per-feature manual steps).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-3 (CI + one-time live sign-off) + AD-13 (detect-and-degrade) + AD-8 (Wayland no-op / macOS Input-Monitoring).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-6 (\"Never claim a GUI/permission feature 'works' without a live sign-off. CI-green is NOT sufficient…\") and HN-4 (the probe never raises off-OS).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-9 (no real display in CI — the probe is an operator aide, not a CI test) + AP-2 (distinguish empty from forbidden).\n- The six factory entry points from Waves 1-3 (read their signatures).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w4-signoff ../sub-agents-outputs/crossplat-w4-signoff feat/crossplatform-port`\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nCreate: `docs/plans/cross-platform-mac-linux/LIVE-SIGNOFF-CHECKLIST.md`, `scripts/crossplatform/signoff_probe.py` (+ `scripts/crossplatform/__init__.py` if needed). Worktree owns 4.1→4.2→4.3→4.4→4.6. No production-code edits.\n<\/scope>\n\n<primary-path>\n1. Write the checklist: one row per (feature × OS) for the four behaviors + their degrade paths, each with step/expected/verdict-field.\n2. Write `signoff_probe.py`: `--list` prints the catalog; each `--feature` flag constructs the matching factory + runs the live action + prints the expected observation; off-OS → print \"N/A on this platform\" and exit 0 (never raise).\n3. `sys.stdout.reconfigure(encoding='utf-8')` at the top.\n<\/primary-path>\n\n<fallback-paths>\n- If a factory needs runtime config the probe can't supply headless, have the probe construct it lazily and print the manual prerequisite instead of failing. Failure condition: `--list` raises on any OS.\n- You may structure the checklist table however reads clearly, provided it has one row per (feature × {macOS, Linux}) for the four behaviors (and the degrade paths).\n<\/fallback-paths>\n\n<acceptance>\ntest -f docs/plans/cross-platform-mac-linux/LIVE-SIGNOFF-CHECKLIST.md && echo OK\npython scripts/crossplatform/signoff_probe.py --list\nruff check scripts/crossplatform/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-6 — the harness frames the live sign-off as the ONLY way to claim GUI/permission features work; CI-green is not enough.\n- HN-4 / AP-9 — `signoff_probe.py --list` never raises off-OS; it is an operator aide, never a CI test; no real display required to list.\nSOFT:\n- Cover the degrade paths (revoke → fallback; Wayland no-op; tray) as explicit rows.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The checklist row coverage (4 behaviors × 2 OSes + degrade paths).\n- `signoff_probe.py --list` runs on the maintainer box without raising (output).\n- The factories the probe constructs.\n- Hard-rules honored (HN-6/HN-4 quoted).\n- Path-taken.\n<\/done-signal>", "4.2": "ultrathink\n<role>\nYou execute the live sign-off on a real macOS box and a real Linux desktop and record an honest, dated, device-attributed per-feature verdict. Your outcome is `SIGNOFF-LOG.md` where every GUI/permission row carries either `live-verified <date> on <device>` or an explicit `unverified-on-real-desktop` with the reason — honesty over a green-washed claim.\n<\/role>\n\n<outcome>\nDONE means:\n- `docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md` exists with a verdict line for every (feature × OS) GUI/permission row from the 4.1 checklist.\n- Each verdict is either `<feature> (<OS>): live-verified <date> on <device>` or `<feature> (<OS>): unverified-on-real-desktop — <reason>`. No row is left blank.\n- Any behavior that could not be reached (no Wayland box, no rented Mac) is recorded honestly as `unverified-on-real-desktop` with the reason — this is the AD-3 honesty contract, not a failure; the plan still ships.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` §4.2.\n- `docs/plans/cross-platform-mac-linux/LIVE-SIGNOFF-CHECKLIST.md` (from 4.1 — the rows to fill).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-3 + EK-5.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-6 (no \"works\" claim without a live sign-off) and HN-17 (English-only).\n<\/required-reading>\n\n<environment-setup>\n1. Continue in the 4.1 worktree: `../sub-agents-outputs/crossplat-w4-signoff` on `crossplat/w4-signoff`.\n2. On EACH real device available: `pip install -e \".[dev,desktop]\"` (+ `.[desktop-macos]` on Mac; `apt install python3-pyatspi gir1.2-atspi-2.0` on Linux per AD-14), then run `scripts/crossplatform/signoff_probe.py` per the checklist.\n3. This sub-task is HUMAN-GATED — it requires the operator at a real macOS box and a real Linux desktop.\n<\/environment-setup>\n\n<scope>\nCreate: `docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md`. No production-code edits.\n<\/scope>\n\n<primary-path>\n1. On the macOS device: run the AX, Orb-transparency, hotkey-capture, and elevation-prompt probes per the checklist; record each verdict with date + device.\n2. On the Linux desktop: run the AT-SPI, Orb (compositor + tray fallback), hotkey (X11 vs Wayland), and elevation (pkexec/sudo/null) probes; record each verdict.\n3. For any unreachable behavior, record `unverified-on-real-desktop` + the reason.\n4. Cross-check that every 4.1 row has a verdict line.\n<\/primary-path>\n\n<fallback-paths>\n- If only one OS device is available, complete that OS and record the other's rows as `unverified-on-real-desktop — no <OS> device available` (AD-3 honesty). Failure condition: a row is left blank.\n- If a rented cloud Mac lacks a GUI session for the Orb, record the Orb row as unverified with that reason but still verify the AX-tree/elevation headless-reachable parts. Failure condition: claiming Orb transparency without a real display.\n<\/fallback-paths>\n\n<acceptance>\ntest -f docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md && echo OK\ngrep -c \"live-verified\\|unverified-on-real-desktop\" docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-6 — only a live sign-off (with date + device) earns a \"works\" claim; everything else is `unverified-on-real-desktop`.\n- HN-17 — English-only.\nSOFT:\n- An honest `unverified` is a pass for the AD-3 contract, not a failure.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Devices used (or which were unavailable).\n- The per-feature verdicts (live-verified vs unverified, with dates/devices).\n- Confirmation no row is blank (grep count ≥ row count).\n- Hard-rules honored (HN-6/HN-17 quoted).\n- Path-taken (which OSes were reachable).\n<\/done-signal>", "4.3": "ultrathink\n<role>\nYou write the honest per-feature labels into the README capability matrices to retire the \"Windows-only\" claim. Your outcome is the repo README + the plan README reflecting the real cross-platform status — Terminal/App-launch as CI-verified, the GUI/permission features carrying the 4.2 verdict badge, Admin noted as never-CI-E2E.\n<\/role>\n\n<outcome>\nDONE means:\n- `README.md` (the \"What runs where (platform capability matrix)\" table at `README.md:64-79`): the rows that said Windows-only (the \"—\" cells for Linux/macOS at `:75-77`) now carry honest badges — Terminal + app-launch-by-name → `✅ CI-verified` (EK-4, no sign-off needed); UI-element-click, Orb, global-hotkey → the 4.2 verdict (`✅ live-verified <date>` or `🟡 unverified-on-real-desktop`); Admin/elevation → the 4.2 verdict + \"never CI-E2E by design\".\n- The prose paragraph at `README.md:79` no longer claims those six are Windows-only — the new truth is \"cross-platform behind a seam, with per-feature verification badges\". A short \"Verification status\" subsection links to `SIGNOFF-LOG.md`.\n- `docs/plans/cross-platform-mac-linux/README.md` (the TL;DR six-feature table at `:41-48`): the \"CI-testable?\" column matches the SIGNOFF-LOG.\n- `grep \"Global-hotkey wake, Orb overlay\" README.md` no longer shows \"— | — | ✅\"; `grep \"CI-verified\\|live-verified\\|unverified-on-real-desktop\" README.md` matches in the capability-matrix section. `python -c \"import jarvis\"` still clean (docs-only; no `npm run build` needed).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` §4.3 (the exact README lines).\n- `docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md` (from 4.2 — the verdicts to transcribe).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` EK-4/EK-5/EK-6 + AD-3.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-6 (honest badges; CI-green ≠ GUI works) and HN-17 (English-only).\n- Read the current `README.md:64-79` + the plan `README.md:41-48` to see the exact present cells.\n<\/required-reading>\n\n<environment-setup>\n1. Continue in the 4.1/4.2 worktree: `../sub-agents-outputs/crossplat-w4-signoff` on `crossplat/w4-signoff`.\n2. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nModify: `README.md` (the capability matrix + the prose + a Verification-status subsection), `docs/plans/cross-platform-mac-linux/README.md` (the TL;DR \"CI-testable?\" column). Docs only.\n<\/scope>\n\n<primary-path>\n1. Transcribe the 4.2 verdicts into the README matrix rows (CI-verified for terminal/app-launch; the live verdict for AX/Orb/hotkey; never-CI-E2E for admin).\n2. Rewrite the Windows-only prose; add the Verification-status subsection linking SIGNOFF-LOG.md.\n3. Align the plan README's TL;DR \"CI-testable?\" column.\n4. Run the grep acceptance.\n<\/primary-path>\n\n<fallback-paths>\n- If the README line numbers have drifted, edit the rows by their content (find the capability table) and note the drift. Failure condition: the matrix can't be located.\n- If a feature's 4.2 verdict is `unverified-on-real-desktop`, the badge MUST be `🟡 unverified-on-real-desktop` — never upgrade it to a green claim (HN-6). Failure condition: a badge over-claims relative to SIGNOFF-LOG.\n<\/fallback-paths>\n\n<acceptance>\ngrep -n \"CI-verified\\|live-verified\\|unverified-on-real-desktop\" README.md\ngrep -n \"Global-hotkey wake, Orb overlay\" README.md\npython -c \"import jarvis; print('import clean')\"\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-6 — every GUI/permission badge matches its SIGNOFF-LOG verdict exactly; never over-claim.\n- HN-17 — English-only.\nSOFT:\n- Keep the Verification-status subsection short; link, don't duplicate, SIGNOFF-LOG.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The README matrix rows updated + the badges applied (matching 4.2).\n- The Windows-only prose retired + the Verification-status link.\n- The plan README TL;DR column aligned.\n- Hard-rules honored (HN-6/HN-17 quoted).\n- Path-taken + any line-number drift.\n<\/done-signal>", "4.4": "ultrathink\n<role>\nYou update CLAUDE.md's cross-platform framing and supersession pointers so a future agent does not \"fix\" the migration's intentional decisions. Your outcome is a CLAUDE.md paragraph recording the six features as cross-platform behind the `jarvis/platform/` seam, the per-feature verification status, ADR-0020, and the AD-14 dependency reality (especially: do NOT pip-install pyatspi) — while keeping the €5-VPS base-install doctrine intact.\n<\/role>\n\n<outcome>\nDONE means:\n- `CLAUDE.md`: a paragraph (or small table) records that Terminal/Hotkey/Orb/UI-element-click/Admin are now cross-platform behind the `jarvis/platform/` seam, with per-feature verification status pointing at `SIGNOFF-LOG.md`, referencing ADR-0020 (supersedes ADR-0001) and the `jarvis/platform/` capability module (AD-5).\n- The dependency-grouping reality is recorded (AD-14): `pynput`+`ptyprocess` in `[desktop]`, `pyobjc-*` in `[desktop-macos]`, `pyatspi` as a distro prerequisite — so a future agent does not \"fix\" the missing pyatspi pip dep.\n- The doctrine is intact: the base €5-VPS install still ships none of these desktop extras; they remain opt-in and degrade gracefully. The \"base install boots on a headless `python:3.11-slim`\" claim is unchanged and still true (no new base dependency added).\n- `grep \"ADR-0020\\|jarvis/platform\\|SIGNOFF-LOG\" CLAUDE.md` matches; `grep \"pyatspi\" CLAUDE.md` matches.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` §4.4.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-5/AD-14 + EK-6.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-8 (extras only), HN-9 (\"Never put pyatspi in a pip extra\"), HN-6 (verification badges), HN-17 (English-only).\n- Read `CLAUDE.md` \"Cloud-First Philosophy\" + \"Windows specifics\" + the AP-table/pointers sections.\n<\/required-reading>\n\n<environment-setup>\n1. Continue in the Wave-4 worktree: `../sub-agents-outputs/crossplat-w4-signoff` on `crossplat/w4-signoff`.\n2. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nModify: `CLAUDE.md` (the cross-platform framing + the dependency-reality note + the supersession pointer). Docs only.\n<\/scope>\n\n<primary-path>\n1. Add the cross-platform-behind-the-seam paragraph + the per-feature verification pointer to SIGNOFF-LOG.md + the ADR-0020/`jarvis/platform/` references.\n2. Add the AD-14 dependency-reality note, explicitly: do NOT pip-install pyatspi.\n3. Confirm the doctrine's base-install claim is unchanged.\n4. Run the grep acceptance.\n<\/primary-path>\n\n<fallback-paths>\n- If CLAUDE.md's section structure has changed, place the paragraph in the most relevant existing section (Windows specifics / Optional power-user extras) and note the placement. Failure condition: the new framing can't be located by a future agent.\n- You may phrase the framing however reads clearly, provided the pyatspi-is-apt-only guidance is explicit (HN-9) and the base-install doctrine is untouched.\n<\/fallback-paths>\n\n<acceptance>\ngrep -n \"ADR-0020\\|jarvis/platform\\|SIGNOFF-LOG\" CLAUDE.md\ngrep -n \"pyatspi\" CLAUDE.md\npython -c \"import jarvis; print('import clean')\"\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-9 — the \"do not pip-install pyatspi\" guidance is recorded (defends AD-14).\n- HN-8 — the extras-only / base-install-clean doctrine is reaffirmed, not weakened.\n- HN-17 — English-only.\nSOFT:\n- Keep the doctrine's headless-VPS claim verbatim-true.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The cross-platform framing paragraph + the SIGNOFF-LOG / ADR-0020 / jarvis-platform references.\n- The AD-14 dependency-reality note (incl. pyatspi-is-apt-only).\n- Confirmation the base-install doctrine is unchanged.\n- Hard-rules honored (HN-9/HN-8/HN-17 quoted).\n- Path-taken.\n<\/done-signal>", "4.5": "ultrathink\n<role>\nYou run the JARVIS-20 cross-platform benchmark (authored elsewhere) on each available OS and record per-(scenario × OS) scores. Your outcome is `JARVIS-20-RESULTS.md` distinguishing `pass` / `degraded-as-designed` (a pass for the AD-6 contract) / `fail` (a crash or silent drop — a release blocker per AD-OE6). Zero `fail` rows are allowed at close-out.\n<\/role>\n\n<outcome>\nDONE means:\n- `docs/plans/cross-platform-mac-linux/JARVIS-20-RESULTS.md` exists with a row per (scenario × available OS), each scored `pass` / `degraded-as-designed` (with the reason, e.g. Wayland hotkey no-op, headless tray fallback) / `fail` (a crash or silent drop).\n- Zero `fail` rows that represent a crash or silent drop (a `fail` is a release blocker per AD-OE6); every non-pass is explicitly `degraded-as-designed` with the reason.\n- The results file references `JARVIS-20-CROSSPLATFORM.md` as its scenario source and cross-links the SIGNOFF-LOG.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` §4.5.\n- `docs/plans/cross-platform-mac-linux/JARVIS-20-CROSSPLATFORM.md` (the 20 scenarios — authored by a separate agent; you EXECUTE, not author. If absent, coordinate — do not invent scenarios).\n- `docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md` (cross-link target).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-6 (graceful degrade) + AD-OE6 (zero silent drops — a `fail` is a blocker).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-4 (degrade, never raise — a crash is a fail) and HN-5 (never silently empty — a silent drop is a fail).\n<\/required-reading>\n\n<environment-setup>\n1. Continue in / share the Wave-4 worktree on `crossplat/w4-signoff` (4.5 is the independent side-track sharing the same hardware session as 4.2).\n2. On each available device: `pip install -e \".[dev,desktop]\"` (+ the per-OS extras/prereqs as in 4.2).\n3. Human-gated: needs the same real macOS + Linux devices as 4.2.\n<\/environment-setup>\n\n<scope>\nCreate: `docs/plans/cross-platform-mac-linux/JARVIS-20-RESULTS.md`. No production-code edits.\n<\/scope>\n\n<primary-path>\n1. Read the 20 scenarios from `JARVIS-20-CROSSPLATFORM.md`.\n2. Execute each on the maintainer Windows box (baseline), the macOS device, and the Linux desktop; score each (scenario × OS).\n3. Classify every non-pass as `degraded-as-designed` (with reason) or `fail` (crash/silent drop). Any `fail` is a release blocker — flag it loudly for a fix before close-out.\n4. Cross-link the SIGNOFF-LOG; reference the scenario source.\n<\/primary-path>\n\n<fallback-paths>\n- If a device is unavailable, run the reachable OSes and mark the missing OS's rows as not-run with the reason (mirror 4.2's honesty). Failure condition: a row is fabricated as `pass` without running it.\n- If `JARVIS-20-CROSSPLATFORM.md` is not yet authored, STOP and report the dependency — do NOT invent the scenarios (this wave executes, does not author them).\n- If a scenario surfaces a `fail`, record it and escalate; do not relabel a crash as `degraded-as-designed` to green the table (HN-4/HN-5/AD-OE6).\n<\/fallback-paths>\n\n<acceptance>\ntest -f docs/plans/cross-platform-mac-linux/JARVIS-20-RESULTS.md && echo OK\ngrep -c \"degraded-as-designed\\|pass\\|fail\" docs/plans/cross-platform-mac-linux/JARVIS-20-RESULTS.md\ngrep -n \"JARVIS-20-CROSSPLATFORM.md\" docs/plans/cross-platform-mac-linux/JARVIS-20-RESULTS.md\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- AD-OE6 / HN-4 / HN-5 — a `fail` (crash or silent drop) is a release blocker; never relabel it as degraded-as-designed.\n- HN-6 — GUI/permission scenario results align with the SIGNOFF-LOG verdicts.\nSOFT:\n- `degraded-as-designed` (with a reason) is a pass for the AD-6 contract.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The scenarios run + the OSes covered.\n- The score distribution (pass / degraded-as-designed / fail).\n- Any `fail` rows flagged as blockers (or \"zero fails\").\n- Hard-rules honored (AD-OE6/HN-4/HN-5 quoted).\n- Path-taken + the scenario-source dependency status.\n<\/done-signal>", "4.6": "ultrathink\n<role>\nYou close out the plan by confirming the full EK-1..EK-6 Definition of Done with an evidence link attached to each. Your outcome is the plan README's DoD section marked complete, each EK pointing at its proving artifact, and a final re-confirmation that CI is still green and the import gate still holds after all six ports merged.\n<\/role>\n\n<outcome>\nDONE means:\n- `docs/plans/cross-platform-mac-linux/README.md`'s Definition-of-Done section marks EK-1..EK-6 complete, each with an evidence pointer: EK-1 → the green `ci.yml` run; EK-2 → the six factories (`make_pty_backend`, app-launch resolver, `make_hotkey_backend`, `make_ui_tree_source`, `make_overlay_surface`, `make_admin_transport`/`make_elevator`); EK-3 → the `tests/fakes/` fakes list; EK-4 → the CI terminal real-PTY test; EK-5 → `SIGNOFF-LOG.md`; EK-6 → ADR-0020 + the README/CLAUDE.md diffs + the import-cleanliness gate.\n- `pytest -m \"not skip_ci\" -q` green on all three CI legs (re-confirm EK-1 after the doc-only Wave-4 changes); `python scripts/ci/check_import_clean.py` exits 0 (EK-6 holds after all six ports merged).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` §4.6.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` EK-1..EK-6 (the full DoD).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-15 (CI green) and HN-7 (import-cleanliness holds).\n- The artifacts produced across all waves (the six factories, the fakes, SIGNOFF-LOG, ADR-0020).\n<\/required-reading>\n\n<environment-setup>\n1. Continue in the Wave-4 worktree on `crossplat/w4-signoff` (after 4.2/4.3/4.4/4.5).\n2. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nModify: `docs/plans/cross-platform-mac-linux/README.md` (the DoD checklist + evidence links). Docs only.\n<\/scope>\n\n<primary-path>\n1. Walk EK-1..EK-6; attach the proving artifact/command to each.\n2. Re-run the import gate + the non-skip_ci suite to re-confirm EK-1/EK-6 after the doc changes.\n3. Mark the DoD section complete with the evidence pointers.\n<\/primary-path>\n\n<fallback-paths>\n- If any EK is not fully met (e.g. a feature is `unverified-on-real-desktop` per 4.2), mark it with the honest status + the reason rather than checking it falsely (HN-6/AD-3). Failure condition: an EK is checked without evidence.\n- If the non-skip_ci suite drops below the min-passed floor after merges, STOP and hand off to `recovery-red-ci` — do not mark EK-1 complete. \n<\/fallback-paths>\n\n<acceptance>\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\npython scripts/ci/check_import_clean.py\ngrep -n \"EK-1\\|EK-2\\|EK-3\\|EK-4\\|EK-5\\|EK-6\" docs/plans/cross-platform-mac-linux/README.md\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — EK-1 is only complete if the matrix is genuinely green.\n- HN-7 — EK-6's import gate must still pass after all six ports merged.\n- HN-6 — an EK tied to a GUI/permission feature reflects its honest SIGNOFF-LOG status.\nSOFT:\n- Each EK gets a concrete evidence pointer, not a bare check.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- EK-1..EK-6 status + the evidence pointer for each.\n- The re-confirmed CI + import-gate results.\n- Any EK left honestly partial (with the reason).\n- Hard-rules honored (HN-15/HN-7/HN-6 quoted).\n- Path-taken.\n<\/done-signal>", "check-w4": "ultrathink\n<role>\nYou are a read-only phase auditor for Wave 4 (the closing wave). Your outcome is a PASS/FAIL verdict on whether the live sign-off, the honest doc labels, the JARVIS-20 results, and the EK close-out are complete and truthful — and whether the plan is genuinely ready to declare done. You verify; you do not modify.\n<\/role>\n\n<outcome>\nDONE means a verdict report stating, with command evidence, whether:\n- `LIVE-SIGNOFF-CHECKLIST.md` + `SIGNOFF-LOG.md` exist; every (feature × OS) GUI/permission row has a `live-verified`/`unverified-on-real-desktop` verdict (EK-5).\n- The README capability matrix + the plan TL;DR + CLAUDE.md carry honest badges matching the SIGNOFF-LOG; no badge over-claims (HN-6).\n- `JARVIS-20-RESULTS.md` exists with zero crash/silent-drop `fail` rows (AD-OE6).\n- The DoD section marks EK-1..EK-6 with evidence; CI is green; the import gate holds.\n- pyatspi is still absent from pyproject; the base install is still clean.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` (EK acceptance gate).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` EK-1..EK-6 + AD-3/AD-OE6.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-6/HN-9/HN-15/HN-7.\n<\/required-reading>\n\n<environment-setup>\n1. `git switch feat/crossplatform-port` (with the Wave-4 branch merged, or check it).\n2. `pip install -e \".[dev]\"`\nRead-only.\n<\/environment-setup>\n\n<scope>\nModify: NOTHING. Cross-check each README/CLAUDE.md badge against the SIGNOFF-LOG verdict; grep for any over-claim.\n<\/scope>\n\n<primary-path>\n1. Run each acceptance command; capture output.\n2. Cross-check badges vs SIGNOFF-LOG (no over-claim).\n3. Confirm zero crash/silent-drop fails in JARVIS-20-RESULTS.\n4. Render the verdict.\n<\/primary-path>\n\n<fallback-paths>\n- If a device was unavailable and a feature is honestly `unverified-on-real-desktop`, that is a PASS for the AD-3 contract — not a FAIL — as long as the badge matches. Failure condition: a badge claims live-verified without a matching SIGNOFF-LOG line.\n<\/fallback-paths>\n\n<acceptance>\ntest -f docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md && test -f docs/plans/cross-platform-mac-linux/JARVIS-20-RESULTS.md && echo \"artifacts ok\"\ngrep -n \"CI-verified\\|live-verified\\|unverified-on-real-desktop\" README.md\ngrep -n \"pyatspi\" CLAUDE.md\npython scripts/ci/check_import_clean.py\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); ext=d['project']['optional-dependencies']; assert all('pyatspi' not in x for g in ext.values() for x in g); print('no pyatspi in pyproject')\"\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-6 — no badge over-claims; each matches its SIGNOFF-LOG verdict.\n- HN-15 — CI green before declaring done.\n- HN-7 / HN-9 — import gate holds; pyatspi absent from pyproject.\nSOFT:\n- An honest `unverified` is a PASS for AD-3.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Sign-off artifacts + every GUI/permission row has a verdict (EK-5): PASS/FAIL.\n- Badges match SIGNOFF-LOG (no over-claim): PASS/FAIL.\n- JARVIS-20 zero crash/silent-drop fails: PASS/FAIL.\n- DoD complete + CI green + import gate + pyatspi-absent: PASS/FAIL.\n- Overall verdict + path-taken; if FAIL, the exact blocker.\n<\/done-signal>", "merge-w4": "ultrathink\n<role>\nYou mechanically merge Wave 4's branch onto the integration branch, run the (mostly doc) wave acceptance, push only if green, and then open the final PR from the integration branch to main. Step-prescriptive.\n<\/role>\n\n<outcome>\nDONE means: `crossplat/w4-signoff` merges `--no-ff` onto `feat/crossplatform-port`; the wave acceptance passes (CI still green after the doc-only changes; import gate holds); the branch is pushed; and a PR from `feat/crossplatform-port` → `main` is opened with the EK-1..EK-6 evidence in the body. Any conflict or red CI → STOP and hand off to the matching recovery prompt.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` §Parallelism + EK gate.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-15, HN-16, HN-17.\n- `CLAUDE.md` (main branch protection: PR-required, linear history, required `sign` check).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git switch feat/crossplatform-port`\n3. `git fetch origin && git pull --ff-only origin feat/crossplatform-port`\n4. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nBranch: `crossplat/w4-signoff`. Merge commit + conflict resolutions only; then open the PR to main.\n<\/scope>\n\n<primary-path>\n1. `git merge --no-ff crossplat/w4-signoff` → run acceptance.\n2. If green, `git push origin feat/crossplatform-port`; watch CI.\n3. Open the PR: `gh pr create --base main --head feat/crossplatform-port` with the EK-1..EK-6 evidence in the body and the per-feature SIGNOFF-LOG badges summarized. End the PR body with the required attribution line.\n<\/primary-path>\n\n<fallback-paths>\n- Conflict → STOP, hand off to `recovery-merge-conflict`.\n- Red CI after push → STOP, hand off to `recovery-red-ci`.\n- If the required `sign` check only runs on tags (per main branch protection notes), surface that to the operator for the owner-bypass decision — do not force the merge yourself (HN-17).\n<\/fallback-paths>\n\n<acceptance>\npython scripts/ci/check_import_clean.py\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\nruff check jarvis/ && ruff format --check jarvis/\ngit log --oneline --merges -1\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\ngh pr view --json url,state 2>/dev/null || echo \"open the PR\"\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — push + PR only if the matrix is green.\n- HN-17 — English-only PR body; never force-push; never `--no-verify`; never bypass signing yourself (surface to the operator).\nSOFT:\n- Summarize the honest per-feature badges in the PR body.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The merge hash + the wave acceptance result.\n- CI matrix green status (run URL).\n- The PR URL + the EK evidence summarized in its body.\n- Hard-rules honored (HN-15/HN-17 quoted).\n- Path-taken / any owner-bypass surfaced to the operator.\n<\/done-signal>", "recovery-rate-limited": "ultrathink\n<role>\nYou recover a coding-agent session that stalled or failed due to API/tool rate-limiting (429s, OAuth-concurrency saturation, throttled subprocess workers). Your outcome is the in-progress sub-task brought back to a clean, resumable state without losing committed work — by reducing concurrency and resuming, not by abandoning the branch.\n<\/role>\n\n<outcome>\nDONE means: the cause of the rate-limit is identified (which provider/tool, concurrency vs quota); in-flight work is preserved (committed on the sub-task branch); concurrency is reduced to a safe level; and either the sub-task resumes cleanly OR a clear \"resume here\" handoff is recorded. No work is lost; no branch is force-reset.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-17 (never force-push; never bypass hooks).\n- The sub-task prompt that was running (its `<done-signal>` defines what \"resume here\" means).\n- MEMORY: the mission mass-failure root cause was OAuth-concurrency saturation (fix = First-Output-Gate + max_concurrent 1) — relevant if the rate-limit is on the worker/sub-agent path.\n<\/required-reading>\n\n<environment-setup>\n1. `git status` (in the affected worktree) — confirm whether uncommitted work exists.\n2. `git stash list` and `git log --oneline -5` — locate the last good commit.\n<\/environment-setup>\n\n<scope>\nModify: only what is needed to reduce concurrency (e.g. a worker `max_concurrent` setting) + commit in-flight work. Do NOT edit unrelated files.\n<\/scope>\n\n<primary-path>\n1. Diagnose: read the error — identify the provider/tool and whether it is a quota cap or concurrency saturation.\n2. Preserve: `git add -A && git commit -m \"wip: <sub-task> checkpoint before rate-limit recovery\"` on the sub-task branch (NEVER on a shared branch directly; NEVER `git add .` blindly — review the diff first).\n3. Reduce concurrency: if it is OAuth-concurrency (sub-agent/worker path), set the relevant `max_concurrent` to 1; if it is a per-provider quota, switch provider via ENV (e.g. `brain.primary`→an alternate) per the project's drift-safe config path (ENV override, not a raw toml edit).\n4. Wait for the limit window to clear (do not hammer-retry in a tight loop), then re-run the sub-task's acceptance commands to confirm the resumable state.\n5. Record a \"resume here\" note (which acceptance commands still need to pass).\n<\/primary-path>\n\n<fallback-paths>\n- If the rate-limit is global and persistent, record the checkpoint commit + a handoff and STOP — let the operator decide when to resume. Failure condition: retries keep 429-ing.\n- If switching provider, use the ENV-override path (drift-guard-safe), never a raw `jarvis.toml` edit that a parallel session could roll back.\n- Never delete `jarvis.lock` manually (MEMORY: that breaks the lock-holder sweep contract).\n<\/fallback-paths>\n\n<acceptance>\ngit status --porcelain\ngit log --oneline -3\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-17 — no force-push; no `--no-verify`; commit in-flight work rather than discarding it.\n- Never `git add .` blindly (review the diff); never manually delete `jarvis.lock`.\nSOFT:\n- Prefer ENV-override provider switch over a raw toml edit.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The diagnosed cause (provider/tool, quota vs concurrency).\n- The checkpoint commit hash (in-flight work preserved).\n- The concurrency/provider mitigation applied.\n- Hard-rules honored (HN-17 quoted).\n- Resume-here: which acceptance commands still need to pass.\n<\/done-signal>", "recovery-red-ci": "ultrathink\n<role>\nYou recover a red CI matrix run. Your outcome is a correctly-diagnosed failure (which OS leg, which step, real failure vs mass-skip vs flake) and a minimal fix that turns the matrix genuinely green — never by lowering the min-passed floor, widening skip_ci to dodge a real failure, or weakening a regression guard.\n<\/role>\n\n<outcome>\nDONE means: the red leg + failing step is identified from the run logs; the failure is classified (real test failure / import-cleanliness violation / min-passed-floor shortfall / mass-skip / flake); the minimal honest fix is applied on the appropriate branch; and the matrix is re-run green on all three legs. No floor lowered, no skip_ci widened to hide a real failure, no guard removed.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-15 (matrix green before merge), HN-16 (\"Never let a mass-skip pass as green. The minimum-passed-count floor must hold\"), HN-7 (import cleanliness), HN-2 (don't weaken a regression guard).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-6 (green-by-mass-skip) + AP-13 (module-scope import goes red on the other OS).\n<\/required-reading>\n\n<environment-setup>\n1. `gh run list --workflow=ci.yml --branch <branch> --limit 3`\n2. `gh run view <run-id> --log-failed` — read the failing step on each red leg.\n3. `git switch <the branch whose PR is red>`; `pip install -e \".[dev]\"`.\n<\/environment-setup>\n\n<scope>\nModify: only the file(s) causing the red. Do NOT touch `scripts/ci/assert_min_passed.py`'s FLOOR (except to bump it FORWARD if the green count legitimately rose) and do NOT add `skip_ci` to dodge a real failure.\n<\/scope>\n\n<primary-path>\n1. Classify the failure from the logs:\n - **Import-cleanliness red** (Linux/macOS `import jarvis` fails / the AST gate flags a module-scope Windows import) → move the offending import inside the function/branch, lazy + guarded (HN-7/AP-13). Reproduce locally: `python scripts/ci/check_import_clean.py`.\n - **Min-passed-floor shortfall** (passed < FLOOR with zero failures) → this is a MASS-SKIP, not a pass: find the collection error / swallowed import that dropped the count; fix the root cause. NEVER lower the floor (HN-16/AP-6).\n - **Real test failure** → fix the code or the test honestly; do not reverse-patch the test to pass (HN-2).\n - **Flake** (passes locally, intermittent on the runner) → confirm it is truly non-deterministic (re-run); if a GUI/display test sneaked into CI, mark it `skip_ci` and move it to the live sign-off (AP-9) — but ONLY a genuinely-headless-impossible test, never a real failure.\n2. Apply the minimal fix on the right branch.\n3. Re-run the relevant acceptance locally, push, and watch the matrix.\n<\/primary-path>\n\n<fallback-paths>\n- If the failure is on a single OS leg only (e.g. macos-latest), reproduce the platform-specific cause via the capability/probe path before editing; do not \"fix\" by branching inline on sys.platform (HN-3). Failure condition: the fix passes one leg but reds another.\n- If the green count legitimately rose, bump FLOOR FORWARD (never down) and note it. Failure condition: lowering FLOOR to pass.\n- If the root cause is genuinely unclear after log review, add targeted logging and re-run rather than guessing a fix (systematic-debugging).\n<\/fallback-paths>\n\n<acceptance>\npython scripts/ci/check_import_clean.py\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\nruff check jarvis/ && mypy jarvis/platform/\ngh run list --workflow=ci.yml --branch <branch> --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-16 / AP-6 — never lower the min-passed floor; a shortfall is a mass-skip to fix at the root.\n- HN-2 — never reverse-patch a test or remove a regression guard to green a run.\n- HN-7 / AP-13 — fix an import-cleanliness red by making the import lazy, not by suppressing the gate.\n- HN-15 — the matrix must be GENUINELY green on all three legs.\nSOFT:\n- Bump FLOOR forward only if the green count truly rose.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The red leg + failing step + the classification.\n- The root cause + the minimal fix applied (on which branch).\n- Re-run result (all three legs green).\n- Hard-rules honored (HN-16/HN-2/HN-7/HN-15 quoted).\n- Path-taken.\n<\/done-signal>", "recovery-merge-conflict": "ultrathink\n<role>\nYou resolve a merge conflict that arose while merging a cross-platform sub-task branch onto the integration branch. Your outcome is a correct, semantically-sound resolution that preserves BOTH the Windows path (untouched, AD-7) and the new OS sibling — never a resolution that drops a regression guard, re-adds a forbidden dependency, or weakens a security invariant.\n<\/role>\n\n<outcome>\nDONE means: the conflicted files are identified; each conflict is resolved by understanding BOTH sides (not blindly taking one); the merge completes; the wave's acceptance passes; and no INVIOLABLE rule was broken in the resolution (no pyatspi re-added, no peer-cred/HMAC weakened, no regression guard deleted, no Windows impl rewritten).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-1 (Windows impl untouched), HN-2 (don't delete a regression guard), HN-9 (no pyatspi in pyproject), HN-12/HN-13 (don't weaken HMAC/peer-cred), HN-17 (no force-push).\n- The `_FROZEN-DECISIONS.md` hot-file ownership table (README §Hot-file ownership) — which wave owns which file; a file in two waves is a coordination point.\n- The two sub-task prompts whose branches are colliding.\n<\/required-reading>\n\n<environment-setup>\n1. `git status` — list the conflicted paths (`Unmerged paths`).\n2. `git diff --name-only --diff-filter=U` — the exact conflict set.\n3. For each conflicted file: `git log --oneline -3 <file>` on both branches to understand each side's intent.\n<\/environment-setup>\n\n<scope>\nModify: only the conflicted files, resolving the markers. Do NOT abort-and-restart unless instructed; do NOT take a wholesale `--theirs`/`--ours` without understanding the hunks.\n<\/scope>\n\n<primary-path>\n1. For the COMMON conflict shapes in this migration:\n - **`pyproject.toml` extras** (Wave-1 `[desktop]` vs Wave-2 `[desktop-macos]`): keep BOTH groups; ensure `pynput`/`ptyprocess` in `[desktop]`, `pyobjc-*` in `[desktop-macos]`, and NO pyatspi anywhere (HN-9). Verify with tomllib.\n - **`jarvis/admin/schema.py` / `executor.py`** (Wave-3 op tables): keep the full superset union; the Windows ops are not narrowed; the Unix ops keep pattern-validated argv (HN-11/HN-12).\n - **A consumer call-site** (e.g. a vision tool touched by Wave 2's factory rewire): keep the factory call (`make_*`), not the old literal; preserve the existing DI seam.\n - **A conftest / test file**: keep BOTH the live-orb path AND the skip_ci on the abandoned framework; never delete a regression guard (HN-2).\n2. Resolve each hunk by intent (both sides preserved where they are additive siblings).\n3. `git add <resolved files>`; complete the merge (`git commit` with the default merge message, no `--no-verify`).\n4. Reinstall extras if pyproject changed; run the wave acceptance.\n<\/primary-path>\n\n<fallback-paths>\n- If a conflict is genuinely a true overlap (both waves edited the SAME logical line), sequence it: pick the semantically-correct combined result and note the coordination point for the hot-file table. Failure condition: the resolution silently drops one wave's change.\n- If you cannot determine intent from the diffs, read the two sub-task prompts' `<scope>`/`<outcome>` to reconstruct it — do not guess.\n- If the merge is too tangled to resolve safely, `git merge --abort` and hand back to the operator with the conflict analysis — never force a bad resolution.\n<\/fallback-paths>\n\n<acceptance>\ngit diff --name-only --diff-filter=U\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); ext=d['project'].get('optional-dependencies',{}); assert all('pyatspi' not in x for g in ext.values() for x in g)\"\npython scripts/ci/check_import_clean.py\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\ngit log --oneline --merges -1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-1 — never resolve by rewriting the Windows impl.\n- HN-2 — never resolve by deleting a regression guard.\n- HN-9 — never re-add pyatspi to pyproject during resolution.\n- HN-12/HN-13 — never weaken HMAC/peer-cred during resolution.\n- HN-17 — no force-push; complete the merge with hooks intact.\nSOFT:\n- Prefer additive both-sides resolution; sequence true overlaps.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The conflicted files + each side's intent.\n- How each conflict was resolved (both-sides-preserved vs sequenced).\n- The wave acceptance result after resolution.\n- Hard-rules honored (HN-1/HN-2/HN-9/HN-12/HN-17 quoted).\n- Path-taken / any conflict handed back to the operator.\n<\/done-signal>", "recovery-worktree-stuck": "ultrathink\n<role>\nYou recover a stuck git-worktree situation (a worktree that won't create/remove, a stale editable-install pin to a deleted clone, a \"works in tests but Jarvis behavior unchanged\" restore-trap, or a worktree whose live `import jarvis` points at the wrong path). Your outcome is a clean, correctly-pinned worktree where `import jarvis` resolves to THIS clone and preflight passes — the four-layer restore-trap defused.\n<\/role>\n\n<outcome>\nDONE means: the stuck condition is diagnosed (which of the four restore-trap layers: worktree / frontend build / RAM / editable-install pin); the worktree is either repaired or cleanly recreated without losing committed work; `pwsh scripts/preflight.ps1` exits 0; and `python -c \"import jarvis; print(jarvis.__file__)\"` points at the current worktree clone.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-17 (no force-push; preserve work) + HN-15 (the matrix is the gate).\n- `CLAUDE.md` — the four-layer restore trap (BUG-006 → -014 → -015): worktree + frontend build + RAM + editable-install pin to a deleted clone. Defense: `pwsh scripts/preflight.ps1` + `python -c \"import jarvis; print(jarvis.__file__)\"`.\n- MEMORY: never manually delete `jarvis.lock`; `scripts/preflight.ps1` exit non-zero → fix before coding.\n<\/required-reading>\n\n<environment-setup>\n1. `git worktree list` — see all worktrees + their branches + locked state.\n2. `python -c \"import jarvis; print(jarvis.__file__)\"` — does it point at THIS worktree or a deleted/other clone?\n3. `git status` in the affected worktree — confirm whether uncommitted work exists.\n<\/environment-setup>\n\n<scope>\nModify: nothing in `jarvis/` for the recovery itself — this is environment repair (worktree + editable-install pin). Commit any in-flight work first.\n<\/scope>\n\n<primary-path>\n1. Preserve first: if uncommitted work exists, `git add -A && git commit -m \"wip: checkpoint before worktree recovery\"` (review the diff; never `git add .` blindly).\n2. Diagnose the layer:\n - **Editable-install pin to a deleted/other clone** (the most common): `import jarvis` resolves to a path that is NOT this worktree → re-pin with `pip install -e . --no-deps` from THIS worktree root. Re-check the import path.\n - **Stale worktree registration** (`git worktree add` fails \"already exists\" / a worktree dir was deleted manually): `git worktree prune`, then re-add: `git worktree add -b <branch> ../sub-agents-outputs/<dir> feat/crossplatform-port`.\n - **Locked worktree**: `git worktree unlock <path>` if you own it; never force-remove one another session is using.\n - **Frontend-build / RAM layer** (UI behavior unchanged after edit): rebuild (`npm run build` in `jarvis/ui/web/frontend/`) + note an app restart is needed (pywebview holds the old bundle in RAM) — relevant only if the sub-task touched the frontend.\n3. Run `pwsh scripts/preflight.ps1`; if non-zero, fix the reported issue before declaring done.\n4. Confirm `import jarvis` points at this worktree.\n<\/primary-path>\n\n<fallback-paths>\n- If a worktree cannot be removed because another live session holds it, leave it and create a fresh one with a distinct name rather than fighting the lock. Failure condition: removing a worktree another session is editing.\n- If preflight still fails after re-pinning, read its exact error and address that single issue — do not blanket-reinstall everything. Failure condition: preflight non-zero with an unaddressed reason.\n- Never manually delete `jarvis.lock` to \"unstick\" things (MEMORY) — it breaks the lock-holder sweep.\n<\/fallback-paths>\n\n<acceptance>\ngit worktree list\npython -c \"import jarvis; print(jarvis.__file__)\"\npwsh scripts/preflight.ps1\ngit status --porcelain\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-17 — preserve in-flight work (commit it); never force-push; never `git add .` blindly.\n- Never manually delete `jarvis.lock`; never force-remove a worktree another session is using.\nSOFT:\n- Re-pin the editable install from THIS worktree before blaming the code (the restore-trap is usually the pin).\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The diagnosed restore-trap layer.\n- The checkpoint commit (if work was preserved).\n- The repair applied (re-pin / prune+re-add / unlock / rebuild).\n- `import jarvis` now points at this worktree + preflight exit 0 (output).\n- Hard-rules honored (HN-17 quoted) + path-taken.\n<\/done-signal>"}</script>
+<script id="prompts-library-json" type="application/json">{"preflight": "ultrathink\n<role>\nYou are the migration lead bootstrapping the cross-platform (macOS + Linux) port of Personal Jarvis. Your outcome is a clean, verified starting state and the integration branch every later wave merges into — not any feature code. You set the stage; you do not act.\n<\/role>\n\n<outcome>\nDONE means all of the following are true and demonstrated with command output:\n- The repo is on a fresh integration branch `feat/crossplatform-port` cut from the latest `origin/main`, pushed to origin.\n- `pwsh scripts/preflight.ps1` exits 0 in the repo root.\n- `python -c \"import jarvis; print(jarvis.__file__)\"` resolves to the live working clone (BUG-006/014 guard).\n- The whole cross-platform plan has been read and an at-a-glance wave/dependency map is reproduced in your final report.\n- No production file has been modified.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` (the full AD/PC/EK/wave list — read all of it).\n- `docs/plans/cross-platform-mac-linux/README.md` (the master plan + the hot-file ownership table).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-15 and HN-17 in your final report:\n - HN-15: \"Never merge a wave before its CI matrix (ubuntu-latest + macos-latest + windows-latest) is green for ruff + mypy + pytest -m 'not skip_ci'.\"\n - HN-17: \"Every artifact is English; never git push --force; never --no-verify; never bypass signing.\"\n- `CLAUDE.md` (Output-Language Policy + Worktree activation checklist + git policy).\n<\/required-reading>\n\n<environment-setup>\nRun exactly, in the repo root `<USER_HOME>\\Desktop\\Personal Jarvis`:\n1. `git fetch origin`\n2. `git switch -c feat/crossplatform-port origin/main`\n3. `git push -u origin feat/crossplatform-port`\n4. `pwsh scripts/preflight.ps1` (must exit 0 — if not, STOP and fix before continuing)\n5. `python -c \"import jarvis; print(jarvis.__file__)\"`\nDo NOT create a worktree here — this prompt only stands up the integration branch. Sub-task prompts create their own worktrees.\n<\/environment-setup>\n\n<scope>\nCreate / modify: NOTHING in `jarvis/`. This is a branch + verification step only. (Optional: you may append a one-line note to your own scratch report — never to a plan doc.)\n<\/scope>\n\n<primary-path>\n1. Read all required files.\n2. Run the environment-setup commands in order, stopping on any non-zero exit.\n3. Confirm the integration branch exists on origin (`git ls-remote --heads origin feat/crossplatform-port`).\n4. Reproduce the wave dependency map (Wave 0 blocks 1/2/3; Wave 4 needs all of 0-3) in the report.\n<\/primary-path>\n\n<fallback-paths>\n- If `origin/main` is unexpectedly behind a known-good commit, branch from the commit the operator names instead, and record the deviation. Failure condition: `git switch` reports the base ref is missing.\n- If `preflight.ps1` fails on a stale editable-install pin, run `pip install -e . --no-deps` then re-run preflight. Failure condition: preflight still non-zero.\n- You may invent a recovery path if both fail, provided you break no INVIOLABLE hard-rule (no force-push, no history rewrite on a shared branch — HN-17).\n<\/fallback-paths>\n\n<acceptance>\ngit ls-remote --heads origin feat/crossplatform-port\npwsh scripts/preflight.ps1\npython -c \"import jarvis; print(jarvis.__file__)\"\ngit status --porcelain\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-17 — English-only artifacts; never `git push --force`; never `--no-verify`; never bypass signing.\nSOFT:\n- Prefer branching from `origin/main`; deviate only with an explicit recorded reason.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Integration branch created + pushed (with the origin hash).\n- Preflight + import-clean checks: PASS/FAIL with output.\n- Wave dependency map reproduced.\n- Hard-rules honored (HN-15/HN-17 quoted).\n- Path-taken: primary or which fallback, and why.\n<\/done-signal>", "0.1": "ultrathink\n<role>\nYou own the shared platform-detection authority for the whole cross-platform port. Your outcome is a single cached, frozen capability source of truth that all six later ports read instead of each re-detecting sys.platform. You are not building any feature — you are building the one module everything else depends on.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/platform/__init__.py` exposes `detect_platform() -> Literal[\"win32\",\"darwin\",\"linux\"]` that maps sys.platform and NEVER raises (unknown → \"linux\" + one English warning).\n- `jarvis/platform/capabilities.py` defines `@dataclass(frozen=True, slots=True) Capabilities` with exactly the AD-5 fields: `platform: str`, `has_hotkey: bool`, `has_ax_tree: bool`, `has_overlay: bool`, `has_pty: bool`, `has_elevation: bool`, `display_present: bool`, `is_wayland: bool`, `ax_permission_granted: bool | None` (tri-state; document the None=\"unknown until first use\" case).\n- `detect_capabilities() -> Capabilities` is cached (lru_cache or module `_CACHED`) so `d() is d()`; `reset_capabilities_cache()` exists as a test hook.\n- No module-scope import of `winreg`/`pyobjc`/`pyatspi`/any Windows-only package — all lazy + guarded inside function bodies.\n- All acceptance commands pass.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §0.1 (this exact sub-task).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-5 (single capability module) + AD-6 (graceful null-fallback, no branch raises).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote in your report:\n - HN-3: \"Never branch on sys.platform inline in a consumer. Read the capability from the shared jarvis/platform/ module.\"\n - HN-4: \"No sys.platform factory branch may EVER raise. An unavailable capability logs one clear English message and returns a null/no-op implementation.\"\n - HN-7: \"Never add a module-scope import of a Windows-only package. Lazy + guarded inside the function/branch only.\"\n- Reference patterns: frozen dataclass style at `jarvis/core/protocols.py:402` (`Observation`); test-reset hook at `jarvis/trigger/hotkey.py:97` (`_reset_checker_state_for_tests`); lazy-guarded import at `jarvis/plugins/tool/app_resolver.py:24`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1` (must exit 0)\n2. Create the worktree for this sub-task:\n `git worktree add -b crossplat/w0-platform-module ../sub-agents-outputs/crossplat-w0-platform feat/crossplatform-port`\n3. From the worktree root: `pip install -e \".[dev]\"`\n4. Confirm the live import points at the worktree: `python -c \"import jarvis; print(jarvis.__file__)\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/platform/__init__.py`, `jarvis/platform/capabilities.py`, `tests/unit/platform/__init__.py`, `tests/unit/platform/test_capabilities.py`.\n(Probes live in 0.2's `jarvis/platform/probes.py`; you import them from `capabilities.py`. If 0.2 has not landed in this worktree yet, define thin local stub probe functions in `probes.py` and let 0.2's author replace them — coordinate so you do not both author the same probe bodies.)\nDo NOT modify any existing `jarvis/` file.\n<\/scope>\n\n<primary-path>\n1. Write `detect_platform()` in `__init__.py`: `win32`→`win32`, `darwin`→`darwin`, `startswith(\"linux\")`→`linux`, else log + return `linux`.\n2. Write `Capabilities` frozen dataclass mirroring `Observation` style; document the tri-state `ax_permission_granted`.\n3. Write `detect_capabilities()` computing each field from `jarvis.platform.probes`, wrapped in `functools.lru_cache(maxsize=1)`; add `reset_capabilities_cache()` clearing the cache.\n4. Write `tests/unit/platform/test_capabilities.py`: cache identity, field presence, monkeypatched-probe → Capabilities mapping. Use a `tests/fakes/`-style fake or direct monkeypatch of probe functions — NOT `unittest.mock`.\n<\/primary-path>\n\n<fallback-paths>\n- If `lru_cache` interferes with the reset hook in tests, use a module-level `_CACHED: Capabilities | None` guard + a `reset_capabilities_cache()` that sets it to None. Failure condition: `d() is d()` returns False.\n- If `slots=True` conflicts with a default-factory field, drop `slots=True` (keep `frozen=True`) and note the deviation. Failure condition: dataclass construction raises.\n- You may invent another caching strategy if both fail, provided HN-3/HN-4/HN-7 hold.\n<\/fallback-paths>\n\n<acceptance>\npython -c \"from jarvis.platform import detect_platform; print(detect_platform())\"\npython -c \"from jarvis.platform.capabilities import detect_capabilities as d; print(d() is d())\"\npytest tests/unit/platform/test_capabilities.py -v\npython -c \"import ast; m=ast.parse(open('jarvis/platform/capabilities.py').read()); assert not any(getattr(n,'names',None) and any(a.name in ('winreg','pyatspi') for a in n.names) for n in ast.walk(m) if isinstance(n,ast.Import))\"\nruff check jarvis/platform/ && mypy jarvis/platform/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-3 — one capability source of truth; consumers never re-detect sys.platform.\n- HN-4 — no factory/detector branch raises; degrade + log English.\n- HN-7 — no module-scope Windows/OS-specific import.\nSOFT:\n- Mirror the `Observation` frozen-dataclass style; mirror the existing test-reset-hook naming.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Files created + the `Capabilities` field list confirmed against AD-5.\n- Cache identity + reset hook proven (command output).\n- Import-cleanliness AST check: PASS.\n- Hard-rules honored (HN-3/HN-4/HN-7 quoted).\n- Path-taken + any coordination needed with 0.2's probes.\n<\/done-signal>", "0.2": "ultrathink\n<role>\nYou own the capability probes that answer \"what works on this box\" — display, Wayland, AX-permission, PTY, elevation, hotkey, overlay, ax-tree. Your outcome is a set of cheap, exception-swallowing boolean probes that feed the frozen Capabilities dataclass from 0.1. Each probe runs once per process and never crashes the import.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/platform/probes.py` defines one small function per Capabilities field, each returning a plain bool (or `bool | None` for `ax_permission_granted`) and swallowing its own exceptions to a logged False/None.\n- Every OS-specific import (`winreg`, `Quartz`, `pyatspi`, `winpty`, `pynput`, `tkinter`, …) is lazy inside the function body via `importlib.util.find_spec` or a guarded import — never at module scope.\n- `tests/fakes/fake_capabilities.py` exists and constructs a valid `Capabilities` for each of win32/darwin/linux (EK-3 fake, no `unittest.mock`).\n- All acceptance commands pass.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §0.2 (the exact per-field probe spec — follow it verbatim).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-5, AD-6, AD-8 (Wayland feeds hotkey), AD-14 (pyatspi is distro-only).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-7 (no module-scope Windows import) and HN-9 (\"Never put pyatspi in a pip extra. It is GObject-Introspection, distro-packaged only\").\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-4 (Wayland hotkey) + AP-13 (convenience module-scope import).\n- Pattern: lazy-guarded import at `jarvis/plugins/tool/app_resolver.py:24`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Use the SAME worktree as 0.1 (platform module is one worktree per WELLE-0 §Parallelism): `git worktree add -b crossplat/w0-platform-module ../sub-agents-outputs/crossplat-w0-platform feat/crossplatform-port` (skip if already created for 0.1).\n3. `pip install -e \".[dev]\"`\n4. `python -c \"import jarvis; print(jarvis.__file__)\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/platform/probes.py`, `tests/fakes/fake_capabilities.py`, `tests/unit/platform/test_probes.py`.\nProbe field map (WELLE-0 §0.2): `display_present`, `is_wayland`, `has_pty` (winpty/ptyprocess find_spec), `ax_permission_granted` (macOS lazy `AXIsProcessTrusted()` → None if pyobjc absent), `has_ax_tree` (win:pywinauto / mac:Quartz / linux:pyatspi find_spec), `has_hotkey` (win:global_hotkeys / unix:pynput AND not is_wayland), `has_overlay` (display_present AND tkinter find_spec), `has_elevation` (win:win32pipe / mac:True / linux:pkexec|sudo via shutil.which).\n<\/scope>\n\n<primary-path>\n1. Write each probe exactly as WELLE-0 §0.2 prescribes; wrap each body in try/except → logged False/None.\n2. Write `fake_capabilities.py` with three factory helpers (`win_capabilities()`, `darwin_capabilities()`, `linux_capabilities()`) returning canned `Capabilities`.\n3. Write `test_probes.py` monkeypatching `os.environ` (DISPLAY/WAYLAND_DISPLAY/XDG_SESSION_TYPE) and `importlib.util.find_spec`/`shutil.which` to assert each probe's True/False boundary.\n<\/primary-path>\n\n<fallback-paths>\n- If `find_spec` raises for a namespace package, catch it and treat as \"absent\". Failure condition: probe import throws on a clean Linux box.\n- If `AXIsProcessTrusted()` cannot be imported lazily on a non-Mac, return None (\"unknown\") — that is the designed tri-state. Failure condition: probe raises off-Mac.\n- You may invent an additional environment signal for `display_present`/`is_wayland` if the prescribed ones are insufficient, provided HN-7/HN-9 hold and the result is still a swallowed bool.\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/platform/test_probes.py -v\npython -c \"from jarvis.platform.probes import is_wayland; print(is_wayland())\"\npython -c \"from tests.fakes.fake_capabilities import linux_capabilities, darwin_capabilities, win_capabilities; [c() for c in (linux_capabilities,darwin_capabilities,win_capabilities)]; print('ok')\"\npython -c \"import ast; m=ast.parse(open('jarvis/platform/probes.py').read()); assert not any(getattr(n,'names',None) and any(a.name in ('winreg','pyatspi','Quartz','winpty','global_hotkeys','pywinauto','win32pipe','pynput') for a in n.names) for n in ast.walk(m) if isinstance(n,ast.Import))\"\nruff check jarvis/platform/ && mypy jarvis/platform/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-7 / AP-13 — no module-scope OS-specific import; lazy + guarded only.\n- HN-9 — `pyatspi` is detected via find_spec, NEVER pip-installed; absence is a clean False.\n- HN-4 — a probe never raises; it logs and returns False/None.\nSOFT:\n- Keep each probe a few lines; one concern per function.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Probes implemented + field-by-field mapping to Capabilities.\n- `fake_capabilities.py` constructs all three platforms (output).\n- Import-cleanliness AST check across the full Windows-only set: PASS.\n- Hard-rules honored (HN-7/HN-9/HN-4 quoted).\n- Path-taken + which env signals were used for display/Wayland.\n<\/done-signal>", "0.3": "ultrathink\n<role>\nYou build the highest-leverage missing safety net in the entire project: the GitHub Actions test matrix on ubuntu+macos+windows. There is NO functional CI today (PC-1). Your outcome is a green 3-OS matrix that runs ruff, mypy, pytest, the import-cleanliness gate (0.4), and the min-passed floor (0.5). Until this is green, nothing in Waves 1-4 may merge.\n<\/role>\n\n<outcome>\nDONE means:\n- `.github/workflows/ci.yml` exists, is syntactically valid, and defines a matrix `os: [ubuntu-latest, macos-latest, windows-latest]` with `fail-fast: false`.\n- `actions/checkout` and `actions/setup-python` are pinned by 40-char commit SHA.\n- Each leg runs: `pip install -e \".[dev]\"` → `ruff check jarvis/` → `ruff format --check jarvis/` → `mypy jarvis/` → the import-cleanliness gate (0.4) → pytest with the min-passed floor (0.5).\n- macOS/Linux legs install ONLY `.[dev]` (no `[desktop-macos]`, no distro `pyatspi`) — proving the base €5-VPS install imports + tests clean.\n- The `ci` workflow shows green for all three OS legs on the PR.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §0.3 (+ §0.4, §0.5 which this references).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-4 (CI matrix is blocking Wave 0).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-15 (\"Never merge a wave before its CI matrix is green…\") and HN-16 (\"Never let a mass-skip pass as green. The minimum-passed-count floor must hold\").\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-6 (green-by-mass-skip).\n- The 3-OS matrix shape to copy verbatim: `.github/workflows/cross-runner-hash.yml:76-86`; SHA-pinning rationale at `:91-93`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w0-ci-matrix ../sub-agents-outputs/crossplat-w0-ci feat/crossplatform-port`\n3. `pip install -e \".[dev]\"`\n4. NOTE: this worktree depends on 0.1/0.2 (so `import jarvis` + new platform tests exist) and 0.7 (so collection is clean). If those branches are not yet merged into `feat/crossplatform-port`, the matrix will not go green — coordinate merge order (platform module → conftest cleanup → CI last).\n<\/environment-setup>\n\n<scope>\nCreate: `.github/workflows/ci.yml`.\nThis sub-task references `scripts/ci/check_import_clean.py` (0.4) and `scripts/ci/assert_min_passed.py` (0.5) — they ship in the SAME worktree (WELLE-0 §Parallelism groups 0.3+0.4+0.5). Author them together or coordinate so `ci.yml` references real files.\nDo NOT touch `jarvis/` production code.\n<\/scope>\n\n<primary-path>\n1. Copy the matrix block from `cross-runner-hash.yml:76-86`; adapt the job to `test`.\n2. SHA-pin `actions/checkout` + `actions/setup-python` (look up current pins; mirror `:91-93`).\n3. Add the step sequence; trigger on `push` to `main` + the active feature branch + `pull_request`.\n4. Validate locally with the acceptance YAML assertion, then push and watch `gh pr checks --watch`.\n<\/primary-path>\n\n<fallback-paths>\n- If `ruff format --check` flags pre-existing formatting outside the touched ports, scope the format check to changed paths OR accept the existing format and note it — do NOT mass-reformat `jarvis/` (out of scope, churns other worktrees). Failure condition: format check fails on untouched files.\n- If `mypy jarvis/` surfaces a large pre-existing error backlog, scope mypy to the new `jarvis/platform/` package for Wave 0 and record a follow-up to widen it — do not suppress errors with blanket ignores. Failure condition: mypy red on legacy modules unrelated to the port.\n- You may invent the step ordering if a runner-specific quirk blocks the prescribed one, provided the matrix stays 3-OS and the floor/gate both run (HN-15/HN-16).\n<\/fallback-paths>\n\n<acceptance>\ngh workflow view ci.yml\npython -c \"import yaml; d=yaml.safe_load(open('.github/workflows/ci.yml')); assert d['jobs']['test']['strategy']['matrix']['os']==['ubuntu-latest','macos-latest','windows-latest']\"\ngh pr checks --watch\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — the matrix is the merge gate; it must be genuinely green on all three legs.\n- HN-16 / AP-6 — the min-passed floor must run; a mass-skip is a regression, not a pass.\n- HN-17 — no `--no-verify`, no force-push.\nSOFT:\n- Prefer scoping mypy/ruff-format narrowly over reformatting the whole tree this wave.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `ci.yml` matrix shape + SHA-pins confirmed (YAML assertion output).\n- The three OS legs' status (green/red, with the run URL).\n- mypy/ruff-format scoping decision, if any deviation taken.\n- Hard-rules honored (HN-15/HN-16 quoted).\n- Path-taken + dependency note (needs 0.1/0.2/0.7 merged to go fully green).\n<\/done-signal>", "0.4": "ultrathink\n<role>\nYou build the import-cleanliness gate that permanently locks in the cross-platform import discipline. Your outcome is a script that proves `import jarvis` is clean on Linux/macOS and that no module-scope Windows-only import can ever regress in.\n<\/role>\n\n<outcome>\nDONE means:\n- `scripts/ci/check_import_clean.py` exists and is referenced by `ci.yml`.\n- It runs `python -c \"import jarvis\"` (asserting exit 0) AND AST-walks every `.py` under `jarvis/`, failing on a TOP-LEVEL (module-scope, not inside a function/try) import of any of `{win32api, win32pipe, win32file, win32security, winreg, global_hotkeys, pywinauto, winpty, pywintypes}`. Imports inside function bodies and `try/except ImportError` blocks are allowed.\n- Verified: the script exits 0 on the current tree; temporarily adding `import winreg` to the top of `jarvis/__init__.py` makes it exit non-zero (then reverted).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §0.4.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-4 + EK-6.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-7 (no module-scope Windows import) and HN-10 (\"Never add a new Windows-only dependency without the ; sys_platform == 'win32' marker\").\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-13 (convenience module-scope import).\n- PC-2 lazy-guard precedents: `app_resolver.py:24`, `hotkey.py:241`, `pty_manager.py:71`, `uia_tree.py:188`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 0.3: `git worktree add -b crossplat/w0-ci-matrix ../sub-agents-outputs/crossplat-w0-ci feat/crossplatform-port` (skip if already created).\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nCreate: `scripts/ci/check_import_clean.py`, `scripts/ci/__init__.py` (if needed for collection), `tests/unit/ci/test_check_import_clean.py` (optional but recommended — a fake module tree asserting the AST walker flags a top-level offender and ignores a function-body one).\nCall `sys.stdout.reconfigure(encoding='utf-8')` at the top (Windows cp1252 default — CLAUDE.md Windows specifics).\n<\/scope>\n\n<primary-path>\n1. Implement the `import jarvis` subprocess check (assert returncode 0, print stderr on failure).\n2. Implement the AST walker: for each `.py`, parse, and for each `ast.Import`/`ast.ImportFrom` whose `col_offset == 0` AND not nested under a `FunctionDef`/`Try`, check the forbidden name set.\n3. Run it on the current tree; then do the add-`import winreg`-and-revert verification.\n<\/primary-path>\n\n<fallback-paths>\n- If walking col_offset is ambiguous for conditionally-indented module code, instead track parent nodes during the walk (only flag imports whose nearest enclosing scope is Module). Failure condition: a legitimate function-body lazy import is flagged.\n- You may invent the nesting-detection approach if both fail, provided allowed lazy imports stay allowed (HN-7).\n<\/fallback-paths>\n\n<acceptance>\npython scripts/ci/check_import_clean.py\npytest tests/unit/ci/test_check_import_clean.py -v\nruff check scripts/ci/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-7 / AP-13 — the gate must distinguish module-scope (forbidden) from lazy function-body (allowed) imports.\nSOFT:\n- Keep the forbidden set in one named constant for easy extension.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Gate exits 0 on the current tree (output).\n- The add-winreg-then-revert verification result.\n- Forbidden-set + nesting-detection approach.\n- Hard-rules honored (HN-7 quoted).\n- Path-taken.\n<\/done-signal>", "0.5": "ultrathink\n<role>\nYou build the minimum-passed-count floor that stops a mass-skip regression from sailing through CI as green. Your outcome is a script that parses the pytest JUnit XML and fails the build if fewer than FLOOR tests passed — even when pytest itself reports zero failures.\n<\/role>\n\n<outcome>\nDONE means:\n- `scripts/ci/assert_min_passed.py` exists, parses a JUnit `report.xml`, and asserts `passed >= FLOOR`.\n- `ci.yml` invokes `pytest -m \"not skip_ci\" --junitxml=report.xml -q` then this script (against the Linux leg's count).\n- `FLOOR` is seeded from the current green count (read it once, hardcode a conservative value e.g. `FLOOR = 1200`, with a comment: bump forward only, never down).\n- Verified: passes locally on the current tree; setting FLOOR to 999999 makes it exit non-zero (then reverted).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §0.5.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-4.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-16 (\"Never let a mass-skip pass as green. The minimum-passed-count floor must hold; a collapse in collected/passed tests is a regression, not a pass\").\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-6 (green-by-mass-skip).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 0.3/0.4: `../sub-agents-outputs/crossplat-w0-ci` on branch `crossplat/w0-ci-matrix`.\n3. `pip install -e \".[dev]\"`\n4. Establish the seed: `pytest -m \"not skip_ci\" --junitxml=report.xml -q` and read the passed count to choose a conservative FLOOR.\n<\/environment-setup>\n\n<scope>\nCreate: `scripts/ci/assert_min_passed.py`, `tests/unit/ci/test_assert_min_passed.py` (feed it a tiny synthetic JUnit XML asserting above/below-floor behavior).\nWire the pytest+script invocation into `ci.yml` (coordinate with 0.3).\n`sys.stdout.reconfigure(encoding='utf-8')` at the top.\n<\/scope>\n\n<primary-path>\n1. Parse `report.xml` with `xml.etree.ElementTree`; compute passed = total - failures - errors - skipped (or read the `<testsuite>` attributes).\n2. Compare against the `FLOOR` constant; print a clear English message and `sys.exit(1)` on shortfall.\n3. Seed FLOOR conservatively from the measured count; comment the bump-forward-only rule.\n4. Run the FLOOR=999999 negative test, then revert.\n<\/primary-path>\n\n<fallback-paths>\n- If JUnit attribute names differ across pytest versions, sum per-`<testcase>` outcomes instead of reading suite totals. Failure condition: parsed passed count is 0 on a known-green run.\n- You may invent the parse strategy if both fail, provided the floor genuinely catches a mass-skip (HN-16).\n<\/fallback-paths>\n\n<acceptance>\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\npytest tests/unit/ci/test_assert_min_passed.py -v\nruff check scripts/ci/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-16 / AP-6 — the floor must hold; never lower it to make a red run green.\nSOFT:\n- Assert against the Linux leg's count (most ports-relevant; Windows-only tests carry markers).\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Script passes on current tree; the seeded FLOOR value + measured passed count.\n- FLOOR=999999 negative test result.\n- Parse strategy used.\n- Hard-rules honored (HN-16 quoted).\n- Path-taken.\n<\/done-signal>", "0.6": "ultrathink\n<role>\nYou resolve the Orb-framework conflict (PC-6) on paper, before any Wave-2 orb code is written. Your outcome is a short, evidence-grounded decision note that fixes WHICH orb is live (Tk) and WHICH is abandoned (PySide6), so Wave 2 wraps the right one. You write a verdict, not code.\n<\/role>\n\n<outcome>\nDONE means:\n- `docs/plans/cross-platform-mac-linux/ADR-orb-framework.md` exists.\n- It names BOTH paths with `file:line` evidence: the LIVE Tk orb (`ui/orb/overlay.py`, `wm_attributes(\"-transparentcolor\", COLOR_KEY_HEX)` at ~`:964-966` and `:1329-1331`, class `OrbOverlay` at ~`:1236`, docstring lines 3-13 rejecting PySide6) and the ABANDONED PySide6 tree (`OS-Level/src/overlay/`, 19 modules).\n- It states the verdict explicitly: the Wave-2 `OverlaySurface` wraps the Tk orb (`TkColorKeyOverlay`); `OS-Level/src/overlay/` is NOT deleted (out of scope, grandfathered) but must NOT be re-imported as the live overlay.\n- No orb code is modified.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §0.6.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-11 (the orb ladder + the PC-6 NOTE).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-1 (\"Never rewrite, refactor, or 'clean up' a Windows implementation. Add a sibling behind the seam\") and HN-6 (\"Never claim a GUI/permission feature 'works' without a live sign-off\").\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-5 (`-transparentcolor` does not exist on X11 Tk).\n- Read the actual source: `ui/orb/overlay.py` (docstring + the cited line ranges) to confirm the evidence before writing the verdict.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w0-orb-verdict ../sub-agents-outputs/crossplat-w0-orb feat/crossplatform-port`\n3. `pip install -e \".[dev]\"` (so `python -c \"import ui.orb.overlay\"` can be confirmed)\n<\/environment-setup>\n\n<scope>\nCreate: `docs/plans/cross-platform-mac-linux/ADR-orb-framework.md`.\nThis sub-task pairs with 0.7 (conftest cleanup) in one worktree (WELLE-0 §Parallelism). Do NOT modify orb code.\n<\/scope>\n\n<primary-path>\n1. Open `ui/orb/overlay.py`; confirm the docstring's PySide6-rejection and the three `-transparentcolor` sites; record exact current line numbers.\n2. Confirm `OS-Level/src/overlay/` is PySide6 and not imported by the live desktop app path.\n3. Write the ADR with both paths, the AD-11 rationale (color-key works on Win + macOS), and the explicit \"wrap Tk, do not delete or re-import PySide6\" verdict.\n<\/primary-path>\n\n<fallback-paths>\n- If the cited line numbers have drifted, record the ACTUAL current lines (the WELLE numbers are approximate) and note the drift. Failure condition: the `-transparentcolor` calls cannot be found at all (then escalate — the orb may have changed framework).\n- You may structure the ADR however reads clearly, provided it names both paths with evidence and states the Tk verdict (AD-11).\n<\/fallback-paths>\n\n<acceptance>\ntest -f docs/plans/cross-platform-mac-linux/ADR-orb-framework.md && echo OK\npython -c \"import ui.orb.overlay; print('live orb import ok')\"\ngrep -n \"transparentcolor\" \"ui/orb/overlay.py\"\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-1 — do not rewrite the Tk orb; record the verdict only.\n- HN-6 — no \"works\" claim without a live sign-off (Wave 4 owns that).\nSOFT:\n- Use exact file:line evidence over prose assertions.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- ADR created; both paths named with confirmed file:line.\n- The Tk-vs-PySide6 verdict stated.\n- Any line-number drift recorded.\n- Hard-rules honored (HN-1/HN-6 quoted).\n- Path-taken.\n<\/done-signal>", "0.7": "ultrathink\n<role>\nYou clean the stale `ui.orb` / `OS-Level/src` conftest references so test collection on a Linux runner is honest and the Wave-0 min-passed floor is not polluted by the abandoned PySide6 framework. Your outcome is clean, honest collection — the live Tk orb import keeps working; the abandoned PySide6 tests skip cleanly without PySide6 installed.\n<\/role>\n\n<outcome>\nDONE means:\n- `tests/conftest.py:7` keeps the `sys.path.insert(repo_root)` (live Tk orb lives at top-level `ui/orb/`) but the stale comment no longer implies the orb moved.\n- `tests/overlay/conftest.py` (lines ~1-21): the PySide6 overlay tests are gated behind `pytest.importorskip(\"PySide6\")` (option a) AND marked `skip_ci` so the matrix floor isn't polluted — OR, only if those tests guard no live behavior, moved under `tests/overlay/legacy_pyside/` (option b). Pick (a) unless a test there guards live behavior.\n- `QT_QPA_PLATFORM=offscreen` (`tests/overlay/conftest.py:21`) is KEPT.\n- All acceptance commands pass.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §0.7 (+ §0.6 verdict, which gates this).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-11 + PC-5/PC-6.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-2 (\"Never delete, lower, or 'simplify' a regression guard that pins a Windows fix\") and HN-16 (min-passed floor / mass-skip).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-6 (green-by-mass-skip).\n- Read the current `tests/conftest.py` and `tests/overlay/conftest.py` to see the exact present lines before editing.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 0.6: `../sub-agents-outputs/crossplat-w0-orb` on `crossplat/w0-orb-verdict`.\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nModify: `tests/conftest.py` (the stale comment near the `sys.path.insert`), `tests/overlay/conftest.py` (gate + `skip_ci` the PySide6 path; keep `QT_QPA_PLATFORM=offscreen`).\nDo NOT touch `ui/orb/` or `OS-Level/src/overlay/` source.\n<\/scope>\n\n<primary-path>\n1. Update the `tests/conftest.py` comment to reflect: top-level `ui/orb/` is the live orb; the insert stays.\n2. In `tests/overlay/conftest.py`, ensure `pytest.importorskip(\"PySide6\")` guards the PySide6 import, and add the `skip_ci` marker to the abandoned-framework tests.\n3. Confirm collection on a no-PySide6 box skips cleanly and the live Tk orb import is unbroken.\n<\/primary-path>\n\n<fallback-paths>\n- If a PySide6 test actually exercises live behavior (not just the abandoned tree), do NOT skip_ci it — keep it and note the finding (HN-2). Failure condition: a test you were about to skip pins a Windows orb fix.\n- If `importorskip` is already present at `:27`, just add the `skip_ci` marker and fix the comment. Failure condition: collection still raises `ModuleNotFoundError` without PySide6.\n- You may choose option (b) (move to `legacy_pyside/`) if the tests guard nothing live; record the rationale.\n<\/fallback-paths>\n\n<acceptance>\npytest tests/overlay/ -v\npython -c \"import ui.orb.overlay; print('live orb import ok')\"\ngrep -rn \"OS-Level\" tests/\nruff check tests/overlay/ 2>/dev/null || true\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-2 — do not delete/weaken a regression guard pinning a Windows fix.\n- HN-16 / AP-6 — the abandoned framework must not pollute the passed-count floor (skip_ci it).\nSOFT:\n- Prefer option (a) (importorskip + skip_ci) over moving files.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Comment + conftest edits made (option a or b, with rationale).\n- `tests/overlay/` collects cleanly without PySide6 (output).\n- Live Tk orb import still resolves.\n- Hard-rules honored (HN-2/HN-16 quoted).\n- Path-taken.\n<\/done-signal>", "check-w0": "ultrathink\n<role>\nYou are a read-only phase auditor for Wave 0. Your outcome is a PASS/FAIL verdict on whether Wave 0 satisfies its EK criteria and is safe to merge — you verify, you do NOT modify any file.\n<\/role>\n\n<outcome>\nDONE means a verdict report stating, with command evidence, whether ALL of these hold:\n- The shared `jarvis/platform/` module exists (detector + Capabilities + probes), cache identity holds, and is import-clean.\n- `.github/workflows/ci.yml` defines the 3-OS matrix and the `ci` workflow is green on all three legs (EK-1).\n- The import-cleanliness gate and the min-passed floor both run in CI and pass.\n- The Orb-framework verdict (`ADR-orb-framework.md`) exists and the stale conftest references are cleaned (PC-6).\n- `tests/fakes/fake_capabilities.py` exists (first step toward EK-3).\nIf any fails, the verdict is FAIL with the exact blocking item.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` (the EK acceptance gate section).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` EK-1 + AD-4.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-15 + HN-16 (the CI gate that must hold).\n<\/required-reading>\n\n<environment-setup>\n1. `git switch feat/crossplatform-port` (or the integration branch with the Wave-0 sub-task branches merged in).\n2. `pip install -e \".[dev]\"`\nRead-only: do not create a worktree, do not edit anything.\n<\/environment-setup>\n\n<scope>\nModify: NOTHING. Verification only.\n<\/scope>\n\n<primary-path>\n1. Run each acceptance command below and capture output.\n2. Check the live CI run status via `gh`.\n3. Render the PASS/FAIL verdict against the five outcome items.\n<\/primary-path>\n\n<fallback-paths>\n- If `gh` cannot reach the run, report the matrix as \"unverified — CI status unreachable\" rather than guessing PASS. Failure condition: no network.\n<\/fallback-paths>\n\n<acceptance>\npython -c \"from jarvis.platform import detect_platform; print(detect_platform())\"\npython -c \"from jarvis.platform.capabilities import detect_capabilities as d; print(d() is d())\"\npython scripts/ci/check_import_clean.py\npython -c \"import yaml; d=yaml.safe_load(open('.github/workflows/ci.yml')); assert d['jobs']['test']['strategy']['matrix']['os']==['ubuntu-latest','macos-latest','windows-latest']; print('matrix ok')\"\ntest -f docs/plans/cross-platform-mac-linux/ADR-orb-framework.md && echo \"adr ok\"\ntest -f tests/fakes/fake_capabilities.py && echo \"fake ok\"\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — do not declare Wave 0 mergeable unless the matrix is genuinely green on all three legs.\nSOFT:\n- Be explicit about any item you could not verify.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Platform module + cache + import-clean: PASS/FAIL.\n- CI matrix shape + live green status: PASS/FAIL (with run URL).\n- Gate + floor present and passing: PASS/FAIL.\n- Orb verdict + conftest cleanup + first fake: PASS/FAIL.\n- Overall verdict + path-taken; if FAIL, the exact blocker.\n<\/done-signal>", "merge-w0": "ultrathink\n<role>\nYou mechanically merge Wave 0's sub-task branches onto the integration branch in the prescribed order, run the wave acceptance, and push only if green. This is step-prescriptive — follow the steps exactly; do not improvise feature code.\n<\/role>\n\n<outcome>\nDONE means: the three Wave-0 sub-task branches are merged with `--no-ff` onto `feat/crossplatform-port` in the order platform-module → orb-verdict (conftest cleanup) → ci-matrix; the wave acceptance passes locally; the CI matrix is green; and the integration branch is pushed. If any merge conflicts or any acceptance fails, you STOP and hand off to the matching recovery prompt — you do NOT force anything.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-0-foundation.md` §Parallelism (merge order: platform module → conftest cleanup → CI workflow last).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-15 (matrix green before merge), HN-16 (floor), HN-17 (no force-push / no --no-verify).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git switch feat/crossplatform-port`\n3. `git fetch origin`\n4. `git pull --ff-only origin feat/crossplatform-port`\n5. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nBranches to merge (in order): `crossplat/w0-platform-module`, `crossplat/w0-orb-verdict`, `crossplat/w0-ci-matrix`.\nModify: only merge commits + conflict resolutions. No new features.\n<\/scope>\n\n<primary-path>\n1. `git merge --no-ff crossplat/w0-platform-module` → if clean, `pip install -e \".[dev]\"`, run acceptance.\n2. `git merge --no-ff crossplat/w0-orb-verdict` → run acceptance.\n3. `git merge --no-ff crossplat/w0-ci-matrix` → run acceptance.\n4. After all three: run the full wave acceptance; if green, `git push origin feat/crossplatform-port` and watch `gh pr checks --watch` / `gh run list`.\n<\/primary-path>\n\n<fallback-paths>\n- On a merge conflict → STOP, hand off to `recovery-merge-conflict` with the conflicted paths.\n- On red CI after push → STOP, hand off to `recovery-red-ci`.\n- Never resolve a conflict by deleting a regression guard (HN-2) or by force-push (HN-17).\n<\/fallback-paths>\n\n<acceptance>\npython scripts/ci/check_import_clean.py\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\nruff check jarvis/ && ruff format --check jarvis/ && mypy jarvis/platform/\ngit log --oneline --merges -3\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — push only if the matrix is green.\n- HN-17 — never `git push --force`, never `--no-verify`.\nSOFT:\n- Keep `--no-ff` so each sub-task stays a visible merge unit.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The three merges done in order (merge hashes).\n- Wave acceptance result.\n- CI matrix green status (run URL).\n- Hard-rules honored (HN-15/HN-17 quoted).\n- Path-taken / any handoff to a recovery prompt.\n<\/done-signal>", "1.5": "ultrathink\n<role>\nYou add the `[desktop]` extras entries (ptyprocess + pynput) that Wave-1's terminal and hotkey ports need. Your outcome is a one-line-each additive pyproject edit that keeps the base €5-VPS install clean. Land this FIRST so Worktrees A and C do not collide on pyproject.toml.\n<\/role>\n\n<outcome>\nDONE means:\n- `pyproject.toml` `[project.optional-dependencies].desktop` gains `\"pynput>=1.7\"` (NO platform marker — all-platform) and `\"ptyprocess>=0.7; sys_platform != 'win32'\"` (POSIX-only).\n- It does NOT add `pyobjc-*` (that is Wave 2's `[desktop-macos]`) and does NOT add `pyatspi` (distro-only, never pip — AD-14/HN-9).\n- After the edit, `pip install -e \".[desktop]\" --no-deps` then `import ptyprocess, pynput` works on a POSIX box.\n- All acceptance commands pass.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-1-easy-ports.md` §1.5.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-14 (dependency grouping).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-8 (\"Never add pyobjc-*, pyatspi, or pynput to the base dependencies. Extras only\"), HN-9 (pyatspi distro-only), HN-10 (Windows-only deps need the sys_platform marker).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-3 (pyatspi is not pip-installable).\n- Mirror the existing `sys_platform` marker pattern at `pyproject.toml:99-110`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w1-deps ../sub-agents-outputs/crossplat-w1-deps feat/crossplatform-port`\n3. `pip install -e \".[dev]\"`\n4. After editing extras, reinstall per the BUG-006/014 contract: `pip install -e \".[desktop]\" --no-deps`\n<\/environment-setup>\n\n<scope>\nModify: `pyproject.toml` (the `desktop` extras group only). Touch nothing else.\n<\/scope>\n\n<primary-path>\n1. Open the `desktop` group at `pyproject.toml:99-110`; add the two lines mirroring the existing marker style.\n2. Reinstall + import-verify.\n<\/primary-path>\n\n<fallback-paths>\n- If a `desktop` group does not exist exactly at those lines (drift), find the real `[project.optional-dependencies]` `desktop` array and add there; if no `desktop` group exists, create it. Failure condition: tomllib cannot parse the file after the edit.\n- You may choose slightly higher minimum versions if the pinned ones are yanked, provided the markers (none for pynput; `sys_platform != 'win32'` for ptyprocess) are correct.\n<\/fallback-paths>\n\n<acceptance>\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); deps=d['project']['optional-dependencies']['desktop']; assert any(x.startswith('pynput') for x in deps) and any('ptyprocess' in x for x in deps)\"\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); deps=d['project']['optional-dependencies']['desktop']; assert all('pyobjc' not in x and 'pyatspi' not in x for x in deps)\"\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-8 — extras only; no port lib in base `dependencies`.\n- HN-9 / AP-3 — never add `pyatspi` to pyproject.\n- HN-10 — `ptyprocess` carries `sys_platform != 'win32'`.\nSOFT:\n- Keep the edit minimal and additive.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The two lines added + markers confirmed (tomllib assertion output).\n- No pyobjc/pyatspi present (assertion output).\n- `pip install -e \".[desktop]\"` + import verify result.\n- Hard-rules honored (HN-8/HN-9/HN-10 quoted).\n- Path-taken.\n<\/done-signal>", "1.1": "ultrathink\n<role>\nYou port the built-in terminal to Unix via a `PtyBackend` seam, with `ptyprocess` as the POSIX backend. This is the standout verification win — a real PTY runs end-to-end on the CI runners. Your outcome is a Unix PTY backend that mirrors pywinpty 1:1, with str↔bytes normalized once at the seam, and the Windows path untouched.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/terminal/backend.py` defines a `PtyBackend` Protocol (the 5 methods the read-loop uses, normalized: `spawn(argv,cwd,cols,rows)->PtyHandle`; handle `write(str)->None`, `setwinsize(rows,cols)->None`, `read(size)->str`, `isalive()->bool`, `terminate(force:bool)->None`, `exitstatus->int|None`, `pid->int`) + `WinptyBackend` (thin wrapper preserving the exact `RuntimeError(\"pywinpty nicht installiert …\")` degrade at `pty_manager.py:72-75`) + `UnixPtyBackend` (ptyprocess) + `make_pty_backend()` factory.\n- `jarvis/terminal/pty_manager.py` routes through the seam: the inline `from winpty import PtyProcess` (`:71`) and the five direct `proc.*` calls (`:127`,`:138`,`:173`,`:193`,`:206`,`:225`) go through `PtyBackend`. The daemon-thread read-loop (`_reader_loop` `:179-239`) stays structurally identical (AD-9: NO async rewrite).\n- `UnixPtyBackend.read` decodes bytes→str (utf-8/replace); `write` encodes str→bytes; `spawn` honors `dimensions=(rows, cols)`.\n- `make_pty_backend()` returns `UnixPtyBackend` on POSIX, `WinptyBackend` on Windows, and a null backend (whose `spawn` raises a clear English RuntimeError the manager surfaces as a typed error) when `not capabilities.has_pty`.\n- `tests/unit/terminal/test_unix_pty.py` spawns a real `bash -c \"echo hi\"` via ptyprocess and asserts the round-trip + `exitstatus == 0`.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-1-easy-ports.md` §1.1 (the full seam spec + the exact line references).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-9 (ptyprocess 1:1, no async rewrite) + AD-6 (graceful null) + AD-7 (Windows untouched).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-1 (never rewrite the Windows impl; add a sibling behind the seam), HN-4 (no factory branch raises; degrade), HN-7 (no module-scope Windows import).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-1 (str↔bytes mismatch at the PtyBackend seam — read the full counter-pattern) + AP-12 (ship a fake, no unittest.mock).\n- Read `jarvis/terminal/pty_manager.py` around the cited lines to see the existing `isinstance(data, bytes)` defensive branch at `:210-214`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w1-terminal-pty ../sub-agents-outputs/crossplat-w1-terminal feat/crossplatform-port`\n3. Ensure 1.5's `[desktop]` extras are present (rebase if 1.5 landed separately); `pip install -e \".[dev,desktop]\" --no-deps` (or `.[dev]` + ensure `ptyprocess` importable on POSIX).\n4. `python -c \"import jarvis; print(jarvis.__file__)\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/terminal/backend.py`, `tests/fakes/fake_pty_backend.py`, `tests/unit/terminal/test_unix_pty.py`.\nModify: `jarvis/terminal/pty_manager.py` (route through the seam; keep the read-loop structure). Do NOT touch the Windows winpty behavior beyond relocating its import into `WinptyBackend`.\n<\/scope>\n\n<primary-path>\n1. Define `PtyBackend` Protocol + `PtyHandle` Protocol in `backend.py`.\n2. Implement `WinptyBackend` (lazy `from winpty import PtyProcess`, preserve the exact RuntimeError degrade) and `UnixPtyBackend` (lazy `from ptyprocess import PtyProcess`, str↔bytes at the seam, `dimensions=(rows,cols)`).\n3. Implement `make_pty_backend()` selecting on `detect_platform()` + `capabilities.has_pty`; null backend otherwise.\n4. Rewire `PtyManager.spawn` (`:55`) + `PtySession.proc` (`:39`) to the seam; leave the read-loop intact.\n5. Write `fake_pty_backend.py` (a FakePtyBackend yielding scripted str chunks) + `test_unix_pty.py` (real ptyprocess `echo hi` round-trip + the fake contract test pinning up-seam type is `str`).\n<\/primary-path>\n\n<fallback-paths>\n- If `ptyprocess.spawn` signature differs by version (`dimensions` vs `rows`/`cols`), adapt at the seam and pin with the fake. Failure condition: spawn raises a TypeError.\n- If the read-loop's existing `isinstance(data, bytes)` branch double-decodes after the seam normalizes, remove the now-redundant branch ONLY inside the loop and document it (the seam now guarantees str). Failure condition: mojibake in the round-trip test.\n- You may invent the handle abstraction shape if the prescribed one fights ptyprocess, provided AD-9 (no async rewrite) and AP-1 (str up-seam) hold, pinned by the contract test.\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/terminal/test_unix_pty.py -v\npytest tests/unit/terminal/ -v\npython -c \"from jarvis.terminal.backend import make_pty_backend; print(type(make_pty_backend()).__name__)\"\npython -c \"import ast; m=ast.parse(open('jarvis/terminal/pty_manager.py').read()); assert not any(getattr(n,'module',None)=='winpty' for n in ast.walk(m) if isinstance(n,ast.ImportFrom) and getattr(n,'col_offset',1)==0)\"\nruff check jarvis/terminal/ && mypy jarvis/terminal/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-1 / AD-7 — the Windows winpty behavior is untouched; only relocated behind `WinptyBackend`.\n- HN-4 — `make_pty_backend()` never raises; the null backend surfaces a typed RuntimeError on spawn.\n- HN-7 / AP-13 — no module-scope `winpty`/`ptyprocess` import; lazy inside the backend.\n- AP-1 — normalize str↔bytes ONCE at the seam; up-seam type is always `str`.\nSOFT:\n- `argv` is `(path, \"-i\")`-style from shells.py; do not hardcode shells here.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `PtyBackend` + the three backends + factory; the 5 method mappings.\n- Real-PTY round-trip test result (echo hi, exitstatus 0).\n- str↔bytes normalization location + the AP-1 contract test.\n- Hard-rules honored (HN-1/HN-4/HN-7/AP-1 quoted).\n- Path-taken + whether the read-loop's isinstance branch was kept/removed.\n<\/done-signal>", "1.2": "ultrathink\n<role>\nYou add Unix shell discovery to the terminal so the Unix PTY backend has shells to spawn. Your outcome is a `_unix_shells()` branch in `discover_shells()` that finds POSIX shells in preference order, with the four Windows shell factories left completely untouched.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/terminal/shells.py` gains `_unix_shells() -> list[ShellInfo]` returning POSIX shells in order: (1) `$SHELL` if set and on disk (label from basename); (2) parsed `/etc/shells` paths; (3) `shutil.which(\"bash\"/\"zsh\"/\"fish\")` fallback. Deduped by resolved path. Each `ShellInfo.argv == (path, \"-i\")` (interactive, never unconditional `-l`).\n- `discover_shells()` (`:71-78`) dispatches on `detect_platform()`: `win32` → the four unchanged Windows factories (`_powershell_7` `:23`, `_windows_powershell` `:35`, `_cmd` `:48`, `_git_bash` `:55`); else → `_unix_shells()`.\n- `get_shell(shell_id)` (`:81`) works unchanged.\n- `tests/unit/terminal/test_unix_shells.py` green; the file introduces no module-scope Windows-only import.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-1-easy-ports.md` §1.2.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-9 + AD-7 (Windows factories untouched).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-1 (add a sibling, never rewrite the Windows impl), HN-3 (read platform from the capability/detect module, not inline drift), HN-7 (no module-scope Windows import).\n- Read `jarvis/terminal/shells.py` to see `ShellInfo` and the four Windows factories.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 1.1 (Worktree A — Terminal): `../sub-agents-outputs/crossplat-w1-terminal` on `crossplat/w1-terminal-pty`.\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nModify: `jarvis/terminal/shells.py` (add `_unix_shells()` + the dispatch). Create: `tests/unit/terminal/test_unix_shells.py`. Leave the four Windows factories untouched.\n<\/scope>\n\n<primary-path>\n1. Write `_unix_shells()` with the three-tier discovery + dedupe-by-resolved-path + `(path, \"-i\")` argv.\n2. Gate `discover_shells()` on `detect_platform()`.\n3. Write the test: monkeypatch `$SHELL`, a fake `/etc/shells`, and `shutil.which`; assert dedupe + order + argv.\n<\/primary-path>\n\n<fallback-paths>\n- If `/etc/shells` is absent (some minimal containers), skip tier 2 gracefully and rely on `$SHELL`/`which`. Failure condition: discovery returns empty on a box that has bash.\n- If `$SHELL` points at a path not on disk, skip it (don't trust the env blindly). Failure condition: a non-existent shell is offered.\n- You may add `dash`/`sh` to the `which` fallback list if bash/zsh/fish are all absent, provided the Windows branch is untouched (HN-1).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/terminal/test_unix_shells.py -v\npython -c \"from jarvis.terminal.shells import discover_shells; print([s.id for s in discover_shells()])\"\npython -c \"import ast; m=ast.parse(open('jarvis/terminal/shells.py').read()); assert all(getattr(n,'module',None)!='winreg' for n in ast.walk(m))\"\nruff check jarvis/terminal/ && mypy jarvis/terminal/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-1 / AD-7 — the four Windows shell factories are untouched.\n- HN-3 — dispatch via `detect_platform()`, not scattered inline `sys.platform`.\n- HN-7 — no module-scope Windows import.\nSOFT:\n- Use `(path, \"-i\")`, never unconditional `-l` (slow profile re-source).\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `_unix_shells()` + the three-tier order + dedupe approach.\n- Dispatch gated on `detect_platform()`.\n- Test result + the discovered shell ids on the box.\n- Hard-rules honored (HN-1/HN-3/HN-7 quoted).\n- Path-taken.\n<\/done-signal>", "1.3": "ultrathink\n<role>\nYou port app-launch-by-name to macOS (`open -a`) and Linux (`xdg-open`/direct exec), with a platform-conditional `KNOWN_APPS` whitelist. Your outcome is cross-platform launch resolution that keeps the anti-STT-hallucination gate intact and reuses the OS-agnostic URL/path/Spotify escape hatches verbatim.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/plugins/tool/app_resolver.py`: `resolve_app_launch_target` (`:88`) branches on `detect_platform()` — macOS prefers `LaunchTarget(\"open_a\", canonical)` (fallback `shutil.which`); Linux prefers `shutil.which(canonical)` for direct exec else `LaunchTarget(\"xdg_open\", canonical)`. The URL/path escape hatch (`:96-99`) + Spotify protocol case (`:102`) are kept; `winreg` stays lazy-guarded (`:24-27`). The `LaunchKind` Literal (`:30`) gains `\"open_a\"` and `\"xdg_open\"`. `_EXE_ALIASES` (`:54`) becomes platform-conditional.\n- `jarvis/plugins/tool/open_app.py`: `KNOWN_APPS` (`:23`) selected by `detect_platform()` — keep Windows set as `_KNOWN_APPS_WIN`; add `_KNOWN_APPS_DARWIN` (safari, terminal, finder, calculator, firefox, chrome, vscode, slack, …) and `_KNOWN_APPS_LINUX` (firefox, nautilus, gnome-terminal, gnome-calculator, code, chromium, …) per AD-15. `_is_plausible_app_name` (`:68`), `_APP_NAME_RE`/`_HALLUCINATION_RE` (`:52`/`:58`), and the PATH/URL/path escape hatches (`:81-89`) are reused verbatim. `OpenAppTool.execute` (`:116`) branches launch on `LaunchKind`: `open_a`→`Popen([\"open\",\"-a\",value,*args])`, `xdg_open`→`Popen([\"xdg-open\",value])`, `executable`→`Popen([value,*args])`, `startfile`→Windows-only (`:153`). Every `Popen` keeps `shell=False`.\n- `tests/unit/plugins/tool/test_app_resolver_unix.py` green.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-1-easy-ports.md` §1.3 (the full branch spec + line refs).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-15 (platform-conditional KNOWN_APPS) + AD-6 (graceful) + AD-7 (Windows untouched).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-3 (read platform from the shared module), HN-4 (no branch raises), HN-7 (no module-scope Windows import), HN-18 (\"Every new subprocess on ANY OS passes creationflags/equivalent from jarvis/core/process_utils.py\").\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-11 (don't re-detect sys.platform per call-site) + AP-12 (ship a fake).\n- CLAUDE.md AP-1 — `NO_WINDOW_CREATIONFLAGS` from `jarvis/core/process_utils.py` on every subprocess.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w1-app-launch ../sub-agents-outputs/crossplat-w1-applaunch feat/crossplatform-port`\n3. `pip install -e \".[dev]\"`\n4. `python -c \"import jarvis; print(jarvis.__file__)\"`\n<\/environment-setup>\n\n<scope>\nModify: `jarvis/plugins/tool/app_resolver.py`, `jarvis/plugins/tool/open_app.py`. Create: `tests/unit/plugins/tool/test_app_resolver_unix.py`.\nThis worktree owns no shared file with A or C. Do NOT edit `pyproject.toml` (that is 1.5).\n<\/scope>\n\n<primary-path>\n1. Extend `LaunchKind` with `open_a`/`xdg_open`; make `_EXE_ALIASES` platform-conditional.\n2. Branch `resolve_app_launch_target` on `detect_platform()`, keeping the escape hatches.\n3. Split `KNOWN_APPS` into `_KNOWN_APPS_{WIN,DARWIN,LINUX}` + select by platform; reuse the plausibility gate verbatim.\n4. Branch `OpenAppTool.execute` launch on `LaunchKind`; route every `Popen` through `NO_WINDOW_CREATIONFLAGS` (HN-18) and keep `shell=False`.\n5. Write `test_app_resolver_unix.py` monkeypatching `detect_platform`→darwin/linux, asserting: safari→open_a, a PATH tool→executable, an unknown name→xdg_open/raw, a URL short-circuits to the shell verb.\n<\/primary-path>\n\n<fallback-paths>\n- If `xdg-open` is absent on a minimal Linux box, fall back to direct exec via `which` and log; never raise (HN-4). Failure condition: resolution raises on a box with no xdg-open.\n- If the `.desktop` walk (`$XDG_DATA_DIRS/applications` + `~/.local/share/applications`) is too heavy for CI, gate it behind a cheap existence check and unit-test the resolver logic with a fake filesystem. Failure condition: the test needs a real desktop.\n- You may add more KNOWN_APPS entries per OS as long as the plausibility regex + escape hatches are reused verbatim (AD-15) and platform is read via the shared module (AP-11).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/plugins/tool/test_app_resolver_unix.py -v\npython -c \"from jarvis.plugins.tool.open_app import KNOWN_APPS; assert 'safari' in KNOWN_APPS or 'firefox' in KNOWN_APPS\"\npytest tests/unit/plugins/tool/ -k app -v\npython -c \"import ast; src=open('jarvis/plugins/tool/open_app.py').read(); assert 'shell=True' not in src\"\nruff check jarvis/plugins/tool/ && mypy jarvis/plugins/tool/app_resolver.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-3 / AP-11 — platform via the shared `detect_platform()`, not scattered inline checks.\n- HN-4 — resolution degrades, never raises.\n- HN-7 — `winreg` stays lazy-guarded; no new module-scope Windows import.\n- HN-18 — every `Popen` uses `NO_WINDOW_CREATIONFLAGS`; `shell=False` always.\n- AD-7 — the Windows launch branch (`startfile`) is untouched.\nSOFT:\n- Reuse `_is_plausible_app_name`/regex/escape hatches verbatim — only the whitelist set swaps.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `LaunchKind` extension + the per-OS resolution branches.\n- The three `KNOWN_APPS` sets + selection.\n- `shell=False` + `NO_WINDOW_CREATIONFLAGS` confirmed on every Popen.\n- Hard-rules honored (HN-3/HN-4/HN-7/HN-18 quoted).\n- Path-taken + how the .desktop walk was tested.\n<\/done-signal>", "1.4": "ultrathink\n<role>\nYou port the global hotkey to a dual-backend seam: Windows keeps `global-hotkeys` (with its battle-tested L/R-Alt + refcount bug fixes), macOS/Linux gain `pynput`, and Wayland degrades to a logged no-op. Your outcome is a `HotkeyBackend` seam where the Windows logic is RELOCATED verbatim (not refactored) and the degrade contract + PTT edges are unchanged.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/trigger/backends/__init__.py` defines `HotkeyBackend` Protocol (`register(bindings,on_event)`, `unregister()`, `start()`, `stop()`, `received_any_event()->bool`) + `make_hotkey_backend()` factory.\n- `jarvis/trigger/backends/global_hotkeys.py` holds the RELOCATED-VERBATIM Windows logic: `_KEY_MAP` (`hotkey.py:50`), `_normalize_combo` (`:104`), the module-level `_CHECKER_LOCK`/`_CHECKER_REFCOUNT` guard (`:69-101`), the idempotent pre-remove→register sequence (`:278-301`). These carry the BUG fixes — relocate, do not refactor (AD-7).\n- `jarvis/trigger/backends/pynput.py` maps jarvis combo syntax (`ctrl+right_alt+j`) to pynput (`<ctrl>+<alt>+j`), keeps a tiny refcount, and on macOS flags \"registered but zero events\" via `received_any_event()` (AD-8 Input-Monitoring guidance).\n- `jarvis/trigger/backends/noop.py` is returned when `not capabilities.has_hotkey` (true on Wayland); logs ONCE the English \"global hotkey unavailable on Wayland by OS design; lean on the wake word\" message then no-ops.\n- `make_hotkey_backend()`: win32→GlobalHotkeysBackend; else if `capabilities.has_hotkey`→PynputBackend; else→NoopBackend.\n- `jarvis/trigger/hotkey.py`: `HotkeyTrigger.__aenter__` (`:238`) calls the factory; its try/except degrade-to-None semantics + the \"voice still works via wake word\" message (`:243-248`) + `validate_hotkey` (`:121`) + the PTT press/release edges (`:256-267`) stay intact.\n- The existing 48-case `tests/unit/trigger/test_hotkey.py` stays green; `tests/unit/trigger/test_hotkey_backends.py` green.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-1-easy-ports.md` §1.4 (the full relocation spec + line refs).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-8 (dual backend + Wayland no-op + macOS zero-events detection) + AD-7 (Windows untouched) + AD-6.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-1 (relocate, never refactor the Windows impl), HN-2 (don't weaken the 48-case regression guard), HN-4 (no branch raises; degrade), HN-7 (no module-scope `global_hotkeys` import).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-4 (Wayland hotkey silently dead — read the full counter-pattern) + AP-12 (ship a fake, no unittest.mock).\n- Read `jarvis/trigger/hotkey.py` around the cited lines (the refcount guard + the degrade contract).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w1-hotkey ../sub-agents-outputs/crossplat-w1-hotkey feat/crossplatform-port`\n3. Ensure 1.5's `[desktop]` (pynput) is present (rebase if landed separately); `pip install -e \".[dev,desktop]\" --no-deps`.\n4. `python -c \"import jarvis; print(jarvis.__file__)\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/trigger/backends/__init__.py`, `jarvis/trigger/backends/global_hotkeys.py`, `jarvis/trigger/backends/pynput.py`, `jarvis/trigger/backends/noop.py`, `tests/fakes/fake_hotkey_backend.py`, `tests/unit/trigger/test_hotkey_backends.py`.\nModify: `jarvis/trigger/hotkey.py` (route through the factory; keep degrade contract + PTT edges + validate_hotkey).\n<\/scope>\n\n<primary-path>\n1. Define `HotkeyBackend` Protocol + `make_hotkey_backend()` in `backends/__init__.py`.\n2. RELOCATE the Windows logic verbatim into `global_hotkeys.py` (copy `_KEY_MAP`, `_normalize_combo`, the refcount guard, the pre-remove→register sequence — do NOT rewrite).\n3. Implement `PynputBackend` (combo translation + tiny refcount + zero-events flag) and `NoopBackend` (log-once + no-op).\n4. Rewire `HotkeyTrigger.__aenter__` to the factory, mapping the old `self._gh=None` degrade onto `backend=None`; keep the messages + PTT edges.\n5. Write `fake_hotkey_backend.py` + `test_hotkey_backends.py` (factory selection per platform; the Windows refcount 0↔1 boundary; noop logs-once-then-no-ops without raising). Re-run the 48-case suite.\n<\/primary-path>\n\n<fallback-paths>\n- If `pynput.keyboard.GlobalHotKeys` cannot express the PTT both-edges case, use a `pynput.keyboard.Listener` for press+release and synthesize the combo match. Failure condition: PTT release never fires.\n- If relocating the module-level refcount globals breaks `_reset_checker_state_for_tests` (`:97`), keep that reset hook working by re-exporting/redirecting it to the backend module. Failure condition: a test that resets checker state fails.\n- You may invent the combo-syntax translation table if the prescribed `<ctrl>+<alt>+j` mapping is incomplete, provided the Windows `_normalize_combo` is untouched (HN-1) and Wayland still no-ops (AP-4).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/trigger/test_hotkey_backends.py -v\npytest tests/unit/trigger/test_hotkey.py -v\npython -c \"from jarvis.trigger.backends import make_hotkey_backend; print(type(make_hotkey_backend()).__name__)\"\npython -c \"import ast; m=ast.parse(open('jarvis/trigger/hotkey.py').read()); assert not any(getattr(n,'names',None) and any(a.name=='global_hotkeys' for a in n.names) for n in ast.walk(m) if isinstance(n,ast.Import))\"\nruff check jarvis/trigger/ && mypy jarvis/trigger/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-1 / AD-7 — the Windows hotkey logic is RELOCATED verbatim, never refactored (it carries the L/R-Alt + refcount + remove-by-string bug fixes).\n- HN-2 — the 48-case `test_hotkey.py` regression suite stays green; do not weaken it.\n- HN-4 / AP-4 — Wayland → NoopBackend logs once + no-ops; never registers a dead listener; never raises.\n- HN-7 — no module-scope `global_hotkeys` import in `hotkey.py` (lazy inside the backend is fine).\nSOFT:\n- macOS zero-events detection feeds the wizard's Input-Monitoring grant message.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The seam + three backends + factory selection.\n- Confirmation the Windows logic was relocated verbatim (not refactored).\n- 48-case suite + new backend tests: green.\n- Hard-rules honored (HN-1/HN-2/HN-4/HN-7 quoted).\n- Path-taken + the PTT both-edges approach on pynput.\n<\/done-signal>", "check-w1": "ultrathink\n<role>\nYou are a read-only phase auditor for Wave 1. Your outcome is a PASS/FAIL verdict on whether the three easy ports (terminal, app-launch, hotkey) meet EK-2/EK-3/EK-4 and are safe to merge. You verify; you do not modify.\n<\/role>\n\n<outcome>\nDONE means a verdict report stating, with command evidence, whether:\n- Terminal: `make_pty_backend()` selects per platform; a real-PTY test passes; the read-loop is unchanged (AD-9); str up-seam (AP-1) pinned by a fake (EK-4).\n- App-launch: per-OS resolution + platform `KNOWN_APPS`; `shell=False` everywhere; resolution tests green.\n- Hotkey: dual backend + Wayland no-op; the 48-case suite still green; module-scope `global_hotkeys` import gone.\n- Each new seam ships a `tests/fakes/` fake; no `unittest.mock` (EK-3).\n- The CI matrix is still green on all three legs (HN-15).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-1-easy-ports.md` (EK acceptance gate).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` EK-2/EK-3/EK-4.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-1/HN-2/HN-4/HN-7/HN-15.\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-1/AP-4/AP-12.\n<\/required-reading>\n\n<environment-setup>\n1. `git switch feat/crossplatform-port` (with Wave-1 branches merged in, or check each branch).\n2. `pip install -e \".[dev,desktop]\" --no-deps`\nRead-only.\n<\/environment-setup>\n\n<scope>\nModify: NOTHING. Also `grep` for `unittest.mock` in the new test files and for any `shell=True` in the touched tool modules.\n<\/scope>\n\n<primary-path>\n1. Run each acceptance command; capture output.\n2. Grep for `unittest.mock` in the three new test files + `shell=True` in open_app.\n3. Confirm the CI run is green.\n4. Render the verdict.\n<\/primary-path>\n\n<fallback-paths>\n- If a sub-task branch is not yet merged, audit it on its own branch and note the integration state. Failure condition: a branch is missing.\n<\/fallback-paths>\n\n<acceptance>\npython -c \"from jarvis.terminal.backend import make_pty_backend; print(type(make_pty_backend()).__name__)\"\npytest tests/unit/terminal/ -v\npytest tests/unit/plugins/tool/ -k app -v\npytest tests/unit/trigger/test_hotkey.py tests/unit/trigger/test_hotkey_backends.py -v\ngrep -rn \"unittest.mock\" tests/fakes/fake_pty_backend.py tests/fakes/fake_hotkey_backend.py || echo \"no unittest.mock in new fakes\"\ngrep -n \"shell=True\" jarvis/plugins/tool/open_app.py || echo \"no shell=True\"\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — do not declare mergeable unless the matrix is green.\n- HN-2 — confirm the 48-case hotkey suite is intact, not weakened.\nSOFT:\n- Be explicit about any unverified item.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Terminal verdict (real-PTY + read-loop intact + fake).\n- App-launch verdict (resolution + shell=False).\n- Hotkey verdict (dual backend + 48-case green + import gone).\n- EK-3 fakes / no-mock + CI green: PASS/FAIL.\n- Overall verdict + path-taken; if FAIL, the exact blocker.\n<\/done-signal>", "merge-w1": "ultrathink\n<role>\nYou mechanically merge Wave 1's branches onto the integration branch, run the wave acceptance, and push only if green. Step-prescriptive.\n<\/role>\n\n<outcome>\nDONE means: `crossplat/w1-deps` merges FIRST (the shared pyproject edit), then the three feature branches (`crossplat/w1-terminal-pty`, `crossplat/w1-app-launch`, `crossplat/w1-hotkey`) merge `--no-ff` onto `feat/crossplatform-port`; the wave acceptance passes; the CI matrix is green; the branch is pushed. Any conflict or red CI → STOP and hand off to the matching recovery prompt.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-1-easy-ports.md` §Parallelism (land 1.5 first to avoid the pyproject conflict).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-15, HN-16, HN-17.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git switch feat/crossplatform-port`\n3. `git fetch origin && git pull --ff-only origin feat/crossplatform-port`\n4. `pip install -e \".[dev,desktop]\" --no-deps`\n<\/environment-setup>\n\n<scope>\nBranches in order: `crossplat/w1-deps`, then `crossplat/w1-terminal-pty`, `crossplat/w1-app-launch`, `crossplat/w1-hotkey`. Merge commits + conflict resolutions only.\n<\/scope>\n\n<primary-path>\n1. `git merge --no-ff crossplat/w1-deps`; reinstall extras.\n2. `git merge --no-ff crossplat/w1-terminal-pty` → reinstall → run acceptance.\n3. `git merge --no-ff crossplat/w1-app-launch` → run acceptance.\n4. `git merge --no-ff crossplat/w1-hotkey` → run acceptance.\n5. Full wave acceptance; if green, `git push origin feat/crossplatform-port`; watch CI.\n<\/primary-path>\n\n<fallback-paths>\n- Merge conflict (likely on `pyproject.toml` if 1.5 wasn't landed first) → STOP, hand off to `recovery-merge-conflict`.\n- Red CI after push → STOP, hand off to `recovery-red-ci`.\n- Never force-push (HN-17), never delete a regression guard to resolve a conflict (HN-2).\n<\/fallback-paths>\n\n<acceptance>\npython scripts/ci/check_import_clean.py\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\npytest tests/unit/terminal/ tests/unit/trigger/test_hotkey.py tests/unit/plugins/tool/ -k \"app or hotkey or pty or shell\" -q\nruff check jarvis/ && mypy jarvis/terminal/ jarvis/trigger/ jarvis/plugins/tool/app_resolver.py\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — push only if green.\n- HN-17 — no force-push, no `--no-verify`.\nSOFT:\n- Land 1.5 first; `--no-ff` for each unit.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Merge order + hashes (deps first).\n- Wave acceptance result.\n- CI matrix green status (run URL).\n- Hard-rules honored (HN-15/HN-17 quoted).\n- Path-taken / any recovery handoff.\n<\/done-signal>", "2.3": "ultrathink\n<role>\nYou build the native-role → canonical-UIA-role normalization table that keeps the model prompt platform-agnostic. This is the quick first PR that 2.1 and 2.2 build on. Your outcome is a `normalize_role()` that maps macOS AX roles and Linux AT-SPI roles into the SAME canonical UIA vocabulary the Windows path already uses — so the model never sees `AXButton` or `push button`, only `Button`.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/vision/role_map.py` defines the macOS AX table, the Linux AT-SPI table, and `normalize_role(native_role, platform) -> str`.\n- Every output role is a member of the canonical set: `_CLICKABLE_UIA_ROLES` (`screenshot_only_loop.py:1072`) ∪ `DEFAULT_INTERESTING_ROLES` (`pruning.py:51`): {Button, MenuItem, ListItem, TabItem, CheckBox, RadioButton, Hyperlink, Edit, ComboBox, TreeItem, SplitButton, Text}.\n- Representative mappings hold: `AXButton`→Button, `AXTextField`/`AXTextArea`→Edit, `AXPopUpButton`/`AXComboBox`→ComboBox, `AXMenuItem`→MenuItem, `AXLink`→Hyperlink, `AXStaticText`→Text, `AXRow`/`AXCell`→ListItem, `AXOutlineRow`→TreeItem; `ROLE_PUSH_BUTTON`→Button, `ROLE_TEXT`/`ROLE_ENTRY`→Edit, `ROLE_COMBO_BOX`→ComboBox, `ROLE_MENU_ITEM`→MenuItem, `ROLE_LINK`→Hyperlink, `ROLE_LABEL`→Text, `ROLE_PAGE_TAB`→TabItem, `ROLE_LIST_ITEM`/`ROLE_TABLE_CELL`→ListItem, `ROLE_TREE_ITEM`→TreeItem. Unknown roles map to `Text` (visible, not pixel-guessed) or are droppable by `filter_by_role`.\n- `tests/unit/vision/test_role_map.py` green with a parity assertion that EVERY produced role is in the canonical set.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §2.3.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-10 (normalize into canonical UIA vocabulary).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-3 (single source of truth, no drift) and HN-7 (no module-scope OS import — pyobjc/pyatspi constants are NOT imported here; use plain strings).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-8 (role-vocabulary drift = the BUG-008 multi-layer-enum-drift class — read the full counter-pattern; note the live source of the role set is `screenshot_only_loop.py:1072`).\n- `docs/anti-drift-three-layer.md` (the five-layer pattern this defends).\n- Read `jarvis/harness/screenshot_only_loop.py:1072` and `jarvis/vision/pruning.py:51` to copy the canonical set EXACTLY.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w2-ui-click ../sub-agents-outputs/crossplat-w2-uiclick feat/crossplatform-port`\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/vision/role_map.py`, `tests/unit/vision/test_role_map.py`.\nDo NOT edit `pruning.py`/`screenshot_only_loop.py` role sets — they are the canonical source (read-only here). This worktree (D) continues into 2.1/2.2/2.4.\n<\/scope>\n\n<primary-path>\n1. Read the two canonical role sets verbatim; build the union as the allowed output set.\n2. Write the AX table and the AT-SPI table as plain string→string dicts (no pyobjc/pyatspi imports — use the role-name strings).\n3. Write `normalize_role()` with an unknown-role fallback to `Text` (or a documented drop).\n4. Write the parity test asserting every value in both tables ∈ the canonical union + the representative mappings.\n<\/primary-path>\n\n<fallback-paths>\n- If a native role has no clean canonical analogue, map it to `Text` (keeps it visible) rather than inventing a new canonical role — adding a role would be enum drift (AP-8). Failure condition: a produced role escapes the canonical set.\n- You may extend the tables with more native roles, provided the parity test still passes (every output ∈ canonical union).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/vision/test_role_map.py -v\npython -c \"from jarvis.vision.role_map import normalize_role; assert normalize_role('AXButton','darwin')=='Button' and normalize_role('ROLE_PUSH_BUTTON','linux')=='Button'\"\nruff check jarvis/vision/role_map.py && mypy jarvis/vision/role_map.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- AP-8 / AD-10 — normalize into the EXISTING canonical UIA vocabulary; never emit a raw native role; never add a new canonical role.\n- HN-3 — one mapping table per OS as the single source; pin with a parity test.\n- HN-7 — no pyobjc/pyatspi import here (use role-name strings).\nSOFT:\n- Unknown → `Text`, not a guess.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The two tables + `normalize_role` + unknown-role policy.\n- The canonical union copied from the live source (which file:line).\n- Parity test result (every output ∈ canonical).\n- Hard-rules honored (AP-8/HN-3/HN-7 quoted).\n- Path-taken.\n<\/done-signal>", "2.1": "ultrathink\n<role>\nYou add the macOS AX-tree `VisionSource` (`pyobjc` AXUIElement) so UI-element-click works on macOS. Your outcome is an `AXTreeSource` that satisfies the existing `VisionSource` Protocol, produces the SAME `Observation`/`UIANode` layout the Windows path produces (so downstream is identical), normalizes roles via 2.3, and detect-and-degrades on a missing Accessibility grant — never silently empty.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/vision/ax_tree.py` defines `AXTreeSource` satisfying `VisionSource` (`protocols.py:419`): `name=\"ax-tree\"`, `kind=\"ui_tree\"`, `async def observe(...) -> Observation`, `async def close()`. It returns `Observation` (`protocols.py:402`) carrying a tuple of `UIANode` (`protocols.py:394`) with the same fields (role, name, automation_id, bounds, enabled, parent_index) as the Windows `UIATreeSource` (`uia_tree.py:45`).\n- pyobjc frameworks (`Quartz`/`ApplicationServices`/`HIServices`) are lazy-imported INSIDE `observe`, never at module scope. Frontmost app via `NSWorkspace.frontmostApplication().processIdentifier()`; walk via `AXUIElementCopyAttributeValue` (kAXRole/kAXTitle/kAXValue/kAXPosition/kAXSize/kAXEnabled/kAXChildren).\n- Roles run through `normalize_role(..., \"darwin\")` (2.3) while flattening; reuse the existing `_DEPTH_RETRY_LADDER (6,5,4)` (`uia_tree.py:42`) + `prune_tree` (`pruning.py`). AX `{x,y}`+`{w,h}` → `(x,y,w,h)` bounds.\n- Permission gate (AD-13): before walking, check `AXIsProcessTrusted()`. If False, log the English onboarding message (\"macOS Accessibility permission not granted — grant it in System Settings › Privacy & Security › Accessibility … falling back to pixel clicks\") and return an `Observation` with empty `nodes` + `source=\"screenshot_only\"`. Never raise.\n- `tests/unit/vision/test_ax_tree.py` drives `AXTreeSource` against `tests/fakes/fake_ax_api.py` (canned AX tree); asserts the flattened nodes, role normalization, and the empty-nodes degrade when the fake reports `AXIsProcessTrusted()==False`. Permission-dependent tests are marked `skip_ci`.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §2.1 (the full spec + line refs).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-10 + AD-13 (detect-and-degrade) + AD-3 (live sign-off deferred to Wave 4).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-4 (never raise; degrade), HN-5 (\"Never silently return an empty result to hide a fixable misconfiguration … probe → if missing, log an onboarding message AND fall back\"), HN-6 (no \"works\" claim without live sign-off), HN-7 (no module-scope pyobjc).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-2 (empty AX tree hides ungranted permission — read the full counter-pattern), AP-9 (no real display in CI), AP-12 (ship a fake), AP-13 (no convenience module-scope import).\n- Read `jarvis/vision/uia_tree.py:42-45`, `protocols.py:394/402/419`, and the empty-tree contract at `jarvis/harness/screenshot_only_loop.py:1078-1095`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 2.3 (Worktree D — UI-element-click): `../sub-agents-outputs/crossplat-w2-uiclick` on `crossplat/w2-ui-click`.\n3. `pip install -e \".[dev]\"` (do NOT install `[desktop-macos]` — the import gate proves the base install imports clean).\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/vision/ax_tree.py`, `tests/fakes/fake_ax_api.py`, `tests/unit/vision/test_ax_tree.py`.\nDepends on 2.3's `role_map.py`. Do NOT edit `uia_tree.py` (Windows, untouched — AD-7).\n<\/scope>\n\n<primary-path>\n1. Define `AXTreeSource` against `VisionSource`; lazy-import pyobjc inside `observe`.\n2. Implement the `AXIsProcessTrusted()` gate FIRST → on False, log + return empty `Observation(source=\"screenshot_only\")`.\n3. Walk the AX tree depth-first, flatten to `UIANode` with `parent_index`, normalize roles via 2.3, convert bounds, reuse the depth ladder + `prune_tree`.\n4. Write `fake_ax_api.py` (a fake exposing the AX attribute calls + a togglable `AXIsProcessTrusted`) and the tests; mark permission/real-tree tests `skip_ci`.\n<\/primary-path>\n\n<fallback-paths>\n- If a pyobjc attribute call returns a CFType that needs bridging, normalize at the seam (extract Python primitives) and pin with the fake. Failure condition: a node carries a non-serializable value.\n- If the frontmost-app PID call is unavailable in the fake, parametrize the source with an injectable \"app provider\" for testing. Failure condition: the test needs a real NSWorkspace.\n- You may invent the tree-walk strategy if the prescribed attribute set is insufficient, provided roles are normalized (AP-8), the permission degrade fires (AP-2/HN-5), and no module-scope pyobjc import exists (HN-7).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/vision/test_ax_tree.py -v\npython -c \"from jarvis.vision.ax_tree import AXTreeSource; from jarvis.core.protocols import VisionSource; assert isinstance(AXTreeSource(), VisionSource)\"\npython -c \"import ast; m=ast.parse(open('jarvis/vision/ax_tree.py').read()); assert not any(getattr(n,'names',None) and any(a.name in ('Quartz','HIServices','ApplicationServices') for a in n.names) for n in ast.walk(m) if isinstance(n,ast.Import))\"\nruff check jarvis/vision/ax_tree.py && mypy jarvis/vision/ax_tree.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-5 / AP-2 — distinguish empty from forbidden; on un-granted permission log ONE English onboarding line + fall back to pixel; never silently empty, never hard-block.\n- HN-4 — `observe` never raises.\n- HN-6 — no \"macOS AX works\" claim; that is Wave 4's live sign-off.\n- HN-7 / AP-13 — no module-scope pyobjc import.\n- AP-8 / AD-10 — roles normalized to canonical UIA via 2.3.\nSOFT:\n- Reuse the depth ladder + `prune_tree` rather than re-implementing pruning.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `AXTreeSource` Protocol conformance + the UIANode field parity.\n- The `AXIsProcessTrusted()` gate + the degrade Observation.\n- Role normalization via 2.3 + reused pruning.\n- Hard-rules honored (HN-4/HN-5/HN-6/HN-7 quoted).\n- Path-taken + which tests are skip_ci.\n<\/done-signal>", "2.2": "ultrathink\n<role>\nYou add the Linux AT-SPI `VisionSource` (`pyatspi`) so UI-element-click works on Linux. Your outcome is an `AtspiTreeSource` mirroring 2.1's contract, with `pyatspi` lazy-imported and distro-only (never pip), the AT-SPI bus probed for reachability, and a logged degrade to empty nodes when the bus is unavailable — never a crash.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/vision/atspi_tree.py` defines `AtspiTreeSource` satisfying `VisionSource` (`name=\"atspi-tree\"`, `kind=\"ui_tree\"`), producing the same `Observation`/`UIANode` layout as 2.1, with roles normalized via `normalize_role(..., \"linux\")` (2.3) + reused `prune_tree`/`_DEPTH_RETRY_LADDER`.\n- `pyatspi` is lazy-imported inside `observe` (AD-14: not on PyPI, distro-packaged `apt install python3-pyatspi gir1.2-atspi-2.0`); its absence is a logged degrade, not a crash.\n- Walk: `pyatspi.Registry.getDesktop(0)` → active/focused app → `Accessible` children → `getRole()`/`name`/`getState()` (enabled) + `Component.getExtents(pyatspi.DESKTOP_COORDS)` for bounds; flatten to `UIANode` with `parent_index`.\n- AT-SPI bus gate (AD-13): probe `capabilities.has_ax_tree` + a cheap `getDesktop(0)` reachability check; on failure log \"Linux AT-SPI accessibility bus unavailable — install python3-pyatspi + gir1.2-atspi-2.0 and ensure the AT-SPI bus is running; falling back to pixel clicks\" and return empty `nodes`. Never raise.\n- `tests/unit/vision/test_atspi_tree.py` drives against `tests/fakes/fake_atspi.py`; asserts the flattened tree, role normalization, and the empty-nodes degrade when the bus is reported unreachable.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §2.2.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-10 + AD-13 + AD-14 (pyatspi distro-only).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-4 (never raise), HN-5 (detect-and-degrade, never silently empty), HN-7 (no module-scope pyatspi), HN-9 (\"Never put pyatspi in a pip extra. It is GObject-Introspection, distro-packaged only\").\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-3 (pyatspi is not pip-installable — read the full counter-pattern), AP-8 (role drift), AP-9 (no real display in CI), AP-12 (ship a fake).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 2.1/2.3 (Worktree D): `../sub-agents-outputs/crossplat-w2-uiclick` on `crossplat/w2-ui-click`.\n3. `pip install -e \".[dev]\"` (do NOT pip-install pyatspi — it is not on PyPI).\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/vision/atspi_tree.py`, `tests/fakes/fake_atspi.py`, `tests/unit/vision/test_atspi_tree.py`.\nDepends on 2.3's `role_map.py`. Do NOT add pyatspi to `pyproject.toml` (HN-9). Do NOT edit `uia_tree.py`.\n<\/scope>\n\n<primary-path>\n1. Define `AtspiTreeSource` against `VisionSource`; lazy-import pyatspi inside `observe`.\n2. Implement the bus reachability gate FIRST (has_ax_tree + getDesktop(0)) → on failure log + return empty `Observation`.\n3. Walk the AT-SPI tree, flatten to `UIANode`, normalize roles via 2.3, read extents for bounds.\n4. Write `fake_atspi.py` (fake Registry/Accessible/Component with a togglable bus-reachable flag) + the tests.\n<\/primary-path>\n\n<fallback-paths>\n- If `getExtents(DESKTOP_COORDS)` is unavailable on a node, fall back to `(0,0,0,0)` bounds and keep the node (still nameable) rather than dropping it. Failure condition: a clickable node is lost.\n- If the focused-app lookup differs across AT-SPI versions, walk from the desktop root and filter to the active frame; pin with the fake. Failure condition: the walk needs a live bus.\n- You may invent the reachability probe shape if `getDesktop(0)` is insufficient, provided the degrade fires (HN-5) and no module-scope pyatspi import exists (HN-7/HN-9).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/vision/test_atspi_tree.py -v\npython -c \"from jarvis.vision.atspi_tree import AtspiTreeSource; from jarvis.core.protocols import VisionSource; assert isinstance(AtspiTreeSource(), VisionSource)\"\npython -c \"import ast; m=ast.parse(open('jarvis/vision/atspi_tree.py').read()); assert not any(getattr(n,'names',None) and any(a.name=='pyatspi' for a in n.names) for n in ast.walk(m) if isinstance(n,ast.Import))\"\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); ext=d['project'].get('optional-dependencies',{}); assert all('pyatspi' not in x for g in ext.values() for x in g)\"\nruff check jarvis/vision/atspi_tree.py && mypy jarvis/vision/atspi_tree.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-9 / AP-3 — `pyatspi` is NEVER in pyproject; lazy-import + capability probe only.\n- HN-5 — bus-unavailable → log onboarding + empty nodes (pixel fallback); never silently empty.\n- HN-4 — `observe` never raises.\n- HN-7 — no module-scope pyatspi import.\n- AP-8 — roles normalized to canonical UIA via 2.3.\nSOFT:\n- Reuse the depth ladder + `prune_tree`.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `AtspiTreeSource` conformance + UIANode parity.\n- The bus reachability gate + the degrade Observation.\n- pyatspi NOT in pyproject (assertion output) + lazy import confirmed.\n- Hard-rules honored (HN-9/HN-5/HN-4/HN-7 quoted).\n- Path-taken + which tests are skip_ci.\n<\/done-signal>", "2.4": "ultrathink\n<role>\nYou build the `tree_factory` and rewire the 6 hardcoded `UIATreeSource()` literals to it, so every UI-element-click consumer selects the right per-OS VisionSource. Your outcome is a single factory that returns the Windows/macOS/Linux source (or a null source that degrades to the pixel path), wired into all 6 call sites mechanically — the DI seams already exist.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/vision/tree_factory.py` defines `make_ui_tree_source() -> VisionSource` selecting on `detect_platform()` + `capabilities`: win32→`UIATreeSource()` (unchanged, AD-7); darwin→`AXTreeSource()`; linux→`AtspiTreeSource()` if `capabilities.has_ax_tree` else a NULL source whose `observe` returns an empty `Observation(source=\"screenshot_only\", nodes=())` and logs once.\n- The literal `UIATreeSource()` is replaced by `make_ui_tree_source()` at all 6 sites: `click_element.py:125`, `read_visible_ui_state.py:60`, `wait_for_element.py:97`, `wait_for_ui_state.py:78`, `engine.py:71` (the `uia_source or UIATreeSource()` default), `screenshot_only_loop.py:1092` (inside `_foreground_clickable_labels`). The lazy import guard at `click_element.py:117-123` becomes a `from jarvis.vision.tree_factory import make_ui_tree_source` import.\n- `screenshot_only_loop.py`'s \"returns [] on any failure\" contract (`:1093`) is intact (the null source's empty nodes already yield []).\n- `tests/unit/vision/test_tree_factory.py` green; `tests/unit/vision/test_engine.py` + `tests/contract/test_vision_source_protocol.py` green (add `AXTreeSource`/`AtspiTreeSource` to the parametrized contract suite at `test_vision_source_protocol.py:26`).\n- `grep -rn \"UIATreeSource()\" jarvis/` shows ONLY `tree_factory.py` (Windows branch) and `uia_tree.py` — none of the 6 former call sites.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §2.4 (the 6 exact call sites).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-5 (factory reads the shared capabilities) + AD-6 (null fallback) + AD-7 (Windows untouched).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-3 (read capability from the shared module, no inline drift), HN-4 (never raise), HN-5 (degrade, never silently empty).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-11 (re-detecting sys.platform per call-site) + AP-12 (ship a fake).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 2.1/2.2/2.3 (Worktree D): `../sub-agents-outputs/crossplat-w2-uiclick` on `crossplat/w2-ui-click`.\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/vision/tree_factory.py`, `tests/unit/vision/test_tree_factory.py`.\nModify (replace the literal with the factory call): `jarvis/plugins/tool/click_element.py`, `jarvis/plugins/tool/read_visible_ui_state.py`, `jarvis/plugins/tool/wait_for_element.py`, `jarvis/plugins/tool/wait_for_ui_state.py`, `jarvis/vision/engine.py`, `jarvis/harness/screenshot_only_loop.py`. Extend `tests/contract/test_vision_source_protocol.py` parametrization.\n<\/scope>\n\n<primary-path>\n1. Write `make_ui_tree_source()` + the null source.\n2. Mechanically swap the literal at the 6 sites (preserve each `self._vision_source or <call>` / `uia_source=` DI seam).\n3. Replace the `click_element.py` lazy `UIATreeSource` import with the factory import.\n4. Add `AXTreeSource`/`AtspiTreeSource` to the contract suite parametrization; write `test_tree_factory.py` (per-platform selection + the Linux null-source degrade).\n5. Run the grep to confirm zero stray literals.\n<\/primary-path>\n\n<fallback-paths>\n- If a call site constructs `UIATreeSource(...)` WITH arguments, thread those args through `make_ui_tree_source(**kwargs)` rather than dropping them. Failure condition: a site loses configuration.\n- If adding the two new sources to the contract suite trips a real-API requirement, pass them a fake/null-constructed instance for the structural conformance check only. Failure condition: the contract suite needs a real AX/AT-SPI bus.\n- You may invent the null-source shape if the prescribed one fights a consumer, provided the [] contract holds (HN-5) and platform is read from the shared module (AP-11).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/vision/test_tree_factory.py tests/unit/vision/test_engine.py tests/contract/test_vision_source_protocol.py -v\npython -c \"from jarvis.vision.tree_factory import make_ui_tree_source; from jarvis.core.protocols import VisionSource; assert isinstance(make_ui_tree_source(), VisionSource)\"\ngrep -rn \"UIATreeSource()\" jarvis/\nruff check jarvis/vision/ jarvis/plugins/tool/ jarvis/harness/screenshot_only_loop.py && mypy jarvis/vision/tree_factory.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-3 / AP-11 — the factory reads the shared capabilities once; no consumer re-detects sys.platform.\n- HN-4 — `make_ui_tree_source()` never raises.\n- HN-5 — the Linux null source degrades to [] with a one-time log; the pixel path takes over.\n- AD-7 — the Windows `UIATreeSource()` branch is unchanged.\nSOFT:\n- Keep each call-site edit a one-line swap; preserve the existing DI seam.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The factory + null source + per-OS selection.\n- The 6 call-site swaps + the grep proving zero strays.\n- Contract suite extended with the two new sources; engine suite green.\n- Hard-rules honored (HN-3/HN-4/HN-5 quoted).\n- Path-taken.\n<\/done-signal>", "2.5": "ultrathink\n<role>\nYou build the `OverlaySurface` seam and wrap the LIVE Tk orb as `TkColorKeyOverlay` (the Windows + macOS default, since `-transparentcolor` works on both). Your outcome is a thin lifecycle wrapper around `OrbOverlay` — the rendering is NOT rewritten — plus a factory that selects the right surface per OS. The Wave-0 ADR fixed the Tk orb as the wrap target; the PySide6 tree must not be re-imported.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/overlay/surface.py` defines `OverlaySurface` Protocol (`start()`, `stop()`, `set_state(state)`, `is_visible()->bool`) + `make_overlay_surface()` factory + `TkColorKeyOverlay`.\n- `TkColorKeyOverlay` WRAPS `OrbOverlay` (`ui/orb/overlay.py:1236`, `-transparentcolor` at ~`:966`/`:1331`) — no change to the color-key rendering; the wrapper only adapts the lifecycle to the Protocol.\n- `make_overlay_surface()` selects on `detect_platform()` + `capabilities`: win32/darwin → `TkColorKeyOverlay` (when `capabilities.has_overlay`); linux → `LinuxBestEffortOverlay`/`TrayOnlySurface` (2.6); `not has_overlay` → `TrayOnlySurface`.\n- The Windows-only `SetSystemCursor` swap (`jarvis/overlay/system_cursor.py`) is left Windows-only at its existing call site (`jarvis/ui/desktop_app.py`); it is NOT wired into the cross-platform surface (AD-11 / HN-18).\n- `tests/overlay/test_overlay_surface.py` green under `QT_QPA_PLATFORM=offscreen`; constructs `TkColorKeyOverlay` against `tests/fakes/fake_overlay_surface.py` and asserts lifecycle + factory selection (no real window).\n- `python -c \"import ui.orb.overlay\"` still resolves (live orb import unbroken).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §2.5.\n- `docs/plans/cross-platform-mac-linux/ADR-orb-framework.md` (Wave-0 verdict: wrap Tk, do not re-import PySide6).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-11 (the 3-tier ladder; SetSystemCursor stays Windows-only) + AD-7.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-1 (wrap, never rewrite the live orb), HN-4 (factory never raises), HN-6 (no transparency \"works\" claim without live sign-off), HN-18 (SetSystemCursor stays a Windows-only no-op off Windows).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-5 (`-transparentcolor` raises TclError on X11 — relevant to the factory NOT selecting Tk on Linux), AP-9 (no real display in CI), AP-12 (ship a fake).\n- Read `ui/orb/overlay.py` around the cited lines + `tests/overlay/conftest.py:21` (the offscreen guard, kept by Wave-0 0.7).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w2-orb ../sub-agents-outputs/crossplat-w2-orb feat/crossplatform-port`\n3. `pip install -e \".[dev]\"`\n4. `python -c \"import jarvis; print(jarvis.__file__)\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/overlay/surface.py`, `tests/fakes/fake_overlay_surface.py`, `tests/overlay/test_overlay_surface.py`.\nModify: none of `ui/orb/overlay.py`'s rendering (wrap only). This worktree (E) continues into 2.6 + the `desktop-macos` extra in 2.7.\n<\/scope>\n\n<primary-path>\n1. Define the `OverlaySurface` Protocol + `make_overlay_surface()`.\n2. Write `TkColorKeyOverlay` adapting `OrbOverlay`'s lifecycle to the Protocol (start/stop/set_state/is_visible) — no rendering changes.\n3. Implement the factory selection (linux branch delegates to 2.6's surfaces).\n4. Write `fake_overlay_surface.py` + the offscreen test asserting lifecycle + selection (Tk on win32/darwin, never on linux).\n<\/primary-path>\n\n<fallback-paths>\n- If `OrbOverlay`'s constructor needs a Tk root that can't be built headless, gate construction so the FACTORY selection + Protocol conformance are testable without instantiating a real window (construct lazily in `start()`). Failure condition: importing the module needs a display.\n- If `set_state` maps imperfectly to `OrbOverlay`'s state API, add a small adapter mapping table and pin it with the fake. Failure condition: a state has no orb representation.\n- You may invent the lifecycle adapter shape if the prescribed Protocol fights `OrbOverlay`, provided the rendering is untouched (HN-1) and the factory never selects Tk on Linux (AP-5).\n<\/fallback-paths>\n\n<acceptance>\nQT_QPA_PLATFORM=offscreen pytest tests/overlay/test_overlay_surface.py -v\npython -c \"from jarvis.overlay.surface import make_overlay_surface, OverlaySurface; assert isinstance(make_overlay_surface(), OverlaySurface)\"\npython -c \"import ui.orb.overlay; print('live orb import ok')\"\nruff check jarvis/overlay/ && mypy jarvis/overlay/surface.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-1 / AD-7 — wrap `OrbOverlay`; do not rewrite the color-key rendering.\n- HN-4 / AP-5 — the factory degrades, never raises; Tk is selected ONLY on win32/darwin (never X11 Linux).\n- HN-6 — no transparency \"works\" claim; Wave 4 owns the live sign-off.\n- HN-18 — `SetSystemCursor` stays a Windows-only no-op; do not wire it cross-platform.\nSOFT:\n- Keep the wrapper thin; lazy-construct the Tk root in `start()`.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The `OverlaySurface` Protocol + `TkColorKeyOverlay` wrap (no rendering change).\n- Factory selection (Tk on win/mac only).\n- Offscreen test + live orb import intact.\n- Hard-rules honored (HN-1/HN-4/HN-6/HN-18 quoted).\n- Path-taken + how headless construction was handled.\n<\/done-signal>", "2.6": "ultrathink\n<role>\nYou build the Linux orb tiers: a best-effort transparent surface on a compositor and the universal `TrayOnlySurface` floor driving the already-cross-platform pystray tray. Your outcome is graceful orb presence on every Linux session — transparency where the compositor allows it, a state-colored tray icon everywhere else — never an opaque magenta box, never a crash.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/overlay/linux_surface.py` defines `LinuxBestEffortOverlay`: attempts the Tk `-transparentcolor` path on a Linux compositor; on a non-compositing/Wayland session (detect via `capabilities.is_wayland` or a failed `wm_attributes` probe / `TclError`) it FALLS THROUGH to `TrayOnlySurface` with a logged English message. Never shows an opaque magenta box.\n- `jarvis/overlay/tray_surface.py` defines `TrayOnlySurface`: drives the existing cross-platform pystray tray (`jarvis/ui/tray.py`, no platform marker, renders `JarvisState` icons via PIL at `tray.py:39`); `set_state(state)` maps the orb state onto `JarvisState` (`tray.py:20-26`) so IDLE/LISTENING/THINKING/SPEAKING feedback shows in the tray color (`_STATE_COLORS` at `tray.py:29`).\n- `make_overlay_surface()` (2.5) returns `LinuxBestEffortOverlay` when `display_present and not is_wayland`, else `TrayOnlySurface`.\n- `tests/overlay/test_tray_surface.py` green (TrayOnlySurface maps orb states onto `JarvisState` via a fake; no real tray thread). On a headless leg (no DISPLAY) `make_overlay_surface()` returns `TrayOnlySurface` and start/stop are no-op-safe.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §2.6.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-11 (the ladder + the tray floor) + AD-6.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-4 (never raise; degrade), HN-1 (do not rewrite the tray; drive it), HN-18 (SetSystemCursor stays Windows-only).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-5 (`-transparentcolor` TclError on X11 → log + fall to tray, never propagate — read the full counter-pattern), AP-9 (no real display in CI).\n- Read `jarvis/ui/tray.py:20-39` (the `JarvisState` enum + `_STATE_COLORS` + PIL icon render).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 2.5 (Worktree E — Orb): `../sub-agents-outputs/crossplat-w2-orb` on `crossplat/w2-orb`.\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/overlay/linux_surface.py`, `jarvis/overlay/tray_surface.py`, `tests/overlay/test_tray_surface.py`.\nModify: `jarvis/overlay/surface.py` (wire the linux branch of `make_overlay_surface()` — coordinate with 2.5 in the same worktree). Do NOT modify `jarvis/ui/tray.py` (drive it, don't rewrite — HN-1).\n<\/scope>\n\n<primary-path>\n1. Write `TrayOnlySurface` first (the floor): map orb state→`JarvisState`, drive pystray; start/stop no-op-safe headless.\n2. Write `LinuxBestEffortOverlay`: try the Tk color-key path wrapped in try/except TclError → on failure or Wayland, log + delegate to `TrayOnlySurface`.\n3. Wire the linux branch in `make_overlay_surface()`.\n4. Write `test_tray_surface.py` (state mapping via a fake tray) + a headless-selection assertion.\n<\/primary-path>\n\n<fallback-paths>\n- If `wm_attributes(\"-transparentcolor\", …)` neither raises nor keys out on a given compositor (silent opaque), add a post-set verification probe; on ambiguity, prefer the tray floor over a possibly-opaque box (AP-5). Failure condition: an opaque magenta box ever shows.\n- If pystray's icon update API differs from the assumed one, adapt at the `set_state` seam and pin with the fake. Failure condition: state changes don't reflect in the tray color.\n- You may invent the compositor-detection heuristic if `is_wayland` + the wm_attributes probe are insufficient, provided it always degrades to the tray (HN-4) and never propagates a TclError (AP-5).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/overlay/test_tray_surface.py -v\npython -c \"from jarvis.overlay.surface import make_overlay_surface; print(type(make_overlay_surface()).__name__)\"\nruff check jarvis/overlay/ && mypy jarvis/overlay/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-4 / AP-5 — `-transparentcolor` TclError on X11 → log + fall to the tray; never propagate; never an opaque magenta box.\n- HN-1 — drive `jarvis/ui/tray.py`; do not rewrite it.\n- HN-18 — no SetSystemCursor wiring cross-platform.\nSOFT:\n- The tray is the universal floor — guarantee SOME presence everywhere.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `TrayOnlySurface` state→JarvisState mapping + `LinuxBestEffortOverlay` fall-through.\n- The linux branch wired into the factory.\n- Headless selection (TrayOnlySurface) + no-op-safe start/stop.\n- Hard-rules honored (HN-4/HN-1/HN-18 quoted).\n- Path-taken + the compositor-detection heuristic used.\n<\/done-signal>", "2.7": "ultrathink\n<role>\nYou add the new `[desktop-macos]` pip extra for the pyobjc frameworks and record the pyatspi distro-prerequisite note. Your outcome is a marked, darwin-only extras group that keeps the base install clean, plus a one-line README note that pyatspi is apt-only (never pip).\n<\/role>\n\n<outcome>\nDONE means:\n- `pyproject.toml` gains a `desktop-macos` group next to `desktop`: `pyobjc-framework-Quartz>=10; sys_platform == 'darwin'`, `pyobjc-framework-ApplicationServices>=10; sys_platform == 'darwin'`, `pyobjc-framework-Accessibility>=10; sys_platform == 'darwin'`.\n- `pyatspi` is added NOWHERE in pyproject (distro-only — AD-14/HN-9); the README capability section carries a one-line note: `apt install python3-pyatspi gir1.2-atspi-2.0` is a Linux system prerequisite gated by `capabilities.has_ax_tree`.\n- The macOS/Linux CI legs install ONLY `.[dev]` (not `[desktop-macos]`, not distro pyatspi) and stay green — the base import gate covers `ax_tree`/`atspi_tree`.\n- All acceptance commands pass.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §2.7.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-14.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-8 (extras only; never base deps), HN-9 (pyatspi distro-only, never a pip extra), HN-10 (the sys_platform marker pattern).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-3 (pyatspi not pip-installable).\n- Mirror `pyproject.toml:99-110`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Owned by Worktree E (Orb): `../sub-agents-outputs/crossplat-w2-orb` on `crossplat/w2-orb` (the `desktop-macos` block). Worktree D adds ONLY the README pyatspi note (no pyproject edit) to avoid a conflict.\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nModify: `pyproject.toml` (add `desktop-macos`). Add the pyatspi prerequisite note to the cross-platform plan README capability area (the actual README capability-matrix update is Wave 4's 4.3 — here just the one-line dependency note so a future agent does not pip-install pyatspi).\n<\/scope>\n\n<primary-path>\n1. Add the `desktop-macos` group mirroring the marker style.\n2. Add the one-line pyatspi-is-apt-only note.\n3. Verify tomllib parses + the markers are correct.\n<\/primary-path>\n\n<fallback-paths>\n- If a `desktop-macos` group already exists (partial prior edit), reconcile to the three frameworks with darwin markers. Failure condition: tomllib parse fails.\n- You may bump the pyobjc minimums if v10 is unavailable, provided the darwin marker stays.\n<\/fallback-paths>\n\n<acceptance>\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); g=d['project']['optional-dependencies']['desktop-macos']; assert all('darwin' in x for x in g) and any('Accessibility' in x for x in g)\"\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); ext=d['project']['optional-dependencies']; assert all('pyatspi' not in x for g in ext.values() for x in g)\"\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-8 — extras only.\n- HN-9 / AP-3 — pyatspi never in pyproject.\n- HN-10 — pyobjc carries `sys_platform == 'darwin'`.\nSOFT:\n- Keep the README note one line; the full matrix is Wave 4.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The `desktop-macos` group + darwin markers (assertion output).\n- pyatspi absent from pyproject + the apt prerequisite note added.\n- CI legs still install only `.[dev]`.\n- Hard-rules honored (HN-8/HN-9/HN-10 quoted).\n- Path-taken.\n<\/done-signal>", "check-w2": "ultrathink\n<role>\nYou are a read-only phase auditor for Wave 2. Your outcome is a PASS/FAIL verdict on whether UI-element-click (AX/AT-SPI behind the VisionSource seam) and the Orb (OverlaySurface ladder) meet EK-2/EK-3 and are safe to merge — and a reminder that the GUI/permission behavior is deferred to Wave 4's live sign-off (EK-5, not provable here). You verify; you do not modify.\n<\/role>\n\n<outcome>\nDONE means a verdict report stating, with command evidence, whether:\n- Role normalization: every produced AX/AT-SPI role ∈ the canonical UIA set (AP-8 parity).\n- `AXTreeSource` + `AtspiTreeSource` satisfy `VisionSource`, lazy-import their native libs, and degrade to empty nodes on missing permission/bus (HN-5).\n- `make_ui_tree_source()` selects per OS; the 6 former `UIATreeSource()` literals are gone; the contract + engine suites are green.\n- `make_overlay_surface()` selects per OS (Tk only on win/mac), the Linux tray floor works headless, and the live Tk orb import is unbroken.\n- pyatspi is NOT in pyproject; the macOS pyobjc extra is darwin-marked; the base `.[dev]` import gate is still clean.\n- The CI matrix is green; all permission/transparency tests are `skip_ci` (no real display in CI — AP-9), deferred to Wave 4.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` (EK acceptance gate).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` EK-2/EK-3/EK-5 + AD-3.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-5/HN-6/HN-9/HN-15.\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-2/AP-3/AP-5/AP-8/AP-9.\n<\/required-reading>\n\n<environment-setup>\n1. `git switch feat/crossplatform-port` (with Wave-2 branches merged, or check each branch).\n2. `pip install -e \".[dev]\"` (do NOT install the macOS extra — prove the base install is clean).\nRead-only.\n<\/environment-setup>\n\n<scope>\nModify: NOTHING. Grep for stray `UIATreeSource()`, module-scope native imports, and `pyatspi` in pyproject.\n<\/scope>\n\n<primary-path>\n1. Run each acceptance command; capture output.\n2. Confirm CI green + the permission/transparency tests are skip_ci (not provable headless).\n3. Render the verdict, explicitly flagging that GUI/permission proof is Wave 4's job (HN-6).\n<\/primary-path>\n\n<fallback-paths>\n- If a sub-task branch is not yet merged, audit it on its branch and note integration state.\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/vision/test_role_map.py tests/unit/vision/test_ax_tree.py tests/unit/vision/test_atspi_tree.py tests/unit/vision/test_tree_factory.py -v\npytest tests/unit/vision/test_engine.py tests/contract/test_vision_source_protocol.py -v\nQT_QPA_PLATFORM=offscreen pytest tests/overlay/test_overlay_surface.py tests/overlay/test_tray_surface.py -v\ngrep -rn \"UIATreeSource()\" jarvis/\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); ext=d['project']['optional-dependencies']; assert all('pyatspi' not in x for g in ext.values() for x in g); print('no pyatspi in pyproject')\"\npython scripts/ci/check_import_clean.py\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-6 — do not declare AX/Orb GUI behavior \"verified\"; that is Wave 4's live sign-off.\n- HN-15 — do not declare mergeable unless the matrix is green.\nSOFT:\n- Be explicit about Wave-4-deferred items.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Role parity + the two VisionSources (conformance + degrade): PASS/FAIL.\n- tree_factory + 6 swaps + contract suite: PASS/FAIL.\n- Overlay factory + tray floor + live orb import: PASS/FAIL.\n- pyatspi-absent + import gate + CI green: PASS/FAIL.\n- Overall verdict + the Wave-4-deferred GUI/permission items + path-taken.\n<\/done-signal>", "merge-w2": "ultrathink\n<role>\nYou mechanically merge Wave 2's two branches onto the integration branch, run the wave acceptance, and push only if green. Step-prescriptive.\n<\/role>\n\n<outcome>\nDONE means: `crossplat/w2-ui-click` and `crossplat/w2-orb` merge `--no-ff` onto `feat/crossplatform-port` (order does not matter — disjoint files except the split pyproject/README note); the wave acceptance passes; the CI matrix is green; the branch is pushed. Any conflict or red CI → STOP and hand off to the matching recovery prompt.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-2-gui-permission.md` §Parallelism (the only shared file is pyproject 2.7 — E owns the desktop-macos block; D adds only the README note).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-9, HN-15, HN-16, HN-17.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git switch feat/crossplatform-port`\n3. `git fetch origin && git pull --ff-only origin feat/crossplatform-port`\n4. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nBranches: `crossplat/w2-ui-click`, `crossplat/w2-orb`. Merge commits + conflict resolutions only.\n<\/scope>\n\n<primary-path>\n1. `git merge --no-ff crossplat/w2-orb` (carries the desktop-macos extra) → reinstall → run acceptance.\n2. `git merge --no-ff crossplat/w2-ui-click` → run acceptance.\n3. Full wave acceptance; if green, `git push origin feat/crossplatform-port`; watch CI.\n<\/primary-path>\n\n<fallback-paths>\n- Conflict on `pyproject.toml`/README (if both touched it) → STOP, hand off to `recovery-merge-conflict`.\n- Red CI after push → STOP, hand off to `recovery-red-ci`.\n- Never force-push (HN-17); never resolve a conflict by re-adding pyatspi to pyproject (HN-9).\n<\/fallback-paths>\n\n<acceptance>\npython scripts/ci/check_import_clean.py\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\nQT_QPA_PLATFORM=offscreen pytest tests/overlay/ -q\npytest tests/unit/vision/ tests/contract/test_vision_source_protocol.py -q\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); ext=d['project']['optional-dependencies']; assert all('pyatspi' not in x for g in ext.values() for x in g)\"\nruff check jarvis/ && mypy jarvis/vision/tree_factory.py jarvis/overlay/surface.py\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — push only if green.\n- HN-9 — pyatspi never re-added to pyproject during conflict resolution.\n- HN-17 — no force-push, no `--no-verify`.\nSOFT:\n- `--no-ff` per unit.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The two merges + hashes.\n- Wave acceptance result.\n- CI matrix green status (run URL).\n- Hard-rules honored (HN-15/HN-9/HN-17 quoted).\n- Path-taken / any recovery handoff.\n<\/done-signal>", "3.1": "ultrathink\n<role>\nYou extract the `AdminTransport` seam from the Windows named-pipe code while leaving the HMAC/envelope/Pydantic-argv security core UNTOUCHED. Your outcome is a transport Protocol with the Windows pipe relocated behind it, the security core reused verbatim, and a factory that selects the right transport per OS. This is the foundation 3.2/3.4/3.6 build on — it must land first.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/admin/transport.py` defines `AdminTransport` Protocol — server: `async def serve(handler)` where `handler: Callable[[bytes], Awaitable[bytes]]`; client: `async def roundtrip(raw: bytes) -> bytes` — plus `NamedPipeTransport` (Windows) + `make_admin_transport()` factory.\n- The transport-specific Windows code is RELOCATED into `NamedPipeTransport`: `AdminPipeServer._accept_one` (`ipc.py:295`), `_handle_connection`/`_read_message`/`_write_message`/`_safe_close` (`:330-424`), `AdminPipeClient._roundtrip` (`:511`), `_build_sddl` (`:123`), `current_user_sid` (`:92`), `default_pipe_name` (`:117`). No behavior change (AD-7); the SDDL-ACL `D:(A;;FA;;;<SID>)` (`:129`) + MESSAGE-mode read still apply.\n- The HMAC/envelope core STAYS in `ipc.py` verbatim: `_canonical_args_json` (`:65`), `_compute_hmac` (`:76`), `_decode_request` (`:194`, its 5-step ordering), `_encode_response` (`:258`), the nonce LRU (`:181`), the `_TIMESTAMP_WINDOW_NS`/`_NONCE_LRU_SIZE` constants (`:43-50`).\n- `make_admin_transport()`: win32→`NamedPipeTransport`; else→`UnixSocketTransport` (3.2).\n- `tests/unit/admin/test_hmac_replay.py` STAYS green (the core is unmoved). `tests/unit/admin/test_transport_seam.py` green (a fake transport round-trips a signed envelope through `_decode_request`/`_encode_response`). `ipc.py` no longer module-scope-imports `win32pipe`/`win32file`/`win32security`/`pywintypes`.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` §3.1 (the exact relocate-vs-keep split + line refs).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-12 (reuse the security core untouched; only transport + op vocabulary change) + AD-7.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-1 (relocate, never rewrite the Windows impl), HN-11 (\"Never use shell=True and never pass unvalidated argv anywhere on the elevation path\"), HN-12 (\"Never weaken, bypass, or make optional the HMAC signature or the Pydantic discriminated-union argv validation\"), HN-7 (no module-scope Windows import).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-10 (shelling a privileged command string) + AP-12 (ship a fake).\n- Read `jarvis/admin/ipc.py` around all the cited lines to see exactly what is transport vs core.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w3-transport ../sub-agents-outputs/crossplat-w3-transport feat/crossplatform-port`\n3. `pip install -e \".[dev]\"`\n4. `python -c \"import jarvis; print(jarvis.__file__)\"`\n5. Invoke the `requesting-code-review` discipline before merge (security-sensitive wave).\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/admin/transport.py`, `tests/fakes/fake_admin_transport.py`, `tests/unit/admin/test_transport_seam.py`.\nModify: `jarvis/admin/ipc.py` (move ONLY the transport-specific Windows code; leave the HMAC core in place). This worktree (F) continues into 3.2/3.4/3.6.\n<\/scope>\n\n<primary-path>\n1. Define `AdminTransport` Protocol (server `serve(handler)` + client `roundtrip(raw)`) at the bytes-level seam `_decode_request`/`_encode_response` already operate on.\n2. Relocate the listed Windows pipe functions into `NamedPipeTransport` verbatim (lazy-import `win32*` inside the methods).\n3. Keep `_build_envelope` (`:495`) in the client; only the byte-transport swaps.\n4. Write `make_admin_transport()`.\n5. Write `fake_admin_transport.py` + `test_transport_seam.py`; re-run `test_hmac_replay.py` to prove the core is intact.\n<\/primary-path>\n\n<fallback-paths>\n- If relocating a pipe helper breaks an import cycle, keep a thin re-export shim in `ipc.py` (a lazy delegating function) rather than leaving the win32 import at module scope. Failure condition: the import gate goes red on `ipc.py`.\n- If the handler signature can't be threaded cleanly, define a small `AdminHandler` type alias and pin the seam with the fake. Failure condition: `serve(handler)` can't route through `_decode_request`.\n- You may invent the transport abstraction shape if the prescribed one fights the existing flow, provided the HMAC core is byte-for-byte unmoved (HN-12) and `test_hmac_replay.py` stays green.\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/admin/test_hmac_replay.py -v\npytest tests/unit/admin/test_transport_seam.py -v\npython -c \"from jarvis.admin.transport import make_admin_transport, AdminTransport; assert isinstance(make_admin_transport(), AdminTransport)\"\npython -c \"import ast; m=ast.parse(open('jarvis/admin/ipc.py').read()); assert not any(getattr(n,'names',None) and any(a.name in ('win32pipe','win32file','win32security','pywintypes') for a in n.names) for n in ast.walk(m) if isinstance(n,ast.Import))\"\nruff check jarvis/admin/ && mypy jarvis/admin/transport.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-12 — the HMAC signature + Pydantic argv validation are byte-for-byte unmoved; `test_hmac_replay.py` proves it.\n- HN-11 / AP-10 — no `shell=True`, no unvalidated argv anywhere.\n- HN-1 / AD-7 — the Windows pipe behavior is relocated verbatim, not rewritten.\n- HN-7 — `ipc.py` is import-clean (win32 imports now lazy inside `transport.py`).\nSOFT:\n- A thin re-export shim is acceptable to avoid cycles, as long as the import gate stays green.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- `AdminTransport` Protocol + the relocated Windows functions + the factory.\n- Confirmation the HMAC core is unmoved (`test_hmac_replay.py` green).\n- `ipc.py` import-clean (AST output).\n- Hard-rules honored (HN-12/HN-11/HN-1/HN-7 quoted) + the code-review pass.\n- Path-taken + any re-export shim used.\n<\/done-signal>", "3.2": "ultrathink\n<role>\nYou build the `UnixSocketTransport` — a 0700 AF_UNIX socket with a peer-credential check that is the moral equivalent of the Windows SDDL-ACL pipe. Your outcome is a Unix transport that round-trips signed envelopes through the reused HMAC core, rejects any peer whose UID != the server UID, and constructs even on a headless box (refusal happens at the NullElevator layer, not here).\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/admin/unix_socket.py` defines `UnixSocketTransport` binding an `AF_UNIX`/`SOCK_STREAM` socket at `$XDG_RUNTIME_DIR/jarvis-admin-<uid>.sock` (fallback `0700` dir under `/run/user/<uid>/` or `tempfile.mkdtemp(mode=0o700)`); the socket file is `0600` in a `0700` dir (the FS ACL replacing the SDDL-ACL).\n- Peer-credential check on accept: Linux `sock.getsockopt(SOL_SOCKET, SO_PEERCRED, struct.calcsize(\"3i\"))`→(pid,uid,gid); macOS `LOCAL_PEERCRED`/`getpeereid`. Reject any connection whose UID != the server process UID. The HMAC envelope check (`_decode_request`) still runs on top (defense in depth).\n- Server side implements `AdminTransport.serve(handler)`: accept → read raw → `await handler(raw)` (the reused `_decode_request`→executor→`_encode_response` chain) → write → close, reusing the accept-loop/per-connection-task structure from `AdminPipeServer.serve_forever` (`ipc.py:268-293`). Client: connect→write→read→close (mirrors `_roundtrip`).\n- `tests/unit/admin/test_unix_socket_transport.py` green (socket 0600 in a 0700 dir; mismatched-UID peer rejected via a monkeypatched SO_PEERCRED reader). `tests/integration/test_admin_unix_loopback.py` green on Linux/macOS (real AF_UNIX loopback — runs fine on a runner, NOT skip_ci).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` §3.2.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-12.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-13 (\"Never drop the peer-credential check on the Unix transport. SO_PEERCRED/LOCAL_PEERCRED on a 0700 socket in $XDG_RUNTIME_DIR is the moral equivalent of the Windows SDDL-ACL pipe\"), HN-11 (no shell=True / no unvalidated argv), HN-12 (don't weaken HMAC), HN-4 (never raise; degrade).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-10 (shelling a privileged command string) + AP-12 (ship a fake).\n- Read `ipc.py:268-293` (the accept-loop to mirror) + `:456-545` (the client roundtrip shape).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 3.1 (Worktree F), on a sub-branch off `crossplat/w3-transport` (3.2 + 3.4 are parallel sub-branches that both depend on 3.1). Suggested: `crossplat/w3-unix-socket` branched from `crossplat/w3-transport` after 3.1 is committed.\n3. `pip install -e \".[dev]\"`\n4. `requesting-code-review` before merge.\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/admin/unix_socket.py`, `tests/unit/admin/test_unix_socket_transport.py`, `tests/integration/test_admin_unix_loopback.py`.\nDepends on 3.1's `AdminTransport` Protocol. Reuse the HMAC core from `ipc.py` — do not copy it.\n<\/scope>\n\n<primary-path>\n1. Implement socket bind with the `$XDG_RUNTIME_DIR` path + 0600/0700 perms + the fallback dir logic.\n2. Implement the peer-cred check (Linux SO_PEERCRED, macOS LOCAL_PEERCRED/getpeereid); reject UID mismatch BEFORE reading the envelope.\n3. Implement `serve(handler)` mirroring the accept-loop + the client connect/write/read.\n4. Write the unit test (perms + UID-mismatch rejection via monkeypatched reader) + the real-loopback integration test.\n<\/primary-path>\n\n<fallback-paths>\n- If `SO_PEERCRED` is unavailable (older kernel/platform), fall back to `LOCAL_PEERCRED`/`getpeereid`; if neither exists, REFUSE all connections with a logged message rather than skipping the check (HN-13 — never drop peer-cred). Failure condition: the transport accepts a peer without any cred check.\n- If `$XDG_RUNTIME_DIR` is unset, use the `tempfile.mkdtemp(mode=0o700)` fallback and log. Failure condition: the socket lands world-readable.\n- You may invent the accept-loop concurrency shape if the prescribed mirror fights asyncio, provided peer-cred + HMAC both run (HN-13/HN-12) and a slow op doesn't block accept.\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/admin/test_unix_socket_transport.py -v\npytest tests/integration/test_admin_unix_loopback.py -v\npython -c \"import socket,struct; print('peercred' , hasattr(socket,'SO_PEERCRED'))\"\nruff check jarvis/admin/unix_socket.py && mypy jarvis/admin/unix_socket.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-13 — the peer-cred check is mandatory; never accept a peer without it; UID-mismatch is rejected.\n- HN-12 — the HMAC envelope check runs ON TOP of peer-cred (defense in depth); never weakened.\n- HN-11 / AP-10 — no shell=True; the handler executes validated argv only.\n- HN-4 — the transport degrades/refuses, never crashes the process.\nSOFT:\n- Socket file 0600 in a 0700 dir; mirror the existing accept-loop.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Socket path + perms (0600/0700) + the fallback dir logic.\n- The peer-cred check (Linux + macOS branches) + UID-mismatch rejection.\n- Real AF_UNIX loopback round-trip through the reused HMAC core.\n- Hard-rules honored (HN-13/HN-12/HN-11/HN-4 quoted) + the code-review pass.\n- Path-taken.\n<\/done-signal>", "3.3": "ultrathink\n<role>\nYou define the NEW per-OS admin op vocabulary (macOS brew/launchctl, Linux apt/systemctl/ufw, protected-path) as fresh members of the SAME `AdminOperation` discriminated union, with pattern-validated argv and no free-form shell strings. Your outcome is a Unix op schema that ports the op CONCEPTS (install a package, start a service) without porting the Windows COMMAND STRINGS — `sudo winget` is nonsense.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/admin/schema_unix.py` defines the macOS + Linux op models, each subclassing `_AdminOpBase` (`schema.py:25`, `frozen=True`, `extra=\"forbid\"`) so they inherit strict validation, with pattern-validated argv (mirror `InstallWingetOp` `package_id` regex `:39`, `_SERVICE_NAME` `:55`, firewall name `:82`):\n - Linux: `AptInstallOp`/`AptRemoveOp` (`package` regex `^[a-z0-9][a-z0-9+\\-.]{0,127}$`), `SystemctlOp` (`unit` regex, `action: Literal[\"start\",\"stop\",\"enable\",\"disable\",\"restart\"]`), `UfwRuleOp` (port 1..65535, `action: allow|deny`, `proto: tcp|udp`), `WriteProtectedPathOp` (reuse `schema.py:161`, paths like `/etc/...`).\n - macOS: `BrewInstallOp`/`BrewRemoveOp` (`formula` regex), `LaunchctlOp` (`label` regex, `action: load|unload|enable|disable`), `WriteProtectedPathOp` (paths like `/Library/...`).\n- `jarvis/admin/schema.py`: the `AdminOperation` union (`:175-192`) + `ADMIN_OPERATION_TYPES` (`:195-209`) + `DESTRUCTIVE_OPS` (`:212`) become platform-conditional (or a superset the executor dispatches per OS). `jarvis/admin/executor.py` gains per-OS argv builders emitting validated argv lists (`[\"apt-get\",\"install\",\"-y\",op.package]`, `[\"systemctl\",op.action,op.unit]`, `[\"brew\",\"install\",op.formula]`, `[\"launchctl\",op.action,op.label]`) — argv only, `shell=False`.\n- Destructive ops (`apt_remove`, `systemctl stop/disable`, `ufw_remove`, `brew_remove`, `launchctl unload`, `write_protected_path`) are in `DESTRUCTIVE_OPS` so the per-action approval gate (`client.py:135-139`) fires identically across OSes.\n- `tests/unit/admin/test_schema_unix.py` green; a malicious payload (`package=\"foo; rm -rf /\"`) fails the regex.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` §3.3.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-12 + PC-7 (the 13 ops are Windows-native; port the concept, not the command).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-11 (no shell=True / no unvalidated argv), HN-12 (every new op extends the same union; no side door).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-7 (porting the 13 ops literally via sudo is nonsense — read the full counter-pattern), AP-10 (shelling a privileged string).\n- Read `jarvis/admin/schema.py:1-9` (the §Safety mandate) + `:25` + `:175-212` and `jarvis/admin/executor.py` (the Windows argv-builder pattern).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w3-op-vocab ../sub-agents-outputs/crossplat-w3-opvocab feat/crossplatform-port` (Worktree G — independent of the transport seam)\n3. `pip install -e \".[dev]\"`\n4. `requesting-code-review` before merge.\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/admin/schema_unix.py`, `tests/unit/admin/test_schema_unix.py`.\nModify: `jarvis/admin/schema.py` (make the union/types/destructive list platform-conditional or a superset), `jarvis/admin/executor.py` (add per-OS argv builders). Do NOT touch the HMAC core in `ipc.py`. Worktree G also owns 3.5.\n<\/scope>\n\n<primary-path>\n1. Write the Unix op models subclassing `_AdminOpBase`, each with a strict regex/Literal field set.\n2. Extend the discriminated union + `ADMIN_OPERATION_TYPES` + `DESTRUCTIVE_OPS` (platform-conditional or superset).\n3. Add the per-OS argv builders in `executor.py` (argv lists only, `shell=False`).\n4. Write `test_schema_unix.py`: each op validates a good payload, rejects a malicious one, and destructive ops are in `DESTRUCTIVE_OPS`.\n<\/primary-path>\n\n<fallback-paths>\n- If making the union platform-conditional breaks the Windows tests, use a SUPERSET union (all OS ops registered) and dispatch per-OS in the executor — never narrow the Windows ops. Failure condition: a Windows op-validation test breaks.\n- If `apt-get` vs `apt` matters, prefer `apt-get` (stable scripting interface) in the argv builder. Failure condition: the builder emits an interactive-only command.\n- You may invent additional Unix ops if clearly within the same concept space, provided each is a pattern-validated `_AdminOpBase` subclass in the same union (HN-12) with argv-only execution (HN-11/AP-7).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/admin/test_schema_unix.py -v\npython -c \"from jarvis.admin.schema_unix import AptInstallOp; AptInstallOp(package='git')\"\npython -c \"from jarvis.admin.schema_unix import AptInstallOp; AptInstallOp(package='git; whoami')\" ; test $? -ne 0 && echo \"rejected as expected\"\npytest tests/unit/admin/ -v\nruff check jarvis/admin/ && mypy jarvis/admin/schema_unix.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-12 / AP-7 — every new op is a fresh member of the SAME `AdminOperation` union; no side door; the Windows ops are not narrowed.\n- HN-11 / AP-10 — pattern-validated, typed argv only; `shell=False`; never a free-form shell string.\n- the §Safety mandate (`schema.py:1-9`) — `extra=\"forbid\"`, `frozen=True` inherited from `_AdminOpBase`.\nSOFT:\n- Prefer `apt-get` over `apt` for scripting.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The Unix op models + their validation regexes/Literals.\n- The union/types/destructive-list change (conditional vs superset) + the per-OS argv builders.\n- Malicious-payload rejection proven (output).\n- Hard-rules honored (HN-12/HN-11/AP-7 quoted) + the code-review pass.\n- Path-taken.\n<\/done-signal>", "3.4": "ultrathink\n<role>\nYou build the `Elevator` seam and per-OS elevators (Uac / Sudo / Polkit / MacAuth / Null), with `NullElevator` as the safe default that refuses elevation on a headless/no-auth box. Your outcome is an elevation abstraction where the elevator only SPAWNS the helper — the helper still runs every op through the reused validated-argv chain — and a missing mechanism refuses with a clear English message, never silently runs privileged ops.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/admin/elevator.py` defines `Elevator` Protocol (`async def ensure_elevated_helper(transport_addr) -> ElevationResult` + `is_available() -> bool`) + `UacElevator`, `SudoElevator`, `PolkitElevator`, `MacAuthElevator`, `NullElevator` + `make_elevator()` factory.\n - `UacElevator` (Windows): the existing `ShellExecuteW(\"runas\", python.exe, \"-m jarvis.admin.helper --pipe-name ...\")` flow (`launcher.py:11`), unchanged (AD-7).\n - `PolkitElevator` (Linux, preferred): `pkexec` to spawn the helper bound to the unix socket; a polkit policy file under `jarvis/admin/data/`; `is_available()`=`shutil.which(\"pkexec\")`.\n - `SudoElevator` (Linux, fallback): `sudo`/`sudo -A` when polkit absent; `is_available()`=`shutil.which(\"sudo\")`.\n - `MacAuthElevator` (macOS): `osascript -e 'do shell script \"…\" with administrator privileges'` (or Authorization Services via pyobjc) to spawn the helper.\n - `NullElevator`: returned when `not capabilities.has_elevation`; `ensure_elevated_helper` returns a refusal `ElevationResult` and logs \"no elevation mechanism available on this host — privileged operations are disabled; install pkexec or run with sudo\". Never raises.\n- `make_elevator()`: win32→Uac; darwin→MacAuth; linux→Polkit if pkexec else Sudo else Null; `not has_elevation`→Null.\n- `jarvis/admin/launcher.py`: `ensure_admin_secret` (`:42`) stays transport-agnostic; the Windows `ShellExecuteW(runas,…)` helper-spawn (`:11`) moves behind `UacElevator`. `jarvis/admin/client.py`: `AdminClient` (`:66`) gains an injected `Elevator` alongside its existing injectable `pipe_client` (`:80`).\n- The elevator ONLY spawns the helper; the helper runs every op through the reused `_decode_request` → `extra=\"forbid\"` schema → argv builder → `shell=False` chain (HN-11/HN-12).\n- `tests/unit/admin/test_elevator.py` green (factory selection per platform + `is_available`; `NullElevator.ensure_elevated_helper` returns a refusal and never raises). No end-to-end elevation test — any test that would trigger a real prompt is `skip_ci`.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` §3.4.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-12 + AD-6 (graceful null) + AD-3 (interactive auth never CI-testable).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-14 (\"NullElevator is the default. A headless / no-auth box refuses elevation with a clear English message; it never silently runs privileged ops\"), HN-11 (no shell=True / no unvalidated argv), HN-12 (don't weaken HMAC/validation for convenience), HN-4 (never raise; degrade), HN-6 (no \"works\" claim without live sign-off).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-10 (shelling a privileged command string — the elevator passes a validated argv vector, never a shell string), AP-12 (ship a fake).\n- Read `jarvis/admin/launcher.py:11/42` (the dormant elevation glue, PC-7) + `jarvis/admin/client.py:66/80/152-164`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 3.1 (Worktree F), parallel sub-branch off `crossplat/w3-transport` after 3.1: suggested `crossplat/w3-elevator` branched from `crossplat/w3-transport`.\n3. `pip install -e \".[dev]\"`\n4. `requesting-code-review` before merge.\n<\/environment-setup>\n\n<scope>\nCreate: `jarvis/admin/elevator.py`, `jarvis/admin/data/` (polkit policy file), `tests/fakes/fake_elevator.py`, `tests/unit/admin/test_elevator.py`.\nModify: `jarvis/admin/launcher.py` (move the runas spawn behind UacElevator; keep `ensure_admin_secret` transport-agnostic), `jarvis/admin/client.py` (inject `Elevator`). Depends on 3.1's transport seam.\n<\/scope>\n\n<primary-path>\n1. Define `Elevator` Protocol + `ElevationResult` (success/refusal shape).\n2. Implement each elevator; the Linux/macOS ones spawn the helper with a VALIDATED argv vector (never a shell string) routed through `NO_WINDOW_CREATIONFLAGS`/equivalent (HN-18).\n3. Implement `NullElevator` (refusal + log, never raises) and `make_elevator()`.\n4. Move the Windows runas spawn behind `UacElevator`; inject `Elevator` into `AdminClient` (preserve the DI seam).\n5. Write `fake_elevator.py` + `test_elevator.py` (factory selection + is_available + the Null refusal path); mark any real-prompt test `skip_ci`.\n<\/primary-path>\n\n<fallback-paths>\n- If the polkit policy file format is uncertain, ship a minimal valid `.policy` granting only the helper action and document it; `PolkitElevator.is_available()` still gates on `which pkexec`. Failure condition: pkexec is invoked without a policy and silently fails.\n- If `osascript … with administrator privileges` can't bind cleanly to the socket address, pass the address as a validated argv arg to the helper rather than interpolating into the shell-script string (HN-11/AP-10). Failure condition: the address is interpolated into a shell string.\n- You may invent the `ElevationResult` shape and the spawn mechanism if the prescribed ones fight the platform, provided NullElevator is the safe default (HN-14), no shell string carries a privileged arg (AP-10), and the helper still validates every op (HN-12).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/admin/test_elevator.py -v\npytest tests/unit/admin/test_elevator.py -k null -v\npython -c \"from jarvis.admin.elevator import make_elevator, Elevator; assert isinstance(make_elevator(), Elevator)\"\nruff check jarvis/admin/elevator.py && mypy jarvis/admin/elevator.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-14 — `NullElevator` is the default; a headless/no-auth box REFUSES with a clear English message; it never silently runs privileged ops.\n- HN-11 / AP-10 — the elevator passes a validated argv vector; never a shell string; never `shell=True`.\n- HN-12 — the helper still runs every op through the reused validation; the elevator does not bypass it.\n- HN-4 — every elevator (esp. Null) degrades/refuses, never raises.\n- HN-6 — no \"elevation works\" claim; Wave 4 owns the live sign-off.\nSOFT:\n- Mirror the existing DI seam when injecting into `AdminClient`.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The `Elevator` Protocol + the five elevators + factory selection.\n- The NullElevator refusal path (default, never raises).\n- Confirmation the elevator only spawns; the helper still validates every op (argv-only).\n- Hard-rules honored (HN-14/HN-11/HN-12/HN-4 quoted) + the code-review pass.\n- Path-taken + the polkit/osascript spawn approach.\n<\/done-signal>", "3.5": "ultrathink\n<role>\nYou supersede ADR-0001 with ADR-0020 documenting the cross-platform elevation architecture. Your outcome is an append-only ADR recording the AdminTransport + Elevator seams, the reused HMAC core, the UnixSocketTransport peer-cred model, the per-OS op vocabulary, and the NullElevator headless contract — with ADR-0001 marked superseded (not deleted) and numbering kept unique.\n<\/role>\n\n<outcome>\nDONE means:\n- `docs/adr/0020-cross-platform-elevation.md` exists and records the AD-12 architecture: the `AdminTransport` + `Elevator` seams, the reused HMAC/envelope/Pydantic-argv core (explicitly UNCHANGED), the `UnixSocketTransport` peer-cred model vs the SDDL-ACL pipe, the per-OS op vocabulary, and the `NullElevator` headless refusal. It references the regression guard (`tests/unit/admin/test_hmac_replay.py`) that protects the unchanged core, and states the new surface is transport + elevation + op-vocabulary only.\n- `docs/adr/0001-ipc-named-pipe-hmac.md` gains a \"Superseded by ADR-0020 (2026-xx-xx)\" header note (append-only; do not delete content).\n- `CLAUDE.md` Phase-5/admin pointers + AP-table reference the new seams where needed.\n- `tests/unit/docs/test_adr_uniqueness.py` green (0020 does not collide; note 0009/0010/0014 carry legacy duplicates).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` §3.5.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-12 + EK-6 (ADR-0001 superseded).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-12 (the security core is unchanged) and HN-17 (English-only artifacts).\n- Read `docs/adr/0001-ipc-named-pipe-hmac.md` + an existing well-formed ADR for the house format, and `tests/unit/docs/test_adr_uniqueness.py` for the uniqueness constraint.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 3.3 (Worktree G): `../sub-agents-outputs/crossplat-w3-opvocab` on `crossplat/w3-op-vocab`.\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nCreate: `docs/adr/0020-cross-platform-elevation.md`. Modify: `docs/adr/0001-ipc-named-pipe-hmac.md` (supersession header), `CLAUDE.md` (admin pointers). Docs only.\n<\/scope>\n\n<primary-path>\n1. Read 0001 + the house ADR format.\n2. Write 0020 covering the AD-12 architecture + the unchanged-core statement + the regression-guard reference.\n3. Add the supersession note to 0001 (append-only).\n4. Add the CLAUDE.md pointer; run the uniqueness test.\n<\/primary-path>\n\n<fallback-paths>\n- If `test_adr_uniqueness.py` flags a collision with a legacy duplicate, follow its convention (the test documents how duplicates are handled) — do not renumber existing ADRs. Failure condition: the test stays red.\n- You may structure ADR-0020 to match whichever house template the existing ADRs use, provided it states the unchanged-core fact (HN-12).\n<\/fallback-paths>\n\n<acceptance>\ntest -f docs/adr/0020-cross-platform-elevation.md && echo OK\ngrep -n \"Superseded by ADR-0020\" docs/adr/0001-ipc-named-pipe-hmac.md\npytest tests/unit/docs/test_adr_uniqueness.py -v\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-12 — ADR-0020 states the HMAC/argv core is UNCHANGED; the new surface is transport + elevation + op vocabulary only.\n- HN-17 — English-only; ADR history is append-only (0001 is not deleted).\nSOFT:\n- Match the house ADR template.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- ADR-0020 created + the architecture it records.\n- 0001 supersession note + the unchanged-core statement.\n- CLAUDE.md pointer added.\n- Uniqueness test green (HN-12/HN-17 quoted).\n- Path-taken.\n<\/done-signal>", "3.6": "ultrathink\n<role>\nYou wire the AdminTransport + Elevator seams into `AdminClient` and the helper boot, preserving the exact control flow and extending the refusal path to cover NullElevator. Your outcome is the admin client/helper running through `make_admin_transport()` + `make_elevator()` instead of hardcoded Windows pipe classes — with the \"zero silent drops\" refusal contract intact across OSes. This is the last sub-task in Worktree F; it lands after 3.2 + 3.4.\n<\/role>\n\n<outcome>\nDONE means:\n- `jarvis/admin/client.py`: `_ensure_pipe_client` (`:108`) becomes a transport-agnostic `_ensure_transport` using `make_admin_transport()`; `make_elevator()` is injected. `AdminClient.execute` (`:121`) keeps its exact control flow: destructive gate (`:135`) → cancel-token (`:142`) → ensure transport/secret (`:152`) → publish requested (`:167`) → roundtrip (`:172`) → completed/rejected event (`:174-183`). Only step 3 swaps `AdminPipeClient` for `make_admin_transport()`, and the `no_secret` refusal (`:154-164`) is EXTENDED to also cover `NullElevator` refusals with the same `AdminResponse(success=False, error_code=...)` shape.\n- `jarvis/admin/helper.py`: constructs `make_admin_transport()` (not hardcoded `AdminPipeServer`) and serves the reused `_decode_request`→executor→`_encode_response` handler.\n- `tests/unit/admin/ -v` green on all OS legs (client flow exercised with `fake_admin_transport.py` + `fake_elevator.py`). `import jarvis.admin.client, jarvis.admin.helper` clean on Linux/macOS. The Windows loopback regression `tests/integration/test_admin_ipc_loopback.py` stays green.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` §3.6.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-12 + AD-6 (\"zero silent drops\").\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-14 (NullElevator refusal default), HN-12 (don't weaken validation), HN-11 (no shell=True), HN-7 (no module-scope Windows import in client/helper).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-10 + AP-12.\n- Read `jarvis/admin/client.py:108-183` (the exact control flow to preserve) + `jarvis/admin/helper.py`.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. Same worktree as 3.1/3.2/3.4 (Worktree F): `crossplat/w3-transport` (after merging the 3.2 + 3.4 sub-branches into it). 3.6 wires them in last.\n3. `pip install -e \".[dev]\"`\n4. `requesting-code-review` before merge.\n<\/environment-setup>\n\n<scope>\nModify: `jarvis/admin/client.py` (transport-agnostic ensure + inject elevator + extend the refusal path), `jarvis/admin/helper.py` (bind via `make_admin_transport()`). Depends on 3.1 + 3.2 + 3.4.\n<\/scope>\n\n<primary-path>\n1. Replace `_ensure_pipe_client` with `_ensure_transport` using `make_admin_transport()`; inject `make_elevator()` into `AdminClient.__init__` (preserve the injectable seam).\n2. Keep `execute`'s control flow identical; extend the `no_secret` refusal to also surface NullElevator refusals as `AdminResponse(success=False, ...)`.\n3. Bind the helper via `make_admin_transport()`; serve the reused handler.\n4. Run the unit suite with the fakes + the Windows loopback regression; confirm import-clean on POSIX.\n<\/primary-path>\n\n<fallback-paths>\n- If injecting the elevator changes `AdminClient.__init__` arity and breaks callers, give it a defaulting `elevator: Elevator | None = None` that lazily builds `make_elevator()` — preserve backward-compatible construction. Failure condition: an existing caller breaks.\n- If the helper's transport bind needs the address from the elevator, thread it through as a validated arg, never a shell string (HN-11). Failure condition: the address rides a shell string.\n- You may invent the refusal-extension shape if the prescribed one fights the event flow, provided the AD-6 \"zero silent drops\" contract holds (every failure → typed AdminResponse, never a crash/silent drop).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/admin/ -v\npython -c \"import jarvis.admin.client, jarvis.admin.helper; print('admin import clean')\"\npytest tests/integration/test_admin_ipc_loopback.py -v\npython scripts/ci/check_import_clean.py\nruff check jarvis/admin/ && mypy jarvis/admin/client.py jarvis/admin/helper.py\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-14 — NullElevator refusal surfaces as a typed `AdminResponse(success=False, ...)`; never a silent drop.\n- HN-12 / HN-11 — the helper still validates every op through the reused chain; no shell=True.\n- HN-7 — client/helper import-clean on POSIX (Windows pipe code lazy inside transport).\n- AD-6 — the exact control flow is preserved; every failure is a typed response, never a crash.\nSOFT:\n- Keep `AdminClient.__init__` backward-compatible (defaulting elevator).\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The transport-agnostic ensure + injected elevator + the extended refusal path.\n- The helper bound via `make_admin_transport()`.\n- Admin import-clean on POSIX + the Windows loopback regression green.\n- Hard-rules honored (HN-14/HN-12/HN-7 quoted) + the code-review pass.\n- Path-taken + any backward-compat default used.\n<\/done-signal>", "check-w3": "ultrathink\n<role>\nYou are a read-only phase auditor for Wave 3 (the security-sensitive admin/elevation wave). Your outcome is a PASS/FAIL verdict on whether the AdminTransport + Elevator seams meet EK-2/EK-3 + the ADR half of EK-6 and are safe to merge — with explicit confirmation that the HMAC core is unchanged, peer-cred is enforced, NullElevator is the default, and end-to-end elevation is correctly NOT CI-verified (deferred to Wave 4). You verify; you do not modify.\n<\/role>\n\n<outcome>\nDONE means a verdict report stating, with command evidence, whether:\n- The HMAC/envelope core is unchanged (`test_hmac_replay.py` green; HN-12).\n- `make_admin_transport()` selects per OS; `ipc.py`/`client.py`/`helper.py` are import-clean on POSIX (no module-scope win32; HN-7).\n- `UnixSocketTransport` enforces the peer-cred check + 0600/0700 perms; the real AF_UNIX loopback round-trips (HN-13).\n- The Unix op vocabulary is fresh members of the same union with pattern-validated argv; a malicious payload is rejected; `shell=True` appears nowhere on the admin path (HN-11/HN-12/AP-7/AP-10).\n- `NullElevator` is the default refusal; `make_elevator()` selects per OS; no end-to-end elevation test runs in CI (HN-14/AD-3).\n- ADR-0020 supersedes ADR-0001; uniqueness holds (EK-6).\n- The CI matrix is green.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` (EK acceptance gate).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` EK-2/EK-3/EK-6 + AD-3/AD-12.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-11/HN-12/HN-13/HN-14/HN-7/HN-15.\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-7/AP-10/AP-12.\n<\/required-reading>\n\n<environment-setup>\n1. `git switch feat/crossplatform-port` (with Wave-3 branches merged, or check each branch).\n2. `pip install -e \".[dev]\"`\nRead-only. Run a `requesting-code-review`-style scan over the admin diff focused on the no-shell / validated-argv / peer-cred invariants.\n<\/environment-setup>\n\n<scope>\nModify: NOTHING. Grep the entire admin path for `shell=True` and for module-scope `win32*` imports; grep for any test that would trigger a real elevation prompt without `skip_ci`.\n<\/scope>\n\n<primary-path>\n1. Run each acceptance command; capture output.\n2. Grep `shell=True` across `jarvis/admin/`; confirm zero.\n3. Confirm CI green + that interactive-auth tests are skip_ci.\n4. Render the verdict, explicitly flagging end-to-end elevation as Wave-4-deferred (HN-6/AD-3).\n<\/primary-path>\n\n<fallback-paths>\n- If a sub-task branch is not yet merged, audit it on its branch and note integration state.\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/admin/ -v\npytest tests/integration/test_admin_unix_loopback.py tests/integration/test_admin_ipc_loopback.py -v\ngrep -rn \"shell=True\" jarvis/admin/ || echo \"no shell=True on the admin path\"\npython scripts/ci/check_import_clean.py\npython -c \"from jarvis.admin.elevator import make_elevator, Elevator; from jarvis.admin.transport import make_admin_transport, AdminTransport; assert isinstance(make_elevator(), Elevator) and isinstance(make_admin_transport(), AdminTransport)\"\npytest tests/unit/docs/test_adr_uniqueness.py -v\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-12 — confirm the HMAC core is unchanged before declaring mergeable.\n- HN-13 — confirm peer-cred is enforced.\n- HN-14 — confirm NullElevator is the default refusal.\n- HN-15 — do not declare mergeable unless the matrix is green.\nSOFT:\n- Be explicit that end-to-end elevation is Wave-4-deferred.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- HMAC core unchanged + transport seam + import-clean: PASS/FAIL.\n- Peer-cred + loopback + op-vocab validation + no-shell: PASS/FAIL.\n- NullElevator default + per-OS elevator selection: PASS/FAIL.\n- ADR-0020 supersession + uniqueness + CI green: PASS/FAIL.\n- Overall verdict + the Wave-4-deferred elevation note + path-taken; if FAIL, the exact blocker.\n<\/done-signal>", "merge-w3": "ultrathink\n<role>\nYou mechanically merge Wave 3's branches onto the integration branch, run the wave acceptance, and push only if green. Step-prescriptive — and extra-careful because this is the security-sensitive wave.\n<\/role>\n\n<outcome>\nDONE means: Worktree F's transport branch (with its 3.2 + 3.4 sub-branches already folded in via 3.6) and Worktree G's op-vocab+ADR branch merge `--no-ff` onto `feat/crossplatform-port`; the wave acceptance passes (including the HMAC-replay regression and the no-`shell=True` scan); the CI matrix is green; the branch is pushed. Any conflict or red CI → STOP and hand off to the matching recovery prompt. Never resolve a conflict by weakening a security invariant.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-3-admin.md` §Parallelism (F: 3.1→3.2→3.4→3.6; G: 3.3+3.5).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-11/HN-12/HN-13/HN-14/HN-15/HN-17.\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git switch feat/crossplatform-port`\n3. `git fetch origin && git pull --ff-only origin feat/crossplatform-port`\n4. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nBranches: `crossplat/w3-transport` (folds in `crossplat/w3-unix-socket` + `crossplat/w3-elevator` via 3.6), `crossplat/w3-op-vocab`. Merge commits + conflict resolutions only.\n<\/scope>\n\n<primary-path>\n1. Confirm the F sub-branches are folded into `crossplat/w3-transport` (3.6 done); if not, fold them there first.\n2. `git merge --no-ff crossplat/w3-op-vocab` → run acceptance.\n3. `git merge --no-ff crossplat/w3-transport` → run acceptance.\n4. Full wave acceptance incl. the HMAC-replay regression + the no-shell scan; if green, `git push origin feat/crossplatform-port`; watch CI.\n<\/primary-path>\n\n<fallback-paths>\n- Conflict (likely in `schema.py`/`executor.py` if both waves touched op tables, or `client.py`) → STOP, hand off to `recovery-merge-conflict`. NEVER resolve by removing peer-cred (HN-13), weakening HMAC (HN-12), or adding `shell=True` (HN-11).\n- Red CI after push → STOP, hand off to `recovery-red-ci`.\n- Never force-push (HN-17).\n<\/fallback-paths>\n\n<acceptance>\npytest tests/unit/admin/test_hmac_replay.py -v\npytest tests/unit/admin/ -q\npytest tests/integration/test_admin_unix_loopback.py tests/integration/test_admin_ipc_loopback.py -v\ngrep -rn \"shell=True\" jarvis/admin/ || echo \"no shell=True\"\npython scripts/ci/check_import_clean.py\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-12/HN-13/HN-11/HN-14 — never resolve a conflict by weakening the HMAC core, dropping peer-cred, adding shell=True, or removing the NullElevator default.\n- HN-15 — push only if green.\n- HN-17 — no force-push, no `--no-verify`.\nSOFT:\n- `--no-ff` per unit.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The merges + hashes (F sub-branches folded via 3.6).\n- Wave acceptance incl. HMAC-replay + no-shell scan.\n- CI matrix green status (run URL).\n- Hard-rules honored (HN-12/HN-13/HN-15 quoted).\n- Path-taken / any recovery handoff.\n<\/done-signal>", "4.1": "ultrathink\n<role>\nYou build the live sign-off harness: a checklist of exactly the GUI/permission behaviors CI cannot reach, plus a thin operator-aide probe runner. Your outcome is a per-(feature × OS) manual checklist and a `signoff_probe.py` that constructs each seam via its factory and brackets the manual step — it does NOT try to automate a permission prompt (impossible).\n<\/role>\n\n<outcome>\nDONE means:\n- `docs/plans/cross-platform-mac-linux/LIVE-SIGNOFF-CHECKLIST.md` exists with ONE row per (feature × {macOS, Linux}) for the four GUI/permission behaviors CI cannot reach: AX/AT-SPI tree capture, Orb transparency, global-hotkey capture, elevation prompt. Each row: the precise manual step, the expected observation, a PASS/FAIL/N/A field. It covers the degrade paths too (revoke permission → onboarding message + pixel fallback; Wayland hotkey no-op; tray fallback).\n- `scripts/crossplatform/signoff_probe.py` constructs each seam via its factory (`make_ui_tree_source`, `make_overlay_surface`, `make_hotkey_backend`, `make_admin_transport`/`make_elevator`), runs the live action on the matching OS, and prints what the operator should observe. `--list` prints the probe catalog on ANY OS without raising (acts only on the matching OS).\n- `python scripts/crossplatform/signoff_probe.py --list` runs on any OS without raising; `ruff check scripts/crossplatform/` clean.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` §4.1 (the exact per-feature manual steps).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-3 (CI + one-time live sign-off) + AD-13 (detect-and-degrade) + AD-8 (Wayland no-op / macOS Input-Monitoring).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-6 (\"Never claim a GUI/permission feature 'works' without a live sign-off. CI-green is NOT sufficient…\") and HN-4 (the probe never raises off-OS).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-9 (no real display in CI — the probe is an operator aide, not a CI test) + AP-2 (distinguish empty from forbidden).\n- The six factory entry points from Waves 1-3 (read their signatures).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git worktree add -b crossplat/w4-signoff ../sub-agents-outputs/crossplat-w4-signoff feat/crossplatform-port`\n3. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nCreate: `docs/plans/cross-platform-mac-linux/LIVE-SIGNOFF-CHECKLIST.md`, `scripts/crossplatform/signoff_probe.py` (+ `scripts/crossplatform/__init__.py` if needed). Worktree owns 4.1→4.2→4.3→4.4→4.6. No production-code edits.\n<\/scope>\n\n<primary-path>\n1. Write the checklist: one row per (feature × OS) for the four behaviors + their degrade paths, each with step/expected/verdict-field.\n2. Write `signoff_probe.py`: `--list` prints the catalog; each `--feature` flag constructs the matching factory + runs the live action + prints the expected observation; off-OS → print \"N/A on this platform\" and exit 0 (never raise).\n3. `sys.stdout.reconfigure(encoding='utf-8')` at the top.\n<\/primary-path>\n\n<fallback-paths>\n- If a factory needs runtime config the probe can't supply headless, have the probe construct it lazily and print the manual prerequisite instead of failing. Failure condition: `--list` raises on any OS.\n- You may structure the checklist table however reads clearly, provided it has one row per (feature × {macOS, Linux}) for the four behaviors (and the degrade paths).\n<\/fallback-paths>\n\n<acceptance>\ntest -f docs/plans/cross-platform-mac-linux/LIVE-SIGNOFF-CHECKLIST.md && echo OK\npython scripts/crossplatform/signoff_probe.py --list\nruff check scripts/crossplatform/\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-6 — the harness frames the live sign-off as the ONLY way to claim GUI/permission features work; CI-green is not enough.\n- HN-4 / AP-9 — `signoff_probe.py --list` never raises off-OS; it is an operator aide, never a CI test; no real display required to list.\nSOFT:\n- Cover the degrade paths (revoke → fallback; Wayland no-op; tray) as explicit rows.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The checklist row coverage (4 behaviors × 2 OSes + degrade paths).\n- `signoff_probe.py --list` runs on the maintainer box without raising (output).\n- The factories the probe constructs.\n- Hard-rules honored (HN-6/HN-4 quoted).\n- Path-taken.\n<\/done-signal>", "4.2": "ultrathink\n<role>\nYou execute the live sign-off on a real macOS box and a real Linux desktop and record an honest, dated, device-attributed per-feature verdict. Your outcome is `SIGNOFF-LOG.md` where every GUI/permission row carries either `live-verified <date> on <device>` or an explicit `unverified-on-real-desktop` with the reason — honesty over a green-washed claim.\n<\/role>\n\n<outcome>\nDONE means:\n- `docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md` exists with a verdict line for every (feature × OS) GUI/permission row from the 4.1 checklist.\n- Each verdict is either `<feature> (<OS>): live-verified <date> on <device>` or `<feature> (<OS>): unverified-on-real-desktop — <reason>`. No row is left blank.\n- Any behavior that could not be reached (no Wayland box, no rented Mac) is recorded honestly as `unverified-on-real-desktop` with the reason — this is the AD-3 honesty contract, not a failure; the plan still ships.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` §4.2.\n- `docs/plans/cross-platform-mac-linux/LIVE-SIGNOFF-CHECKLIST.md` (from 4.1 — the rows to fill).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-3 + EK-5.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-6 (no \"works\" claim without a live sign-off) and HN-17 (English-only).\n<\/required-reading>\n\n<environment-setup>\n1. Continue in the 4.1 worktree: `../sub-agents-outputs/crossplat-w4-signoff` on `crossplat/w4-signoff`.\n2. On EACH real device available: `pip install -e \".[dev,desktop]\"` (+ `.[desktop-macos]` on Mac; `apt install python3-pyatspi gir1.2-atspi-2.0` on Linux per AD-14), then run `scripts/crossplatform/signoff_probe.py` per the checklist.\n3. This sub-task is HUMAN-GATED — it requires the operator at a real macOS box and a real Linux desktop.\n<\/environment-setup>\n\n<scope>\nCreate: `docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md`. No production-code edits.\n<\/scope>\n\n<primary-path>\n1. On the macOS device: run the AX, Orb-transparency, hotkey-capture, and elevation-prompt probes per the checklist; record each verdict with date + device.\n2. On the Linux desktop: run the AT-SPI, Orb (compositor + tray fallback), hotkey (X11 vs Wayland), and elevation (pkexec/sudo/null) probes; record each verdict.\n3. For any unreachable behavior, record `unverified-on-real-desktop` + the reason.\n4. Cross-check that every 4.1 row has a verdict line.\n<\/primary-path>\n\n<fallback-paths>\n- If only one OS device is available, complete that OS and record the other's rows as `unverified-on-real-desktop — no <OS> device available` (AD-3 honesty). Failure condition: a row is left blank.\n- If a rented cloud Mac lacks a GUI session for the Orb, record the Orb row as unverified with that reason but still verify the AX-tree/elevation headless-reachable parts. Failure condition: claiming Orb transparency without a real display.\n<\/fallback-paths>\n\n<acceptance>\ntest -f docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md && echo OK\ngrep -c \"live-verified\\|unverified-on-real-desktop\" docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-6 — only a live sign-off (with date + device) earns a \"works\" claim; everything else is `unverified-on-real-desktop`.\n- HN-17 — English-only.\nSOFT:\n- An honest `unverified` is a pass for the AD-3 contract, not a failure.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Devices used (or which were unavailable).\n- The per-feature verdicts (live-verified vs unverified, with dates/devices).\n- Confirmation no row is blank (grep count ≥ row count).\n- Hard-rules honored (HN-6/HN-17 quoted).\n- Path-taken (which OSes were reachable).\n<\/done-signal>", "4.3": "ultrathink\n<role>\nYou write the honest per-feature labels into the README capability matrices to retire the \"Windows-only\" claim. Your outcome is the repo README + the plan README reflecting the real cross-platform status — Terminal/App-launch as CI-verified, the GUI/permission features carrying the 4.2 verdict badge, Admin noted as never-CI-E2E.\n<\/role>\n\n<outcome>\nDONE means:\n- `README.md` (the \"What runs where (platform capability matrix)\" table at `README.md:64-79`): the rows that said Windows-only (the \"—\" cells for Linux/macOS at `:75-77`) now carry honest badges — Terminal + app-launch-by-name → `✅ CI-verified` (EK-4, no sign-off needed); UI-element-click, Orb, global-hotkey → the 4.2 verdict (`✅ live-verified <date>` or `🟡 unverified-on-real-desktop`); Admin/elevation → the 4.2 verdict + \"never CI-E2E by design\".\n- The prose paragraph at `README.md:79` no longer claims those six are Windows-only — the new truth is \"cross-platform behind a seam, with per-feature verification badges\". A short \"Verification status\" subsection links to `SIGNOFF-LOG.md`.\n- `docs/plans/cross-platform-mac-linux/README.md` (the TL;DR six-feature table at `:41-48`): the \"CI-testable?\" column matches the SIGNOFF-LOG.\n- `grep \"Global-hotkey wake, Orb overlay\" README.md` no longer shows \"— | — | ✅\"; `grep \"CI-verified\\|live-verified\\|unverified-on-real-desktop\" README.md` matches in the capability-matrix section. `python -c \"import jarvis\"` still clean (docs-only; no `npm run build` needed).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` §4.3 (the exact README lines).\n- `docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md` (from 4.2 — the verdicts to transcribe).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` EK-4/EK-5/EK-6 + AD-3.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-6 (honest badges; CI-green ≠ GUI works) and HN-17 (English-only).\n- Read the current `README.md:64-79` + the plan `README.md:41-48` to see the exact present cells.\n<\/required-reading>\n\n<environment-setup>\n1. Continue in the 4.1/4.2 worktree: `../sub-agents-outputs/crossplat-w4-signoff` on `crossplat/w4-signoff`.\n2. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nModify: `README.md` (the capability matrix + the prose + a Verification-status subsection), `docs/plans/cross-platform-mac-linux/README.md` (the TL;DR \"CI-testable?\" column). Docs only.\n<\/scope>\n\n<primary-path>\n1. Transcribe the 4.2 verdicts into the README matrix rows (CI-verified for terminal/app-launch; the live verdict for AX/Orb/hotkey; never-CI-E2E for admin).\n2. Rewrite the Windows-only prose; add the Verification-status subsection linking SIGNOFF-LOG.md.\n3. Align the plan README's TL;DR \"CI-testable?\" column.\n4. Run the grep acceptance.\n<\/primary-path>\n\n<fallback-paths>\n- If the README line numbers have drifted, edit the rows by their content (find the capability table) and note the drift. Failure condition: the matrix can't be located.\n- If a feature's 4.2 verdict is `unverified-on-real-desktop`, the badge MUST be `🟡 unverified-on-real-desktop` — never upgrade it to a green claim (HN-6). Failure condition: a badge over-claims relative to SIGNOFF-LOG.\n<\/fallback-paths>\n\n<acceptance>\ngrep -n \"CI-verified\\|live-verified\\|unverified-on-real-desktop\" README.md\ngrep -n \"Global-hotkey wake, Orb overlay\" README.md\npython -c \"import jarvis; print('import clean')\"\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-6 — every GUI/permission badge matches its SIGNOFF-LOG verdict exactly; never over-claim.\n- HN-17 — English-only.\nSOFT:\n- Keep the Verification-status subsection short; link, don't duplicate, SIGNOFF-LOG.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The README matrix rows updated + the badges applied (matching 4.2).\n- The Windows-only prose retired + the Verification-status link.\n- The plan README TL;DR column aligned.\n- Hard-rules honored (HN-6/HN-17 quoted).\n- Path-taken + any line-number drift.\n<\/done-signal>", "4.4": "ultrathink\n<role>\nYou update CLAUDE.md's cross-platform framing and supersession pointers so a future agent does not \"fix\" the migration's intentional decisions. Your outcome is a CLAUDE.md paragraph recording the six features as cross-platform behind the `jarvis/platform/` seam, the per-feature verification status, ADR-0020, and the AD-14 dependency reality (especially: do NOT pip-install pyatspi) — while keeping the €5-VPS base-install doctrine intact.\n<\/role>\n\n<outcome>\nDONE means:\n- `CLAUDE.md`: a paragraph (or small table) records that Terminal/Hotkey/Orb/UI-element-click/Admin are now cross-platform behind the `jarvis/platform/` seam, with per-feature verification status pointing at `SIGNOFF-LOG.md`, referencing ADR-0020 (supersedes ADR-0001) and the `jarvis/platform/` capability module (AD-5).\n- The dependency-grouping reality is recorded (AD-14): `pynput`+`ptyprocess` in `[desktop]`, `pyobjc-*` in `[desktop-macos]`, `pyatspi` as a distro prerequisite — so a future agent does not \"fix\" the missing pyatspi pip dep.\n- The doctrine is intact: the base €5-VPS install still ships none of these desktop extras; they remain opt-in and degrade gracefully. The \"base install boots on a headless `python:3.11-slim`\" claim is unchanged and still true (no new base dependency added).\n- `grep \"ADR-0020\\|jarvis/platform\\|SIGNOFF-LOG\" CLAUDE.md` matches; `grep \"pyatspi\" CLAUDE.md` matches.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` §4.4.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-5/AD-14 + EK-6.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-8 (extras only), HN-9 (\"Never put pyatspi in a pip extra\"), HN-6 (verification badges), HN-17 (English-only).\n- Read `CLAUDE.md` \"Cloud-First Philosophy\" + \"Windows specifics\" + the AP-table/pointers sections.\n<\/required-reading>\n\n<environment-setup>\n1. Continue in the Wave-4 worktree: `../sub-agents-outputs/crossplat-w4-signoff` on `crossplat/w4-signoff`.\n2. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nModify: `CLAUDE.md` (the cross-platform framing + the dependency-reality note + the supersession pointer). Docs only.\n<\/scope>\n\n<primary-path>\n1. Add the cross-platform-behind-the-seam paragraph + the per-feature verification pointer to SIGNOFF-LOG.md + the ADR-0020/`jarvis/platform/` references.\n2. Add the AD-14 dependency-reality note, explicitly: do NOT pip-install pyatspi.\n3. Confirm the doctrine's base-install claim is unchanged.\n4. Run the grep acceptance.\n<\/primary-path>\n\n<fallback-paths>\n- If CLAUDE.md's section structure has changed, place the paragraph in the most relevant existing section (Windows specifics / Optional power-user extras) and note the placement. Failure condition: the new framing can't be located by a future agent.\n- You may phrase the framing however reads clearly, provided the pyatspi-is-apt-only guidance is explicit (HN-9) and the base-install doctrine is untouched.\n<\/fallback-paths>\n\n<acceptance>\ngrep -n \"ADR-0020\\|jarvis/platform\\|SIGNOFF-LOG\" CLAUDE.md\ngrep -n \"pyatspi\" CLAUDE.md\npython -c \"import jarvis; print('import clean')\"\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-9 — the \"do not pip-install pyatspi\" guidance is recorded (defends AD-14).\n- HN-8 — the extras-only / base-install-clean doctrine is reaffirmed, not weakened.\n- HN-17 — English-only.\nSOFT:\n- Keep the doctrine's headless-VPS claim verbatim-true.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The cross-platform framing paragraph + the SIGNOFF-LOG / ADR-0020 / jarvis-platform references.\n- The AD-14 dependency-reality note (incl. pyatspi-is-apt-only).\n- Confirmation the base-install doctrine is unchanged.\n- Hard-rules honored (HN-9/HN-8/HN-17 quoted).\n- Path-taken.\n<\/done-signal>", "4.5": "ultrathink\n<role>\nYou run the JARVIS-20 cross-platform benchmark (authored elsewhere) on each available OS and record per-(scenario × OS) scores. Your outcome is `JARVIS-20-RESULTS.md` distinguishing `pass` / `degraded-as-designed` (a pass for the AD-6 contract) / `fail` (a crash or silent drop — a release blocker per AD-OE6). Zero `fail` rows are allowed at close-out.\n<\/role>\n\n<outcome>\nDONE means:\n- `docs/plans/cross-platform-mac-linux/JARVIS-20-RESULTS.md` exists with a row per (scenario × available OS), each scored `pass` / `degraded-as-designed` (with the reason, e.g. Wayland hotkey no-op, headless tray fallback) / `fail` (a crash or silent drop).\n- Zero `fail` rows that represent a crash or silent drop (a `fail` is a release blocker per AD-OE6); every non-pass is explicitly `degraded-as-designed` with the reason.\n- The results file references `JARVIS-20-CROSSPLATFORM.md` as its scenario source and cross-links the SIGNOFF-LOG.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` §4.5.\n- `docs/plans/cross-platform-mac-linux/JARVIS-20-CROSSPLATFORM.md` (the 20 scenarios — authored by a separate agent; you EXECUTE, not author. If absent, coordinate — do not invent scenarios).\n- `docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md` (cross-link target).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` AD-6 (graceful degrade) + AD-OE6 (zero silent drops — a `fail` is a blocker).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-4 (degrade, never raise — a crash is a fail) and HN-5 (never silently empty — a silent drop is a fail).\n<\/required-reading>\n\n<environment-setup>\n1. Continue in / share the Wave-4 worktree on `crossplat/w4-signoff` (4.5 is the independent side-track sharing the same hardware session as 4.2).\n2. On each available device: `pip install -e \".[dev,desktop]\"` (+ the per-OS extras/prereqs as in 4.2).\n3. Human-gated: needs the same real macOS + Linux devices as 4.2.\n<\/environment-setup>\n\n<scope>\nCreate: `docs/plans/cross-platform-mac-linux/JARVIS-20-RESULTS.md`. No production-code edits.\n<\/scope>\n\n<primary-path>\n1. Read the 20 scenarios from `JARVIS-20-CROSSPLATFORM.md`.\n2. Execute each on the maintainer Windows box (baseline), the macOS device, and the Linux desktop; score each (scenario × OS).\n3. Classify every non-pass as `degraded-as-designed` (with reason) or `fail` (crash/silent drop). Any `fail` is a release blocker — flag it loudly for a fix before close-out.\n4. Cross-link the SIGNOFF-LOG; reference the scenario source.\n<\/primary-path>\n\n<fallback-paths>\n- If a device is unavailable, run the reachable OSes and mark the missing OS's rows as not-run with the reason (mirror 4.2's honesty). Failure condition: a row is fabricated as `pass` without running it.\n- If `JARVIS-20-CROSSPLATFORM.md` is not yet authored, STOP and report the dependency — do NOT invent the scenarios (this wave executes, does not author them).\n- If a scenario surfaces a `fail`, record it and escalate; do not relabel a crash as `degraded-as-designed` to green the table (HN-4/HN-5/AD-OE6).\n<\/fallback-paths>\n\n<acceptance>\ntest -f docs/plans/cross-platform-mac-linux/JARVIS-20-RESULTS.md && echo OK\ngrep -c \"degraded-as-designed\\|pass\\|fail\" docs/plans/cross-platform-mac-linux/JARVIS-20-RESULTS.md\ngrep -n \"JARVIS-20-CROSSPLATFORM.md\" docs/plans/cross-platform-mac-linux/JARVIS-20-RESULTS.md\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- AD-OE6 / HN-4 / HN-5 — a `fail` (crash or silent drop) is a release blocker; never relabel it as degraded-as-designed.\n- HN-6 — GUI/permission scenario results align with the SIGNOFF-LOG verdicts.\nSOFT:\n- `degraded-as-designed` (with a reason) is a pass for the AD-6 contract.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The scenarios run + the OSes covered.\n- The score distribution (pass / degraded-as-designed / fail).\n- Any `fail` rows flagged as blockers (or \"zero fails\").\n- Hard-rules honored (AD-OE6/HN-4/HN-5 quoted).\n- Path-taken + the scenario-source dependency status.\n<\/done-signal>", "4.6": "ultrathink\n<role>\nYou close out the plan by confirming the full EK-1..EK-6 Definition of Done with an evidence link attached to each. Your outcome is the plan README's DoD section marked complete, each EK pointing at its proving artifact, and a final re-confirmation that CI is still green and the import gate still holds after all six ports merged.\n<\/role>\n\n<outcome>\nDONE means:\n- `docs/plans/cross-platform-mac-linux/README.md`'s Definition-of-Done section marks EK-1..EK-6 complete, each with an evidence pointer: EK-1 → the green `ci.yml` run; EK-2 → the six factories (`make_pty_backend`, app-launch resolver, `make_hotkey_backend`, `make_ui_tree_source`, `make_overlay_surface`, `make_admin_transport`/`make_elevator`); EK-3 → the `tests/fakes/` fakes list; EK-4 → the CI terminal real-PTY test; EK-5 → `SIGNOFF-LOG.md`; EK-6 → ADR-0020 + the README/CLAUDE.md diffs + the import-cleanliness gate.\n- `pytest -m \"not skip_ci\" -q` green on all three CI legs (re-confirm EK-1 after the doc-only Wave-4 changes); `python scripts/ci/check_import_clean.py` exits 0 (EK-6 holds after all six ports merged).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` §4.6.\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` EK-1..EK-6 (the full DoD).\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-15 (CI green) and HN-7 (import-cleanliness holds).\n- The artifacts produced across all waves (the six factories, the fakes, SIGNOFF-LOG, ADR-0020).\n<\/required-reading>\n\n<environment-setup>\n1. Continue in the Wave-4 worktree on `crossplat/w4-signoff` (after 4.2/4.3/4.4/4.5).\n2. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nModify: `docs/plans/cross-platform-mac-linux/README.md` (the DoD checklist + evidence links). Docs only.\n<\/scope>\n\n<primary-path>\n1. Walk EK-1..EK-6; attach the proving artifact/command to each.\n2. Re-run the import gate + the non-skip_ci suite to re-confirm EK-1/EK-6 after the doc changes.\n3. Mark the DoD section complete with the evidence pointers.\n<\/primary-path>\n\n<fallback-paths>\n- If any EK is not fully met (e.g. a feature is `unverified-on-real-desktop` per 4.2), mark it with the honest status + the reason rather than checking it falsely (HN-6/AD-3). Failure condition: an EK is checked without evidence.\n- If the non-skip_ci suite drops below the min-passed floor after merges, STOP and hand off to `recovery-red-ci` — do not mark EK-1 complete. \n<\/fallback-paths>\n\n<acceptance>\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\npython scripts/ci/check_import_clean.py\ngrep -n \"EK-1\\|EK-2\\|EK-3\\|EK-4\\|EK-5\\|EK-6\" docs/plans/cross-platform-mac-linux/README.md\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — EK-1 is only complete if the matrix is genuinely green.\n- HN-7 — EK-6's import gate must still pass after all six ports merged.\n- HN-6 — an EK tied to a GUI/permission feature reflects its honest SIGNOFF-LOG status.\nSOFT:\n- Each EK gets a concrete evidence pointer, not a bare check.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- EK-1..EK-6 status + the evidence pointer for each.\n- The re-confirmed CI + import-gate results.\n- Any EK left honestly partial (with the reason).\n- Hard-rules honored (HN-15/HN-7/HN-6 quoted).\n- Path-taken.\n<\/done-signal>", "check-w4": "ultrathink\n<role>\nYou are a read-only phase auditor for Wave 4 (the closing wave). Your outcome is a PASS/FAIL verdict on whether the live sign-off, the honest doc labels, the JARVIS-20 results, and the EK close-out are complete and truthful — and whether the plan is genuinely ready to declare done. You verify; you do not modify.\n<\/role>\n\n<outcome>\nDONE means a verdict report stating, with command evidence, whether:\n- `LIVE-SIGNOFF-CHECKLIST.md` + `SIGNOFF-LOG.md` exist; every (feature × OS) GUI/permission row has a `live-verified`/`unverified-on-real-desktop` verdict (EK-5).\n- The README capability matrix + the plan TL;DR + CLAUDE.md carry honest badges matching the SIGNOFF-LOG; no badge over-claims (HN-6).\n- `JARVIS-20-RESULTS.md` exists with zero crash/silent-drop `fail` rows (AD-OE6).\n- The DoD section marks EK-1..EK-6 with evidence; CI is green; the import gate holds.\n- pyatspi is still absent from pyproject; the base install is still clean.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` (EK acceptance gate).\n- `docs/plans/cross-platform-mac-linux/_FROZEN-DECISIONS.md` EK-1..EK-6 + AD-3/AD-OE6.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-6/HN-9/HN-15/HN-7.\n<\/required-reading>\n\n<environment-setup>\n1. `git switch feat/crossplatform-port` (with the Wave-4 branch merged, or check it).\n2. `pip install -e \".[dev]\"`\nRead-only.\n<\/environment-setup>\n\n<scope>\nModify: NOTHING. Cross-check each README/CLAUDE.md badge against the SIGNOFF-LOG verdict; grep for any over-claim.\n<\/scope>\n\n<primary-path>\n1. Run each acceptance command; capture output.\n2. Cross-check badges vs SIGNOFF-LOG (no over-claim).\n3. Confirm zero crash/silent-drop fails in JARVIS-20-RESULTS.\n4. Render the verdict.\n<\/primary-path>\n\n<fallback-paths>\n- If a device was unavailable and a feature is honestly `unverified-on-real-desktop`, that is a PASS for the AD-3 contract — not a FAIL — as long as the badge matches. Failure condition: a badge claims live-verified without a matching SIGNOFF-LOG line.\n<\/fallback-paths>\n\n<acceptance>\ntest -f docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md && test -f docs/plans/cross-platform-mac-linux/JARVIS-20-RESULTS.md && echo \"artifacts ok\"\ngrep -n \"CI-verified\\|live-verified\\|unverified-on-real-desktop\" README.md\ngrep -n \"pyatspi\" CLAUDE.md\npython scripts/ci/check_import_clean.py\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); ext=d['project']['optional-dependencies']; assert all('pyatspi' not in x for g in ext.values() for x in g); print('no pyatspi in pyproject')\"\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-6 — no badge over-claims; each matches its SIGNOFF-LOG verdict.\n- HN-15 — CI green before declaring done.\n- HN-7 / HN-9 — import gate holds; pyatspi absent from pyproject.\nSOFT:\n- An honest `unverified` is a PASS for AD-3.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- Sign-off artifacts + every GUI/permission row has a verdict (EK-5): PASS/FAIL.\n- Badges match SIGNOFF-LOG (no over-claim): PASS/FAIL.\n- JARVIS-20 zero crash/silent-drop fails: PASS/FAIL.\n- DoD complete + CI green + import gate + pyatspi-absent: PASS/FAIL.\n- Overall verdict + path-taken; if FAIL, the exact blocker.\n<\/done-signal>", "merge-w4": "ultrathink\n<role>\nYou mechanically merge Wave 4's branch onto the integration branch, run the (mostly doc) wave acceptance, push only if green, and then open the final PR from the integration branch to main. Step-prescriptive.\n<\/role>\n\n<outcome>\nDONE means: `crossplat/w4-signoff` merges `--no-ff` onto `feat/crossplatform-port`; the wave acceptance passes (CI still green after the doc-only changes; import gate holds); the branch is pushed; and a PR from `feat/crossplatform-port` → `main` is opened with the EK-1..EK-6 evidence in the body. Any conflict or red CI → STOP and hand off to the matching recovery prompt.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/WELLE-4-hardening.md` §Parallelism + EK gate.\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-15, HN-16, HN-17.\n- `CLAUDE.md` (main branch protection: PR-required, linear history, required `sign` check).\n<\/required-reading>\n\n<environment-setup>\n1. `pwsh scripts/preflight.ps1`\n2. `git switch feat/crossplatform-port`\n3. `git fetch origin && git pull --ff-only origin feat/crossplatform-port`\n4. `pip install -e \".[dev]\"`\n<\/environment-setup>\n\n<scope>\nBranch: `crossplat/w4-signoff`. Merge commit + conflict resolutions only; then open the PR to main.\n<\/scope>\n\n<primary-path>\n1. `git merge --no-ff crossplat/w4-signoff` → run acceptance.\n2. If green, `git push origin feat/crossplatform-port`; watch CI.\n3. Open the PR: `gh pr create --base main --head feat/crossplatform-port` with the EK-1..EK-6 evidence in the body and the per-feature SIGNOFF-LOG badges summarized. End the PR body with the required attribution line.\n<\/primary-path>\n\n<fallback-paths>\n- Conflict → STOP, hand off to `recovery-merge-conflict`.\n- Red CI after push → STOP, hand off to `recovery-red-ci`.\n- If the required `sign` check only runs on tags (per main branch protection notes), surface that to the operator for the owner-bypass decision — do not force the merge yourself (HN-17).\n<\/fallback-paths>\n\n<acceptance>\npython scripts/ci/check_import_clean.py\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\nruff check jarvis/ && ruff format --check jarvis/\ngit log --oneline --merges -1\ngh run list --workflow=ci.yml --branch feat/crossplatform-port --limit 1\ngh pr view --json url,state 2>/dev/null || echo \"open the PR\"\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-15 — push + PR only if the matrix is green.\n- HN-17 — English-only PR body; never force-push; never `--no-verify`; never bypass signing yourself (surface to the operator).\nSOFT:\n- Summarize the honest per-feature badges in the PR body.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The merge hash + the wave acceptance result.\n- CI matrix green status (run URL).\n- The PR URL + the EK evidence summarized in its body.\n- Hard-rules honored (HN-15/HN-17 quoted).\n- Path-taken / any owner-bypass surfaced to the operator.\n<\/done-signal>", "recovery-rate-limited": "ultrathink\n<role>\nYou recover a coding-agent session that stalled or failed due to API/tool rate-limiting (429s, OAuth-concurrency saturation, throttled subprocess workers). Your outcome is the in-progress sub-task brought back to a clean, resumable state without losing committed work — by reducing concurrency and resuming, not by abandoning the branch.\n<\/role>\n\n<outcome>\nDONE means: the cause of the rate-limit is identified (which provider/tool, concurrency vs quota); in-flight work is preserved (committed on the sub-task branch); concurrency is reduced to a safe level; and either the sub-task resumes cleanly OR a clear \"resume here\" handoff is recorded. No work is lost; no branch is force-reset.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-17 (never force-push; never bypass hooks).\n- The sub-task prompt that was running (its `<done-signal>` defines what \"resume here\" means).\n- MEMORY: the mission mass-failure root cause was OAuth-concurrency saturation (fix = First-Output-Gate + max_concurrent 1) — relevant if the rate-limit is on the worker/sub-agent path.\n<\/required-reading>\n\n<environment-setup>\n1. `git status` (in the affected worktree) — confirm whether uncommitted work exists.\n2. `git stash list` and `git log --oneline -5` — locate the last good commit.\n<\/environment-setup>\n\n<scope>\nModify: only what is needed to reduce concurrency (e.g. a worker `max_concurrent` setting) + commit in-flight work. Do NOT edit unrelated files.\n<\/scope>\n\n<primary-path>\n1. Diagnose: read the error — identify the provider/tool and whether it is a quota cap or concurrency saturation.\n2. Preserve: `git add -A && git commit -m \"wip: <sub-task> checkpoint before rate-limit recovery\"` on the sub-task branch (NEVER on a shared branch directly; NEVER `git add .` blindly — review the diff first).\n3. Reduce concurrency: if it is OAuth-concurrency (sub-agent/worker path), set the relevant `max_concurrent` to 1; if it is a per-provider quota, switch provider via ENV (e.g. `brain.primary`→an alternate) per the project's drift-safe config path (ENV override, not a raw toml edit).\n4. Wait for the limit window to clear (do not hammer-retry in a tight loop), then re-run the sub-task's acceptance commands to confirm the resumable state.\n5. Record a \"resume here\" note (which acceptance commands still need to pass).\n<\/primary-path>\n\n<fallback-paths>\n- If the rate-limit is global and persistent, record the checkpoint commit + a handoff and STOP — let the operator decide when to resume. Failure condition: retries keep 429-ing.\n- If switching provider, use the ENV-override path (drift-guard-safe), never a raw `jarvis.toml` edit that a parallel session could roll back.\n- Never delete `jarvis.lock` manually (MEMORY: that breaks the lock-holder sweep contract).\n<\/fallback-paths>\n\n<acceptance>\ngit status --porcelain\ngit log --oneline -3\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-17 — no force-push; no `--no-verify`; commit in-flight work rather than discarding it.\n- Never `git add .` blindly (review the diff); never manually delete `jarvis.lock`.\nSOFT:\n- Prefer ENV-override provider switch over a raw toml edit.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The diagnosed cause (provider/tool, quota vs concurrency).\n- The checkpoint commit hash (in-flight work preserved).\n- The concurrency/provider mitigation applied.\n- Hard-rules honored (HN-17 quoted).\n- Resume-here: which acceptance commands still need to pass.\n<\/done-signal>", "recovery-red-ci": "ultrathink\n<role>\nYou recover a red CI matrix run. Your outcome is a correctly-diagnosed failure (which OS leg, which step, real failure vs mass-skip vs flake) and a minimal fix that turns the matrix genuinely green — never by lowering the min-passed floor, widening skip_ci to dodge a real failure, or weakening a regression guard.\n<\/role>\n\n<outcome>\nDONE means: the red leg + failing step is identified from the run logs; the failure is classified (real test failure / import-cleanliness violation / min-passed-floor shortfall / mass-skip / flake); the minimal honest fix is applied on the appropriate branch; and the matrix is re-run green on all three legs. No floor lowered, no skip_ci widened to hide a real failure, no guard removed.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-15 (matrix green before merge), HN-16 (\"Never let a mass-skip pass as green. The minimum-passed-count floor must hold\"), HN-7 (import cleanliness), HN-2 (don't weaken a regression guard).\n- `docs/plans/cross-platform-mac-linux/ANTI-PATTERNS.md` AP-6 (green-by-mass-skip) + AP-13 (module-scope import goes red on the other OS).\n<\/required-reading>\n\n<environment-setup>\n1. `gh run list --workflow=ci.yml --branch <branch> --limit 3`\n2. `gh run view <run-id> --log-failed` — read the failing step on each red leg.\n3. `git switch <the branch whose PR is red>`; `pip install -e \".[dev]\"`.\n<\/environment-setup>\n\n<scope>\nModify: only the file(s) causing the red. Do NOT touch `scripts/ci/assert_min_passed.py`'s FLOOR (except to bump it FORWARD if the green count legitimately rose) and do NOT add `skip_ci` to dodge a real failure.\n<\/scope>\n\n<primary-path>\n1. Classify the failure from the logs:\n - **Import-cleanliness red** (Linux/macOS `import jarvis` fails / the AST gate flags a module-scope Windows import) → move the offending import inside the function/branch, lazy + guarded (HN-7/AP-13). Reproduce locally: `python scripts/ci/check_import_clean.py`.\n - **Min-passed-floor shortfall** (passed < FLOOR with zero failures) → this is a MASS-SKIP, not a pass: find the collection error / swallowed import that dropped the count; fix the root cause. NEVER lower the floor (HN-16/AP-6).\n - **Real test failure** → fix the code or the test honestly; do not reverse-patch the test to pass (HN-2).\n - **Flake** (passes locally, intermittent on the runner) → confirm it is truly non-deterministic (re-run); if a GUI/display test sneaked into CI, mark it `skip_ci` and move it to the live sign-off (AP-9) — but ONLY a genuinely-headless-impossible test, never a real failure.\n2. Apply the minimal fix on the right branch.\n3. Re-run the relevant acceptance locally, push, and watch the matrix.\n<\/primary-path>\n\n<fallback-paths>\n- If the failure is on a single OS leg only (e.g. macos-latest), reproduce the platform-specific cause via the capability/probe path before editing; do not \"fix\" by branching inline on sys.platform (HN-3). Failure condition: the fix passes one leg but reds another.\n- If the green count legitimately rose, bump FLOOR FORWARD (never down) and note it. Failure condition: lowering FLOOR to pass.\n- If the root cause is genuinely unclear after log review, add targeted logging and re-run rather than guessing a fix (systematic-debugging).\n<\/fallback-paths>\n\n<acceptance>\npython scripts/ci/check_import_clean.py\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\nruff check jarvis/ && mypy jarvis/platform/\ngh run list --workflow=ci.yml --branch <branch> --limit 1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-16 / AP-6 — never lower the min-passed floor; a shortfall is a mass-skip to fix at the root.\n- HN-2 — never reverse-patch a test or remove a regression guard to green a run.\n- HN-7 / AP-13 — fix an import-cleanliness red by making the import lazy, not by suppressing the gate.\n- HN-15 — the matrix must be GENUINELY green on all three legs.\nSOFT:\n- Bump FLOOR forward only if the green count truly rose.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The red leg + failing step + the classification.\n- The root cause + the minimal fix applied (on which branch).\n- Re-run result (all three legs green).\n- Hard-rules honored (HN-16/HN-2/HN-7/HN-15 quoted).\n- Path-taken.\n<\/done-signal>", "recovery-merge-conflict": "ultrathink\n<role>\nYou resolve a merge conflict that arose while merging a cross-platform sub-task branch onto the integration branch. Your outcome is a correct, semantically-sound resolution that preserves BOTH the Windows path (untouched, AD-7) and the new OS sibling — never a resolution that drops a regression guard, re-adds a forbidden dependency, or weakens a security invariant.\n<\/role>\n\n<outcome>\nDONE means: the conflicted files are identified; each conflict is resolved by understanding BOTH sides (not blindly taking one); the merge completes; the wave's acceptance passes; and no INVIOLABLE rule was broken in the resolution (no pyatspi re-added, no peer-cred/HMAC weakened, no regression guard deleted, no Windows impl rewritten).\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` — inline-quote HN-1 (Windows impl untouched), HN-2 (don't delete a regression guard), HN-9 (no pyatspi in pyproject), HN-12/HN-13 (don't weaken HMAC/peer-cred), HN-17 (no force-push).\n- The `_FROZEN-DECISIONS.md` hot-file ownership table (README §Hot-file ownership) — which wave owns which file; a file in two waves is a coordination point.\n- The two sub-task prompts whose branches are colliding.\n<\/required-reading>\n\n<environment-setup>\n1. `git status` — list the conflicted paths (`Unmerged paths`).\n2. `git diff --name-only --diff-filter=U` — the exact conflict set.\n3. For each conflicted file: `git log --oneline -3 <file>` on both branches to understand each side's intent.\n<\/environment-setup>\n\n<scope>\nModify: only the conflicted files, resolving the markers. Do NOT abort-and-restart unless instructed; do NOT take a wholesale `--theirs`/`--ours` without understanding the hunks.\n<\/scope>\n\n<primary-path>\n1. For the COMMON conflict shapes in this migration:\n - **`pyproject.toml` extras** (Wave-1 `[desktop]` vs Wave-2 `[desktop-macos]`): keep BOTH groups; ensure `pynput`/`ptyprocess` in `[desktop]`, `pyobjc-*` in `[desktop-macos]`, and NO pyatspi anywhere (HN-9). Verify with tomllib.\n - **`jarvis/admin/schema.py` / `executor.py`** (Wave-3 op tables): keep the full superset union; the Windows ops are not narrowed; the Unix ops keep pattern-validated argv (HN-11/HN-12).\n - **A consumer call-site** (e.g. a vision tool touched by Wave 2's factory rewire): keep the factory call (`make_*`), not the old literal; preserve the existing DI seam.\n - **A conftest / test file**: keep BOTH the live-orb path AND the skip_ci on the abandoned framework; never delete a regression guard (HN-2).\n2. Resolve each hunk by intent (both sides preserved where they are additive siblings).\n3. `git add <resolved files>`; complete the merge (`git commit` with the default merge message, no `--no-verify`).\n4. Reinstall extras if pyproject changed; run the wave acceptance.\n<\/primary-path>\n\n<fallback-paths>\n- If a conflict is genuinely a true overlap (both waves edited the SAME logical line), sequence it: pick the semantically-correct combined result and note the coordination point for the hot-file table. Failure condition: the resolution silently drops one wave's change.\n- If you cannot determine intent from the diffs, read the two sub-task prompts' `<scope>`/`<outcome>` to reconstruct it — do not guess.\n- If the merge is too tangled to resolve safely, `git merge --abort` and hand back to the operator with the conflict analysis — never force a bad resolution.\n<\/fallback-paths>\n\n<acceptance>\ngit diff --name-only --diff-filter=U\npython -c \"import tomllib; d=tomllib.load(open('pyproject.toml','rb')); ext=d['project'].get('optional-dependencies',{}); assert all('pyatspi' not in x for g in ext.values() for x in g)\"\npython scripts/ci/check_import_clean.py\npytest -m \"not skip_ci\" --junitxml=report.xml -q; python scripts/ci/assert_min_passed.py report.xml\ngit log --oneline --merges -1\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-1 — never resolve by rewriting the Windows impl.\n- HN-2 — never resolve by deleting a regression guard.\n- HN-9 — never re-add pyatspi to pyproject during resolution.\n- HN-12/HN-13 — never weaken HMAC/peer-cred during resolution.\n- HN-17 — no force-push; complete the merge with hooks intact.\nSOFT:\n- Prefer additive both-sides resolution; sequence true overlaps.\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The conflicted files + each side's intent.\n- How each conflict was resolved (both-sides-preserved vs sequenced).\n- The wave acceptance result after resolution.\n- Hard-rules honored (HN-1/HN-2/HN-9/HN-12/HN-17 quoted).\n- Path-taken / any conflict handed back to the operator.\n<\/done-signal>", "recovery-worktree-stuck": "ultrathink\n<role>\nYou recover a stuck git-worktree situation (a worktree that won't create/remove, a stale editable-install pin to a deleted clone, a \"works in tests but Jarvis behavior unchanged\" restore-trap, or a worktree whose live `import jarvis` points at the wrong path). Your outcome is a clean, correctly-pinned worktree where `import jarvis` resolves to THIS clone and preflight passes — the four-layer restore-trap defused.\n<\/role>\n\n<outcome>\nDONE means: the stuck condition is diagnosed (which of the four restore-trap layers: worktree / frontend build / RAM / editable-install pin); the worktree is either repaired or cleanly recreated without losing committed work; `pwsh scripts/preflight.ps1` exits 0; and `python -c \"import jarvis; print(jarvis.__file__)\"` points at the current worktree clone.\n<\/outcome>\n\n<required-reading>\n- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-17 (no force-push; preserve work) + HN-15 (the matrix is the gate).\n- `CLAUDE.md` — the four-layer restore trap (BUG-006 → -014 → -015): worktree + frontend build + RAM + editable-install pin to a deleted clone. Defense: `pwsh scripts/preflight.ps1` + `python -c \"import jarvis; print(jarvis.__file__)\"`.\n- MEMORY: never manually delete `jarvis.lock`; `scripts/preflight.ps1` exit non-zero → fix before coding.\n<\/required-reading>\n\n<environment-setup>\n1. `git worktree list` — see all worktrees + their branches + locked state.\n2. `python -c \"import jarvis; print(jarvis.__file__)\"` — does it point at THIS worktree or a deleted/other clone?\n3. `git status` in the affected worktree — confirm whether uncommitted work exists.\n<\/environment-setup>\n\n<scope>\nModify: nothing in `jarvis/` for the recovery itself — this is environment repair (worktree + editable-install pin). Commit any in-flight work first.\n<\/scope>\n\n<primary-path>\n1. Preserve first: if uncommitted work exists, `git add -A && git commit -m \"wip: checkpoint before worktree recovery\"` (review the diff; never `git add .` blindly).\n2. Diagnose the layer:\n - **Editable-install pin to a deleted/other clone** (the most common): `import jarvis` resolves to a path that is NOT this worktree → re-pin with `pip install -e . --no-deps` from THIS worktree root. Re-check the import path.\n - **Stale worktree registration** (`git worktree add` fails \"already exists\" / a worktree dir was deleted manually): `git worktree prune`, then re-add: `git worktree add -b <branch> ../sub-agents-outputs/<dir> feat/crossplatform-port`.\n - **Locked worktree**: `git worktree unlock <path>` if you own it; never force-remove one another session is using.\n - **Frontend-build / RAM layer** (UI behavior unchanged after edit): rebuild (`npm run build` in `jarvis/ui/web/frontend/`) + note an app restart is needed (pywebview holds the old bundle in RAM) — relevant only if the sub-task touched the frontend.\n3. Run `pwsh scripts/preflight.ps1`; if non-zero, fix the reported issue before declaring done.\n4. Confirm `import jarvis` points at this worktree.\n<\/primary-path>\n\n<fallback-paths>\n- If a worktree cannot be removed because another live session holds it, leave it and create a fresh one with a distinct name rather than fighting the lock. Failure condition: removing a worktree another session is editing.\n- If preflight still fails after re-pinning, read its exact error and address that single issue — do not blanket-reinstall everything. Failure condition: preflight non-zero with an unaddressed reason.\n- Never manually delete `jarvis.lock` to \"unstick\" things (MEMORY) — it breaks the lock-holder sweep.\n<\/fallback-paths>\n\n<acceptance>\ngit worktree list\npython -c \"import jarvis; print(jarvis.__file__)\"\npwsh scripts/preflight.ps1\ngit status --porcelain\n<\/acceptance>\n\n<hard-rules>\nINVIOLABLE:\n- HN-17 — preserve in-flight work (commit it); never force-push; never `git add .` blindly.\n- Never manually delete `jarvis.lock`; never force-remove a worktree another session is using.\nSOFT:\n- Re-pin the editable install from THIS worktree before blaming the code (the restore-trap is usually the pin).\n<\/hard-rules>\n\n<done-signal>\nFinal report (5 bullets):\n- The diagnosed restore-trap layer.\n- The checkpoint commit (if work was preserved).\n- The repair applied (re-pin / prune+re-add / unlock / rebuild).\n- `import jarvis` now points at this worktree + preflight exit 0 (output).\n- Hard-rules honored (HN-17 quoted) + path-taken.\n<\/done-signal>"}</script>
<!-- ===== Application script ===== -->
<script>
diff --git a/docs/plans/cross-platform-mac-linux/PROMPTS.md b/docs/plans/cross-platform-mac-linux/PROMPTS.md
index 3c8d8906d4..15b607f4b6 100644
--- a/docs/plans/cross-platform-mac-linux/PROMPTS.md
+++ b/docs/plans/cross-platform-mac-linux/PROMPTS.md
@@ -51,7 +51,7 @@ DONE means all of the following are true and demonstrated with command output:
</required-reading>
<environment-setup>
-Run exactly, in the repo root `C:\Users\Administrator\Desktop\Personal Jarvis`:
+Run exactly, in the repo root `<USER_HOME>\Desktop\Personal Jarvis`:
1. `git fetch origin`
2. `git switch -c feat/crossplatform-port origin/main`
3. `git push -u origin feat/crossplatform-port`
@@ -3150,7 +3150,7 @@ DONE means: the cause of the rate-limit is identified (which provider/tool, conc
<required-reading>
- `docs/plans/cross-platform-mac-linux/HARD-NEGATIVES.md` HN-17 (never force-push; never bypass hooks).
- The sub-task prompt that was running (its `<done-signal>` defines what "resume here" means).
-- MEMORY: the mission mass-failure root cause was OAuth-concurrency saturation (fix = First-Output-Gate + max_concurrent 1) — relevant if the rate-limit is on the worker/sub-agent path.
+- MEMORY: the mission mass-failure root cause was OAuth-concurrency saturation (fix = First-Output-Gate + max_concurrent 1) — relevant if the rate-limit is on the worker/Jarvis-Agent path.
</required-reading>
<environment-setup>
@@ -3165,7 +3165,7 @@ Modify: only what is needed to reduce concurrency (e.g. a worker `max_concurrent
<primary-path>
1. Diagnose: read the error — identify the provider/tool and whether it is a quota cap or concurrency saturation.
2. Preserve: `git add -A && git commit -m "wip: <sub-task> checkpoint before rate-limit recovery"` on the sub-task branch (NEVER on a shared branch directly; NEVER `git add .` blindly — review the diff first).
-3. Reduce concurrency: if it is OAuth-concurrency (sub-agent/worker path), set the relevant `max_concurrent` to 1; if it is a per-provider quota, switch provider via ENV (e.g. `brain.primary`→an alternate) per the project's drift-safe config path (ENV override, not a raw toml edit).
+3. Reduce concurrency: if it is OAuth-concurrency (Jarvis-Agent/worker path), set the relevant `max_concurrent` to 1; if it is a per-provider quota, switch provider via ENV (e.g. `brain.primary`→an alternate) per the project's drift-safe config path (ENV override, not a raw toml edit).
4. Wait for the limit window to clear (do not hammer-retry in a tight loop), then re-run the sub-task's acceptance commands to confirm the resumable state.
5. Record a "resume here" note (which acceptance commands still need to pass).
</primary-path>
diff --git a/docs/plans/whisper-bar-overlay/DESIGN.md b/docs/plans/jarvis-bar-overlay/DESIGN.md
similarity index 87%
rename from docs/plans/whisper-bar-overlay/DESIGN.md
rename to docs/plans/jarvis-bar-overlay/DESIGN.md
index e595b301dd..cd940a5bfd 100644
--- a/docs/plans/whisper-bar-overlay/DESIGN.md
+++ b/docs/plans/jarvis-bar-overlay/DESIGN.md
@@ -1,15 +1,15 @@
-# Whisper-Bar Overlay — Design Spec
+# Jarvis-Bar Overlay — Design Spec
**Date:** 2026-06-01
**Status:** Approved (design), implementation pending
-**Author:** OpenClaw (brainstormed with the maintainer)
+**Author:** Jarvis-Agents (brainstormed with the maintainer)
---
## 1. Goal
Replace the bulky mascot "ghost" orb as the **default** on-screen representation of Jarvis
-with a slim, a dictation app-style pill bar that lives at the bottom-center of the screen and
+with a slim, dictation-style pill bar that lives at the bottom-center of the screen and
encodes Jarvis's state purely through animation (no text). The existing mascot orb stays
fully intact and remains selectable.
@@ -27,7 +27,7 @@ calm at rest.
## 2. Confirmed product decisions
-- **Default style:** `whisper_bar`. Mascot orb (`mascot`) and `none` remain selectable.
+- **Default style:** `jarvis_bar`. Mascot orb (`mascot`) and `none` remain selectable.
- **Position:** bottom-center by default. **Hold-left-mouse + drag** repositions it; the position
is persisted (same UX as the current draggable orb).
- **Single left-click:** starts a voice session — the same entry point as the wake word / the
@@ -49,7 +49,7 @@ the `EventBus` and calls a small duck-typed surface API on `OrbOverlay`
`stop_animation()`, `show_listening_transcript(...)`, `hide_comment()`,
`start_mouth_animation(...)`, `stop_mouth_animation(...)`.
-We add a new `WhisperBarOverlay` that implements the **same surface API** (no-op for the
+We add a new `JarvisBarOverlay` that implements the **same surface API** (no-op for the
text/mouth methods, since the bar has no text or mouth). `desktop_app._start_speech_and_orb`
selects which surface to construct based on `[ui].orb_style`. The bridge is reused **unchanged**.
@@ -63,20 +63,20 @@ Rejected alternatives:
| File | Purpose |
|---|---|
-| `jarvis/ui/whisperbar/__init__.py` | Package marker + public exports |
-| `jarvis/ui/whisperbar/renderer.py` | Pure rendering math + drawing of pill / dots / bars / wave. State-and-level → frame. No Tk, no I/O — unit-testable. |
-| `jarvis/ui/whisperbar/overlay.py` | `WhisperBarOverlay` — Tk window, daemon thread, thread-safe `_enqueue_ui` queue, ~60 FPS loop, color-key transparency, implements the surface API |
-| `jarvis/ui/whisperbar/interaction.py` | Click-vs-hold-drag discrimination (duration + movement threshold) + position persistence helpers |
+| `jarvis/ui/jarvisbar/__init__.py` | Package marker + public exports |
+| `jarvis/ui/jarvisbar/renderer.py` | Pure rendering math + drawing of pill / dots / bars / wave. State-and-level → frame. No Tk, no I/O — unit-testable. |
+| `jarvis/ui/jarvisbar/overlay.py` | `JarvisBarOverlay` — Tk window, daemon thread, thread-safe `_enqueue_ui` queue, ~60 FPS loop, color-key transparency, implements the surface API |
+| `jarvis/ui/jarvisbar/interaction.py` | Click-vs-hold-drag discrimination (duration + movement threshold) + position persistence helpers |
| `jarvis/audio/level_tap.py` | Tiny throttled RMS helper + a process-local pub/sub for the TTS output level (out-of-band, NOT the EventBus) |
### 3.2 Touched files (additive)
| File | Change |
|---|---|
-| `jarvis/core/config.py` | Extend `UIConfig.orb_style` accepted values to include `"whisper_bar"` and `"none"`; default becomes `"whisper_bar"`. Add `UIConfig.bar_persistent: bool = True`, `UIConfig.bar_accent: str = "active_only"`. |
-| `jarvis/ui/desktop_app.py` | In `_start_speech_and_orb`, branch on `orb_style`: build `WhisperBarOverlay`, `OrbOverlay`, or nothing. Wire the same `OrbBusBridge`. |
+| `jarvis/core/config.py` | Extend `UIConfig.orb_style` accepted values to include `"jarvis_bar"` and `"none"`; default becomes `"jarvis_bar"`. Add `UIConfig.bar_persistent: bool = True`, `UIConfig.bar_accent: str = "active_only"`. |
+| `jarvis/ui/desktop_app.py` | In `_start_speech_and_orb`, branch on `orb_style`: build `JarvisBarOverlay`, `OrbOverlay`, or nothing. Wire the same `OrbBusBridge`. |
| `jarvis/audio/player.py` | In the `_write_samples` flush (already off the hot path, inside `asyncio.to_thread`), compute a throttled RMS on the already-materialized float32 array and publish it via `level_tap` (process-local, ~25 Hz max). Guarded so it is a no-op when nobody is subscribed. |
-| `jarvis/overlay/surface.py` *(optional, seam parity)* | Teach `make_overlay_surface` about `whisper_bar` for the `OverlaySurface` protocol seam. |
+| `jarvis/overlay/surface.py` *(optional, seam parity)* | Teach `make_overlay_surface` about `jarvis_bar` for the `OverlaySurface` protocol seam. |
| React settings *(optional, later wave)* | A "Display style: Bar / Mascot / Off" selector. Config-only is acceptable for the first cut. |
## 4. Data flow
@@ -161,7 +161,7 @@ CI-provable (no GUI required):
- `interaction.py` unit tests: click vs drag classification across duration/movement matrices.
- `level_tap.py` unit tests: throttling cap, no-subscriber no-op, RMS correctness on known PCM.
- `config.py`: `orb_style` accepts the three values + coerces legacy; defaults are correct.
-- Surface API contract: `WhisperBarOverlay` exposes the same methods `OrbBusBridge` calls
+- Surface API contract: `JarvisBarOverlay` exposes the same methods `OrbBusBridge` calls
(duck-typed parity test against the bridge's call sites).
- Headless import/boot: importing the package and constructing the bridge with a fake surface on
a no-display environment does not raise.
diff --git a/docs/plans/whisper-bar-overlay/IMPLEMENTATION-PLAN.md b/docs/plans/jarvis-bar-overlay/IMPLEMENTATION-PLAN.md
similarity index 82%
rename from docs/plans/whisper-bar-overlay/IMPLEMENTATION-PLAN.md
rename to docs/plans/jarvis-bar-overlay/IMPLEMENTATION-PLAN.md
index 53bb0b6e7f..b1a73037f6 100644
--- a/docs/plans/whisper-bar-overlay/IMPLEMENTATION-PLAN.md
+++ b/docs/plans/jarvis-bar-overlay/IMPLEMENTATION-PLAN.md
@@ -1,10 +1,10 @@
-# Whisper-Bar Overlay Implementation Plan
+# Jarvis-Bar Overlay Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:executing-plans (inline, chosen by maintainer goal) to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
-**Goal:** Ship a slim a dictation app-style pill bar as the default on-screen representation of Jarvis (idle dots / mic-driven listening bars / synthetic thinking wave / TTS-driven speaking bars), keeping the mascot orb selectable.
+**Goal:** Ship a slim dictation-style pill bar as the default on-screen representation of Jarvis (idle dots / mic-driven listening bars / synthetic thinking wave / TTS-driven speaking bars), keeping the mascot orb selectable.
-**Architecture:** A new `WhisperBarOverlay` Tk surface implements the same duck-typed API `OrbBusBridge` already drives, so the bridge is reused unchanged. State transitions arrive via `SystemStateChanged` (bus, low-freq). Mic level during LISTENING is fed by the bridge's existing `MicListener → set_level` (free). TTS level during SPEAKING is the one new signal: a throttle-free RMS computed in `player._flush_pending`, published out-of-band (NOT the EventBus) via a tiny `level_tap` module → `set_level`. The thinking wave is synthetic (time-driven). Selection via `[ui].orb_style = "whisper_bar" | "mascot" | "none"`, default `whisper_bar`.
+**Architecture:** A new `JarvisBarOverlay` Tk surface implements the same duck-typed API `OrbBusBridge` already drives, so the bridge is reused unchanged. State transitions arrive via `SystemStateChanged` (bus, low-freq). Mic level during LISTENING is fed by the bridge's existing `MicListener → set_level` (free). TTS level during SPEAKING is the one new signal: a throttle-free RMS computed in `player._flush_pending`, published out-of-band (NOT the EventBus) via a tiny `level_tap` module → `set_level`. The thinking wave is synthetic (time-driven). Selection via `[ui].orb_style = "jarvis_bar" | "mascot" | "none"`, default `jarvis_bar`.
**Tech Stack:** Python 3.11, tkinter (color-key transparency), numpy + PIL (per-frame draw), pydantic v2 (config), pytest.
@@ -27,18 +27,18 @@
| File | Responsibility |
|---|---|
-| `jarvis/ui/whisperbar/__init__.py` | Package marker + exports (`WhisperBarOverlay`) |
+| `jarvis/ui/jarvisbar/__init__.py` | Package marker + exports (`JarvisBarOverlay`) |
| `jarvis/audio/level_tap.py` | Process-local pub/sub for the TTS output level (out-of-band, NOT EventBus); zero-cost when no subscriber |
-| `jarvis/ui/whisperbar/renderer.py` | Pure draw math: `ease`, `bar_heights`, `wave_points`, `WhisperBarRenderer.render(t,mode,level)->PIL.Image`. No Tk/IO. |
-| `jarvis/ui/whisperbar/interaction.py` | `is_drag(dx,dy,threshold)`, `classify_release(moved)`, `resolve_bar_placement(...)`, position persistence wrapper |
-| `jarvis/ui/whisperbar/overlay.py` | `WhisperBarOverlay` Tk window/thread; implements the surface API; drag+click-to-talk; registers `set_level` as TTS level sink |
-| `jarvis/core/config.py` *(modify)* | `orb_style` default → `"whisper_bar"`; add `bar_persistent: bool=True`, `bar_accent: str="#e7c46e"` |
+| `jarvis/ui/jarvisbar/renderer.py` | Pure draw math: `ease`, `bar_heights`, `wave_points`, `JarvisBarRenderer.render(t,mode,level)->PIL.Image`. No Tk/IO. |
+| `jarvis/ui/jarvisbar/interaction.py` | `is_drag(dx,dy,threshold)`, `classify_release(moved)`, `resolve_bar_placement(...)`, position persistence wrapper |
+| `jarvis/ui/jarvisbar/overlay.py` | `JarvisBarOverlay` Tk window/thread; implements the surface API; drag+click-to-talk; registers `set_level` as TTS level sink |
+| `jarvis/core/config.py` *(modify)* | `orb_style` default → `"jarvis_bar"`; add `bar_persistent: bool=True`, `bar_accent: str="#e7c46e"` |
| `jarvis/audio/player.py` *(modify)* | RMS in `_flush_pending` → `level_tap.publish` (gated on subscribers) |
| `jarvis/ui/desktop_app.py` *(modify)* | branch `_start_speech_and_orb` on `orb_style`; `hide_on_idle=not bar_persistent` |
-| `tests/unit/ui/whisperbar/test_renderer.py` | renderer math + render smoke |
-| `tests/unit/ui/whisperbar/test_interaction.py` | click/drag classification + placement |
+| `tests/unit/ui/jarvisbar/test_renderer.py` | renderer math + render smoke |
+| `tests/unit/ui/jarvisbar/test_interaction.py` | click/drag classification + placement |
| `tests/unit/audio/test_level_tap.py` | pub/sub + no-subscriber no-op |
-| `tests/unit/ui/whisperbar/test_surface_contract.py` | WhisperBarOverlay exposes every method the bridge calls |
+| `tests/unit/ui/jarvisbar/test_surface_contract.py` | JarvisBarOverlay exposes every method the bridge calls |
| `tests/unit/audio/test_player_level_tap.py` | player publishes RMS through level_tap |
---
@@ -84,7 +84,7 @@ def test_failing_subscriber_is_swallowed():
"""Process-local, out-of-band level channel for the TTS output amplitude.
Deliberately NOT the EventBus: amplitude updates fire ~8x/second and would
-spam the flight-recorder wildcard subscriber (5s cap). The whisper-bar
+spam the flight-recorder wildcard subscriber (5s cap). The jarvis-bar
overlay registers a sink; the audio player publishes the per-flush RMS. When
no sink is registered, publishing is a cheap no-op (the player skips the RMS
computation entirely via has_subscribers()).
@@ -142,13 +142,13 @@ def reset() -> None:
## Task 2: `renderer` — pure draw math
-**Files:** Create `jarvis/ui/whisperbar/renderer.py`, `jarvis/ui/whisperbar/__init__.py`; Test `tests/unit/ui/whisperbar/test_renderer.py`
+**Files:** Create `jarvis/ui/jarvisbar/renderer.py`, `jarvis/ui/jarvisbar/__init__.py`; Test `tests/unit/ui/jarvisbar/test_renderer.py`
- [ ] **Step 1 — failing tests**
```python
-# tests/unit/ui/whisperbar/test_renderer.py
+# tests/unit/ui/jarvisbar/test_renderer.py
import math
-from jarvis.ui.whisperbar import renderer as R
+from jarvis.ui.jarvisbar import renderer as R
def test_ease_moves_toward_target():
assert R.ease(0.0, 1.0, 0.5) == 0.5
@@ -174,14 +174,14 @@ def test_wave_points_bounded_inside_pill():
assert 36 - 26 <= y <= 36 + 26 # within ±height*0.5
def test_render_returns_image_for_every_mode():
- rnd = R.WhisperBarRenderer(accent="#e7c46e")
+ rnd = R.JarvisBarRenderer(accent="#e7c46e")
for mode in ("idle", "listen", "speak", "think"):
img = rnd.render(0.1, mode, 0.5)
assert img.size == (R.WIN_W, R.WIN_H)
assert img.mode == "RGB"
def test_idle_collapses_expansion_over_frames():
- rnd = R.WhisperBarRenderer()
+ rnd = R.JarvisBarRenderer()
for _ in range(40):
rnd.render(0.0, "listen", 0.5)
expanded = rnd._st.expand
@@ -191,23 +191,23 @@ def test_idle_collapses_expansion_over_frames():
assert rnd._st.expand < 0.1
```
- [ ] **Step 2 — run, expect fail**
-- [ ] **Step 3 — implement** (full module — `__init__.py` exports `WhisperBarOverlay` lazily to stay headless-safe)
+- [ ] **Step 3 — implement** (full module — `__init__.py` exports `JarvisBarOverlay` lazily to stay headless-safe)
```python
-# jarvis/ui/whisperbar/__init__.py
-"""Whisper-bar overlay package (slim default on-screen representation)."""
+# jarvis/ui/jarvisbar/__init__.py
+"""Jarvis-bar overlay package (slim default on-screen representation)."""
from __future__ import annotations
-__all__ = ["WhisperBarOverlay"]
+__all__ = ["JarvisBarOverlay"]
def __getattr__(name: str): # lazy: avoid importing tkinter on headless import
- if name == "WhisperBarOverlay":
- from jarvis.ui.whisperbar.overlay import WhisperBarOverlay
- return WhisperBarOverlay
+ if name == "JarvisBarOverlay":
+ from jarvis.ui.jarvisbar.overlay import JarvisBarOverlay
+ return JarvisBarOverlay
raise AttributeError(name)
```
```python
-# jarvis/ui/whisperbar/renderer.py (numpy/PIL — desktop only, imported lazily by overlay)
+# jarvis/ui/jarvisbar/renderer.py (numpy/PIL — desktop only, imported lazily by overlay)
from __future__ import annotations
import math
@@ -279,7 +279,7 @@ class _RenderState:
expand: float = 0.0 # 0 collapsed .. 1 expanded
-class WhisperBarRenderer:
+class JarvisBarRenderer:
def __init__(self, accent: str = "#e7c46e") -> None:
self._accent = _hex_to_rgb(accent)
self._st = _RenderState()
@@ -333,16 +333,16 @@ class WhisperBarRenderer:
d.line(pts, fill=self._accent, width=3, joint="curve")
```
- [ ] **Step 4 — run, expect PASS**
-- [ ] **Step 5 — commit** `feat(ui): whisper-bar pure renderer (dots/bars/wave)`
+- [ ] **Step 5 — commit** `feat(ui): jarvis-bar pure renderer (dots/bars/wave)`
## Task 3: `interaction` — click vs drag + placement
-**Files:** Create `jarvis/ui/whisperbar/interaction.py`; Test `tests/unit/ui/whisperbar/test_interaction.py`
+**Files:** Create `jarvis/ui/jarvisbar/interaction.py`; Test `tests/unit/ui/jarvisbar/test_interaction.py`
- [ ] **Step 1 — failing tests**
```python
-# tests/unit/ui/whisperbar/test_interaction.py
-from jarvis.ui.whisperbar import interaction as I
+# tests/unit/ui/jarvisbar/test_interaction.py
+from jarvis.ui.jarvisbar import interaction as I
def test_is_drag_threshold():
assert I.is_drag(10, 5, 16) is False # 15 < 16
@@ -361,8 +361,8 @@ def test_default_bottom_center_placement():
- [ ] **Step 2 — run, expect fail**
- [ ] **Step 3 — implement**
```python
-# jarvis/ui/whisperbar/interaction.py
-"""Click/drag classification + default placement for the whisper bar.
+# jarvis/ui/jarvisbar/interaction.py
+"""Click/drag classification + default placement for the jarvis bar.
Mirrors the orb's proven movement-threshold model (overlay.py:1604): a press
that never moves past the threshold is a CLICK (→ start a voice session); a
@@ -388,19 +388,19 @@ def default_bottom_center(*, screen_w: int, screen_h: int, bar_w: int, bar_h: in
return x, y
```
- [ ] **Step 4 — run, expect PASS**
-- [ ] **Step 5 — commit** `feat(ui): whisper-bar interaction (click vs drag, placement)`
+- [ ] **Step 5 — commit** `feat(ui): jarvis-bar interaction (click vs drag, placement)`
-## Task 4: `WhisperBarOverlay` — Tk surface
+## Task 4: `JarvisBarOverlay` — Tk surface
-**Files:** Create `jarvis/ui/whisperbar/overlay.py`; Test `tests/unit/ui/whisperbar/test_surface_contract.py`
+**Files:** Create `jarvis/ui/jarvisbar/overlay.py`; Test `tests/unit/ui/jarvisbar/test_surface_contract.py`
Implements the bridge's surface API. `show(mode)` maps to renderer mode; `set_level` writes `_ext_level` directly (atomic, like the orb). Text/mouth methods are no-ops. On `start()`, subscribes `self.set_level` to `level_tap` (TTS amplitude). Click on release-without-move → `runtime_refs.get_speech_pipeline().request_voice_session()`. Drag persists position via `drag_persistence` (reuses `[overlay.mascot]` section — shared pin acceptable for v1). Color-key transparency identical to the orb; NO `SetWindowLong` calls → no BUG-030 exposure.
- [ ] **Step 1 — failing contract test**
```python
-# tests/unit/ui/whisperbar/test_surface_contract.py
+# tests/unit/ui/jarvisbar/test_surface_contract.py
import inspect
-from jarvis.ui.whisperbar.overlay import WhisperBarOverlay
+from jarvis.ui.jarvisbar.overlay import JarvisBarOverlay
REQUIRED = [
"show", "hide", "set_level", "play_animation", "stop_animation",
@@ -411,10 +411,10 @@ REQUIRED = [
def test_surface_exposes_every_method_the_bridge_calls():
for name in REQUIRED:
- assert callable(getattr(WhisperBarOverlay, name, None)), name
+ assert callable(getattr(JarvisBarOverlay, name, None)), name
def test_show_accepts_bridge_modes_without_tk():
- bar = WhisperBarOverlay.__new__(WhisperBarOverlay) # no Tk window
+ bar = JarvisBarOverlay.__new__(JarvisBarOverlay) # no Tk window
bar._mode = "idle"; bar._root = None; bar._ui_queue = None
bar._tk_thread_id = None
import threading; bar._tk_thread_id = threading.get_ident()
@@ -440,7 +440,7 @@ def test_show_accepts_bridge_modes_without_tk():
- `_on_click()`: `from jarvis.core.runtime_refs import get_speech_pipeline; p=get_speech_pipeline(); p and p.request_voice_session()` (guarded try/except).
- `stop()`: `_running=False`, call `_level_unsub()` if set, destroy root.
- [ ] **Step 4 — run, expect PASS** (contract test runs without opening a window)
-- [ ] **Step 5 — commit** `feat(ui): WhisperBarOverlay Tk surface (bridge-compatible)`
+- [ ] **Step 5 — commit** `feat(ui): JarvisBarOverlay Tk surface (bridge-compatible)`
## Task 5: config — selection + persistence flags
@@ -451,9 +451,9 @@ def test_show_accepts_bridge_modes_without_tk():
# tests/unit/core/test_ui_config_bar.py
from jarvis.core.config import UIConfig
-def test_defaults_select_whisper_bar():
+def test_defaults_select_jarvis_bar():
c = UIConfig()
- assert c.orb_style == "whisper_bar"
+ assert c.orb_style == "jarvis_bar"
assert c.bar_persistent is True
assert c.bar_accent == "#e7c46e"
@@ -462,9 +462,9 @@ def test_legacy_mascot_still_accepted():
assert UIConfig(orb_style="none").orb_style == "none"
```
- [ ] **Step 2 — run, expect fail**
-- [ ] **Step 3 — implement**: in `UIConfig`, change `orb_style: str = "mascot"` → `orb_style: str = "whisper_bar"`; add after `orb_mascot_path`:
+- [ ] **Step 3 — implement**: in `UIConfig`, change `orb_style: str = "mascot"` → `orb_style: str = "jarvis_bar"`; add after `orb_mascot_path`:
```python
- # Whisper-bar: persistent (always-visible) vs only-when-active.
+ # Jarvis-bar: persistent (always-visible) vs only-when-active.
bar_persistent: bool = True
# Hex accent that lights up during activity.
bar_accent: str = "#e7c46e"
@@ -498,7 +498,7 @@ async def test_player_publishes_rms_when_subscribed(monkeypatch):
- [ ] **Step 2 — run, expect fail**
- [ ] **Step 3 — implement**: inside `_flush_pending`, immediately after `await asyncio.to_thread(self._write_samples, stm, arr, pending_rate, dev_rate)` (`player.py:594-596`), add:
```python
- # Out-of-band TTS amplitude for the whisper-bar (never the bus).
+ # Out-of-band TTS amplitude for the jarvis-bar (never the bus).
if level_tap.has_subscribers() and arr.size:
rms = float(np.sqrt(np.mean(np.square(arr.astype(np.float32) * (1.0 / 32768.0)))))
level_tap.publish(rms)
@@ -513,14 +513,14 @@ and `from jarvis.audio import level_tap` at the top of `player.py`.
- [ ] **Step 1** — replace the orb construction block with a branch:
```python
- orb_style = self.cfg.ui.orb_style or "whisper_bar"
+ orb_style = self.cfg.ui.orb_style or "jarvis_bar"
orb_mascot_path = self.cfg.ui.orb_mascot_path or None
if orb_style == "none":
self._orb = None
- elif orb_style == "whisper_bar":
- from jarvis.ui.whisperbar import WhisperBarOverlay
+ elif orb_style == "jarvis_bar":
+ from jarvis.ui.jarvisbar import JarvisBarOverlay
from ui.orb.bus_bridge import OrbBusBridge
- bar = WhisperBarOverlay(
+ bar = JarvisBarOverlay(
persistent=self.cfg.ui.bar_persistent,
accent=self.cfg.ui.bar_accent,
)
@@ -542,9 +542,9 @@ and `from jarvis.audio import level_tap` at the top of `player.py`.
## Task 8: full validation pass
- [ ] Run the whole new suite + adjacent:
-`& "C:\Program Files\Python311\python.exe" -m pytest tests/unit/ui/whisperbar tests/unit/audio/test_level_tap.py tests/unit/audio/test_player_level_tap.py tests/unit/core/test_ui_config_bar.py -v`
-- [ ] `ruff check jarvis/ui/whisperbar jarvis/audio/level_tap.py`
-- [ ] Headless boot guard: `& "C:\Program Files\Python311\python.exe" -c "import jarvis.ui.whisperbar; print('ok')"` (must NOT import tkinter).
+`& "C:\Program Files\Python311\python.exe" -m pytest tests/unit/ui/jarvisbar tests/unit/audio/test_level_tap.py tests/unit/audio/test_player_level_tap.py tests/unit/core/test_ui_config_bar.py -v`
+- [ ] `ruff check jarvis/ui/jarvisbar jarvis/audio/level_tap.py`
+- [ ] Headless boot guard: `& "C:\Program Files\Python311\python.exe" -c "import jarvis.ui.jarvisbar; print('ok')"` (must NOT import tkinter).
- [ ] Regression: `& "C:\Program Files\Python311\python.exe" -m pytest tests/unit/audio -q` (player untouched paths still green).
- [ ] Dispatch `code-reviewer` over the new files + the two touch hunks.
- [ ] Adversarial verify (workflow) of the risky claims: color-key transparency, click-vs-drag, level_tap zero-cost-when-idle, hide_on_idle persistence.
@@ -552,6 +552,6 @@ and `from jarvis.audio import level_tap` at the top of `player.py`.
## Execution Notes (binding)
- **Two touch-files carry uncommitted parallel-session edits** (`config.py` +66, `desktop_app.py` +38). Edit them additively; **never `git add` them** — leave uncommitted (repo norm: feature lands uncommitted, maintainer restarts). Commit only the new isolated files.
-- **Live default for the maintainer:** the code default flips to `whisper_bar`, but if the live `jarvis.toml` pins `[ui].orb_style = "mascot"`, the maintainer must unset it (or set `whisper_bar`) to see the bar — do NOT edit `jarvis.toml` (drift-guard). Report this in the handoff.
+- **Live default for the maintainer:** the code default flips to `jarvis_bar`, but if the live `jarvis.toml` pins `[ui].orb_style = "mascot"`, the maintainer must unset it (or set `jarvis_bar`) to see the bar — do NOT edit `jarvis.toml` (drift-guard). Report this in the handoff.
- **Restart required** for live effect (pythonw holds the RAM bundle / pipeline).
- Live GUI behavior (transparency, four animations, drag, click-to-talk) is **maintainer sign-off**, not CI.
diff --git a/docs/plans/jarvis-tool-map/build_excalidraw.py b/docs/plans/jarvis-tool-map/build_excalidraw.py
index bba15af868..050f104e29 100644
--- a/docs/plans/jarvis-tool-map/build_excalidraw.py
+++ b/docs/plans/jarvis-tool-map/build_excalidraw.py
@@ -16,7 +16,7 @@ Layout philosophy (overlap-free by construction):
40-arrow fan-out hairball).
Run: python build_excalidraw.py
-Out: C:/Users/Administrator/OneDrive/Ex/2026-05-24/jarvis-tool-architecture.excalidraw
+Out: <USER_HOME>/OneDrive/Ex/2026-05-24/jarvis-tool-architecture.excalidraw
"""
from __future__ import annotations
@@ -868,7 +868,7 @@ def build():
"appState": {"viewBackgroundColor": "#ffffff", "gridSize": 20},
"files": {},
}
- out_dir = "C:/Users/Administrator/OneDrive/Ex/2026-05-24"
+ out_dir = "<USER_HOME>/OneDrive/Ex/2026-05-24"
os.makedirs(out_dir, exist_ok=True)
out = os.path.join(out_dir, "jarvis-tool-architecture.excalidraw")
with open(out, "w", encoding="utf-8") as f:
diff --git a/docs/plans/mission-failure-rootcause-2026-05-24/REPORT.html b/docs/plans/mission-failure-rootcause-2026-05-24/REPORT.html
index 332dfac444..227cf2894c 100644
--- a/docs/plans/mission-failure-rootcause-2026-05-24/REPORT.html
+++ b/docs/plans/mission-failure-rootcause-2026-05-24/REPORT.html
@@ -288,7 +288,7 @@ powershell scripts/jarvis-config-drift-guard.ps1 -DryRun
<div class="rc-head"><span class="rc-title">Pflicht-Guard vor JEDER Änderung (Restore-Trap BUG-006/014)</span></div>
<pre>pwsh scripts/preflight.ps1
python -c "import jarvis; print(jarvis.__file__)"
-<span class="c"># MUSS auf C:\Users\Administrator\Desktop\Personal Jarvis\jarvis\__init__.py zeigen.</span>
+<span class="c"># MUSS auf <USER_HOME>\Desktop\Personal Jarvis\jarvis\__init__.py zeigen.</span>
<span class="c"># Sonst landen Edits in einem toten Klon und „der Fix wirkt nicht".</span></pre>
</div>
diff --git a/docs/plans/mission-reliability/README.md b/docs/plans/mission-reliability/README.md
index 7554cbfef4..5e62d13bde 100644
--- a/docs/plans/mission-reliability/README.md
+++ b/docs/plans/mission-reliability/README.md
@@ -45,7 +45,7 @@ Final review (all waves): 0 BLOCKER, 3 MAJOR (all fixed: empty-`task_outcomes` v
## WAVE 4 — Provider-coupling instant-fail (2026-06-08) — FIXED
-> **The bug reopened the moment the user switched the Heavy-Worker provider.** Waves 1–3.1 were all forensically measured while `[brain.sub_jarvis].provider = claude-api`. The instant the user set the sub-agent provider to anything else (live config on 06-08: `grok`, with a `gemini` fallback), **every single mission failed in ~3 s** — a brand-new root cause the earlier waves never exercised.
+> **The bug reopened the moment the user switched the Heavy-Worker provider.** Waves 1–3.1 were all forensically measured while `[brain.sub_jarvis].provider = claude-api`. The instant the user set the Jarvis-Agent provider to anything else (live config on 06-08: `grok`, with a `gemini` fallback), **every single mission failed in ~3 s** — a brand-new root cause the earlier waves never exercised.
**Forensic ground truth (`data/missions.db`, 06-08):** missions `019ea82e-3fac`, `019ea82e-8cc5`, `019ea830-072f` each: `WorkerSpawned pid=0` → `WorkerKilled reason=user` (~0.3 s) → `MissionFailed reason=task_error partial_artifacts=[]` (~3 s total, `cost_usd=0.0`). The verbatim worker error in `data/jarvis_desktop.log`:
@@ -58,12 +58,12 @@ ClaudeDirectWorker: primary provider is openai-codex, expected claude-api
### Root cause — the same provider-coupling defect in TWO paths
-Post-Welle-4 the OpenClaw-backed `SubJarvisWorker` was removed (the ~92% nested-claude hang). So `jarvis/missions/init.py::_worker_factory` now routes **every** `[brain.sub_jarvis].provider` that is not `openai-codex`/`chatgpt` (grok, gemini, openai, openrouter, openclaw-claude, **and the unset default** — whose `_resolve_provider_chain` last-ditch stub is `("grok", "grok-4.3")`) to `ClaudeDirectWorker` (the "proven direct Opus worker", `init.py:476`). But both the worker **and** the critic still carried a guard that assumed a *fall-through to a worker that no longer exists*:
+Post-Welle-4 the Jarvis-Agents-backed `SubJarvisWorker` was removed (the ~92% nested-claude hang). So `jarvis/missions/init.py::_worker_factory` now routes **every** `[brain.sub_jarvis].provider` that is not `openai-codex`/`chatgpt` (grok, gemini, openai, openrouter, openclaw-claude, **and the unset default** — whose `_resolve_provider_chain` last-ditch stub is `("grok", "grok-4.3")`) to `ClaudeDirectWorker` (the "proven direct Opus worker", `init.py:476`). But both the worker **and** the critic still carried a guard that assumed a *fall-through to a worker that no longer exists*:
1. **`jarvis/missions/workers/claude_direct_worker.py`** (`spawn`, ex-line 218-241): refused with `"primary provider is <x>, expected claude-api"` unless the resolved chain primary was `claude-api`. → every non-claude/non-codex mission died instantly.
2. **`jarvis/missions/critic/runner.py`** (`_invoke_once`, ex-line 931-938): the "fall back to the direct claude critic" branch passed `model=primary_model or model` — i.e. the **foreign** provider model (`grok-4.3`) — to `claude --model`, which the claude CLI rejects with `returncode=1`. The critic failed twice → `critic_unavailable`, failing the mission **even after the worker delivered real work** (surfaced the moment fix #1 let the worker run).
-Both are the same class: *a heavy-worker/critic path that hard-couples its ability to run to a configured provider slug it no longer has a dedicated backend for.* The OpenClaw escape hatch the guards assumed is gone.
+Both are the same class: *a heavy-worker/critic path that hard-couples its ability to run to a configured provider slug it no longer has a dedicated backend for.* The Jarvis-Agents escape hatch the guards assumed is gone.
### The fix — `ClaudeDirectWorker`/`CriticRunner` are the universal Claude-Max fallback
@@ -76,11 +76,11 @@ This honours the dedicated workers exactly (`claude-api` → ClaudeDirectWorker,
- **Unit (TDD red→green):** `tests/missions/workers/test_claude_direct_provider_fallback.py` (5) + `tests/missions/critic/test_runner_claude_direct.py::test_non_claude_provider_critic_uses_claude_model_not_foreign` (3). Both watched fail first ("worker refused…", "foreign model leaked into claude argv"). Full `tests/missions/` suite: **796 passed, 2 skipped**; ruff clean on changed code.
- **Real end-to-end (GREEN, 2026-06-08):** `scripts/verify_submission_provider_fix.py` drove the REAL `manager.dispatch → kontrollierer.run_mission` pipeline against an **isolated temp DB** with the **live grok config** (the exact bug condition), spawning real `claude` Max-OAuth `claude-opus-4-8` workers + critics. Result: **3/3 rounds APPROVED, zero provider-refusal failures, exit 0** (missions `019ea847`/`019ea848`). Before the fix the same harness reproduced the bug: every round died with `ClaudeDirectWorker: primary provider is grok, expected claude-api` (worker) → then, after fix #1, `Critic lieferte zweimal keinen schema-validen JSON-Output` (critic foreign-model rejection).
-**REQUIRES AN APP RESTART to take effect** (AP-8 restore-trap — `pythonw.exe` holds old code). After restart, missions dispatched under the grok sub-agent reach APPROVED instead of dying in 3 s.
+**REQUIRES AN APP RESTART to take effect** (AP-8 restore-trap — `pythonw.exe` holds old code). After restart, missions dispatched under the grok Jarvis-Agent reach APPROVED instead of dying in 3 s.
-### WAVE 4b — Codex sub-agent: expired ChatGPT login (2026-06-08, same evening)
+### WAVE 4b — Codex Jarvis-Agent: expired ChatGPT login (2026-06-08, same evening)
-> After the grok fix went live (confirmed: the Wave-4 warning string appears in `data/jarvis_desktop.log` at 20:58 / 21:11 — **no restore-trap**), the user switched the sub-agent to **Codex** and missions failed again — now running for **minutes**, not 3 s. Different root cause, surfaced *because* the worker now runs.
+> After the grok fix went live (confirmed: the Wave-4 warning string appears in `data/jarvis_desktop.log` at 20:58 / 21:11 — **no restore-trap**), the user switched the Jarvis-Agent to **Codex** and missions failed again — now running for **minutes**, not 3 s. Different root cause, surfaced *because* the worker now runs.
**Forensic ground truth (`data/missions.db` + log, 06-08):**
- Mission `019ea8db` (codex worker, 153 s, 3 iters → `task_error`): the codex subprocess emitted an error event whose `message` was a **dict** `{'message': 'Failed to refresh token. … Please log in again.'}`. `CodexDirectWorker` (`codex_direct_worker.py:423`) fed it into `ClaudeResult(result=…)` (a `str` field) → **Pydantic `ValidationError` → worker crash → opaque `task_error`**, hiding the real cause.
@@ -94,7 +94,7 @@ This honours the dedicated workers exactly (`claude-api` → ClaudeDirectWorker,
2. **Codex auth-expiry → Claude Max fallback (worker):** when the codex terminal error matches `_CODEX_AUTH_EXPIRED_MARKERS` (refresh token / log in again / 401 / …) AND codex did no real work, the worker delegates the task to `ClaudeDirectWorker` (the codex error event is *not* yielded, so `_spawn_worker_collect`'s `worker_error` stays unset and the claude result drives the outcome). The mission COMPLETES on Claude Max.
3. **Codex critic → Claude critic fallback:** when the codex critic yields no verdict, fall back to `_invoke_via_claude_direct` instead of `critic_unavailable`.
-Same philosophy as the grok fix: every sub-agent option now works — codex-with-good-token → codex; codex-with-dead-token → Claude Max fallback (legible warning, `run codex login` to restore codex); grok/gemini/openai/openrouter/unset → Claude Max. `codex status`-lies and the boot key-check vs ChatGPT-mode mismatch remain a **follow-up** (cosmetic; missions now succeed regardless).
+Same philosophy as the grok fix: every Jarvis-Agent option now works — codex-with-good-token → codex; codex-with-dead-token → Claude Max fallback (legible warning, `run codex login` to restore codex); grok/gemini/openai/openrouter/unset → Claude Max. `codex status`-lies and the boot key-check vs ChatGPT-mode mismatch remain a **follow-up** (cosmetic; missions now succeed regardless).
**Verification:** unit TDD `tests/missions/workers/test_codex_auth_fallback.py` (5: coerce helper, auth-marker detect, dict-error-no-crash, **auth-expiry → claude fallback**). Full `tests/missions/`: **801 passed, 2 skipped**; ruff clean on changed code. Real end-to-end (GREEN, 2026-06-08): `scripts/verify_submission_provider_fix.py` re-run with `JARVIS__BRAIN__SUB_JARVIS__PROVIDER=openai-codex` against the live dead token — every round logged `codex ChatGPT login expired ('400 … Your session has ended')` → worker falls back to Claude Max, then `codex critic produced no verdict (401 … token invalidated) → falling back to the claude critic` → **3/3 APPROVED, exit 0** (missions `019ea8f8`/`019ea8fa`/`019ea8fb`). The grok path is unbroken by these changes: **3/3 APPROVED** in the same run. The Wave-4 grok fix had already proven live earlier (warning string in `jarvis_desktop.log` 20:58/21:11 — no restore-trap), so a single restart picks up these codex fixes too.
diff --git a/docs/plans/omni-latency-vision-v1/README.md b/docs/plans/omni-latency-vision-v1/README.md
index 4e2fa1fb7a..9bcada51ee 100644
--- a/docs/plans/omni-latency-vision-v1/README.md
+++ b/docs/plans/omni-latency-vision-v1/README.md
@@ -97,7 +97,7 @@
### Task 1.3: Fix the system-prompt vision lie
**Files:** `jarvis/brain/router.py` (`SYSTEM_PROMPT` line ~62).
-- [ ] Make the "Du siehst Rubens Bildschirm permanent als Bild" instruction conditional/softened so the model does not hallucinate a screen when no image was attached (e.g. move to a per-turn note appended only when an image is present, or reword to "wenn ein Screenshot anhängt").
+- [ ] Make the "Du siehst Alexs Bildschirm permanent als Bild" instruction conditional/softened so the model does not hallucinate a screen when no image was attached (e.g. move to a per-turn note appended only when an image is present, or reword to "wenn ein Screenshot anhängt").
**Wave 1 verification:** `pytest tests/unit/brain/test_vision_gate.py tests/unit/brain/test_routing.py -v`; bench shows lower TTFT on smalltalk turns, unchanged on screen-ref turns. Commit. Flag `[performance].conditional_vision = true`.
diff --git a/docs/plans/optimistic-execution-v1/README.md b/docs/plans/optimistic-execution-v1/README.md
index bcf3d1b1e4..555479855c 100644
--- a/docs/plans/optimistic-execution-v1/README.md
+++ b/docs/plans/optimistic-execution-v1/README.md
@@ -21,7 +21,7 @@ v1.0 promise, end-to-end, measured".
| 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 |
-| Smart Tools (Gmail/MCP) | `jarvis/mcp/adapter.py` + OpenClaw worker | Welle 2/3 open | worker-makes-the-call, end-to-end |
+| 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 |
| Latency < 3s | AsyncIterator streaming + `voice_latency` marker | **no SLO gate** | p95 budgets enforced in CI |
@@ -54,7 +54,7 @@ v1.0 promise, end-to-end, measured".
### 1.3 MCP & Tooling Specialist
- Spec-correct invariant: the **worker** (not the talker) issues the MCP call. Gmail is
- the canonical Smart-Tool path via `jarvis/mcp/adapter.py` + OpenClaw worker; it is
+ the canonical Smart-Tool path via `jarvis/mcp/adapter.py` + Jarvis-Agent worker; it is
live-testable through the `gws` CLI / Gmail MCP.
- Dumb tools (local scripts: "mach die Adjusties", "spiel X ab") resolve in-process via
`jarvis/brain/local_action_gate.py` — no worker wakeup, milliseconds.
diff --git a/docs/plans/skills-brain-integration/PLAN.md b/docs/plans/skills-brain-integration/PLAN.md
index 732f069f60..05991c4fd3 100644
--- a/docs/plans/skills-brain-integration/PLAN.md
+++ b/docs/plans/skills-brain-integration/PLAN.md
@@ -1,6 +1,6 @@
# Skills-Brain-Integration — Phase Plan
-**Master-plan source:** `C:\Users\Administrator\.claude\plans\okay-ich-w-re-bereit-jolly-gem.md`
+**Master-plan source:** `<USER_HOME>\.claude\plans\okay-ich-w-re-bereit-jolly-gem.md`
## Phase Skills-1 — Pre-Brain-Hook MVP (2.0 days)
diff --git a/docs/plans/skills-brain-integration/PROJEKT_KONTEXT.md b/docs/plans/skills-brain-integration/PROJEKT_KONTEXT.md
index e19881ee8e..ddd689e911 100644
--- a/docs/plans/skills-brain-integration/PROJEKT_KONTEXT.md
+++ b/docs/plans/skills-brain-integration/PROJEKT_KONTEXT.md
@@ -3,13 +3,13 @@
**Branch:** `skills-brain-integration` (from `main`)
**Plan owner:** Claude Opus 4.7
**Status:** 2026-04-30
-**Master plan (private):** `C:\Users\Administrator\.claude\plans\okay-ich-w-re-bereit-jolly-gem.md`
+**Master plan (private):** `<USER_HOME>\.claude\plans\okay-ich-w-re-bereit-jolly-gem.md`
## Problem
The skill system (Phase 1c) is fully built (`SkillRegistry`, `TriggerMatcher`, `SkillRunner`, lifecycle, validator, five builtin skills, 22 UI endpoints), but **dead** in the production path:
- `TriggerMatcher` is not invoked in any production file — only tests, CLI, UI listing.
-- The brain (main Jarvis Haiku 4.5 + Sub-Jarvis Opus 4.7) has no skills awareness — neither in `ROUTER_TOOLS`/`SUB_TOOLS` nor in the system prompt.
+- The brain (main Jarvis Haiku 4.5 + Jarvis-Agent Opus 4.7) has no skills awareness — neither in `ROUTER_TOOLS`/`SUB_TOOLS` nor in the system prompt.
- Skills can currently only be started via CLI or manual UI buttons.
## Solution (hybrid Anthropic pattern)
diff --git a/docs/plans/taskbar-section/DESIGN.md b/docs/plans/taskbar-section/DESIGN.md
index 60591293dd..8ccc86697e 100644
--- a/docs/plans/taskbar-section/DESIGN.md
+++ b/docs/plans/taskbar-section/DESIGN.md
@@ -1,17 +1,17 @@
-# Taskbar Section + a dictation app Features — Design Spec
+# Taskbar Section + Dictation Features — Design Spec
**Date:** 2026-06-02
**Status:** Approved (design), implementation pending
-**Author:** OpenClaw (brainstormed with the maintainer)
+**Author:** Jarvis-Agents (brainstormed with the maintainer)
---
## 1. Goal
Add a dedicated **"Taskbar"** sidebar section to the desktop app (sibling to Socials/Chats)
-that owns the on-screen overlay settings, plus two a dictation app-style features:
+that owns the on-screen overlay settings, plus two dictation-style features:
-1. **Show bar at all times** — toggle the whisper-bar's persistent/standby behaviour
+1. **Show bar at all times** — toggle the jarvis-bar's persistent/standby behaviour
(`[ui].bar_persistent`). OFF = no standby; the bar only pops up on "Hey Jarvis".
2. **Mute music while dictating** — while Jarvis is in a voice session, mute every OTHER
app's audio (Spotify, browser music…) and restore it when the session ends.
@@ -25,7 +25,7 @@ The existing Bar/Mascot/None style selector **moves** from Settings into this ne
- "Mute music while dictating" mutes for the **whole voice session** (start→end), not per
sub-state.
- It **fully mutes** other apps (not duck-to-20%).
-- Design: brand guidelines (Charcoal card + Gold accents), a dictation app layout (grouped cards, label +
+- Design: brand guidelines (Charcoal card + Gold accents), grouped-card layout (grouped cards, label +
toggle rows). No black/white, no AI slop.
## 3. Architecture
@@ -138,5 +138,5 @@ Live sign-off (maintainer):
- The exact `restore_delay_ms` (start 400 ms; tune for TTS tail).
- Name allowlist for never-mute apps (Discord/Zoom/Teams) — config `[ducking].never_mute = []`,
empty default; wire but not surfaced in UI for v1.
-- Whether "Show bar at all times" should be disabled in the UI when style != whisper_bar (it only
+- Whether "Show bar at all times" should be disabled in the UI when style != jarvis_bar (it only
affects the bar). v1: always shown, applies to the bar.
diff --git a/docs/plans/taskbar-section/IMPLEMENTATION-PLAN.md b/docs/plans/taskbar-section/IMPLEMENTATION-PLAN.md
index 12cf9b3ccf..59e90ccf3c 100644
--- a/docs/plans/taskbar-section/IMPLEMENTATION-PLAN.md
+++ b/docs/plans/taskbar-section/IMPLEMENTATION-PLAN.md
@@ -1,4 +1,4 @@
-# Taskbar Section + a dictation app Features Implementation Plan
+# Taskbar Section + Dictation Features Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:executing-plans (inline) to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax.
@@ -57,14 +57,14 @@ def test_ducking_config_defaults():
def test_set_mute_music_round_trip(tmp_path):
cfg = tmp_path / "jarvis.toml"
- cfg.write_text('[ui]\norb_style = "whisper_bar"\n', encoding="utf-8")
+ cfg.write_text('[ui]\norb_style = "jarvis_bar"\n', encoding="utf-8")
config_writer.set_mute_music(True, path=cfg)
data = tomllib.loads(cfg.read_text(encoding="utf-8"))
assert data["ducking"]["enabled"] is True
def test_set_bar_persistent_round_trip(tmp_path):
cfg = tmp_path / "jarvis.toml"
- cfg.write_text('[ui]\norb_style = "whisper_bar"\n', encoding="utf-8")
+ cfg.write_text('[ui]\norb_style = "jarvis_bar"\n', encoding="utf-8")
config_writer.set_bar_persistent(False, path=cfg)
data = tomllib.loads(cfg.read_text(encoding="utf-8"))
assert data["ui"]["bar_persistent"] is False
diff --git a/docs/plans/voice-endpoint-patience/README.md b/docs/plans/voice-endpoint-patience/README.md
index 2bc0ac7f63..bc32e4d32a 100644
--- a/docs/plans/voice-endpoint-patience/README.md
+++ b/docs/plans/voice-endpoint-patience/README.md
@@ -148,7 +148,7 @@ complete questions. So the obvious "just add more patterns" fix is exactly what
| 05-25 | `939eeb932` | **(today)** Probe refactor: `_probe_stt` can be cloud Groq; `_probe_generation` cross-turn-leak guard; dropped polite-thanks hangup regex. |
### Corrected agent finding (verified false)
-A sub-agent flagged commit `17296d5e3` ("accumulate long dictation across VAD max-utterance
+A Jarvis-Agent flagged commit `17296d5e3` ("accumulate long dictation across VAD max-utterance
cuts") with a `FORCED_CUT_REASONS` enum in `jarvis/audio/vad_reasons.py`. **The commit
exists, but that file and those symbols do NOT exist in the current tree** (`grep` finds
zero `FORCED_CUT_REASONS` / `_last_endpoint_reason`; `jarvis/audio/vad_reasons.py` is
diff --git a/docs/plans/voice-phrase-mismatch-2026-05-26/README.md b/docs/plans/voice-phrase-mismatch-2026-05-26/README.md
index 7c640c5404..a758030c13 100644
--- a/docs/plans/voice-phrase-mismatch-2026-05-26/README.md
+++ b/docs/plans/voice-phrase-mismatch-2026-05-26/README.md
@@ -243,7 +243,7 @@ If H3 is the cause, the suppress-if-fast gate
reply, so the ack survived to TTS even though the user had not asked a
question that warranted an "I'll look it up" preamble.
-### 4.4 H4 — Sub-Agent / skill announcement
+### 4.4 H4 — Jarvis-Agent / skill announcement
Any subscriber that publishes `AnnouncementRequested` can send arbitrary
text. The Ack-Brain coordinator and skill announcers both have that
diff --git a/docs/pre-launch-checklist.md b/docs/pre-launch-checklist.md
new file mode 100644
index 0000000000..6e4378221c
--- /dev/null
+++ b/docs/pre-launch-checklist.md
@@ -0,0 +1,83 @@
+# Public-Repo Pre-Launch Checklist (reusable template)
+
+A fail-closed checklist to run **once** before a repository (or a private repo's
+history) becomes public for the first time. Work top to bottom; a CRITICAL item
+that is not satisfied **blocks the launch**. Tick every box in a fresh clone, not
+in your working tree.
+
+> Golden rule: the public surface is the **entire history + all releases**, not
+> just the latest commit. A secret that ever existed in any commit stays visible
+> forever once the repo is public — deleting the file later does not remove it.
+
+---
+
+## CRITICAL — must be green before the first public push / private→public flip
+
+### Secrets & credentials
+- [ ] Scan the **full history** (every commit, every branch), not just HEAD:
+ `gitleaks detect --no-banner` and/or `trufflehog git file://. --only-verified`.
+- [ ] No real `.env`, `*.pem`, `*.key`, `service-account*.json`, token, or password
+ is tracked: `git ls-files | grep -iE '\.env$|\.pem$|\.key$|secret|credential'`.
+- [ ] Every key that has **ever** sat in cleartext on a dev machine or in a chat is
+ **rotated** before launch (assume compromised, revoke + reissue).
+- [ ] Enable **GitHub Secret Scanning + Push Protection** on the repo before flipping.
+
+### Personal / identifying data (PII)
+- [ ] No real names, private emails, home/usernames paths (`C:\Users\<name>`,
+ `/home/<name>`), phone numbers, internal hostnames in tracked files.
+- [ ] **Commit author metadata** is clean — the classic blind spot. File scrubbers
+ miss it: `git log --all --format='%an <%ae> / %cn <%ce>' | sort -u`. Use
+ `.mailmap` + a noreply email so private addresses never show on GitHub.
+- [ ] No internal-only docs, scratch notes, incident reports, or red-team logs leak.
+
+### Licensing & legal
+- [ ] A `LICENSE` file exists and matches what the README claims.
+- [ ] Third-party code/assets are attributed; bundled fonts/images are
+ redistributable; trademarks are acknowledged.
+
+---
+
+## IMPORTANT — fix before launch, not strictly a hard block
+
+### Documentation & first impression
+- [ ] `README` — what it is, install, quickstart, screenshots that actually load.
+- [ ] `CONTRIBUTING.md`, `SECURITY.md` (real private reporting channel),
+ `CODE_OF_CONDUCT.md`, `CHANGELOG.md`.
+- [ ] `.env.example` / config-example files cover every required variable, with
+ **no real values**.
+
+### CI / supply chain
+- [ ] CI workflows have **least-privilege** `permissions:` (default read-only);
+ no secrets echoed to logs; no `pull_request_target` that checks out and runs
+ untrusted fork code.
+- [ ] Dependabot or equivalent is on; lockfiles are committed and current.
+- [ ] Branch protection on the default branch (require PR + green checks).
+
+### Build reproducibility
+- [ ] Fresh clone builds/installs from documented steps on a clean machine.
+- [ ] Pinned dependency versions; no path-dependent or machine-local assumptions.
+
+---
+
+## NICE-TO-HAVE — polish, can follow shortly after launch
+
+- [ ] Issue/PR templates under `.github/`.
+- [ ] A tagged release (`v1.0.0`) with release notes, not just a bare push.
+- [ ] `.gitattributes` for consistent line endings (esp. Windows projects).
+- [ ] Repo description, topics, social-preview image, pinned README sections.
+- [ ] Badges (build, license, version) all resolve; community/chat invite links valid.
+- [ ] Large binaries reviewed (Git LFS if needed); no accidental dumps.
+
+---
+
+## Verification commands (run in a fresh clone)
+
+```bash
+git ls-files | grep -iE '\.env$|\.pem$|\.key$|secret|credential|service-account'
+git log --all -p | gitleaks stdin # or: gitleaks detect
+git log --all --format='%an <%ae>' | sort -u # author-metadata leak check
+git grep -nIE 'AIza[0-9A-Za-z_-]{30}|sk-[A-Za-z0-9]{20}|ghp_[A-Za-z0-9]{36}'
+git ls-files | xargs du -k | sort -rn | head # biggest tracked files
+```
+
+A finding in any CRITICAL command = **stop and remediate before going public.**
diff --git a/docs/prompts/fix-voice-auto-submit-prompt.md b/docs/prompts/fix-voice-auto-submit-prompt.md
index edacc2b9e1..8e17aaf18f 100644
--- a/docs/prompts/fix-voice-auto-submit-prompt.md
+++ b/docs/prompts/fix-voice-auto-submit-prompt.md
@@ -2,7 +2,7 @@
You are working in the Personal Jarvis repository at:
-`C:\Users\Administrator\Desktop\Personal Jarvis`
+`<USER_HOME>\Desktop\Personal Jarvis`
Your task is to fix an intermittent voice bug: while the user is speaking a prompt to Jarvis, a very brief thinking or breathing pause, roughly 0.5 seconds, sometimes causes Jarvis to finalize and submit the prompt even though the user clearly has not finished the sentence. This is annoying because the brain receives a half-prompt and the conversation flow breaks.
diff --git a/docs/prompts/subagent-mission-reliability-deepdive.md b/docs/prompts/jarvis-agents-mission-reliability-deepdive.md
similarity index 98%
rename from docs/prompts/subagent-mission-reliability-deepdive.md
rename to docs/prompts/jarvis-agents-mission-reliability-deepdive.md
index 48dc68c310..e59fad1949 100644
--- a/docs/prompts/subagent-mission-reliability-deepdive.md
+++ b/docs/prompts/jarvis-agents-mission-reliability-deepdive.md
@@ -1,7 +1,7 @@
-# Deep-dive prompt — make sub-agent missions fast AND reliable, for good
+# Deep-dive prompt — make Jarvis-Agent missions fast AND reliable, for good
> Paste everything inside the fenced block below into a **fresh Claude Code session**
-> opened in `C:\Users\Administrator\Desktop\Personal Jarvis`. It is self-contained:
+> opened in `<USER_HOME>\Desktop\Personal Jarvis`. It is self-contained:
> all ground truth is inlined so the new session does not waste runs re-deriving it.
---
@@ -192,7 +192,7 @@ PHASE 4 — PROVE IT (this is the stop condition; do not declare success without
Report the measured distribution. If you cannot hit it, say so honestly with
the measured numbers and the reason — do not hand-wave.
5. Update the relevant memory file(s) under
- ~/.claude/projects/C--Users-Administrator-Desktop-Personal-Jarvis/memory/
+ ~/.claude/projects/<your-claude-project-dir>/memory/
with the confirmed root cause and the durable fix, and correct any stale note.
DELIVERABLE
diff --git a/docs/qa/voice-qa-checklist.md b/docs/qa/voice-qa-checklist.md
index f746fb0811..acf2932441 100644
--- a/docs/qa/voice-qa-checklist.md
+++ b/docs/qa/voice-qa-checklist.md
@@ -22,7 +22,7 @@ bug history says is most likely to quietly come back.
- [ ] Restart the app cleanly via `POST /api/settings/restart-app`
(`Stop-Process` returns *Access Denied* — the in-app endpoint is the reliable path).
-- [ ] Wake word triggers; the orb / whisper-bar reacts.
+- [ ] Wake word triggers; the orb / jarvis-bar reacts.
- [ ] App log or chat transcript is visible — language, beheaded-turn and
leaked-tool-output bugs are only obvious when you compare *what you said*
against *what came back*.
@@ -65,7 +65,7 @@ bug history says is most likely to quietly come back.
| D3 | "Open Discord." | Opens, English confirmation | Conjugation/alias + EN path | |
| D4 | "Öffne den Rechner und tippe 5 mal 5." | Multi-step goal completes | CU planner for compound goals | |
-## E — Sub-agent missions (heavy work)
+## E — Jarvis-Agent missions (heavy work)
| # | Say this | Pass criteria | Probes / red flag | Result |
|---|----------|---------------|-------------------|--------|
@@ -124,7 +124,7 @@ Chain the subsystems the way real use does — the single best "is the whole thi
- [ ] 3. "Okay, und merk dir bitte, dass ich morgen früh joggen gehen will." → memory write
- [ ] 4. "Öffne Chrome und such nach Laufschuhen." → computer-use + navigate
- [ ] 5. "Switch to English. Summarize what we just did." → language switch + context-aware recall
-- [ ] 6. "Schreib mir dazu ein kurzes Notiz-Skript." → heavy sub-agent mission
+- [ ] 6. "Schreib mir dazu ein kurzes Notiz-Skript." → heavy Jarvis-Agent mission
- [ ] 7. *(while it runs)* hold-to-abort it → cancel
A clean pass means greeting, search, memory, computer-use, mid-conversation language
diff --git a/docs/reference/jarvis-cli.md b/docs/reference/jarvis-cli.md
index a9c4972724..61be1b293c 100644
--- a/docs/reference/jarvis-cli.md
+++ b/docs/reference/jarvis-cli.md
@@ -3,7 +3,7 @@ title: "Reference: Jarvis-CLI"
slug: reference-jarvis-cli
diataxis: reference
status: active
-owner: harald
+owner: sam
last_reviewed: 2026-04-29
phase: "-"
audience: developer
@@ -73,7 +73,7 @@ jarvis --plugins
## Voice bridge: ``jarvis-ask``
-A thin CLI/HTTP bridge over which OpenClaw (or another
+A thin CLI/HTTP bridge over which a Jarvis-Agent (or another
CLI agent) can ask the user a question **by voice**. Jarvis reads
the question out via TTS, captures the spoken answer, and returns it on
stdout.
@@ -121,7 +121,7 @@ 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 sub-Jarvis-authored
+imports external OpenClaw skills, and promotes Jarvis-Agent-authored
drafts to ``state=active``.
**Synopsis:**
@@ -137,7 +137,7 @@ jarvis-skills (--list | --info NAME | --run NAME |
| ``--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. |
-| ``--list-drafts`` | List sub-Jarvis-authored drafts (``state=draft``). |
+| ``--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. |
**Examples:**
@@ -224,7 +224,7 @@ jarvis-review-gc --older-than 30d
## CLI tool registry (external tools)
A central registry indexes ~20 external CLI tools that the Brain-Manager
-(main Jarvis and sub-Jarvis) can dispatch as tools. Each
+(main Jarvis and Jarvis-Agents) can dispatch as tools. Each
entry carries a spec, auth profiles, a risk-tier default, and a probe status.
**Inventory (as of 2026-04-23, ``jarvis/clis/catalog/seed_catalog.json``):**
diff --git a/docs/release-notes/v0.8.0.md b/docs/release-notes/v0.8.0.md
index 977ad08f0d..d01c32b1e3 100644
--- a/docs/release-notes/v0.8.0.md
+++ b/docs/release-notes/v0.8.0.md
@@ -7,7 +7,7 @@
## Summary
Personal Jarvis gets a **quality-gate pipeline** that has the outputs of
-the sub-Jarvis worker validated by a
+the Jarvis-Agent worker validated by a
read-only review subagent before delivery to the user. On `needs_revision` the
worker is re-tasked with structured feedback (max 3 iterations).
Selective activation via tool description — smalltalk and tool calls
diff --git a/docs/sandbox-testing.md b/docs/sandbox-testing.md
new file mode 100644
index 0000000000..8c54a96c87
--- /dev/null
+++ b/docs/sandbox-testing.md
@@ -0,0 +1,69 @@
+# Isolated Jarvis Sandbox — testing the public build safely
+
+A throwaway, fully isolated copy of Jarvis, provisioned from a fresh clone of the
+public GitHub repo, so you experience **exactly what a stranger downloading it
+gets** — without touching your real config, data, or saved API keys.
+
+Design: [`docs/superpowers/specs/2026-06-24-jarvis-sandbox-testing-design.md`](superpowers/specs/2026-06-24-jarvis-sandbox-testing-design.md).
+
+## Why you can't just run a second copy
+
+A second native Jarvis started from a clone would otherwise share three
+machine-scoped things with your real install and quietly collide with it:
+
+- the **Windows Credential Manager** namespace (`personal-jarvis`) — it would read
+ your real API keys (spending your billing) and could overwrite them;
+- the **editable-install pin** — `pip install -e .` re-points the global
+ `import jarvis` to the clone;
+- your real **config and data** on disk.
+
+The sandbox seals all of these.
+
+## The four seams it seals
+
+| Seam | How it's isolated |
+|---|---|
+| Python import | a dedicated venv inside the sandbox; the global `import jarvis` is untouched |
+| Credentials | `keyring` is redirected to an isolated throwaway file backend — your real Credential Manager is never read or written |
+| Config | `JARVIS_CONFIG` points at the sandbox's own `jarvis.toml` |
+| Data | the separate clone makes the repo-relative `data/` resolve inside the sandbox; `LOCALAPPDATA` is also redirected so the subsystems that use the OS user-data dir (board stats, user skills, contacts, cli config — `%LOCALAPPDATA%\Jarvis`) stay in the sandbox too, instead of the real shared location |
+
+**Computer-Use is forced OFF** in the sandbox — a single physical machine cannot
+sandbox global mouse/keyboard/screenshot actions. The sandbox talks and shows its
+UI; it never drives your desktop. **Voice stays ON.**
+
+## Use it
+
+```powershell
+# 1. Provision from GitHub (fresh clone, isolated venv, isolation proofs):
+pwsh scripts\sandbox\new-jarvis-sandbox.ps1
+
+# 2. CLOSE your real Jarvis first — voice shares the one mic/speakers.
+
+# 3. (optional) put one provider key in the sandbox's .env, then launch:
+pwsh ..\Jarvis-Sandbox\run-sandbox.ps1
+
+# 4. When done, tear it down (goes to the Recycle Bin, reversible):
+pwsh scripts\sandbox\remove-jarvis-sandbox.ps1
+```
+
+The sandbox runs on its own port (default 47830), so it never clashes with your
+real app on 47821. The prebuilt web UI ships inside the repo now, so the sandbox
+needs no Node build.
+
+## Useful flags
+
+| Flag | Effect |
+|---|---|
+| `-SandboxRoot <path>` | where to build it (default: a `Jarvis-Sandbox` sibling of the repo) |
+| `-Ref <branch\|tag>` | which published version to clone (default: `main`) |
+| `-Port <int>` | sandbox web/admin port (default: 47830) |
+| `-Force` | replace an existing sandbox (old one goes to the Recycle Bin) |
+| `-Launch` | provision **and** launch in one go (otherwise it prints the launch command) |
+
+## What "isolated" is proven by
+
+The provisioner prints PASS/FAIL for each before it ever launches: the sandbox's
+`import jarvis` resolves inside the sandbox; the global `import jarvis` is
+unchanged from the baseline; the keyring backend is the file store (not
+`WinVaultKeyring`); and the prebuilt UI is present.
diff --git a/docs/self_mod.md b/docs/self_mod.md
index a02dc2a967..ef915be814 100644
--- a/docs/self_mod.md
+++ b/docs/self_mod.md
@@ -95,33 +95,51 @@ restore itself is also audited.
at most 50 (FIFO cap). Backups older than 30 days are checked, but not
removed below the floor.
-## 5. Extending the allowlist (for developers)
-
-The allowlist is hardcoded in
-`jarvis/core/self_mod/registry.py:SelfModRegistry.ALLOWED`. Plan §AD-1
-+ Plan §AP-11: no configuration file, because otherwise the model could
-edit the allowlist itself (constraint self-bypass).
-
-Steps:
-
-1. Add a new `MutableSpec(...)` to `SelfModRegistry.ALLOWED`.
- Fields: `path`, `pydantic_model_name`, `field_name`, `risk_tier`,
- `needs_restart`, `description`, `sensitive` (default `False`).
-2. Ensure the path has a Pydantic field in `JarvisConfig`
- (`jarvis/core/config.py`) — otherwise pre-validate would silently
- ignore it.
-3. Add a test in `tests/unit/self_mod/test_registry.py`.
-4. PR with a plan update in `docsplansphase-7-self-mod/JARVIS_SELFMOD_PLAN.md`
- §7.1 allowlist table.
-
-**Sensitive paths** (API keys, tokens): NEVER in the allowlist. Phase 7.7
-(UI keyring editing) is the intended path for API-key mutations.
+## 5. The mutable set — schema-derived (Voice-First Config Control, Wave 1.1)
+
+The mutable set is **no longer a hand-maintained list**. It is computed once
+(lazily, then cached) by walking the `JarvisConfig` schema: every leaf primitive
+field (str/int/float/bool, incl. `Optional`/`Literal`) becomes voice-mutable,
+minus `FORBIDDEN_PATTERNS`. See `jarvis/core/self_mod/schema_introspect.py`
+(`introspect_mutable_specs`) and the curated `overrides.OVERRIDES` table.
+
+**AD-1 / AP-11 are preserved (reinterpreted):** the set is still fixed by *code*
+(the schema + overrides) and is computed at first use, NOT a runtime
+`register()` the model could call. A new mutable field appears only by editing
+`JarvisConfig` (which is code-reviewed). We only moved from "explicit list" to
+"whole schema minus the deny layer". The model still cannot widen the set.
+
+Adding/refining a setting:
+
+1. A new leaf field on a `JarvisConfig` section is mutable **automatically** —
+ no registry edit needed.
+2. To refine it (a SAFE risk-tier so REST/CLI auto-applies it, a hot-reload
+ `needs_restart=False`, a nicer spoken `description`), add a `SpecOverride`
+ for its path in `jarvis/core/self_mod/overrides.py`.
+3. For an **undeclared** `extra="allow"` key the schema walk can't see (e.g.
+ `ui.theme`), the override must carry `pydantic_model_name` + `field_name` to
+ force-include it.
+4. The parity guard (`tests/unit/self_mod/test_registry.py::TestAllowlistField
+ Parity`) checks every emitted spec against the real schema automatically.
+
+**Forbidden paths** (`jarvis/core/self_mod/forbidden.py`): secrets / API keys /
+privileged sections (`security.*`, `safety.*`, `harness.*`, `mcp_server.*`,
+`*_api_key`, …) are NEVER in the set — read or write. They surface as an honest
+voice *refusal*, not a confirmation. The "self-lockout" class is mostly closed
+by architecture (no STT/TTS enable flags exist; the provider `enabled` list is a
+`list`, which the walk skips; a broken config is rolled back) — see the module
+docstring before adding any path there.
+
+**Voice vs. REST/CLI confirmation:** the brain (voice/chat) wiring uses
+`auto_apply="all"` (apply immediately, then an honest deterministic readback —
+`jarvis/voice/config_readback.py`); REST/CLI keep the SAFE-auto / ASK-confirm
+split (`auto_apply="safe_only"`).
## 6. Skill authoring (Plan §7.5)
A voice command like "Erstelle einen Skill, der Spotify pausiert wenn ich
rede" (Create a skill that pauses Spotify when I speak) → main Jarvis
-calls the `spawn_skill_author` tool → sub-Jarvis (Opus 4.7) generates
+calls the `spawn_skill_author` tool → a Jarvis-Agent (Opus 4.7) generates
SKILL.md → forces `state=draft`. The draft lands in
`~/.jarvis/skills/<slug>/` and is visible in the hot-reload pool, but is
**not active**.
diff --git a/docs/spike-results-openclaw.md b/docs/spike-results-jarvis-agents.md
similarity index 97%
rename from docs/spike-results-openclaw.md
rename to docs/spike-results-jarvis-agents.md
index 523e262546..d118e71090 100644
--- a/docs/spike-results-openclaw.md
+++ b/docs/spike-results-jarvis-agents.md
@@ -1,8 +1,8 @@
-# OpenClaw Bridge Spike — empirical findings (SP-1..SP-8)
+# Jarvis-Agents Bridge Spike — empirical findings (SP-1..SP-8)
**Status:** Done — Wave 1 completed on 2026-05-09
**Script:** `scripts/spikes/openclaw_probe.ps1`
-**Reference:** `docs/openclaw-bridge.md` §6 Open spike questions
+**Reference:** `docs/jarvis-agents-bridge.md` §6 Open spike questions
**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)
@@ -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 `C:\Users\Administrator\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
@@ -40,7 +40,7 @@
- `runtime: Native Windows`, `node-version: v24.13.0`, `pnpm-version: 10.33.2`
- `openclaw-version: OpenClaw 2026.5.7 (eeef486)`
- Installation via `npm i -g openclaw` builds 559 packages without native-build errors
-- Path: `C:\Users\Administrator\AppData\Roaming\npm\openclaw{.cmd, .ps1}`
+- Path: `<USER_HOME>\AppData\Roaming\npm\openclaw{.cmd, .ps1}`
**Assessment:** Architecture OK — no WSL2 plan B needed.
@@ -246,7 +246,7 @@ The same for `--cwd` and `--working-directory`. All three flags were rejected wi
## Bridge architecture findings (B-1..B-12)
-These findings are the condensed architecture implications from the SP tests. They belong in `docs/openclaw-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 openclaw-doc-update`).
### B-1: Spawn pattern (corrected)
@@ -284,7 +284,7 @@ OpenClaw knows **46 providers** in total (`openclaw models list --all` shows 112
Pre-spawn requirement in the bridge:
1. Read `cfg.brain.primary` (e.g. `"gemini"`)
2. Map → OpenClaw slug `"google"`
-3. Model from `cfg.brain.providers.gemini.model` (hot path) or `.deep_model` (sub-Jarvis tier)
+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 subprocess
5. `openclaw agent --local --model google/<model> ...`
diff --git a/docs/superpowers/plans/2026-05-11-pre-thinking-ack-flash-brain-impl-plan.md b/docs/superpowers/plans/2026-05-11-pre-thinking-ack-flash-brain-impl-plan.md
index 0a3cf5f99a..40224f9bc4 100644
--- a/docs/superpowers/plans/2026-05-11-pre-thinking-ack-flash-brain-impl-plan.md
+++ b/docs/superpowers/plans/2026-05-11-pre-thinking-ack-flash-brain-impl-plan.md
@@ -47,7 +47,7 @@ Welle 5 (sequential):
└──────────────────────────────┘
```
-**Total: 6 OpenClaw instances** if E1+E2 run parallel, the rest sequentially.
+**Total: 6 Jarvis-Agent instances** if E1+E2 run parallel, the rest sequentially.
---
@@ -842,7 +842,7 @@ from __future__ import annotations
__all__ = ["PERSONA_PROMPT_DE", "PERSONA_PROMPT_EN", "get_persona_prompt"]
-PERSONA_PROMPT_DE = """Du bist JARVIS, der persönliche Assistent von Ruben. Sprich kurz, natürlich
+PERSONA_PROMPT_DE = """Du bist JARVIS, der persönliche Assistent von Alex. Sprich kurz, natürlich
und kontextspezifisch — wie ein cleverer Kollege, der weiß, was er tut.
Deine einzige Aufgabe: ein kurzer Bestätigungssatz, BEVOR die eigentliche
@@ -851,7 +851,7 @@ weiß, dass du verstanden hast und gerade arbeitest.
Regeln:
- EXAKT EIN Satz. Maximal 12 Wörter.
-- Sprich Ruben gelegentlich mit "Chef" an (etwa 1 von 3 Sätzen), nicht
+- Sprich Alex gelegentlich mit "Chef" an (etwa 1 von 3 Sätzen), nicht
immer. Sei locker, nicht förmlich. Niemals "Sehr wohl" oder "Sir".
- Nenne wenn möglich das konkrete Thema.
- Passe die Tonalität an:
@@ -893,7 +893,7 @@ Antworte AUSSCHLIESSLICH mit dem Bestätigungssatz oder leerem String.
Kein Markdown, kein Kommentar, keine Erklärung."""
-PERSONA_PROMPT_EN = """You are JARVIS, Ruben's personal assistant. Speak short, natural, and
+PERSONA_PROMPT_EN = """You are JARVIS, Alex's personal assistant. Speak short, natural, and
context-specific — like a clever colleague who knows what they're doing.
Your only task: a brief confirmation sentence, BEFORE the actual work
@@ -902,7 +902,7 @@ and are now working.
Rules:
- EXACTLY ONE sentence. Maximum 12 words.
-- Address Ruben casually. Avoid "Sir", "Boss", "Chief". A neutral
+- Address Alex casually. Avoid "Sir", "Boss", "Chief". A neutral
"On it" or "Got it" is fine, no fixed honorific.
- Mention the concrete topic when possible.
- Match tonality:
@@ -996,7 +996,7 @@ EOF
- [ ] `pytest tests/unit/brain/test_ack_brain/test_persona_prompt.py -v` → 18 pass
- [ ] `python -c "from jarvis.brain.ack_brain.persona_prompt import PERSONA_PROMPT_DE; print(len(PERSONA_PROMPT_DE))"` prints a number < 1500
-- [ ] `python -c "from jarvis.brain.ack_brain.persona_prompt import get_persona_prompt; print(get_persona_prompt('en')[:30])"` prints `You are JARVIS, Ruben's perso`
+- [ ] `python -c "from jarvis.brain.ack_brain.persona_prompt import get_persona_prompt; print(get_persona_prompt('en')[:30])"` prints `You are JARVIS, Alex's perso`
- [ ] One commit on the working branch
- [ ] No regression on previously-passing tests
diff --git a/docs/superpowers/plans/2026-05-17-orb-drag-impl-plan.md b/docs/superpowers/plans/2026-05-17-orb-drag-impl-plan.md
index af52ced6c0..d0ca231207 100644
--- a/docs/superpowers/plans/2026-05-17-orb-drag-impl-plan.md
+++ b/docs/superpowers/plans/2026-05-17-orb-drag-impl-plan.md
@@ -1408,7 +1408,7 @@ Use `bh` (browser-harness) or direct mouse via PowerShell/`SendInput` to:
- [ ] **Step 3: Persistence verification**
```
-Get-Content "C:/Users/Administrator/Desktop/Personal Jarvis/jarvis.toml" | Select-String "overlay.mascot" -Context 0,5
+Get-Content "<USER_HOME>/Desktop/Personal Jarvis/jarvis.toml" | Select-String "overlay.mascot" -Context 0,5
```
Expected: section present with the dragged coordinates.
@@ -1428,7 +1428,7 @@ Wait. Orb must reappear at the **dragged** position, not the tray edge.
Double-click the orb. Orb must jump back to the bottom-right tray position.
```
-Get-Content "C:/Users/Administrator/Desktop/Personal Jarvis/jarvis.toml" | Select-String "overlay.mascot" -Context 0,5
+Get-Content "<USER_HOME>/Desktop/Personal Jarvis/jarvis.toml" | Select-String "overlay.mascot" -Context 0,5
```
Expected: section header may remain but the three position_* keys are gone.
diff --git a/docs/superpowers/plans/2026-05-25-semantic-hangup-detection.md b/docs/superpowers/plans/2026-05-25-semantic-hangup-detection.md
index 2a96bada54..a68a948b73 100644
--- a/docs/superpowers/plans/2026-05-25-semantic-hangup-detection.md
+++ b/docs/superpowers/plans/2026-05-25-semantic-hangup-detection.md
@@ -15,7 +15,7 @@
- **Two voice surfaces.** Microphone: `jarvis/speech/pipeline.py`. Telephony: `jarvis/telephony/session.py`. Both consume the *same* brain (`build_default_brain(tier="router")`), which loads `jarvis/brain/JARVIS_PERSONA.md` into its system prompt via `jarvis/brain/persona_loader.py:load_persona_prompt()`. Only the **fenced code block** after the `## System-Prompt` line in that `.md` is injected — edits outside the fence are documentation only.
- **Today's hang-up paths.**
1. Pre-brain regex `HANGUP_RE` matched against the transcript (`pipeline.py:2224`, telephony `session.py:231`). Literal only.
- 2. Post-brain exact-string match against `"goodbye, ruben"` / `"auf wiedersehen, ruben"` (`pipeline.py:2351` streamed, `pipeline.py:2432` non-streamed). Fragile — any paraphrase breaks it. Telephony has no brain-signal path.
+ 2. Post-brain exact-string match against `"goodbye, alex"` / `"auf wiedersehen, alex"` (`pipeline.py:2351` streamed, `pipeline.py:2432` non-streamed). Fragile — any paraphrase breaks it. Telephony has no brain-signal path.
- **`scrub_for_voice`** (`jarvis/brain/output_filter.py:334`) is the regex-only TTS sanitizer every spoken path runs through. Adding the sentinel-strip here is defense-in-depth so the token can never be spoken even if a detection site is missed. **It runs BEFORE we read the hang-up signal in some paths — so hang-up detection must read the RAW brain response, before scrub.**
- **Hang-up reason:** reuse `HANGUP_VOICE_PATTERN` (`jarvis/sessions/constants.py:33`) for the mic path (its docstring already covers "inferred from a closing intent") and the existing `"hangup_phrase"` for telephony. **No new enum value** → the five-layer parity test (`tests/unit/sessions/test_hangup_reason_parity.py`) stays untouched and green.
- **Test harnesses to reuse:** `tests/unit/speech/test_turn_taking.py` has `_make_pipeline(...)` (builds a `SpeechPipeline` via `__new__` with stubbed `_brain_with_ack` + `_speak`, `_config=None` so `_streaming_enabled()` is False → the non-streaming path runs), `FakeSTT`, `SlowPlayer`. `tests/unit/telephony/test_session.py` has `_make_session(...)`, `_drive_one_utterance(...)`, `_Sink`. Fakes `FakeBrain`/`FakeTTS` are in `tests/fakes/fake_telephony_stack.py` (`FakeTTS.calls` records every `(text, language_code)` synthesized — use it to prove the sentinel never reaches TTS).
@@ -119,14 +119,14 @@ def test_hangup_re_ignores_ambiguous_and_normal_speech(phrase: str) -> None:
def test_contains_end_signal_detects_token() -> None:
- assert contains_end_signal("Bis später, Ruben. [[END_CALL]]") is True
- assert contains_end_signal("Bis später, Ruben.") is False
+ assert contains_end_signal("Bis später, Alex. [[END_CALL]]") is True
+ assert contains_end_signal("Bis später, Alex.") is False
assert contains_end_signal("") is False
assert contains_end_signal(None) is False # type: ignore[arg-type]
def test_strip_end_signal_removes_token_and_trims() -> None:
- assert strip_end_signal("Bis später, Ruben. [[END_CALL]]") == "Bis später, Ruben."
+ assert strip_end_signal("Bis später, Alex. [[END_CALL]]") == "Bis später, Alex."
assert strip_end_signal("[[END_CALL]]") == ""
assert strip_end_signal("Auf Wiedersehen.") == "Auf Wiedersehen."
@@ -138,10 +138,10 @@ def test_end_call_signal_is_the_documented_token() -> None:
@pytest.mark.parametrize(
"phrase",
[
- "goodbye, ruben",
- "goodbye ruben",
- "auf wiedersehen, ruben",
- "auf wiedersehen ruben",
+ "goodbye, alex",
+ "goodbye alex",
+ "auf wiedersehen, alex",
+ "auf wiedersehen alex",
"goodbye, sir",
"goodbye sir",
],
@@ -151,8 +151,8 @@ def test_is_legacy_farewell_matches_old_exact_phrases(phrase: str) -> None:
def test_is_legacy_farewell_rejects_other_text() -> None:
- assert is_legacy_farewell("auf wiedersehen ruben war mir ein vergnügen") is False
- assert is_legacy_farewell("hallo ruben") is False
+ assert is_legacy_farewell("auf wiedersehen alex war mir ein vergnügen") is False
+ assert is_legacy_farewell("hallo alex") is False
assert is_legacy_farewell("") is False
```
@@ -188,7 +188,7 @@ This module unifies both:
may phrase the farewell naturally instead of emitting a magic string.
3. ``is_legacy_farewell`` — backward compatibility for the old exact phrases
- ("auf wiedersehen, ruben" / "goodbye, ruben"), so a brain instance still
+ ("auf wiedersehen, alex" / "goodbye, alex"), so a brain instance still
running the previous persona contract continues to hang up during rollout.
Standard-library only (``re``). It must stay free of ``sounddevice`` and any
@@ -281,10 +281,10 @@ def strip_end_signal(text: str | None) -> str:
# --- Legacy exact-farewell fallback (backward compatibility) --------------
LEGACY_FAREWELL_PHRASES: Final[frozenset[str]] = frozenset(
{
- "goodbye, ruben",
- "goodbye ruben",
- "auf wiedersehen, ruben",
- "auf wiedersehen ruben",
+ "goodbye, alex",
+ "goodbye alex",
+ "auf wiedersehen, alex",
+ "auf wiedersehen alex",
"goodbye, sir",
"goodbye sir",
}
@@ -338,9 +338,9 @@ Append to `tests/unit/brain/test_output_filter.py` (module already imports `scru
def test_scrub_strips_end_call_sentinel() -> None:
from jarvis.speech.hangup import END_CALL_SIGNAL
- result = scrub_for_voice(f"Bis später, Ruben. {END_CALL_SIGNAL}", language="de")
+ result = scrub_for_voice(f"Bis später, Alex. {END_CALL_SIGNAL}", language="de")
assert END_CALL_SIGNAL not in result.cleaned
- assert result.cleaned.strip() == "Bis später, Ruben."
+ assert result.cleaned.strip() == "Bis später, Alex."
assert "stripped_end_signal" in result.actions
@@ -428,22 +428,22 @@ Expected: FAIL — `[[END_CALL]]` not yet in the persona.
In `jarvis/brain/JARVIS_PERSONA.md`, **inside the fenced `## System-Prompt` block**, replace this exact text (currently lines 95-98):
```
-- When the conversation ends or Ruben dismisses you, reply with
+- When the conversation ends or Alex dismisses you, reply with
EXACTLY one of (depending on his language):
- EN: Goodbye, Ruben.
- DE: Auf Wiedersehen, Ruben.
+ EN: Goodbye, Alex.
+ DE: Auf Wiedersehen, Alex.
```
with:
```
-- ENDING THE CALL — only when Ruben clearly wants to end the conversation
+- ENDING THE CALL — only when Alex clearly wants to end the conversation
(an explicit goodbye, a dismissal such as "you can go now" / "kannst du
jetzt gehen" / "das war's für heute", or telling you to hang up): say a
short, natural farewell in HIS language AND append the control token
[[END_CALL]] as the very last characters of your reply.
- EN: "Goodbye, Ruben. [[END_CALL]]" / "Until next time, Ruben. [[END_CALL]]"
- DE: "Auf Wiedersehen, Ruben. [[END_CALL]]" / "Bis später, Ruben. [[END_CALL]]"
+ EN: "Goodbye, Alex. [[END_CALL]]" / "Until next time, Alex. [[END_CALL]]"
+ DE: "Auf Wiedersehen, Alex. [[END_CALL]]" / "Bis später, Alex. [[END_CALL]]"
The token is silent — it is stripped before anything is spoken and only
tells the system to hang up. If you are NOT sure he wants to end (he merely
paused, is thinking, or just thanked you), do NOT append the token and do
@@ -456,8 +456,8 @@ Then update the documentation prose **outside** the fence so it stays accurate.
## Hangup-Signal (Pipeline-Contract)
Die Pipeline erkennt Hangup wenn die Brain-Antwort (normalisiert) equals einer von:
-- `"goodbye, ruben"` (englisch)
-- `"auf wiedersehen, ruben"` (deutsch)
+- `"goodbye, alex"` (englisch)
+- `"auf wiedersehen, alex"` (deutsch)
Der Brain MUSS exakt eine dieser beiden Phrasen ausgeben um aufzulegen — sprachabhängig
entsprechend der User-Sprache.
@@ -473,14 +473,14 @@ The pipeline hangs up when the brain response contains the control sentinel
speaks a natural farewell and appends the token; `scrub_for_voice` strips it
before TTS. Conservative bias: emit the token only on a clear intent to end.
-Backward compatibility: the old exact phrases `"goodbye, ruben"` /
-`"auf wiedersehen, ruben"` still trigger a hangup via `is_legacy_farewell`.
+Backward compatibility: the old exact phrases `"goodbye, alex"` /
+`"auf wiedersehen, alex"` still trigger a hangup via `is_legacy_farewell`.
```
And update the cross-reference line (currently line 133):
```
-- Hangup-Matcher: `pipeline.py` — normalized equals gegen `"goodbye, ruben"` oder `"auf wiedersehen, ruben"`
+- Hangup-Matcher: `pipeline.py` — normalized equals gegen `"goodbye, alex"` oder `"auf wiedersehen, alex"`
```
to:
@@ -520,14 +520,14 @@ async def test_brain_end_call_sentinel_hangs_up_and_is_not_spoken() -> None:
# command, so the brain decides — and signals end via the sentinel.
pipe = _make_pipeline(
FakeSTT(text="Ich glaube wir sind durch"),
- brain_response="Bis später, Ruben. [[END_CALL]]",
+ brain_response="Bis später, Alex. [[END_CALL]]",
continue_listening_after_response=True, # prove hangup overrides stay-open
)
keep_session = await pipe._handle_utterance(b"\x01\x00" * 1024)
assert keep_session is False
- assert pipe._spoken == [("Bis später, Ruben.", "de")] # sentinel stripped
+ assert pipe._spoken == [("Bis später, Alex.", "de")] # sentinel stripped
assert pipe._session_end_reason == "voice_pattern"
assert pipe._hangup_event.is_set()
@@ -539,7 +539,7 @@ async def test_polite_thanks_no_longer_auto_hangs_up() -> None:
# sentinel) keeps the conversation open. Realizes "stay on when unsure".
pipe = _make_pipeline(
FakeSTT(text="Vielen Dank"),
- brain_response="Gern geschehen, Ruben.",
+ brain_response="Gern geschehen, Alex.",
continue_listening_after_response=True,
)
@@ -569,7 +569,7 @@ async def test_brain_streaming_strips_sentinel_but_keeps_it_in_full_text() -> No
class _StreamBrain:
async def generate_stream(self, _text: str, **_kw):
- for ch in ["Alles erledigt. ", "Bis später, Ruben. ", "[[END_CALL]]"]:
+ for ch in ["Alles erledigt. ", "Bis später, Alex. ", "[[END_CALL]]"]:
yield ch
pipe._brain = _StreamBrain()
@@ -616,8 +616,8 @@ In `_handle_utterance`, replace this exact block (currently `pipeline.py:2350-23
```python
normalized = response.strip().rstrip("!.").strip().lower()
is_hangup = normalized in (
- "goodbye, ruben", "goodbye ruben",
- "auf wiedersehen, ruben", "auf wiedersehen ruben",
+ "goodbye, alex", "goodbye alex",
+ "auf wiedersehen, alex", "auf wiedersehen alex",
"goodbye, sir", "goodbye sir",
)
```
@@ -654,11 +654,11 @@ Then remove the now-redundant recomputation. Replace this exact block (currently
```python
# Brain-basiertes Hangup: Claude antwortet bei Hangup-Intent mit exakt
- # "Goodbye, Ruben." (EN) oder "Auf Wiedersehen, Ruben." (DE).
+ # "Goodbye, Alex." (EN) oder "Auf Wiedersehen, Alex." (DE).
normalized = response.strip().rstrip("!.").strip().lower()
is_hangup = normalized in (
- "goodbye, ruben", "goodbye ruben",
- "auf wiedersehen, ruben", "auf wiedersehen ruben",
+ "goodbye, alex", "goodbye alex",
+ "auf wiedersehen, alex", "auf wiedersehen alex",
"goodbye, sir", "goodbye sir", # Backward-Compat
)
# Jarvis spricht — Orb-Mode wechselt zur Speak-Wellenform
@@ -699,7 +699,7 @@ Append to `tests/unit/telephony/test_session.py` (reuses `_make_session`, `_driv
```python
async def test_brain_end_call_sentinel_ends_call_after_speaking():
sink = _Sink()
- brain = FakeBrain("Auf Wiedersehen, Ruben. [[END_CALL]]")
+ brain = FakeBrain("Auf Wiedersehen, Alex. [[END_CALL]]")
tts = FakeTTS(ms_per_char=2)
session = _make_session(
sink,
diff --git a/docs/superpowers/plans/2026-05-27-cartesia-tts-integration.md b/docs/superpowers/plans/2026-05-27-cartesia-tts-integration.md
index 2ab3f0857e..75149b4a2f 100644
--- a/docs/superpowers/plans/2026-05-27-cartesia-tts-integration.md
+++ b/docs/superpowers/plans/2026-05-27-cartesia-tts-integration.md
@@ -721,7 +721,7 @@ JARVIS_VOICE=0 python -m jarvis.ui.web.launcher --no-lock
Once the window is up, navigate to **API Keys** in the sidebar. Take a screenshot showing the Cartesia card under the TTS section. Save the screenshot to:
```
-C:\Users\Administrator\Downloads\cartesia-tts\cartesia-api-keys-card.png
+<USER_HOME>\Downloads\cartesia-tts\cartesia-api-keys-card.png
```
- [ ] **Step 5.4: Commit (no code changes; this task is verification-only)**
diff --git a/docs/superpowers/plans/2026-06-07-plugin-skill-pairing-reachability.md b/docs/superpowers/plans/2026-06-07-plugin-skill-pairing-reachability.md
index 9a780171d3..1e3cc54e4e 100644
--- a/docs/superpowers/plans/2026-06-07-plugin-skill-pairing-reachability.md
+++ b/docs/superpowers/plans/2026-06-07-plugin-skill-pairing-reachability.md
@@ -20,7 +20,7 @@
**Skill execution contract (Agent 2, `skill-pairing-architect`).** In production the `SkillRunner` is built WITHOUT a `tool_registry` (D9 recursion guard) — so `TOOL:` lines in a skill body silently no-op (`runner.py` resolves them to None). **Therefore a plugin-paired skill must NOT contain executing `TOOL:` lines.** Its body is GUIDANCE PROSE returned to the brain via Path B (`render_available_skills_section` at `manager.py:1168-1179` injects name+description; `run-skill` returns the rendered body, and the brain then issues the plugin tool-call itself). This path works today with no wiring change.
-**The hard-negative trap (Agent 1, Risk 1).** "implementier eine Email-Validation" must STAY generic sub-agent work, never become a Gmail call. `\bemail\b` matches "Email-Validation", so `intent_objects` must use inbox-specific nouns (`postfach`, `inbox`, `gmail`) and MUST NOT contain bare `email`/`e-mail`. `intent_verbs` must exclude coding verbs (`implementier`/`baue`/`schreib`). Guarded by `tests/integration/test_capability_coupling_e2e.py` (hard-negatives at ~46-87). The four non-Gmail hard-negatives (Termin/WhatsApp/Pizza/X-posting) have no backing tool and MUST remain `UNSUPPORTED`.
+**The hard-negative trap (Agent 1, Risk 1).** "implementier eine Email-Validation" must STAY generic Jarvis-Agent work, never become a Gmail call. `\bemail\b` matches "Email-Validation", so `intent_objects` must use inbox-specific nouns (`postfach`, `inbox`, `gmail`) and MUST NOT contain bare `email`/`e-mail`. `intent_verbs` must exclude coding verbs (`implementier`/`baue`/`schreib`). Guarded by `tests/integration/test_capability_coupling_e2e.py` (hard-negatives at ~46-87). The four non-Gmail hard-negatives (Termin/WhatsApp/Pizza/X-posting) have no backing tool and MUST remain `UNSUPPORTED`.
---
@@ -406,7 +406,7 @@ def test_boot_registers_paired_gmail_capability():
)
n = register_paired_capabilities(reg, [gmail])
assert n == 1
- assert reg.resolve_intent("schick eine Mail an Harald aus meinem Postfach") is not None
+ assert reg.resolve_intent("schick eine Mail an Sam aus meinem Postfach") is not None
```
- [ ] **Step 3: Run test to verify it fails / passes**
@@ -609,7 +609,7 @@ def _reg_with_gmail() -> CapabilityRegistry:
def test_gmail_request_with_domain_noun_resolves_to_gmail():
reg = _reg_with_gmail()
for utt in [
- "Schick eine Email an [email protected] mit dem Betreff Hallo", # i18n-allow
+ "Schick eine Email an [email protected] mit dem Betreff Hallo", # i18n-allow
"lies meine letzte Mail aus dem Postfach", # i18n-allow
"check mein Postfach", # i18n-allow
]:
@@ -713,7 +713,7 @@ def test_gmail_request_resolves_when_paired():
reg = CapabilityRegistry()
register_paired_capabilities(reg, [_gmail_skill()])
# The gate must NOT return UNSUPPORTED — resolve_intent is non-None now.
- plan = match_local_action("schick eine Mail an Harald aus meinem Postfach", _registry=reg) # i18n-allow
+ plan = match_local_action("schick eine Mail an Sam aus meinem Postfach", _registry=reg) # i18n-allow
assert plan is None or plan.mode != LocalActionMode.UNSUPPORTED
@@ -759,7 +759,7 @@ git commit -m "test(reachability): paired Gmail resolves; 4 non-tool hard-negati
> Author `jarvis/skills/builtin/plugin-<id>/SKILL.md` — the canonical paired skill for the `<id>` marketplace plugin. READ FIRST: `jarvis/marketplace/seed_catalog.json` (the `<id>` entry), `jarvis/marketplace/usage_cards/<id>.md` if present, `jarvis/skills/schema.py` (frontmatter contract), and `jarvis/skills/builtin/<any existing>/SKILL.md` for format. Then write the SKILL.md with this frontmatter:
> - `name: plugin-<id>`, `plugin_id: <id>`, `description:` ONE English sentence the brain sees in AVAILABLE SKILLS.
-> - `intent_verbs:` curated DE+EN action verbs for THIS plugin's real use (e.g. for stripe: `zeig, lies, erstatt, refund, charge`). **THIS IS THE PRIMARY HARD-NEGATIVE GUARD: EXCLUDE coding verbs** (`implementier`, `baue`, `schreib`, `entwickel`, `refactor`, `debug`) — they belong to generic sub-agent work. (Per Task 5.5, a paired-skill cap only matches when BOTH a verb AND a domain object hit; so excluding coding verbs is what keeps "implementier eine Email-Validation" off the gmail cap, even though `email` IS an allowed object — see next line.)
+> - `intent_verbs:` curated DE+EN action verbs for THIS plugin's real use (e.g. for stripe: `zeig, lies, erstatt, refund, charge`). **THIS IS THE PRIMARY HARD-NEGATIVE GUARD: EXCLUDE coding verbs** (`implementier`, `baue`, `schreib`, `entwickel`, `refactor`, `debug`) — they belong to generic Jarvis-Agent work. (Per Task 5.5, a paired-skill cap only matches when BOTH a verb AND a domain object hit; so excluding coding verbs is what keeps "implementier eine Email-Validation" off the gmail cap, even though `email` IS an allowed object — see next line.)
> - `intent_objects:` domain-SPECIFIC nouns — the words a user says when they mean THIS product's data. The plugin cap requires an object hit (Task 5.5), so these must be rich enough to cover real phrasings: for gmail use `postfach, inbox, gmail, posteingang, mail, email, mails, nachrichten`. Bare `email`/`mail` IS allowed and needed (so "Schick eine Email" matches) — the coding-task guard lives in the verb list, NOT here. AVOID nouns that belong to a DIFFERENT domain (don't put `nachricht` alone on gmail if it would steal WhatsApp/SMS requests — prefer `mail`/`postfach`).
> - `triggers:` ONE `voice` trigger with a permissive `pattern` regex matching natural phrasing.
> - `requires_tools:` the plugin's namespaced tools (e.g. `stripe/list_customers`) for documentation — these are advisory.
@@ -838,7 +838,7 @@ def test_paired_skills_exclude_coding_verbs():
only matches when a verb AND a domain object both hit, so the hard-negative
guard lives in the VERB list — no paired skill may carry a coding verb, or
'implementier eine Email-Validation' (a coding task that names the domain)
- would resolve to the plugin instead of staying generic sub-agent work."""
+ would resolve to the plugin instead of staying generic Jarvis-Agent work."""
skills = discover_skills(_BUILTIN)
offenders = []
for s in skills:
@@ -851,7 +851,7 @@ def test_paired_skills_exclude_coding_verbs():
assert not offenders, (
f"paired skills carrying coding verbs (would hijack coding tasks that "
f"merely name the domain): {offenders}. Remove coding verbs from "
- f"intent_verbs — they belong to generic sub-agent work."
+ f"intent_verbs — they belong to generic Jarvis-Agent work."
)
```
@@ -882,7 +882,7 @@ These are surfaced by the deep-dive but are independent fixes. File them; fix af
## Risks / Hard-Negatives (must not regress)
-1. **"implementier eine Email-Validation" → must stay generic sub-agent work.** Guarded by `test_plugin_coupling.py::test_gmail_objects_do_not_match_email_validation`, `test_resolve_intent_skill_precision.py`, and `test_plugin_skill_parity.py::test_paired_skills_exclude_coding_verbs`. **Corrected mechanism (Task 5.5):** the guard is VERB-based — paired-skill `intent_verbs` must EXCLUDE coding verbs (`implementier`/`baue`/`schreib`/`entwickel`/`refactor`/`debug`). The object `email`/`mail` IS allowed (and required for "Schick eine Email" to match), because a paired-skill cap only matches when a verb AND an object both hit; with no coding verb in the list, "implementier eine Email-Validation" never gets a verb hit on the gmail cap.
+1. **"implementier eine Email-Validation" → must stay generic Jarvis-Agent work.** Guarded by `test_plugin_coupling.py::test_gmail_objects_do_not_match_email_validation`, `test_resolve_intent_skill_precision.py`, and `test_plugin_skill_parity.py::test_paired_skills_exclude_coding_verbs`. **Corrected mechanism (Task 5.5):** the guard is VERB-based — paired-skill `intent_verbs` must EXCLUDE coding verbs (`implementier`/`baue`/`schreib`/`entwickel`/`refactor`/`debug`). The object `email`/`mail` IS allowed (and required for "Schick eine Email" to match), because a paired-skill cap only matches when a verb AND an object both hit; with no coding verb in the list, "implementier eine Email-Validation" never gets a verb hit on the gmail cap.
2. **The four non-tool hard-negatives (Termin/WhatsApp/Pizza/X-posting) must stay UNSUPPORTED.** They have no backing plugin/tool, so no paired skill exists → no capability → `resolve_intent` stays None → refusal holds. Guarded by the untouched entries in `test_capability_coupling_e2e.py`.
3. **Skill bodies must not contain executing `TOOL:` lines.** Production SkillRunner has no tool_registry (D9 guard) → they no-op silently. Enforced by the Phase 1 reviewer brief; consider a follow-up lint in `test_plugin_skill_parity.py` scanning bodies for `^TOOL:`.
4. **Disconnect teardown.** A disconnected plugin must lose its capability (Task 5 `_deregister`), else a disconnected Gmail still resolves and the brain calls a tool that returns "not connected". Guarded by `test_plugin_capability_lifecycle.py`.
diff --git a/docs/superpowers/plans/2026-06-08-voice-latency-collapse-fix.md b/docs/superpowers/plans/2026-06-08-voice-latency-collapse-fix.md
index a64f6a1616..ef939be0ca 100644
--- a/docs/superpowers/plans/2026-06-08-voice-latency-collapse-fix.md
+++ b/docs/superpowers/plans/2026-06-08-voice-latency-collapse-fix.md
@@ -24,7 +24,7 @@ Two read-only deep-dive agents (code-path tracer + runtime forensics on the live
**Root cause #3 — latent landmines (not currently firing):** `_collect_vision_images` is awaited with **no timeout** (`manager.py:2682`); `openai`/`grok`/`openrouter` clients use the SDK default **600 s** read timeout (`openai.py:31`, `grok.py:39`, `openrouter.py:36`) — a hung backup provider could hold a turn for up to 90 s (stall ceiling) today and far longer if the stall guard were ever bypassed.
-**Root cause #4 — structural (aligns with user intent):** Computer-Use is awaited INLINE on the voice path for up to 31 s (`manager.py:2086`, `harness_timeout_s + 1.0`). The user's stated design is "complex → sub-agents / Computer-Use in the background." It should ACK + offload, never block the spoken turn.
+**Root cause #4 — structural (aligns with user intent):** Computer-Use is awaited INLINE on the voice path for up to 31 s (`manager.py:2086`, `harness_timeout_s + 1.0`). The user's stated design is "complex → Jarvis-Agents / Computer-Use in the background." It should ACK + offload, never block the spoken turn.
---
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.md
index 1b6d2942cb..52ad8a7cab 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
@@ -696,7 +696,7 @@ No `server.py` change is needed: `settings_router` is already mounted (`jarvis/u
- [ ] **Step 6: Run the new tests + the existing settings/config-writer suites; confirm green.**
```bash
- cd "C:/Users/Administrator/Desktop/Personal Jarvis"
+ cd "<USER_HOME>/Desktop/Personal Jarvis"
py -3.11 -m pytest tests/integration/test_wiki_provider_route.py tests/integration/test_settings_routes.py tests/unit/test_config_writer.py -q
```
@@ -715,7 +715,7 @@ No `server.py` change is needed: `settings_router` is already mounted (`jarvis/u
- [ ] **Step 7: Commit.**
```bash
- cd "C:/Users/Administrator/Desktop/Personal Jarvis"
+ cd "<USER_HOME>/Desktop/Personal Jarvis"
git add jarvis/ui/web/settings_routes.py jarvis/core/config_writer.py tests/integration/test_wiki_provider_route.py
git commit -m "feat(wiki): user-selectable curator model via GET/PUT /api/settings/wiki-provider
@@ -1218,7 +1218,7 @@ git commit -m "feat(ui): Wiki provider/model card in API Keys & Providers" -m "A
Open `jarvis/core/config.py`. The class ends with `user_entity_slug` at line 618. Insert the new field directly after it (append-only; `ConfigDict(extra="allow")` is already present on line 608, so AP-16 holds):
```python
- user_entity_slug: str = "ruben"
+ user_entity_slug: str = "alex"
# D2 (2026-06): the awareness-episode -> durable session-page feed is
# retired. The worker still READS awareness episodes and still produces
# the rollup paragraph (live awareness is unaffected), but the durable
@@ -2375,8 +2375,8 @@ The vault schema (`wiki/obsidian-vault/schema.md:148`) is binding: *"A broken wi
(vault_root / "log.md").write_text("# Wiki Log\n", encoding="utf-8")
# A durable page that a resolvable link can point at.
- (vault_root / "entities" / "ruben.md").write_text(
- _entity_body("ruben", "Profile body for Ruben."),
+ (vault_root / "entities" / "alex.md").write_text(
+ _entity_body("alex", "Profile body for Alex."),
encoding="utf-8",
)
@@ -2470,7 +2470,7 @@ The vault schema (`wiki/obsidian-vault/schema.md:148`) is binding: *"A broken wi
"\n"
"## Summary\n"
"\n"
- "This concept concerns [[ruben]] directly.\n"
+ "This concept concerns [[alex]] directly.\n"
),
reason="concept linking the existing user entity",
),
@@ -2487,7 +2487,7 @@ The vault schema (`wiki/obsidian-vault/schema.md:148`) is binding: *"A broken wi
encoding="utf-8"
)
# Resolvable link is canonicalised to the typed form, never demoted.
- assert "[[entities/ruben]]" in content
+ assert "[[entities/alex]]" in content
assert telemetry.get("wiki_links_refused_dangling") == before
```
@@ -2838,7 +2838,7 @@ A new **pure-function** regex detector (`secret_guard.py`) plus a hook in the At
@pytest.mark.parametrize(
"body",
[
- "Ruben prefers a multi-provider brain and bilingual replies.",
+ "Alex prefers a multi-provider brain and bilingual replies.",
"The project shipped v0.2.0 on 2026-06-09 to the public repo.",
"Note: the password is written on a sticky note in the drawer.",
"He uses GPT and Gemini; the API design favours streaming.",
@@ -2913,7 +2913,7 @@ A new **pure-function** regex detector (`secret_guard.py`) plus a hook in the At
target_path=target,
operation="create",
new_body=_valid_entity_body(
- "clean", body="Ruben prefers a multi-provider brain."
+ "clean", body="Alex prefers a multi-provider brain."
),
reason="normal write",
)
@@ -3350,9 +3350,9 @@ path only as a last resort. Add regression tests."
vault.mkdir(parents=True)
_write_page(
vault,
- "entities/ruben.md",
- "---\naliases: [Ruben, boss]\n---\n# Ruben\n\n"
- "Ruben drives a turquoise sailboat named Albatross.\n",
+ "entities/alex.md",
+ "---\naliases: [Alex, boss]\n---\n# Alex\n\n"
+ "Alex drives a turquoise sailboat named Albatross.\n",
)
_write_page(
vault,
@@ -3388,7 +3388,7 @@ path only as a last resort. Add regression tests."
hits = search.search("Albatross")
assert hits, "expected at least one hit after boot index"
titles = {h.title for h in hits}
- assert "Ruben" in titles or "Sailing" in titles
+ assert "Alex" in titles or "Sailing" in titles
finally:
search.close()
@@ -3430,7 +3430,7 @@ path only as a last resort. Add regression tests."
- [ ] **Step 5: Run the new test and prove it passes.**
```bash
- cd "C:/Users/Administrator/Desktop/Personal Jarvis" && py -3.11 -m pytest tests/integration/test_wiki_boot_index.py -v
+ cd "<USER_HOME>/Desktop/Personal Jarvis" && py -3.11 -m pytest tests/integration/test_wiki_boot_index.py -v
```
Expected output (3 passed):
```
@@ -3441,19 +3441,19 @@ path only as a last resort. Add regression tests."
- [ ] **Step 6: Run the existing wiki FTS/search suites to confirm no regression.**
```bash
- cd "C:/Users/Administrator/Desktop/Personal Jarvis" && py -3.11 -m pytest tests/unit/memory/wiki/test_fts_index.py tests/unit/memory/wiki/test_search_fts.py -q
+ cd "<USER_HOME>/Desktop/Personal Jarvis" && py -3.11 -m pytest tests/unit/memory/wiki/test_fts_index.py tests/unit/memory/wiki/test_search_fts.py -q
```
Expected: all pass, `0 failed`.
- [ ] **Step 7: Lint the touched Python files.**
```bash
- cd "C:/Users/Administrator/Desktop/Personal Jarvis" && py -3.11 -m ruff check jarvis/ui/web/server.py jarvis/memory/wiki/cli.py tests/integration/test_wiki_boot_index.py
+ cd "<USER_HOME>/Desktop/Personal Jarvis" && py -3.11 -m ruff check jarvis/ui/web/server.py jarvis/memory/wiki/cli.py tests/integration/test_wiki_boot_index.py
```
Expected: `All checks passed!`
- [ ] **Step 8: Commit.**
```bash
- cd "C:/Users/Administrator/Desktop/Personal Jarvis" && git add jarvis/ui/web/server.py jarvis/memory/wiki/cli.py tests/integration/test_wiki_boot_index.py && git commit -m "feat(wiki): build FTS5 index at boot when empty; fix CLI --vault default to wiki/obsidian-vault
+ cd "<USER_HOME>/Desktop/Personal Jarvis" && git add jarvis/ui/web/server.py jarvis/memory/wiki/cli.py tests/integration/test_wiki_boot_index.py && git commit -m "feat(wiki): build FTS5 index at boot when empty; fix CLI --vault default to wiki/obsidian-vault
A pre-existing or restored vault returned zero search hits because wiki_fts
was only populated incrementally by AtomicWriter writes. WebServer now runs
@@ -3486,7 +3486,7 @@ One-time, idempotent, dry-run-by-default maintenance pass that removes the junk
- [ ] **Step 1: Create the `cleanup.py` module with the pure-classification helpers.**
- Create `jarvis/memory/wiki/cleanup.py` with the truncation + dangling-link classification logic. These are regex/string-only, no I/O, no LLM (same discipline as `session_links.py`). The truncation check operates on the **prose body between the H1 and the `## Related` heading** — every session file ends with `## Related\n\n- [[entities/ruben]]\n`, so a tail-of-file check would wrongly pass every page.
+ Create `jarvis/memory/wiki/cleanup.py` with the truncation + dangling-link classification logic. These are regex/string-only, no I/O, no LLM (same discipline as `session_links.py`). The truncation check operates on the **prose body between the H1 and the `## Related` heading** — every session file ends with `## Related\n\n- [[entities/alex]]\n`, so a tail-of-file check would wrongly pass every page.
```python
"""One-time, idempotent maintenance pass over the wiki vault.
@@ -3579,7 +3579,7 @@ One-time, idempotent, dry-run-by-default maintenance pass that removes the junk
def dangling_link_targets(raw: str, vault_root: Path) -> list[str]:
"""Return the wikilink targets in ``raw`` that resolve to no vault page.
- Uses the real on-disk resolver: ``[[entities/ruben]]`` resolves and is
+ Uses the real on-disk resolver: ``[[entities/alex]]`` resolves and is
kept; bare app names like ``[[Snipping Tool]]`` resolve to nothing and are
flagged. Operates on the CLOSED-link body after a dangling-fragment strip,
so an unclosed ``[[PickerHost.`` never reaches the resolver.
@@ -3825,7 +3825,7 @@ One-time, idempotent, dry-run-by-default maintenance pass that removes the junk
is_truncated_body,
)
- RELATED = "\n## Related\n\n- [[entities/ruben]]\n"
+ RELATED = "\n## Related\n\n- [[entities/alex]]\n"
def _session(date_id: str, body: str, *, related: bool = True) -> str:
@@ -3847,9 +3847,9 @@ One-time, idempotent, dry-run-by-default maintenance pass that removes the junk
for sub in ("entities", "concepts", "projects", "sessions",
"_archive/sessions", "attachments"):
(root / sub).mkdir(parents=True)
- # A real entity page so [[entities/ruben]] resolves.
- (root / "entities" / "ruben.md").write_text(
- "---\ntype: entity\nslug: ruben\n---\n\n# Ruben\n\nThe user.\n",
+ # A real entity page so [[entities/alex]] resolves.
+ (root / "entities" / "alex.md").write_text(
+ "---\ntype: entity\nslug: alex\n---\n\n# Alex\n\nThe user.\n",
encoding="utf-8",
)
return root
@@ -3867,7 +3867,7 @@ One-time, idempotent, dry-run-by-default maintenance pass that removes the junk
def test_dangling_targets_flag_apps_keep_entities(vault: Path) -> None:
raw = _session(
"2026-05-27-tzqvlsv",
- "He used [[Snipping Tool]] and pinged [[entities/ruben]].",
+ "He used [[Snipping Tool]] and pinged [[entities/alex]].",
)
assert dangling_link_targets(raw, vault) == ["Snipping Tool"]
@@ -3910,7 +3910,7 @@ One-time, idempotent, dry-run-by-default maintenance pass that removes the junk
assert clean.exists()
assert "[[Snipping Tool]]" not in surviving
assert "Snipping Tool" in surviving
- assert "[[entities/ruben]]" in surviving # real link untouched
+ assert "[[entities/alex]]" in surviving # real link untouched
# A backup was written and contains the now-deleted leak page.
assert report.backup_path and report.backup_path.is_file()
with tarfile.open(report.backup_path, "r:gz") as tar:
@@ -4092,7 +4092,7 @@ One-time, idempotent, dry-run-by-default maintenance pass that removes the junk
#### Gotchas
- **`BackupManager.snapshot()` excludes `_archive/`** (`EXCLUDED_VAULT_DIRS` at `backup.py:47` = `{"_archive", "attachments"}`). Because this script deletes files inside `_archive/sessions/` (the leak page lives there), reusing that snapshot would leave the removals **irreversible**. The script therefore takes its own full `tarfile` snapshot via `_full_snapshot` (walks the whole vault, skips only hidden dirs). The test asserts the deleted leak page is present in the backup tar.
-- **Truncation is measured on the prose body, not the file tail.** Every session page ends with `## Related\n\n- [[entities/ruben]]\n`, so a tail-of-file terminator check would mark every page as "complete". `_split_body` slices out the frontmatter, the H1, and the `## Related` footer first. Verified on real files: `2026-05-28-5cg256wj` ends `Spanning from`, `2026-05-28-fsgdwl5a` ends `[[PickerHost.` — both flagged; `2026-05-27-tzqvlsv` ends `...subsequent sessions.` — kept.
+- **Truncation is measured on the prose body, not the file tail.** Every session page ends with `## Related\n\n- [[entities/alex]]\n`, so a tail-of-file terminator check would mark every page as "complete". `_split_body` slices out the frontmatter, the H1, and the `## Related` footer first. Verified on real files: `2026-05-28-5cg256wj` ends `Spanning from`, `2026-05-28-fsgdwl5a` ends `[[PickerHost.` — both flagged; `2026-05-27-tzqvlsv` ends `...subsequent sessions.` — kept.
- **Dedupe keeps the `_archive/` copy, removes the live `sessions/` copy.** The session-rollup rolling-window archiver moves files *into* `_archive/sessions/`; a same-ID file still in `sessions/` is a stale leftover. Two of the six duplicates (`5cg256wj`, `fsgdwl5a`) are truncated in **both** copies — the truncation pass runs **after** dedupe and then removes the surviving archive copy too.
- **FTS purge reuses `AtomicWriter.forget_paths`** (`atomic_writer.py:638`) — the exact "moved/deleted outside `apply()`" purge path. It calls `remove_page` per file, best-effort, never raises. Without it, `wiki-recall` keeps returning ghost hits at the deleted paths.
- **Dangling-link demotion handles both `[[X]]` and `[[X|Display]]`** alias forms; the alias form keeps the display text. The unclosed `[[PickerHost.` fragment is removed first by `strip_dangling_wikilinks` so it never reaches the resolver.
diff --git a/docs/superpowers/plans/2026-06-10-contact-wiki-mirror.md b/docs/superpowers/plans/2026-06-10-contact-wiki-mirror.md
index e08e26ef4a..1beacc971d 100644
--- a/docs/superpowers/plans/2026-06-10-contact-wiki-mirror.md
+++ b/docs/superpowers/plans/2026-06-10-contact-wiki-mirror.md
@@ -527,7 +527,7 @@ owners, separated by HTML-comment markers:
Privacy rule (spec §Non-Goals): phone numbers, e-mail addresses and street
addresses are deliberately NOT mirrored. The vault is broadly searched and
-handed to sub-agents; base data stays in ``data/contacts/`` and is fetched on
+handed to Jarvis-Agents; base data stays in ``data/contacts/`` and is fetched on
demand via the ``contact-lookup`` tool.
Writes go through the shared :class:`~jarvis.memory.wiki.atomic_writer.AtomicWriter`
diff --git a/docs/superpowers/plans/2026-06-15-dragdrop-mission-into-context.md b/docs/superpowers/plans/2026-06-15-dragdrop-mission-into-context.md
index 0d9487230c..c710feefaa 100644
--- a/docs/superpowers/plans/2026-06-15-dragdrop-mission-into-context.md
+++ b/docs/superpowers/plans/2026-06-15-dragdrop-mission-into-context.md
@@ -2,7 +2,7 @@
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
-**Goal:** Let the user drag a sub-agent mission/output card onto an in-app "Jarvis presence dock"; on drop, Jarvis pulls the mission into the live conversation context and speaks a contextual recap.
+**Goal:** Let the user drag a Jarvis-Agent mission/output card onto an in-app "Jarvis presence dock"; on drop, Jarvis pulls the mission into the live conversation context and speaks a contextual recap.
**Architecture:** A dropped card fires a new WS command `mission.inject`. The server composes a clean, bounded, human-readable directive from the card's own data and publishes `MessageSent(role="user", source_layer="ui.web.ws.mission_inject")`. That reuses the existing brain-turn pipeline — the reply is spoken on the voice build and shown in chat, and the mission text lands in `BrainManager._history` (the context window). The drop target is a global React dock mounted in `App.tsx` that mirrors the active overlay style (bar vs. `MascotGigi` ghost), so it works in any browser on any OS (cloud-first), unlike the separate Tk overlay windows.
@@ -517,7 +517,7 @@ export const MISSION_DND_MIME = "application/x-jarvis-mission";
* Drop a mission/output card on it to pull that sub-agent task into the live
* conversation (Jarvis speaks about it + it enters the context window).
*
- * It mirrors the chosen on-screen display style: a slim bar for `whisper_bar`,
+ * It mirrors the chosen on-screen display style: a slim bar for `jarvis_bar`,
* the ghost mascot otherwise. This in-app surface is the cloud-first drop
* target — it works in any browser, unlike the separate Tk overlay windows.
*/
@@ -526,7 +526,7 @@ export function JarvisDock() {
const { config } = useOverlayStyle();
const [armed, setArmed] = useState(false); // a card is hovering
const [flash, setFlash] = useState(false); // brief post-drop confirmation
- const isBar = config?.style === "whisper_bar";
+ const isBar = config?.style === "jarvis_bar";
function hasMission(dt: DataTransfer | null): boolean {
if (!dt) return false;
diff --git a/docs/superpowers/plans/2026-06-16-subagent-recap-doomloop-fix.md b/docs/superpowers/plans/2026-06-16-jarvis-agents-recap-doomloop-fix.md
similarity index 98%
rename from docs/superpowers/plans/2026-06-16-subagent-recap-doomloop-fix.md
rename to docs/superpowers/plans/2026-06-16-jarvis-agents-recap-doomloop-fix.md
index 890e91a608..f9090ecbf5 100644
--- a/docs/superpowers/plans/2026-06-16-subagent-recap-doomloop-fix.md
+++ b/docs/superpowers/plans/2026-06-16-jarvis-agents-recap-doomloop-fix.md
@@ -1,4 +1,4 @@
-# Sub-Agents "all messages failing" — root-cause review & completion plan
+# Jarvis-Agents "all messages failing" — root-cause review & completion plan
**Date:** 2026-06-16
**Status:** root cause confirmed; fix already present in the working tree (parallel
@@ -46,14 +46,14 @@ self-perpetuating failure factory:
router (`BrainManager._should_force_spawn`) force-spawned a *new* worker
mission instead of answering inline. The 2026-06-15 "when I say subagent it
MUST spawn" mandate hoisted the trigger check to the top, so any mention of
- "sub-agent" spawned — including recaps and questions *about* a sub-agent.
+ "sub-agent" spawned — including recaps and questions *about* a Jarvis-Agent.
2. **The new mission has no possible deliverable.** Its prompt literally says
"no new work is needed, just give me a recap." The worker correctly writes
nothing → empty diff → the Critic's deterministic empty-diff veto → 3 revise
loops → `critic_loop_exhausted` → FAILED.
-3. **The failure is recursive.** The failed card shows up in the Sub-Agents view;
+3. **The failure is recursive.** The failed card shows up in the Jarvis-Agents view;
dragging it again (or hitting "Restart") re-injects/re-dispatches a directive
that again contains "sub-agent" → another failed mission. Hence "*all*
sub-agent messages are failing."
diff --git a/docs/superpowers/plans/2026-06-17-jarvisctl-control-cli.md b/docs/superpowers/plans/2026-06-17-jarvisctl-control-cli.md
index c50250f042..00c19ca38f 100644
--- a/docs/superpowers/plans/2026-06-17-jarvisctl-control-cli.md
+++ b/docs/superpowers/plans/2026-06-17-jarvisctl-control-cli.md
@@ -10,7 +10,7 @@
---
-## Approach Comparison (the two sub-agent–researched options)
+## Approach Comparison (the two Jarvis-Agent–researched options)
The single most consequential design axis is **how the auto-layer (every-endpoint coverage) is produced**. Two approaches were researched independently.
@@ -2055,7 +2055,7 @@ git commit -m "ci(cli): run jarvisctl unit suite on win/mac/linux matrix"
## Self-Review (author checklist — completed)
-1. **Spec coverage:** full control of tasks (Task 7) + whole API via auto-layer (Tasks 8–10) ✓; UI/lifecycle control (Task 6) ✓; self-control (Task 11) ✓; extensibility = auto-layer, zero per-endpoint work ✓; cross-platform (paths/encoding/perms + CI matrix) ✓; two sub-agent approaches compared with a decision ✓.
+1. **Spec coverage:** full control of tasks (Task 7) + whole API via auto-layer (Tasks 8–10) ✓; UI/lifecycle control (Task 6) ✓; self-control (Task 11) ✓; extensibility = auto-layer, zero per-endpoint work ✓; cross-platform (paths/encoding/perms + CI matrix) ✓; two Jarvis-Agent approaches compared with a decision ✓.
2. **Placeholder scan:** no TBD/TODO; every code step carries complete code.
3. **Type consistency:** `JarvisClient.request(method, path, *, params, json)`, `ApiError(message, status_code, payload)`, `render.emit(payload, *, as_json)`, `build_api_group(spec, runner)`, `Runner = (method, path, params, body)`, `make_client(url, key)`, `as_json()` used consistently across Tasks 3–10.
4. **Ambiguity:** `tasks create` is `--json-body` (drift-robust) not flag-per-field — stated explicitly. Catalog top-level shape must be confirmed against the file before editing (noted in Task 11).
diff --git a/docs/superpowers/plans/2026-06-17-webui-docs-readability.md b/docs/superpowers/plans/2026-06-17-webui-docs-readability.md
index b32e6bff24..a88e2d08fa 100644
--- a/docs/superpowers/plans/2026-06-17-webui-docs-readability.md
+++ b/docs/superpowers/plans/2026-06-17-webui-docs-readability.md
@@ -31,7 +31,7 @@
```bash
cd "$TMPDIR" 2>/dev/null || cd /tmp
-gh repo clone rubenluetke10-beep/personal-jarvis-webui webui-docs-work
+gh repo clone octocat/personal-jarvis-webui webui-docs-work
cd webui-docs-work
```
@@ -68,7 +68,7 @@ Expected: `architecture.md brain-providers.md cli.md computer-use.md configurati
- [ ] **Step 2: Apply the canon.** Concrete edits for this doc:
- Gloss `meta-orchestrator` on first use, e.g.: *"a voice-driven **meta-orchestrator** — it doesn't answer you itself; it works out **which** tool should do the job and hands the work off, then reports back."*
- Gloss `Supervisor-Agent` → *"a supervisor that classifies every spoken command and routes it"*.
- - Gloss `harness` on first use → *"an interchangeable **harness** (the engine that actually does the work — OpenClaw, the Codex CLI, an MCP server, …)"*.
+ - Gloss `harness` on first use → *"an interchangeable **harness** (the engine that actually does the work — Jarvis-Agents, the Codex CLI, an MCP server, …)"*.
- Gloss `Mission` → *"runs as a **Mission**: an isolated, self-checking background job"*; `Critic` → *"a **Critic** (a second pass that reviews the result and retries before answering you)"*; `git worktree` → *"an isolated **git worktree** (a throwaway copy of the project, so your real files are never touched)"*.
- Gloss `MCP` on first use → *"MCP servers (a standard way to plug external tools into an AI)"*.
- Keep the "three things that make it different" list, the blockquote, and "Who it is for" — only add the inline glosses.
diff --git a/docs/superpowers/plans/2026-06-19-subagent-report-readback-conversation-continuity.md b/docs/superpowers/plans/2026-06-19-jarvis-agents-report-readback-conversation-continuity.md
similarity index 84%
rename from docs/superpowers/plans/2026-06-19-subagent-report-readback-conversation-continuity.md
rename to docs/superpowers/plans/2026-06-19-jarvis-agents-report-readback-conversation-continuity.md
index bf73a60f45..f61b5035c7 100644
--- a/docs/superpowers/plans/2026-06-19-subagent-report-readback-conversation-continuity.md
+++ b/docs/superpowers/plans/2026-06-19-jarvis-agents-report-readback-conversation-continuity.md
@@ -1,4 +1,4 @@
-# Subagent / Mission Report Readback — Conversation Continuity, Speaking Indicator, Transcript Attribution — Implementation Plan
+# Jarvis-Agent / Mission Report Readback — Conversation Continuity, Speaking Indicator, Transcript Attribution — Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
@@ -8,7 +8,7 @@
**Tech Stack:** Python 3.11 (asyncio), pytest (fakes, asyncio_mode=auto), React/TypeScript + vitest frontend.
-**Spec:** `docs/superpowers/specs/2026-06-19-subagent-report-readback-conversation-continuity-design.md`
+**Spec:** `docs/superpowers/specs/2026-06-19-jarvis-agents-report-readback-conversation-continuity-design.md`
**Working tree note:** Execute in the MAIN working tree, NOT a fresh worktree — the live app's editable install imports from this tree, and a worktree would not be loaded on restart (BUG-006/014/015 restore-trap). Commit hunk-isolated (contested shared tree). Test python: `C:\Program Files\Python311\python.exe`.
@@ -16,7 +16,7 @@
## Current reality (verified 2026-06-19, before any change)
-- **Part 1 (keep listening) — mostly already built.** `_active_session` (`pipeline.py:3767`) keeps the session open while `_background_mission_in_flight()` is true (`:3825`) and for one full idle window after any spoken announcement via `_post_readback_grace_s` (`:3843-3854`), because `_on_announcement` stamps `_last_announcement_spoken_monotonic` before playback (`:2386`). The only gap: the OpenClaw-background DIRECT path (`_on_background_completed`, plays at `:2657-2668`) does NOT stamp that timestamp, so a readback delivered through it does not re-arm the grace window. The user's "hangs up after report" is most likely the pre-restart state; this plan closes the one real gap and verifies live.
+- **Part 1 (keep listening) — mostly already built.** `_active_session` (`pipeline.py:3767`) keeps the session open while `_background_mission_in_flight()` is true (`:3825`) and for one full idle window after any spoken announcement via `_post_readback_grace_s` (`:3843-3854`), because `_on_announcement` stamps `_last_announcement_spoken_monotonic` before playback (`:2386`). The only gap: the Jarvis-Agents-background DIRECT path (`_on_background_completed`, plays at `:2657-2668`) does NOT stamp that timestamp, so a readback delivered through it does not re-arm the grace window. The user's "hangs up after report" is most likely the pre-restart state; this plan closes the one real gap and verifies live.
- **Part 2 (mascot speaking) — confirmed gap.** `_on_announcement` (`:2238`) never calls `_transition("SPEAKING")`, so no `SystemStateChanged` is published and the avatar/orb stay in their previous state during the readback. The normal path animates via `_set_turn_state` → `_transition` (`:1609/1599`). Supervisor `set_state` is idempotent (`jarvis/state/supervisor.py:47`).
- **Part 3 (transcript) — afterglow already records it; needs a distinct kind.** `recorder.py` afterglow attaches a post-hangup `spoken_kind==completion` readback to the originating session (`:650-671`). BUT `completion` is overloaded — it also tags a normal buffered inline reply (`pipeline.py:5552`) and a CU readback (`computer_use_tool.py:233`), so relabeling `completion` would mislabel normal answers. → introduce a dedicated `subagent` kind.
- **Part 4 (mid-sentence cut) — already fixed + committed** (`e60f6fd4`, `stream_evidence.py::summarize_answers` boundary truncation). Verify only.
@@ -65,7 +65,7 @@ Expected: PASS. If the test hardcodes an expected list, add `"subagent"` there.
## Task 2 — Part 3b: route the readback into the `subagent` kind (and keep every guard intact)
**Files:**
-- Modify: `jarvis/speech/pipeline.py` — `_announcement_spoken_kind` (`:220`), punch-through + heartbeat guards (`:2264/2274`), OpenClaw-bg direct emit (`:2657`) + deferred (`:2646`)
+- Modify: `jarvis/speech/pipeline.py` — `_announcement_spoken_kind` (`:220`), punch-through + heartbeat guards (`:2264/2274`), Jarvis-Agents-bg direct emit (`:2657`) + deferred (`:2646`)
- Modify: `jarvis/missions/voice/announcer.py:153` (mission readback)
- Modify: `jarvis/brain/manager.py:3467` (worker readback)
- Modify: `jarvis/tasks/runner.py:400` (scheduled task readback)
@@ -93,13 +93,13 @@ Replace `is_completion = getattr(event, "kind", None) == "completion"` (`:2264`)
`is_readback = getattr(event, "kind", None) in _READBACK_KINDS` and use `is_readback` at `:2265` and `:2274`.
In `_announcement_spoken_kind` (`:228`), add `SPOKEN_KIND_SUBAGENT` to the pass-through tuple so `"subagent"` maps to itself (import it at `:85`).
-- [ ] **Step 4: Point the real sub-agent emit sites at the new kind**
+- [ ] **Step 4: Point the real Jarvis-Agent emit sites at the new kind**
- `announcer.py:153`: `kind="completion"` → `kind="subagent"`.
- `manager.py:3467`: `kind="completion"` → `kind="subagent"`.
- `tasks/runner.py:400`: `kind="completion"` → `kind="subagent"`.
- - `pipeline.py:2646` (deferred OpenClaw-bg `AnnouncementRequested`): `kind="completion"` → `kind="subagent"`.
- - `pipeline.py:2657` (direct OpenClaw-bg emit): `SPOKEN_KIND_COMPLETION` → `SPOKEN_KIND_SUBAGENT`.
- - LEAVE unchanged: `pipeline.py:5552` (normal buffered inline reply) and `computer_use_tool.py:233` (foreground CU action readback) — these are NOT sub-agent/mission output.
+ - `pipeline.py:2646` (deferred Jarvis-Agents-bg `AnnouncementRequested`): `kind="completion"` → `kind="subagent"`.
+ - `pipeline.py:2657` (direct Jarvis-Agents-bg emit): `SPOKEN_KIND_COMPLETION` → `SPOKEN_KIND_SUBAGENT`.
+ - LEAVE unchanged: `pipeline.py:5552` (normal buffered inline reply) and `computer_use_tool.py:233` (foreground CU action readback) — these are NOT Jarvis-Agent/mission output.
- Add `AnnouncementRequested.kind` Literal value `"subagent"` in `jarvis/core/events.py:410`.
- [ ] **Step 5: Widen the afterglow guard**
@@ -151,7 +151,7 @@ Defensive: `_transition` already swallows supervisor errors; never let a restore
---
-## Task 4 — Part 1: close the OpenClaw-background grace gap
+## Task 4 — Part 1: close the Jarvis-Agents-background grace gap
**Files:**
- Modify: `jarvis/speech/pipeline.py` — `_on_background_completed` direct-play path (`:2657`, before `play_chunks` at `:2668`)
@@ -172,7 +172,7 @@ self._last_announcement_spoken_monotonic = time.monotonic()
---
-## Task 5 — Frontend: distinct colour for the sub-agent readback block
+## Task 5 — Frontend: distinct colour for the Jarvis-Agent readback block
**Files:**
- Modify: `jarvis/ui/web/frontend/src/components/sessions/TurnCard.tsx` (`:209-248` spoken-output block)
@@ -182,7 +182,7 @@ self._last_announcement_spoken_monotonic = time.monotonic()
- [ ] **Step 2: Run it — fail.** (`npm run test` in `jarvis/ui/web/frontend`)
-- [ ] **Step 3: Style the subagent line.** In the spoken-line map, pick the per-line colour by `spoken_kind`: keep sky for the others, use a clearly different hue (violet/purple — reads as "agent") for `subagent`. E.g. a small `const isSubagent = s.spoken_kind === "subagent"` and conditional border/bg classes (`border-violet-400/30 bg-violet-400/10` vs the existing sky classes), plus the badge label from `SPOKEN_KIND_LABEL`.
+- [ ] **Step 3: Style the Jarvis-Agent line.** In the spoken-line map, pick the per-line colour by `spoken_kind`: keep sky for the others, use a clearly different hue (violet/purple — reads as "agent") for `subagent`. E.g. a small `const isSubagent = s.spoken_kind === "subagent"` and conditional border/bg classes (`border-violet-400/30 bg-violet-400/10` vs the existing sky classes), plus the badge label from `SPOKEN_KIND_LABEL`.
- [ ] **Step 4: Run vitest — pass. Then `npm run build`** to confirm the production bundle compiles.
@@ -193,14 +193,14 @@ self._last_announcement_spoken_monotonic = time.monotonic()
## Task 6 — Verify live (Parts 1 & 4) + full regression
- [ ] **Step 1: Confirm the live import points at this tree.**
-Run: `& "C:\Program Files\Python311\python.exe" -c "import jarvis, pathlib; print(pathlib.Path(jarvis.__file__))"` — must be under `C:\Users\Administrator\Desktop\Personal Jarvis`.
+Run: `& "C:\Program Files\Python311\python.exe" -c "import jarvis, pathlib; print(pathlib.Path(jarvis.__file__))"` — must be under `<USER_HOME>\Desktop\Personal Jarvis`.
- [ ] **Step 2: Run the affected buckets.**
Run: `& "C:\Program Files\Python311\python.exe" -m pytest tests/unit/speech/ tests/unit/sessions/ tests/missions/ -q` and `ruff check` on the touched files.
- [ ] **Step 3: Restart the app** via `POST /api/settings/restart-app` so the editable-install code goes live.
-- [ ] **Step 4: Live-verify** a voice (or `/ws` headless) sub-agent mission: the report plays in full (no mid-word cut — Part 4), the avatar animates "speaking" during it (Part 2), the session keeps listening afterward when present (Part 1), and the transcript shows the report attributed to the start session with the "Jarvis Sub-Agent / Output" label in its own colour (Part 3). Headless `/ws` harness: see `reference_headless_voice_qa_via_ws`.
+- [ ] **Step 4: Live-verify** a voice (or `/ws` headless) Jarvis-Agent mission: the report plays in full (no mid-word cut — Part 4), the avatar animates "speaking" during it (Part 2), the session keeps listening afterward when present (Part 1), and the transcript shows the report attributed to the start session with the "Jarvis Sub-Agent / Output" label in its own colour (Part 3). Headless `/ws` harness: see `reference_headless_voice_qa_via_ws`.
- [ ] **Step 5: Code review** via the `code-reviewer` agent against the CLAUDE.md anti-patterns (AP-9/11/19, AD-OE5/OE6, five-layer parity, shared-tree discipline). Fix findings.
@@ -209,7 +209,7 @@ Run: `& "C:\Program Files\Python311\python.exe" -m pytest tests/unit/speech/ tes
## Self-review (plan vs. spec)
- Spec Part A (mid-sentence) → Task 6 verify (already fixed). ✓
-- Spec Part B (keep listening, present-only) → Task 4 (close OpenClaw-bg gap) + existing grace logic; hung-up case unchanged by design. ✓
+- Spec Part B (keep listening, present-only) → Task 4 (close Jarvis-Agents-bg gap) + existing grace logic; hung-up case unchanged by design. ✓
- Spec Part C (transcript attribution + distinct colour/label) → Tasks 1, 2, 5; afterglow attribution already live, widened to the new kind in Task 2 Step 5. ✓
- Spec Part D (speaking indicator) → Task 3. ✓
- Invariants: punch-through preserved via `_READBACK_KINDS` + explicit test (Task 2 Step 1); no LLM/blocking added; no watchdog counter introduced (Part 1 reuses the existing bounded grace); language doctrine unaffected (no new spoken phrase). ✓
diff --git a/docs/superpowers/plans/2026-06-20-antigravity-google-subscription.md b/docs/superpowers/plans/2026-06-20-antigravity-google-subscription.md
index bd0d4790eb..6b545ddda7 100644
--- a/docs/superpowers/plans/2026-06-20-antigravity-google-subscription.md
+++ b/docs/superpowers/plans/2026-06-20-antigravity-google-subscription.md
@@ -1,10 +1,10 @@
-# Antigravity / Google-subscription Brain + Subagent — Implementation Plan
+# Antigravity / Google-subscription Brain + Jarvis-Agent — Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
-**Goal:** Let Jarvis run its Brain and Subagents against the user's Google subscription by driving the official Antigravity/Gemini CLI as a subprocess over the existing OAuth login — selectable from the API-Keys section, no API key.
+**Goal:** Let Jarvis run its Brain and Jarvis-Agents against the user's Google subscription by driving the official Antigravity/Gemini CLI as a subprocess over the existing OAuth login — selectable from the API-Keys section, no API key.
-**Architecture:** A new `antigravity` brain provider mirrors the existing Codex provider (one provider, subscription-OAuth backend, drives an external CLI). A binary-agnostic resolver prefers `agy` and falls back to the installed Gemini CLI. An auth service reports login status from `~/.gemini/`. The provider is OAuth-only (no API key slot) and excluded from the live model catalog. A heavy-worker variant reuses the resolver for subagents.
+**Architecture:** A new `antigravity` brain provider mirrors the existing Codex provider (one provider, subscription-OAuth backend, drives an external CLI). A binary-agnostic resolver prefers `agy` and falls back to the installed Gemini CLI. An auth service reports login status from `~/.gemini/`. The provider is OAuth-only (no API key slot) and excluded from the live model catalog. A heavy-worker variant reuses the resolver for Jarvis-Agents.
**Tech Stack:** Python 3.11 (stdlib `asyncio`/`subprocess`/`pathlib`), FastAPI routes, React/TS frontend, pytest + vitest.
@@ -460,13 +460,13 @@ antigravity = "jarvis.plugins.brain.antigravity:AntigravityBrain"
---
-## Phase 3 — Subagent worker
+## Phase 3 — Jarvis-Agent worker
### Task 7: Heavy worker backend
**Files:**
- Create: `jarvis/missions/workers/google_cli_worker.py`
-- Modify: subagent 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/openclaw/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`
@@ -487,5 +487,5 @@ antigravity = "jarvis.plugins.brain.antigravity:AntigravityBrain"
## Self-review notes
-- Spec coverage: resolver (§5.1)→T1, auth (§5.2)→T2, brain (§5.3)→T3, spec/config/catalog (§5.5/5.6)→T4, routes (§5.7)→T5, UI (§5.8)→T6, subagent (§5.4)→T7. All covered.
+- Spec coverage: resolver (§5.1)→T1, auth (§5.2)→T2, brain (§5.3)→T3, spec/config/catalog (§5.5/5.6)→T4, routes (§5.7)→T5, UI (§5.8)→T6, Jarvis-Agent (§5.4)→T7. All covered.
- Open points carried from spec §10: live billed verification + browser tier-check deferred; `agy` Windows install unconfirmed (resolver falls back to Gemini CLI).
diff --git a/docs/superpowers/plans/2026-06-20-assistant-name-coupled-to-wake-word.md b/docs/superpowers/plans/2026-06-20-assistant-name-coupled-to-wake-word.md
index f1a25338d1..9c6b9f1305 100644
--- a/docs/superpowers/plans/2026-06-20-assistant-name-coupled-to-wake-word.md
+++ b/docs/superpowers/plans/2026-06-20-assistant-name-coupled-to-wake-word.md
@@ -245,10 +245,10 @@ def test_set_wake_word_strips_legacy_persona_name(tmp_path: Path) -> None:
encoding="utf-8",
)
- config_writer.set_wake_word("Hey Ruben", path=toml)
+ config_writer.set_wake_word("Hey Alex", path=toml)
text = toml.read_text(encoding="utf-8")
- assert "Hey Ruben" in text
+ assert "Hey Alex" in text
# The stale identity override is gone; the wake word is now the single source.
assert "Josef" not in text
@@ -433,7 +433,7 @@ import { deriveAssistantName } from "./deriveAssistantName";
describe("deriveAssistantName", () => {
it("strips a wake prefix and title-cases", () => {
- expect(deriveAssistantName("Hey Ruben")).toBe("Ruben");
+ expect(deriveAssistantName("Hey Alex")).toBe("Alex");
expect(deriveAssistantName("hey computer")).toBe("Computer");
expect(deriveAssistantName("ok friday")).toBe("Friday");
expect(deriveAssistantName("Micron")).toBe("Micron");
@@ -798,7 +798,7 @@ Expected: both green — `ONBOARDING_STEPS` (8 steps, no `persona-theme`) matche
After a `POST /api/settings/restart-app`:
1. Settings → the "Assistant Name" panel is gone; the Wake-Word panel shows "Your assistant will be called: X" live as the phrase is edited.
-2. Set the wake word to "Hey Ruben"; confirm the Sidebar header / chat byline read "Ruben" after the change propagates.
+2. Set the wake word to "Hey Alex"; confirm the Sidebar header / chat byline read "Alex" after the change propagates.
3. Replay onboarding via `?onboarding=force`; confirm there is no separate name step and the wake-word step shows the derived-name preview.
---
diff --git a/docs/superpowers/plans/2026-06-23-language-selection-consistency.md b/docs/superpowers/plans/2026-06-23-language-selection-consistency.md
index 82f66a5654..e98ef92ba4 100644
--- a/docs/superpowers/plans/2026-06-23-language-selection-consistency.md
+++ b/docs/superpowers/plans/2026-06-23-language-selection-consistency.md
@@ -42,7 +42,7 @@ This is not one bug; it is a **family** of bugs around a sound central design th
| BCP-47 map duplication (4 sites, `:3379` missing `es`) | `jarvis/speech/pipeline.py:2488,3379,5916,6949` | T2 |
| Cartesia English-voice fallback | `jarvis/plugins/tts/cartesia_tts.py:112-139` | T2 |
| Hardcoded `language_code="de-DE"` background readback | `jarvis/speech/pipeline.py:2790` | T3 |
-| OpenClaw background-completed readback | `jarvis/speech/pipeline.py:2728,2755` | T3 |
+| Jarvis-Agents background-completed readback | `jarvis/speech/pipeline.py:2728,2755` | T3 |
| Cron-skill announcement (omits language) | `jarvis/speech/pipeline.py:2283-2288` | T3 |
| Tasks-runner agent-result announcement (omits language) | `jarvis/tasks/runner.py:398-404`, `:293` | T3 |
| CU progress "Schritt X von Y" hardcoded German | `jarvis/harness/screenshot_only_loop.py:4202-4208` | T3 |
@@ -330,7 +330,7 @@ git commit -m "fix(tts): one BCP-47 map (incl. es) + Cartesia stops defaulting t
T1 makes the *voice* consistent; this task fixes the *text* — the screenshot's announcement was English because the emitting brain turn (a scheduled skill) ran with no language directive. Every emitter that produces spoken text must pass the current `conversation_language` down to the brain call/composer and onto the event, instead of hardcoding/omitting `"de"`.
**Files:**
-- Modify: `jarvis/speech/pipeline.py:2790` (hardcoded `de-DE`), `:2728,2755` (OpenClaw-bg), `:2283-2288` (cron-skill)
+- Modify: `jarvis/speech/pipeline.py:2790` (hardcoded `de-DE`), `:2728,2755` (Jarvis-Agents-bg), `:2283-2288` (cron-skill)
- Modify: `jarvis/tasks/runner.py:398-404,293`
- Modify: `jarvis/harness/screenshot_only_loop.py:4202-4208,828`
- Test: extend `tests/unit/speech/test_announcement_language.py`; add `tests/unit/tasks/test_runner_announcement_language.py`
@@ -357,7 +357,7 @@ async def test_agent_result_announcement_carries_conversation_language(fake_bus,
assert ann.language == "de"
```
-For the pipeline-side hardcodes, add to `test_announcement_language.py` a test that the background sub-agent readback (`:2790`) and the OpenClaw background-completed readback (`:2728`) stamp the conversation language rather than a fixed `"de"`.
+For the pipeline-side hardcodes, add to `test_announcement_language.py` a test that the background Jarvis-Agent readback (`:2790`) and the Jarvis-Agents background-completed readback (`:2728`) stamp the conversation language rather than a fixed `"de"`.
- [ ] **Step 2: Run to verify they fail**
diff --git a/docs/superpowers/plans/2026-06-24-fast-boot-ws-offline-flash.md b/docs/superpowers/plans/2026-06-24-fast-boot-ws-offline-flash.md
new file mode 100644
index 0000000000..0d1c49e6ff
--- /dev/null
+++ b/docs/superpowers/plans/2026-06-24-fast-boot-ws-offline-flash.md
@@ -0,0 +1,665 @@
+# Fast-Boot "OFFLINE flash" Fix — Implementation Plan
+
+> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
+
+**Goal:** After a backend self-restart, the desktop window must show an honest "Starting…" state instead of a scary "OFFLINE" + dead chat input, and must reconnect within ~1s of the backend becoming ready.
+
+**Architecture:** The fast-boot `FastBootstrap` server (branch `feat/fast-boot-bootstrap`) answers `/api/health` 200 in ~150ms so the window appears immediately, but it currently **holds** every WebSocket handshake open until the real app is ready (up to a 120s hold). A browser times out a pending WS handshake after tens of seconds → its reconnect backoff escalates to the 10s cap → the window shows "OFFLINE" for the whole ~20–50s warmup. The fix is a coordinated three-part change: (1) the bootstrap **accept-then-closes** a warming WebSocket with code **1013** ("try again later") instead of holding it, so the client gets a fast, *readable* close code; (2) the frontend reads that code, reconnects fast (no backoff escalation), and treats it as a distinct **warming** state; (3) the UI renders warming as "Starting…" (not "OFFLINE").
+
+**Tech Stack:** Python (ASGI / uvicorn), `pytest` + `websockets` for the server probe; React + Zustand + Vitest for the frontend.
+
+---
+
+## Root cause (verified, with evidence)
+
+Confirmed by live forensics + isolated probes (not assumptions):
+
+1. **The OFFLINE label is NOT hardcoded.** `Sidebar.tsx:143` derives it from the store `connected` flag, which `useWebSocket.ts:47-48` sets from the WS `open`/`close` callbacks (default `false`, `events.ts:259`).
+2. **The text chat sends over the WS**, so disabling the input on `!connected` is internally consistent — but `connected` is the wrong signal during a restart warmup (`ChatInput.tsx:81-86`, `172-173`).
+3. **The bootstrap HOLDS warming WS handshakes.** In `fast_bootstrap.py._asgi`, a websocket scope during warming falls through to `await asyncio.wait_for(self._ready.wait(), timeout=120s)` (`fast_bootstrap.py:70-71`) — it does **not** fast-reject. Probe result: a client `websockets.connect(open_timeout=4)` against a warming bootstrap raises `TimeoutError: timed out during opening handshake`. The 1013 close in `_warming` (`fast_bootstrap.py:124-126`) only fires after the full 120s hold timeout, and being **pre-accept** it reaches the browser as a 403/1006, not 1013.
+4. **Close-code reachability (decisive probe):**
+ - **pre-accept** `websocket.close(1013)` → client sees `HTTP 403` (browser close code **1006** — unreadable as 1013).
+ - **post-accept** `websocket.accept` then `websocket.close(1013)` → client connects, then `ws.recv()` raises `ConnectionClosedError` with **`code == 1013`** (readable).
+ ⇒ To give the frontend a usable signal, the bootstrap MUST accept **then** close with 1013.
+5. **The frontend ignores the close code and escalates backoff.** `ws.ts:92-96` close handler takes no `code`; `ws.ts:121-129` escalates 500ms→1s→2s→4s→8s→10s with no eager-reconnect trigger.
+
+The self-restart is a full process + window relaunch (`desktop_app.py request_restart` → `relauncher`), so the window the user sees after a restart is always a fresh client whose first-ever connect happens during the warmup — exactly when the hold bites.
+
+## Design decisions
+
+- **Window still appears early.** We do NOT delay the window or change `/api/health` timing — fast-boot is the intended feature. We only fix what the window *shows* and how it reconnects during warmup. No change to `desktop_app.py` boot path (keeps the risky boot sequence untouched).
+- **Three connection states, not two.** Add a `wsWarming` boolean alongside `connected`. Display precedence: `connected` → normal; else `wsWarming` → "Starting…"; else → "OFFLINE".
+- **`connected` becomes welcome-gated.** Mark `connected=true` only when the real app's `welcome` frame arrives (not on raw socket `open`). The bootstrap's accept-then-close never sends a welcome, so it can never flip `connected` true → no flicker.
+- **`wsWarming` defaults `true`** so the very first paint after a restart reads "Starting…", not "OFFLINE". The first non-1013 close (e.g. a genuinely dead backend → 1006) flips it to `false` → honest OFFLINE.
+- **Input stays disabled while not connected** (you genuinely cannot send during boot), but the placeholder reads "Starting…" — removing the "broken" feeling. A send-queue is explicitly out of scope (YAGNI).
+
+---
+
+## Task 1: Bootstrap fast-rejects a warming WebSocket with a readable 1013
+
+**Files:**
+- Create: `tests/unit/ui/web/test_fast_bootstrap_ws.py`
+- Modify: `jarvis/ui/web/fast_bootstrap.py:46-81` (the `_asgi` warming branch)
+
+- [ ] **Step 1: Write the failing test**
+
+```python
+# tests/unit/ui/web/test_fast_bootstrap_ws.py
+"""A warming FastBootstrap must NOT hold a WS handshake open; it must
+accept-then-close with code 1013 so the client gets a fast, readable
+"try again later" and reconnects (instead of the browser timing out the
+pending handshake → escalating backoff → a long spurious 'OFFLINE')."""
+from __future__ import annotations
+
+import asyncio
+import logging
+
+import pytest
+import websockets
+
+from jarvis.ui.web.fast_bootstrap import FastBootstrap
+
+
+async def test_warming_ws_is_fast_closed_with_1013() -> None:
+ logging.disable(logging.CRITICAL)
+ bs = FastBootstrap()
+ await bs.serve("127.0.0.1", 47995) # NOT set_app -> warming
+ try:
+ # Must connect quickly (handshake accepted) — the old hold made this
+ # time out. open_timeout well under the old 120s hold proves no-hold.
+ async with websockets.connect(
+ "ws://127.0.0.1:47995/ws", open_timeout=3
+ ) as ws:
+ with pytest.raises(websockets.ConnectionClosed) as exc:
+ await asyncio.wait_for(ws.recv(), timeout=3)
+ assert exc.value.code == 1013
+ finally:
+ await bs.stop()
+ logging.disable(logging.NOTSET)
+```
+
+- [ ] **Step 2: Run test to verify it fails**
+
+Run: `python -m pytest tests/unit/ui/web/test_fast_bootstrap_ws.py -v`
+Expected: FAIL — `TimeoutError: timed out during opening handshake` (the bootstrap currently holds the handshake instead of accepting+closing).
+
+- [ ] **Step 3: Add the warming-websocket branch (stop holding)**
+
+In `jarvis/ui/web/fast_bootstrap.py`, inside `_asgi`, immediately AFTER the health-200 block (after line 68 `return`) and BEFORE the `try: await asyncio.wait_for(self._ready.wait(), ...)` block, insert:
+
+```python
+ # A websocket during warming must NOT hold the handshake open: a
+ # browser times out a pending WS handshake (tens of seconds) and its
+ # client then escalates its reconnect backoff, so the desktop window
+ # shows a long spurious "OFFLINE" after every restart. Accept-then-close
+ # with 1013 ("try again later") instead — the client receives a readable
+ # close code and reconnects fast once the real app is registered.
+ if kind == "websocket":
+ await receive() # consume the websocket.connect event
+ await send({"type": "websocket.accept"})
+ await send({"type": "websocket.close", "code": 1013})
+ return
+```
+
+- [ ] **Step 4: Run test to verify it passes**
+
+Run: `python -m pytest tests/unit/ui/web/test_fast_bootstrap_ws.py -v`
+Expected: PASS.
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add jarvis/ui/web/fast_bootstrap.py tests/unit/ui/web/test_fast_bootstrap_ws.py
+git commit -m "fix(fast-boot): accept-then-close warming WS with 1013 instead of holding"
+```
+
+---
+
+## Task 2: Add the honest `booting` i18n label
+
+**Files:**
+- Modify: `jarvis/ui/web/frontend/src/i18n/locales/en.json` (the `voice_state` object)
+- Modify: `jarvis/ui/web/frontend/src/i18n/locales/de.json` (the `voice_state` object)
+- Modify: `jarvis/ui/web/frontend/src/i18n/locales/es.json` (the `voice_state` object)
+
+- [ ] **Step 1: Add the key to all three locales**
+
+In each file, inside `"voice_state": { ... }`, add a `"booting"` entry next to `"offline"`:
+
+`en.json`:
+```json
+ "offline": "Offline",
+ "booting": "Starting…",
+```
+
+`de.json`:
+```json
+ "offline": "Offline",
+ "booting": "Startet…",
+```
+
+`es.json` (place next to its existing `"offline"`):
+```json
+ "offline": "Sin conexión",
+ "booting": "Iniciando…",
+```
+
+- [ ] **Step 2: Verify the JSON parses**
+
+Run: `node -e "for(const l of ['en','de','es']){const j=require('./jarvis/ui/web/frontend/src/i18n/locales/'+l+'.json'); if(!j.voice_state.booting) throw new Error(l+' missing voice_state.booting'); console.log(l, j.voice_state.booting)}"`
+Expected: prints the three labels, no throw.
+
+- [ ] **Step 3: Commit**
+
+```bash
+git add jarvis/ui/web/frontend/src/i18n/locales/en.json jarvis/ui/web/frontend/src/i18n/locales/de.json jarvis/ui/web/frontend/src/i18n/locales/es.json
+git commit -m "i18n: add voice_state.booting label (de/en/es)"
+```
+
+---
+
+## Task 3: `WSClient` surfaces the close code and fast-retries on 1013
+
+**Files:**
+- Modify: `jarvis/ui/web/frontend/src/lib/ws.ts:10-17` (`WSClientOptions.onClose` signature), `:29-46` (field), `:92-101` (close listener), `:121-129` (`scheduleReconnect`)
+- Test: `jarvis/ui/web/frontend/src/__tests__/ws.test.ts` (add cases)
+
+- [ ] **Step 1: Write the failing tests**
+
+Append to `jarvis/ui/web/frontend/src/__tests__/ws.test.ts`, inside the existing `describe("WSClient", ...)` block (the `MockWebSocket` already lives in this file):
+
+```ts
+ it("passes the close code to onClose", async () => {
+ const onClose = vi.fn();
+ const client = new WSClient({ onClose });
+ client.connect();
+ await Promise.resolve();
+ MockWebSocket.last!.fire("close", { code: 1013 });
+ expect(onClose).toHaveBeenCalledWith(1013);
+ client.close();
+ });
+
+ it("retries fast (no backoff escalation) after a 1013 warming close", async () => {
+ vi.useFakeTimers();
+ try {
+ const client = new WSClient();
+ client.connect();
+ const first = MockWebSocket.last;
+ // Warming close → must reconnect at MIN_BACKOFF (500ms), not escalate.
+ first!.fire("close", { code: 1013 });
+ vi.advanceTimersByTime(500);
+ expect(MockWebSocket.last).not.toBe(first); // a new socket was opened
+ client.close();
+ } finally {
+ vi.useRealTimers();
+ }
+ });
+```
+
+- [ ] **Step 2: Run to verify they fail**
+
+Run: `cd jarvis/ui/web/frontend && npx vitest run src/__tests__/ws.test.ts`
+Expected: FAIL — `onClose` called with no argument; the 1013 test may pass incidentally but the `onClose(code)` test fails (current handler calls `this.onClose?.()`).
+
+- [ ] **Step 3: Implement the close-code plumbing**
+
+In `jarvis/ui/web/frontend/src/lib/ws.ts`:
+
+(a) Change the option type (around line 16):
+```ts
+ onClose?: (code?: number) => void;
+```
+
+(b) Add a field next to the other private fields (around line 39):
+```ts
+ private lastCloseCode: number | undefined;
+```
+
+(c) Replace the close listener (lines 92-96) with:
+```ts
+ this.ws.addEventListener("close", (ev) => {
+ this.stopPing();
+ this.lastCloseCode = (ev as CloseEvent).code;
+ this.onClose?.(this.lastCloseCode);
+ if (!this.stopped) this.scheduleReconnect();
+ });
+```
+
+(d) Replace `scheduleReconnect` (lines 121-129) with:
+```ts
+ private scheduleReconnect(): void {
+ if (this.reconnectTimer) return;
+ // The fast-boot bootstrap closes a warming WS with code 1013 ("try again
+ // later"): the backend is still booting, this is NOT a failure. Retry at a
+ // fixed short interval instead of escalating the backoff, so the window
+ // reconnects within ~1s of the real app becoming ready.
+ const warming = this.lastCloseCode === 1013;
+ const delay = warming ? MIN_BACKOFF : this.backoff;
+ if (!warming) this.backoff = Math.min(MAX_BACKOFF, this.backoff * 2);
+ this.reconnectTimer = setTimeout(() => {
+ this.reconnectTimer = null;
+ this.openSocket();
+ }, delay);
+ }
+```
+
+- [ ] **Step 4: Run to verify they pass**
+
+Run: `cd jarvis/ui/web/frontend && npx vitest run src/__tests__/ws.test.ts`
+Expected: PASS (all cases, including the pre-existing two).
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add jarvis/ui/web/frontend/src/lib/ws.ts jarvis/ui/web/frontend/src/__tests__/ws.test.ts
+git commit -m "feat(ws): surface close code + fast-retry on 1013 warming close"
+```
+
+---
+
+## Task 4: Store gains `wsWarming` (default true) + `setWarming`
+
+**Files:**
+- Modify: `jarvis/ui/web/frontend/src/store/events.ts:164-165` (interface), `:219-220` (action type), `:258-259` (initial state), `:290-291` (action impl)
+- Test: `jarvis/ui/web/frontend/src/store/events.test.ts` (add a case)
+
+- [ ] **Step 1: Write the failing test**
+
+Append to `jarvis/ui/web/frontend/src/store/events.test.ts` (use whatever import the file already has for `useEventStore`):
+
+```ts
+ it("tracks wsWarming and defaults it to true", () => {
+ // Fresh store: warming until proven connected/offline so the first paint
+ // after a restart reads "Starting…", never a scary "OFFLINE".
+ expect(useEventStore.getState().wsWarming).toBe(true);
+ useEventStore.getState().setWarming(false);
+ expect(useEventStore.getState().wsWarming).toBe(false);
+ useEventStore.getState().setWarming(true);
+ expect(useEventStore.getState().wsWarming).toBe(true);
+ });
+```
+
+- [ ] **Step 2: Run to verify it fails**
+
+Run: `cd jarvis/ui/web/frontend && npx vitest run src/store/events.test.ts`
+Expected: FAIL — `wsWarming` / `setWarming` undefined.
+
+- [ ] **Step 3: Add the state + action**
+
+In `jarvis/ui/web/frontend/src/store/events.ts`:
+
+(a) In the `EventStore` interface, next to `connected: boolean;` (line 165):
+```ts
+ // True while the WS keeps getting closed with code 1013 by the fast-boot
+ // bootstrap (backend still warming up). Distinct from `connected`: drives the
+ // honest "Starting…" indicator instead of "OFFLINE". Defaults true so the
+ // first paint after a restart never flashes "OFFLINE".
+ wsWarming: boolean;
+```
+
+(b) In the interface action list, next to `setConnected` (line 220):
+```ts
+ setWarming: (warming: boolean) => void;
+```
+
+(c) In the initial state object, next to `connected: false,` (line 259):
+```ts
+ wsWarming: true,
+```
+
+(d) In the action implementations, next to `setConnected` (line 291):
+```ts
+ setWarming: (warming) => set({ wsWarming: warming }),
+```
+
+- [ ] **Step 4: Run to verify it passes**
+
+Run: `cd jarvis/ui/web/frontend && npx vitest run src/store/events.test.ts`
+Expected: PASS.
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add jarvis/ui/web/frontend/src/store/events.ts jarvis/ui/web/frontend/src/store/events.test.ts
+git commit -m "feat(store): add wsWarming state (default true) for the boot indicator"
+```
+
+---
+
+## Task 5: `useWebSocket` gates `connected` on the welcome frame and sets `wsWarming` on 1013
+
+**Files:**
+- Modify: `jarvis/ui/web/frontend/src/hooks/useWebSocket.ts:31-48` (grab `setWarming`, change `onOpen`/`onClose`), `:49-52` (welcome branch sets connected)
+- Test: Create `jarvis/ui/web/frontend/src/hooks/useWebSocket.test.tsx`
+
+- [ ] **Step 1: Write the failing test**
+
+```tsx
+// jarvis/ui/web/frontend/src/hooks/useWebSocket.test.tsx
+import { act, cleanup, render } from "@testing-library/react";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+
+import { useWebSocket } from "@/hooks/useWebSocket";
+import { useEventStore } from "@/store/events";
+
+/** Same minimal WebSocket mock shape as src/__tests__/ws.test.ts. */
+class MockWebSocket {
+ static OPEN = 1;
+ static CLOSED = 3;
+ readyState = MockWebSocket.OPEN;
+ static last: MockWebSocket | null = null;
+ private listeners: Record<string, Array<(ev: any) => void>> = {};
+ constructor(public url: string) {
+ MockWebSocket.last = this;
+ queueMicrotask(() => this.fire("open", {}));
+ }
+ addEventListener(type: string, fn: (ev: any) => void) {
+ (this.listeners[type] ??= []).push(fn);
+ }
+ send = vi.fn();
+ close = vi.fn(() => {
+ this.readyState = MockWebSocket.CLOSED;
+ this.fire("close", { code: 1000 });
+ });
+ fire(type: string, ev: any) {
+ (this.listeners[type] ?? []).forEach((fn) => fn(ev));
+ }
+ deliver(data: unknown) {
+ this.fire("message", { data: typeof data === "string" ? data : JSON.stringify(data) });
+ }
+}
+
+function Harness() {
+ useWebSocket();
+ return null;
+}
+
+describe("useWebSocket connection state", () => {
+ const OriginalWS = globalThis.WebSocket;
+ beforeEach(() => {
+ (globalThis as any).WebSocket = MockWebSocket;
+ (window as any).__JARVIS_TOKEN = undefined;
+ useEventStore.setState({ connected: false, wsWarming: true });
+ });
+ afterEach(() => {
+ cleanup();
+ (globalThis as any).WebSocket = OriginalWS;
+ MockWebSocket.last = null;
+ });
+
+ it("marks connected only when the welcome frame arrives", async () => {
+ render(<Harness />);
+ await act(async () => { await Promise.resolve(); }); // run the queued "open"
+ // Raw socket open alone must NOT mark connected (the bootstrap also opens).
+ expect(useEventStore.getState().connected).toBe(false);
+ await act(async () => {
+ MockWebSocket.last!.deliver({
+ type: "welcome",
+ session_id: "s",
+ version: "0.1.0",
+ token: "t",
+ });
+ });
+ expect(useEventStore.getState().connected).toBe(true);
+ expect(useEventStore.getState().wsWarming).toBe(false);
+ });
+
+ it("sets wsWarming on a 1013 close and clears it on a non-1013 close", async () => {
+ render(<Harness />);
+ await act(async () => { await Promise.resolve(); });
+ await act(async () => { MockWebSocket.last!.fire("close", { code: 1013 }); });
+ expect(useEventStore.getState().wsWarming).toBe(true);
+ expect(useEventStore.getState().connected).toBe(false);
+ await act(async () => { MockWebSocket.last!.fire("close", { code: 1006 }); });
+ expect(useEventStore.getState().wsWarming).toBe(false);
+ });
+});
+```
+
+- [ ] **Step 2: Run to verify it fails**
+
+Run: `cd jarvis/ui/web/frontend && npx vitest run src/hooks/useWebSocket.test.tsx`
+Expected: FAIL — first test fails because `onOpen` currently sets `connected=true` on raw open (welcome-gating not implemented); the warming test fails because `wsWarming` is never set.
+
+- [ ] **Step 3: Implement welcome-gating + warming**
+
+In `jarvis/ui/web/frontend/src/hooks/useWebSocket.ts`:
+
+(a) Add the store selector next to the others (after line 31 `const setConnected = ...`):
+```ts
+ const setWarming = useEventStore((s) => s.setWarming);
+```
+
+(b) Replace the `onOpen`/`onClose` lines (47-48) with:
+```ts
+ // `connected` is welcome-gated (see the welcome branch below), so a raw
+ // socket open must NOT mark connected — the fast-boot bootstrap also
+ // opens then closes with 1013 without ever sending a welcome frame.
+ onOpen: () => {},
+ onClose: (code) => {
+ // 1013 = bootstrap "try again later" → backend still warming, not down.
+ setWarming(code === 1013);
+ setConnected(false);
+ },
+```
+
+(c) In `onMessage`, replace the welcome short-circuit (lines 50-51):
+```ts
+ const welcome = WSWelcome.safeParse(raw);
+ if (welcome.success) {
+ // The real app sends `welcome` immediately after accepting the socket;
+ // this — not the raw open — is the authoritative "connected" signal.
+ setConnected(true);
+ setWarming(false);
+ return;
+ }
+```
+
+(d) Add `setWarming` to the effect dependency array (the list ending at line 265, after `setConnected,`):
+```ts
+ setConnected,
+ setWarming,
+```
+
+- [ ] **Step 4: Run to verify it passes**
+
+Run: `cd jarvis/ui/web/frontend && npx vitest run src/hooks/useWebSocket.test.tsx`
+Expected: PASS.
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add jarvis/ui/web/frontend/src/hooks/useWebSocket.ts jarvis/ui/web/frontend/src/hooks/useWebSocket.test.tsx
+git commit -m "feat(ws): welcome-gate connected; set wsWarming on 1013 close"
+```
+
+---
+
+## Task 6: Sidebar shows "Starting…" while warming, "OFFLINE" only when truly offline
+
+**Files:**
+- Modify: `jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx:130-147` (read `wsWarming`, branch the label + spinner)
+- Test: `jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx` (add cases)
+
+- [ ] **Step 1: Write the failing tests**
+
+Append inside the existing `describe("Sidebar voice header", ...)` block in `Sidebar.test.tsx`:
+
+```tsx
+ test("shows the booting label (not OFFLINE) while warming", () => {
+ useEventStore.setState({ connected: false, wsWarming: true });
+ render(<Sidebar />);
+ expect(screen.getByText("Starting…")).toBeInTheDocument();
+ expect(screen.queryByText("Offline")).toBeNull();
+ });
+
+ test("shows OFFLINE only when disconnected and not warming", () => {
+ useEventStore.setState({ connected: false, wsWarming: false });
+ render(<Sidebar />);
+ expect(screen.getByText("Offline")).toBeInTheDocument();
+ });
+```
+
+- [ ] **Step 2: Run to verify they fail**
+
+Run: `cd jarvis/ui/web/frontend && npx vitest run src/components/layout/Sidebar.test.tsx`
+Expected: FAIL — while disconnected the label is always "Offline" (no warming branch yet).
+
+- [ ] **Step 3: Implement the warming branch**
+
+In `jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx`:
+
+(a) Add the selector next to `const connected = ...` (line 130):
+```ts
+ const wsWarming = useEventStore((s) => s.wsWarming);
+```
+
+(b) Replace the `voiceWarming` + `voiceLabel` block (lines 141-147) with:
+```ts
+ const voiceWarming = connected && !voiceReady;
+ // A disconnected-but-warming socket (fast-boot backend still starting) reads
+ // "Starting…", not the alarming "OFFLINE".
+ const bootWarming = !connected && wsWarming;
+ const showSpinner = voiceWarming || bootWarming;
+ const vs = VOICE_STATE_STYLE[voiceState] ?? VOICE_STATE_STYLE.idle;
+ const voiceLabel = !connected
+ ? bootWarming
+ ? t("voice_state.booting")
+ : t("voice_state.offline")
+ : voiceWarming
+ ? t("voice_state.starting")
+ : t(`voice_state.${voiceState}`);
+```
+
+(c) Replace the spinner-vs-dot condition (line 170 `{voiceWarming ? (`) with `{showSpinner ? (`.
+
+- [ ] **Step 4: Run to verify they pass**
+
+Run: `cd jarvis/ui/web/frontend && npx vitest run src/components/layout/Sidebar.test.tsx`
+Expected: PASS (existing cases stay green — they set `connected: true`).
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx
+git commit -m "feat(sidebar): show Starting… while warming, OFFLINE only when truly offline"
+```
+
+---
+
+## Task 7: ChatInput shows an honest "Starting…" placeholder while warming
+
+**Files:**
+- Modify: `jarvis/ui/web/frontend/src/components/ChatInput.tsx:17` (read `wsWarming`), `:172` (placeholder)
+- Test: Create `jarvis/ui/web/frontend/src/components/ChatInput.test.tsx`
+
+- [ ] **Step 1: Write the failing test**
+
+```tsx
+// jarvis/ui/web/frontend/src/components/ChatInput.test.tsx
+import { cleanup, render, screen } from "@testing-library/react";
+import { afterEach, beforeEach, describe, expect, test } from "vitest";
+
+import { ChatInput } from "@/components/ChatInput";
+import { useEventStore } from "@/store/events";
+
+describe("ChatInput offline/warming placeholder", () => {
+ beforeEach(() => {
+ useEventStore.setState({ connected: false, wsWarming: true, chatThinking: false, dictating: false });
+ });
+ afterEach(() => cleanup());
+
+ test("shows the booting placeholder while warming", () => {
+ render(<ChatInput />);
+ const box = screen.getByPlaceholderText("Starting…");
+ expect(box).toBeDisabled();
+ });
+
+ test("shows the offline placeholder when truly offline", () => {
+ useEventStore.setState({ connected: false, wsWarming: false });
+ render(<ChatInput />);
+ expect(screen.getByPlaceholderText("Offline")).toBeInTheDocument();
+ });
+});
+```
+
+- [ ] **Step 2: Run to verify it fails**
+
+Run: `cd jarvis/ui/web/frontend && npx vitest run src/components/ChatInput.test.tsx`
+Expected: FAIL — placeholder is always "Offline" when disconnected.
+
+- [ ] **Step 3: Implement the warming placeholder**
+
+In `jarvis/ui/web/frontend/src/components/ChatInput.tsx`:
+
+(a) Add the selector next to `const connected = ...` (line 17):
+```ts
+ const wsWarming = useEventStore((s) => s.wsWarming);
+```
+
+(b) Replace the `placeholder` prop (line 172) with:
+```tsx
+ placeholder={
+ connected
+ ? t("chats_view.input_placeholder")
+ : wsWarming
+ ? t("voice_state.booting")
+ : t("voice_state.offline")
+ }
+```
+
+(Leave `disabled={!connected}` unchanged — sending genuinely requires the live socket; the honest placeholder is the fix.)
+
+- [ ] **Step 4: Run to verify it passes**
+
+Run: `cd jarvis/ui/web/frontend && npx vitest run src/components/ChatInput.test.tsx`
+Expected: PASS.
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add jarvis/ui/web/frontend/src/components/ChatInput.tsx jarvis/ui/web/frontend/src/components/ChatInput.test.tsx
+git commit -m "feat(chat-input): honest Starting… placeholder while the backend warms up"
+```
+
+---
+
+## Task 8: Full verification + production build
+
+**Files:** none (verification only)
+
+- [ ] **Step 1: Run the frontend test suite**
+
+Run: `cd jarvis/ui/web/frontend && npx vitest run`
+Expected: PASS (no regressions; the new cases green).
+
+- [ ] **Step 2: Type-check + production build**
+
+Run: `cd jarvis/ui/web/frontend && npm run build`
+Expected: `tsc` clean, Vite build succeeds → `jarvis/ui/web/dist` refreshed (so the running editable backend serves the new bundle).
+
+- [ ] **Step 3: Run the bootstrap server test**
+
+Run: `python -m pytest tests/unit/ui/web/test_fast_bootstrap_ws.py -v`
+Expected: PASS.
+
+- [ ] **Step 4: Live verification (manual, on the maintainer's desktop)**
+
+Restart the running app via `POST /api/settings/restart-app`, then watch the new window during the ~20–50s warmup. Expected: the sidebar reads **"Startet…"** with a spinner and the chat placeholder reads **"Startet…"** (NOT "Offline"); within ~1s of the backend finishing boot the sidebar flips to the normal voice state and the chat input becomes active. There must be no multi-second "OFFLINE" + dead input.
+
+- [ ] **Step 5: Final commit (if any build artifacts changed)**
+
+```bash
+git add jarvis/ui/web/dist
+git commit -m "build(frontend): rebuild bundle with the boot-warming indicator"
+```
+
+---
+
+## Self-review
+
+- **Spec coverage:** Server no-hold + readable 1013 (Task 1) ✓; fast-retry on 1013 (Task 3) ✓; tri-state with honest label (Tasks 4–7) ✓; no `desktop_app.py`/boot-path change (by design) ✓.
+- **Type/name consistency:** `wsWarming` (state) + `setWarming` (action) used identically in Tasks 4, 5, 6, 7. `onClose?: (code?: number) => void` defined in Task 3 and consumed in Task 5. `voice_state.booting` added in Task 2 and consumed in Tasks 6, 7.
+- **Risk:** All frontend display logic keys off two booleans already in the store pattern (`connected`, `voiceReady`); the only behavioral change to existing flows is welcome-gating `connected`, which adds at most one network-frame of latency before the chat unlocks on a normal connect — covered by the Task 5 welcome test. The server change is additive (a new early branch) and cannot affect the post-`set_app` delegated path.
+- **Out of scope (intentional, YAGNI):** a send-queue that buffers typed messages during boot; `focus`/`online`/`visibilitychange` eager-reconnect triggers (the 1013 fast-retry already reconnects within ~1s).
diff --git a/docs/superpowers/plans/2026-06-26-cli-answer-quality-hardening.md b/docs/superpowers/plans/2026-06-26-cli-answer-quality-hardening.md
new file mode 100644
index 0000000000..61c76fe6d2
--- /dev/null
+++ b/docs/superpowers/plans/2026-06-26-cli-answer-quality-hardening.md
@@ -0,0 +1,285 @@
+# CLI Answer-Quality Hardening Implementation Plan
+
+> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
+
+**Goal:** Make Jarvis answer naturally (not with raw JSON / table dumps) when the brain drives the `jarvisctl` control CLI, by emitting JSON to non-interactive consumers and teaching the brain how to read a `cli_*` tool result.
+
+**Architecture:** Two small, independent changes. (1) `jarvis/cli_ctl/render.py::emit` emits JSON whenever stdout is not an interactive terminal (the brain runs `jarvisctl` with a piped stdout), keeping the Rich table only for a real human terminal. (2) The CONNECTED CLIS system-prompt section (`jarvis/clis/prompt_section.py`) gains a short, English, language-neutral rule describing the `cli_*` result shape and instructing the model to interpret `stdout` rather than read the envelope aloud.
+
+**Tech Stack:** Python 3.11, Typer/Click CLI, Rich, pytest. Spec: `docs/superpowers/specs/2026-06-26-cli-answer-quality-hardening-design.md`.
+
+**Interpreter note:** Run tests with the real CPython, not the uv shim: on this box that is `C:\Program Files\Python311\python.exe`. Commands below use `python -m pytest`; if `python` resolves to the uv shim, substitute the full path.
+
+---
+
+## File Structure
+
+- Modify: `jarvis/cli_ctl/render.py` — add `_stdout_isatty()` helper; `emit()` chooses JSON when `as_json` OR not a TTY.
+- Modify: `tests/unit/cli_ctl/test_render.py` — force TTY for the table test; add non-TTY→JSON, json-flag-wins, and isatty-fallback tests.
+- Modify: `jarvis/clis/prompt_section.py` — extend `_FOOTER` with the `cli_*` result-interpretation rule.
+- Modify: `tests/unit/clis/test_prompt_section.py` — add a test asserting the new interpretation rule is rendered.
+
+No new files. Both tasks are independent and committed separately.
+
+**Pre-flight (run once before Task 1):** confirm the editable install points at this working tree.
+
+Run: `python -c "import jarvis; print(jarvis.__file__)"`
+Expected: a path inside `<USER_HOME>\Desktop\Personal Jarvis\jarvis\__init__.py`. If it points elsewhere, run `pwsh scripts/preflight.ps1` and fix before proceeding (BUG-006/014).
+
+---
+
+## Task 1: JSON output when stdout is not a TTY
+
+**Files:**
+- Modify: `jarvis/cli_ctl/render.py:19-41` (the `emit` function; add helper above it)
+- Test: `tests/unit/cli_ctl/test_render.py`
+
+- [ ] **Step 1: Update the table test to force a TTY, and add the new behavior tests**
+
+Replace the entire contents of `tests/unit/cli_ctl/test_render.py` with:
+
+```python
+# tests/unit/cli_ctl/test_render.py
+import json
+
+from jarvis.cli_ctl import render
+
+
+def test_emit_json_mode_prints_raw_json(capsys):
+ render.emit({"a": 1, "ä": "ö"}, as_json=True) # i18n-allow: UTF-8 round-trip test data
+ out = capsys.readouterr().out
+ assert json.loads(out) == {"a": 1, "ä": "ö"} # UTF-8 preserved, not escaped (i18n-allow)
+
+
+def test_emit_human_list_of_dicts_prints_table(capsys, monkeypatch):
+ # Force an interactive terminal so the human Rich-table path is exercised.
+ monkeypatch.setattr(render, "_stdout_isatty", lambda: True)
+ rows = [{"id": "1", "state": "scheduled"}, {"id": "2", "state": "running"}]
+ render.emit(rows, as_json=False)
+ out = capsys.readouterr().out
+ assert "id" in out and "state" in out and "scheduled" in out
+
+
+def test_emit_non_tty_defaults_to_json(capsys, monkeypatch):
+ # The brain / pipes / scripts: stdout is not a TTY → JSON even without --json.
+ monkeypatch.setattr(render, "_stdout_isatty", lambda: False)
+ rows = [{"id": "1", "state": "scheduled"}]
+ render.emit(rows, as_json=False)
+ out = capsys.readouterr().out
+ assert json.loads(out) == [{"id": "1", "state": "scheduled"}]
+
+
+def test_emit_json_flag_wins_over_tty(capsys, monkeypatch):
+ # An explicit --json forces JSON even in an interactive terminal.
+ monkeypatch.setattr(render, "_stdout_isatty", lambda: True)
+ render.emit({"k": "v"}, as_json=True)
+ out = capsys.readouterr().out
+ assert json.loads(out) == {"k": "v"}
+
+
+def test_stdout_isatty_defaults_false_without_isatty(monkeypatch):
+ # An exotic stdout wrapper without isatty must not crash; default to JSON.
+ class _NoIsatty:
+ pass
+
+ monkeypatch.setattr(render.sys, "stdout", _NoIsatty())
+ assert render._stdout_isatty() is False
+
+
+def test_error_sets_message_on_stderr(capsys):
+ render.error("boom")
+ err = capsys.readouterr().err
+ assert "boom" in err
+```
+
+- [ ] **Step 2: Run the tests to verify the new ones fail**
+
+Run: `python -m pytest tests/unit/cli_ctl/test_render.py -v`
+Expected: FAIL — `test_emit_non_tty_defaults_to_json` and `test_stdout_isatty_defaults_false_without_isatty` fail with `AttributeError: module 'jarvis.cli_ctl.render' has no attribute '_stdout_isatty'`; `test_emit_human_list_of_dicts_prints_table` also errors for the same reason (monkeypatch target missing).
+
+- [ ] **Step 3: Implement the helper + non-TTY JSON default in `render.py`**
+
+In `jarvis/cli_ctl/render.py`, add the helper immediately above `def emit(` (after the `_out`/`_err` Console definitions), and change the first line of `emit`'s body. The full updated region (from the helper through the end of `emit`) must read exactly:
+
+```python
+def _stdout_isatty() -> bool:
+ """True only for a real interactive terminal. Any failure (an exotic stdio
+ wrapper without ``isatty``, or one that raises) is treated as
+ non-interactive, so non-TTY consumers — the brain's piped subprocess, a
+ shell pipe, a script — receive machine-readable JSON."""
+ try:
+ return bool(sys.stdout.isatty())
+ except Exception: # noqa: BLE001 - non-interactive is the safe default
+ return False
+
+
+def emit(payload: Any, *, as_json: bool) -> None:
+ # Machine-readable JSON when explicitly requested (--json) OR whenever stdout
+ # is not an interactive terminal. The cli_jarvisctl tool runs `jarvisctl`
+ # with a piped stdout, so the brain (and any pipe/script) gets parsable JSON
+ # instead of a Rich table it would have to parse character-by-character.
+ if as_json or not _stdout_isatty():
+ # ensure_ascii=False keeps umlauts/emoji intact across platforms.
+ sys.stdout.write(json.dumps(payload, indent=2, ensure_ascii=False) + "\n")
+ return
+ if isinstance(payload, list) and payload and all(
+ isinstance(r, dict) for r in payload
+ ):
+ cols: list[str] = []
+ for row in payload:
+ for k in row:
+ if k not in cols:
+ cols.append(k)
+ table = Table(show_header=True, header_style="bold")
+ for c in cols:
+ table.add_column(str(c))
+ for row in payload:
+ table.add_row(*(str(row.get(c, "")) for c in cols))
+ _out.print(table)
+ elif isinstance(payload, (dict, list)):
+ _out.print_json(json.dumps(payload, ensure_ascii=False))
+ elif payload is not None:
+ _out.print(str(payload))
+```
+
+(The body below the `if as_json or not _stdout_isatty():` guard is unchanged from the original — only the guard condition and the new helper + comment are added.)
+
+- [ ] **Step 4: Run the render tests to verify they pass**
+
+Run: `python -m pytest tests/unit/cli_ctl/test_render.py -v`
+Expected: PASS — all six tests green.
+
+- [ ] **Step 5: Run the full cli_ctl suite to confirm no regressions**
+
+Run: `python -m pytest tests/unit/cli_ctl/ -q`
+Expected: PASS. In particular `tests/unit/cli_ctl/test_safety.py::test_dry_run_prints_and_blocks` (asserts `"dry_run" in out or "POST" in out`) and `tests/unit/cli_ctl/test_dynamic_graft.py` (asserts `"pong" in res.output`) stay green — their substrings appear in the JSON output too.
+
+- [ ] **Step 6: Lint**
+
+Run: `ruff check jarvis/cli_ctl/render.py`
+Expected: no errors.
+
+- [ ] **Step 7: Commit (path-scoped — shared working tree)**
+
+```bash
+git add jarvis/cli_ctl/render.py tests/unit/cli_ctl/test_render.py
+git commit -m "feat(cli): jarvisctl emits JSON to non-TTY consumers (brain/pipes/scripts)
+
+render.emit now returns JSON whenever stdout is not an interactive terminal, so
+the brain's piped subprocess gets parsable JSON instead of a Rich table. A real
+human terminal still gets the table; an explicit --json still forces JSON.
+
+Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>"
+```
+
+---
+
+## Task 2: `cli_*` result-interpretation rule in the system prompt
+
+**Files:**
+- Modify: `jarvis/clis/prompt_section.py:26-32` (the `_FOOTER` string)
+- Test: `tests/unit/clis/test_prompt_section.py`
+
+- [ ] **Step 1: Write the failing test**
+
+Append this test to `tests/unit/clis/test_prompt_section.py`:
+
+```python
+def test_section_explains_cli_result_interpretation():
+ from jarvis.clis.prompt_section import render_connected_clis_section
+
+ fake = FakeCliRegistry({"gh": make_spec("gh")}, active=[FakeTool("cli_gh")])
+ out = render_connected_clis_section(fake)
+ # Describes the structured result shape …
+ assert "exit_code" in out
+ assert "stdout" in out
+ # … and tells the model to interpret stdout, not read the envelope aloud.
+ assert "summarize" in out.lower() or "natural" in out.lower()
+ assert "never read" in out.lower()
+```
+
+- [ ] **Step 2: Run the test to verify it fails**
+
+Run: `python -m pytest tests/unit/clis/test_prompt_section.py::test_section_explains_cli_result_interpretation -v`
+Expected: FAIL — `assert "exit_code" in out` fails (the footer does not mention it yet).
+
+- [ ] **Step 3: Extend `_FOOTER` in `prompt_section.py`**
+
+Replace the `_FOOTER` definition (`jarvis/clis/prompt_section.py:26-32`) with:
+
+```python
+_FOOTER = (
+ "\nAnswer ONLY from the tool result — never invent external data. Prefer "
+ "machine-readable output flags (--json, --format json) when the CLI "
+ "supports them. If you are unsure of the exact command or flags, first run "
+ "`<cli> --help` or `<cli> <group> --help` (read-only) to discover them, "
+ "then issue the real command.\n"
+ "Each cli_* tool result is a structured object: "
+ "{success, output:{exit_code, stdout, stderr, duration_ms}, error}. "
+ "An exit_code of 0 means success and stdout holds the real result (often "
+ "JSON) — read it, then summarize it in your own natural words. Never read "
+ "the result object, the JSON envelope, the exit code, or table characters "
+ "aloud. On a non-zero exit_code, briefly explain the cause from stderr in "
+ "plain language; never quote the error object."
+)
+```
+
+- [ ] **Step 4: Run the test to verify it passes**
+
+Run: `python -m pytest tests/unit/clis/test_prompt_section.py::test_section_explains_cli_result_interpretation -v`
+Expected: PASS.
+
+- [ ] **Step 5: Run the full prompt-section suite**
+
+Run: `python -m pytest tests/unit/clis/test_prompt_section.py -v`
+Expected: PASS — all existing tests (`test_renders_connected_cli_with_description_and_examples`, etc.) stay green; the new test passes.
+
+- [ ] **Step 6: Lint**
+
+Run: `ruff check jarvis/clis/prompt_section.py`
+Expected: no errors.
+
+- [ ] **Step 7: Commit (path-scoped)**
+
+```bash
+git add jarvis/clis/prompt_section.py tests/unit/clis/test_prompt_section.py
+git commit -m "feat(cli): teach the brain to interpret cli_* results, not read them raw
+
+Extend the CONNECTED CLIS prompt section with the cli_* result shape
+(success/output{exit_code,stdout,stderr}/error) and the rule to summarize stdout
+naturally instead of reading the JSON envelope or exit codes aloud.
+
+Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>"
+```
+
+---
+
+## Final Verification
+
+- [ ] **Step 1: Run both touched suites together**
+
+Run: `python -m pytest tests/unit/cli_ctl/ tests/unit/clis/ -q`
+Expected: PASS, no failures.
+
+- [ ] **Step 2: Lint both changed modules**
+
+Run: `ruff check jarvis/cli_ctl/render.py jarvis/clis/prompt_section.py`
+Expected: no errors.
+
+- [ ] **Step 3: Confirm the change is live for the running app (optional, manual)**
+
+The editable install loads the new code, but the running FastAPI app + the
+brain's already-built system prompt must rebuild. Restart via
+`POST /api/settings/restart-app` (not `Stop-Process`). After restart, a brain
+turn that calls `cli_jarvisctl` (e.g. "list my tasks", "switch the brain to
+openai") should produce a natural spoken/written answer with no raw JSON or
+table characters.
+
+---
+
+## Notes / Constraints
+
+- **Language policy:** all added strings (prompt text, comments, commit messages) are English — required by the repo's CI `language-policy` gate. The prompt addition is product text the model reads, not a user-facing German string.
+- **Latency:** Task 2 adds ~60 tokens to the system prompt only when at least one CLI is connected; no new LLM call. `scrub_for_voice` remains the regex safety net behind the model's answer.
+- **Out of scope (tracked in the spec §7):** curated CLI groups for `settings`/`profile`/`self-mod`/`chats`, hardening `check_cli_coverage.py` to require a curated group per tag, and refining the `spawn_worker` Meta-Debug block.
+```
diff --git a/docs/superpowers/plans/2026-06-27-voice-command-honesty-and-recognition.md b/docs/superpowers/plans/2026-06-27-voice-command-honesty-and-recognition.md
index b17acd180d..31c0c1460b 100644
--- a/docs/superpowers/plans/2026-06-27-voice-command-honesty-and-recognition.md
+++ b/docs/superpowers/plans/2026-06-27-voice-command-honesty-and-recognition.md
@@ -37,7 +37,7 @@
## Task 1: Main-brain voice switch speaks an honest result
-The HIGH-risk finding. `generate()` runs `await self.switch(target); return ""` (manager.py:5103-5106) — completely silent, even when `switch()` swallows an unknown / subagent-only / unloadable provider (manager.py:2555-2576). The subagent path already routes through the validated `apply_provider_switch` with an honest readback; this makes the main brain do the same.
+The HIGH-risk finding. `generate()` runs `await self.switch(target); return ""` (manager.py:5103-5106) — completely silent, even when `switch()` swallows an unknown / Jarvis-Agent-only / unloadable provider (manager.py:2555-2576). The Jarvis-Agent path already routes through the validated `apply_provider_switch` with an honest readback; this makes the main brain do the same.
**Files:**
- Modify: `jarvis/brain/manager.py` (phrase tables near line 1279; new method near `_apply_subagent_provider_switch` ~2777; intercept at 5103-5106)
diff --git a/docs/superpowers/plans/2026-06-27-voice-provider-switch-hardening.md b/docs/superpowers/plans/2026-06-27-voice-provider-switch-hardening.md
index ebbcc67614..0da312d796 100644
--- a/docs/superpowers/plans/2026-06-27-voice-provider-switch-hardening.md
+++ b/docs/superpowers/plans/2026-06-27-voice-provider-switch-hardening.md
@@ -1,10 +1,10 @@
-# Voice Provider/Subagent Switch Hardening Implementation Plan
+# Voice Provider/Jarvis-Agent Switch Hardening Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
-**Goal:** Make every spoken provider / subagent / reply-language switch resolve to the RIGHT target and either execute-and-confirm honestly or fail-and-say-so — never a silent or false "done".
+**Goal:** Make every spoken provider / Jarvis-Agent / reply-language switch resolve to the RIGHT target and either execute-and-confirm honestly or fail-and-say-so — never a silent or false "done".
-**Architecture:** The deterministic voice gate (`jarvis/brain/voice_command_gate.py`) recognises the command + target; the `BrainManager` handlers execute it. The root cause of "sometimes it isn't recognised / silently does the wrong thing" is that the SUBAGENT voice handler is a THIRD switch implementation that skips the credential validation the REST endpoint and `app_control._switch_subagent` both have. Task 1 routes it through the one validated function and renders an honest readback. Tasks 2–4 fix three recognition bugs in the gate.
+**Architecture:** The deterministic voice gate (`jarvis/brain/voice_command_gate.py`) recognises the command + target; the `BrainManager` handlers execute it. The root cause of "sometimes it isn't recognised / silently does the wrong thing" is that the Jarvis-Agent voice handler is a THIRD switch implementation that skips the credential validation the REST endpoint and `app_control._switch_subagent` both have. Task 1 routes it through the one validated function and renders an honest readback. Tasks 2–4 fix three recognition bugs in the gate.
**Tech Stack:** Python 3.11, `re`, pytest. Run tests with `C:\Program Files\Python311\python.exe -m pytest` (the real CPython, not the uv shim).
@@ -22,7 +22,7 @@ Tasks are independent and committed separately. Do them in order (Task 1 is the
---
-## Task 1: Subagent voice switch routes through the validated path + honest readback
+## Task 1: Jarvis-Agent voice switch routes through the validated path + honest readback
**Why:** `_apply_subagent_provider_switch` maps the word then calls `config_writer.set_sub_jarvis_provider` BLINDLY — no credential check, and it returns "Erledigt" even when the persist throws. So "switch the subagent to OpenAI" (no key) says done, then the next mission fails; and a read-only-TOML persist failure is spoken as success. The validated `app_control.apply_provider_switch("subagent", ...)` already does the Codex-OAuth / Antigravity-OAuth / key-presence checks and returns a structured result — route through it.
@@ -219,7 +219,7 @@ git commit -m "fix(voice): subagent voice switch validates via apply_provider_sw
## Task 2: Main-brain provider switch recognises "from X to Y"
-**Why:** `_PROVIDER_PATTERN` has no "von/from" branch, so "wechsel von Gemini auf OpenAI" matches nothing and falls through to the brain LLM (which may refuse or force-spawn). The subagent matcher was already fixed for this; the main-brain regex wasn't.
+**Why:** `_PROVIDER_PATTERN` has no "von/from" branch, so "wechsel von Gemini auf OpenAI" matches nothing and falls through to the brain LLM (which may refuse or force-spawn). The Jarvis-Agent matcher was already fixed for this; the main-brain regex wasn't.
**Files:**
- Modify: `jarvis/brain/voice_command_gate.py` (`_PROVIDER_PATTERN` ~42-49)
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.md
index 3d36717eed..3cb67c2091 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
@@ -3,18 +3,18 @@
**Status:** Draft
**Date:** 2026-04-21
**Scope:** L7 UI/UX layer for Personal Jarvis (desktop app)
-**Related:** Master plan `C:\Users\Administrator\.claude\plans\also-er-muss-auch-lexical-pond.md`
+**Related:** Master plan `<USER_HOME>\.claude\plans\also-er-muss-auch-lexical-pond.md`
---
## 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 sub-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 (OpenClaw, Codex, Open Interpreter, MCP servers) in the background. The UI makes the invisible visible — without overwhelming.
**Core principles:**
1. **Voice-first, visual-always-available** — every voice action has a visual counterpart (transcription, agent status, decisions visible live). The user *does not have to* look, but *can* at any time.
-2. **One-mouth-many-hands** — only Jarvis speaks (one voice, one persona). Sub-agents communicate exclusively visually.
+2. **One-mouth-many-hands** — only Jarvis speaks (one voice, one persona). Jarvis-Agents communicate exclusively visually.
3. **Autopilot with override** — Jarvis can open/edit any UI section by voice (*"Wechsel Brain auf Gemini"* (switch Brain to Gemini) → sidebar navigation + quick-swap run automatically). Manual operation remains possible at any time.
4. **Global default, project-sticky on demand** — a tray service always runs. *"Jarvis, arbeite in Ordner X"* (Jarvis, work in folder X) pins the context until the user releases it.
5. **The frontend is a privileged client, not a monolith** — the core engine (Python + FastAPI) and the desktop app (pywebview + React) communicate via WebSocket. The same protocol can later serve a TUI, a mobile app, or other clients; the desktop app is the primary, but not the only possible, client.
@@ -104,7 +104,7 @@ All sections can be invoked by voice via the `NavigateSidebar(section=...)` even
| # | Icon | Section | Content |
|---|------|---------|--------|
| 1 | 💬 | **Chats** | Conversation list (like Claude Desktop), searchable. Voice and text turns mixed. Each chat has a title (auto-generated), date, pin option. Main view: message list + ChatInput at the bottom. First view on app start. |
-| 2 | 👥 | **Agents** | Live tiles of the currently active sub-agents. Per agent: role (Planner/Coder/Researcher), status (running/waiting/done/error), streaming output (last lines), kill/pause button. Count of active agents as a badge on the sidebar entry. |
+| 2 | 👥 | **Agents** | Live tiles of the currently active Jarvis-Agents. Per agent: role (Planner/Coder/Researcher), status (running/waiting/done/error), streaming output (last lines), kill/pause button. Count of active agents as a badge on the sidebar entry. |
| 3 | 🧩 | **Skills** | Plugin registry from `importlib.metadata` entry-points. Grouped by `jarvis.wakeword` / `.stt` / `.tts` / `.brain` / `.harness` / `.tool`. Per plugin: name, version, active toggle, config button. Default tier (`safe`/`monitor`/`ask`/`block`) visible. |
| 4 | 🔌 | **MCPs** | MCP server list (configured via `jarvis.toml`). Per server: name, status (connected/disconnected/error), start/stop/restart, discovered tools list, health-check button. |
| 5 | 🌍 | **Languages** | Bilingual config. DE/EN auto-detect is the default (per memory). Per-session override (*"Jarvis, answer in English"*). Configured default language visible. Voice language separate from UI language. |
@@ -131,7 +131,7 @@ All events in `jarvis.core.events`, mirrored as TypeScript interfaces in the fro
- `NavigateSidebar(section: str)` — switch the sidebar selection
- `SwapBrainProvider(name: str)` — switch the active Brain provider
-- `AgentCommand(agent_id: str, cmd: "kill" | "pause" | "resume")` — control a sub-agent
+- `AgentCommand(agent_id: str, cmd: "kill" | "pause" | "resume")` — control a Jarvis-Agent
- `PinProjectScope(path: str | None)` — pin/release the project context (None = global)
- `TranscriptionUpdate(text: str, is_final: bool)` — live STT results
- `AgentStateChange(agent_id: str, state: AgentState)` — status updates
@@ -149,7 +149,7 @@ Every autopilot action shows a subtle toast notification (*"Jarvis: Skills geöf
- **Sidebar top** — voice-status badge (Idle / Listening / Thinking / Speaking), color-animated
- **Sidebar top** — last transcription as a single line (live, 2s auto-fade after the end)
-- **Sidebar agents** — badge with the count of active sub-agents
+- **Sidebar agents** — badge with the count of active Jarvis-Agents
- **Sidebar bottom** — current Brain provider (name + colored dot), click → quick-swap
- **Toast layer** (top right) — autopilot notifications, errors, approval requests
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.md
index 19a9652d3f..091e0e3dcb 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
@@ -2,9 +2,9 @@
**Date:** 2026-05-10
**Status:** Brainstorm complete, awaiting plan
-**Owner:** RubenLütke (driver) + Claude (architect)
+**Owner:** AlexMaintainer (driver) + Claude (architect)
**Supersedes:** Implicit "perceived-latency-reduction pattern" from `jarvis/brain/ack_generator.py:1-29` (template-based)
-**Cross-references:** ADR-0011 (Router-Discipline), AD-7 anti-pattern (constraint enforcement in code), `docs/openclaw-bridge.md` (MissionAnnouncer pattern)
+**Cross-references:** ADR-0011 (Router-Discipline), AD-7 anti-pattern (constraint enforcement in code), `docs/jarvis-agents-bridge.md` (MissionAnnouncer pattern)
---
@@ -43,16 +43,16 @@ Goal (context-rich):
## 2. User Stories
**US-1 (heavy task, the core motivating case):**
-> As Ruben, when I ask Jarvis to research a non-trivial topic, I want to hear within a second that he started the right kind of work, with the topic explicitly named — so the 5-30 second gap until the real answer feels like deliberate work, not silent confusion.
+> As Alex, when I ask Jarvis to research a non-trivial topic, I want to hear within a second that he started the right kind of work, with the topic explicitly named — so the 5-30 second gap until the real answer feels like deliberate work, not silent confusion.
**US-2 (direct action):**
-> As Ruben, when I ask Jarvis to open an app or look up a quick fact, I want a one-sentence confirmation that names the action — so even fast operations feel grounded and confirmed, not robotic.
+> As Alex, when I ask Jarvis to open an app or look up a quick fact, I want a one-sentence confirmation that names the action — so even fast operations feel grounded and confirmed, not robotic.
**US-3 (silence is golden):**
-> As Ruben, when I just say "Hallo" or tell Jarvis to be quiet, I do **not** want any preamble — those interactions are too lightweight to deserve a multi-stage response.
+> As Alex, when I just say "Hallo" or tell Jarvis to be quiet, I do **not** want any preamble — those interactions are too lightweight to deserve a multi-stage response.
**US-4 (failure is silence):**
-> As Ruben, when the smart preamble can't be generated cleanly (hallucination, timeout, content-filter strip), I prefer Jarvis to stay silent and go straight to the real answer over hearing a generic filler. "Verstanden, ich kümmere mich darum." ("Understood, I'll take care of it.") across every request was exactly the failure mode of the previous attempt.
+> As Alex, when the smart preamble can't be generated cleanly (hallucination, timeout, content-filter strip), I prefer Jarvis to stay silent and go straight to the real answer over hearing a generic filler. "Verstanden, ich kümmere mich darum." ("Understood, I'll take care of it.") across every request was exactly the failure mode of the previous attempt.
---
@@ -335,7 +335,7 @@ Five scripted utterances per language replayed via simulated STT-final, audio re
## 9. Open Questions / Future Work
-- **Q1.** Should preamble emission also be wired into the `phase6` mission system (Worker subagents under `jarvis/missions/`)? Initial scope says no — those have their own `MissionAnnouncer` for completion announcements. Pre-thinking acks on internal mission steps would chatter.
+- **Q1.** Should preamble emission also be wired into the `phase6` mission system (Worker Jarvis-Agents under `jarvis/missions/`)? Initial scope says no — those have their own `MissionAnnouncer` for completion announcements. Pre-thinking acks on internal mission steps would chatter.
- **Q2.** Should the user be able to disable preambles globally via a config flag (`[speech].pre_thinking_ack = false`)? Probably yes, but YAGNI for the first ship.
- **Q3.** Telemetry: do we want the preamble counters to roll up into a Grafana / dashboard view, or is the in-memory bus + JSON-Lines flight recorder enough for now? Defer to operations.
- **Q4.** Persona variation: today the prompt rule says "open with 'Ja Chef' in ~30 % of cases". After two weeks of usage we should sample the actual distribution and tune. Initial value is a guess.
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.md
index 100551f5fb..b2dd83b4e5 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
@@ -2,7 +2,7 @@
**Date:** 2026-05-11, persona-prompt section revised 2026-05-13
**Status:** Brainstorm complete, persona prompts v2
-**Owner:** RubenLütke (driver) + Claude (architect)
+**Owner:** AlexMaintainer (driver) + Claude (architect)
**Supersedes:** `docs/superpowers/specs/2026-05-10-context-rich-preamble-design.md` (Router-Extended approach — explicitly rejected by driver in favor of a separate, provider-pluggable Flash-Brain)
**Revision history:**
- 2026-05-13: §1 example, §4 persona-prompts, and §5 behavior matrix rewritten. The original §4 used 8 few-shot examples per language; in practice this caused mode-collapse: the LLM reproduced the example phrases ("Lass mich kurz nachschauen", "Mache ich") regardless of whether they fit the actual user utterance. Driver explicitly identified two failure cases ("Wann wurde Einstein geboren?" → "Jawohl Sir", "Wann ist Montag?" → "Mache ich") as evidence that few-shot priming defeats the contextual-acknowledgment goal. The revised §4 uses rules + negative examples only, no positive template phrases, and adds an explicit "stay silent" branch for smalltalk and quick factual questions.
@@ -54,22 +54,22 @@ Counter-example for the same kind of question that should NOT trigger an ack:
## 2. User Stories
**US-1 (the Albel case — knowledge questions must not get action-acks):**
-> As Ruben, when I ask Jarvis a factual question, I want the acknowledgment to match the question shape ("Lass mich kurz nachschauen") and not the tool that the router happens to dispatch behind the scenes. The acknowledgment's tonality must come from my utterance, not from the router's tool choice.
+> As Alex, when I ask Jarvis a factual question, I want the acknowledgment to match the question shape ("Lass mich kurz nachschauen") and not the tool that the router happens to dispatch behind the scenes. The acknowledgment's tonality must come from my utterance, not from the router's tool choice.
**US-2 (heavy task — the motivating long-latency case):**
-> As Ruben, when I ask for a long research or build task, I want to hear within ~1 second that Jarvis understood and started, with the topic named if reasonable. The 5-30 s gap until the real answer must feel like deliberate work, not silent confusion.
+> As Alex, when I ask for a long research or build task, I want to hear within ~1 second that Jarvis understood and started, with the topic named if reasonable. The 5-30 s gap until the real answer must feel like deliberate work, not silent confusion.
**US-3 (smalltalk and short interactions):**
-> As Ruben, when I say "Hallo Jarvis" or "wie geht's", I want a brief, natural acknowledgment from Jarvis — same persona, same voice — without it sounding like a robotic preamble. The Flash-Brain is the only entity that speaks on every turn.
+> As Alex, when I say "Hallo Jarvis" or "wie geht's", I want a brief, natural acknowledgment from Jarvis — same persona, same voice — without it sounding like a robotic preamble. The Flash-Brain is the only entity that speaks on every turn.
**US-4 (silence is golden on failure):**
-> As Ruben, when the Flash-Brain hits a timeout, provider error, scrub-empty, or any other failure, I want nothing to be spoken from the ack path. The main brain still answers. A generic "Verstanden, ich kümmere mich darum." across all my requests was exactly the failure mode of the previous template-based attempt; it must never come back.
+> As Alex, when the Flash-Brain hits a timeout, provider error, scrub-empty, or any other failure, I want nothing to be spoken from the ack path. The main brain still answers. A generic "Verstanden, ich kümmere mich darum." across all my requests was exactly the failure mode of the previous template-based attempt; it must never come back.
**US-5 (provider flexibility):**
-> As Ruben, when a new fast LLM (Grok-4-Flash, Gemini 3.1 Flash, GPT-5-mini, Groq-Llama) comes out, I want to be able to switch the Flash-Brain to it through configuration alone, without touching the rest of Jarvis. Default should never be on a deprecated model (Gemini 2.5 Flash is out as of today).
+> As Alex, when a new fast LLM (Grok-4-Flash, Gemini 3.1 Flash, GPT-5-mini, Groq-Llama) comes out, I want to be able to switch the Flash-Brain to it through configuration alone, without touching the rest of Jarvis. Default should never be on a deprecated model (Gemini 2.5 Flash is out as of today).
**US-6 (TTS-agnostic):**
-> As Ruben, whichever TTS provider I have configured (Gemini-TTS, Grok-Voice, ElevenLabs, etc.), the Flash-Brain's spoken output must use **that same provider and same voice** — never a hardcoded different one. The user-perceived voice identity must remain constant across ack and main response.
+> As Alex, whichever TTS provider I have configured (Gemini-TTS, Grok-Voice, ElevenLabs, etc.), the Flash-Brain's spoken output must use **that same provider and same voice** — never a hardcoded different one. The user-perceived voice identity must remain constant across ack and main response.
---
@@ -420,7 +420,7 @@ A 10-utterance smoke battery against the v2.1 prompt (Grok-4-Fast-Non-Reasoning
| Pattern | Cases | v2.1 outcome |
|---|---|---|
| Smalltalk → silent | "Wie geht's dir?" | PASS (`""`) |
-| Smalltalk → silent | "Hallo Jarvis" | FAIL — got `"Hallo Ruben."` (greeting echo) |
+| Smalltalk → silent | "Hallo Jarvis" | FAIL — got `"Hallo Alex."` (greeting echo) |
| Quick factual → silent | Einstein, Italy capital | PASS for both (`""`) |
| Quick factual → silent | "Wann ist Montag?" | FAIL — got next-Monday date |
| Voice control → silent | "Sei still" | PASS (`""`) |
@@ -642,5 +642,41 @@ Five scripted utterances per language replayed via simulated STT-final, audio re
- **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/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.
+
+---
+
+## 11. Amendment 2026-06-29 — name-neutral persona, em-dash removal, Spanish
+
+Part of the voice-response-behaviour rework (plan: *Jarvis Voice Response
+Behaviour: a single, natural, editable system prompt*). The persona constants in
+`persona_prompt.py` and `spawn_announcement.py` are amended; this section is the
+authoritative record so the file-vs-spec invariant in `persona_prompt.py`'s
+module docstring still holds.
+
+1. **Name-neutral.** The opener "Du bist JARVIS" / "You are JARVIS" is replaced
+ by "Du bist der persönliche Assistent des Nutzers" / "You are the user's
+ personal assistant". The assistant's own name is runtime-derived from the wake
+ word (`assistant_name.py`) and owned by the deep brain; the Flash-Brain
+ preamble no longer bakes in a product name. The `ALLOWED` list's literal
+ "Jarvis" becomes "dein eigener Name" / "your own name". This aligns the
+ Flash-Brain with the project-wide name-neutrality change (the persona files
+ `SOUL.md` / `JARVIS_PERSONA.md` are also name-neutral as of this date).
+
+2. **Em dashes removed.** Every "—" in the persona constants is replaced by a
+ comma or a full stop, matching the new spoken-output rule (an em dash renders
+ as a hard TTS pause). `scrub_for_voice` also strips stray em dashes as a
+ backstop.
+
+3. **Spanish preamble added.** `PERSONA_PROMPT_ES` is added to `persona_prompt.py`
+ and `_normalise_language` / `get_persona_prompt` now resolve `es` natively,
+ closing the documented de/en-only gap for the pre-thinking preamble. The
+ **spawn-announcement** persona stays de/en (its `es` path is still served by
+ the curated deterministic fallback pool, unchanged); a native
+ `SPAWN_PERSONA_ES` remains a tracked follow-up.
+
+4. **Unchanged.** The functional contract is untouched: never answer on
+ substance, the forbidden-vocabulary and forbidden-action-promise lists
+ (verbatim, asserted by `tests/unit/brain/test_routing.py`), the "stay silent"
+ branches, and the one-sentence / max-12-words ceiling.
- **Previous spec — `docs/superpowers/specs/2026-05-10-context-rich-preamble-design.md`** — Router-Extended approach, superseded by this one at driver's explicit request. Retained for design-history context.
- **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 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-17-orb-drag-design.md b/docs/superpowers/specs/2026-05-17-orb-drag-design.md
index dc7ab2f71c..9f83b092d3 100644
--- a/docs/superpowers/specs/2026-05-17-orb-drag-design.md
+++ b/docs/superpowers/specs/2026-05-17-orb-drag-design.md
@@ -2,7 +2,7 @@
**Date:** 2026-05-17
**Status:** Approved (autonomous shipping run)
-**Owner:** Ruben (product) · Claude (implementation)
+**Owner:** Alex (product) · Claude (implementation)
**Tracking issue / branch:** TBD on first commit
---
diff --git a/docs/superpowers/specs/2026-05-24-twilio-telephony-design.md b/docs/superpowers/specs/2026-05-24-twilio-telephony-design.md
index 5a183d00c3..0c16fc22f1 100644
--- a/docs/superpowers/specs/2026-05-24-twilio-telephony-design.md
+++ b/docs/superpowers/specs/2026-05-24-twilio-telephony-design.md
@@ -13,7 +13,7 @@ This spec is binding for the two-agent implementation team (backend "Tech" + fro
- **AD-T1 — Twilio Media Streams, not ConversationRelay.** The binding requirement (Jarvis must speak in its own consistent Charon voice + use its own STT) is only satisfiable with raw audio over the wire. ConversationRelay forces Twilio's TTS voices and is therefore disqualified for the default path. *(ConversationRelay may be kept behind a config flag as a future degraded fallback — out of scope for v1, but `TwilioConfig.fallback_mode` is reserved.)*
- **AD-T2 — New `jarvis/telephony/` package; do NOT reuse `SpeechPipeline`.** `pipeline.py` hard-imports `sounddevice`/mic/speaker (`pipeline.py:32-35`, `audio/player.py:17`) → reusing it breaks the cloud-first €5-VPS doctrine. Instead compose the three decoupled seams directly:
- STT: `build_stt_from_config(cfg.stt)` → `transcribe_pcm(pcm, sample_rate=16000)` (requires 16 kHz mono int16, `fwhisper.py:79/106`).
- - Brain: a **per-call** `BrainManager` via `build_default_brain(bus=..., tier="router")` → `generate_stream(text)` (`manager.py:2295`). Inherits force-spawn / `ROUTER_TOOLS` / OpenClaw routing for free.
+ - Brain: a **per-call** `BrainManager` via `build_default_brain(bus=..., tier="router")` → `generate_stream(text)` (`manager.py:2295`). Inherits force-spawn / `ROUTER_TOOLS` / Jarvis-Agents routing for free.
- TTS: `build_tts_from_config(cfg.tts)` → `synthesize(text, language_code=...)` → `AsyncIterator[AudioChunk]` (24 kHz int16 PCM Charon).
- **AD-T3 — `scrub_for_voice` before every TTS call** (`jarvis/brain/output_filter.py`, regex-only, AP-11). Same as the mic path.
- **AD-T4 — Per-call BrainManager instance.** `BrainManager._history` is per-instance, not per-session (`manager.py:511`). A shared brain would interleave phone + desktop conversations. Each `TelephonyCallSession` owns its own brain instance, reused across turns within that call.
diff --git a/docs/superpowers/specs/2026-05-25-semantic-hangup-detection-design.md b/docs/superpowers/specs/2026-05-25-semantic-hangup-detection-design.md
index 795b36ca27..bc7021a67b 100644
--- a/docs/superpowers/specs/2026-05-25-semantic-hangup-detection-design.md
+++ b/docs/superpowers/specs/2026-05-25-semantic-hangup-detection-design.md
@@ -35,8 +35,8 @@ Two layers:
false-fire.
2. **Brain signal, post-brain** — the persona prompt
(`jarvis/brain/JARVIS_PERSONA.md:95-98`) instructs the brain: *"When the
- conversation ends or Ruben dismisses you, reply with EXACTLY one of: EN:
- Goodbye, Ruben. / DE: Auf Wiedersehen, Ruben."* The pipeline then does an
+ conversation ends or Alex dismisses you, reply with EXACTLY one of: EN:
+ Goodbye, Alex. / DE: Auf Wiedersehen, Alex."* The pipeline then does an
**exact normalized string compare** of the brain's response
(`pipeline.py:2351` streamed, `pipeline.py:2432` non-streamed) and triggers
hang-up on a match.
@@ -51,7 +51,7 @@ Matched pre-brain at `session.py:231`. **No brain-signal path.**
The semantic mechanism (layer 2) is the right idea — an LLM is the correct tool
to understand "Kannst du jetzt bitte gehen" — but it is coupled to an **exact
-magic string**. If the brain paraphrases ("Auf Wiedersehen, Ruben! War mir ein
+magic string**. If the brain paraphrases ("Auf Wiedersehen, Alex! War mir ein
Vergnügen."), the exact match fails and no hang-up occurs. The fix is to make
that path **robust**, not to add a new classifier.
@@ -119,8 +119,8 @@ Exports:
- `strip_end_signal(text: str) -> str` — removes the sentinel and trailing
whitespace, safe to call on partial stream chunks and the full response.
- `LEGACY_FAREWELL_PHRASES` + `is_legacy_farewell(text: str) -> bool` — backward
- compatibility for the old exact phrases ("auf wiedersehen, ruben", "goodbye,
- ruben", …) so older brain behavior still hangs up during rollout.
+ compatibility for the old exact phrases ("auf wiedersehen, alex", "goodbye,
+ alex", …) so older brain behavior still hangs up during rollout.
- `BRAIN_HANGUP_INSTRUCTION` — the canonical instruction text (DE + EN) that the
persona references, keeping the contract in one place.
diff --git a/docs/superpowers/specs/2026-05-25-utterance-completeness-design.md b/docs/superpowers/specs/2026-05-25-utterance-completeness-design.md
index fd207f558d..b084ebd663 100644
--- a/docs/superpowers/specs/2026-05-25-utterance-completeness-design.md
+++ b/docs/superpowers/specs/2026-05-25-utterance-completeness-design.md
@@ -3,7 +3,7 @@
**Date:** 2026-05-25
**Branch:** `feat/semantic-hangup-detection`
**Status:** Approved (design), implementation in progress
-**Author:** Jarvis / Ruben (brainstorming session)
+**Author:** Jarvis / Alex (brainstorming session)
---
diff --git a/docs/superpowers/specs/2026-05-26-quick-install-one-liner-design.md b/docs/superpowers/specs/2026-05-26-quick-install-one-liner-design.md
index e37e21580d..18ad62ddf8 100644
--- a/docs/superpowers/specs/2026-05-26-quick-install-one-liner-design.md
+++ b/docs/superpowers/specs/2026-05-26-quick-install-one-liner-design.md
@@ -123,7 +123,7 @@ The installer returns to the user's shell as soon as the App is spawned.
## End-user UX
```powershell
-PS> irm https://raw.githubusercontent.com/personal-jarvis/personal-jarvis/main/install/install.ps1 | iex
+PS> irm https://raw.githubusercontent.com/PersonalJarvis/PersonalJarvis/main/install/install.ps1 | iex
Personal Jarvis — Quick install (Windows)
diff --git a/docs/superpowers/specs/2026-05-27-cartesia-tts-integration-design.md b/docs/superpowers/specs/2026-05-27-cartesia-tts-integration-design.md
index 2163b782fc..e19c647a90 100644
--- a/docs/superpowers/specs/2026-05-27-cartesia-tts-integration-design.md
+++ b/docs/superpowers/specs/2026-05-27-cartesia-tts-integration-design.md
@@ -1,7 +1,7 @@
# Cartesia TTS Integration — Design
**Date:** 2026-05-27
-**Author:** OpenClaw (background session)
+**Author:** Jarvis-Agents (background session)
**Status:** Pending user review
**Related plan:** `~/.claude/plans/also-er-muss-auch-lexical-pond.md` (Phase L.4 — Streaming TTS)
**Related code-pattern:** `jarvis/plugins/tts/grok_voice_tts.py` (template)
diff --git a/docs/superpowers/specs/2026-05-27-subagent-section-design.md b/docs/superpowers/specs/2026-05-27-jarvis-agents-section-design.md
similarity index 93%
rename from docs/superpowers/specs/2026-05-27-subagent-section-design.md
rename to docs/superpowers/specs/2026-05-27-jarvis-agents-section-design.md
index 9eab2a08a0..d746d5b42f 100644
--- a/docs/superpowers/specs/2026-05-27-subagent-section-design.md
+++ b/docs/superpowers/specs/2026-05-27-jarvis-agents-section-design.md
@@ -1,16 +1,16 @@
-# Subagent Section in API-Keys-View — Design
+# Jarvis-Agents Section in API-Keys-View — Design
**Author:** brainstorming session 2026-05-27
**Status:** approved-for-implementation pending user spec review
-**Related:** `docs/openclaw-bridge.md`, `jarvis/missions/workers/`, `jarvis/ui/web/frontend/src/views/ApiKeysView.tsx`
+**Related:** `docs/jarvis-agents-bridge.md`, `jarvis/missions/workers/`, `jarvis/ui/web/frontend/src/views/ApiKeysView.tsx`
---
## 1. Motivation
-Today every sub-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_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.
-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 sub-agent mission end-to-end.
+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.
## 2. Scope
@@ -19,7 +19,7 @@ The new section makes this explicit: *one* active worker provider, configurable
- A new fourth tier `subagent` in the existing `ApiKeysView.tsx` with four provider cards: **Anthropic Claude**, **OpenAI Codex**, **Google Gemini**, **xAI Grok**.
- Two auth modes for Anthropic and Codex (both shown simultaneously on the card, one bears an `[active]` badge): subscription OAuth (preferred) OR API-Key (fallback).
- One auth mode for Gemini and Grok: API-Key only.
-- A "Test" button per card that fires a real mini sub-agent mission ("write `ok.txt` with content `OK`"), streams status into the card, and reports ✓/✗ with a 60-second cooldown.
+- A "Test" button per card that fires a real mini Jarvis-Agent mission ("write `ok.txt` with content `OK`"), streams status into the card, and reports ✓/✗ with a 60-second cooldown.
- Worker-dispatch routing through a single switch in `kontrollierer/dispatch.py` keyed off `cfg.subagent.active_provider`.
- A new `GrokWorker` analogous to the existing `GeminiWorker`.
- Frontier-model constants pinned in **one** file (`jarvis/missions/workers/_models.py`).
@@ -132,7 +132,7 @@ The `worker_override` field is plumbed through `Mission` and read inside `_make_
**`ApiKeysView.tsx`**:
- `TIER_META` gains `subagent: { label: t("apikeys_view.tier_subagent"), icon: <Users/> }`.
-- Tier render order: brain, tts, stt, **subagent** (last — sub-agents are operationally a sibling of brain, not above it).
+- Tier render order: brain, tts, stt, **subagent** (last — Jarvis-Agents are operationally a sibling of brain, not above it).
**`SubagentProviderCard.tsx`** (new):
- Inherits the visual shell of the existing `ProviderCard` (header, "Set active" radio).
@@ -226,9 +226,9 @@ User clicks "Log in" on Claude card (subscription block)
### 6.3 Integration (manual smoke)
After implementation:
-1. Boot Jarvis, open ApiKeysView, see the four cards in the Subagent tier.
+1. Boot Jarvis, open ApiKeysView, see the four cards in the Jarvis-Agents tier.
2. Switch active to Gemini, click Test — mission spawns, ok.txt appears, chip turns ✓.
-3. Switch back to Claude, voice-spawn a real sub-agent — uses `ClaudeDirectWorker`.
+3. Switch back to Claude, voice-spawn a real Jarvis-Agent — uses `ClaudeDirectWorker`.
## 7. Files Touched
@@ -270,7 +270,7 @@ After implementation:
| `tests/unit/web/test_subagent_test_endpoint.py` | **new** |
| `tests/unit/web/test_subagent_routes_activate.py` | **new** |
| `tests/unit/workers/test_grok_worker.py` | **new** |
-| `jarvis/ui/web/frontend/src/views/ApiKeysView.test.tsx` | extend with subagent-tier cases |
+| `jarvis/ui/web/frontend/src/views/ApiKeysView.test.tsx` | extend with Jarvis-Agents-tier cases |
| `jarvis/ui/web/frontend/src/components/SubagentProviderCard.test.tsx` | **new** |
## 8. Phases
@@ -298,7 +298,7 @@ Three sequential phases, each independently shippable, each with green tests at
**Shippable state**: `curl POST /api/subagent/test/gemini-subagent` triggers a real mission; cooldown enforced.
-### Phase 3 — Frontend Subagent Tier
+### Phase 3 — Frontend Jarvis-Agents Tier
1. `useProviders.ts` Tier-type extension + `switchSubagentProvider`.
2. `AbonementBlock` component.
@@ -322,7 +322,7 @@ Three sequential phases, each independently shippable, each with green tests at
## 10. Non-Goals
-- This design does **not** change anything about the brain-tier router. The brain still runs on whatever `[brain].primary` says (today: Gemini). Subagent is its own tier.
+- 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.
diff --git a/docs/superpowers/specs/2026-05-30-cross-platform-autostart-design.md b/docs/superpowers/specs/2026-05-30-cross-platform-autostart-design.md
index 2ee3243261..8faca6b735 100644
--- a/docs/superpowers/specs/2026-05-30-cross-platform-autostart-design.md
+++ b/docs/superpowers/specs/2026-05-30-cross-platform-autostart-design.md
@@ -2,7 +2,7 @@
- **Date:** 2026-05-30
- **Status:** Approved (brainstorming) → ready for implementation plan
-- **Author:** OpenClaw agent (brainstorming session)
+- **Author:** Jarvis-Agent (brainstorming session)
- **Scope:** Make Jarvis start automatically at login on Windows, macOS, and
Linux; default ON; user-toggleable in Settings; self-healing against stale
paths. Headless/VPS = graceful no-op.
diff --git a/docs/superpowers/specs/2026-06-01-live-plugin-tools-design.md b/docs/superpowers/specs/2026-06-01-live-plugin-tools-design.md
index 1bbfc0b96f..68b6f0c5ed 100644
--- a/docs/superpowers/specs/2026-06-01-live-plugin-tools-design.md
+++ b/docs/superpowers/specs/2026-06-01-live-plugin-tools-design.md
@@ -3,7 +3,7 @@
- **Date:** 2026-06-01
- **Status:** Design approved, pending spec review → implementation plan
- **Topic owner:** maintainer
-- **Related:** ADR-0011 (router discipline), `docs/openclaw-bridge.md` (AD-OE1..OE6),
+- **Related:** ADR-0011 (router discipline), `docs/jarvis-agents-bridge.md` (AD-OE1..OE6),
CLI-Integration spec (`docs/superpowers/specs/2026-05-24-cli-integration-design.md`),
`docs/anti-drift-three-layer.md`.
diff --git a/docs/superpowers/specs/2026-06-07-codex-connector-brain-and-subagent-design.md b/docs/superpowers/specs/2026-06-07-codex-connector-brain-and-jarvis-agents-design.md
similarity index 89%
rename from docs/superpowers/specs/2026-06-07-codex-connector-brain-and-subagent-design.md
rename to docs/superpowers/specs/2026-06-07-codex-connector-brain-and-jarvis-agents-design.md
index b63f29c1f0..48b208c7b0 100644
--- a/docs/superpowers/specs/2026-06-07-codex-connector-brain-and-subagent-design.md
+++ b/docs/superpowers/specs/2026-06-07-codex-connector-brain-and-jarvis-agents-design.md
@@ -1,4 +1,4 @@
-# Codex Connector — Brain-Provider Card + Subagent Activation
+# Codex Connector — Brain-Provider Card + Jarvis-Agent Activation
**Date:** 2026-06-07
**Status:** Implemented + reviewed (APPROVE). See Amendment A1.
@@ -6,10 +6,10 @@
---
-## Amendment A1 (2026-06-07, post-approval) — full Brain×Subagent matrix
+## Amendment A1 (2026-06-07, post-approval) — full Brain×Jarvis-Agent matrix
After the design was approved, the maintainer extended the requirement: Brain
-and Subagent must be **independently selectable in all combinations**, including
+and Jarvis-Agent must be **independently selectable in all combinations**, including
**Codex as a Brain provider** (e.g. brain=Codex + subagent=Gemini). This
**reverses decision D2** ("upper card = connection only"): Codex is now a
**first-class brain provider**, not connection-only.
@@ -23,22 +23,22 @@ Auth split (validated live against the maintainer's real Codex):
- **Codex-as-Brain** uses an **OpenAI API key** (`codex_openai_api_key`). A chat
brain cannot use the ChatGPT OAuth. `/api/brain/switch` requires the key for
codex (clear 409 otherwise) — no silent first-turn failure.
-- **Codex-as-Subagent** uses the **ChatGPT subscription (OAuth)** OR an API key.
+- **Codex-as-Jarvis-Agent** uses the **ChatGPT subscription (OAuth)** OR an API key.
New work beyond the original spec:
- `jarvis/plugins/brain/codex.py` rebuilt (OpenAI chat brain on the codex key);
the `!= "codex"` bypass in `brain_switch` removed (codex is a real plugin now).
- Codex brain card keeps its "Activate" radio (it IS a brain) — the planned
radio-removal in §4.2 is **dropped**.
-- Single source of truth for the codex subagent slugs:
+- Single source of truth for the codex Jarvis-Agent slugs:
`provider_map.CODEX_SUBAGENT_SLUGS` / `CODEX_SUBAGENT_CANONICAL`, imported by
all four sites (switch endpoint, app_control, worker selector, env builder)
+ an object-identity parity test (BUG-008 hardening).
Verification: 949 backend tests + 128 vitest green; ruff clean on new code; live
-API smoke confirms the brain card, subagent row, and subagent switch all work
+API smoke confirms the brain card, Jarvis-Agent row, and Jarvis-Agent switch all work
against the maintainer's real `codex login` (mode=chatgpt). Remaining hands-on:
-restart the app, activate Codex as subagent in the UI, run one real mission.
+restart the app, activate Codex as Jarvis-Agent in the UI, run one real mission.
---
@@ -51,12 +51,12 @@ ChatGPT/Codex agent CLI). Two distinct symptoms, two distinct root causes:
dead. The card permanently shows *"Loading Codex status"* and clicking
*Activate* raises a never-ending toast: *"OpenAI Codex: first connect Codex or
save API key, then activate."*
-2. **Subagent list (lower list).** Codex does not appear at all — it cannot be
+2. **Jarvis-Agents list (lower list).** Codex does not appear at all — it cannot be
selected as the heavy-task worker.
The maintainer's goal: connect Codex **both** ways (login **and** API key), with
the upper card used only to *connect*, and Codex doing real work **as the
-subagent**. The result must be **verified live**, not just in tests.
+Jarvis-Agent**. The result must be **verified live**, not just in tests.
## 2. Root-cause analysis (verified in code)
@@ -83,17 +83,17 @@ Because `jarvis/brain/app_control.py::is_credential_present` resolves the
`False`, the card reports `configured == False` whenever the user relies on the
login flow — which is exactly the repeated activation toast.
-### 2.2 Codex is absent from the subagent surface
+### 2.2 Codex is absent from the Jarvis-Agents surface
-The subagent section (`components/SubagentSection.tsx`) is rendered from
+The Jarvis-Agents section (`components/SubagentSection.tsx`) is rendered from
`GET /api/openclaw/status` → `mapping_rows`, which is built by iterating
`jarvis/missions/worker_runtime/provider_map.py::MAPPINGS`. `MAPPINGS` contains
only `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.
-This is *correct* in spirit: Codex is **not** an OpenClaw-routed provider — it has
-no OpenClaw provider slug and no shared ENV-var mapping. It is a **direct
+This is *correct* in spirit: Codex is **not** a Jarvis-Agents-routed provider — it has
+no Jarvis-Agents provider slug and no shared ENV-var mapping. It is a **direct
worker**.
### 2.3 The Codex worker already exists and is OAuth-ready
@@ -117,18 +117,18 @@ endpoint key-check + persist) is missing. The worker currently **always strips**
- **D2 — Upper card = connection only.** Codex is **not** a conversational router
brain (no backend exists and it is the wrong tool — it is a coding agent). The
upper card manages login + key + an honest status. Its misleading "Activate as
- router brain" radio is removed and replaced by a hint pointing to the subagent
+ router brain" radio is removed and replaced by a hint pointing to the Jarvis-Agents
section.
-- **D3 — Codex as subagent.** Codex becomes a selectable heavy-task worker in the
- subagent list, reusing the connection/key from the upper card (no second key
+- **D3 — Codex as Jarvis-Agent.** Codex becomes a selectable heavy-task worker in the
+ Jarvis-Agents list, reusing the connection/key from the upper card (no second key
input), with the same "Activate" radio as the other providers.
- **D4 — Codex is a special case, not a `MAPPINGS` row** (rejected approach B).
- Adding Codex to `MAPPINGS` would break the OpenClaw bridge contract
+ Adding Codex to `MAPPINGS` would break the Jarvis-Agents bridge contract
(`to_provider_slug`, `validate_configured_providers`, env-var logic). Codex is
surfaced as an explicit, additive special case in the status + switch
endpoints.
- **D5 — Live verification is part of "done".** A real `codex login` + a real
- mini-mission executed by the Codex subagent must be observed.
+ mini-mission executed by the Codex Jarvis-Agent must be observed.
### Non-goals
@@ -206,8 +206,8 @@ service — they need **no signature change**, only the real service behind them
- For `auth_mode === "codex"`, **do not render** the brain-tier "Activate" radio
(`ActiveControl`). Replace with a one-line hint (new i18n key):
- *"Codex runs as a subagent — activate it below."* / DE: *"Codex arbeitet als
- Subagent — unten aktivieren."*
+ *"Codex runs as a Jarvis-Agent — activate it below."* / DE: *"Codex arbeitet als
+ Jarvis-Agent — unten aktivieren."*
- The card keeps: status line (now populated by the real `message`/`version`/
`mode`), the install hint + copy button (when not installed), the
"Connect with ChatGPT" / "Disconnect" buttons, and the `codex_openai_api_key`
@@ -218,7 +218,7 @@ service — they need **no signature change**, only the real service behind them
This removes the dead "activate as router brain" path entirely, so the
never-ending toast cannot recur.
-### 4.3 Surface Codex in the subagent list
+### 4.3 Surface Codex in the Jarvis-Agents list
**Canonical slug.** Store/display Codex as `"openai-codex"` (the value
`_select_subagent_worker_kind` already accepts, alongside the alias `"chatgpt"`).
@@ -283,14 +283,14 @@ The worker env (`jarvis/missions/init.py::_env_builder` →
`OPENAI_API_KEY`.
> Primary verification target is the **OAuth/subscription** path (the maintainer's
-> "my Codex"). The API-key subagent path is supported but secondary.
+> "my Codex"). The API-key Jarvis-Agent path is supported but secondary.
## 5. Data & config touch-points (no new wire-format enum)
- Secret slot: `codex_openai_api_key` (already in `wizard.SECRETS` / provider
spec). Unchanged.
- Config: `[codex].binary_path` (read by `_codex_binary_path`), and
- `[brain.sub_jarvis].provider = "openai-codex"` for the subagent selection.
+ `[brain.sub_jarvis].provider = "openai-codex"` for the Jarvis-Agent selection.
Both already exist; this change writes a new *value* (`"openai-codex"`), not a
new key — so the five-layer enum parity scaffolding is **not** required (the
set of accepted values lives in `_select_subagent_worker_kind` +
@@ -324,7 +324,7 @@ The worker env (`jarvis/missions/init.py::_env_builder` →
5. `CodexDirectWorker` env — strips `OPENAI_API_KEY` when OAuth present, keeps it
when only the API key is configured (parametrized).
6. Frontend (vitest) — codex brain card renders **no** brain "Activate" radio +
- shows the subagent hint; subagent list renders the Codex card.
+ shows the Jarvis-Agents hint; the Jarvis-Agents list renders the Codex card.
7. Parity test pinning `CODEX_SUBAGENT_SLUGS` ↔ the slugs
`_select_subagent_worker_kind` routes to `codex_direct`.
@@ -332,9 +332,9 @@ The worker env (`jarvis/missions/init.py::_env_builder` →
- Open API Keys: Codex brain card shows real status (not "Loading…").
- Click "Connect with ChatGPT" → complete `codex login` → card flips to
"connected / ChatGPT".
-- Subagent list shows a Codex card → click "Activate" → success toast.
+- Jarvis-Agents list shows a Codex card → click "Activate" → success toast.
- Restart voice/app, run a small mission ("create a file X with content Y") and
- confirm the Codex subagent executes it (mission completes, file written).
+ confirm the Codex Jarvis-Agent executes it (mission completes, file written).
- Record the outcome (this is required for "done" per D5).
## 8. Anti-patterns explicitly respected
@@ -344,7 +344,7 @@ The worker env (`jarvis/missions/init.py::_env_builder` →
logs a full key.
- **AP-7** config writes go through `config_writer` (`set_sub_jarvis_provider`,
`set_codex_binary_path`).
-- **BUG-008 class** the two subagent-switch sites (`provider_routes` +
+- **BUG-008 class** the two Jarvis-Agent-switch sites (`provider_routes` +
`app_control`) gain the codex branch together + a parity test.
- **CLOUD.md Rule #1** cross-platform, graceful no-op when codex absent.
@@ -355,7 +355,7 @@ The worker env (`jarvis/missions/init.py::_env_builder` →
`unknown`, never a crash.
- **`codex login` under `pythonw.exe`** (no console): mitigated by spawning a new
console; final spawn flags settled during the live test.
-- **API-key subagent path** depends on `codex exec` honoring `OPENAI_API_KEY`
+- **API-key Jarvis-Agent path** depends on `codex exec` honoring `OPENAI_API_KEY`
when no OAuth is present — verified during the live test; the OAuth path is the
primary target.
- **Codex binary not installed** on the test machine → blocks live verification;
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.md
index d0e6d6eb90..ef07e7f31d 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
@@ -2,7 +2,7 @@
**Date:** 2026-06-08
**Status:** Approved-by-directive (maintainer `/goal`: "deep-dive, plan, just build it; cross-platform").
-**Author:** OpenClaw (deep-dive synthesis of 8 parallel explorers).
+**Author:** Jarvis-Agents (deep-dive synthesis of 8 parallel explorers).
---
@@ -22,7 +22,7 @@ Three independently fatal breaks for the headline "switch language" voice comman
1. **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 OpenClaw worker instead of the tool → silent no-op.
+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.
---
diff --git a/docs/superpowers/specs/2026-06-09-discord-telegram-worker-chat-ui-wiring-design.md b/docs/superpowers/specs/2026-06-09-discord-telegram-worker-chat-ui-wiring-design.md
index b57b7d04df..cf2ef3711e 100644
--- a/docs/superpowers/specs/2026-06-09-discord-telegram-worker-chat-ui-wiring-design.md
+++ b/docs/superpowers/specs/2026-06-09-discord-telegram-worker-chat-ui-wiring-design.md
@@ -6,11 +6,11 @@
## Problem
-A user wants to chat with the assistant — and through it, OpenClaw workers — from
+A user wants to chat with the assistant — and through it, Jarvis-Agent workers — from
Discord and Telegram. The bidirectional channel adapters that make this possible
already exist (`jarvis/channels/{discord,telegram}.py`) and are fully wired into
the brain/worker pipeline through `ChannelChatBridge` → `MessageSent` →
-`BrainManager.generate` (force-spawn → OpenClaw) → `ResponseGenerated` → channel
+`BrainManager.generate` (force-spawn → Jarvis-Agents) → `ResponseGenerated` → channel
outbound. But the feature is hard to reach and inconsistent:
1. **Telegram** is wired into the Plugins UI: pasting a bot token calls
@@ -23,7 +23,7 @@ outbound. But the feature is hard to reach and inconsistent:
gateway — two systems fighting over one bot token.
3. There is no way, from the UI, to lock either bot to the owner only. The channel
default is trust-on-first-contact (`pair_on_first_dm` / `pair_on_first_private_message`),
- which is unsafe for a bot that can trigger real OpenClaw actions.
+ which is unsafe for a bot that can trigger real Jarvis-Agents actions.
## Goal
@@ -43,7 +43,7 @@ and disconnecting should reverse all of it (stop the live bot + disable + clear
- No new "send an arbitrary Discord message" tool. Discord becomes a chat channel
exactly like Telegram; the `mcp-discord` server is removed to avoid the
double-gateway conflict (AD-3).
-- No change to the brain/worker/OpenClaw path. Everything routes through the existing
+- No change to the brain/worker/Jarvis-Agents path. Everything routes through the existing
EventBus; we only turn the channel on/off.
## Approach (A — targeted single-channel live restart)
diff --git a/docs/superpowers/specs/2026-06-09-skill-system-rebuild-design.md b/docs/superpowers/specs/2026-06-09-skill-system-rebuild-design.md
index 04e4c6152b..e81a7b92af 100644
--- a/docs/superpowers/specs/2026-06-09-skill-system-rebuild-design.md
+++ b/docs/superpowers/specs/2026-06-09-skill-system-rebuild-design.md
@@ -15,7 +15,7 @@ The maintainer has **never observed a single skill invocation** in real usage, d
A 17-gate trace of the utterance→skill path identified three root causes plus one design-level flaw:
**RC1 — Force-spawn intercepts skill utterances (primary).**
-`BrainManager._should_force_spawn` (`jarvis/brain/manager.py:2785-2798`) evaluates *before* the brain ever sees the system prompt. Action-verb utterances ("starte die Morgenroutine") match the spawn heuristic / `_is_generic_subagent_work` and are dispatched to an OpenClaw mission. The brain — and therefore the `run-skill` tool — never gets a chance. Non-plugin builtins (morning-routine, deep-work-mode) register no capability at all, so the capability registry classifies them as "action with no capability" → generic subagent work → force-spawn.
+`BrainManager._should_force_spawn` (`jarvis/brain/manager.py:2785-2798`) evaluates *before* the brain ever sees the system prompt. Action-verb utterances ("starte die Morgenroutine") match the spawn heuristic / `_is_generic_subagent_work` and are dispatched to a Jarvis-Agents mission. The brain — and therefore the `run-skill` tool — never gets a chance. Non-plugin builtins (morning-routine, deep-work-mode) register no capability at all, so the capability registry classifies them as "action with no capability" → generic Jarvis-Agent work → force-spawn.
**RC2 — Boot race silently removes the AVAILABLE SKILLS section.**
`set_skill_context()` runs late (`desktop_app.py:1509`, inside `_start_speech_and_orb`). If the first utterance arrives before that — or if context wiring fails (broad `except` at `desktop_app.py:1459-1521`) — `try_get_skill_context()` returns `None` and `_build_system_prompt` (`manager.py:1268-1280`) silently omits the skills section. The LLM then has no reason to ever choose `run-skill`.
diff --git a/docs/superpowers/specs/2026-06-10-contact-wiki-mirror-design.md b/docs/superpowers/specs/2026-06-10-contact-wiki-mirror-design.md
index 0c76da3779..1046c17df0 100644
--- a/docs/superpowers/specs/2026-06-10-contact-wiki-mirror-design.md
+++ b/docs/superpowers/specs/2026-06-10-contact-wiki-mirror-design.md
@@ -7,7 +7,7 @@
The Contacts section (`jarvis/contacts/` + `ContactsView`) and the Knowledge Wiki
(`jarvis/memory/wiki/`) are two disconnected person memories. Creating a contact
-(e.g. "Christoph Meyer") leaves the wiki blind: `wiki-recall`, sub-agents, and the
+(e.g. "Christoph Meyer") leaves the wiki blind: `wiki-recall`, Jarvis-Agents, and the
conversation curator know nothing about the person. Conversely, facts the wiki
learns about a person never join up with the user-curated contact.
diff --git a/docs/superpowers/specs/2026-06-15-cu-fail-gate-completion-enforcement-design.md b/docs/superpowers/specs/2026-06-15-cu-fail-gate-completion-enforcement-design.md
index 3d29a92dc4..eef5c463af 100644
--- a/docs/superpowers/specs/2026-06-15-cu-fail-gate-completion-enforcement-design.md
+++ b/docs/superpowers/specs/2026-06-15-cu-fail-gate-completion-enforcement-design.md
@@ -25,7 +25,7 @@ Exit code 5 is `_FAIL_EXIT_CODE` — the model voluntarily emitted
Snipping capture overlay (`Snipping Tool Ueberlagerung`): the goal was nearly
achieved and the model quit one action short.
-This was **not** a sub-agent mission (no mission row created after 17:02). It
+This was **not** a Jarvis-Agent mission (no mission row created after 17:02). It
was the Computer-Use loop in `jarvis/harness/screenshot_only_loop.py`.
## Root cause
@@ -139,7 +139,7 @@ the backstop, then honors it — no infinite loop, and still no free early quit.
## Out of scope (YAGNI)
-- The sub-agent Worker-Critic mission loop (`jarvis/missions/`) — its give-up
+- The Jarvis-Agent Worker-Critic mission loop (`jarvis/missions/`) — its give-up
paths differ; deferred per scoping decision.
- Model-tier change for the CU planner/judge — adds latency/cost, violating the
no-slowdown constraint; the structural gate is model-agnostic. Possible
diff --git a/docs/superpowers/specs/2026-06-15-dragdrop-mission-into-context-design.md b/docs/superpowers/specs/2026-06-15-dragdrop-mission-into-context-design.md
index e92de3cf9b..28df9f27e2 100644
--- a/docs/superpowers/specs/2026-06-15-dragdrop-mission-into-context-design.md
+++ b/docs/superpowers/specs/2026-06-15-dragdrop-mission-into-context-design.md
@@ -5,23 +5,23 @@
## 1. Goal & user intent
-The maintainer wants to grab a sub-agent **mission / output card** (currently
+The maintainer wants to grab a Jarvis-Agent **mission / output card** (currently
click-selectable in the Outputs view) and **drag-and-drop it onto the "Jarvis
bar" / the active display style / the "Jarvis ghost"**. On drop, Jarvis should:
1. **Speak about the dropped mission** conversationally, and
2. **Pull the mission into the live conversation context window**, so the user
- can keep talking about that sub-agent task ("what did it find?", "continue
+ can keep talking about that Jarvis-Agent task ("what did it find?", "continue
this", "summarise the risks") and the brain has the content in `_history`.
-In the maintainer's words: *"bring your sub-agent task back into the context
+In the maintainer's words: *"bring your Jarvis-Agent task back into the context
window."*
## 2. Key decision — the drop surface
The on-screen "Jarvis bar" and "Jarvis ghost/mascot" are **separate Tk overlay
-windows** (`jarvis/ui/whisperbar/overlay.py`, the Orb/mascot surface), driven by
-`[ui].orb_style ∈ {whisper_bar, mascot, none}`. They are **not** part of the
+windows** (`jarvis/ui/jarvisbar/overlay.py`, the Orb/mascot surface), driven by
+`[ui].orb_style ∈ {jarvis_bar, mascot, none}`. They are **not** part of the
React DOM and **do not exist on a headless VPS**.
Per the **cloud-first doctrine (CLAUDE.md RULE #1)** the feature must work in any
@@ -34,7 +34,7 @@ inside the React tree (mounted globally in `App.tsx`, next to `ToastLayer`, so i
is visible across *every* view including Outputs). It visually **mirrors the
active display style**:
-- `whisper_bar` → a slim bar dock
+- `jarvis_bar` → a slim bar dock
- `mascot` (and `none`) → the existing `MascotGigi` ghost component
This is the universal, testable, doctrine-compliant surface and still *feels*
@@ -90,7 +90,7 @@ existing _on_user_message (launcher.py / desktop_app.py)
Human-readable, language-aware (mirror the mission language), e.g.:
-> Pull the sub-agent task "<utterance>" (status: <status>) into our
+> Pull the Jarvis-Agent task "<utterance>" (status: <status>) into our
> conversation. Here is what it produced:
>
> <bounded summary / output excerpt>
diff --git a/docs/superpowers/specs/2026-06-15-rerun-missions-continue-restart-design.md b/docs/superpowers/specs/2026-06-15-rerun-missions-continue-restart-design.md
index dbc8c74e5f..3001940c40 100644
--- a/docs/superpowers/specs/2026-06-15-rerun-missions-continue-restart-design.md
+++ b/docs/superpowers/specs/2026-06-15-rerun-missions-continue-restart-design.md
@@ -1,4 +1,4 @@
-# Re-run sub-agent missions — Continue (cancelled) / Restart (failed)
+# Re-run Jarvis-Agent missions — Continue (cancelled) / Restart (failed)
**Date:** 2026-06-15
**Status:** Design approved, pending spec review
@@ -6,7 +6,7 @@
## Problem
-The sub-agent **Outputs** view shows each mission as a card with a status badge
+The Jarvis-Agent **Outputs** view shows each mission as a card with a status badge
(`CANCELLED`, `error`, `success`, `running`). Once a mission is cancelled by the
user or fails (critic-loop exhaustion, crash recovery, task error, timeout),
there is no way to run it again. The user must re-type the original request from
diff --git a/docs/superpowers/specs/2026-06-16-artifact-download-and-view-design.md b/docs/superpowers/specs/2026-06-16-artifact-download-and-view-design.md
index 394fb9ae5e..196fb00bed 100644
--- a/docs/superpowers/specs/2026-06-16-artifact-download-and-view-design.md
+++ b/docs/superpowers/specs/2026-06-16-artifact-download-and-view-design.md
@@ -2,7 +2,7 @@
**Date:** 2026-06-16
**Status:** Approved (design phase) — ready for implementation plan
-**Topic:** Let the user get a Jarvis/sub-agent output file *out* of the app — download it to the
+**Topic:** Let the user get a Jarvis/Jarvis-Agent output file *out* of the app — download it to the
Downloads folder and open/view it in the browser — cross-platform (Windows, macOS, Linux, and the
headless VPS-browser runtime).
diff --git a/docs/superpowers/specs/2026-06-16-jarvis-dock-dnd-polish-design.md b/docs/superpowers/specs/2026-06-16-jarvis-dock-dnd-polish-design.md
index b7ecf6bb47..df1bfa2f18 100644
--- a/docs/superpowers/specs/2026-06-16-jarvis-dock-dnd-polish-design.md
+++ b/docs/superpowers/specs/2026-06-16-jarvis-dock-dnd-polish-design.md
@@ -6,7 +6,7 @@ Scope: frontend-only (`jarvis/ui/web/frontend/`). No server, schema, or WS contr
## Problem (from the bridgespace recording + code)
-Dragging a sub-agent mission/output card onto the `JarvisDock` "works" — the WS
+Dragging a Jarvis-Agent mission/output card onto the `JarvisDock` "works" — the WS
`mission.inject` command fires and Jarvis recaps the task — but the *feel* is
broken:
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.md
index e0ad18393a..5e9017435b 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
@@ -3,7 +3,7 @@
- **Status:** Draft (approved direction, pending spec review)
- **Date:** 2026-06-17
- **Type:** Additive UI section + read-only analytics layer
-- **Sibling spec:** `2026-05-27-subagent-section-design.md` (same "new section" wiring pattern), `2026-05-30-chats-conversation-manager-design.md` (Sessions/Chats data sources)
+- **Sibling spec:** `2026-05-27-jarvis-agents-section-design.md` (same "new section" wiring pattern), `2026-05-30-chats-conversation-manager-design.md` (Sessions/Chats data sources)
---
@@ -33,7 +33,7 @@ from data that already exists:
defined `LatencyPhase` vocabulary and SLO budgets.
- Tool/CLI invocations live in `cli_usage.db` (`cli_invocations`: name,
exit code, duration, risk-tier, `trace_id`, caller).
-- Sub-agent missions live in `missions.db`, optionally linked to a session via
+- Jarvis-Agent missions live in `missions.db`, optionally linked to a session via
`session_id` on `WorkerSpawned` / `WorkerDraftReady`.
This is therefore primarily an **aggregation + UI** task, not a telemetry
diff --git a/docs/superpowers/specs/2026-06-17-webui-docs-readability-design.md b/docs/superpowers/specs/2026-06-17-webui-docs-readability-design.md
index 3c7ab1adc8..67a2b81572 100644
--- a/docs/superpowers/specs/2026-06-17-webui-docs-readability-design.md
+++ b/docs/superpowers/specs/2026-06-17-webui-docs-readability-design.md
@@ -3,7 +3,7 @@ title: "Design: webui docs readability pass (Claude-Code-style jargon glossing)"
slug: webui-docs-readability-design
diataxis: explanation
status: draft
-owner: harald
+owner: sam
date: 2026-06-17
---
diff --git a/docs/superpowers/specs/2026-06-19-subagent-report-readback-conversation-continuity-design.md b/docs/superpowers/specs/2026-06-19-jarvis-agents-report-readback-conversation-continuity-design.md
similarity index 97%
rename from docs/superpowers/specs/2026-06-19-subagent-report-readback-conversation-continuity-design.md
rename to docs/superpowers/specs/2026-06-19-jarvis-agents-report-readback-conversation-continuity-design.md
index 3b4d982b4a..16d1943cf8 100644
--- a/docs/superpowers/specs/2026-06-19-subagent-report-readback-conversation-continuity-design.md
+++ b/docs/superpowers/specs/2026-06-19-jarvis-agents-report-readback-conversation-continuity-design.md
@@ -1,4 +1,4 @@
-# Subagent / Mission Report Readback — Conversation Continuity, Speaking Indicator, Transcript Attribution
+# Jarvis-Agent / Mission Report Readback — Conversation Continuity, Speaking Indicator, Transcript Attribution
**Date:** 2026-06-19
**Status:** Design — approved in brainstorming, pending spec review
@@ -117,7 +117,7 @@ missing, wire `emit_state` off the same transition or record it as a known follo
live in the running app (restart) and verify the report reaches every transcript surface the
maintainer looks at — the per-session Sessions detail view is covered; check whether a separate
live "Transcription" panel also needs the entry (and extend it if so).
-- **Distinct colour + label:** give the mission/subagent readback its own visual identity in the
+- **Distinct colour + label:** give the mission/Jarvis-Agent readback its own visual identity in the
transcript — a colour clearly different from a normal answer, and a label like
"Jarvis Sub-Agent / Output".
@@ -129,7 +129,7 @@ missing, wire `emit_state` off the same transition or record it as a known follo
risk to the just-fixed post-hangup-drop guards.
**Pre-condition to verify:** confirm `SPOKEN_KIND_COMPLETION` is emitted **only** for
- background-mission / subagent readbacks. If it is shared with a non-subagent surface that should
+ background-mission / Jarvis-Agent readbacks. If it is shared with a non-Jarvis-Agent surface that should
not carry the "Sub-Agent" label, fall back to introducing a dedicated `spoken_kind` (e.g.
`subagent`) through all five enum layers (`constants.py` → `models.py` → `schema.sql` payload →
`types.ts` → `TurnCard.tsx`) **and** update the three completion-keyed guards to treat the new kind
@@ -151,7 +151,7 @@ an audio cut but is DB-provable).
| Announcement handler | `jarvis/speech/pipeline.py` `_on_announcement` (≈2223–2255) | Emit SPEAKING around readback playback; on finish transition to LISTENING (open) or IDLE (hung up) |
| Supervisor | `jarvis/state/supervisor.py` (≈47–63) | Reuse `set_state` — no change expected unless a new transition helper is cleaner |
| Transcript styling | `jarvis/ui/web/frontend/src/components/sessions/TurnCard.tsx` (≈28–45, 209–248) | Distinct colour for the mission readback block; relabel `completion` → "Jarvis Sub-Agent / Output" |
-| (Conditional) spoken_kind enum | `constants.py`, `models.py`, `schema.sql`, `types.ts`, `TurnCard.tsx` + parity test | Only if `completion` proves shared with non-subagent surfaces |
+| (Conditional) spoken_kind enum | `constants.py`, `models.py`, `schema.sql`, `types.ts`, `TurnCard.tsx` + parity test | Only if `completion` proves shared with non-Jarvis-Agent surfaces |
| Orb wiring (verify) | `jarvis/ui/web/launcher.py`, `jarvis/overlay/bridge.py` | Confirm/append `emit_state` off the speaking transition |
## 5. Testing (TDD, repo convention — fakes not mocks)
diff --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.md
index 5a384a770d..cd1890526d 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
@@ -6,8 +6,8 @@
## Problem
-When a voice/chat turn force-spawns a background sub-agent mission (`spawn_worker`
-/ OpenClaw), the user hears exactly one tailored opening line and then **silence**.
+When a voice/chat turn force-spawns a background Jarvis-Agent mission (`spawn_worker`
+/ Jarvis-Agents), the user hears exactly one tailored opening line and then **silence**.
The only follow-up is a single hard-coded German phrase `"Bin noch dran."` emitted
once at 90 s; otherwise nothing until the result. To a voice-first user talking to
Jarvis like a voice assistant ("Hey Google" style), that long silence reads as a
diff --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.md
index 55f744a61e..4edb68a53d 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
@@ -1,14 +1,14 @@
-# Antigravity / Gemini-CLI over Google subscription — Brain + Subagent provider
+# Antigravity / Gemini-CLI over Google subscription — Brain + Jarvis-Agent provider
**Date:** 2026-06-20
**Status:** Design — awaiting maintainer review before implementation
-**Author:** Jarvis dev session (goal: bill Antigravity over the Google subscription, in the API-Keys section, for Brain Provider and Subagents)
+**Author:** Jarvis dev session (goal: bill Antigravity over the Google subscription, in the API-Keys section, for Brain Provider and Jarvis-Agents)
---
## 1. Problem
-The user wants Jarvis to run its conversational **Brain** and its **Subagents** against their **Google subscription** (the "Sign in with Google" / Google AI Pro/Ultra path), **without a paid Gemini API key** — and to select that path from the API-Keys section, the same way they pick any other provider.
+The user wants Jarvis to run its conversational **Brain** and its **Jarvis-Agents** against their **Google subscription** (the "Sign in with Google" / Google AI Pro/Ultra path), **without a paid Gemini API key** — and to select that path from the API-Keys section, the same way they pick any other provider.
Today the only Google brain provider is `gemini`, which is **API-key only** (`GeminiBrain` raises if no `gemini_api_key` is set). There is no way to use the Google-account OAuth login that Antigravity / the Gemini CLI already use.
@@ -25,7 +25,7 @@ Today the only Google brain provider is `gemini`, which is **API-key only** (`Ge
## 3. Findings that shape the design (verified on this machine + web research, 2026-06-20)
-1. **The user is already logged in via Google OAuth.** `~/.gemini/oauth_creds.json` holds a valid, refresh-capable token (`access_token`, `refresh_token`, `expiry_date`, scope `…/auth/cloud-platform`), `~/.gemini/settings.json` has `selectedType: "oauth-personal"` and `model: "gemini-3.1-pro-preview"`, active account `[email protected]`. **No API key is involved.**
+1. **The user is already logged in via Google OAuth.** `~/.gemini/oauth_creds.json` holds a valid, refresh-capable token (`access_token`, `refresh_token`, `expiry_date`, scope `…/auth/cloud-platform`), `~/.gemini/settings.json` has `selectedType: "oauth-personal"` and `model: "gemini-3.1-pro-preview"`, active account `[email protected]`. **No API key is involved.**
2. **The Gemini CLI is installed** (`@google/[email protected]`) with a real headless mode: `-p/--prompt`, `-m/--model`, `--approval-mode {default,auto_edit,yolo,plan}`, `-o/--output-format {text,json,stream-json}`. (Its PATH shims are currently broken npm temp files — `.gemini.cmd-XXedit` etc. — so it must be invoked via `node <bundle>/gemini.js` or after a shim repair.)
3. **Antigravity is installed as an IDE** (Electron/VS Code fork under `%APPDATA%\Antigravity`) and shares the same `~/.gemini/` store, but the IDE itself has **no scriptable headless CLI**.
4. **The landscape changed on 2026-06-18 (two days ago).** Google sunset the Gemini CLI's *consumer* OAuth path for individual Pro/Ultra/free accounts and replaced it with the **Antigravity CLI `agy`** (a Go binary, `agy -p "…"`, "Sign in with Google", honors Pro/Ultra quota, credentials in the OS keyring). The installed Gemini CLI may still serve this account but is on a shrinking runway. `agy` is **not installed** on this machine yet.
@@ -93,10 +93,10 @@ The email is read from `~/.gemini/google_accounts.json.active` (already confirme
* `--approval-mode plan` = read-only: the conversational brain cannot write files or run commands.
* Default model: `gemini-3.1-pro-preview` (matches the user's settings; overridable via `[brain.providers.antigravity].model`).
-### 5.4 Subagent (heavy worker) backend
+### 5.4 Jarvis-Agent (heavy worker) backend
-The subagent 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 subagent provider mapping (`/api/openclaw/status` → `SubagentMappingRow`), `key_set` driven by `GoogleCliAuthService.status().connected` (not by an API-key slot).
+The 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).
* 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)"`.
@@ -117,7 +117,7 @@ Like Codex, `antigravity` is **excluded from `CATALOG_PROVIDERS`** (`model_catal
* `POST /api/antigravity/login` → `start_login()` (spawns the official CLI login in a visible console).
* `POST /api/antigravity/logout` → `logout_blocking()`.
* `POST /api/antigravity/binary-path` → optional manual path override.
-* The existing brain/subagent switch routes (`/api/brain/switch`, `/api/subagent/switch`) work unchanged once `antigravity` is a registered provider.
+* The existing brain/Jarvis-Agent switch routes (`/api/brain/switch`, `/api/subagent/switch`) work unchanged once `antigravity` is a registered provider.
### 5.8 Frontend (mirror `CodexAuthWidget` + reuse the CLI-connect coach)
@@ -129,7 +129,7 @@ Like Codex, `antigravity` is **excluded from `CATALOG_PROVIDERS`** (`model_catal
**Brain turn:** voice/chat → `BrainManager` (active provider `antigravity`) → `AntigravityBrain.complete` → resolve CLI → `agy/gemini -p … --approval-mode plan -o json` subprocess → parse JSON → `BrainDelta` stream → TTS/chat. Billed against the Google subscription; no API key.
-**Subagent turn:** mission dispatch → `GoogleCliWorker` → `agy/gemini -p … --approval-mode yolo` inside the worktree → streamed `WorkerProgress` → Critic/Kontrollierer → deliverable.
+**Jarvis-Agent turn:** mission dispatch → `GoogleCliWorker` → `agy/gemini -p … --approval-mode yolo` inside the worktree → streamed `WorkerProgress` → Critic/Kontrollierer → deliverable.
## 7. Error handling & honesty
@@ -181,7 +181,7 @@ Branch `feat/antigravity-google-subscription`. TDD throughout; 114 tests green.
* `jarvis/missions/init.py` — selector hard-lock + factory branch + env force-OAuth.
* `jarvis/missions/workers/gemini_worker.py` — hardened binary resolution (same Windows fix).
-**Live-verified (read-only, no billed call):** `resolve_google_cli()` → `node <bundle>`; `status()` → installed=True, connected=True, mode=oauth-personal, account `[email protected]`. The brain registers in the plugin registry; the subagent worker resolves the CLI.
+**Live-verified (read-only, no billed call):** `resolve_google_cli()` → `node <bundle>`; `status()` → installed=True, connected=True, mode=oauth-personal, account `[email protected]`. The brain registers in the plugin registry; the Jarvis-Agent worker resolves the CLI.
**Uncommitted riders** (functional live via the editable install; they live in files a parallel session is actively rewriting — the per-provider model picker — so committing them would sweep that foreign work):
* `server.py` — mount of the antigravity router.
diff --git a/docs/superpowers/specs/2026-06-20-assistant-name-coupled-to-wake-word-design.md b/docs/superpowers/specs/2026-06-20-assistant-name-coupled-to-wake-word-design.md
index b623cc4041..d933c588cc 100644
--- a/docs/superpowers/specs/2026-06-20-assistant-name-coupled-to-wake-word-design.md
+++ b/docs/superpowers/specs/2026-06-20-assistant-name-coupled-to-wake-word-design.md
@@ -16,8 +16,8 @@ The assistant currently has two independent identity controls:
These were deliberately decoupled on 2026-06-19 so a user could wake "Hey
Computer" while the assistant called itself "Friday". The maintainer has decided
to reverse that: the assistant name should be **derived solely from the wake
-word**, with no separate name control anywhere. "Hey Ruben" → the assistant is
-called "Ruben". Setting the wake word is the single act that names the assistant.
+word**, with no separate name control anywhere. "Hey Alex" → the assistant is
+called "Alex". Setting the wake word is the single act that names the assistant.
## Goal
@@ -66,7 +66,7 @@ Override entry points to be removed:
The single source of the assistant name is the wake phrase. `resolve_assistant_name`
becomes two stages:
-1. Wake phrase with prefix stripped, title-cased ("Hey Ruben" → "Ruben",
+1. Wake phrase with prefix stripped, title-cased ("Hey Alex" → "Alex",
"micron" → "Micron", "Hey Computer" → "Computer").
2. `DEFAULT_ASSISTANT_NAME` ("Assistant") when there is no usable wake phrase
(pre-onboarding / empty).
@@ -123,7 +123,7 @@ name are intentionally identical.
10. **Wake-word live preview (the new visibility)** — In the wake-word surfaces,
show a live, derived-name hint as the user types:
- Onboarding `steps/WakeWordStep.tsx`: below the "Hey ___" input, render
- e.g. "Your assistant will be called: **Ruben**". The derivation mirrors
+ e.g. "Your assistant will be called: **Alex**". The derivation mirrors
the backend (`phrase_core` prefix-strip + title-case); since the onboarding
input is the bare word with a fixed "Hey " prefix, the preview is the
title-cased trimmed input (empty input → no hint / the neutral fallback).
diff --git a/docs/superpowers/specs/2026-06-20-onboarding-system-style-step-design.md b/docs/superpowers/specs/2026-06-20-onboarding-system-style-step-design.md
index 9021e287c8..23c7ed72cb 100644
--- a/docs/superpowers/specs/2026-06-20-onboarding-system-style-step-design.md
+++ b/docs/superpowers/specs/2026-06-20-onboarding-system-style-step-design.md
@@ -26,11 +26,11 @@ need a new vocabulary:
- **Backend:** `GET/PUT /api/settings/overlay-style` (`jarvis/ui/web/settings_routes.py`),
persisted via `config_writer.set_overlay_style` to `ui.orb_style` in `jarvis.toml`. The
- config default is already `ui.orb_style = "whisper_bar"` (`jarvis/core/config.py:1009`).
+ config default is already `ui.orb_style = "jarvis_bar"` (`jarvis/core/config.py:1009`).
- **Frontend:** the `useOverlayStyle` hook (`hooks/useOverlayStyle.ts`) and the 3-card
picker with preview graphics in `views/settings/OverlayTaskbarGroup.tsx`
(`BarPreview`, `MascotGigi`, `NonePreview`).
-- **Values:** `whisper_bar` (the Jarvis Bar), `mascot` (the Orb / Gigi ghost), `none`
+- **Values:** `jarvis_bar` (the Jarvis Bar), `mascot` (the Orb / Gigi ghost), `none`
(no overlay — just the app window / browser tab).
This step **surfaces that existing axis inside onboarding**; it adds no new enum and no
@@ -40,12 +40,12 @@ launcher changes.
1. On the onboarding flow, a new `system-style` step appears after `persona-theme` and
before `finish`.
-2. The step shows all three options as preview cards; **`whisper_bar` is pre-selected and
+2. The step shows all three options as preview cards; **`jarvis_bar` is pre-selected and
carries a visible "Recommended" badge**.
3. Picking an option persists it (`PUT /api/settings/overlay-style`, `persist: true`) and
live-applies it when possible; when a restart is required it offers an explicit
**"Restart now"** action (a pick alone never auto-restarts) (see §4).
-4. The step is skippable; "Next" / "Skip" both leave the persisted default (`whisper_bar`)
+4. The step is skippable; "Next" / "Skip" both leave the persisted default (`jarvis_bar`)
in place.
5. The backend `ONBOARDING_STEPS` and the frontend `REGISTRY` stay in sync (the existing
cross-layer parity test covers the new key).
@@ -69,7 +69,7 @@ launcher changes.
A new step component (`SystemStyleStep.tsx`) renders the same three-option picker as the
Settings panel, reusing `useOverlayStyle` and the preview graphics, pre-selected on
-`whisper_bar` with a "Recommended" badge. It registers as a new step key `system-style` in
+`jarvis_bar` with a "Recommended" badge. It registers as a new step key `system-style` in
both the backend step list and the frontend registry.
### Rejected alternatives
@@ -102,7 +102,7 @@ Settings view, with both call sites importing from there. The `StylePreview` dis
### Data flow
The step calls `useOverlayStyle()` → `GET /api/settings/overlay-style` to read the current
-style and options, pre-selects `whisper_bar`, and on a card click calls `saveStyle(opt)` →
+style and options, pre-selects `jarvis_bar`, and on a card click calls `saveStyle(opt)` →
`PUT /api/settings/overlay-style` with `persist: true`. The onboarding stepper's existing
`goNext` / `skip` advance the flow. The onboarding step pointer persists through the normal
`/api/onboarding/step` path (unchanged).
@@ -115,14 +115,14 @@ style and options, pre-selects `whisper_bar`, and on a card click calls `saveSty
|---|---|
| Step key | `system-style` |
| Position | after `persona-theme`, before `finish` |
-| Mandatory? | No — skippable; default (`whisper_bar`) stands if skipped |
+| Mandatory? | No — skippable; default (`jarvis_bar`) stands if skipped |
| Reuses | `useOverlayStyle`, `/api/settings/overlay-style`, overlay preview graphics |
### Options (all three, matching the existing axis)
| Card | `overlay-style` value | Onboarding framing |
|---|---|---|
-| **Jarvis Bar** | `whisper_bar` | Pre-selected + **"Recommended"** badge. "The slim floating voice bar — always within reach." |
+| **Jarvis Bar** | `jarvis_bar` | Pre-selected + **"Recommended"** badge. "The slim floating voice bar — always within reach." |
| **Orb** | `mascot` | "A floating companion orb (Gigi)." |
| **No overlay** | `none` | "Just the app window / browser tab — no floating surface." |
@@ -147,7 +147,7 @@ action. Maintainer feedback (2026-06-20): a selection must actually take effect,
manual relaunch. So the step now mirrors the Settings `OverlayStylePanel`:
- **On a pick:** persist + attempt live-apply. If `applied_live` → done, no prompt (the
- common case — keeping `whisper_bar`, the maintainer's current state, is a no-op).
+ common case — keeping `jarvis_bar`, the maintainer's current state, is a no-op).
- **If `restart_required`:** show a **"Restart now to apply"** button that POSTs
`/api/settings/restart-app` → the existing `request_restart` relauncher cleanly self-
restarts the app so the chosen style is live. The same **409 → force-arm** path as the
@@ -176,7 +176,7 @@ ONBOARDING_STEPS = [
```
No new route, no new config key, no new enum. The overlay-style endpoint, config writer,
-and `ui.orb_style` default (`"whisper_bar"`) already exist and are unchanged.
+and `ui.orb_style` default (`"jarvis_bar"`) already exist and are unchanged.
---
@@ -185,7 +185,7 @@ and `ui.orb_style` default (`"whisper_bar"`) already exist and are unchanged.
- **Registry:** add `"system-style": SystemStyleStep` to `REGISTRY` in `OnboardingFlow.tsx`
(between `persona-theme` and `finish`). `STEP_KEYS` then matches the backend list.
- **New component:** `steps/SystemStyleStep.tsx` consuming `StepProps`, using
- `useOverlayStyle`, pre-selecting `whisper_bar`, rendering the Recommended badge, persisting
+ `useOverlayStyle`, pre-selecting `jarvis_bar`, rendering the Recommended badge, persisting
on pick, advancing via `goNext` / `skip`.
- **Shared previews:** lift `BarPreview` + `NonePreview` + the `StylePreview` dispatcher into
`components/overlay/OverlayStylePreviews.tsx` (`MascotGigi` already lives in
@@ -205,7 +205,7 @@ and `ui.orb_style` default (`"whisper_bar"`) already exist and are unchanged.
### Automated (TDD)
- **Frontend (vitest)** — `SystemStyleStep.test.tsx`:
- - Renders three options; `whisper_bar` is pre-selected and shows the "Recommended" badge.
+ - Renders three options; `jarvis_bar` is pre-selected and shows the "Recommended" badge.
- Clicking a card calls `saveStyle` with the right value (mock `useOverlayStyle`).
- "Next" advances; "Skip" advances and leaves the default.
- A **pick alone** never calls `/api/settings/restart-app` (restart is an explicit,
@@ -230,11 +230,11 @@ and `ui.orb_style` default (`"whisper_bar"`) already exist and are unchanged.
1. A `system-style` step renders after `persona-theme` and before `finish`; the parity test
passes (backend + frontend lists agree).
-2. The step shows all three overlay styles as cards; `whisper_bar` is pre-selected and
+2. The step shows all three overlay styles as cards; `jarvis_bar` is pre-selected and
visibly "Recommended".
3. Selecting an option persists it via `PUT /api/settings/overlay-style` (`persist: true`);
no app restart is triggered from onboarding.
-4. The step is skippable; the default (`whisper_bar`) stands when skipped.
+4. The step is skippable; the default (`jarvis_bar`) stands when skipped.
5. The maintainer's configured localhost install is never re-onboarded by this work
(verification uses `?onboarding=force` only).
6. `ruff` clean; vitest + the CI language-policy gate pass (English source strings).
diff --git a/docs/superpowers/specs/2026-06-21-dragdrop-files-into-context-design.md b/docs/superpowers/specs/2026-06-21-dragdrop-files-into-context-design.md
index 7a12f8fef4..911ca22c1c 100644
--- a/docs/superpowers/specs/2026-06-21-dragdrop-files-into-context-design.md
+++ b/docs/superpowers/specs/2026-06-21-dragdrop-files-into-context-design.md
@@ -128,7 +128,7 @@ directive language (same as mission-drop).
- `jarvis/brain/manager.py` — `inject_images_for_turn` + the pop in
`_collect_vision_images`; add `"ui.drop"` to `_NON_SPAWN_SOURCE_LAYERS`.
- `jarvis/ui/web/server.py` / route registration — mount `drop_routes`.
-- `ui/orb/overlay.py` + `jarvis/ui/whisperbar/overlay.py` — attach the drop
+- `ui/orb/overlay.py` + `jarvis/ui/jarvisbar/overlay.py` — attach the drop
target after the Tk root is built (additive; color-key rendering untouched, AD-7).
- `jarvis/ui/desktop_app.py` — wire the overlay drop callback → marshal → ingest.
- `pyproject.toml` — `tkinterdnd2` in the `[desktop]` extra.
diff --git a/docs/superpowers/specs/2026-06-21-jarvis-cli-design.md b/docs/superpowers/specs/2026-06-21-jarvis-cli-design.md
index 375f53d21e..75bc8c89d6 100644
--- a/docs/superpowers/specs/2026-06-21-jarvis-cli-design.md
+++ b/docs/superpowers/specs/2026-06-21-jarvis-cli-design.md
@@ -11,7 +11,7 @@
Build a first-class **Jarvis CLI**: a command-line interface that drives Jarvis
itself, exposing every action a user can perform in the WebUI as a CLI command.
-It is usable by the maintainer, by Jarvis's own sub-agents, and — the primary
+It is usable by the maintainer, by Jarvis's own Jarvis-Agents, and — the primary
driver — by **external coding agents (Claude Code, Codex)** that need to control
a running Jarvis programmatically. This is the same relationship `gcloud` / `aws`
/ `az` have with their cloud platforms: a CLI that surfaces the full capability
diff --git a/docs/superpowers/specs/2026-06-24-jarvis-sandbox-testing-design.md b/docs/superpowers/specs/2026-06-24-jarvis-sandbox-testing-design.md
new file mode 100644
index 0000000000..9c6f1bc94a
--- /dev/null
+++ b/docs/superpowers/specs/2026-06-24-jarvis-sandbox-testing-design.md
@@ -0,0 +1,211 @@
+# Isolated Jarvis Sandbox — Clean-Room Testing on the Maintainer's Own Machine
+
+- **Date:** 2026-06-24
+- **Status:** Draft (design approved, pending spec review)
+- **Author:** Maintainer + assistant (brainstorming session)
+- **Scope:** A repeatable, throwaway sandbox that runs a fresh clone of the public
+ `PersonalJarvis/PersonalJarvis` repo natively on Windows, so the maintainer experiences
+ exactly what a stranger pulling from GitHub gets — without touching the maintainer's
+ real config, data, or credentials.
+
+---
+
+## 1. Problem & Motivation
+
+The maintainer wants to verify the *fresh-user experience* of the public flagship repo on
+their own Windows machine. Today this is unsafe to do casually, because a second Jarvis
+instance started from a clone shares three machine-scoped resources with the real install:
+
+1. **Windows Credential Manager** — the keyring service name `personal-jarvis` is hardcoded
+ (`jarvis/core/config.py:67`), with no env override. A native second instance would *read*
+ the maintainer's real API keys (breaking the "fresh stranger has no keys" fidelity and
+ silently spending the maintainer's billing) and *write* into the same namespace
+ (contaminating / overwriting the maintainer's real keys).
+2. **The editable install pin** — running `pip install -e .` from a clone re-points
+ `import jarvis` to that clone for whatever Python ran it (the BUG-006/014/015 restore trap).
+3. **Config + data on disk** — writes to the real `jarvis.toml` and `data/` tree.
+
+The goal: an isolated sandbox where all three are sealed off, the sandbox runs the *published*
+code (not the maintainer's in-flight working tree), and the result is provably identical to
+what any other Windows desktop user would get.
+
+### Target experience (decided during brainstorming)
+
+- **Reproduce:** a Windows-desktop power user (native, with voice + browser UI).
+- **Source of truth:** a fresh `git clone` of the public GitHub repo (the truest clean room).
+- **Reach:** **voice + browser UI only. Computer-Use is OFF.** The sandbox talks, shows the UI,
+ and runs missions, but never touches the physical desktop. (Rationale: on a single physical
+ machine, Computer-Use actions — mouse, keyboard, screenshots — are inherently global and
+ cannot be sandboxed by a venv; only a VM could isolate them, which the maintainer explicitly
+ declined in favor of the simpler, safer voice+UI scope.)
+
+---
+
+## 2. Goals & Non-Goals
+
+### Goals
+
+- One repeatable command provisions a fully isolated sandbox from a fresh public clone and
+ launches it natively with voice + browser UI.
+- Zero contamination: the maintainer's real `jarvis.toml`, `data/`, and `personal-jarvis`
+ Credential Manager namespace are never read or written by the sandbox.
+- Faithful: the provisioning runs *exactly* the documented stranger steps, so a failure in any
+ step is a real defect a stranger would also hit (e.g. a missing frontend build).
+- Provable: isolation is verified by the tooling, not merely asserted.
+- Throwaway: a teardown command removes the sandbox and leaves the host untouched.
+
+### Non-Goals
+
+- VM / Hyper-V isolation of Computer-Use actions (explicitly out of scope this iteration).
+- Running the sandbox against the maintainer's uncommitted working tree (the source is always
+ the published public repo).
+- Cross-platform sandbox scripts. This tooling is Windows-PowerShell-only, which the
+ cloud-first doctrine permits for `scripts/` developer tooling.
+- Any change to the runtime `jarvis/` package. The sandbox is provisioning + launch tooling
+ around the *unmodified* published code.
+
+---
+
+## 3. The Four Isolation Seams
+
+| Seam | Risk without isolation | How the sandbox seals it |
+|---|---|---|
+| **Python import** | `pip install -e .` re-pins the global `import jarvis` to the clone (restore trap) | A dedicated venv inside the sandbox dir. The editable install affects **only** that venv's site-packages and entry-point scripts; the global interpreter's `import jarvis` is untouched. |
+| **Credentials** | Hardcoded keyring service `personal-jarvis` → sandbox reads/writes the maintainer's real keys | `PYTHON_KEYRING_BACKEND=keyrings.alt.file.PlaintextKeyring` redirects keyring to an isolated, write-safe file backend (installed into the sandbox venv). Reads of the real WinVault namespace become impossible; writes go to a throwaway file; the real Credential Manager is never touched. Sandbox API keys live only in a sandbox-local `.env`. |
+| **Config** | Writes to the real `jarvis.toml` | `JARVIS_CONFIG` → `<sandbox>/jarvis.toml`. (Defense-in-depth; the separate clone already makes `PROJECT_ROOT` resolve into the sandbox.) |
+| **Data** | Writes to the real DBs, missions, flight-recorder, board | `JARVIS_DATA_DIR` → `<sandbox>/data`. |
+
+### Runtime co-existence
+
+The sandbox is launched with a different port and the single-instance lock disabled, so it can
+run alongside the real tray instance:
+
+- `python -m jarvis.ui.web.launcher --no-lock --port <Port>` (both flags exist:
+ `jarvis/ui/web/launcher.py:82,88`; `use_lock = not args.no_lock` at line 863).
+- **Mic and speakers are shared OS resources** and cannot be split. If the sandbox should own
+ voice, stop the real tray app first; otherwise expect device contention. This is documented,
+ not engineered around.
+
+### Computer-Use disabled
+
+The seeded sandbox `jarvis.toml` sets `[computer_use].enabled = false`. With that flag off, the
+brain factory never builds the Computer-Use context (`jarvis/brain/factory.py:862-863,1022-1023`),
+so the sandbox cannot drive the physical desktop. Voice (`JARVIS_VOICE=1`, the default) stays on.
+
+---
+
+## 4. Provisioning Flow (the stranger's steps, isolated)
+
+The provisioner performs the documented fresh-clone sequence, redirected into the sandbox dir:
+
+1. **Preconditions** — assert `git`, a Python ≥3.11 launcher, and `node`/`npm` are present
+ (npm is needed because the built frontend is not shipped — see below). Refuse to run if the
+ sandbox dir already exists unless `-Force`.
+2. **Fresh clone** — `git clone <RepoUrl> <SandboxRoot>` at `<Ref>` (default: the public
+ flagship at its default branch).
+3. **Isolated venv** — `python -m venv <SandboxRoot>/.venv` using the host Python ≥3.11.
+4. **Install (exactly the README steps)** — inside the venv:
+ `pip install -e . --no-deps` (activates entry-points / plugin discovery) +
+ `pip install -r requirements.txt` (runtime deps) + `pip install keyrings.alt`
+ (the isolated keyring backend; sandbox-only, never added to the published deps).
+5. **Frontend build** — the public repo does **not** track `jarvis/ui/web/dist` (0 tracked
+ files; `dist/` is gitignored). If `dist` is absent, run `npm install && npm run build` in
+ `jarvis/ui/web/frontend`. A failure here is a real gap in the public repo's documented
+ install story and is surfaced, not hidden.
+6. **Secrets + config seed** — per mode (Section 5).
+7. **Generate `run-sandbox.ps1`** inside the sandbox — sets `JARVIS_CONFIG`, `JARVIS_DATA_DIR`,
+ `PYTHON_KEYRING_BACKEND`, `JARVIS_VOICE=1`, and launches
+ `<venv>/Scripts/python -m jarvis.ui.web.launcher --no-lock --port <Port>`.
+8. **Verify isolation** (Section 6) and print a PASS/FAIL report **before** the first launch.
+
+---
+
+## 5. Run Modes
+
+A single `-Mode` parameter selects one of three behaviors. **Computer-Use is off in all modes.**
+
+- **`Configured` (default, recommended).** The provisioner writes a sandbox-local `.env` with
+ the provider key(s) the maintainer chooses to lend it (sourced from `-EnvFile`, or prompted),
+ seeds `jarvis.toml` from `jarvis.toml.example` with `[computer_use].enabled = false`, and
+ writes the `data/.setup-complete` marker. The sandbox boots straight into the *running*
+ Jarvis — the configured product a stranger has after setup. Least fragile; tests what the
+ maintainer actually uses day-to-day.
+- **`ColdStart` (`-Mode ColdStart`).** No keys, no `.setup-complete` marker. The maintainer
+ walks the exact first-run onboarding a stranger sees; keys typed into the UI persist into the
+ throwaway file keyring, never the real namespace. Best for QA'ing the literal first-run UX.
+- **`Keyless` (`-Mode Keyless`).** No keys at all; the brain runs on the Mock-Brain fallback.
+ A pure boot / UI / onboarding-shell smoke test with no secrets involved.
+
+Rationale for the default: `Configured` exercises the real running product with the least
+fragility and zero contamination risk; `ColdStart` is available because "look the same as for
+them" includes the very first impression.
+
+---
+
+## 6. Built-in Isolation Proof
+
+Run automatically at the end of provisioning, and on demand via `verify-jarvis-sandbox.ps1`.
+Each check prints PASS/FAIL; any FAIL exits non-zero and blocks launch.
+
+1. **Sandbox import origin** — `<venv>/python -c "import jarvis; print(jarvis.__file__)"`
+ resolves under `<SandboxRoot>`.
+2. **Global import untouched** — the host's global
+ `python -c "import jarvis; print(jarvis.__file__)"` still resolves to the maintainer's real
+ tree (unchanged from a baseline captured before provisioning).
+3. **Keyring redirected** —
+ `<venv>/python -c "import keyring; print(type(keyring.get_keyring()).__name__)"` is **not**
+ `WinVaultKeyring`.
+4. **Real state untouched** — the maintainer's real `jarvis.toml` and `data/` mtimes, and the
+ presence/values of the real `personal-jarvis` Credential Manager entries, are unchanged
+ before vs. after a sandbox run.
+
+---
+
+## 7. Artifacts
+
+All under `scripts/sandbox/`, English, PowerShell:
+
+- **`new-jarvis-sandbox.ps1`** — provision + launch.
+ Parameters: `-SandboxRoot <path>` (default: a `jarvis-sandbox` sibling of the repo),
+ `-RepoUrl <url>` (default: the public flagship), `-Ref <branch|tag>` (default: default branch),
+ `-Port <int>` (default: 47830), `-Mode <Configured|ColdStart|Keyless>` (default: Configured),
+ `-EnvFile <path>` (optional key source for Configured), `-Force`, `-NoLaunch`.
+- **`verify-jarvis-sandbox.ps1`** — the Section 6 proofs on demand.
+ Parameters: `-SandboxRoot <path>`, `-RepoRoot <path>` (the real tree to compare against).
+- **`remove-jarvis-sandbox.ps1`** — delete the sandbox dir and the throwaway keyring file, then
+ re-run the "real state untouched" check and print confirmation. Parameter: `-SandboxRoot`.
+- **`run-sandbox.ps1`** — generated into the sandbox dir by the provisioner; re-launches an
+ already-provisioned sandbox with the correct env.
+- **`docs/sandbox-testing.md`** — short English guide: the isolation model, the four seams, the
+ three modes, how isolation is proven, teardown, and the runtime-contention notes.
+
+---
+
+## 8. Acceptance Criteria
+
+- `new-jarvis-sandbox.ps1` provisions from a fresh public clone and launches voice + browser UI
+ on the alternate port alongside a running real instance.
+- All four isolation proofs PASS on a real run.
+- After a full provision + launch + teardown cycle, the maintainer's real `jarvis.toml`,
+ `data/`, global `import jarvis`, and `personal-jarvis` Credential Manager entries are byte/
+ state-identical to a baseline captured before provisioning.
+- `Configured` mode reaches a working conversation with a lent key; `Keyless` mode boots to the
+ UI on the Mock-Brain; `ColdStart` reaches the first-run onboarding with no real keys present.
+- Computer-Use is confirmed disabled (the factory logs the
+ "`[computer_use].enabled = false`" disabled path) and no desktop input is emitted.
+
+---
+
+## 9. Risks & Open Questions
+
+- **Shared keyring file (ColdStart).** The `keyrings.alt` plaintext store lives at the per-user
+ `%LOCALAPPDATA%\Python Keyring` location, shared across sandboxes but never the real WinVault
+ namespace. Harmless throwaway; teardown clears it. (Per-sandbox file redirection was
+ considered and rejected as YAGNI.)
+- **Frontend build dependency.** Requires Node on the host. If the published repo intends fresh
+ clones to need `npm run build`, the README should say so; the sandbox test will surface this.
+- **Audio device contention** when both instances run with voice — documented, not engineered.
+- **Open:** should the sandbox tooling ship in the public repo (useful to contributors verifying
+ their own fork) or stay maintainer-local? Default assumption: ship it in `scripts/sandbox/`.
+- **Open:** default `-SandboxRoot` location — a sibling of the repo vs. a fixed path like
+ `C:\JarvisSandbox`. Default assumption: sibling of the repo.
diff --git a/docs/superpowers/specs/2026-06-24-skill-firing-claude-code-parity-design.md b/docs/superpowers/specs/2026-06-24-skill-firing-claude-code-parity-design.md
new file mode 100644
index 0000000000..71d8052deb
--- /dev/null
+++ b/docs/superpowers/specs/2026-06-24-skill-firing-claude-code-parity-design.md
@@ -0,0 +1,100 @@
+---
+title: Skill firing — Claude-Code parity for the router brain
+date: 2026-06-24
+status: accepted
+area: brain / skills
+---
+
+# Skill firing — Claude-Code parity
+
+## Problem
+
+Jarvis rarely invokes installed skills. The skill subsystem is fully wired
+into the live voice/chat path (registry, `## AVAILABLE SKILLS` listing,
+deterministic `TriggerMatcher`, inline injection, `run-skill` tool), and the
+builtin skills already carry rich `when_to_use` fields with concrete trigger
+phrases (17/19 RICH per the 2026-06-24 audit; `memory-save` is intentionally
+deprecated). Despite that, the brain almost never picks `run-skill` on its
+own.
+
+Root cause is a routing *stance*, not missing data:
+
+1. The router system prompt's SKILLS paragraph is one weak block buried under
+ the dominant `BEI UNSICHERHEIT: MACH ES SELBST` directive, which biases the
+ brain toward answering directly instead of calling a tool.
+2. The brain therefore only honors a skill on an exact deterministic regex
+ trigger (`TriggerMatcher`). The model-judged path — "this request is the
+ kind of task skill X is for, even though the phrasing is new" — almost never
+ triggers, because nothing pushes the brain to prefer it.
+
+This is the inverse of Claude Code, where the agent is told *"if there is even
+a 1% chance a skill applies, invoke it."* Claude Code can afford a per-turn
+model judgement because it is a text agent with no sub-second latency budget;
+its skill descriptions (often stuffed with explicit trigger phrases) are the
+whole matching engine.
+
+## Decision
+
+Adopt the Claude-Code mechanism — **description + prompt-judged invocation** —
+without adding any new call or latency. The router already runs every turn and
+already carries the skill listing; we only make that same call act on it.
+
+Three levers, in priority order:
+
+1. **Router prompt stance (primary).** Rewrite and reposition the SKILLS
+ section in `jarvis/brain/router.py::SYSTEM_PROMPT` so a plausibly-matching
+ skill is the brain's *first* move, and add a carve-out so the
+ `MACH ES SELBST` rule no longer reads as "skip the skill". Framing mirrors
+ Claude Code: a skill is the user's saved preference for *how* a recurring
+ task should be done; honoring it is the whole point. When unsure whether a
+ skill applies, prefer calling `run-skill` (a wrong skill is cheap to skip; a
+ missed skill defeats why the user installed it). Bounded by an explicit
+ guard against firing on a plain question that merely mentions a topic, and
+ by the existing AD-S9 (explicit heavy-work verb) and local-action gates,
+ which still stand a skill down.
+
+2. **Renderer framing (reinforcing).** Strengthen the intro/outro in
+ `jarvis/skills/prompt_injection.py::render_available_skills_section` from a
+ passive "when a request matches … call run-skill" to an imperative,
+ skill-first instruction that names these as the user's installed
+ preferences and tells the brain to check the list *before* answering or
+ spawning a worker. Per-entry rendering (description + `when_to_use`, capped)
+ is unchanged.
+
+3. **Descriptions (no-op for now).** The builtin `when_to_use` fields are
+ already rich; no wholesale enrichment. The skill-authoring path should keep
+ producing rich `when_to_use` going forward (verified, not changed here).
+
+The deterministic `TriggerMatcher` fast lane is untouched — it stays the
+zero-latency path for exact triggers. We are strengthening only the
+model-judged fallback that fires when no regex hits.
+
+## Non-goals
+
+- No embedding/vector matcher (explicitly rejected in favor of the pure
+ Claude-Code prompt approach).
+- No new LLM call, no new latency tier, no change to `ROUTER_TOOLS`.
+- No broad "more tool calls in general" change — scope is skills only.
+- No change to the risk-tier, lifecycle, or `run-skill` tool internals.
+
+## Risks & mitigations
+
+- **Over-firing** (invoking a skill for a plain question that merely mentions a
+ topic): mitigated by an explicit prompt carve-out ("the *kind of task* a
+ skill is for, not a topic mention") and by keeping the existing
+ router-discipline regression suite (`tests/unit/brain/test_routing.py`)
+ green.
+- **Language gate**: `router.py` and `jarvis/skills/builtin/*/SKILL.md` are on
+ the CI German allowlist, so bilingual trigger phrasing is permitted.
+
+## Verification
+
+- Renderer unit test: the rendered section is imperative and skill-first and
+ surfaces `when_to_use`.
+- Router-discipline regression (`tests/unit/brain/test_routing.py`) and the
+ skills unit suite stay green — the change must not break the
+ don't-over-spawn discipline or the deterministic match path.
+- A golden-set skill-routing eval (`scripts/skill_routing_eval.py`): a list of
+ paraphrased utterances → expected skill, run against the live router brain to
+ measure how often `run-skill` is now chosen for a non-exact phrasing. This is
+ the "as good as Claude" proof; it needs a configured provider to run.
diff --git a/docs/superpowers/specs/2026-06-28-contextual-readback-design.md b/docs/superpowers/specs/2026-06-28-contextual-readback-design.md
new file mode 100644
index 0000000000..9d055db5f2
--- /dev/null
+++ b/docs/superpowers/specs/2026-06-28-contextual-readback-design.md
@@ -0,0 +1,113 @@
+# Context-aware spoken readbacks — design
+
+**Date:** 2026-06-28
+**Status:** implemented (engine + computer-use surface + mission readbacks)
+**Mandate:** the maintainer's standing requirement that Jarvis must NOT speak fixed
+"stock" phrases out of a lookup table for its status / outcome / acknowledgement
+replies. Those replies should sound like Jarvis reacting to *this* situation.
+
+## Context
+
+The deterministic spoken paths read fixed strings out of de/en/es lookup tables
+(`jarvis/voice/action_phrases.py` + ~13 siblings). The maintainer flagged
+`action_phrases.py` (the computer-use readbacks) as exactly the kind of canned
+phrasing they do not want, and asked for all spoken status sentences to be
+intelligent and context-fitting. The system already had the right machinery for
+this — the Ack-Brain (a bounded, breaker-guarded flash-LLM call with an instant
+deterministic fallback, see `jarvis/brain/ack_brain/`). This design generalizes
+that proven pattern into one reusable readback engine and routes the canned call
+sites through it.
+
+Three hard constraints govern the design (they are *why* the tables were static):
+
+1. **Latency (AP-11 / SLO).** No LLM call may live inside `scrub_for_voice`; the
+ voice path is SLO-gated. Generation is one bounded flash call with a hard
+ per-call timeout and an instant canned fallback; it runs BEFORE scrub, never
+ inside it.
+2. **Honesty (ADR-0009 / AD-OE6).** For success/observation readbacks the LLM may
+ not invent what happened. The composer is handed the deterministic ground
+ truth and told to rephrase only that; an honesty guard rejects fabrication. It
+ never raises and never returns empty — on any miss it returns the canned line.
+3. **Language.** The turn's resolved language (de/en/es) is passed in; a de/en
+ mismatch is rejected to canned, and the canned fallback covers all three.
+
+## The engine — `jarvis/voice/contextual_readback.py`
+
+`ReadbackComposer` mirrors `SpawnAnnouncementComposer` (brain candidate → flash
+compose → validate → deterministic fallback, one failover level, never-raise).
+Single entry point used by every call site:
+
+```
+render_readback(composer, *, instruction, language, canned,
+ facts=None, in_progress=False, honesty_bound=False,
+ latency_budget_ms=None) -> str
+```
+
+- `composer is None` (feature unwired/disabled) → returns `canned()` verbatim, so
+ wiring it in is risk-free / zero behavior change.
+- `instruction`: one-line English description of the situation (call-site owned).
+- `facts`: deterministic ground truth the model may rephrase — the ONLY thing it
+ may use. Rendered into the persona prompt as a FACTS block.
+- `in_progress=True` rejects a completion claim (the dispatch ack, work not started).
+- `honesty_bound=True` adds a content-word overlap guard (≥60% of the output's
+ ≥4-char words must trace to the facts) for ADR-0009 success/observation readbacks.
+- `latency_budget_ms`: tight on the turn-critical path (dispatch ack ~900ms),
+ generous off it (background outcome/mission readbacks ~2000–2500ms).
+
+Validation chain (any miss → canned): forbidden internal/diagnostic vocab
+(exit codes, "subprocess", "provider", "API", …), sentence trim, completion-claim
+(when in_progress), de/en language match, **digit-fabrication guard** (any number
+not in the facts is rejected — the most dangerous hallucination), the overlap
+guard (when honesty_bound), no-verbatim-repeat, then `scrub_for_voice` (regex
+safety net) + ≥3 alnum. The persona is an English meta-prompt instructing the
+model to answer in the user's language, so de/en/es all generate natively (it is
+a NEW prompt, not the locked 2026-05-11 flash-brain persona).
+
+Wiring: `jarvis/brain/factory.build_readback_composer()` builds it from the
+ack-brain provider stack (own provider + breaker + separate-provider failover),
+fallback-only when `[ack_brain]` is off.
+
+## What became context-aware
+
+- **Computer-use (the pasted table):** outcome readbacks (success/failure/
+ exit-code/timeout/crash), the dispatch ack, budget guards, tool-failed,
+ leak-recovery — all in `BrainManager` (`_run_local_action_fast_path`,
+ `_run_computer_use_background`). Success is honesty_bound (rephrases the
+ verifier's forwarded observation faithfully).
+- **Mission readbacks (constantly heard):** approved / failed / timeout /
+ cancelled / budget / killed / iteration — routed in BOTH the production path
+ (`MissionAnnouncer`) and the fallback path (`MissionVoiceListener`). Approved is
+ honesty_bound (rephrases the Kontrollierer-signed `summary_de/en`); see the
+ ADR-0009 amendment 2026-06-28.
+
+## Deliberately left canned (documented exceptions)
+
+- **Engine-down / in-scrub (Tier-3, by design):** provider-down, brain-unavailable,
+ brain-timeout, STT-unavailable, and `output_filter.FALLBACK_PHRASES`. You cannot
+ ask a dead/timed-out brain to phrase its own outage, and the in-scrub fallback is
+ forbidden an LLM call (AP-11).
+- **`config_readback`** (voice config-change confirmation): honesty-critical
+ ("don't confirm something that wasn't done"), already names the concrete setting
+ + value (barely a "stock phrase"), and sits on the turn-critical tool loop. Kept
+ deterministic; revisit if desired (threading a composer through the dispatcher).
+- **`open_app` DIRECT ack** ("Gestartet: Chrome"): the deliberately fastest path
+ (no-LLM by design) that already names the concrete app. Kept fast.
+- **Harness-internal pause prompts** (`cu_awaiting_elevation`/`cu_awaiting_human`):
+ produced inside the harness subprocess (cannot reach the in-process composer),
+ and clarity beats variety when asking the user to confirm a security prompt.
+
+## Verification
+
+- `tests/unit/voice/test_contextual_readback.py` (16): fallback-only, generated-used,
+ es generation, timeout/error/empty/wrong-language → canned, fabricated-number
+ rejected, number-from-facts allowed, honesty overlap reject/accept, in-progress
+ completion-claim rejected, forbidden vocab rejected, never-raises-when-canned-raises.
+- `tests/missions/test_voice_announcer.py` (+2): approved readback is contextually
+ rephrased yet faithful; falls back to the exact signed summary when generation fails.
+- Regression: full `tests/unit/voice` + `tests/missions` green except pre-existing
+ unrelated failures (grok worker-routing, google-calendar usage-card — parallel
+ in-flight work). Lint clean on all new/owned files.
+- Manual: a computer-use turn ("open the browser and check my tabs") and a failing
+ one — the spoken readback fits the situation, in the turn's language; pulling the
+ flash provider falls back cleanly to the canned line. Restart via
+ `POST /api/settings/restart-app` to load.
diff --git a/docs/supply-chain/red-team-log.md b/docs/supply-chain/red-team-log.md
index d188bfd51b..0809e3876f 100644
--- a/docs/supply-chain/red-team-log.md
+++ b/docs/supply-chain/red-team-log.md
@@ -32,7 +32,7 @@ the bytes of `install.sh` while leaving the released `.sig` / `.pem` /
are attached to the GitHub Release.
2. Attacker prepares a tampered copy with a single trailing comment:
```
- curl -fsSL https://github.com/personal-jarvis/personal-jarvis/releases/download/v0.2.0-supplychain-wave1/install.sh > /tmp/install-tampered.sh
+ curl -fsSL https://github.com/PersonalJarvis/PersonalJarvis/releases/download/v0.2.0-supplychain-wave1/install.sh > /tmp/install-tampered.sh
echo "# attacker payload" >> /tmp/install-tampered.sh
sha256sum /tmp/install-tampered.sh # different from the signed hash
```
@@ -53,7 +53,7 @@ emulate this inside the staging directory the verifier creates:
docker run --rm -v "$PWD:/work" ubuntu:24.04 bash -c '
apt-get update -qq && apt-get install -y -qq curl ca-certificates python3 >/dev/null
TAG=v0.2.0-supplychain-wave1
- REL=https://github.com/personal-jarvis/personal-jarvis/releases/download/$TAG
+ REL=https://github.com/PersonalJarvis/PersonalJarvis/releases/download/$TAG
# 1. Download the verifier from the real release.
curl -fsSL "$REL/install-verify.sh" -o /tmp/install-verify.sh
@@ -83,7 +83,7 @@ docker run --rm -v "$PWD:/work" ubuntu:24.04 bash -c '
--certificate /tmp/install.sh.pem \
--signature /tmp/install.sh.sig \
--bundle /tmp/install.sh.bundle \
- --certificate-identity-regexp "^https://github.com/personal-jarvis/personal-jarvis/.github/workflows/sign-installer.yml@refs/tags/v[0-9]+\\.[0-9]+\\.[0-9]+(-[A-Za-z0-9._-]+)?$" \
+ --certificate-identity-regexp "^https://github.com/PersonalJarvis/PersonalJarvis/.github/workflows/sign-installer.yml@refs/tags/v[0-9]+\\.[0-9]+\\.[0-9]+(-[A-Za-z0-9._-]+)?$" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
/tmp/install.sh # ← the TAMPERED file
'
@@ -144,7 +144,7 @@ Same image, same network, the **non-tampered** path:
```
$ docker run --rm ubuntu:24.04 bash -c "apt-get update -qq && \
apt-get install -y -qq git curl ca-certificates python3 >/dev/null 2>&1 && \
- curl -fsSL https://github.com/personal-jarvis/personal-jarvis/releases/download/v0.2.0-supplychain-wave1/install-verify.sh | \
+ curl -fsSL https://github.com/PersonalJarvis/PersonalJarvis/releases/download/v0.2.0-supplychain-wave1/install-verify.sh | \
bash -s -- --dry-run --no-wizard --no-launch"
Verifying installer (Sigstore keyless, Wave 1)
@@ -164,7 +164,7 @@ $ docker run --rm ubuntu:24.04 bash -c "apt-get update -qq && \
[4/6] Verifying signature against this repo's GitHub Actions OIDC identity...
Verified OK
- signature OK (identity=personal-jarvis/personal-jarvis / .github/workflows/sign-installer.yml,
+ signature OK (identity=PersonalJarvis/PersonalJarvis / .github/workflows/sign-installer.yml,
issuer=https://token.actions.githubusercontent.com)
[5/6] Checking Rekor inclusion proof freshness (≤ 86400s)...
@@ -210,7 +210,7 @@ curl -fsSL https://github.com/sigstore/cosign/releases/download/v2.4.1/cosign-li
/tmp/cosign verify-blob \
--certificate /tmp/wrong.pem \
--signature /tmp/wrong.sig \
- --certificate-identity-regexp "^https://github.com/personal-jarvis/personal-jarvis/.github/workflows/sign-installer.yml@refs/tags/v.*$" \
+ --certificate-identity-regexp "^https://github.com/PersonalJarvis/PersonalJarvis/.github/workflows/sign-installer.yml@refs/tags/v.*$" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
/tmp/install.sh
```
@@ -220,7 +220,7 @@ curl -fsSL https://github.com/sigstore/cosign/releases/download/v2.4.1/cosign-li
`cosign verify-blob` rejects because (a) the signature does not match
the payload bytes and (b) the cert's identity SAN is
`https://github.com/sigstore/cosign/...`, which does not match the
-`personal-jarvis/personal-jarvis` regex.
+`PersonalJarvis/PersonalJarvis` regex.
### Result
@@ -258,7 +258,7 @@ TAG=v0.2.0-supplychain-wave1
docker run --rm ubuntu:24.04 bash -c "
set -e
apt-get update -qq && apt-get install -y -qq curl ca-certificates python3 >/dev/null 2>&1
- REL=https://github.com/personal-jarvis/personal-jarvis/releases/download/$TAG
+ REL=https://github.com/PersonalJarvis/PersonalJarvis/releases/download/$TAG
curl -fsSL \$REL/install.sh -o /tmp/install.sh
curl -fsSL \$REL/install.sh.sig -o /tmp/install.sh.sig
curl -fsSL \$REL/install.sh.pem -o /tmp/install.sh.pem
@@ -272,7 +272,7 @@ docker run --rm ubuntu:24.04 bash -c "
--certificate /tmp/install.sh.pem \\
--signature /tmp/install.sh.sig \\
--bundle /tmp/install.sh.bundle \\
- --certificate-identity-regexp '^https://github.com/personal-jarvis/personal-jarvis/.github/workflows/sign-installer.yml@refs/tags/v[0-9]+\\.[0-9]+\\.[0-9]+(-[A-Za-z0-9._-]+)?\$' \\
+ --certificate-identity-regexp '^https://github.com/PersonalJarvis/PersonalJarvis/.github/workflows/sign-installer.yml@refs/tags/v[0-9]+\\.[0-9]+\\.[0-9]+(-[A-Za-z0-9._-]+)?\$' \\
--certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \\
/tmp/install.sh
@@ -283,7 +283,7 @@ docker run --rm ubuntu:24.04 bash -c "
--certificate /tmp/install.sh.pem \\
--signature /tmp/install.sh.sig \\
--bundle /tmp/install.sh.bundle \\
- --certificate-identity-regexp '^https://github.com/personal-jarvis/personal-jarvis/.github/workflows/sign-installer.yml@refs/tags/v[0-9]+\\.[0-9]+\\.[0-9]+(-[A-Za-z0-9._-]+)?\$' \\
+ --certificate-identity-regexp '^https://github.com/PersonalJarvis/PersonalJarvis/.github/workflows/sign-installer.yml@refs/tags/v[0-9]+\\.[0-9]+\\.[0-9]+(-[A-Za-z0-9._-]+)?\$' \\
--certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \\
/tmp/install.sh || echo '↑ cosign rejected the tampered file (FAIL-CLOSED, as designed)'
"
@@ -323,7 +323,7 @@ docker run --rm ubuntu:24.04 bash -c "
set -e
apt-get update -qq && apt-get install -y -qq curl ca-certificates openssl python3 >/dev/null 2>&1
TAG=v0.3.0-supplychain-wave2
-REL=https://github.com/personal-jarvis/personal-jarvis/releases/download/\$TAG
+REL=https://github.com/PersonalJarvis/PersonalJarvis/releases/download/\$TAG
cd /tmp && mkdir mirror && cd mirror
# Note: install.sh.cosign.sig is NOT downloaded (the attacker drop)
for f in install.sh install.sh.sig install.sh.pem install.sh.bundle offline-ceremony.pub install-verify.sh; do
@@ -344,7 +344,7 @@ echo R_WAVE2_A_EXIT=\$?
curl: (37) Couldn't open file /tmp/mirror/install.sh.cosign.sig
failed to fetch file:///tmp/mirror/install.sh.cosign.sig
is the tag 'v0.3.0-supplychain-wave2' actually a Wave-2 signed release? See:
- https://github.com/personal-jarvis/personal-jarvis/releases/tag/v0.3.0-supplychain-wave2
+ https://github.com/PersonalJarvis/PersonalJarvis/releases/tag/v0.3.0-supplychain-wave2
R_WAVE2_A_EXIT=1
```
@@ -389,7 +389,7 @@ docker run --rm ubuntu:24.04 bash -c "
set -e
apt-get update -qq && apt-get install -y -qq curl ca-certificates openssl python3 >/dev/null 2>&1
TAG=v0.3.0-supplychain-wave2
-REL=https://github.com/personal-jarvis/personal-jarvis/releases/download/\$TAG
+REL=https://github.com/PersonalJarvis/PersonalJarvis/releases/download/\$TAG
cd /tmp && mkdir mirror && cd mirror
for f in install.sh install.sh.sig install.sh.pem install.sh.bundle install.sh.cosign.sig offline-ceremony.pub install-verify.sh; do
curl -fsSLo \"\$f\" \"\$REL/\$f\"
@@ -420,7 +420,7 @@ Sample attacker fingerprint generated on 2026-05-27 run:
[4/8] Verifying Fulcio keyless signature (axis A — GitHub Actions OIDC)...
Verified OK
- axis A OK (identity=personal-jarvis/personal-jarvis / .github/workflows/sign-installer.yml, issuer=https://token.actions.githubusercontent.com)
+ axis A OK (identity=PersonalJarvis/PersonalJarvis / .github/workflows/sign-installer.yml, issuer=https://token.actions.githubusercontent.com)
[5/8] Verifying offline-ceremony signature (axis B — Ed25519, air-gapped)...
WARNING: Skipping tlog verification is an insecure practice that lacks of transparency and auditability verification for the blob.
@@ -461,7 +461,7 @@ key (Wave 2).
Verifier stage [9/11] downloads the provenance and runs
`slsa-verifier verify-artifact --provenance-path ... --source-uri
-github.com/personal-jarvis/personal-jarvis --source-tag $TAG`.
+github.com/PersonalJarvis/PersonalJarvis --source-tag $TAG`.
Three attacker scenarios were exercised against the live
`v0.4.0-supplychain-wave3` release on 2026-05-27. All three reject
@@ -586,7 +586,7 @@ Command:
docker run --rm -e JARVIS_INSTALL_TAG=v0.4.0-supplychain-wave3 \
ubuntu:24.04 bash -c 'apt-get update -qq && \
apt-get install -y -qq git curl ca-certificates openssl jq build-essential python3 >/dev/null && \
- curl -fsSL https://github.com/personal-jarvis/personal-jarvis/releases/download/v0.5.0-supplychain-wave4/install-verify.sh | \
+ curl -fsSL https://github.com/PersonalJarvis/PersonalJarvis/releases/download/v0.5.0-supplychain-wave4/install-verify.sh | \
bash -s -- --dry-run --no-wizard --no-launch'
**Result:** stages [0/13]..[11/13] PASS (classical axes A+B+C still
diff --git a/docs/supply-chain/threat-model.md b/docs/supply-chain/threat-model.md
index e0ecfbb0dc..8a080f0312 100644
--- a/docs/supply-chain/threat-model.md
+++ b/docs/supply-chain/threat-model.md
@@ -1,11 +1,11 @@
-# Threat Model — `personal-jarvis/personal-jarvis` Quick-Install One-Liner
+# Threat Model — `PersonalJarvis/PersonalJarvis` Quick-Install One-Liner
> Status: **Wave 1 of 4** (Sigstore keyless + Rekor freshness + pinned cosign +
> pinned action SHAs). Waves 2-4 are scoped at the bottom of this document but
> intentionally **not** delivered yet — promising more than is shipped is itself
> a supply-chain anti-pattern.
>
-> Last reviewed: 2026-05-26 against the `personal-jarvis/personal-jarvis` repo
+> Last reviewed: 2026-05-26 against the `PersonalJarvis/PersonalJarvis` repo
> at `main` HEAD `e7cdefeca7e44ddf18ebd17a1e646d4471cf7a1e` (Wave 1 baseline).
---
@@ -15,7 +15,7 @@
The artifact under threat is the **one-liner installation flow**:
```bash
-curl -fsSL https://raw.githubusercontent.com/personal-jarvis/personal-jarvis/main/install/install.sh | bash
+curl -fsSL https://raw.githubusercontent.com/PersonalJarvis/PersonalJarvis/main/install/install.sh | bash
```
and its PowerShell sibling. This document enumerates every trust root a fresh
@@ -25,7 +25,7 @@ what Wave 1 changes (and what it does not).
The post-install runtime threat model — Brain provider API keys, Computer-Use
risk-tier policy, Mission-Manager worker isolation — is out of scope here.
-That work lives in `docs/openclaw-bridge.md`, `jarvis/safety/risk_tier.py`,
+That work lives in `docs/jarvis-agents-bridge.md`, `jarvis/safety/risk_tier.py`,
and the Phase-6 isolation invariants in `CLAUDE.md`.
---
@@ -80,7 +80,7 @@ Each scenario follows: **pre-condition → action → blast radius → pre-Wave-
- **Residual gap.** **Single-maintainer signing remains a single point of failure.** Wave 2: threshold signing (2-of-N maintainer keys, with one offline witness key held off-network). Wave 3: rebuilder farm + reproducible builds so an external party can independently verify that the signed bytes match the source commit. This is exactly what Debian's reproducible-builds project, GUAC, and in-toto are designed for.
### Scenario D — Dependency confusion against `personal-jarvis` itself (T8)
-- **Pre-condition.** `install/installer.py` runs `pip install -e ".[desktop]"` against PyPI with no index pinning. An attacker registers `personal-jarvis` on PyPI (the GitHub repo is `personal-jarvis/personal-jarvis` — the *PyPI* slot is currently unclaimed, an active dependency-confusion vector). The legitimate package is currently installed from the local clone — so PyPI's package would only matter for someone running `pip install personal-jarvis` manually, but **`pip install -e .` resolves transitive dependencies from PyPI** and any of those slots being claimed is a vector.
+- **Pre-condition.** `install/installer.py` runs `pip install -e ".[desktop]"` against PyPI with no index pinning. An attacker registers `personal-jarvis` on PyPI (the GitHub repo is `PersonalJarvis/PersonalJarvis` — the *PyPI* slot is currently unclaimed, an active dependency-confusion vector). The legitimate package is currently installed from the local clone — so PyPI's package would only matter for someone running `pip install personal-jarvis` manually, but **`pip install -e .` resolves transitive dependencies from PyPI** and any of those slots being claimed is a vector.
- **Action.** A typosquatted `personnal-jarvis` package or a confusion-attack against a not-pinned dep (e.g. an internal package name leaking into pyproject.toml) ships malware on first `pip install`.
- **Blast radius.** Full Python interpreter access, persistent via `pyproject.toml` entry-points.
- **Pre-Wave-1 mitigation.** None.
@@ -247,7 +247,7 @@ treated as code, not as marketing.
Wave 1's verifier accepts a signature iff `cosign verify-blob` succeeds
against a single OIDC identity (the `sign-installer.yml` workflow on
-`personal-jarvis/personal-jarvis`). That is **one trust axis.** If an
+`PersonalJarvis/PersonalJarvis`). That is **one trust axis.** If an
attacker compromises the maintainer's GitHub account, or pushes a
poisoned `sign-installer.yml` that survives review, or successfully runs
a `tj-actions/changed-files`-class Action-pinning attack on this repo,
diff --git a/docs/supply-chain/wave2-community-tests.md b/docs/supply-chain/wave2-community-tests.md
index b9ba2a7ee9..d1d5222d6c 100644
--- a/docs/supply-chain/wave2-community-tests.md
+++ b/docs/supply-chain/wave2-community-tests.md
@@ -8,7 +8,7 @@ real numbers, including failures, rather than hand-wave compliance.
**Run date:** 2026-05-27
**Tag exercised:** `v0.3.0-supplychain-wave2`
-**Repo:** `github.com/personal-jarvis/personal-jarvis`
+**Repo:** `github.com/PersonalJarvis/PersonalJarvis`
**Operator:** SA-5 integrator, Wave 2 integration
---
@@ -32,7 +32,7 @@ docker run --rm ubuntu:24.04 bash -c '
set -e
apt-get update -qq && apt-get install -y -qq git curl python3 python3-pip python3-venv ca-certificates >/dev/null
TAG=v0.3.0-supplychain-wave2
-REL=https://github.com/personal-jarvis/personal-jarvis/releases/download/$TAG
+REL=https://github.com/PersonalJarvis/PersonalJarvis/releases/download/$TAG
mkdir /tmp/c && cd /tmp/c
python3 -m venv venv && . venv/bin/activate
pip install --quiet sigstore
@@ -40,7 +40,7 @@ curl -fsSLo install.sh "$REL/install.sh"
curl -fsSLo install.sh.bundle "$REL/install.sh.bundle"
sigstore verify identity \
--bundle install.sh.bundle \
- --cert-identity "https://github.com/personal-jarvis/personal-jarvis/.github/workflows/sign-installer.yml@refs/tags/v0.3.0-supplychain-wave2" \
+ --cert-identity "https://github.com/PersonalJarvis/PersonalJarvis/.github/workflows/sign-installer.yml@refs/tags/v0.3.0-supplychain-wave2" \
--cert-oidc-issuer https://token.actions.githubusercontent.com \
install.sh
'
@@ -105,7 +105,7 @@ python3 -m venv /tmp/v && . /tmp/v/bin/activate
pip install --quiet "tuf>=5,<6"
mkdir /tmp/tuf-repo /tmp/tuf-local && cd /tmp/tuf-repo
for f in 1.root.json 1.snapshot.json 1.targets.json 1.timestamp.json; do
- curl -fsSLo "$f" "https://raw.githubusercontent.com/personal-jarvis/personal-jarvis/main/install/tuf/$f"
+ curl -fsSLo "$f" "https://raw.githubusercontent.com/PersonalJarvis/PersonalJarvis/main/install/tuf/$f"
done
cp 1.root.json root.json
( cd /tmp/tuf-repo && python3 -m http.server 8765 >/tmp/tuf-server.log 2>&1 ) &
@@ -185,7 +185,7 @@ SAST, vulnerabilities, …) on a 0–10 scale and aggregates them.
docker run --rm \
-e GITHUB_AUTH_TOKEN=$(gh auth token) \
gcr.io/openssf/scorecard:stable \
- --repo=github.com/personal-jarvis/personal-jarvis
+ --repo=github.com/PersonalJarvis/PersonalJarvis
```
### Result — **3.0 / 10 aggregate** (real number; do not hide)
diff --git a/docs/supply-chain/wave2-key-ceremony.md b/docs/supply-chain/wave2-key-ceremony.md
index 38c3505178..7a90b136bc 100644
--- a/docs/supply-chain/wave2-key-ceremony.md
+++ b/docs/supply-chain/wave2-key-ceremony.md
@@ -2,7 +2,7 @@
> Status: **foundation (Wave-2-SA-1).** The keypair + TUF root metadata are
> generated and committed. Workflow + verifier integration is built by
-> follow-up sub-agents (Wave-2-SA-2 through SA-5).
+> follow-up Jarvis-Agents (Wave-2-SA-2 through SA-5).
>
> Companion documents:
> - `install/TRUST_ROOT.md` §3 — the user-facing trust-root explanation,
@@ -20,7 +20,7 @@ GitHub Actions OIDC. The verifier accepts a signature iff a cosign
- OIDC issuer = `https://token.actions.githubusercontent.com`
- Certificate identity regex pinned to
- `^https://github\.com/personal-jarvis/personal-jarvis/\.github/workflows/sign-installer\.yml@refs/tags/v[0-9].*$`
+ `^https://github\.com/PersonalJarvis/PersonalJarvis/\.github/workflows/sign-installer\.yml@refs/tags/v[0-9].*$`
That is **one trust axis**: an attacker who controls the GitHub repo (or
the maintainer's account) can run the signing workflow and produce a
@@ -51,7 +51,7 @@ independent organisations / two independent custody chains."
## 2. What was generated, exactly
Every command below was executed inside the worktree
-`C:\Users\Administrator\Desktop\quick-install-wt` on 2026-05-26 against the
+`<USER_HOME>\Desktop\quick-install-wt` on 2026-05-26 against the
branch `feat/wave2-foundation`.
### 2.1 Tooling versions
@@ -175,7 +175,7 @@ detached Ed25519 signature using stock `cryptography` or `nacl`.
## 3. The verifier contract (built by Wave-2-SA-2)
-This document specifies the contract the follow-up sub-agents must
+This document specifies the contract the follow-up Jarvis-Agents must
implement. Reproduced here so the foundation is self-contained.
For each released artefact `<asset>`, the Wave 2 install-verify script
@@ -237,10 +237,10 @@ Ideally:
```bash
gh secret set WAVE2_CEREMONY_PASSPHRASE \
- --repo personal-jarvis/personal-jarvis \
+ --repo PersonalJarvis/PersonalJarvis \
--body "<new passphrase from openssl rand -base64 18>"
# Verify:
-gh secret list --repo personal-jarvis/personal-jarvis
+gh secret list --repo PersonalJarvis/PersonalJarvis
# WAVE2_CEREMONY_PASSPHRASE Updated 2026-MM-DD HH:MM:SS
```
@@ -344,7 +344,7 @@ FULCIO_INTERMEDIATE_V1_PEM = (
)
OFFLINE_PUB_HEX = "c90e099a2b2ef76fdff763acf034662306f037fae33ae2ec45361368798d9cdd"
FULCIO_IDENTITY_REGEX = (
- r"^https://github\.com/personal-jarvis/personal-jarvis/"
+ r"^https://github\.com/PersonalJarvis/PersonalJarvis/"
r"\.github/workflows/sign-installer\.yml@refs/tags/v[0-9].*$"
)
@@ -423,7 +423,7 @@ own offline ceremony.
This document, the keypair, and the TUF root together satisfy these
checks (all run inside this branch's HEAD before commit — the next
-sub-agent should re-run them as sanity checks):
+Jarvis-Agent should re-run them as sanity checks):
```bash
# 1. Public key committed as a blob
diff --git a/docs/supply-chain/wave3-community-tests.md b/docs/supply-chain/wave3-community-tests.md
index b9a17ba5bd..674cd9bd24 100644
--- a/docs/supply-chain/wave3-community-tests.md
+++ b/docs/supply-chain/wave3-community-tests.md
@@ -10,7 +10,7 @@ gaps.
**Run date:** 2026-05-27
**Tag exercised:** `v0.4.0-supplychain-wave3`
**Commit:** `73bb7b50fb56ec5354fdb48a53cccb5a9018791e`
-**Repo:** `github.com/personal-jarvis/personal-jarvis`
+**Repo:** `github.com/PersonalJarvis/PersonalJarvis`
**Operator:** SA-5 integrator, Wave 3 integration
---
@@ -35,7 +35,7 @@ docker run --rm ubuntu:24.04 bash -c '
-o /usr/local/bin/slsa-verifier
chmod +x /usr/local/bin/slsa-verifier
TAG=v0.4.0-supplychain-wave3
- REL=https://github.com/personal-jarvis/personal-jarvis/releases/download/$TAG
+ REL=https://github.com/PersonalJarvis/PersonalJarvis/releases/download/$TAG
mkdir /tmp/v && cd /tmp/v
for a in install.sh install.ps1 installer.py install-verify.sh install-verify.ps1 \
personal-jarvis.intoto.jsonl ; do
@@ -43,7 +43,7 @@ docker run --rm ubuntu:24.04 bash -c '
done
slsa-verifier verify-artifact \
--provenance-path ./personal-jarvis.intoto.jsonl \
- --source-uri github.com/personal-jarvis/personal-jarvis \
+ --source-uri github.com/PersonalJarvis/PersonalJarvis \
--source-tag v0.4.0-supplychain-wave3 \
install.sh install.ps1 installer.py install-verify.sh install-verify.ps1
'
@@ -134,7 +134,7 @@ provenance. Wave 2 had signatures only; Wave 3 adds provenance.
```bash
docker run --rm -e GITHUB_AUTH_TOKEN="$GITHUB_TOKEN" gcr.io/openssf/scorecard:stable \
- --repo=github.com/personal-jarvis/personal-jarvis \
+ --repo=github.com/PersonalJarvis/PersonalJarvis \
--checks=Signed-Releases \
--show-details
```
@@ -150,17 +150,17 @@ Aggregate score: 8.0 / 10
| | | artifacts. |
| ...
Info: signed release artifact: install-verify.ps1.cosign.sig:
- https://github.com/personal-jarvis/personal-jarvis/releases/tag/v0.4.0-supplychain-wave3
+ https://github.com/PersonalJarvis/PersonalJarvis/releases/tag/v0.4.0-supplychain-wave3
Info: signed release artifact: install-verify.ps1.cosign.sig:
- https://github.com/personal-jarvis/personal-jarvis/releases/tag/v0.3.0-supplychain-wave2
+ https://github.com/PersonalJarvis/PersonalJarvis/releases/tag/v0.3.0-supplychain-wave2
Info: signed release artifact: install-verify.ps1.sig:
- https://github.com/personal-jarvis/personal-jarvis/releases/tag/v0.2.0-supplychain-wave1
+ https://github.com/PersonalJarvis/PersonalJarvis/releases/tag/v0.2.0-supplychain-wave1
Info: provenance for release artifact: personal-jarvis.intoto.jsonl:
- https://github.com/personal-jarvis/personal-jarvis/releases/tag/v0.4.0-supplychain-wave3
+ https://github.com/PersonalJarvis/PersonalJarvis/releases/tag/v0.4.0-supplychain-wave3
Warn: release artifact v0.3.0-supplychain-wave2 does not have provenance:
- https://api.github.com/repos/personal-jarvis/personal-jarvis/releases/329969659
+ https://api.github.com/repos/PersonalJarvis/PersonalJarvis/releases/329969659
Warn: release artifact v0.2.0-supplychain-wave1 does not have provenance:
- https://api.github.com/repos/personal-jarvis/personal-jarvis/releases/329675930
+ https://api.github.com/repos/PersonalJarvis/PersonalJarvis/releases/329675930
```
### Interpretation
@@ -200,7 +200,7 @@ hands off to install.sh if all 3 axes pass.
docker run --rm ubuntu:24.04 bash -c '
apt-get update -qq && apt-get install -y -qq \
git curl ca-certificates openssl jq python3 >/dev/null
- curl -fsSL https://github.com/personal-jarvis/personal-jarvis/releases/download/v0.4.0-supplychain-wave3/install-verify.sh \
+ curl -fsSL https://github.com/PersonalJarvis/PersonalJarvis/releases/download/v0.4.0-supplychain-wave3/install-verify.sh \
-o /tmp/iv.sh
bash /tmp/iv.sh --dry-run --no-wizard --no-launch
'
@@ -220,7 +220,7 @@ docker run --rm ubuntu:24.04 bash -c '
offline-ceremony pubkey fingerprint OK (40cdb1b9e255e797909fba4fb5983450ccf7fa26ec17c80f473fe360da5549ee)
[4/11] Verifying Fulcio keyless signature (axis A - GitHub Actions OIDC)...
Verified OK
- axis A OK (identity=personal-jarvis/personal-jarvis / .github/workflows/sign-installer.yml, issuer=https://token.actions.githubusercontent.com)
+ axis A OK (identity=PersonalJarvis/PersonalJarvis / .github/workflows/sign-installer.yml, issuer=https://token.actions.githubusercontent.com)
[5/11] Verifying offline-ceremony signature (axis B - Ed25519, air-gapped)...
Verified OK
axis B OK (Ed25519, key fingerprint=40cdb1b9e255e797909fba4fb5983450ccf7fa26ec17c80f473fe360da5549ee)
@@ -236,10 +236,10 @@ Verified OK
Verified build using builder "https://github.com/slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@refs/tags/v2.1.0" at commit 73bb7b50fb56ec5354fdb48a53cccb5a9018791e
Verifying artifact /tmp/jarvis-install-verify.U5WMKt71/install.sh: PASSED
PASSED: SLSA verification passed
- axis C OK (SLSA L3: source=github.com/personal-jarvis/personal-jarvis, tag=v0.4.0-supplychain-wave3)
+ axis C OK (SLSA L3: source=github.com/PersonalJarvis/PersonalJarvis, tag=v0.4.0-supplychain-wave3)
[10/11] Verifying in-toto layout functionary pin (axis C - supply-chain layout match)...
axis C OK (in-toto layout: OK keyid=github-actions-sign-installer-yml-tag-push)
- identity_regexp pin: ^https://github\.com/personal-jarvis/personal-jarvis/\.github/workflows/sign-installer\.yml@refs/tags/v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9._-]+)?$
+ identity_regexp pin: ^https://github\.com/PersonalJarvis/PersonalJarvis/\.github/workflows/sign-installer\.yml@refs/tags/v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9._-]+)?$
[11/11] All checks passed (3-of-3 axes). Handing off to install.sh...
```
diff --git a/docs/supply-chain/wave3-reproducibility-protocol.md b/docs/supply-chain/wave3-reproducibility-protocol.md
index 431552b26e..22feb52520 100644
--- a/docs/supply-chain/wave3-reproducibility-protocol.md
+++ b/docs/supply-chain/wave3-reproducibility-protocol.md
@@ -13,11 +13,11 @@
> Status: **Foundation step.** This document defines the bar. The
> scaffolding (`slsa-provenance.yml.tmpl`, `cross-runner-hash.yml.tmpl`,
> `install/in-toto/layout.template.json`) is checked in and ready for
-> follow-up sub-agents SA-2 / SA-3 / SA-4 / SA-5 to wire into
+> follow-up Jarvis-Agents SA-2 / SA-3 / SA-4 / SA-5 to wire into
> `.github/workflows/sign-installer.yml`. No production workflow runs
> Wave 3 logic yet.
>
-> Last reviewed: 2026-05-27 against `personal-jarvis/personal-jarvis`
+> Last reviewed: 2026-05-27 against `PersonalJarvis/PersonalJarvis`
> `main` HEAD `8d68b31` (Wave 2 baseline). Companion documents:
> `docs/supply-chain/threat-model.md` §8, `install/in-toto/layout.template.json`,
> `.github/workflows/cross-runner-hash.yml.tmpl`,
@@ -330,7 +330,7 @@ USER → TLS → release URL → fetch artifact, .sig, .pem, .bundle,
↓
(3) slsa-verifier verify-artifact
--provenance-path <artifact>.intoto.jsonl
- --source-uri github.com/personal-jarvis/personal-jarvis
+ --source-uri github.com/PersonalJarvis/PersonalJarvis
--source-tag <release-tag>
↓
(4) in-toto layout verification
diff --git a/docs/supply-chain/wave4-distribution.md b/docs/supply-chain/wave4-distribution.md
index d9b5495ff9..b99b0479a3 100644
--- a/docs/supply-chain/wave4-distribution.md
+++ b/docs/supply-chain/wave4-distribution.md
@@ -10,7 +10,7 @@
> security record; the **package-manager delivery mechanism** it recommends is
> no longer the plan.
-**Status:** Foundation complete (SA-1). Integration into the CI/CD workflow + verifier + signing pipeline is the work of SA-W4-2..SA-W4-5 follow-up sub-agents.
+**Status:** Foundation complete (SA-1). Integration into the CI/CD workflow + verifier + signing pipeline is the work of SA-W4-2..SA-W4-5 follow-up Jarvis-Agents.
**Branch:** `feat/wave4-foundation`.
@@ -21,7 +21,7 @@
Wave 1 (cosign keyless), Wave 2 (offline Ed25519), and Wave 3 (SLSA L3 + in-toto) hardened **what** the installer signs and **how** signatures are verified. But all three waves still depend on the user running:
```bash
-curl -fsSL https://github.com/personal-jarvis/personal-jarvis/releases/download/<TAG>/install-verify.sh | bash
+curl -fsSL https://github.com/PersonalJarvis/PersonalJarvis/releases/download/<TAG>/install-verify.sh | bash
```
or the equivalent `irm | iex` on Windows. That bootstrap line trusts:
@@ -51,10 +51,10 @@ The two channels root the trust in **different ecosystems** — Homebrew's tap-s
```bash
# macOS / Linux
-curl -fsSL https://github.com/personal-jarvis/personal-jarvis/releases/download/<TAG>/install-verify.sh | bash
+curl -fsSL https://github.com/PersonalJarvis/PersonalJarvis/releases/download/<TAG>/install-verify.sh | bash
# Windows
-irm https://github.com/personal-jarvis/personal-jarvis/releases/download/<TAG>/install-verify.ps1 | iex
+irm https://github.com/PersonalJarvis/PersonalJarvis/releases/download/<TAG>/install-verify.ps1 | iex
```
These remain supported. The 12-stage verifier (Wave 1+2+3) still runs. They are now the **fallback path** for users on platforms without Homebrew or Scoop.
@@ -117,7 +117,7 @@ Scenarios S-1..S-3 are the Wave 1-3 axes; Wave 4 leaves them as-is (the 12-stage
- It does **not** add an "axis D (post-quantum)" verification stage to `install-verify.sh` / `install-verify.ps1`.
- It does **not** rotate the existing Ed25519 ceremony key.
-**What Wave 4.1 (follow-up sub-agents) MUST do:**
+**What Wave 4.1 (follow-up Jarvis-Agents) MUST do:**
- SA-W4-2: Add ML-DSA-65 signing step to the GitHub Actions workflow, gated by a GitHub Actions secret `PQ_MLDSA65_PASSPHRASE` (identical pattern to Wave 2's offline-ceremony secret).
- SA-W4-3: Add `install-verify.sh.pqsig` and `install-verify.ps1.pqsig` to every release asset bundle.
diff --git a/docs/supply-chain/wave5-audit-fixes-validation.md b/docs/supply-chain/wave5-audit-fixes-validation.md
index 569542213b..3c6d55072b 100644
--- a/docs/supply-chain/wave5-audit-fixes-validation.md
+++ b/docs/supply-chain/wave5-audit-fixes-validation.md
@@ -22,12 +22,12 @@ run after the signing pipeline completes.
| # | Gate (audit text) | Status | Evidence |
|---|---|---|---|
-| G1 | `install-verify.sh --dry-run` against `v0.5.1` succeeds. | **POST-MERGE** | After the v0.5.1 release pipeline completes: `JARVIS_INSTALL_TAG=v0.5.1-supplychain-wave5-audit-fixes bash <(curl -fsSL https://github.com/personal-jarvis/personal-jarvis/releases/download/v0.5.1-supplychain-wave5-audit-fixes/install-verify.sh) --dry-run`. Expected: stages [0/13]..[13/13] pass + axis-E payload-commit stage prints `axis E OK (payload commit pinned to <SHA>)`. |
+| G1 | `install-verify.sh --dry-run` against `v0.5.1` succeeds. | **POST-MERGE** | After the v0.5.1 release pipeline completes: `JARVIS_INSTALL_TAG=v0.5.1-supplychain-wave5-audit-fixes bash <(curl -fsSL https://github.com/PersonalJarvis/PersonalJarvis/releases/download/v0.5.1-supplychain-wave5-audit-fixes/install-verify.sh) --dry-run`. Expected: stages [0/13]..[13/13] pass + axis-E payload-commit stage prints `axis E OK (payload commit pinned to <SHA>)`. |
| G2 | `install-verify.sh --dry-run` against `v0.5.0` succeeds when `$TAG=v0.5.0` (backward-compat). | **POST-MERGE** | After the v0.5.1 release pipeline completes, run the v0.5.1 verifier against the v0.5.0 release with `JARVIS_INSTALL_TAG=v0.5.0-supplychain-wave4 JARVIS_INSTALL_ALLOW_NO_PAYLOAD_PIN=1 bash <(curl ...) --dry-run`. Expected: axes A+B+C+D validate; axis E SKIPS loudly with the override message ("axis E SKIPPED via JARVIS_INSTALL_ALLOW_NO_PAYLOAD_PIN=1"); install-verify.sh hands off to install.sh, which falls through the `JARVIS_PAYLOAD_COMMIT` check (env unset) and clones HEAD-of-main like the legacy flow. |
| G3 | `install-verify.sh --dry-run` with mismatched tag (e.g. fetch v0.5.0 assets but tell verifier `$TAG=v0.4.0`) — must FAIL-CLOSED at the new tag-binding stage with the documented error message. | **PRE-MERGE PROVABLE** via the in-source code review + the post-merge red-team scenario R-Wave5-A below. The bash code change is at `install/install-verify.sh` immediately after the SAN regex assertion: `SAN_TAG="${CERT_SAN##*@refs/tags/}"`, then `if [ "$SAN_TAG" != "$TAG" ]; then err ... exit 1`. Expected error text: `axis A: SAN tag <X> does not match requested tag <Y> — refusing (possible downgrade replay)`. |
| G4 | New red-team scenario R-Wave5-A: tamper with `payload-commit.txt` post-release; `install.sh` must refuse to install. | **POST-MERGE** | See §3 below. Tamper-then-verify procedure: `(1) curl ... | base64 -d` the asset, `(2) flip a byte`, `(3) re-run install-verify.sh`. Expected: stage axis-E fails at the `cosign verify-blob` call on `payload-commit.txt`. |
-| G5 | `gh repo view personal-jarvis/personal-jarvis --json securityAndAnalysis` shows `secret_scanning.status=enabled`. | **POST-MERGE** | `gh api -X PATCH /repos/personal-jarvis/personal-jarvis -F security_and_analysis.secret_scanning.status=enabled -F security_and_analysis.secret_scanning_push_protection.status=enabled` then `gh repo view personal-jarvis/personal-jarvis --json securityAndAnalysis`. |
-| G6 | `gh api /repos/personal-jarvis/personal-jarvis/branches/main/protection` returns a populated object. | **POST-MERGE** | `gh api -X PUT /repos/personal-jarvis/personal-jarvis/branches/main/protection -F required_status_checks.strict=true -F 'required_status_checks.contexts[]=sign / sign' -F 'required_status_checks.contexts[]=cross-runner-hash / assert' -F 'required_status_checks.contexts[]=smoke / smoke' -F enforce_admins=true -F required_pull_request_reviews.required_approving_review_count=1 -F required_signatures=true -F allow_force_pushes=false -F required_linear_history=true -F restrictions=`. Any field that fails because of GitHub plan restrictions (e.g. `required_signatures` needs Pro+ on personal accounts) is documented as a known limitation in this table, not silently skipped. |
+| G5 | `gh repo view PersonalJarvis/PersonalJarvis --json securityAndAnalysis` shows `secret_scanning.status=enabled`. | **POST-MERGE** | `gh api -X PATCH /repos/PersonalJarvis/PersonalJarvis -F security_and_analysis.secret_scanning.status=enabled -F security_and_analysis.secret_scanning_push_protection.status=enabled` then `gh repo view PersonalJarvis/PersonalJarvis --json securityAndAnalysis`. |
+| G6 | `gh api /repos/PersonalJarvis/PersonalJarvis/branches/main/protection` returns a populated object. | **POST-MERGE** | `gh api -X PUT /repos/PersonalJarvis/PersonalJarvis/branches/main/protection -F required_status_checks.strict=true -F 'required_status_checks.contexts[]=sign / sign' -F 'required_status_checks.contexts[]=cross-runner-hash / assert' -F 'required_status_checks.contexts[]=smoke / smoke' -F enforce_admins=true -F required_pull_request_reviews.required_approving_review_count=1 -F required_signatures=true -F allow_force_pushes=false -F required_linear_history=true -F restrictions=`. Any field that fails because of GitHub plan restrictions (e.g. `required_signatures` needs Pro+ on personal accounts) is documented as a known limitation in this table, not silently skipped. |
---
@@ -157,12 +157,12 @@ admin rights.
```bash
# Enable secret scanning + push protection (Gate G5)
-gh api -X PATCH /repos/personal-jarvis/personal-jarvis \
+gh api -X PATCH /repos/PersonalJarvis/PersonalJarvis \
-F security_and_analysis.secret_scanning.status=enabled \
-F security_and_analysis.secret_scanning_push_protection.status=enabled
# Branch protection on main (Gate G6)
-gh api -X PUT /repos/personal-jarvis/personal-jarvis/branches/main/protection \
+gh api -X PUT /repos/PersonalJarvis/PersonalJarvis/branches/main/protection \
-F required_status_checks.strict=true \
-F 'required_status_checks.contexts[]=sign / sign' \
-F 'required_status_checks.contexts[]=cross-runner-hash / assert' \
@@ -204,7 +204,7 @@ get install.sh to clone the attacker's commit.
```bash
mkdir -p /tmp/r-wave5-a && cd /tmp/r-wave5-a
TAG=v0.5.1-supplychain-wave5-audit-fixes
-REL="https://github.com/personal-jarvis/personal-jarvis/releases/download/$TAG"
+REL="https://github.com/PersonalJarvis/PersonalJarvis/releases/download/$TAG"
curl -fsSL "$REL/install-verify.sh" -o install-verify.sh
chmod +x install-verify.sh
@@ -243,7 +243,7 @@ asked for a different tag.
# Pretend we found an old, valid v0.5.0 install-verify.sh trio
# (the audit's exact scenario).
curl -fsSL -o install-verify.sh \
- https://github.com/personal-jarvis/personal-jarvis/releases/download/v0.5.0-supplychain-wave4/install-verify.sh
+ https://github.com/PersonalJarvis/PersonalJarvis/releases/download/v0.5.0-supplychain-wave4/install-verify.sh
chmod +x install-verify.sh
# But the operator THINKS they're installing v0.4.0 — i.e. an
@@ -298,7 +298,7 @@ must not proceed).
Tag `v0.5.1-supplychain-wave5-audit-fixes` was cut at squash-merge
SHA `fe58438ca0436362178f48efdf2ff07960ee0085`. Sign-installer
-workflow run [`26509243915`](https://github.com/personal-jarvis/personal-jarvis/actions/runs/26509243915)
+workflow run [`26509243915`](https://github.com/PersonalJarvis/PersonalJarvis/actions/runs/26509243915)
succeeded on first attempt (zero fix-forwards). Release ships 42
assets (Wave-4 baseline 36 + 6 new `payload-commit.txt*` + the
renamed `layout-content-anchor.json`). Both red-team scenarios were
@@ -314,7 +314,7 @@ container; the happy-path smoke was executed in the same harness.
offline-ceremony pubkey fingerprint OK (40cdb1b9e255e797909fba4fb5983450ccf7fa26ec17c80f473fe360da5549ee)
[4/13] Verifying Fulcio keyless signature (axis A — GitHub Actions OIDC)...
- axis A OK (identity=personal-jarvis/personal-jarvis / .github/workflows/sign-installer.yml, issuer=https://token.actions.githubusercontent.com)
+ axis A OK (identity=PersonalJarvis/PersonalJarvis / .github/workflows/sign-installer.yml, issuer=https://token.actions.githubusercontent.com)
[5/13] Verifying offline-ceremony signature (axis B — Ed25519, air-gapped)...
axis B OK (Ed25519, key fingerprint=40cdb1b9e255e797909fba4fb5983450ccf7fa26ec17c80f473fe360da5549ee)
@@ -324,7 +324,7 @@ container; the happy-path smoke was executed in the same harness.
[7/13] Cross-checking identity assertions on both axes...
axis A: SAN tag v0.4.0-supplychain-wave3 does not match requested tag v0.5.1-supplychain-wave5-audit-fixes — refusing (possible downgrade replay).
- SAN: https://github.com/personal-jarvis/personal-jarvis/.github/workflows/sign-installer.yml@refs/tags/v0.4.0-supplychain-wave3
+ SAN: https://github.com/PersonalJarvis/PersonalJarvis/.github/workflows/sign-installer.yml@refs/tags/v0.4.0-supplychain-wave3
SAN tag: v0.4.0-supplychain-wave3
requested tag: v0.5.1-supplychain-wave5-audit-fixes
this defends against an attacker serving valid-signed bytes from a
diff --git a/docs/supply-chain/wave5-original-audit.md b/docs/supply-chain/wave5-original-audit.md
index a0782f0606..502cdcca52 100644
--- a/docs/supply-chain/wave5-original-audit.md
+++ b/docs/supply-chain/wave5-original-audit.md
@@ -95,7 +95,7 @@ actually best, not just easiest.
**Auditor's prescribed fix:**
-- `gh api -X PATCH /repos/personal-jarvis/personal-jarvis -F
+- `gh api -X PATCH /repos/PersonalJarvis/PersonalJarvis -F
security_and_analysis.secret_scanning.status=enabled -F
security_and_analysis.secret_scanning_push_protection.status=enabled`
— enable secret scanning + push protection.
@@ -105,7 +105,7 @@ actually best, not just easiest.
(sign-installer.yml + cross-runner-hash.yml +
verify-installer-smoke.yml), require signed commits, disallow
force-push, require linear history. Use `gh api -X PUT
- /repos/personal-jarvis/personal-jarvis/branches/main/protection -f
+ /repos/PersonalJarvis/PersonalJarvis/branches/main/protection -f
required_status_checks.strict=true -f
required_status_checks.contexts[]=...` etc. If any field fails
because of plan restrictions, document the failure honestly and skip
@@ -125,7 +125,7 @@ actually best, not just easiest.
new tag-binding stage with the documented error message.
- A new red-team scenario R-Wave5-A: tamper with `payload-commit.txt`
post-release; `install.sh` must refuse to install.
-- `gh repo view personal-jarvis/personal-jarvis --json
+- `gh repo view PersonalJarvis/PersonalJarvis --json
securityAndAnalysis` shows `secret_scanning.status=enabled`.
-- `gh api /repos/personal-jarvis/personal-jarvis/branches/main/protection`
+- `gh api /repos/PersonalJarvis/PersonalJarvis/branches/main/protection`
returns a populated object.
diff --git a/docs/voice-acceptance-brief.md b/docs/voice-acceptance-brief.md
index dddb313470..df53d2dbe9 100644
--- a/docs/voice-acceptance-brief.md
+++ b/docs/voice-acceptance-brief.md
@@ -1,7 +1,7 @@
# Voice Acceptance Brief — Persona+Delegation Refactor
**Mandate:** `Jarvis-Behavior/persona-delegation-mandate.md` §"Phase 6 — Voice-Acceptance"
-**Tester:** Ruben (manual)
+**Tester:** Alex (manual)
**Setup:** `run.bat --debug` (console + verbose logging) in the repo root
**Status:** 2026-04-29 — all 6 mandate phases ☑ verified; F-9 fixed (`persona_loader` reactivated, JARVIS_PERSONA takes effect in the prompt); F-11 fixed (Anthropic `<function_calls>` markup in the filter).
**Prerequisite:** Branch bug **F-10** (`jarvis.clis.risk_integration` missing) must be resolved first — either via `git stash pop` of the prior work or a targeted module restore. Otherwise the voice pipeline does not start.
@@ -46,35 +46,35 @@ Say **"Hey Jarvis"** as the wake word **before every turn**. Note briefly after
### Block A — 5 smalltalk turns (expectation: 0 subprocesses, <1 s per turn)
-| # | You say | Expectation | Ruben's note: perceived | Subprocess? | Tone |
+| # | You say | Expectation | Alex's note: perceived | Subprocess? | Tone |
|---|---|---|---|---|---|
-| 1 | "Hallo." ("Hello.") | Short greeting with "Ruben". | _____ | _____ | _____ |
+| 1 | "Hallo." ("Hello.") | Short greeting with "Alex". | _____ | _____ | _____ |
| 2 | "Wie geht's dir?" ("How are you?") | Smalltalk answer, no "Ich bin einsatzbereit" ("I am ready for deployment"). | _____ | _____ | _____ |
| 3 | "Was ist die Hauptstadt von Frankreich?" ("What is the capital of France?") | "Paris." directly. | _____ | _____ | _____ |
| 4 | "Danke." ("Thank you.") | Dry acknowledgement. | _____ | _____ | _____ |
-| 5 | "Auf Wiedersehen." ("Goodbye.") | "Auf Wiedersehen, Ruben." (hangup contract). | _____ | _____ | _____ |
+| 5 | "Auf Wiedersehen." ("Goodbye.") | "Auf Wiedersehen, Alex." (hangup contract). | _____ | _____ | _____ |
### Block B — 3 spawn turns (expectation: exactly 1 spawn per turn)
-| # | You say | Expectation | Ruben's note: perceived | Subprocess? | Tone |
+| # | You say | Expectation | Alex's note: perceived | Subprocess? | Tone |
|---|---|---|---|---|---|
-| 6 | "Lies die Datei jarvis.toml und sag mir was drin steht." ("Read the file jarvis.toml and tell me what's in it.") | Spawn → Sub-Jarvis reads → short summary, **no tool JSON in the voice output**. | _____ | _____ | _____ |
-| 7 | "Such im Web nach dem aktuellen Wetter in Berlin." ("Search the web for the current weather in Berlin.") | Spawn → Sub-Jarvis → weather info. | _____ | _____ | _____ |
+| 6 | "Lies die Datei jarvis.toml und sag mir was drin steht." ("Read the file jarvis.toml and tell me what's in it.") | Spawn → Jarvis-Agent reads → short summary, **no tool JSON in the voice output**. | _____ | _____ | _____ |
+| 7 | "Such im Web nach dem aktuellen Wetter in Berlin." ("Search the web for the current weather in Berlin.") | Spawn → Jarvis-Agent → weather info. | _____ | _____ | _____ |
| 8 | "Mach einen Screenshot und sag mir was du siehst." ("Take a screenshot and tell me what you see.") | Spawn → Computer-Use → description. | _____ | _____ | _____ |
### Block C — 2 bad-news turns (provoke errors — expectation: no cushioning, no "Es tut mir leid, aber" ("I'm sorry, but"))
-| # | You say | Expectation | Ruben's note: perceived | Tone |
+| # | You say | Expectation | Alex's note: perceived | Tone |
|---|---|---|---|---|
| 9 | "Lies die Datei /nicht/existent.txt." ("Read the file /not/existent.txt.") | Dry error message, no "Es tut mir leid, aber leider" ("I'm sorry, but unfortunately"). | _____ | _____ |
| 10 | "Verbinde dich mit dem Server xyz123.invalid." ("Connect to the server xyz123.invalid.") | Direct error notice. | _____ | _____ |
### Block D — 2 echo-trap turns (expectation: NO "Du möchtest also …" ("So you want to …"))
-| # | You say | Expectation | Ruben's note: perceived | Tone |
+| # | You say | Expectation | Alex's note: perceived | Tone |
|---|---|---|---|---|
| 11 | "Ich möchte wissen, wie spät es ist." ("I'd like to know what time it is.") | Direct time answer, NO "Du möchtest also wissen, wie spät es ist" ("So you want to know what time it is"). | _____ | _____ |
-| 12 | "Ich brauche ein neues Notepad-Fenster." ("I need a new Notepad window.") | "Öffne ich, Ruben." ("Opening it, Ruben.") or direct spawn — NO "Du möchtest also ein neues Notepad-Fenster" ("So you want a new Notepad window"). | _____ | _____ |
+| 12 | "Ich brauche ein neues Notepad-Fenster." ("I need a new Notepad window.") | "Öffne ich, Alex." ("Opening it, Alex.") or direct spawn — NO "Du möchtest also ein neues Notepad-Fenster" ("So you want a new Notepad window"). | _____ | _____ |
---
@@ -85,10 +85,10 @@ Say **"Hey Jarvis"** as the wake word **before every turn**. Note briefly after
- [ ] **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.
- [ ] **Bad news (9+10) without cushioning** ("Es tut mir leid, aber" ("I'm sorry, but") audible = ❌).
-- [ ] **The form of address is "Ruben"** (NEVER "Sir"/"Mr. Stark"/"Tony"/"boss" audible).
-- [ ] **Hangup contract** (turn 5): exactly "Auf Wiedersehen, Ruben." ("Goodbye, Ruben.") — not "Gern. Bis dann." ("Sure. See you then.").
+- [ ] **The form of address is "Alex"** (NEVER "Sir"/"Mr. Stark"/"Tony"/"boss" audible).
+- [ ] **Hangup contract** (turn 5): exactly "Auf Wiedersehen, Alex." ("Goodbye, Alex.") — not "Gern. Bis dann." ("Sure. See you then.").
-## Ruben's overall assessment
+## Alex's overall assessment
**Tone verdict (check one of these):**