Address Cody review round 8: CODY-014 start-up status; add acceptance contract
CODY-014 The page is no longer blank while it looks for the Even app. The
static HTML carries an accessible status (#startup, role=status)
visible from first paint; boot() keeps it until the real page is
mounted, then removes it. Start-up moved from main.ts to boot.ts so
the entry-point wiring can be exercised in a DOM. No eager browser
fallback: the preview is chosen only after the host wait expires.
tests/integration/entryPoint.test.ts loads the real index.html and runs the
real boot() and the real Even Hub SDK in happy-dom: prompt status, preview
after timeout, real Even mode when a callable host appears during the wait
(SDK bridge initialised, HUD page created).
docs/contracts/: acceptance contract, written by the implementer on Dan's
instruction and tied to his quoted requests.
docs/evidence/device/2026-11-21.md: first run on a physical G2, as reported
by Dan plus the bridge log.
Not reviewed. This commit is not deployed.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
# 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. |
|
||||
|
||||
## Out of scope for this contract
|
||||
|
||||
Wake word ("Hey Pepper"), automatic end-of-speech detection, summoning other agents by name,
|
||||
locked-phone operation, a beta-channel install, 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).
|
||||
Reference in New Issue
Block a user