Bring README, decisions, contract and evidence up to date with the device session
Documentation only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -69,10 +69,21 @@ Quoted from the conversation of 2026-11-21, in order.
|
||||
| D2 | No merge to `main` and no further change to the production host without Dan's explicit go-ahead for that change. |
|
||||
| D3 | Nothing is claimed as deployed or device-verified unless it was, for that exact build. |
|
||||
|
||||
### E. Found during the device session (from Dan's words on 2026-11-21)
|
||||
|
||||
| # | Dan said | Criterion |
|
||||
|---|---|---|
|
||||
| E1 | "Tap to ask isn't working though now. It worked before." then "okay, quick tap worked." and "long presses and release are the way. I get my ring in a few days, so we'll want the ring to work like that." | A touch the glasses report as a long press starts recording like a tap; holding while speaking and releasing sends; a quickly released press behaves like a tap. Nothing in the handling depends on which temple or the ring sent it. |
|
||||
| E2 | (to find out why the tap did nothing) | The phone's Diagnostics shows what the glasses deliver, by event type only, never audio or content. |
|
||||
| E3 | "so annoying to have to scan a qr code every tie." and, on the package: "calling it pepper is fine... xylo.hermeven seems reight for the package name." and "logged in, go ahead and upload" | The client is packaged as "Pepper", package id `xylo.hermeven`, and uploaded to Dan's Even developer account as a private build. |
|
||||
| E4 | "fucker. port changed" (the installed app's page origin was `http://127.0.0.1:40315`, then a different port) | The bridge can be configured to accept a loopback page on any port, and accepts no other wildcard. Being an allowed origin grants no access without the device credential. |
|
||||
| E5 | On deploying E4 before review: "send to cody" | E4 is **not** deployed to the server until Cody has reviewed it. |
|
||||
|
||||
## Out of scope for this contract
|
||||
|
||||
Wake word ("Hey Pepper"), automatic end-of-speech detection, summoning other agents by name,
|
||||
locked-phone operation, a beta-channel install, backups, monitoring and upgrades. Dan has raised
|
||||
hiding the display after an answer, ending a conversation without closing the app, locked-phone
|
||||
operation, a beta-channel promotion, backups, monitoring and upgrades. Dan has raised
|
||||
the first three as the next phase; they will get their own contract.
|
||||
|
||||
## Added by the implementer, not requested by Dan
|
||||
|
||||
@@ -12,10 +12,15 @@ next/previous page, new conversation). Gestures are a replaceable binding.
|
||||
| next / previous page | swipe down / swipe up | Matches Even's text-heavy template. |
|
||||
| new conversation, cancel request | OS contextual menu items | Keeps a destructive-feeling action off a single accidental gesture. |
|
||||
|
||||
Rejected for now:
|
||||
Adopted on 2026-11-21, after the first device run:
|
||||
|
||||
- **Hold to talk** (long press, release to send). Attractive, but the OS claims tap-then-long-press
|
||||
for its menu, and the two official sources disagree about how long-press events are routed.
|
||||
- **Hold to talk.** On a real G2 a touch held slightly too long is reported as a long press
|
||||
(`sysEvent` type 9, then type 10 on release; source 1 for the right temple, 3 for the left) and
|
||||
was being ignored, so "tap" appeared not to work. A long press now does what a tap does; if it
|
||||
started the recording and is held at least 0.7 s, releasing it sends. Dan: "long presses and
|
||||
release are the way." Whether the OS's tap-then-long-press menu gesture interferes is untested.
|
||||
|
||||
Rejected for now:
|
||||
- **End-of-speech detection.** Not attempted. Capture ends on tap, cancel, or the visible cap.
|
||||
|
||||
Open for device testing: whether Even treats a double tap that cancels a request (not on the root
|
||||
|
||||
@@ -143,11 +143,13 @@ Every command below is run as root on the server unless it says otherwise. Repla
|
||||
```
|
||||
Open `https://bridge.example.com/` in the Even app (see below) and enter the code.
|
||||
|
||||
11. **Allowed origins.** Leave `HERMEVEN_ALLOWED_ORIGINS` empty when the phone page is served
|
||||
from the bridge's own hostname, as above: the page and the API share one origin, so no
|
||||
cross-origin allowance is needed and none should be added. Only a page served from somewhere
|
||||
else (a packaged `.ehpk`, whose origin inside the Even app is not documented) needs its exact
|
||||
origin listed; read it from Diagnostics, "Page origin".
|
||||
11. **Allowed origins.** A page served from the bridge's own hostname (the QR sideload path)
|
||||
shares the API's origin and needs no entry. An app **installed** through Even Hub does: the
|
||||
Even phone app serves it from `http://127.0.0.1:<port>` and uses a different port on each
|
||||
launch (seen on a real phone: 40315, then another), so no exact origin can be listed. Set
|
||||
`HERMEVEN_ALLOWED_ORIGINS=http://127.0.0.1:*`, the one wildcard the bridge accepts: any port,
|
||||
loopback only, plain http only. It lets a page running on the phone itself read the bridge's
|
||||
replies; it grants no access, since every request still needs the device credential.
|
||||
|
||||
**Updating.** Repeat steps 3 and 4 with the new commit, then `systemctl restart hermeven-bridge`.
|
||||
If a model manifest changed, repeat step 6 first.
|
||||
|
||||
@@ -63,3 +63,42 @@ browser to bridge to Pepper only. The implementer first misread it as an Even-ap
|
||||
- Accuracy of transcription, legibility, battery, any latency as experienced on the glasses.
|
||||
- A beta-channel install.
|
||||
- Any build other than the one named above.
|
||||
|
||||
## Second session, about 20:56 to 21:30 UTC
|
||||
|
||||
Same glasses and phone, phone unlocked. Dan's reports are quoted; server facts are from the
|
||||
bridge log and the commands run on the server.
|
||||
|
||||
### QR-sideloaded page, build `7f055d4` (installed 20:55 UTC)
|
||||
|
||||
| Dan reported | Establishes |
|
||||
|---|---|
|
||||
| "1. Even app host (SDK 0.0.16), found after 4 ms / HUD created / 3. Hermevn Ready" | In the Even app, this build found the SDK host 4 ms after start, created the HUD page, and the glasses showed the Ready screen. The Even app provides its connection essentially at once, so the precautionary detection wait was never needed. |
|
||||
| "Tap to ask isn't working though now. It worked before." and "one tap stays on \"ready\"" | A touch on the temple did not start recording. The bridge log shows the page checked in at 20:56:13 and no turn afterwards. |
|
||||
|
||||
### QR-sideloaded page, build `b8191a7` (installed 21:06 UTC), which adds the "Glasses input" line
|
||||
|
||||
| Dan reported | Establishes |
|
||||
|---|---|
|
||||
| "event ignored in the glasses input line", "like the first one. syxEvent type 9" | The touch was delivered to the app as `sysEvent` type 9 (long press), which that build ignored. The earlier "tap not working" was this, not a regression. |
|
||||
| "left temple is 10/3", "right is 9/1" | Long-press release (type 10) is delivered as well as long-press start (type 9); event source is 1 for the right temple and 3 for the left, as Even documents. |
|
||||
| "okay, quick tap worked." | A short tap still starts recording on this build. |
|
||||
|
||||
### Installed private build "Pepper" (`xylo.hermeven` 0.1.0, built from `fd99255`, uploaded 21:22 UTC)
|
||||
|
||||
| Dan reported | Establishes |
|
||||
|---|---|
|
||||
| "Installed, looks like I had to hit \"open\" and when I do, need another pairing code" | The private build installs and opens from the Even app. Its storage is separate from the sideloaded page's. |
|
||||
| "failed, says cannot reach the bridge" | With no allowed origin configured, the installed app could not call the bridge. |
|
||||
| Page origin: "http://127.0.0.1:40315" | An installed app is served by the Even app from a loopback address on the phone. |
|
||||
| (after the bridge was set to allow exactly that origin and restarted at 21:26:57 UTC) "fucker. port changed" | The port is different on the next launch, so an exact origin cannot be listed. |
|
||||
|
||||
Not reported for the installed build: the Runtime and HUD page lines, whether the glasses showed
|
||||
anything, whether it appears in the glasses' own menu.
|
||||
|
||||
### Not tried in either session
|
||||
|
||||
Hold-to-talk on the device (the build that implements it, `9cb34b3` and later, was installed as a
|
||||
page at 21:18 UTC and is inside the private build, but Dan did not report using it), paging, the
|
||||
contextual menu, cancel, locked phone, voice launch through Even's assistant, and whether phone
|
||||
notifications reach the lenses while the app is open.
|
||||
|
||||
@@ -190,3 +190,27 @@ bridge address built into the page: 1 occurrence(s) of https://localhost
|
||||
CORS for a foreign origin: 0 allow-origin header(s)
|
||||
### done: 65260911ae907846ea7febd933e8c0e37c471c22
|
||||
```
|
||||
|
||||
## Evening: further changes to the server, each approved by Dan in conversation
|
||||
|
||||
| Time (UTC) | Change | Dan's approval |
|
||||
|---|---|---|
|
||||
| 20:55:16 | Static page replaced with a build of `7f055d4` | "1 - yes" |
|
||||
| 21:06:46 | Static page replaced with a build of `b8191a7` (adds the Glasses input diagnostic) | "yes, put on droplet" |
|
||||
| 21:18:07 | Static page replaced with a build of `fd99255` (hold-to-talk; packaged as "Pepper") | "go for it" (given in reply to a message asking for both the upload and this) |
|
||||
| 21:26:57 | `HERMEVEN_ALLOWED_ORIGINS` set to `http://127.0.0.1:40315` in `/etc/hermeven/bridge.env` (previous file kept alongside as a `.bak-` copy); bridge restarted, about 4 s down | "yes, go ahead" |
|
||||
|
||||
The bridge code on the server is still `f02715f`. The allowed-origin setting turned out to be
|
||||
useless (the port changes each launch) and is still in place; it should be replaced or cleared
|
||||
when the loopback any-port change is deployed.
|
||||
|
||||
After the 21:26 change, through the public hostname: a preflight from `http://127.0.0.1:40315`
|
||||
was answered 204 with `access-control-allow-origin: http://127.0.0.1:40315`; from
|
||||
`http://127.0.0.1:40316` and from `https://evil.example` there was no allow-origin header.
|
||||
|
||||
Outside the server: at 21:22 UTC the package `hermeven.ehpk` (app "Pepper", `xylo.hermeven`,
|
||||
0.1.0, built from `fd99255`) was uploaded to Dan's Even developer account as a private build with
|
||||
`evenhub create`, on Dan's instruction ("logged in, go ahead and upload"). It was not promoted to
|
||||
beta and not submitted for review.
|
||||
|
||||
**Not deployed:** `bc00ae9` (loopback any-port origins). Dan chose review first: "send to cody".
|
||||
|
||||
+5
-1
@@ -33,7 +33,7 @@ devices. Not reviewed by anyone but its author yet; see `docs/handoff/`.
|
||||
| Blind replay after a timeout | A sent-but-unanswered request ends as `unknown`, never as retryable. | yes |
|
||||
| Oversized or malformed input | 32 kB JSON limit; audio capped at capture length + 1 s; schema validation; only one audio format accepted. | yes |
|
||||
| Request flooding | Per-device turn limit, per-address pairing limit, general per-device limit. | yes |
|
||||
| Cross-origin browser abuse | CORS allows only exact configured origins and sends no credentials mode. CORS is not treated as authentication: every route still needs the bearer credential. | yes |
|
||||
| Cross-origin browser abuse | CORS allows only exact configured origins, plus, only if configured, any port on a loopback address over http (`http://127.0.0.1:*`), which an Even Hub installed app requires. No other wildcard exists. CORS is not treated as authentication: every route still needs the bearer credential. | yes, including 17 look-alike and foreign origins |
|
||||
| Secrets or content in logs | Logs carry ids, states, codes and timings. Request logging is off, a redaction list backs it up, and Hermes's own diagnostic text is never relayed or logged. | yes |
|
||||
| Substituted speech-model files | The model is pinned to a commit id with a SHA-256 for every file. Files are fetched ahead of time and verified; the bridge re-verifies on every load, never downloads at run time, and reads from a directory that can be read-only. There is no unpinned mode. | yes, including with no network at all |
|
||||
| State files readable by other users | At every start the directory holding the database must be owned by the bridge's own user (a directory owned by anyone else is refused untouched, whatever its mode) and is set to 0700, whether it was just created or already existed; the bridge refuses to start otherwise. The database is created owner-only before SQLite opens it (so its WAL and SHM files inherit that); the systemd unit sets `UMask=0077`. | yes, under umask 0022, for new and pre-existing directories |
|
||||
@@ -75,6 +75,10 @@ Stated so they are not mistaken for protections.
|
||||
4a. **The state directory must be the bridge's own.** Because it is forced to 0700, pointing
|
||||
`HERMEVEN_DB_PATH` into a directory shared with other software will lock that software out;
|
||||
a directory owned by another user is refused.
|
||||
4b. **With `http://127.0.0.1:*` set, any page served from the phone's own loopback address may
|
||||
read the bridge's replies in a browser on that phone.** That includes a page served by some
|
||||
other app on the phone. It still cannot do anything without the device credential, which is
|
||||
held in the Even app's storage, not in a cookie the browser would attach by itself.
|
||||
5. **TLS is not terminated by the bridge.** A reverse proxy or private network must provide it. A
|
||||
misconfigured proxy could expose plain HTTP.
|
||||
6. **Rate limits are in memory** and reset on restart. Behind a proxy, per-address limits are only
|
||||
|
||||
Reference in New Issue
Block a user