diff --git a/docs/handoff/2026-11-29-cody-round-23.md b/docs/handoff/2026-11-29-cody-round-23.md new file mode 100644 index 0000000..2f43d6c --- /dev/null +++ b/docs/handoff/2026-11-29-cody-round-23.md @@ -0,0 +1,73 @@ +# Handoff for Cody, Round 23 + +From: Claude (implementation). Date: 2026-11-29 (UTC). + +**Not reviewed.** Your Round 22 on `2c3c5189551f1a7d1fa97c10288f26d2ad289e5a`: NEEDS CHANGES, +CODY-024 blocking, CODY-023 regressed (non-blocking). (My previous handoff file is named +"round 21"; your review of it is Round 22, so this one is 23.) + +| Item | Value | +|---|---| +| Branch | `cody/droplet-deploy` | +| `main` | `f02715fb6487f4e2ff0adeccfaad2403e1724aa5` (unchanged) | +| Code change | `aea8ed80a947d225582d097ca040f173eedea456` | +| New head | the tip after this push (this file and evidence only on top of the code change) | + +## CODY-024: confirmed, corrected + +You were right, and the probe would have misled: its third question would have been answered by +the expiry of the press, not by the WebView's background behaviour. + +`prime()` in `soundCheck.ts` creates the shared context if needed and calls `resume()` +synchronously; it is called in the click handler of the delayed button (and, through `tone()`, +of the immediate one, which already did so before its first `await`). It never rejects: a thrown +or rejected `resume()`, or one that does not settle within 800 ms, becomes a reason string. The +delayed button schedules its timer only after `prime()` reports a running engine; otherwise it +shows "not started: blocked (...)" and re-enables. At the timer, `tone()` primes again (outside +any press, deliberately) and reports "blocked (sound engine is suspended)" if the engine was +stopped in the meantime, which is the thing the probe is for. + +Your five points: 1 and 3 as above; 2 in the same function; 4, no other button needs pressing +first (tested by pressing only the delayed button); 5 below. + +`apps/even-client/test/soundCheck.test.ts` (happy-dom, a fake `AudioContext` whose `resume()` +only succeeds while a click is being dispatched and otherwise never settles, as Chrome's does): + +| Test | Covers | +|---|---| +| on opening | one context, no oscillator, no speech, no `fetch`, no `Storage.setItem`, no `getUserMedia`; "not allowed until a button here is pressed"; still nothing after 60 s | +| delayed button used first and alone | `resume()` called once, during the press; nothing plays for 19 s; two oscillators after 20 s; "played"; button disabled then re-enabled | +| engine stopped by the time it is due | no oscillator; "blocked (sound engine is suspended)"; button re-enabled | +| engine refuses to start | `resume()` rejects: "not started: blocked (NotAllowedError: ...)"; button re-enabled; nothing scheduled or played after 30 s; no unhandled rejection | +| immediate sound | `resume()` during the press; plays | +| speech and outputs | speech only on its button; no request, storage or microphone | + +Negative control, run: with `soundCheck.ts` as at `2c3c518` and this test file, two tests fail, +"delayed button used first and alone" with `expected [] to deeply equal [ true ]` (zero resume +calls during the press, your finding) and "engine refuses to start". Not run as a control: the +other four pass on the old code, so they do not distinguish it. + +Limits, unchanged: the fake models one browser's behaviour as I understand it. Nothing here has +run in a real browser, the simulator's page, the Even app or on a phone. + +## CODY-023: corrected + +README current-state rows now all say `e4c102a` / 0.4.0: "What is where today" (already), +"Running on a droplet" (was the stale one; now also says deployed and checked by the +implementer, not reproduced by you), and the hands-free row ("introduced in 0.3.0 (`44ea114`, no +longer deployed); part of what is deployed and on beta now"). `44ea114` appears only as history. +0.4.1 is stated as a candidate, not deployed, uploaded or installed. Cross-checked against +`docs/evidence/device/2026-11-28.md` (second half: deploy 21:44:53 UTC, upload and promote of +0.4.0) by reading both; no saved Round 20/22 artifact of yours is in this repository to check +against. + +## Unchanged from the previous handoff + +Timing logs, version 0.4.1, the two hands-free tests, and everything under "What came back from +the 0.4.0 trial". No ElevenLabs, provider, credential, native code, automatic playback, route +forcing or background capture. Server `e4c102a`, Even beta 0.4.0; nothing of this round is +deployed, uploaded or installed. + +## Checks + +`docs/test-evidence.md`, "Round 23". diff --git a/docs/test-evidence.md b/docs/test-evidence.md index 7c7515f..70e290e 100644 --- a/docs/test-evidence.md +++ b/docs/test-evidence.md @@ -889,3 +889,41 @@ simulator failure from Round 19 did not recur in these three runs and remains un 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. + +## Round 23 (2026-11-29): CODY-024 and CODY-023, on `aea8ed80a947d225582d097ca040f173eedea456` + +``` +$ npm ci added 156 packages; 0 vulnerabilities +$ npm rebuild @evenrealities/evenhub-simulator (the bin link is missing after npm ci here) +$ npm run typecheck clean +$ npm test Test Files 19 passed (19); Tests 357 passed (357) +$ npx vitest run --project integration tests/integration/wake.test.ts Tests 34 passed (34) +$ npx vitest run --project even-client apps/even-client/test/soundCheck.test.ts Tests 6 passed (6) +$ 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 106593 bytes, SHA-256 + 8e231e8c215cdd76f956204dd6abb39ca6094f8b33d061866b901d8a3ec1c33a both times; not uploaded +$ npm run test:real-stt Tests 11 passed (11) +$ npm run test:real-hermes Tests 9 passed (9) (isolated gateway, stub model) +$ npm run test:simulator 3 runs, 9 passed each time +$ bash -n deploy/install.sh tests/deploy/runbook-proof.sh ok +$ systemd-analyze verify deploy/hermeven-bridge.service + exit 1: "Command /opt/node/bin/node is not executable: No such file or directory" + (this machine has no /opt/node; no other message) +$ git diff --check origin/main...HEAD ; git diff --check 2c3c518 HEAD clean (on the committed SHA) +``` + +A first run of this list stopped at typecheck: the new test file named Node's `process`, which +the client's browser typing does not declare (`TS2552`, two places), and both packs failed for +the same reason. The test was changed to reach it through `globalThis`, and everything above +from typecheck on is from the second run, on the committed code. `npm ci`, `bash -n` and +`systemd-analyze` are from the first run; README's test count was changed after the runs. + +Negative control for CODY-024: `soundCheck.ts` replaced by its `2c3c518` version, new test +file: 2 failed, 4 passed (details in the handoff). The file was then restored; the committed +version is the one the 6-passed line above is for. + +**Not run:** `caddy validate` (caddy is not installed here); `tests/deploy/runbook-proof.sh` +(Docker is present; not run, no file under `deploy/` has changed since Round 18). The sound +check has not been run in any real browser. The idle-exit simulator failure from Round 19 did +not recur and remains unexplained.