# 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-.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`).