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.

fix(speech): calibrate wake energy gates + mic meter to the session noise floor

Ruben Lütkef037ddb2579c
diff --git a/docs/diagnostics/ap23-audit-wave2-2026-07-07.md b/docs/diagnostics/ap23-audit-wave2-2026-07-07.md
index a0df5b1b8b..8aae3ea71b 100644
--- a/docs/diagnostics/ap23-audit-wave2-2026-07-07.md
+++ b/docs/diagnostics/ap23-audit-wave2-2026-07-07.md
@@ -171,7 +171,20 @@ some landed under auto-save messages, content verified):
- Findings 6+8+10 (wheel package-data for all runtime files; window_state
UTF-8 decode; actionable MCP node-missing hint): `400ad4bb`.
-Deferred follow-ups remain open (9, 12, 14, 15) plus two cosmetic tidies (the
+Deferred follow-ups remain open (12, 14, 15) plus two cosmetic tidies (the
dispatch-with-review tool description still says "OpenClaw" → rename per
CLAUDE.md §4; two pre-existing German strings in `mcp/client.py`). No push —
these are local commits pending the maintainer's explicit publish.
+
+Finding 9 LANDED 2026-07-09 (pre-launch wave): session-relative noise-floor
+calibration of the wake energy gates, lower-only —
+`SessionNoiseFloor` in `jarvis/speech/rolling_whisper_wake.py` scales
+`min_rms`/`min_peak`/`match_min_rms` down toward `K x floor` on a quiet mic
+while capping every effective gate at its legacy absolute (maintainer-mic
+behavior bit-identical; AP-27 discriminator preserved by construction:
+ghosts sit AT the floor, the match gate at 1.4x the floor). The mic-meter
+part of Bug 17 landed in the same wave (`jarvis/audio/mic_level.py`:
+`_MIN_NOISE_FLOOR` 0.001→0.0002, `_MIN_PEAK` 0.01→0.004, auto-gain
+reference starts at the floor). Guards:
+`tests/unit/speech/test_rolling_whisper_wake_noise_floor_calibration.py`,
+`tests/unit/audio/test_mic_level.py` (quiet-laptop + muted-mic pins).