diff --git a/docs/handoff/2026-11-29-cody-round-21.md b/docs/handoff/2026-11-29-cody-round-21.md new file mode 100644 index 0000000..f1eed61 --- /dev/null +++ b/docs/handoff/2026-11-29-cody-round-21.md @@ -0,0 +1,90 @@ +# Handoff for Cody, Round 21 + +From: Claude (implementation). Date: 2026-11-29 (UTC). + +**Not reviewed.** Round 20: `e4c102a5391464cec6f540f5a41f5557a3f61e0b`, SHIP / SHIP FOR TRIAL. +That commit **was** deployed and uploaded as 0.4.0 on 2026-11-28 (Dan: "deploy"); record in +`docs/evidence/device/2026-11-28.md`, second half. + +| Item | Value | +|---|---| +| Branch | `cody/droplet-deploy` | +| `main` | `f02715fb6487f4e2ff0adeccfaad2403e1724aa5` (unchanged) | +| Code change | `b57505406b2dce9104c2fdd8c46f0f0dc2c36e64` | +| New head | the tip after this push (this file and evidence only on top of the code change) | + +Dan, 2026-11-29, on being shown the plan below: "sure, send to cody - then we'll move through +testing and the short list." + +## 1. What came back from the 0.4.0 trial + +Quoted in full, with the bridge log beside it, in the evidence file. In short: + +- Hands free works on 0.4.0 (six matched names in ten minutes) but was "incredibliy slow" with + background music; Dan attributes it to the music. The waits were not measured by anything. +- "Heard: ..." was seen. **Live words were not seen on the device, including (Dan's last report) + in Agents. Cause unknown.** I could not reproduce it with fakes, and the deployed bridge logs + nothing about previews. +- **Round 20's contract was my misreading.** Dan wanted live words when talking to an agent in + hands free and nowhere else; I built Agents only. Recorded in 0005. **Not changed in this + round**, so your Round 20 constraint "Do not allow hands-free recordings to invoke live + previews" still holds for this SHA; it will need restating when that change comes. +- Two tapped questions took 39.9 s and 24.0 s of agent time. Not investigated. + +## 2. Timing logs (bridge) + +`wake.checked` on every name check: `device_id`, `audio_ms`, `check_ms`, `matched`, +`near_miss` (a boolean, not the word). `preview.done` on every preview: `device_id`, +`audio_ms`, `preview_ms`, `empty`. No text. A failed name check still logs only +`wake.transcription_failed`. Purpose: tell a clip the glasses held too long from a slow check, +see whether the glasses request previews at all, and measure the delay you declined to accept a +bound for. + +To judge: this is new metadata. With it the log shows when, and for how long, someone spoke near +the glasses in hands free, for speech that was not addressed to an agent. Stated in security 3c. + +## 3. Sound check (client), for issue #1 + +Dan: "Pivot time - I'd like to get the voice thing going for the ability to get spoken replies +back in my galaxy pro ear buds when they're connected. Part of the scope in +https://git.xylo.gg/Xylo-Digital/hermeven/issues/1" + +Issue #1's gate says it "does not start implementation". What is here is a probe, not the +feature: `apps/even-client/src/ui/soundCheck.ts`, a collapsed section on the phone page. My +proposal to Dan, which he has not been asked to confirm beyond the quote above, is to try the +existing page before a native companion: if the Even app's WebView may play sound, Android routes +it to the selected output by itself. The SDK (0.0.16) has no sound output call; it does report +`isWearing` for the glasses. The probe answers what cannot be known from here: sound at all; +sound with no touch on the phone; sound 20 s later with the phone locked; which outputs the page +can see; whether the phone's own voice is available. + +To judge: +- It creates an `AudioContext` and calls `resume()` when the page opens, silently, to read + whether sound is allowed without a gesture. Nothing is played without a button press. +- It calls `enumerateDevices()` at open and on `devicechange`. Output labels (which may be a + device name such as the earbuds') are shown on the page only: not logged, not noted in + Diagnostics, not sent. +- No microphone use, no bridge call, no storage. +- **No automated test covers it**, and it has not run in a browser by my hand: typecheck and + build only. The nine simulator scenarios pass with it mounted, which shows it does not break + the page there and nothing more. +- No ElevenLabs key, voice or call exists anywhere in this change. + +## 4. Other + +- Client version 0.4.1 (an upload needs a new number). +- One new integration test file section: hands free after an Agents recording with menu, wake + and preview all enabled, and straight into hands free. Written to chase Dan's first report; + they pass, so they reproduce nothing. +- Read-only inspection of the production host beyond `journalctl`: two short `tcpdump` runs on + the loopback port, described at the end of the evidence file. Disclosed because your + constraints name production hosts; nothing was modified. + +## State + +Server: bridge `e4c102a`. Even account: 0.4.0 on beta. Nothing in this round is deployed, +uploaded or installed. + +## Checks + +`docs/test-evidence.md`, "Round 21". diff --git a/docs/test-evidence.md b/docs/test-evidence.md index d561510..7c7515f 100644 --- a/docs/test-evidence.md +++ b/docs/test-evidence.md @@ -858,3 +858,34 @@ Negative coverage kept from Round 19, all still in `tests/integration/wake.test. preview completion; final transcript differing from the previews; old-bridge and no-STT fallback; per-device busy and rate limits for both routes; no transcript in any log line; exactly one turn and one execution. Added: zero preview requests in hands free. + +## Round 21 (2026-11-29): sound check probe, timing logs, 0.4.1, on `b57505406b2dce9104c2fdd8c46f0f0dc2c36e64` + +``` +$ npm run typecheck clean +$ npm test Test Files 18 passed (18); Tests 351 passed (351) +$ npm run client:build built (as part of pack) +$ HERMEVEN_BRIDGE_ORIGIN=https://hermeven.xylo.gg npm run -w @hermeven/even-client pack (twice) + hermeven.ehpk 106441 bytes, SHA-256 + e54aeca665bc551e21a982039c91606e3be970890a52a3b1cfb4031df4d5427c both times; not uploaded +$ npm run test:real-stt Tests 11 passed (11) +$ npm run test:real-hermes Tests 9 passed (9) +$ npm run test:simulator 3 runs, 9 passed each time +$ bash -n deploy/install.sh tests/deploy/runbook-proof.sh ok +$ git diff --check origin/main...HEAD ; git diff --check e4c102a HEAD clean (on the committed SHA) +``` + +All of the above were run on the code as committed except that the documentation files in the +same commit were edited while the tests ran; they are not inputs to any test or to the package. +`npx vitest run --project integration tests/integration/wake.test.ts` alone: 34 passed, on the +tree before the sound check and the version change were added (it is included in `npm test`, +which was run after). + +**Not run:** `npm ci`; `caddy validate` (not installed here); `systemd-analyze verify` and +`tests/deploy/runbook-proof.sh` (no file under `deploy/` changed since Round 18). **No test of +any kind exercises the sound check**; it has not been opened in a browser. The idle-exit +simulator failure from Round 19 did not recur in these three runs and remains unexplained. + +Negative coverage kept in `tests/integration/wake.test.ts`: everything listed for Round 20, +including zero preview requests in hands free. Added: the `wake.checked` lines for unmatched, +near-miss and matched checks carry no field beyond ids, lengths, durations and two booleans.