While a recording is being made the app sends the recording so far to a
new bridge route, POST /v1/transcribe, about every half second of new
audio and one request at a time, and draws the words under "... is
listening…", newest words kept in view. No new service: it is the Whisper
already in the bridge. A preview is only ever drawn. The question is
transcribed again by its own turn, so a preview can never be what the
agent receives.
After sending, the last preview stays under "Transcribing…", then "Heard:"
shows the transcript the bridge gave the agent, now for every spoken
question (it was hands free only). The reducer tracks `spoken` explicitly
and treats an accepted, not yet transcribed recording as transcribing.
Bridge: /v1/transcribe needs a device credential, shares the audio checks
with /v1/wake, runs one at a time per device within
HERMEVEN_PREVIEWS_PER_MINUTE (60), creates nothing and logs no text.
An older bridge answers 404 and the client stops asking.
Simulator: a scenario that launches the app as shipped (menu, hands free)
as Round 18 required. A diagnostics note marks when listening for a name
starts and stops.
Also records the 0.3.0 deployment, upload and Dan's device report
(docs/evidence/device/2026-11-28.md), and decision 0005.
Not reviewed, not deployed, not uploaded, not device-tested.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The app now opens on a menu, which is the root page: "Hands free" first,
"Agents" second. Agents is the 0.2.0 app unchanged. Hands free is the same
agents, conversations and question path with one flag set: the microphone
listens while the app is at rest and the app does not leave by itself.
The mode is never remembered; every launch starts at the menu with the
microphone closed, and double tap at Ready returns to the menu and closes
it.
Client: a loudness-only speech segmenter (core/vad.ts) cuts the stream
into utterances; each goes to the bridge for a wake check. "Wendy, <q>"
becomes a text turn to Wendy, with what was heard shown while she works.
A name alone starts a recording that sends itself when the speaker stops.
The status line starts with a dot for exactly as long as the microphone is
open at rest. In wake mode every microphone open and close goes through
one serialised reconciler; without the option the old path is untouched.
Bridge: POST /v1/wake transcribes one utterance in memory and reports
whether it BEGAN with an agent's name (first word of the display name, or
an alias from HERMEVEN_AGENT_<ID>_WAKE). Exact match only; a near miss is
reported as one word and never acted on. Creates no turn, stores nothing,
returns and logs nothing that was not addressed to an agent. One check at
a time per device, HERMEVEN_WAKE_CHECKS_PER_MINUTE (30).
Docs: decision 0004, bridge API, security gaps 3c/3d, device plan D.
The manifest's microphone description changed.
Not reviewed, not deployed, not uploaded, not device-tested.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
If the current agent was taken off the bridge's list while its request was
in flight, start-up rightly kept it for that request, but nothing fell back
afterwards: the screen named the default (first in the list) while state,
storage and the conversation were still the removed agent's.
The controller now reconciles inside dispatch, in the same step as any
state change and before anything is drawn: on a resting screen, if the
stored agent is not offered, the stored agent and thread are swapped to the
default's own and the state follows (agent_reconciled). While a request is
in flight nothing changes, so the turn is never moved or repeated. This
also covers an abandoned turn at start.
CODY-022: README scope list no longer says multiple agents are excluded.
Not reviewed, not deployed, not uploaded.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Bridge: an owner-configured list of agents (HERMEVEN_AGENTS). Each extra
agent is another profile of the same Hermes gateway, reached at
/p/<profile> with that profile's own key. GET /v1/agents lists ids and
names; POST /v1/conversations takes an optional agent_id checked against
the list. A conversation belongs to one agent (migration v3) and its turns
are submitted, polled and stopped at that agent. /v1/device is unchanged so
clients built earlier keep working.
Client: at Ready a swipe moves between agents; the name is shown through
the exchange; each agent keeps its own conversation; a follow-up goes to
the agent that answered. Reopened within the conversation window it opens
on the last agent, otherwise on the default. With one agent, or a bridge
without /v1/agents, nothing changes.
Also: contract section G, server survey and key evidence, the 0.1.2
upload, and the CODY-020 correction. Not reviewed, not deployed, not
uploaded.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On a real G2 with build 0.1.1, a voice launch with nothing touched never
left the glasses: no glassesMenu launch source reached the app, so the
countdown was never armed. After one swipe it left as designed.
The countdown now runs however the session was opened. The launch source is
kept for Diagnostics only. Setting up on the phone stays protected: nothing
leaves while unpaired, and a touch on the phone page holds the app open for
the grace period. Dan approved the change after the trial.
Also records the 0.1.1 trial, Dan's keep/change decisions (contract
section F) and the 0.1.1 upload. Version 0.1.2. Not reviewed, not uploaded.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
An exit attempt remembered only the reducer generation. A gesture that
changes no state (a swipe at Ready) restarted the 30 s countdown, but when
the pending host call then failed, the 3 s retry replaced that timer.
The controller now counts every restart of the normal countdown (gesture,
state change, phone activity) in an activity epoch, captures it when an
attempt starts, and schedules no retry if it has moved. Bounded attempts,
late-success memory, exit-event finality and one host call at a time are
unchanged.
Not reviewed. 0.1.1 is not uploaded.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
CODY-016. The SDK pushes the launch source once, early. The Even adapter now
subscribes in its constructor, remembers the value and replays it to a
listener that subscribes later. appMenu still does not arm idle exit.
CODY-018. exitNow() returns whether the host confirmed. The adapter keeps at
most one shutdown call in flight (through the same queue as every other host
call), lets a repeat request wait on that call, and never calls the host
again after a confirmed exit, including one confirmed late. The controller
marks itself as gone only on confirmation or on a system_exit/abnormal_exit
event; otherwise it retries after 3 s, at most 4 attempts in a row, under the
same resting-screen and phone-grace guards, and starts again after activity.
CODY-017. README: one owner-reported locked-phone success; pocketed,
five-minute and ten-cycle runs unverified.
Tests: production-adapter tests with a stand-in host, including the default
30 s under a fake clock; a simulator scenario that performs the real exit
(development-only ?idleExit=fast). Not reviewed. 0.1.1 is not uploaded.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On a real G2 the app, while open, occupied the display indefinitely and a
phone notification did not reach the lenses. The app now leaves the glasses
by itself (shutDownPageContainer(0), no dialog) after a resting screen has
been untouched: 20 s on an answer, 30 s at Ready, 10 s on an error or
"Cancelled". Any gesture restarts the countdown. It never leaves while
recording, transcribing, waiting for the agent or for an approval.
It is armed only once the glasses are in use (a gesture arrived, or the
session was opened from the glasses, which includes voice launch), and
touching the phone page holds it open for two minutes, so setting up on the
phone is not interrupted.
Because the app now closes between questions, a question more than ten
minutes after the last one starts a new conversation; sooner continues it.
Diagnostics shows how the session was opened. Version 0.1.1.
Tests: 233 unit/integration; simulator 7. Not reviewed, not deployed.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
An app installed through Even Hub is served by the Even phone app from
http://127.0.0.1:<port>, and the port changed between two launches on a
real phone (40315, then another). An exact-origin allow-list therefore
cannot admit it. HERMEVEN_ALLOWED_ORIGINS now accepts one wildcard form,
the port of a loopback address over http (127.0.0.1, localhost, [::1]),
off unless configured. No other wildcard is accepted. CORS remains
advisory: every route still requires the device credential.
Tests: 224 unit/integration. Not reviewed, not deployed.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On a real G2 a touch held slightly too long is reported as a long press
(sysEvent type 9, then type 10 on release; source 1 right temple, 3 left),
not as a tap, and was ignored. A long press now does what a tap does. If it
started a recording and is held at least 700 ms, releasing it sends
(push-to-talk); released sooner, it behaves like a tap and the recording
continues until the next tap or press.
Tests: 219 unit/integration; simulator 7 scenarios (long_press /
long_press_release through the automation API). Not reviewed, not deployed.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
During the second device session a tap on the glasses did nothing and the
phone page could not show whether the Even app had delivered any event. The
Even adapter now counts gesture/lifecycle events, ignored events and audio
frames and records the last non-audio event by envelope and type code
(never audio or content). The phone's Diagnostics shows it and refreshes
when an event arrives, including one that changes no state.
Not reviewed. Not deployed.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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>
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>
Found on the first real-phone run: the Even app's WebView provided
window.flutter_inappwebview after the page's script had started, so the
page wrongly fell back to browser-preview mode and never created the HUD
page on the glasses. The page now waits (up to 6 s, polling and listening
for the WebView's platform-ready event) and, if the host appears later
still, reloads once into the real mode. Diagnostics show how long
detection took and the browser's user agent.
Tests: 205 passed (7 new); simulator 6 passed. Not reviewed.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
CODY-003 Request identity is durable before submission. Storage results are
explicit at the DevicePort boundary (storageSet resolves true only
on the host's own timely confirmation; storageGet distinguishes
unknown from empty). A request is not sent until the phone has
confirmed storing its id; a timeout or refusal holds it back,
unsent and retryable under the same id. Unreadable storage at
start is not treated as unpaired; an unsaveable pairing is revoked.
CODY-006 The state directory is set to 0700 on every open, including when
it already existed, and the bridge refuses to start with an
operator-facing error if it cannot be. Deployment guide creates
it with install -d -m 0700.
Checks: typecheck clean; npm test 194 passed; client build ok;
test:real-stt 11 passed; 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>
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>
The speech model now lives in a worker thread (whisperWorker.mjs), so
loading and transcribing no longer block the bridge's HTTP server or its
Hermes polling. Measured longest event-loop pause during transcription:
387 ms before, 3 ms after. A dead worker is replaced on the next request;
closing the bridge terminates it.
Polling: bridge to Hermes every 150 ms (was 500). The app polls the bridge
every 200 ms for the first 8 s of a turn, 400 ms until 30 s, then 1 s
(was a fixed 700 ms).
Tests: 131 unit/integration, 7 real-speech, 9 real-Hermes, 6 simulator,
all passing. Effect on a phone or a droplet is not measured.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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>
Client (apps/even-client): pure interaction reducer with generation-based
stale-result rejection, HUD renderer, measured pagination, Even Hub SDK
0.0.16 adapter, bridge HTTP client, phone pairing/status/diagnostics page.
Bridge (services/bridge): device pairing and revocable expiring credentials,
turn engine with idempotent submit, cancel, deadlines and restart recovery,
Hermes Runs API adapter, OpenAI-compatible STT adapter, operator CLI.
Contract (packages/contracts): versioned schemas, types and error codes.
Tests: 122 unit/integration (fakes), 6 simulator scenarios (Even Hub
simulator 0.9.5), 9 scenarios against a real Hermes v0.23.1 gateway with a
stub model. No real STT, real model or physical device has been exercised;
see docs/test-evidence.md and docs/device-test-plan.md.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>