Bridge: an owner-configured list of agents (HERMEVEN_AGENTS). Each extra agent is another profile of the same Hermes gateway, reached at /p/<profile> with that profile's own key. GET /v1/agents lists ids and names; POST /v1/conversations takes an optional agent_id checked against the list. A conversation belongs to one agent (migration v3) and its turns are submitted, polled and stopped at that agent. /v1/device is unchanged so clients built earlier keep working. Client: at Ready a swipe moves between agents; the name is shown through the exchange; each agent keeps its own conversation; a follow-up goes to the agent that answered. Reopened within the conversation window it opens on the last agent, otherwise on the default. With one agent, or a bridge without /v1/agents, nothing changes. Also: contract section G, server survey and key evidence, the 0.1.2 upload, and the CODY-020 correction. Not reviewed, not deployed, not uploaded. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
146 lines
12 KiB
Markdown
146 lines
12 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. |
|
|
|
|
### F. Leaving the glasses when idle (from Dan's words on 2026-11-21)
|
|
|
|
Cody recorded after Round 9 that Dan's direct confirmation validates this contract. Section F was
|
|
added afterwards, in the same way: Dan's words, quoted.
|
|
|
|
**Status of section F.** Dan told Cody directly on 2026-11-21 that acceptance of behaviour
|
|
follows a device trial, not the other way round, and Cody issued SHIP FOR TRIAL for
|
|
`3e0468802f3ae23b30c39c48f36d489fa92f9658`. Dan then tried build 0.1.1 on the glasses. His
|
|
decisions, in his words, are in the table under "Decisions after the 0.1.1 trial" below.
|
|
|
|
| # | Dan said | Criterion |
|
|
|---|---|---|
|
|
| F1 | "another annoyance is that it stays on screen and never times out. I want the app to work like any other even app. call it to be used, and then it disappears but stays callable" | After a resting screen has been untouched for a set time, the app leaves the glasses by itself and can be called again. |
|
|
| F2 | "notification only shows in telegram... the even notification did not come trhough." and "also from before, to not have the app block the even app notificationss is it appears to be doing." | "Leaves" means a real exit that returns the glasses to their normal screen, not a blanked display that keeps the app in front. |
|
|
| F3 | "now what we need is for the pepper app to timeout and not stay visible on the glasses for so long." | Default times: 20 s on an answer, 30 s at Ready, 10 s on an error or cancel. Any gesture restarts the countdown. |
|
|
| F4 | (implementer's safeguard, not requested) | It never leaves while recording, transcribing, waiting for the agent or for an approval; it does not close a session opened from the phone until the glasses are used; touching the phone page holds it open. |
|
|
| F5 | (implementer's consequence of F1, not requested) | Since the app closes between questions, a question within ten minutes of the last continues the conversation and a later one starts a new conversation. |
|
|
| F6 | "yes, promote it to beta" | Build 0.1.0 is on the beta channel with Dan as tester. |
|
|
| F7 | On 0.1.1: "send it to cody" | 0.1.1 is **not** uploaded to Even or installed until Dan says so. |
|
|
|
|
#### Decisions after the 0.1.1 trial (2026-11-21, Dan's words)
|
|
|
|
| Item | Decision | Dan said |
|
|
|---|---|---|
|
|
| F1, F2 | Keep | After a swipe: "cool, she did exit that way." And: "yes, am getting tg notifications after her close." |
|
|
| F3 | Keep for now | "20s seems okay for now." The 30 s and 10 s waits were not commented on. |
|
|
| F4 | **Changed** | On a voice launch with nothing touched: "she's not leaving." Asked whether the countdown should start however the app was opened, at the cost of closing an untouched phone-opened session: "I also will almost never open her from the phone app. I'll use telegram when I'm going to look at my phone so the change is good in my \"eyes\"". |
|
|
| F5 | Not yet tried | No decision. |
|
|
|
|
F4 as revised (build 0.1.2): the countdown runs however the app was opened. It still never
|
|
leaves while recording, transcribing, waiting for the agent or for an approval, or while
|
|
unpaired, and a touch on the phone page still holds it open for two minutes.
|
|
|
|
### G. Choosing an agent (from Dan's words on 2026-11-21)
|
|
|
|
A build for trial. Per Dan's standing instruction, his keep/change/remove decisions follow the
|
|
device trial; nothing here is pre-accepted beyond what he is quoted as asking for.
|
|
|
|
| # | Dan said | Criterion |
|
|
|---|---|---|
|
|
| G1 | "what I want to build next is the ability to chat with all my agents... wendy is a sub-agent of pepper and being able to summon her through the app would be ideal." | The app can talk to more than one agent through the one bridge. |
|
|
| G2 | "when pepper opens, and is inthe ready state, what if swiping could change the active agent? So pepper would show, but if we swipe, it would move between different available agents?" | At Ready a swipe moves to the next or previous agent; the app opens on the default agent and shows the current agent's name. |
|
|
| G3 | "when no name is stated, then it uses pepper/default." | With no choice made, questions go to the default agent exactly as before. |
|
|
| G4 | Asked whether to reopen on Pepper or on the last agent: "could we use the same 15 minute time out (I think that's what it is) that determines if it's a new session, or picks up from the last?" | Reopened within the conversation window (ten minutes; Dan was told it is ten, not fifteen), the app opens on the agent last talked to, in the same conversation; otherwise on the default. |
|
|
| G5 | On the agent list coming from the bridge's settings: "Yeah, sure. that's fine." | The list is configured on the bridge; the phone can only pick from it. |
|
|
| G6 | "Pepper, wendy and cody. yes. go for it." | The three agents for the first trial. Also Dan's go-ahead for giving the wendy and cody profiles an API key on the server. |
|
|
| G7 | (implementer's choices, not requested) | Each agent has its own conversation. A follow-up goes to the agent that answered. On an answer a swipe still turns the page. The agent's name is shown while listening, thinking and on the answer. With only one agent the screens are unchanged. |
|
|
|
|
Not built: saying a name to route a question. Dan first preferred it, then proposed the swipe.
|
|
|
|
## Out of scope for this contract
|
|
|
|
Wake word ("Hey Pepper"), automatic end-of-speech detection, summoning other agents by name,
|
|
listening automatically on launch, ending a conversation without closing the app, 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).
|