CODY-025: stopped or replaced speech never starts; CODY-026: README; note when the phone page holds off idle exit

- ui/speaker.ts: a generation counter. Every play() and stop() advances it; a play() that
  finds it changed after resume() or decodeAudioData() returns without creating a source.
- apps/even-client/test/speaker.test.ts: nine tests with a fake sound engine whose resume and
  decode finish when the test says.
- README: 'Not in this slice' no longer says text-to-speech is absent.
- controller: one diagnostic line when phone-page activity starts holding off the idle exit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Dan
2026-11-29 12:31:45 -08:00
co-authored by Claude Fable 5.2
parent 958567453c
commit 2a4af63f00
4 changed files with 255 additions and 11 deletions
+8 -5
View File
@@ -19,7 +19,7 @@ the implementer read from the server's log, and what Cody reproduced independent
|---|---|
| **What is where today** | Server (bridge and static page): `d65beeab77288049b801e4969ac9b68821833b23`, since 2026-11-29 19:50 UTC. Even account, beta channel: client 0.4.1, built from that commit. Both deployed and checked by the implementer, not reproduced by Cody. This repository's client is **0.5.0, a candidate: not deployed, not uploaded, not on the device.** |
| Client, bridge and contract | Implemented. |
| Automated tests with fakes (375) | Passing. |
| Automated tests with fakes (384) | Passing. |
| Client in Even's official simulator | 9 scenarios, run by the implementer, simulator only. Eight run with the menu, hands free and live preview switched off (the tap path and idle exit); the ninth launches the app as shipped and covers the menu and the microphone opening and closing for hands free, with a silent microphone, so no name is ever heard. Live preview is not exercised in the simulator. One unexplained failure of the idle-exit scenario in the Round 19 runs; see `docs/test-evidence.md`. |
| Bridge against a real Hermes gateway | Passing (9 scenarios) with a **stub model**. |
| Built-in speech-to-text (Whisper, in the bridge) | Passing (11 scenarios) on a real speech recording, including with no network. Not yet on audio from the glasses. |
@@ -34,7 +34,7 @@ the implementer read from the server's log, and what Cody reproduced independent
| Opening menu (Hands free, Agents); hands-free mode: calling an agent by name ("Wendy, ...") | Introduced in 0.3.0 (`44ea114`, no longer deployed); part of what is deployed and on beta now (0.4.1, `d65beea`). Fakes: passing. Simulator: menu and microphone open/close only (scenario 9). Device: tried by Dan on 2026-11-28, "pretty cool"; a name reached an agent and a different name switched agent. No item-by-item report; section D of the device plan has not been run. `docs/decisions/0004-always-listening.md`, `docs/evidence/device/2026-11-28.md`. |
| Words shown while recording (Agents only); "Heard: ..." while the agent works | Introduced in 0.4.0; part of what is deployed and on beta now (0.4.1, `d65beea`). Fakes: passing. Not in the simulator. Device, Dan, 2026-11-28: "Heard" appears; **live words did not appear**, cause unknown; and Dan wants them in hands free, not Agents (open, not built). `docs/decisions/0005-live-preview.md`, `docs/evidence/device/2026-11-28.md`. |
| Sound check on the phone page (can the page play sound, untouched, later; which outputs it sees) | 0.4.1, deployed and on beta (`d65beea`). A probe for issue #1, not a feature. Fake sound engine: passing. Device, Dan, 2026-11-29, earbuds connected: tone heard in the earbuds, allowed without a touch, played 20 s after a press, no phone voice, one unnamed output (`docs/evidence/device/2026-11-29.md`). Not in the simulator. |
| Answers read aloud ("Voice" on the opening menu; ElevenLabs voices per agent, called by the bridge; first 900 characters) | 0.5.0 candidate. Fakes only: a fake provider and a fake loudspeaker. **The real provider has never been called; MP3 playback has never run in a browser, the simulator, the Even app or on the device; not deployed, not uploaded.** `docs/decisions/0006-spoken-answers.md`. |
| Answers read aloud ("Voice" on the opening menu; ElevenLabs voices per agent, called by the bridge; first 900 characters) | 0.5.0 candidate. Fakes only: a fake provider and a fake loudspeaker. The playback code itself is tested against a fake sound engine. **The real provider has never been called; MP3 decoding and playback have never run in a real browser, the simulator, the Even app or on the device; not deployed, not uploaded, not installed.** `docs/decisions/0006-spoken-answers.md`. |
| Real tools and approval flow | One tool use seen (a Telegram message, reported by Dan). The approval path has **not** been exercised against a real agent. |
| Sustained load, backups, monitoring, upgrades on the server | **Not verified.** |
| Clean-host install (`deploy/install.sh`) | Proven on a disposable Ubuntu 24.04 container with systemd (`tests/deploy/runbook-proof.sh`), not on a second real server. |
@@ -128,6 +128,9 @@ What each suite does and does not show is in `docs/test-evidence.md`.
## Not in this slice
On-device wake-word detection (names are recognised on the bridge), camera features,
text-to-speech, billing, store launch, and running alongside Even's native captions (the public
SDK does not offer it).
On-device wake-word detection (names are recognised on the bridge), camera features, speech
made on the phone or by a native Android component (the 0.5.0 candidate's spoken answers are
generated by the bridge through ElevenLabs and only played by the page; see
`docs/decisions/0006-spoken-answers.md`), knowing which sound output is in use or whether
earbuds are worn (issue #1), billing, store launch, and running alongside Even's native captions
(the public SDK does not offer it).