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.

perf(boot): final clean median 5.1s voice-usable - tighten voice budget to 20s

Ruben Lütke808193a360c5
diff --git a/docs/diagnostics/BOOT-TTU-NOTES.md b/docs/diagnostics/BOOT-TTU-NOTES.md
index 22cf627d0f..58b040881a 100644
--- a/docs/diagnostics/BOOT-TTU-NOTES.md
+++ b/docs/diagnostics/BOOT-TTU-NOTES.md
@@ -304,6 +304,18 @@ not worth it. The import mountain is hereby part of the documented floor;
the only remaining structural lever is decoupling the voice path from the
WebServer import/ctor entirely (deep refactor, out of scope).
+## Iteration 13 — FINAL clean median (quiet machine, 5 runs + warmup)
+
+- **VOICE_USABLE 5,111 ms median** (5.37/5.11/4.93/5.14/5.06 s — tight, no
+ outliers), window 1,185 ms. Prefetch+prime combined: 12.06 s -> 5.11 s
+ (2.36x); vs the same-method pre-fix baseline 15.8 s -> **3.1x**; vs the
+ ~200 s live experience -> **~40x**. Voice budget tightened to 20 s
+ (~4x median, per the guard's own philosophy).
+- FINAL numbers across the loop: Linux headless 196 ms (20.6x vs committed
+ baseline); Windows window 1.2 s (16x vs 19.3 s same-method); Windows
+ voice-usable 5.1 s (3.1x same-method; ~40x vs live). macOS: method
+ committed, unmeasured (no hardware).
+
## How to add a feature WITHOUT slowing boot (doctrine)
- Nothing new runs before VOICE_READY. New subsystems hook into
diff --git a/scripts/ci/check_boot_budget.py b/scripts/ci/check_boot_budget.py
index 37b6d7d0a1..8b8589bd6c 100644
--- a/scripts/ci/check_boot_budget.py
+++ b/scripts/ci/check_boot_budget.py
@@ -13,11 +13,12 @@ Anchors and budgets (override via env for slower CI boxes):
- window: spawn -> the UI shell serves (``median_wall_ms``).
Budget ``JARVIS_BOOT_BUDGET_WINDOW_MS`` (default 8000; measured median on
the reference box: ~1.2-2.2 s).
-- voice TTU: spawn -> ``VOICE_READY_MS`` (wake armed + speech pipeline live).
- Budget ``JARVIS_BOOT_BUDGET_VOICE_MS`` (default 30000; measured median on
- the reference box: ~8.0 s). Checked only when the host can run the voice
- stack (audio device present) — a headless CI box checks the window anchor
- and skips voice honestly instead of faking a pass.
+- voice TTU: spawn -> ``VOICE_USABLE_MS`` (wake model warmed + VAD + TTS up).
+ Budget ``JARVIS_BOOT_BUDGET_VOICE_MS`` (default 20000; clean 5-run median
+ on the reference box after the prefetch+prime work: 5.1 s). Checked only
+ when the host can run the voice stack (audio device present) — a headless
+ CI box checks the window anchor and skips voice honestly instead of faking
+ a pass.
Budgets are deliberately ~4x the measured medians: loose enough that machine
variance never flakes, tight enough that every regression class we have
@@ -49,7 +50,7 @@ LATEST = REPO_ROOT / "desktop-boot-latest.json"
SKIP_EXIT = 78 # EX_CONFIG-ish: "could not measure" — neutral, not a failure
DEFAULT_WINDOW_BUDGET_MS = 8_000.0
-DEFAULT_VOICE_BUDGET_MS = 30_000.0
+DEFAULT_VOICE_BUDGET_MS = 20_000.0
def _audio_capable() -> bool: