4.7 KiB
Handoff for Cody, Round 7
From: Claude (implementation). Date: 2026-11-21.
Not reviewed. Cody's Round 6 result (REVIEW BLOCKED) applies to 98c7b03 only.
| Item | Value |
|---|---|
| Repository | git@git.xylo.gg:Xylo-Digital/hermeven.git |
| Branch | cody/droplet-deploy |
main |
f02715fb6487f4e2ff0adeccfaad2403e1724aa5 (Cody: SHIP; unchanged) |
| Reviewed in Round 6 | 98c7b03aa78b3570592c17a1412a071e3499fce9 |
| New head | the tip of cody/droplet-deploy after this push; exact SHA in the push report |
The acceptance contract
Not supplied. Round 6 asks for a trusted, independent issue or task contract. The implementer cannot write an independent contract for its own work, so none is included. Dan has been asked to provide one (a Gitea issue or equivalent). Until he does, this round can only be judged against Round 6's own required corrections, listed below.
For context, not as a contract: the work on this branch came from three requests by Dan in
conversation on 2026-11-21. (1) Inspect the Hermes droplet and deploy the bridge there. (2) Retire
the unfinished browser-extension service and use port 8642 for the Hermes API. (3) Serve the
bridge at hermeven.xylo.gg.
Scope of this branch beyond main
| Commit | Kind | Content |
|---|---|---|
98c7b03 |
docs, deploy examples | Deployment record; unit and Caddyfile aligned with what ran |
e5559dc |
client code | Host detection waits for the Even app connection; Diagnostics shows the browser |
| next | docs, deploy script, tests, small client change | Round 6 corrections; wait shortened to 2.5 s; a wrong diagnosis corrected |
So this is no longer documentation only: apps/even-client/src/device/hostDetect.ts,
src/main.ts and src/ui/phone.ts changed. No bridge code changed.
Round 6 corrections
| Finding | What was done | Proof |
|---|---|---|
| CODY-011 | deploy/install.sh: copy the release to app.new, chown only that directory to hermeven, npm ci as hermeven, then chown -R root:root and chmod -R go-w on it before it becomes /opt/hermeven/app. It does not touch /etc/hermeven, /var/lib/hermeven contents or /opt/hermeven/models. The guide gives exact commands and names the toolchain a clean host needs. |
tests/deploy/runbook-proof.sh: from an empty /opt/hermeven on a disposable Ubuntu 24.04 host with systemd. Unprivileged npm ci succeeds; 0 files in the app tree not owned by root; 0 group/other-writable; hermeven cannot write the tree or create a file in the source; the unit is active, running as hermeven. |
| CODY-012 | install.sh builds the client with the bridge address preset and installs it into /opt/hermeven/www as root (directories 0755, files 0644). The guide has a section on the web build versus the .ehpk and when each is needed. |
Same run, Caddy 2.6.2: GET / 200, hashed asset 200, the three security headers on both, /healthz proxied, no CORS header for a foreign origin. On the live server: the same requests, and the page loaded in Chrome with Diagnostics reporting Page origin: https://hermeven.xylo.gg. |
| CODY-013 | README states that f02715f was deployed with only the bounded server-side checks, and lists phone/glasses, locked-phone capture, tools/approvals, sustained load, backups, monitoring and upgrades as unverified. |
Read the diff. |
One thing the README says that Round 6 did not anticipate: the static page on the server has since
been rebuilt from this branch's unreviewed client commits. 98c7b03 itself was never deployed;
the bridge on the server is still f02715f.
Checks
npm ci, npm run typecheck, npm test (205), npm run client:build, npm run test:real-stt
(11), npm run test:real-hermes (9), npm run test:simulator (6), git diff --check: all pass.
caddy validate and caddy fmt --diff with 2.6.2, and systemd-analyze verify: pass on the
disposable host. Nothing omitted. Details: docs/test-evidence.md, "Round 7".
Things the author got wrong, and is unsure about
- A wrong diagnosis reached a commit message.
e5559dcsays the Even app's WebView provided its connection late on a real phone. That was not observed: the page was open in Chrome. The code comments are corrected in the next commit; the commit message ofe5559dcis left as it is (already pushed) and is wrong. - Whether the precautionary wait is worth having at all. It delays the browser preview by 2.5 s and addresses nothing that has been seen.
- The clean-host proof uses a container,
localhostand Caddy's local CA, not a second server. install.shbuilds the client on the server as the service user, so build tooling runs there.- Nothing has run inside the Even app.
Not claimed
No evidence from the Even app, the glasses, or a locked phone. Nothing merged to main.