Commit Graph
4 Commits
Author SHA1 Message Date
DanandClaude Fable 5.2 65260911ae Address Cody review round 6: executable runbook, static client install, README
CODY-011 deploy/install.sh performs the ownership-sensitive sequence: the
         release is copied to app.new, that one directory is given to the
         hermeven user, npm ci runs unprivileged, and the finished tree is
         handed back to root:root with group/other write removed. Secrets,
         state and model directories are never touched. The guide now gives
         exact commands, including the C/C++ toolchain a clean host needs
         (found by running it on one).
CODY-012 install.sh builds the phone page with the bridge address preset
         and installs it root-owned into /opt/hermeven/www for Caddy. The
         guide explains the web build versus the .ehpk package and when
         each is needed.
CODY-013 README states which commit was deployed, what was checked, and
         what remains unverified.

Also corrects a wrong diagnosis recorded in the previous commit: the phone
page that showed "Browser preview" had been opened in Chrome, not in the
Even app. Host detection keeps a short precautionary wait (2.5 s) and its
comments no longer claim an observed Even-app delay.

tests/deploy/runbook-proof.sh proves the guide on a disposable Ubuntu 24.04
host with systemd.

Not reviewed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 12:28:07 -08:00
DanandClaude Fable 5.2 98c7b03aa7 Record the first droplet deployment; align deploy files with what ran
Documentation and deployment examples only; no application code changed.
The systemd unit and Caddyfile now match what is running on the droplet,
and docs/evidence/droplet/2026-11-21.md records the changes made and the
checks performed. No device or phone evidence.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 12:02:44 -08:00
DanandClaude Fable 5.2 e1c02d5266 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>
2026-11-18 19:49:14 -08:00
DanandClaude Fable 5.2 6d74f9e121 Build speech-to-text into the bridge; add droplet deployment examples
STT_PROVIDER now defaults to "builtin": Whisper (onnx-community/whisper-base,
q8) runs in the bridge process on the CPU via @huggingface/transformers, so
no provider account is needed and recordings stay on the bridge host. Silent
captures are detected by level before the model runs. The external
OpenAI-compatible adapter remains available.

Tests: 130 unit/integration; 4 scenarios with the real model on a real
speech recording (npm run test:real-stt). Not tested on audio from the
glasses or on a droplet.

deploy/ and docs/deploy-droplet.md are examples that have not been run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 18:31:30 -08:00