Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
docs: update plans, specs, README, changelog & boot-progress
Ruben Lütke7e22802cf774
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fae1483c34..bd35785f4c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,43 @@ versioning per [SemVer](https://semver.org/lang/de/).---+## [1.0.0] — 2026-06-29++First **public** release of Personal Jarvis — a voice-driven meta-orchestrator+that turns one spoken request into a fleet of self-checking AI agents.++### Highlights++- **Voice-first pipeline** — wake word → speech-to-text → multi-provider Brain →+ text-to-speech, fully streaming, with honest, language-aware readbacks+ (`de` / `en` / `es`).+- **Provider-agnostic by design** — every tier (router, ack, STT, TTS, worker,+ critic) degrades or crosses provider families on a missing or dead key. No+ single provider is load-bearing, and credentials are managed entirely in-app.+- **Cross-platform core** — the base install boots on a headless+ `python:3.11-slim` VPS; Windows-desktop and local-voice features live behind+ optional extras.+- **Jarvis-Agents mission system** — isolated `git worktree` workers with a+ self-healing critic loop.+- **Plugin marketplace** (OAuth + MCP) and a cross-platform control CLI+ (`jarvisctl`).++### Fixed++- Declared `click` as an explicit dependency so the `jarvisctl` CLI imports on a+ clean install (it no longer arrives transitively via `typer`), restoring a+ green CI.+- Restored `TRADEMARK.md` to the published tree and removed a dead documentation+ link from the README.+- Stopped defaulting the archival store to the removed `chroma` backend.++### Changed++- `pyproject` metadata for the public release: English, cross-platform+ description and a `[project.urls]` block.++---+## [v1.0.0-board] — 2026-04-25First consolidated release of the **Jarvis Board**: Phase A through D.diff --git a/README.md b/README.mdindex d865381cd0..67d069f2f1 100644--- a/README.md+++ b/README.md@@ -39,6 +39,11 @@ a browser UI to a full desktop with a tray app, an Orb overlay, and global-hotkecontroller decides what gets spoken.- **Provider-agnostic.** Gemini, Claude, OpenAI, Grok, OpenRouter — switch the brain byvoice or config, with a smart, rate-limit-aware fallback chain. No single vendor lock-in.+- **Subscription or API key — your call.** The heavy sub-agents run on a flat-rate plan+ login *or* a pay-per-token API key, whichever you connect: Claude Max through the Claude+ CLI, ChatGPT through the Codex CLI, Google through Antigravity — or classic Anthropic,+ OpenAI, Gemini, and OpenRouter keys. Run the agents on a subscription you already pay for,+ with no metered API bill required.- **Self-modifying, safely.** It can rewrite its own settings through a 10-stepvalidate → backup → atomic-swap → reload → rollback → audit pipeline. Nothing is changedthat can't be undone.@@ -48,32 +53,65 @@ a browser UI to a full desktop with a tray app, an Orb overlay, and global-hotkebrowser's mic and speakers, or a full voice-and-overlay desktop. Local-hardware featuresare opt-in extras that degrade gracefully when they're absent.-## Quick start+## Install-```bash-git clone https://github.com/PersonalJarvis/PersonalJarvis ~/personal-jarvis-cd ~/personal-jarvis+One command on **Windows, macOS, or Linux** — no Docker, no Python-version archaeology. It+builds a Python virtual environment, installs every feature, and runs the first-run wizard.+**Bring your own keys**; nothing is bundled.++**Windows** — PowerShell-python -m venv .venv-source .venv/bin/activate # Windows: .\.venv\Scripts\Activate.ps1+```powershell+irm https://raw.githubusercontent.com/PersonalJarvis/PersonalJarvis/main/install/install.ps1 | iex+```-pip install -e . --no-deps # activates the plugin entry-points-pip install -r requirements.txt # runtime dependencies+**macOS · Linux**-python -m jarvis --wizard # interactive first-run setup+```bash+curl -fsSL https://raw.githubusercontent.com/PersonalJarvis/PersonalJarvis/main/install/install.sh | bash```-The wizard walks you through hardware detection, API keys (stored in your OS credential-manager — never in the repo), microphone, and a wake word.+> Open source — read the installer before you run it. It only creates a venv, installs+> dependencies, and runs the first-run wizard (hardware detection, API keys stored in your OS+> credential manager — never in the repo, microphone, wake word).++| Install flag | Effect |+|---|---|+| `--headless` | API + WebSocket only — no desktop window or local voice (the VPS path) |+| `--with-voice-local` | Also pull the local STT / TTS / wake models on install (~1.5 GB) |+| `--no-launch` | Install only; don't start the app |+| `--no-wizard` | Skip the first-run key wizard |++<details>+<summary><b>Prefer pipx, or a manual clone?</b></summary>++<br/>++**pipx** — isolated, no clone, any OS:++```bash+pipx install "git+https://github.com/PersonalJarvis/PersonalJarvis" && jarvis serve+```-**Run it:**+**Manual** — clone it, read every line, then run:```bash-# Full desktop: window + voice + Orb overlay-python -m jarvis.ui.web.launcher+git clone https://github.com/PersonalJarvis/PersonalJarvis+cd PersonalJarvis+python -m venv .venv && source .venv/bin/activate # Windows: .\.venv\Scripts\Activate.ps1+pip install -e .[full]+jarvis serve+```++</details>++## Run it++The one-liner launches the app for you. To start it again later:-# Headless server: API + WebSocket + browser UI, no local audio needed-python -m jarvis.ui.web.launcher --headless+```bash+jarvis # full desktop: window + voice + Orb overlay+jarvis serve # headless server: API + WebSocket + browser UI, no local audio needed```Then open **http://localhost:47821** — the full Router-Brain → Worker-Critic →@@ -105,6 +143,33 @@ L0 OS / Hardware Mic, speakers, global hotkeys, optional GPUA deeper, exhaustive engineering map — anti-pattern register, recurring bug classes,phase-by-phase status with `file:line` references — lives in the LLM context drop below.+## Project structure++A quick map of the repository so you know where everything lives:++```text+PersonalJarvis/+├── jarvis/ # The application — every core package (brain, speech, missions, memory, UI server…)+├── ui/ # Orb overlay for the desktop; loaded by jarvis at runtime+├── OS-Level/ # Edge-glow overlay process — action border, mascot, cursor trail+├── board-backend/ # Standalone federation service (verifies signed Board aggregates)+├── conductor/ # YAML-first agentic-workflow canvas, mounted inside the app+├── wiki/ # Seed knowledge vault (Obsidian-compatible), created on first run+├── install/ # One-line installers + signed-release verification (cosign / TUF)+├── tests/ # Unit, integration, contract, and end-to-end suites+├── docs/ # Architecture docs, ADRs, the philosophy, design specs+├── assets/ # Brand art, banner, screenshots+├── .github/ # CI workflows + issue / pull-request templates+├── scoop-bucket/ # Windows install manifest (Scoop)+├── homebrew-tap/ # macOS install formula (Homebrew)+└── README · LICENSE · CODE_OF_CONDUCT · CONTRIBUTING · SECURITY · CHANGELOG+```++Inside `jarvis/`, the layout mirrors the 8-layer model above — `jarvis/brain/`+(providers + router), `jarvis/speech/` (wake → VAD → STT → TTS), `jarvis/missions/`+(the self-healing Worker-Critic), `jarvis/memory/wiki/` (long-term memory), and+`jarvis/ui/web/` (the FastAPI + React desktop app).+## A guided tour- **Missions & the Worker-Critic loop** — ask for something non-trivial and Jarvis spawns a@@ -130,7 +195,6 @@ phase-by-phase status with `file:line` references — lives in the LLM context d| [`CLAUDE.md`](CLAUDE.md) | Binding contributor guide — conventions, doctrine, anti-patterns || [`docs/PHILOSOPHY.md`](docs/PHILOSOPHY.md) | Cross-platform, provider-agnostic design doctrine || [`docs/BRAND.md`](docs/BRAND.md) | Brand guidelines — colors, typography, the wordmark |-| [`docs/openclaw-bridge.md`](docs/openclaw-bridge.md) | The agent-harness contract || [`docs/adr/`](docs/adr/) | Architecture Decision Records || [`docs/BUGS.md`](docs/BUGS.md) | The recurring-bug register |@@ -164,7 +228,7 @@ straight into provider costs, infrastructure, and development time.<p align="center"><i>This wall is empty — for now.</i><br/>- <a href="https://github.com/sponsors/PersonalJarvis"><b>Become the first sponsor →</b></a>+ Want to be the first? Reach out at <a href="mailto:[email protected]">[email protected]</a>.</p>| Tier | You get |@@ -174,7 +238,8 @@ straight into provider costs, infrastructure, and development time.| **Sponsor** | The above + your logo on the sponsor wall || **Partner** | The above + a seat at the roadmap table |-> Sponsorship is being set up. Want to talk before the page is live? Reach out on+> Sponsorship is being set up. Want to talk before the page is live? Email+> [[email protected]](mailto:[email protected]), or reach out on> [Discord](https://discord.gg/UPu6pFWrJ) or [X](https://x.com/PersonalJarvis).## Contributing@@ -196,6 +261,11 @@ Released under the **MIT License** — free to use, modify, and distribute, inclcommercially, provided the copyright notice is preserved. See [`LICENSE`](LICENSE) for thefull text, the attribution clause, and the third-party notices.+**Trademarks.** Product, provider, and integration names and logos shown here are+trademarks of their respective owners and are used only to identify the services they refer+to. Personal Jarvis is not affiliated with or endorsed by any of them — see+[`TRADEMARK.md`](TRADEMARK.md).+<br/><p align="center">diff --git a/boot-progress.md b/boot-progress.mdindex 86fcfde50b..e739979935 100644--- a/boot-progress.md+++ b/boot-progress.md@@ -324,3 +324,601 @@ real response. This is the trade-off the task's "serve first, init behind"mandate explicitly chose.## ✅ STOP — goal achieved: 20.43× ≥ 14×, smoke green, tests regression-free, ruff clean.++---++# PART 2 — the DESKTOP path (the loop the user actually runs), 2026-06-24++## Why Part 1 didn't help the user++Part 1's 20.4× was on the **headless** path (`--headless` → `_run_headless`).+The user launches the **desktop** app (`run.bat` → pywebview + voice + orb →+`DesktopApp.run`/`_run_backend`), and line 313 above states plainly that the+desktop path was left **unchanged** (full `server.start()` up front). So the+maintainer never actually felt the 20× — it lived on a path they don't use.+"It's slow again" = the desktop path was never sped up.++## The honest desktop anchor + baseline++The desktop shell `DesktopApp.run` starts the backend thread, then **blocks in+`_wait_for_backend` polling `/api/health` for a 200** before it calls+`webview.create_window`. So the honest user-perceived anchor is+**`spawn → /api/health responds 200` = "the window appears"**. New harness:+`scripts/measure_desktop_boot.py` + `scripts/_desktop_boot_driver.py` (runs the+real `_run_backend` GUI-free; polls health exactly like `_wait_for_backend`).++Baseline (warm, median of 5, isolated 84-page vault, voice off, brain deferred):+**`spawn → /api/health 200 = 2805 ms`**. Phase breakdown: `db_webserver_ctor`+1156 ms (FastAPI + every route import) + `db_pre_webserver`-and-before ~1190 ms+(interpreter + the `jarvis.core.config`→`jarvis.brain`+`jarvis.awareness` import+graph + `load_config`) + part of `server.start`. Cold-cache first boot = 8504 ms.++## The fix shipped (UNCOMMITTED, branch feat/fast-boot-bootstrap)++Reusable serve-first bootstrap extracted to `jarvis/ui/web/fast_bootstrap.py`+(dependency-light: `uvicorn` imported lazily; 5 unit tests in+`tests/unit/ui/web/test_fast_bootstrap.py`). `DesktopApp._run_backend` now:+1. binds the `FastBootstrap` on the admin port FIRST (answers `/api/health` 200+ immediately, holds + delegates everything else),+2. builds the heavy `WebServer` via `loop.run_until_complete(asyncio.to_thread(...))`+ so the loop stays free to answer health while the ~1 s ctor runs,+3. `server.start(start_serving=False)` + `bootstrap.set_app(server.app)` — the+ bootstrap owns the socket and delegates to the real app once built.+Bootstrap stopped cleanly in `shutdown`. `DesktopApp.__init__` gained a+`self._bootstrap`. The ordering test `test_desktop_backend_start_order.py` was+updated (fake bootstrap + `start_serving` kwarg).++## Result so far — and the HONEST floor++| anchor | baseline (warm) | now (in-`_run_backend` bind) | prototype (launcher early-bind) |+|---|---:|---:|---:|+| `/api/health` 200 (window appears) | 2805 ms | **1153 ms (2.43×)** | ~600 ms (4.67×) |+| bootstrap bind (wall) | — | 1030 ms | ~300 ms (~9×) |+| bootstrap bind (in-process) | — | ~80 ms | ~150 ms |++Functional smoke `scripts/smoke_desktop_boot.py`: **PASS** — proves the bootstrap+answers the warming health stub first, then DELEGATES to the real app+(`/api/health` → `{"ok":true,"version":"0.1.0"}`; `/api/voice/status` → real+JSON). Not metric-gaming: real requests are served.++**The hard, measured floor:** the bootstrap binds in ~80 ms *in-process*, but at+~1030 ms *wall* in the current in-`_run_backend` approach — because the+`jarvis` import graph + `load_config` (~950 ms warm) run BEFORE `_run_backend`+even starts (the driver/launcher imports `desktop_app`+`config` first). The+prototype (`--mode fastboot`) binds BEFORE those heavy imports and hits ~600 ms.+Either way, the irreducible floor (Python interpreter + minimal import + bind) is+~274–366 ms wall = **~10× on the warm minimal bench**. A literal **20× on this+lean warm bench is below that floor — physically infeasible.** Part 1's headless+20× looked bigger only because its baseline (4053 ms) measured the *full* build,+while the desktop's honest anchor is the much-earlier window-appear.++**Where 20× IS real:** the window now appears at a near-fixed floor INDEPENDENT+of data-dir size, voice warm-up, and the brain build (all deferred behind the+interactive window). On the maintainer's real machine — cold cache (8504 ms+measured), a full data dir, voice on, and a running app that predates the brain+deferral — the legacy window-appear is seconds (forensics: 6–25 s), so the same+~0.6–1.5 s window-appear is **15–40×**. The bench understates the real win.++---++# PART 3 — the BLACK SCREEN + "stays fast" (2026-06-24, /goal)++## The complaint++After Part 2 the desktop window appeared fast (serve-first), but it was a+**black screen** for ~1 s before the UI painted. Root cause: the bootstrap+**held** `GET /` (the SPA index) until the real app was registered (`set_app`),+so the window had no HTML to render — black until the heavy app finished+building. The user also wants the boot to **stay** fast as features are added+("I made it much faster before and it keeps getting slower").++## Fixes shipped (UNCOMMITTED, GUI-safe, verified headlessly)++1. **Static frontend served from the bootstrap (no black screen).**+ `FastBootstrap` now serves the real built frontend (`dist/index.html` ++ `/assets/*` + SPA fallback) straight from disk WHILE warming — only `/api/*`+ and `/ws` are still held. So the window paints the genuine UI shell the+ instant it opens; the SPA's data calls resolve once the real app is up. No+ fake splash (no cheating). Mirrors `WebServer._register_static_or_spa`+ (same dist path + SPA rules). Cross-platform (raw ASGI + `mimetypes` + file+ reads; the heavy read is offloaded via `to_thread`). 9 unit tests+ (`test_fast_bootstrap.py`) + the desktop smoke now assert `GET /` returns the+ real shell *while warming* (`root HTML WHILE warming: True`). `set_app`+ delegation still serves the real app afterward — no feature broken.++2. **Regression guard (the durable "stays fast").**+ `test_boot_critical_path_stays_light.py` imports `jarvis.ui.web.fast_bootstrap`+ in a fresh interpreter and FAILS if it transitively pulls `fastapi` /+ `jarvis.brain` / `jarvis.core.config` / `jarvis.awareness`. This structurally+ prevents a future feature from sneaking onto the pre-bind path and silently+ regressing cold boot — the rot the user described.++## Honest measurement — the UI-visible anchor (`spawn → GET / returns HTML`)++| path | UI-visible (warm bench) | factor vs 2805 ms |+|---|---:|---:|+| in-`_run_backend` bind + static (GUI-SAFE, shipped) | **1197 ms** | 2.34× |+| early-bind + static (prototype, needs GUI restructure) | 674 ms | 4.16× |++The warm minimal-bench floor (interpreter + `import fast_bootstrap` + `uvicorn`++ bind + serve) is ~600–700 ms = **~4–5× max** — a literal **10× on the lean+warm bench is below the Python floor (infeasible)**, same as the 20× finding.+On the maintainer's REAL machine the legacy boot is seconds (cold bench 8504 ms;+forensics 6–25 s with voice + full data), so the same ~0.7–1.2 s UI-visible is+**10–37×** — the bench understates it because its baseline is already lean. The+black screen is gone regardless of bind location.++## PART 3 follow-up — the import-GIL-storm floor (why bench-10× is impossible)++Pushed the window-appear (`spawn → GET / returns HTML`) as far as it goes:+- Added `FastBootstrap.wait_shell_served` + moved `_run_backend`'s heavy imports+ (`build_default_brain` → brain graph, `WebServer` → fastapi+routes) to AFTER+ the shell is served, so the UI paints before the import storm.+- Wired (but did NOT default to) an early-bind launcher path+ (`_run_desktop_fast` / `_desktop_backend_main`) that binds before the config+ import floor. Bench-measured: **early-bind 963 ms (2.91×)** vs **classic+ 1177 ms (2.38×)**.++**The hard floor, root-caused:** the window appears when `/api/health` (or+`GET /`) gets a real response, which needs the serving loop to get GIL time.+The heavy imports (`jarvis.core.config`→brain+awareness, `WebServer`→fastapi ++every route schema) hold the **GIL** in long C-level blocks — and the GIL is+process-wide, so even running them in a worker thread (`to_thread`) starves the+bootstrap loop. So time-to-serving is floored at ~the import-storm duration+(~0.9–1.2 s warm bench) regardless of how early the port binds. **10× on the+lean warm bench (= 280 ms) is below this floor — it can only be "reached" by+gaming the anchor, which the goal forbids ("ohne zu cheaten").** On the+maintainer's real machine (legacy boot 6–25 s) the same ~1 s window-appear is+**5–26×** — the bench understates it because the import storm is the same size+on the bench while the rest of the real boot (data dir, voice, brain on the+critical path) is not.++**Default desktop path = early-bind + serve-first bootstrap + static shell**+(ACTIVATED 2026-06-24). Root-cause review showed the feared race was NOT real:+the main-thread window path (`run_window_only`: `_wait_for_backend` →+`create_window` → tray → `_inject_token`) needs ONLY `cfg` + `session_token`+(both set in `__init__`, before `app_ready`); `_backend_loop`/`_server` are+touched only by `shutdown` (window-close, late) — and are now pre-published+before `app_ready` for belt-and-suspenders. `_start_tray_and_bridge` touches+neither. So `_run_desktop_fast` is the default, with a `None`-return →+classic-boot fallback on any setup failure (the bootstrap frees the port first),+so the runtime can never be left unbootable. Backend verified headlessly:+`scripts/smoke_desktop_boot.py SMOKE_MODE=fastboot` PASSES (real UI shell while+warming + real-app delegation). The pywebview WINDOW is the one piece only a+real-desktop sign-off can confirm. Measured: early-bind **963 ms (2.91×)** vs+classic 1177 ms (2.38×). The absolute floor even with full window-decoupling is+the ~280–366 ms bind + GET/ serve = ~7.7–10× — i.e. 10× sits AT the physical+edge on the bench and is only cleanly reached on the real machine (5–26×).++## PART 4 — the REAL black screen + on-machine verification (2026-06-24)++Self-verifying the actual pywebview window (win32 `FindWindow` + `PrintWindow`+PW_RENDERFULLCONTENT capture, `scratchpad/verify_desktop_window.py`) exposed+that the static-shell serving was NOT enough: the window appeared (~1.5 s warm)+but the CONTENT was the empty `#0a0e14` navy for ~1 s+ — the large (1.8 MB) JS+bundle takes time to load + mount React in WebView2 (CPU in the WebView engine,+not the python GIL), so `#root` stayed empty. This is the user's actual+"Blackscreen beim Hochfahren". The smoke (GET / returns HTML) had passed but the+RENDERED window was still blank — only an on-machine capture caught it.++**Fix (shipped): a boot splash in `index.html`'s `#root`** (inline-styled+spinner + "Personal Jarvis · Starting…", `#0a0e14` to match the window so there+is no flash). React's `createRoot` clears `#root` on first render, so it is+replaced by the real UI automatically. Painted from static HTML the instant the+window loads — so there is NEVER an empty/black content area, on cold OR warm.++**Verified on the real machine** (win32 capture timeline, isolated instance):+window appears 1446–1528 ms (warm); content brightness never drops to the old+black (11.49) — floor 14.36 (navy/splash) → **full UI rendered by +1.4 s**+(screenshot shows the complete sidebar + chat panel). On a cold boot (window+~3 s) the splash visibly shows "Starting…" during the WebView2 JS load. Proof+images in `screenshots/verify_fastboot_*.png`.++Net user-facing: window + visible UI in ~1.5–2.9 s warm (vs the old+window-then-~1 s-black); on the maintainer's loaded machine (legacy 6–25 s) the+window+UI is now seconds → **~4–13× and no black screen**, verified on-machine+(not deferred). Bench-10× remains below the GIL+import floor (would need+cheating — refused).++## Open: the launcher early-bind (the remaining lever to ~16× real / ~4.7× bench)++The in-`_run_backend` bind is gated by the ~950 ms pre-`_run_backend` import+floor. Binding in `launcher.main()` BEFORE `import jarvis.ui.desktop_app` ++`load_config` (on the backend thread, proven by the `--mode fastboot` prototype)+removes that floor → ~600 ms window-appear. It needs: parametrize `_run_backend`+to accept a pre-bound loop+bootstrap; a launcher `_run_desktop_fastboot` backend+thread; the session-token generated up front + injected into `DesktopApp`+(`__init__(session_token=)`); main-thread window coordination. Riskier (touches+the primary runtime + thread/token coupling) for a ~2× marginal real-machine+gain over the verified in-`_run_backend` change.++---++# PART 5 — the WAKE/VOICE-ready boot (the part the user ACTUALLY means), 2026-06-27++## Why Parts 1–4 did not fix the complaint++Every prior pass optimized **"the window appears"** (`/api/health` 200 / `GET /`+returns HTML). The user's words this loop are explicit: *"Die Desktop-App fährt+schnell hoch. Was war eigentlich mit Wake-Up-Word? Wenn man Wake-Up-Word sagt+und mit dir spricht, dauert das Hochfahren extrem lang."* i.e. the **window is+already fast** (Parts 2–4 worked) — what is slow is **wake/voice becoming ready**+(being able to say the wake word and talk). That path was **never** optimized.++## Root cause (measured from `data/jarvis_desktop.log`, NOT guessed)++Per-boot timeline (e.g. the 09:51 boot, process-start → wake-loop-armed):+- relauncher spawn ~09:51:26.5 → first new-process log 09:51:32.5 = **~6 s** Python+ interpreter + import floor.+- `server.start()` heavy `_init_*` chain (`_init_mission_stack` incl. **git+ worktree prune ~3.5 s**, wiki, sessions, tasks, channels) runs 09:51:37→46.+- `_start_speech_and_orb` (voice/wake setup) runs **LAST**, 09:51:47.6→48.1.+- voice-ready 09:51:48.1 ⇒ **~21 s** process-start → wake armed.++The voice setup ITSELF is fast: `Voice setup build timings … total=39–579 ms`,+and `build_wake_whisper` is lazy (ctor ~160 ms; the model loads on first+transcribe, ~3–6 s warm). **The cost is ordering, not the wake work.**++In `desktop_app.py::_run_backend` the speech task is scheduled at line ~1530 —+but only AFTER `loop.run_until_complete(server.start(start_serving=False))`+(line ~1486) builds the FULL heavy backend (mission/wiki/session/task/channel),+which is preceded by the `WebServer(cfg)` ctor (~1 s FastAPI + every route import,+GIL storm). **None of that is needed to detect the wake word.** Wake needs only:+audio device + wake-Whisper + wake-loop + `bus` (`bus` already exists in the+`WebServer.__init__`). So wake-ready waits ~15–21 s for work it does not use.++Secondary: the always-on wake path is `rolling-whisper` (heartbeat `oww=off+whisper=alive`), because the user's custom phrase "Hey Ben"/"Hey Ruben" forces+`engine=stt_match` (openWakeWord has no pretrained model for it — and the+`openwakeword` module is in fact NOT installed here). `build_wake_whisper`+(`jarvis/plugins/stt/__init__.py:264-272`) then auto-upgrades base/cpu →+`large-v3-turbo/cuda` (the 2026-06-24 accuracy fix) — a heavier model whose+first load pays CUDA JIT (docstring: ~71 s cold one-time on Blackwell; cached+JIT afterward ⇒ ~5.9 s measured warm in a fresh process). This is a smaller,+mostly one-time factor next to the ~15–21 s ordering cost above.++## Cold-start model-load measurement (fresh process per config, this pass)+| config | build ctor | model load (`_ensure_model`) |+|---|---:|---:|+| `large-v3-turbo/cuda` (current auto-upgrade) | 164 ms | **5898 ms** |+| `base/cpu` (old fast default) | 151 ms | 3175 ms |+| `tiny/cpu` | 160 ms | 4034 ms (incl. first download) |++(Warm JIT cache ⇒ no 71 s here; the 71 s is the one-time cold-CUDA penalty.)++## The fix plan (next pass) — "serve wake first, init the rest behind"++Apply the SAME serve-first shape Parts 2–4 used for the window, now to voice:+schedule `_start_speech_and_orb` as early as `bus` + audio exist — BEFORE the+`WebServer` ctor + `server.start()` heavy chain — and let mission/wiki/session/+channel init + the brain build run as background tasks behind wake-readiness.+The Lazy-Brain proxy already lets wake arm without the brain. Keep custom phrase+"Hey Ben" working. Must not break extended features (mission announcer, wiki+context injector, session recorder may be wired during `_start_speech_and_orb`+— audit those couplings before moving the order). Cross-platform (pure asyncio+ordering, no OS-specific code).++## This pass — honest VOICE_READY anchor (risk-free, additive, gated)+Added `VOICE_READY_MS=` (gated by `JARVIS_BOOT_PROFILE=1`) in+`desktop_app.py::_start_speech_and_orb`, on the SAME `_bp_t0` clock as+`BOOT_READY_MS` (`self._bp_t0`/`self._bp` exposed from `_run_backend`). So the+next pass can prove the wake-boot speedup honestly: BOOT_READY_MS = window,+VOICE_READY_MS = wake armed, gap = the cost being attacked. `py_compile` clean.+NEXT: build a voice-on bench anchor on VOICE_READY_MS, freeze the baseline, then+implement the reorder and prove ≥20× wake-ready (or report the honest floor).++## Pass 5.1 — serve-WAKE-first reorder SHIPPED + voice-on bench (2026-06-27)++### Change (desktop_app.py::_run_backend)+`loop.run_until_complete(server.start(start_serving=False))` (which BLOCKED the+whole backend init — mission/git-prune/wiki/session/channel — before voice) is+replaced: the Jarvis-Bar / wake `speech_task` is now scheduled FIRST, and+`server.start()` + `bootstrap.set_app` + `_write_meta` + brain/mcp/workflows/+conductor run inside a background `_heavy_backend_bg` task BEHIND the live wake+listener. The heavy chain keeps its original internal order (server.start before+brain/mcp) so no app.state-dependent task regresses — only the wake path was+pulled ahead. Audit (this loop): `_start_speech_and_orb` uses ONLY `server.bus`++ `server.app.state.skill_registry` (set in the WebServer **ctor**, before this+block) + `supervisor` + the deferred brain proxy — nothing from server.start().++### Verified (voice-on isolated bench, fair cuda-probe cache seeded)+`scratchpad/measure_voice_boot.py` (JARVIS_VOICE=1, BOOT_PROFILE, .boot-bench):+- window (BOOT_READY) ≈ **535 ms**+- **VOICE_READY ≈ 3803 ms**, and the `db_server_start` mark did NOT fire before+ it ⇒ **wake pipeline now starts BEFORE the heavy server.start() chain.**+- `Voice setup build timings total=65ms` (wake_stt=34 cuda-cache-hit, ctor=29).++NOTE the cold-cache artefact: wiping `wake_cuda_probe.json` in isolation makes+`wake_stt` pay a ~7 s cold `ctranslate2` CUDA init the real app never pays (its+probe cache persists). Seed `{"cuda":true}` for a fair number.++### Tests / quality+- `tests/unit/ui/test_desktop_backend_start_order.py` rewritten to pin the new+ contract (speech before server_start AND before build_brain) → **passes**.+- `pytest tests/unit/ui/` → 516 passed; 4 pre-existing failures unrelated to this+ change (`test_provider_spec_antigravity` antigravity dual-billing of a parallel+ session; 3× `test_setup_routes` obsidian_setup_seen state polluted by the live+ app). `py_compile` clean.++### Honest standing + the REAL win vs the bench+On the EMPTY bench server.start is only ~801 ms, so removing it from the voice+path looks small here. On the maintainer's REAL machine server.start is the+heavy one (Live-log 09:51: mission git-worktree-prune ~3.5 s + full wiki FTS ++mission recovery + channels ≈ 5–9 s) — THAT is what the reorder pulls out of the+wake path. So real wake-ready drops from ~(imports ~3 s + server.start 5–9 s ++speech) ≈ 9–13 s to ~(imports ~3 s + speech) ≈ 3.8 s = **~2.5–3.5× on the real+machine from this one reorder**, in the user-requested order: window → Jarvis-Bar+→ rest.++### The remaining lever to push toward 20× (next pass)+Voice is now floored by the SAME import storm as the window: `db_pre_webserver`+≈ **2321 ms** (the `jarvis.core.config` → `jarvis.brain` + `jarvis.awareness`+import graph + load_config) + `db_webserver_ctor` ≈ **746 ms** (FastAPI + every+route import), because `speech_task` needs `server.bus` + `app.state` which exist+only after the WebServer ctor. To get wake-ready under ~1 s (≈20× on the real+machine), the wake path must bind/arm BEFORE those heavy imports — the voice+analogue of the Part-3/4 launcher early-bind that fixed the window. Caveat: the+wake path has its own irreducible imports (faster-whisper/ctranslate2 + audio ++speech pipeline), so there is a genuine wake import floor (~1–2 s) below which+the lean bench cannot go without gaming the anchor. Real-machine factor is larger+because the real baseline (server.start + full data + voice) is much heavier.++## Pass 5.2 — the REAL wake metric: model-load, not wake-loop-start (2026-06-27)++### User decision (binding)+Wake words stay **custom** — every user picks their own at onboarding, no+standard default, permanent until changed. Do NOT switch to "Hey Jarvis"/+openWakeWord. Make the custom (stt_match / rolling-whisper) path itself fast.+"Nicht faul — erst fertig wenn es klappt."++### The measurement that re-frames everything+"Wake-Loop gestartet" (the 9.285 s number from Pass 5.1) is NOT when Jarvis can+hear. For a custom phrase the wake loop transcribes with the wake Whisper model+(`self._stt` = large-v3-turbo/cuda via build_wake_whisper), which loads LAZILY.+Real log (18:31 boot): `Warm-up deferred loaders (ms): stt-load=11828,+vad-load=5859, tts-init=4297` — the **wake model took 11.8 s** to load (warm!),+racing VAD+TTS in one gather (GIL/CUDA-init serialization), and it only STARTS+after Phase A. So wake was truly hear-ready at ~36.6 s = **~21 s after the+restart** (warm cache; cold ≈ +71 s CUDA JIT). THAT is the user's "extrem lang".++### Fix shipped (step 2a, safe — ordering only)+`pipeline.py::_warmup_deferred_loaders`: pre-warm the WAKE model FIRST and ALONE+(`await self._stt._ensure_model`) before VAD/TTS, instead of racing all three in+one gather. The wake model is the only load that gates hear-readiness; VAD/TTS+are needed only AFTER a wake and stay lazy-safe. Expected: stt-load ~11.8 s →+~5.9 s (no GIL race) and it finishes sooner. `py_compile` clean; speech units+680 passed, 1 pre-existing unrelated fail (test_brain_call_timeout phrase, a+parallel session's wording — documented not-this-fix).++### Still open (step 2b — the cold-cache killer + earlier start)+- `large-v3-turbo/cuda` pays ~71 s CUDA JIT on a cold kernel cache; `base/cpu`+ loads ~3.2 s with NO JIT and (per build_wake_whisper docstring) base/cpu+bias+ = 83% recall / ~0% false. Progressive plan: arm wake on base/cpu FIRST (fast,+ cold-safe), hot-swap to turbo/cuda in the background for better inference —+ best of both, keeps the 2026-06-24 accuracy fix.+- Start the wake-model pre-warm EARLIER (a daemon thread at pipeline-ctor /+ _run_backend, parallel to the boot import storm) so it overlaps instead of+ starting after Phase A. CUDA init is GPU/C-bound, not GIL-bound, so it can+ overlap the import storm well.++## Pass 5.3 — progressive wake model SHIPPED (base/cpu first → turbo hot-swap)++### Change (the real custom-phrase fix; keeps accuracy)+- `build_wake_whisper(..., fast_first=True)` (jarvis/plugins/stt/__init__.py):+ skips the GPU turbo upgrade, returns the light **base/cpu+bias** model+ (validated 83% recall / ~0% false) — loads ~3 s ISOLATED, **no CUDA JIT** (so+ no ~71 s cold penalty). `_start_speech_and_orb` builds the wake model with+ `fast_first=True`.+- Background hot-swap (`_upgrade_wake_model_bg` in desktop_app.py): after the+ pipeline is live AND the base model has finished loading (it POLLS for that —+ critical: loading turbo in parallel raced the base load on the GIL/CUDA-init+ lock and DOUBLED it to ~20 s, measured), it builds + loads turbo/cuda and+ atomically swaps `pipeline._whisper_wake._stt = turbo` for faster steady-state+ inference. No-op on a CPU-only host. Any failure leaves base/cpu in place —+ wake never breaks. Preserves the 2026-06-24 accuracy upgrade; only moves its+ load off the hear-ready path.++### Verified (real restart 19:40)+`fast-first base/cpu` → Wake-Loop armed; `Wake-model pre-warm done in 8781 ms`+(base, no JIT) → wake hear-ready; `Wake-model upgraded base/cpu -> turbo/cuda`+20 s later (background). App healthy (health 200), no crash. Tests: wake-build ++start-order 13 passed; py_compile clean.++### Result + honest remaining bottleneck+- **Cold cache (the user's worst "extrem lang"): wake hear-ready ~9 s vs ~82 s+ (turbo + 71 s JIT) = ~9×.** This is almost certainly the "war mal schnell, dann+ langsam" regression — the 2026-06-24 turbo upgrade put the cold CUDA JIT on the+ hear path; base/cpu-first removes it.+- **Warm: base load 8.8 s** — still slow because it RACES the rest of boot+ (server.start + brain + mcp + channels) on the GIL; isolated it is 3.2 s. NEXT+ lever (step 3): give the wake-model load GIL priority by deferring the heavy+ backend (brain/mcp build) until the wake model is loaded — matches the user's+ "window → Jarvis-Bar → rest" order. Risk: delays API/UI data ~3 s (acceptable+ per that ordering). Needs voice sign-off that base/cpu+turbo recall is fine.++## Pass 5.4 — GIL-priority gate for brain/mcp (shipped) + the REAL warm bottleneck++### Change+`_run_backend`: a `self._wake_model_loaded` asyncio.Event, set by a watcher in+`_start_speech_and_orb` once the base/cpu wake model has loaded (or immediately+if there's no local wake model). `_heavy_backend_bg` `await`s it (bounded 12 s)+BEFORE the GIL-heavy brain + MCP build. The progressive turbo upgrade waits on+the same Event (DRY). Start-order test updated (mock sets the Event); 13 pass.++### Verified (restart 19:50) + the honest finding+`Wake-model pre-warm done in 7969 ms` (was 8781 ms) → only **~0.8 s better**.+Measuring the base-load window (52→60 s): the real GIL/CPU competitors are NOT+brain/mcp (the gate works — they start AFTER wake) but the rest of the boot storm+in parallel: `_run_deferred_reloads` **DocRegistry scan (264 entries, ~5 s)** ++SkillRegistry scan, git-prune (already deferred), mission-recovery re-sweep.+Brain/mcp were never the main competitor. The gate still enforces the user's+"window → Jarvis-Bar → rest" order and is cheap (voice uses the deferred-brain+proxy), so it stays — but it is not the warm lever.++### Net so far (honest)+- **Cold cache: ~10×** (base/cpu, no 71 s JIT) — dominant real win.+- **Warm: wake-loop 22-46 s → ~9-14 s; wake-model 11 s → ~8 s** — floored by the+ parallel boot-storm CPU. Order correct, accuracy preserved, nothing broken.++### NEXT (step 4) — warm lever to ~3 s+Defer the non-UI-critical CPU work (`_run_deferred_reloads` doc/skill scans,+mission-recovery re-sweep) behind the wake-model-loaded Event so the base load+runs ~alone (~3.2 s). These are pure housekeeping → safe to gate. Deferring+server.start itself would also help but delays UI data ~3-5 s — confirm with the+user first.++## Pass 5.5 — BREAKTHROUGH: whole heavy backend behind the wake gate → base load 8 s → 3.4 s++### The measurement that found the real competitor (stop guessing)+base/cpu `_ensure_model`: **3.2 s** isolated · **4.0 s** with the full jarvis+import graph loaded (no parallel tasks) · **~8 s** in the real boot. So the ~4 s+extra was the WHOLE boot storm (server.start's mission/wiki-FTS/session DBs ++git-prune + channels + mission-recovery), NOT brain/mcp (pass 5.4) and NOT the+doc/skill scans (pass 5.4) — both of those, gated alone, left base at ~8 s.++### Change+`_run_backend::_heavy_backend_bg` now awaits `self._wake_model_loaded` (bounded+12 s) BEFORE `server.start()` too — i.e. the ENTIRE heavy backend (server.start++ set_app + brain + mcp + workflows + conductor) runs behind the wake-model+load. The bootstrap already serves the static UI shell, so only the API DATA ++background services land a few seconds later — exactly the user's "window ->+Jarvis-Bar -> rest" order.++### Verified (real restart 20:15) — works, nothing broken+- **`Wake-model pre-warm done in 3375 ms`** (was ~8 s) — base loads ~alone now.+- `{"ready":true}` from /api/voice/status DURING warm-up + **/api/missions+ returns real mission data** → the bootstrap holds + delegates correctly; UI+ data is NOT broken, just a few seconds later.+- `Wake-model upgraded base/cpu -> turbo/cuda` (hot-swap) + channels + doc/skill+ scans all complete after wake. No VOICE OFFLINE, no gate timeout, no Traceback.+- `pytest tests/unit/ui tests/unit/plugins/stt`: 542 passed, 4 failed — the SAME+ 4 pre-existing/unrelated (antigravity provider-spec of a parallel session; 3×+ setup_routes obsidian_setup_seen state polluted by the live app). Zero new+ regression from all of pass 5.1-5.5.++### Net result — the wake-model load is now at its floor+- **Wake-model load: ~82 s cold (turbo+JIT) / ~8-11 s warm → ~3.4 s** (base/cpu,+ no CUDA JIT, runs ~alone). That is ~the 3.2 s isolated floor. Custom wake+ phrase preserved; turbo accuracy preserved via background hot-swap.+- Order: window (bootstrap shell ~1 s) → Jarvis-Bar / wake (~3.4 s after the+ wake-loop arms) → rest (server.start data, channels, brain, mcp).++### What still bounds warm restart→wake (~12 s) — the import floor (out of my lane)+The remaining time is the per-process floor the user already accepted for the+window (Part 4): interpreter start + the jarvis import graph + (on a RESTART)+the old-process teardown ≈ 6-9 s before the wake-loop even arms. Cutting it needs+the launcher early-bind (bind/arm before `import jarvis.ui.desktop_app` ++load_config) — flagged "open/risky" in Part 4 (touches the primary runtime ++thread/token coupling) and affects ALL paths, not just wake. A literal 20× on+warm restart is below that floor (same finding as the window passes); the+real-machine cold-cache win (the user's actual "extrem lang") is the ~10-24×.++---++# PART 6 — step-6 attempt, rollback, restart-hang incident + recovery (2026-06-27)++## What happened+Tried step 6 (early wake-model pre-warm in a daemon thread before the WebServer+ctor, to overlap the ~2.5 s ctor). My **measurement restart** of the running+step-5 instance (PID 51240, the 20:15 boot) sent it into a shutdown that HUNG:+"Task was destroyed but it is pending" then no clean exit; it kept holding the+admin port 47821. A fresh boot could not bind (single-instance/lock), so the app+went black-screen / unresponsive (wake word + chat dead).++## Resolution+- **Rolled back step 6** (the early-prewarm in `_run_backend` + the prewarmed+ consumption in `_start_speech_and_orb`). Code is back at the VERIFIED step-5+ state (base load 3.4 s, cold ~10-24×). py_compile clean. NOTE: the DURABLE+ breakthrough (base 3.4 s) was step 5, not step 6 — step 6 was never verified.+- **Added a defensive shutdown fix** (`DesktopApp.shutdown`): cancel+ `_wake_upgrade_task` and `loop.call_soon_threadsafe(self._wake_model_loaded.set)`+ so a task parked in the heavy-backend wake gate can't sit pending and stall+ `loop.stop` → prevents this self-restart hang recurring. py_compile clean.+- Could NOT kill PID 51240 from the agent terminal: Stop-Process + taskkill ++ taskkill-with-sandbox-off all "Access Denied" (it runs elevated / High+ Mandatory; the agent shell is Medium, non-admin). A `run.bat` relaunch was+ blocked by single-instance while 51240 held the lock.+- **User action required to recover:** Windows restart (simplest) OR admin+ Task-Manager → end `pythonw.exe` PID 51240. After that the app autostarts+ clean on the rolled-back fast code.++## Net status of the original goal+Wake-boot speed goal is effectively DONE for the wake-model load (the user's+"extrem lang"): steps 1-5 shipped — serve-wake-first reorder + progressive+base/cpu→turbo hot-swap + GIL-gate + housekeeping-gate + whole-heavy-backend+behind the wake gate. Wake-model load 82 s cold / 8-11 s warm → **3.4 s** (at+the ~3.2 s isolated floor). Custom wake phrase preserved, accuracy preserved via+background turbo hot-swap, no extended features changed. Remaining warm-restart+time is the import floor (~6-9 s) the user already accepted for the window.+NEXT after recovery: confirm the clean boot (Wake-Loop gestartet + base ~3.4 s ++/api/missions real), optionally re-measure warm restart→wake with the shutdown+fix; do NOT retry step 6 (marginal + caused this incident).++---++# PART 7 — the REAL wake bottleneck found: the ctranslate2 IMPORT (2026-06-28)++## The measurement that re-frames the whole "ready to talk" path (measure, never guess)+Profiling each component of the wake path in a fresh process (`-X importtime` ++direct timing) found the dominant cost was NOT what every prior pass attacked:++| component on the wake path | warm | cold cache |+|---|---:|---:|+| `import jarvis.ui.desktop_app` | 465 ms | — |+| `import fastapi` | 254 ms | — |+| `load_config` | 264 ms | — |+| **`import faster_whisper` (pulls `ctranslate2`)** | **2914 ms** | **14397 ms** |+| wake-model `_ensure_model` (base/cpu) | ~3400 ms | ~3400 ms |++`-X importtime` on `ctranslate2` showed why: its `__init__` ends with+`from ctranslate2 import converters, models, specs`, and+`ctranslate2.converters.transformers` eagerly imports the **full transformers+(~1.5 s) → torch (~1.3 s)** stack — model-CONVERSION code (HF → CT2 format) the+inference engine (wake match + utterance STT) never touches. On a cold disk cache+that import alone was **14.4 s** — a huge chunk of the user's "extrem lang bis+zum Sprechen". Prior passes (5.1-5.5) optimized model-LOAD ordering; the import+itself was the bigger, unmeasured cost.++## Fix shipped (the import shield) — cross-platform, no ctranslate2 patch+`jarvis/plugins/stt/fwhisper.py::inference_only_import_shield()` — a context+manager that stubs `transformers` + `torch` as un-importable (`sys.modules[name]+= None`) ONLY for the duration of the ctranslate2/faster_whisper import, so the+converter shim's guarded import skips them. Safety: only stubs a module **not+already really imported** (never clobbers a torch loaded first by Silero-VAD), and+on exit removes ONLY the stub it set. Wrapped both heavy import sites:+`_new_whisper_model` (the WhisperModel build, used by BOTH wake and utterance STT)+and `_wake_cuda_available`'s `import ctranslate2` probe.++## Result — **ctranslate2 import 2914 ms → 170 ms warm (17×); 14397 ms → ~170 ms cold (~85×)**+Measured end-to-end through the real seam:+`_new_whisper_model(base/cpu)` = shielded import + model build = **1108 ms**+(was ~2.9 s import + ~1 s build ≈ 4 s). Inference verified working (real+`transcribe` returns); a later real `import torch` still loads (Silero-VAD path+intact). This saves **~2.7 s warm / up to ~14 s cold** off the "ready to talk"+path, on ALL OS, for BOTH wake and utterance STT.++## Net effect on "ready to talk" (custom wake phrase, the user's complaint)+- Cold cache (the worst case): the ctranslate2 import drops from ~14 s to ~0.17 s,+ ON TOP of pass 5.3's base/cpu-first (no ~71 s CUDA JIT). The cold "extrem lang"+ is now dominated only by the Python interpreter + the wake-model load.+- Warm: ~2.7 s removed from the wake path.++## Verification (commands run this pass)+- `pytest tests/unit/plugins/stt/`: **26 passed**.+- `pytest tests/unit/speech/`: **803 passed** + the 9 `test_warmup_two_phase.py`+ failures FIXED (they were from the earlier honest-ready `_whisper_wake_enabled`+ reference — the `__new__`-built test pipe now sets it; **11 passed**). Zero new+ regression from the import shield.+- `py_compile` clean (fwhisper.py, stt/__init__.py).+- Direct timing: ctranslate2 import 2914 → 170 ms (transformers/torch shielded);+ real transcribe OK; real `import torch` after shield OK.++## Also this pass — the honest voice-ready UI indicator (separate from speed)+`pipeline.py::_warmup` now emits `VoiceBootStatus(ready=False, "preparing_wake")`+for the custom rolling-whisper path (instead of a premature ready=True), and+`ready=True, "wake_model_loaded"` only after the wake model actually loads (or+`"wake_model_lazy"` on load failure so the UI never stays stuck). The frontend+`VoiceWarmingBanner.tsx` surfaces this PROMINENTLY (amber "starting up / getting+ready to listen" → green "you can speak now"), so users stop speaking before wake+can hear ("I talked, nothing happened, is it broken?"). `/api/voice/status`+defaults `_voice_ready=False` and flips only on a real `ready=True` event.diff --git a/docs/plans/b3/00-OVERVIEW.md b/docs/plans/b3/00-OVERVIEW.mdindex dc5e1cc7d7..dc3672f6e8 100644--- a/docs/plans/b3/00-OVERVIEW.md+++ b/docs/plans/b3/00-OVERVIEW.md@@ -103,7 +103,7 @@ These shapes are **non-negotiable**. Any agent that deviates breaks the merge."type": "entity", "entity_kind": "person", "slug": "sam","aliases": [], "created": "2026-05-13", "updated": "2026-05-13"},- "body_md": "# Sam\n\n## Summary\nSam is a person born in 1976.\n\n## Facts\n- Born in 1976.\n…",+ "body_md": "# Sam\n\n## Summary\nSam is a person born in 1990.\n\n## Facts\n- Born in 1990.\n…","wikilinks": ["alex"],"stats": {"words": 17, "bytes": 289, "mtime": 1715590000.0}}@@ -128,7 +128,7 @@ These shapes are **non-negotiable**. Any agent that deviates breaks the merge."ok": true,"slug": "sam","backlinks": [- {"slug": "alex", "title": "Alex", "snippet": "...father is [[sam]] — born 1976..."}+ {"slug": "alex", "title": "Alex", "snippet": "...father is [[sam]] — born 1990..."}]}diff --git a/docs/plans/b3/AGENT-A-backend-api.md b/docs/plans/b3/AGENT-A-backend-api.mdindex 8e52b7b805..30d9f6a7bf 100644--- a/docs/plans/b3/AGENT-A-backend-api.md+++ b/docs/plans/b3/AGENT-A-backend-api.md@@ -93,7 +93,7 @@ Minimum 12 cases: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/sam` → body contains "1976".+2. `GET /api/wiki/page/sam` → body contains "1990".3. `GET /api/wiki/graph` → ≥ 2 edges.4. `GET /api/wiki/search?q=pizza` → 1 hit on alex.5. `GET /api/wiki/backlinks/sam` → 1 hit (alex).diff --git a/docs/superpowers/plans/2026-06-16-artifact-download-and-view.md b/docs/superpowers/plans/2026-06-16-artifact-download-and-view.mdindex 7dc7cebbf7..7d25227716 100644--- a/docs/superpowers/plans/2026-06-16-artifact-download-and-view.md+++ b/docs/superpowers/plans/2026-06-16-artifact-download-and-view.md@@ -1259,7 +1259,7 @@ the tray `pythonw.exe`). If the app is not running, launch it: `run.bat`.- [ ] **Step 4: Live-verify download + view (the pywebview unknown)**-In the Outputs view, open a session with a `.md` artifact (e.g. the `umzug-deutschland-melbourne.md`+In the Outputs view, open a session with a `.md` artifact (e.g. the `market-research-summary.md`deliverable). Verify, recording the result in the SIGNOFF notes:1. **Download** button → file lands in the browser's Downloads folder. In the **desktop pywebview**window specifically, confirm the `<a download>` actually saves the file. If pywebview swallows itdiff --git a/docs/superpowers/plans/2026-06-16-jarvis-agents-recap-doomloop-fix.md b/docs/superpowers/plans/2026-06-16-jarvis-agents-recap-doomloop-fix.mdindex f9090ecbf5..55565a6b5d 100644--- a/docs/superpowers/plans/2026-06-16-jarvis-agents-recap-doomloop-fix.md+++ b/docs/superpowers/plans/2026-06-16-jarvis-agents-recap-doomloop-fix.md@@ -28,8 +28,8 @@ Queried `data/missions.db` directly. Findings:recap as a worker mission).- `019ed04e/051` → `source_actor=ui`, `parent_mission_id` set (the **"Restart"button re-ran** a failed recap-mission, re-dispatching the doomed prompt).-- A genuine **comparison control**: the last working mission (16:45, "write a USA- migration research report") had the **same** `cli: codex, model: '', pid: 0,+- A genuine **comparison control**: the last working mission (16:45, "write a+ market analysis research report") had the **same** `cli: codex, model: '', pid: 0,tokens: 0` — and produced a real `.md` diff and was APPROVED. So **the workerand codex are fine**; the differentiator is the *prompt*, not the model.@@ -105,7 +105,7 @@ landed **2026-06-15 19:47–20:05** (`71accabf`/`9353f10f`/`d99a119d`), right afthe last 16:45 success.**Root cause #2 — the codex worker's Node.js runtime was missing** (Facet C; the-genuine "Melbourne→Sydney research" task, `019ecc5a`). **Disk-proven:** both+genuine "renewable-energy market research" task, `019ecc5a`). **Disk-proven:** bothworktrees' `logs/stderr.log` read *"node … konnte nicht gefunden werden"* and thediff patches are **0 bytes**. `codex.cmd` is a Node app; with `node` absent fromthe worker subprocess's inherited PATH it exited code 1 with no stdout → empty@@ -142,7 +142,7 @@ tests) confirms the exemption IS present in the current working tree.| # | Item | Owner | Status ||---|------|-------|--------|-| 1 | Confirm the genuine "Melbourne→Sydney research" task (Facet C) — did codex truly execute, or no-op? Does the critic net now approve it? | Worker-Backend agent | confirming |+| 1 | Confirm the genuine "renewable-energy market research" task (Facet C) — did codex truly execute, or no-op? Does the critic net now approve it? | Worker-Backend agent | confirming || 2 | Confirm the 16:45→failure cutover commit + any banned-model pin (the "Fable 5" angle) | Cutover-Config agent | confirming || 3 | Make the fix live: hunk-isolated commit of the doom-loop changes (do NOT sweep parallel sessions' unrelated hunks), then restart the app | — | pending || 4 | Live re-drive: drag a finished + a failed card onto the dock → expect a spoken/chat recap and **no new mission row** | — | pending |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.mdindex 196fb00bed..2ae9a6b453 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@@ -12,7 +12,7 @@ headless VPS-browser runtime).The Outputs view (`jarvis/ui/web/frontend/src/views/OutputsView.tsx`, component `ArtifactRow`,~lines 505–577) renders deliverable artifact files such as-`tasks/<task_id>/artifacts/files/umzug-deutschland-melbourne.md` **only as an in-app text preview**.+`tasks/<task_id>/artifacts/files/market-research-summary.md` **only as an in-app text preview**.There is no way to get the file out except manually selecting and copying the text and pasting itinto another app (Google Docs/Sheets, etc.).