Round 11 handoff and evidence section (documentation only)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Dan
2026-11-21 14:17:31 -08:00
co-authored by Claude Fable 5.2
parent 8171aee75a
commit 19a9d5e22e
2 changed files with 115 additions and 0 deletions
+73
View File
@@ -0,0 +1,73 @@
# Handoff for Cody, Round 11
From: Claude (implementation). Date: 2026-11-21.
**Not reviewed.** Round 10 (`38883b3`, documentation only, exact-build device evidence for
CODY-014) had not returned a verdict when this was pushed. This round adds code on top of it.
| Item | Value |
|---|---|
| Branch | `cody/droplet-deploy` |
| `main` | `f02715fb6487f4e2ff0adeccfaad2403e1724aa5` (SHIP; unchanged) |
| Last reviewed | `d90cd8972af0ed26a1c4c25a6acdbda775fcf8a7` (Round 9) |
| Round 10 push | `38883b38f80d95ec4cdbd5cd7e2941a9fac0dcde` (docs only) |
| New head | the tip of `cody/droplet-deploy` after this push; exact SHA in the push report |
## What is new since Round 10
| Commit | Kind | Content |
|---|---|---|
| `cf2cf66` | **client code**, tests, manifest | Leave the glasses when idle; new conversation after a long silence; "Opened from" in Diagnostics; version 0.1.1 |
| `8171aee` | docs | Contract section F; fourth device session; README |
| next | docs | This handoff and the Round 11 evidence section |
No bridge, contract-package or deployment file changed: `git diff 38883b3 HEAD -- services packages deploy` is empty.
## Contract
`docs/contracts/2026-11-21-droplet-deployment-and-first-device-run.md`, section F. Cody recorded
after Round 9 that Dan's direct confirmation validates the contract; section F was added later,
again from Dan's quoted words. Whether that earlier confirmation extends to an added section is
for Cody and Dan. F4 and F5 are marked as the implementer's additions, not Dan's requests.
## Why this exists
On the device, while the app was open it stayed on the display indefinitely, and a phone
notification did not reach the lenses. Dan: "I want the app to work like any other even app. call
it to be used, and then it disappears but stays callable." With the beta build he confirmed it is
callable: it appears in the glasses' menu and "Hey Even, open Pepper" launches it, phone locked.
## What deserves scrutiny
1. **An unprompted exit.** `shutDownPageContainer(0)` is called by the app on a timer. Earlier
rounds established that exit mode 0 is not acceptable for a double tap on the root page under
Even's submission rules; this is a different trigger, but the same call. It has never been run
against the simulator or the device, so what the Even app does on it is assumed from the docs.
2. **Is "resting screen" drawn in the right place?** It leaves from answer, Ready, error and
cancelled. It does not leave from the disconnected states or from approval-required. A turn
whose answer arrives while nobody is looking is shown, then leaves 20 s later.
3. **Arming.** It is armed by any glasses gesture or a `glassesMenu` launch source. Whether a
voice launch reports `glassesMenu` on a real device is not known.
4. **F5 changes conversation continuity silently**: after ten minutes the next question starts a
new Hermes session without the user being told. The reset happens at start-up, in memory; the
stored conversation id is replaced when the next conversation is created.
5. **`lastTurnAt` is written to app storage without waiting for confirmation**, unlike the
request id. Losing it only delays the reset.
6. The idle timer reads `Date.now`-based `now()` and `setTimeout`; a suspended WebView will fire
late, which is the safe direction.
## Device and production state
- Device evidence, including the first locked-phone success, is in
`docs/evidence/device/2026-11-21.md`. Build 0.1.1 has **not** been installed on any device.
- Server: bridge and page at `d90cd89`, unchanged by this round.
- Even account: 0.1.0 on the beta channel. 0.1.1 is **not** uploaded; Dan said "send it to cody".
## Checks
All pass on `8171aee`, nothing omitted: `docs/test-evidence.md`, "Round 11".
## Not claimed
Idle exit has not run on a device or in the simulator. Nothing merged to `main`. The
specification's ten-cycle locked-phone acceptance run has not been done.
+42
View File
@@ -480,3 +480,45 @@ No check was omitted.
What happened on the device is in `docs/evidence/device/2026-11-21.md`; what was changed on the What happened on the device is in `docs/evidence/device/2026-11-21.md`; what was changed on the
server, and with whose approval, is in `docs/evidence/droplet/2026-11-21.md`. server, and with whose approval, is in `docs/evidence/droplet/2026-11-21.md`.
## Round 11: leaving the glasses when idle, version 0.1.1 (2026-11-21)
Run on `8171aee`.
```
$ npm ci exit 0
$ npm run typecheck exit 0
$ npm test Tests 233 passed (233)
$ vitest entryPoint + client-bridge + bridge + hostDetect Tests 111 passed (111)
$ npm run client:build built
$ npm run test:real-stt Tests 11 passed (11)
$ npm run test:real-hermes Tests 9 passed (9)
$ npm run test:simulator Tests 7 passed (7)
$ bash -n deploy/install.sh tests/deploy/runbook-proof.sh ok
$ tests/deploy/runbook-proof.sh exit 0 (Caddy 2.6.2 "Valid configuration", fmt 0 changed
lines; systemd-analyze verify ok; unit active as hermeven)
$ git diff --check clean
```
No check was omitted.
New tests, all in `tests/integration/client-bridge.test.ts` (9):
| Behaviour | Proven by |
|---|---|
| After an answer sits untouched, the app leaves once, with the immediate exit and not the confirmation dialog | exit counter 1, dialog counter 0, microphone closed |
| Any gesture restarts the countdown | six page turns, each inside the timeout, across more than three timeouts: no exit; then exit once left alone |
| Never leaves while recording, transcribing, thinking, or awaiting approval | each held for more than two timeouts: no exit |
| Leaves from Ready, and from an error screen | |
| Opened from the phone with no gesture: stays; first glasses gesture arms it | |
| Touching the phone page holds it open for the grace period | |
| Can be switched off | |
| A question soon after the last continues the conversation across a relaunch; after the gap it starts a new one | the fake agent's session count: 1, then 2 |
Six ways of breaking it were tried; five were caught. The sixth removed a line that restarts
the countdown on a gesture, which is redundant because every gesture already passes through
`dispatch()`, which restarts it.
The simulator suite runs with `?idleExit=off` (a development-only switch, compiled out of
production builds) because it drives the app for longer than the idle timeout between steps.
**The exit itself (`shutDownPageContainer(0)`) has not been run in the simulator or on a device.**