Files
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

59 lines
2.9 KiB
Bash

# Hermeven bridge configuration. Copy to `.env` (ignored by git) on the bridge host.
# Nothing in this file belongs in the client app or in the repository.
# --- Hermes (required) -------------------------------------------------------
# Base URL of the Hermes API server. For multi-profile routing use .../p/<profile>.
HERMES_BASE_URL=http://127.0.0.1:8642
# The API_SERVER_KEY of that Hermes profile. Stays on the bridge host only.
HERMES_API_KEY=replace-with-your-hermes-api-server-key
# A label for the profile this bridge serves. Devices are bound to it.
HERMES_PROFILE_LABEL=default
# --- Bridge listener ---------------------------------------------------------
# Loopback by default. A phone reaches it through a TLS-terminating reverse proxy or a
# private network (for example Tailscale). Binding a non-loopback address needs the
# explicit acknowledgement below; the bridge itself does not terminate TLS.
HERMEVEN_HOST=127.0.0.1
HERMEVEN_PORT=8787
# HERMEVEN_ALLOW_NON_LOOPBACK=true
# HERMEVEN_TRUST_PROXY=true
HERMEVEN_DB_PATH=./data/hermeven.sqlite
# Exact origins of the page that calls the bridge (comma separated, no wildcards).
# Read the real value from Diagnostics -> "Page origin" in the phone page.
HERMEVEN_ALLOWED_ORIGINS=
# --- Speech-to-text -----------------------------------------------------------
# "builtin" (default): Whisper runs inside the bridge on the CPU. No account, and recordings
# never leave the bridge host. The model is pinned (commit id + SHA-256 per file) and is
# never downloaded by the running bridge: fetch it once with
# npm run bridge:cli -- fetch-model
# "openai-compatible": any server with POST {base}/audio/transcriptions.
# "none": typed questions only.
STT_PROVIDER=builtin
# STT_MODEL=whisper-base # bundled pinned models: whisper-base, whisper-tiny (faster, less accurate)
# STT_MODEL_DIR=./data/models # where the verified files live; can be read-only at run time
# STT_MODEL_MANIFEST= # path to your own manifest for any other model (must pin a
# # 40-character commit id and a SHA-256 for every file)
#
# For STT_PROVIDER=openai-compatible:
# STT_BASE_URL=https://stt.example/v1
# STT_API_KEY=replace-with-your-stt-key
# STT_MODEL=whisper-1
# How often the bridge asks Hermes whether a run has finished (milliseconds).
# HERMES_POLL_INTERVAL_MS=150
# --- Budgets (defaults shown) ------------------------------------------------
# HERMEVEN_CAPTURE_MAX_SECONDS=30
# HERMEVEN_TRANSCRIBE_DEADLINE_SECONDS=30
# HERMEVEN_AGENT_DEADLINE_SECONDS=120
# HERMEVEN_APPROVAL_WAIT_SECONDS=300
# HERMEVEN_RESULT_RETENTION_SECONDS=900
# HERMEVEN_TOKEN_TTL_SECONDS=604800
# HERMEVEN_PAIRING_TTL_SECONDS=7776000
# Per-request instructions layered on the agent's own prompt (not stored in history).
# Leave unset for the default "answer briefly in plain text" guidance; set empty to send none.
# HERMEVEN_INSTRUCTIONS=