Bring README, decisions, contract and evidence up to date with the device session

Documentation only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Dan
2026-11-21 13:34:42 -08:00
co-authored by Claude Fable 5.2
parent bc00ae9fb1
commit fb0a6b926a
7 changed files with 102 additions and 14 deletions
+5 -1
View File
@@ -33,7 +33,7 @@ devices. Not reviewed by anyone but its author yet; see `docs/handoff/`.
| Blind replay after a timeout | A sent-but-unanswered request ends as `unknown`, never as retryable. | yes |
| Oversized or malformed input | 32 kB JSON limit; audio capped at capture length + 1 s; schema validation; only one audio format accepted. | yes |
| Request flooding | Per-device turn limit, per-address pairing limit, general per-device limit. | yes |
| Cross-origin browser abuse | CORS allows only exact configured origins and sends no credentials mode. CORS is not treated as authentication: every route still needs the bearer credential. | yes |
| Cross-origin browser abuse | CORS allows only exact configured origins, plus, only if configured, any port on a loopback address over http (`http://127.0.0.1:*`), which an Even Hub installed app requires. No other wildcard exists. CORS is not treated as authentication: every route still needs the bearer credential. | yes, including 17 look-alike and foreign origins |
| Secrets or content in logs | Logs carry ids, states, codes and timings. Request logging is off, a redaction list backs it up, and Hermes's own diagnostic text is never relayed or logged. | yes |
| Substituted speech-model files | The model is pinned to a commit id with a SHA-256 for every file. Files are fetched ahead of time and verified; the bridge re-verifies on every load, never downloads at run time, and reads from a directory that can be read-only. There is no unpinned mode. | yes, including with no network at all |
| State files readable by other users | At every start the directory holding the database must be owned by the bridge's own user (a directory owned by anyone else is refused untouched, whatever its mode) and is set to 0700, whether it was just created or already existed; the bridge refuses to start otherwise. The database is created owner-only before SQLite opens it (so its WAL and SHM files inherit that); the systemd unit sets `UMask=0077`. | yes, under umask 0022, for new and pre-existing directories |
@@ -75,6 +75,10 @@ Stated so they are not mistaken for protections.
4a. **The state directory must be the bridge's own.** Because it is forced to 0700, pointing
`HERMEVEN_DB_PATH` into a directory shared with other software will lock that software out;
a directory owned by another user is refused.
4b. **With `http://127.0.0.1:*` set, any page served from the phone's own loopback address may
read the bridge's replies in a browser on that phone.** That includes a page served by some
other app on the phone. It still cannot do anything without the device credential, which is
held in the Even app's storage, not in a cookie the browser would attach by itself.
5. **TLS is not terminated by the bridge.** A reverse proxy or private network must provide it. A
misconfigured proxy could expose plain HTTP.
6. **Rate limits are in memory** and reset on restart. Behind a proxy, per-address limits are only