Files
hermeven/docs/handoff/2026-11-21-cody-round-9.md
2026-11-21 13:38:35 -08:00

104 lines
5.4 KiB
Markdown

# Handoff for Cody, Round 9
From: Claude (implementation). Date: 2026-11-21.
**Not reviewed.** Round 8's result (REVIEW BLOCKED) applies to `09e21f6` only.
| Item | Value |
|---|---|
| Repository | `git@git.xylo.gg:Xylo-Digital/hermeven.git` |
| Branch | `cody/droplet-deploy` |
| `main` | `f02715fb6487f4e2ff0adeccfaad2403e1724aa5` (SHIP; unchanged) |
| Reviewed in Round 8 | `09e21f6368deed7917a9f5dcd2eadce5547eca04` |
| New head | the tip of `cody/droplet-deploy` after this push; exact SHA in the push report |
## The contract
`docs/contracts/2026-11-21-droplet-deployment-and-first-device-run.md`.
It was written by the implementer. Dan was asked to supply an independent one and answered: "you
supply the contract. why am I needed for this trivial nonsense?" The contract says so at the top,
and ties each criterion to Dan's quoted words or to a correction Cody required. It is the owner's
decision that this is the contract; it is not independent of the implementer.
## This branch is no longer small
Round 8 covered a start-up change. Since then Dan ran the app on his glasses for the first time
and the branch grew. Commits since `09e21f6`:
| Commit | Kind | What |
|---|---|---|
| `7f055d4` | client, tests, docs | CODY-014; contract; first device evidence |
| `b8191a7` | client | "Glasses input" line in Diagnostics (event types only) |
| `9cb34b3` | client, tests | Long press handled; hold-to-talk |
| `fd99255` | manifest | App name "Pepper", package id `xylo.hermeven` |
| `bc00ae9` | **bridge**, tests | `HERMEVEN_ALLOWED_ORIGINS` accepts `http://127.0.0.1:*` |
| `fb0a6b9` | docs | README, decision record, contract, evidence |
| next | docs | This handoff and the Round 9 evidence section |
Bridge files changed since `main`: `services/bridge/src/config.ts`, `services/bridge/src/server.ts`
(and their tests). Nothing else under `services/` or `packages/`.
## CODY-014
| Required | Done |
|---|---|
| 1. Immediate accessible loading surface | `#startup` in the static HTML, `role="status"`, `aria-live="polite"`, inline-styled, ahead of the script. |
| 2. Keep delayed-host detection; select EvenDevice when a callable host appears | Unchanged logic, now in `src/boot.ts`. |
| 3. After timeout, replace with the labelled preview | Yes. |
| 4. No eager fallback | Nothing is mounted and no device chosen until detection answers. |
| 5. Remove the start-up surface when the real page mounts | `startup.remove()` after `mountPhoneUi`. |
| Proof 1 to 3 | `tests/integration/entryPoint.test.ts`, with the real `index.html`, `boot()` and Even SDK in happy-dom. |
| Proof 4: physical Even-app probe | For the build of `7f055d4`: Dan read from the phone, inside the Even app, "Even app host (SDK 0.0.16), found after 4 ms", "HUD created", and the glasses showing the Ready screen. **Later client builds were not probed for those two lines**; see below. |
## What needs the most scrutiny
1. **`bc00ae9` loosens an origin restriction.** Earlier rounds said not to. It is the only way an
Even Hub installed app can call the bridge: the Even phone app serves it from
`http://127.0.0.1:<port>` with a new port each launch (Dan observed the change). It is off by
default, loopback only, http only, numeric port only, and matched as whole-string text. It is
**not deployed**: Dan was offered "deploy now, review after" and chose "send to cody".
2. **Hold-to-talk keeps the microphone open for as long as a finger is down**, up to the capture
cap, and a hold released in under 0.7 s leaves it open until the next tap. Is that the right
reading of "explicit user-triggered capture"?
3. **The Glasses input line** shows envelope names and numeric codes. Check that nothing derived
from audio or content can reach it.
4. **The precautionary host-detection wait** is still there (2.5 s) though the device showed the
host arriving in 4 ms. It costs an ordinary browser 2.5 s and protects against nothing observed.
## What was and was not seen on the device
All in `docs/evidence/device/2026-11-21.md`. In short: four spoken questions were answered on the
glasses (QR sideload, phone unlocked, build `09e21f6`); the `7f055d4` build was probed as above;
long-press events were observed on `b8191a7`; the installed private build opens but cannot reach
the bridge without `bc00ae9`. **Hold-to-talk has not been used on the device. The final client
build's Runtime and HUD lines were not read back.**
## Production state right now
Changed today with Dan's approval each time (table in `docs/evidence/droplet/2026-11-21.md`):
- Bridge code: still `f02715f`.
- Static page: a build of `fd99255` (unreviewed client code).
- `HERMEVEN_ALLOWED_ORIGINS=http://127.0.0.1:40315`: a single exact origin that no longer matches
anything, left in place.
- Even's portal: private build "Pepper" `xylo.hermeven` 0.1.0, built from `fd99255`.
## Checks
All of Round 8's required checks pass on `fb0a6b9`, with nothing omitted: `docs/test-evidence.md`,
"Round 9".
## Mistakes made this session, so they are not found later
- The implementer told Dan a tap failure might be a regression before knowing; it was a long
press that the code ignored.
- The first allowed-origin fix (`:40315`) was applied to production knowing the port might change.
It did.
- Earlier the same day: the Chrome-versus-Even-app misdiagnosis recorded in the Round 7 handoff.
## Not claimed
Nothing in this branch is merged. `bc00ae9` is not deployed. No locked-phone, ring, menu, paging
or hold-to-talk evidence from the device.