313 lines
19 KiB
Markdown
313 lines
19 KiB
Markdown
# Droplet deployment record, 2026-11-21
|
|
|
|
First deployment of the bridge. Done by Claude over SSH with Dan's approval for each kind of
|
|
change. This is evidence about the server only. **Nothing here involved the glasses or a phone.**
|
|
|
|
## Where
|
|
|
|
| Item | Value |
|
|
|---|---|
|
|
| Host | The existing Hermes droplet (Ubuntu 24.04, 4 vCPU "DO-Premium-AMD", 8 GB RAM), not a new one |
|
|
| Public name | `hermeven.xylo.gg` |
|
|
| Deployed commit | `f02715fb6487f4e2ff0adeccfaad2403e1724aa5` (the commit Cody marked SHIP), copied with `git archive` |
|
|
| Hermes | v0.23.1; profile `default` (Pepper) |
|
|
|
|
## What was changed on the server
|
|
|
|
| Change | Detail |
|
|
|---|---|
|
|
| Retired the unfinished browser-extension service | `hermes-extension-api-v0222` (crash-looping on a missing module) and `hermes-fury-extension-tunnel` (an SSH reverse tunnel of port 8642 to Dan's desktop) stopped and disabled. Unit files left in place. |
|
|
| Rotated `API_SERVER_KEY` | The old key was also in the retired extension's environment file. New 64-character key. |
|
|
| Enabled the Hermes API server | `platforms.api_server.enabled: true`, loopback `127.0.0.1:8642`. Gateway restarted once; about 33 s of downtime for `default`, `cody`, `natalie`, `wendy`. |
|
|
| Backups | The previous `config.yaml` and `.env` are in `~hermes/.hermes/backups/hermeven-20261121T195611Z/` (mode 600). |
|
|
| Node.js | v22.23.5 from nodejs.org, SHA-256 verified, at `/opt/node`. |
|
|
| Service user and state | `hermeven` (system user); `/var/lib/hermeven` 0700. |
|
|
| Bridge | `/opt/hermeven/app`, dependencies installed as `hermeven`, tree owned by root. Service `hermeven-bridge` on `127.0.0.1:8787`. |
|
|
| Speech model | Pinned `whisper-base` fetched and verified into `/opt/hermeven/models` (root-owned, read-only to the service). |
|
|
| Caddy | Ubuntu package 2.6.2; Let's Encrypt certificate obtained. Proxies `/v1/*` and `/healthz` to the bridge; serves the built client from `/opt/hermeven/www`. |
|
|
| Firewall | 80 and 443 opened. 8787 and 8642 are not reachable from outside. |
|
|
|
|
## Differences from the written guide (now corrected in it)
|
|
|
|
- The service starts Node directly (`node --import tsx src/main.ts`) instead of `npm run`.
|
|
- The code lives in `/opt/hermeven/app`, not `/opt/hermeven`.
|
|
- Caddy also serves the built phone page from the bridge's own origin.
|
|
- The built client was compiled on the desktop with the bridge address preset and uploaded.
|
|
|
|
## What was verified, and how
|
|
|
|
| Check | Result |
|
|
|---|---|
|
|
| Hermes API: `/health` | `{"status":"ok","platform":"hermes-agent","version":"0.23.1"}` |
|
|
| Hermes API without a key, and with a wrong key | 401, 401 |
|
|
| Hermes capabilities | runs, status, stop: true; idempotency supported, durable, 86,400 s |
|
|
| Bridge start | `stt.loading` then `stt.ready` in 2.0 s; 462 MB resident |
|
|
| State file modes | directory 700; database, WAL, SHM 600; owner `hermeven` |
|
|
| Transcription of the 11 s speech fixture, three runs | 2.3 s, 2.1 s, 1.8 s; transcript correct. A 4 s clip: 1.3 s |
|
|
| Typed question through the bridge to Pepper (real model) | "pong", outcome `succeeded`, 5.2 s in the agent |
|
|
| Follow-up in the same conversation ("what word did you reply with?") | "pong", 1.8 s: Hermes carried the context |
|
|
| From outside: `https://hermeven.xylo.gg/healthz` | 200 |
|
|
| From outside: `/v1/device` with no credential | 401 |
|
|
| From outside: plain HTTP | 308 redirect to HTTPS |
|
|
| From outside: ports 8787 and 8642 directly | no connection |
|
|
| The other agents and the n8n webhook after the restart | all five profiles `running`; webhook health ok |
|
|
|
|
The test device used for the two questions was revoked afterwards. Those two questions are real
|
|
turns in Pepper's history, in their own session.
|
|
|
|
## Not verified
|
|
|
|
- Anything on a phone or the glasses: page load in the Even app, pairing from the phone, the
|
|
microphone, the display, locked-phone behaviour.
|
|
- Speech from the glasses' microphone. The transcription timings use a clean archive recording.
|
|
- A question that makes Pepper use a tool or ask for approval.
|
|
- Memory and latency under sustained use; behaviour when Whisper and several agents are busy at once.
|
|
- Backups of `/var/lib/hermeven`, log rotation, monitoring, and an upgrade procedure.
|
|
- The service was started with these hardening options and loaded the model, but no option was
|
|
tested by trying to violate it.
|
|
|
|
## Later the same day
|
|
|
|
### The static phone page was replaced twice
|
|
|
|
The bridge on the server is still commit `f02715f`. Only the static page in `/opt/hermeven/www`
|
|
changed, and it was built from client code that Cody has not reviewed:
|
|
|
|
| When (UTC) | Page built from | Why |
|
|
|---|---|---|
|
|
| 19:5x | `f02715f` | First deployment |
|
|
| 20:1x | `e5559dc` | A host-detection change made on a wrong diagnosis (below) |
|
|
| after this record | the commit that adds this section | Shorter detection wait; corrected comments |
|
|
|
|
### What happened on the phone, and a correction
|
|
|
|
Dan opened `https://hermeven.xylo.gg` on his Android phone, paired with a code from the server,
|
|
and typed a question; Pepper answered (bridge log: device paired, one text turn, `succeeded`,
|
|
2.1 s in the agent). **The page had been opened by scanning the QR code with the phone's camera,
|
|
so it was running in Chrome, not in the Even app.** Its Diagnostics said "Browser preview: no
|
|
glasses, no microphone", and the browser line had no WebView marker.
|
|
|
|
Before that was understood, the implementer (Claude) wrongly concluded that the Even app provides
|
|
its connection late, told Dan that the Even app had loaded the page, allowed its network calls
|
|
and confirmed storage writes, and shipped a change to wait for the connection. None of those
|
|
three statements was supported: nothing has yet run inside the Even app. They were retracted
|
|
the same day. What the phone run does show is phone browser -> HTTPS -> bridge -> Pepper.
|
|
|
|
### Loading the page in a desktop browser
|
|
|
|
Chrome on the development desktop, `https://hermeven.xylo.gg/`: the page rendered the pairing
|
|
form with the bridge address preset to `https://hermeven.xylo.gg`, and Diagnostics reported
|
|
`Page origin: https://hermeven.xylo.gg`. `HERMEVEN_ALLOWED_ORIGINS` on the server is empty: the
|
|
page and the API share one origin, so no cross-origin allowance exists or is needed.
|
|
|
|
Through the server's Caddy 2.6.2, from outside:
|
|
|
|
| Request | Result |
|
|
|---|---|
|
|
| `GET /` | 200 `text/html` |
|
|
| `GET /assets/index-<hash>.js` | 200 `text/javascript`, 296,329 bytes |
|
|
| Headers on both | `strict-transport-security: max-age=31536000`, `x-content-type-options: nosniff`, `referrer-policy: no-referrer`, no `server` header |
|
|
| `GET /v1/device` with `Origin: https://evil.example` | no `access-control-allow-origin` header |
|
|
| `OPTIONS /v1/turns` preflight from that origin | 404, no `access-control-allow-origin` header |
|
|
|
|
## Clean-host proof of the written guide (not this server)
|
|
|
|
The guide's server-side steps were run from an empty `/opt/hermeven` on a disposable Ubuntu 24.04
|
|
host: a privileged Docker container with systemd as PID 1, on the development desktop
|
|
(`tests/deploy/runbook-proof.sh`). Hermes is not present there, and the hostname is `localhost`
|
|
with a certificate from Caddy's local CA, so this proves the install sequence, ownership, the
|
|
unit and the Caddy configuration. It does not prove a public certificate or a second real server.
|
|
|
|
The first attempt failed at `npm ci`: a clean Ubuntu has no compiler, and the SQLite library
|
|
builds from source there. The guide and `install.sh` now require `build-essential` and `python3`.
|
|
(The real server already had them, which is why the first deployment did not show this.)
|
|
|
|
Output of the passing run:
|
|
|
|
```
|
|
### host image
|
|
Ubuntu 24.04.5 LTS
|
|
/opt/hermeven does not exist
|
|
id: 'hermeven': no such user
|
|
### step 2: packages (Caddy, git, Node.js with checksum)
|
|
node-v22.23.5-linux-x64.tar.xz: OK
|
|
v22.23.5
|
|
2.6.2
|
|
### step 3: get the release onto the server (git clone of 65260911ae907846ea7febd933e8c0e37c471c22)
|
|
65260911ae907846ea7febd933e8c0e37c471c22
|
|
### step 4: deploy/install.sh
|
|
==> 1/7 user and directories
|
|
==> 2/7 copy the release to /opt/hermeven/app.new
|
|
==> 3/7 npm ci as the unprivileged user
|
|
==> 4/7 build the phone page for https://localhost
|
|
==> 5/7 hand the tree back to root
|
|
==> 6/7 install the phone page into /opt/hermeven/www
|
|
==> 7/7 activate the new tree and install the unit
|
|
Installed 65260911ae907846ea7febd933e8c0e37c471c22 to /opt/hermeven/app
|
|
Phone page installed to /opt/hermeven/www
|
|
Not started. Next: configuration, speech model, then 'systemctl enable --now hermeven-bridge'
|
|
### ownership and permissions after install
|
|
DEPLOYED_SHA: 65260911ae907846ea7febd933e8c0e37c471c22
|
|
app tree owner: root:root 755
|
|
not root-owned in app: 0 group/other-writable in app: 0
|
|
node_modules present: yes
|
|
hermeven cannot write the app tree
|
|
hermeven cannot create files in the source
|
|
www: root:root 755 index root 644 files=3
|
|
hermeven cannot write www
|
|
caddy can read www
|
|
state dir: hermeven:hermeven 700
|
|
secrets dir entries: 0 (install.sh wrote none)
|
|
models dir: not created by install.sh
|
|
### steps 5, 6: configuration and speech model
|
|
hermeven:hermeven 600 /etc/hermeven/bridge.env
|
|
Verified 7 file(s); downloaded 7.
|
|
Verified 7 file(s).
|
|
models owner: root:root
|
|
### step 8: start the bridge under systemd
|
|
systemd-analyze verify: ok
|
|
unit: active (running as hermeven, MainPID uid hermeven)
|
|
"msg":"Server listening at http://127.0.0.1:8787" "msg":"stt.loading" "msg":"stt.ready"
|
|
healthz (direct): {"status":"ok","schema_version":1}
|
|
state files: 700 hermeven 600 /var/lib/hermeven/hermeven.sqlite;hermeven 600 /var/lib/hermeven/hermeven.sqlite-shm;hermeven 600 /var/lib/hermeven/hermeven.sqlite-wal;
|
|
### step 9: HTTPS through Caddy (hostname replaced by localhost; certificate from Caddy's local CA)
|
|
caddy fmt --diff on the example: exit 0, 0 changed line(s)
|
|
Valid configuration
|
|
caddy: active
|
|
GET / -> 200 text/html; charset=utf-8
|
|
GET /assets/index-DqyTqNG5.js -> 200 text/javascript; charset=utf-8 296323 bytes
|
|
GET /healthz -> {"status":"ok","schema_version":1}
|
|
GET /v1/device -> 401 (no credential)
|
|
headers on /:
|
|
referrer-policy: no-referrer
|
|
strict-transport-security: max-age=31536000
|
|
x-content-type-options: nosniff
|
|
headers on the asset:
|
|
referrer-policy: no-referrer
|
|
strict-transport-security: max-age=31536000
|
|
x-content-type-options: nosniff
|
|
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".
|
|
|
|
## 21:50 UTC: the bridge was updated to the commit under review
|
|
|
|
On Dan's go-ahead ("yes, go ahead", after being told the change had been reviewed without
|
|
findings but not given a SHIP):
|
|
|
|
| Step | Result |
|
|
|---|---|
|
|
| `git archive d90cd89` to `/root/hermeven-src`, then `deploy/install.sh --bridge-url https://hermeven.xylo.gg` | All seven steps completed. `DEPLOYED_SHA` is `d90cd8972af0ed26a1c4c25a6acdbda775fcf8a7`. |
|
|
| Application tree | `root:root`, 0 files not root-owned, 0 group/other-writable |
|
|
| Untouched by the script | `/etc/hermeven/bridge.env` (hermeven, 600), `/var/lib/hermeven` (hermeven, 700), `/opt/hermeven/models` (root); `verify-model`: 7 files verified |
|
|
| Static page after the script rebuilt it | Same three SHA-256 values as before and as a local build of `d90cd89` |
|
|
| `HERMEVEN_ALLOWED_ORIGINS` | `http://127.0.0.1:*` (previous file kept as a `.bak-` copy) |
|
|
| Restart | 21:50:41 to 21:50:45 UTC; `stt.ready`; state directory 700, database 600 |
|
|
| From outside, preflight to `/v1/pairing/claim` | Allowed and echoed: `http://127.0.0.1:40315`, `:51877`, `:1`. No allow-origin header: `https://127.0.0.1:40315`, `http://localhost:40315`, `http://127.0.0.1.example.com:40315`, `http://192.168.1.20:40315`, `https://evil.example`, `http://127.0.0.1` |
|
|
| From outside, `/v1/device` with an allowed origin and no credential | 401 |
|
|
| From outside, ports 8787 and 8642 | no connection |
|
|
| Paired devices | Preserved across the update |
|
|
|
|
So as of 21:50 UTC the server runs the bridge at `d90cd89`. This is the first time the deployed
|
|
bridge is not the commit that holds Cody's SHIP (`f02715f`).
|
|
|
|
## 22:00 UTC: Even developer account
|
|
|
|
On Dan's instruction ("yes, promote it to beta"): `evenhub promote 0.1.0 --to beta` for
|
|
`xylo.hermeven`, and `evenhub testers add` for the account's own email address (taken from the
|
|
tool's own account check, not displayed or stored in this repository). The roster showed one
|
|
tester, status "Invited". Dan subsequently installed and ran the beta build.
|
|
|
|
Package `hermeven-0.1.1.ehpk` (99,493 bytes, SHA-256
|
|
`4a2c4ad8e27057df15aad81454fedde2296db3562ba28b29e0c5a4d87b9d23cf`, built from `cf2cf66`) exists
|
|
on the development desktop only. It has **not** been uploaded.
|
|
|
|
## 23:09 UTC: build 0.1.1 uploaded to the Even developer account
|
|
|
|
Cody's Round 13 found no unresolved code finding on `3e0468802f3ae23b30c39c48f36d489fa92f9658` and
|
|
blocked only on owner pre-acceptance. Dan: "Dan says ship. :) Send it." Then `evenhub upload`
|
|
(version 0.1.1, id 155494) and `evenhub promote 0.1.1 --to beta`. Cody subsequently recorded
|
|
"Exact SHA 3e0468802f3ae23b30c39c48f36d489fa92f9658 is SHIP FOR TRIAL."; the upload preceded that
|
|
message by a few minutes, on the owner's instruction. `evenhub ls` at 23:21 UTC: beta channel at
|
|
0.1.1; 0.1.0 retained, on no channel. The server was not changed.
|
|
|
|
Build 0.1.2 has **not** been uploaded.
|
|
|
|
## 23:48 UTC: build 0.1.2 uploaded
|
|
|
|
Cody, Round 14: SHIP (trial designation SHIP FOR TRIAL) on
|
|
`15714bd848a7bf7230bb80d187de85af4b3fa66b`. Dan: "yes, upload 0.1.2". `evenhub upload` (id 155527,
|
|
99,892 bytes, SHA-256 `3781f3e8256f0efdba4155fbd5d0926a6726f14ca3ed89bc039d34b48a0f608b`, built from
|
|
that commit) and `evenhub promote 0.1.2 --to beta`. Dan has not reported a trial of 0.1.2.
|
|
|
|
## 23:52 to 23:58 UTC: Hermes profiles surveyed; keys added for wendy and cody
|
|
|
|
Read-only survey (Dan: "Yes, take a read-only survey"):
|
|
|
|
| Found | Detail |
|
|
|---|---|
|
|
| Profiles | default, cody, jeanette, natalie, wendy, all with a running gateway |
|
|
| Gateways | `hermes-gateway.service` serves default, cody, natalie and wendy (`gateway.multiplex_profiles: true`); `hermes-gateway-jeanette.service` is separate and not on port 8642 |
|
|
| API | Hermes v0.23.1 source: named profiles are served at `/p/<profile>/...` on the same port, each authorised by that profile's own `API_SERVER_KEY`, failing closed without one |
|
|
| Unauthenticated probes | `/p/wendy/health`, `/p/cody/health`, `/p/natalie/health`: 200. `/p/jeanette/health`, `/p/nosuch/health`: 404 |
|
|
| Keys before | Only the default profile had `API_SERVER_KEY` |
|
|
|
|
Changes (Dan: "Pepper, wendy and cody. yes. go for it."):
|
|
|
|
| Step | Result |
|
|
|---|---|
|
|
| `API_SERVER_KEY` (64 hex, generated on the server, never displayed) appended to `profiles/wendy/.env`; previous file kept as `.env.bak-hermeven-<time>` | File stays `hermes` 600. No gateway restart. |
|
|
| Same for `profiles/cody/.env` | Same. |
|
|
| Wendy's key at `/p/wendy/v1/runs/<unknown>` | 404: accepted, no such run. Effective without a restart. |
|
|
| Wendy's key at the default address; the default key at `/p/wendy`; Cody's key at `/p/wendy` | 401 each |
|
|
| One test question to Wendy through `POST /p/wendy/v1/runs` with an idempotency key ("connection test... Do not use any tools.") | 202; an identical resubmit returned the same run; completed in 4 s with a one-sentence answer identifying herself as Wendy. This created one session in Wendy's profile. |
|
|
| That run looked up at the default address with the default key | 404 |
|
|
| Cody's key at `/p/cody/v1/runs/<unknown>` | 404: accepted. No question was sent to Cody. |
|
|
|
|
`platforms.api_server.enabled` is `false` in wendy's and natalie's profile settings; the request
|
|
above worked regardless. The bridge on the server was **not** changed: it still runs `d90cd89`
|
|
with one agent, and the new keys are not yet in its settings.
|
|
|
|
## 2026-11-22 00:37 UTC: bridge updated to the multi-agent build; 00:38 UTC: 0.2.0 uploaded
|
|
|
|
Cody, Round 16: SHIP (trial designation SHIP FOR TRIAL) on
|
|
`dcb373639ef97d4c7f63abaddafadef7f6edf226`. Asked to confirm the bridge update and the upload, Dan:
|
|
"confirmed on both".
|
|
|
|
| Step | Result |
|
|
|---|---|
|
|
| `git archive dcb3736`, then `deploy/install.sh --bridge-url https://hermeven.xylo.gg` | `DEPLOYED_SHA` is `dcb373639ef97d4c7f63abaddafadef7f6edf226` (was `d90cd89`). Application tree `root:root`, 0 files not root-owned, 0 writable by others. |
|
|
| `/etc/hermeven/bridge.env` (previous file kept as a `.bak-` copy) | Added `HERMEVEN_AGENT_NAME=Pepper`, `HERMEVEN_AGENTS=wendy,cody`, the two agents' keys copied on the server from their Hermes profile settings without being displayed (64 characters each), and `HERMEVEN_AGENT_CODY_NAME=Cody`. File stays `hermeven` 600. |
|
|
| Restart | 00:37:47 to 00:37:52 UTC; `stt.ready`; healthz ok; state directory 700, database 600 (migration v3 applied on start). Hermes was not restarted. |
|
|
| Configuration as loaded by the service user | default "Pepper" at the gateway address; "Wendy" at `/p/wendy`; "Cody" at `/p/cody` |
|
|
| The bridge's copies of the keys at each agent's address | 404 (accepted, no such run) for both |
|
|
| Paired devices | Preserved |
|
|
| Smoke test with a temporary device (`deploy-smoke-agents`, revoked afterwards) | `/v1/agents`: Pepper, Wendy, Cody. `/v1/device`: its previous ten fields. Conversation with unlisted `natalie`: 400. One typed question to Wendy through the bridge: succeeded in 2.1 s, answered as Wendy; the bridge log names agent `wendy` for it. This left one more test session in Wendy's profile. No question was sent to Cody. |
|
|
| From outside | healthz ok; `/v1/agents` without a credential: 401 |
|
|
| Even account | `evenhub upload` 0.2.0 (id 155579, 100,912 bytes, SHA-256 `73179edaa84e261259a12226657f4e12f9f29138bf77236dc4388a6f6c73da5d`, built from `dcb3736`), then `evenhub promote 0.2.0 --to beta` |
|