Opening menu and hands-free mode: call an agent by name (0.3.0)

The app now opens on a menu, which is the root page: "Hands free" first,
"Agents" second. Agents is the 0.2.0 app unchanged. Hands free is the same
agents, conversations and question path with one flag set: the microphone
listens while the app is at rest and the app does not leave by itself.
The mode is never remembered; every launch starts at the menu with the
microphone closed, and double tap at Ready returns to the menu and closes
it.

Client: a loudness-only speech segmenter (core/vad.ts) cuts the stream
into utterances; each goes to the bridge for a wake check. "Wendy, <q>"
becomes a text turn to Wendy, with what was heard shown while she works.
A name alone starts a recording that sends itself when the speaker stops.
The status line starts with a dot for exactly as long as the microphone is
open at rest. In wake mode every microphone open and close goes through
one serialised reconciler; without the option the old path is untouched.

Bridge: POST /v1/wake transcribes one utterance in memory and reports
whether it BEGAN with an agent's name (first word of the display name, or
an alias from HERMEVEN_AGENT_<ID>_WAKE). Exact match only; a near miss is
reported as one word and never acted on. Creates no turn, stores nothing,
returns and logs nothing that was not addressed to an agent. One check at
a time per device, HERMEVEN_WAKE_CHECKS_PER_MINUTE (30).

Docs: decision 0004, bridge API, security gaps 3c/3d, device plan D.
The manifest's microphone description changed.

Not reviewed, not deployed, not uploaded, not device-tested.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Dan
2026-11-28 10:52:06 -08:00
co-authored by Claude Fable 5.2
parent 75b7ea1eff
commit e1d183b54d
26 changed files with 1847 additions and 48 deletions
+14
View File
@@ -77,6 +77,20 @@ If A13 fails, stop and report it. It is a product-level blocker, not a bug to wo
| C10 | Battery: glasses and phone percentage at start and after a stated duration and number of questions. | The four numbers and the duration. Do not extrapolate. |
| C11 | Per question: seconds from second tap to answer, noted for at least 10 questions. | The raw list. The phone page shows the STT and agent split for each. |
## D. The menu and hands-free mode (0.3.0; nothing here has been run)
| # | Do | Record | Answers |
|---|---|---|---|
| D0 | "Hey Even, launch Pepper". | Does the menu appear with `>` beside "Hands free"? Do swipes move it? Does double tap at Ready come back to it, and double tap on the menu show the exit dialog? | The menu on a real G2; whether `>` and the indent render. |
| D1 | Tap "Hands free" and leave it. | Does the status line start with `●`? Does the body list the names? | The microphone opens without a further tap on a real G2. |
| D2 | Say "Wendy, what time is it" at a normal volume. Repeat for each agent, five times each. | How many reached the right agent. For misses, the "heard ..." line in Diagnostics, if any. | Detector thresholds; how Whisper spells each name (aliases to add). |
| D3 | Say only a name, wait for "... is listening", ask, stop speaking. | Seconds from the name to the screen changing; whether the question was sent whole. | Name-only flow; the 1.2 s end-of-speech pause. |
| D4 | Talk to someone for two minutes without using a name. Then mention an agent mid-sentence. | Did anything start? | False triggers. |
| D5 | Same with a television or music on. | Did anything start? Did a real "Wendy, ..." still work? | Noise. |
| D6 | Leave it open 30 minutes, phone locked in a pocket, then say "Pepper, are you there". | Did it answer? Battery of glasses and phone before and after. | Whether the stream survives; battery cost. |
| D7 | While it is open, have a notification arrive. | Did it reach the lenses? | The cost of staying open. |
| D8 | Double tap back to the menu, choose "Agents". | Does `●` go away, does tap still work, does the app leave by itself again? | Leaving hands free. |
## Reporting
Anything that fails in A13, A14, A15 or C1 is a blocker or a stated limitation of the product, to