Documentation only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
96 lines
6.4 KiB
Markdown
96 lines
6.4 KiB
Markdown
# Acceptance contract: droplet deployment and first device run
|
|
|
|
**Provenance, stated plainly.** This contract was written by Claude, the implementer, on
|
|
2026-11-21. Cody's Round 6 and Round 8 reviews asked for a contract independent of the
|
|
implementer. Dan, the owner, was asked to supply one and replied, in conversation:
|
|
|
|
> "you supply the contract. why am I needed for this trivial nonsense?"
|
|
|
|
So it is supplied here on Dan's instruction. It is not independent of the implementer and does
|
|
not pretend to be. What makes it checkable is that every requirement below is tied to something
|
|
Dan asked for in his own words (quoted), or to a correction Cody required. Anything the
|
|
implementer added beyond those is marked as such.
|
|
|
|
## What Dan asked for
|
|
|
|
Quoted from the conversation of 2026-11-21, in order.
|
|
|
|
1. "that's easy - ip of the hermes droplet is: [the droplet]. Let's tackle that first. I think
|
|
you can ssh right in and see what's missing."
|
|
2. "pepper is default (also, i'd like to be able to summon other agents by name, but that's
|
|
another phase once MVP is done)"
|
|
3. On restarting the Hermes gateway to enable its API server: "approved".
|
|
4. On the unfinished browser-extension service occupying port 8642: "Can you deprecate that
|
|
process, use 8642 for the even bridge, and we'll defer the extension work and assign it a
|
|
different port at some point in the future?"
|
|
5. "I'm okay with the risk."
|
|
6. "we'll use hermeven.xylo.gg"
|
|
7. On where the bridge should live, after being told the Hermes server was the simpler choice
|
|
for now, no objection; and on capacity: "easier would be to just upgrade the droplet."
|
|
|
|
## Acceptance criteria
|
|
|
|
### A. Deployment (from requests 1 to 7)
|
|
|
|
| # | Criterion |
|
|
|---|---|
|
|
| A1 | The bridge runs on the Hermes droplet at the commit Cody marked SHIP (`f02715f`), as an unprivileged service, listening on loopback only. |
|
|
| A2 | The Hermes API server is enabled on `127.0.0.1:8642` for the `default` profile (Pepper), requires its key, and is not reachable from outside the droplet. |
|
|
| A3 | The unfinished extension service and its tunnel are stopped and disabled, not deleted. |
|
|
| A4 | The bridge is reachable at `https://hermeven.xylo.gg` with a valid certificate; plain HTTP redirects; ports 8787 and 8642 do not answer from outside. |
|
|
| A5 | A question sent through the bridge is answered by Pepper, and a follow-up shows the conversation was kept. |
|
|
| A6 | Other agents on the droplet and the n8n webhook are running after the change. |
|
|
| A7 | Secrets are not printed, committed or copied off the droplet; previous Hermes configuration is backed up before it is edited. |
|
|
|
|
### B. Documentation of the deployment (required by Cody, Rounds 6 and 8)
|
|
|
|
| # | Criterion |
|
|
|---|---|
|
|
| B1 | The deployment guide works end to end on a clean Ubuntu 24.04 host with no undocumented step. |
|
|
| B2 | Dependencies are installed and the client is built as the unprivileged user, only inside `app.new`; the final application tree is root-owned and not writable by the service; secrets, state and model paths are outside every recursive ownership change. |
|
|
| B3 | The static client is explicitly installed into `/opt/hermeven/www`, root-owned, directories 0755, files 0644, and is served with the intended security headers. |
|
|
| B4 | The README and the dated evidence say exactly which commit is deployed, what the static page was built from, and what remains unverified. |
|
|
|
|
### C. Page start-up (required by Cody, Round 8, CODY-014)
|
|
|
|
| # | Criterion |
|
|
|---|---|
|
|
| C1 | The page shows a meaningful, accessible status from the first paint, before any script runs. |
|
|
| C2 | In an ordinary browser the labelled browser preview appears only after the host wait has expired; there is no eager fallback. |
|
|
| C3 | A callable Even host appearing during the wait selects the real Even adapter, not the preview. |
|
|
| C4 | The start-up status is removed when the real page mounts. |
|
|
| C5 | A physical Even-app run shows SDK bridge initialisation and HUD creation for the build under review. |
|
|
|
|
### D. Standing constraints
|
|
|
|
| # | Criterion |
|
|
|---|---|
|
|
| D1 | CODY-001 to CODY-013 stay resolved. |
|
|
| 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,
|
|
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
|
|
|
|
- Rotating the Hermes API key (the old one was also in the retired extension's configuration).
|
|
- Serving the phone page from the bridge's own hostname.
|
|
- `deploy/install.sh` and `tests/deploy/runbook-proof.sh`.
|
|
- The precautionary host-detection wait (see `docs/handoff/2026-11-21-cody-round-7.md`: it was
|
|
introduced on a wrong diagnosis and kept only as a short precaution).
|