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
chore: auto-save WIP via Claude stop-hook safety net (2026-07-02 09:00)
Ruben Lütke444b260273ab
diff --git a/docs/diagnostics/BOOT-TTU-NOTES.md b/docs/diagnostics/BOOT-TTU-NOTES.mdindex c7ef263410..0eb3864d43 100644--- a/docs/diagnostics/BOOT-TTU-NOTES.md+++ b/docs/diagnostics/BOOT-TTU-NOTES.md@@ -74,9 +74,25 @@ custom_onnx engine had hidden.the poll loop warms it once itself — exactly one loader either way.(c) `_wake_model_is_loaded` (heavy-backend gate) now prefers `is_warm`, sothe backend CPU storm starts only after the priming inference.- Expected effect: wake-model pre-warm back to ~4 s isolated (from 114.7 s),- gate opens before its 12 s timeout, no self-heal rebuild during boot.- MEASUREMENT PENDING (next boot).+ **MEASURED (boot 2026-07-02 08:59, Windows):** pre-warm 114,718 ms ->+ **9,828 ms** (11.7x); zero transcribe timeouts / TranscribeBusy / self-heal+ rebuilds during boot; poll starts cleanly after 10.1 s; overlay revealed via+ "voice-ready" (was 60 s timeout-fallback). Rough wake-ready TTU ~50 s+ (was ~200 s).++## Next bottlenecks (iteration 3+)++1. ~35-40 s elapse between process start and "Pipeline bereit" (08:58:5x ->+ 08:59:33) — profile the bootstrap chain BEFORE the speech pipeline+ (imports, registries, TTS init, uvicorn bootstrap...). This is now the+ dominant TTU block.+2. Pre-warm 9.8 s vs ~4 s isolated — check what still contends (gate opens+ correctly now, but something still races the load).+3. Build the reproducible TTU benchmark (cold start, several runs, median) ++ commit; then per-OS baselines (Linux via headless python:3.11-slim, macOS+ via CI or documented method).+4. Startup-budget regression guard test + "how to add a feature+ boot-neutrally" doc note.## Lessons (do not repeat)diff --git a/jarvis/speech/rolling_whisper_wake.py b/jarvis/speech/rolling_whisper_wake.pyindex 15ae4cbbb1..07e75497fc 100644--- a/jarvis/speech/rolling_whisper_wake.py+++ b/jarvis/speech/rolling_whisper_wake.py@@ -583,7 +583,12 @@ class RollingWhisperWake:)self._stat_transcribed += 1consecutive_fail = 0 # a success clears the wedge streak+ busy_since = Noneexcept TimeoutError:+ # A call STARTED (the lock was free), overran the cap and+ # was abandoned — its worker thread keeps running. Any+ # previous busy streak ended when this call took the lock.+ busy_since = Nonelog.warning("Rolling-Whisper transcription aborted after %.1fs ""(hung STT, %d in a row) — re-polling, wake stays alive",@@ -591,7 +596,31 @@ class RollingWhisperWake:_note_transcribe_fail(),)continue+ except TranscribeBusy:+ # The SAME in-flight call (usually one an earlier timeout+ # abandoned) still holds the model — NOT a new failure.+ # Counting it toward the wedge threshold let ONE+ # slow-but-alive transcription (>8 s under CPU load) tear+ # down a healthy model; the lazy cold rebuild inside the+ # next poll's timeout then re-wedged — the deaf cascade in+ # the 2026-07-02 live log. Skip the poll. Only a busy+ # streak longer than ``busy_hang_recover_s`` is a TRUE+ # hang (BUG-036, un-cancellable native call) -> rebuild.+ now_busy = time.time()+ if busy_since is None:+ busy_since = now_busy+ log.info(+ "rolling-whisper: transcription still in flight — "+ "skipping this poll (not counted as a failure)."+ )+ elif now_busy - busy_since >= self._busy_hang_recover_s:+ _recover_wedged(+ "in-flight transcription stuck for "+ f">{self._busy_hang_recover_s:.0f} s (true hang)"+ )+ continueexcept Exception as exc: # noqa: BLE001+ busy_since = Nonelog.warning("Rolling-Whisper transcription failed (%d in a row): %s",_note_transcribe_fail(), exc,