Address Cody review round 2: all ten findings (CODY-001 to CODY-010)
CODY-001 Bridge URL must be HTTPS (HTTP only to loopback), in the client and
in manifest generation.
CODY-002 Even host calls stay serialised until the SDK call really settles;
a microphone start that completes after its timeout is followed by
a stop.
CODY-003 Request id is stored before the first submit and cleared only on a
definitive answer; lost replies are treated as ambiguous and
reconciled under the same id; HUD no longer claims "not sent".
CODY-004 Revoking a device cancels its in-flight turns, aborts
transcription and asks Hermes to stop, from HTTP and CLI paths.
CODY-005 Speech model pinned to a commit with per-file SHA-256; fetched and
verified ahead of time; verified on every load; never downloaded
at run time; no unpinned configuration.
CODY-006 State directory 0700, database/WAL/SHM 0600 regardless of umask.
CODY-007 credential_expired handled like unauthorized on every path.
CODY-008 Approval wait start and paused agent deadline persisted and
restored across restarts (schema v2).
CODY-009 Exactly one conversation create per epoch, sent in sequence, with
stale results dropped before persistence.
CODY-010 Wrong pairing guesses no longer consume the outstanding code;
failures are indistinguishable.
Checks: typecheck clean; npm test 182 passed; client build ok;
test:real-stt 11 passed (including with no network); test:real-hermes 9
passed; test:simulator 6 passed; git diff --check clean.
Not reviewed. No physical-device, droplet or production evidence.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -12,10 +12,10 @@ small bridge between the two.
|
||||
| Path | State |
|
||||
|---|---|
|
||||
| Client, bridge and contract | Implemented. |
|
||||
| Automated tests with fakes (130) | Passing. |
|
||||
| Automated tests with fakes (182) | Passing. |
|
||||
| Client in Even's official simulator | Passing (6 scenarios). Simulator only. |
|
||||
| Bridge against a real Hermes gateway | Passing (9 scenarios) with a **stub model**. |
|
||||
| Built-in speech-to-text (Whisper, in the bridge) | Passing (4 scenarios) on a real speech recording. Not yet on audio from the glasses. |
|
||||
| Built-in speech-to-text (Whisper, in the bridge) | Passing (11 scenarios) on a real speech recording, including with no network. Not yet on audio from the glasses. |
|
||||
| Running on a droplet | **Not run.** See `docs/deploy-droplet.md`. |
|
||||
| Real model, real tools, approval flow | **Not run.** |
|
||||
| Physical G2, ring, locked-phone use, battery | **Not run.** See `docs/device-test-plan.md`. |
|
||||
@@ -44,6 +44,7 @@ G2 <-Bluetooth-> Even phone app (WebView: apps/even-client)
|
||||
```sh
|
||||
npm ci
|
||||
cp .env.example .env # set HERMES_API_KEY; add HERMEVEN_ALLOWED_ORIGINS=http://localhost:5173
|
||||
npm run bridge:cli -- fetch-model # one-time: download and verify the pinned speech model
|
||||
npm run bridge # terminal 1
|
||||
npm run client:dev # terminal 2, then open http://localhost:5173
|
||||
npm run bridge:cli -- pair # terminal 3: prints a one-time pairing code
|
||||
|
||||
Reference in New Issue
Block a user